Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
dd82d31
chore: scaffold
dinhtungdu Sep 20, 2025
a3b78ca
feat: update field type
dinhtungdu Sep 20, 2025
2ab54e8
feat: update field control
dinhtungdu Sep 20, 2025
161d167
feat: add step support
dinhtungdu Sep 20, 2025
f76354e
feat: update validation
dinhtungdu Sep 20, 2025
754a11b
feat: register new field
dinhtungdu Sep 20, 2025
6b78a80
feat: add suffix and prefix support
dinhtungdu Sep 20, 2025
3000524
feat: update min max of between control
dinhtungdu Sep 20, 2025
429a54b
fix: update custom validation trigger condition
dinhtungdu Sep 20, 2025
209f2cd
test: add number tests
dinhtungdu Sep 21, 2025
b8cb310
fix: between number onChange callback
dinhtungdu Sep 21, 2025
5b37b13
fix: Ensure the value of min max are always different
dinhtungdu Sep 21, 2025
5f3d926
fix: type consistency
dinhtungdu Sep 21, 2025
ce9c026
fix: number validation logic
dinhtungdu Sep 21, 2025
483510e
dev: story
dinhtungdu Sep 20, 2025
7f81c2b
refactor: base integer on number
dinhtungdu Sep 21, 2025
8e20976
docs: update README file
dinhtungdu Sep 21, 2025
b605910
chore: changelog
dinhtungdu Sep 21, 2025
74acb65
chore: restore integer field definition
dinhtungdu Sep 27, 2025
8ce0f13
fix: simplify the number field for the first iteration, remove steps/…
dinhtungdu Sep 27, 2025
9cfddf9
fix: remove unused helper
dinhtungdu Sep 27, 2025
d2c03b7
fix: remove unused types related to number
dinhtungdu Sep 30, 2025
0716841
fix: make the render function respect default decimal number
dinhtungdu Sep 30, 2025
1ccff00
fix: unify validation behavior
dinhtungdu Sep 30, 2025
93c776c
refactor: extract number control into a shared component for number a…
dinhtungdu Sep 30, 2025
157b176
fix: sync the validation with integer
dinhtungdu Sep 30, 2025
17aab3a
Update story components to prevent conflicts with global namespace
oandregal Sep 30, 2025
41af593
fix: update number with element story
dinhtungdu Sep 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: remove unused types related to number
  • Loading branch information
dinhtungdu committed Sep 30, 2025
commit d2c03b7dff41d81d3dddc5eff0e3ce2885bf9af9
9 changes: 0 additions & 9 deletions packages/dataviews/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,6 @@ export type EditConfigText = {
suffix?: React.ComponentType;
};

/**
* Edit configuration for text controls.
*/
export type EditConfigNumber = {
control: 'number';
};

/**
* Edit configuration for other control types (excluding 'text' and 'textarea').
*/
Expand All @@ -216,7 +209,6 @@ export type EditConfigGeneric = {
export type EditConfig =
| EditConfigTextarea
| EditConfigText
| EditConfigNumber
| EditConfigGeneric;

/**
Expand Down Expand Up @@ -363,7 +355,6 @@ export type DataFormControlProps< Item > = {
prefix?: React.ComponentType;
suffix?: React.ComponentType;
rows?: number;
step?: 'any' | number;
};
};

Expand Down