Skip to content

Commit

Permalink
Update Gubu validation for most BasicEntity fields
Browse files Browse the repository at this point in the history
  • Loading branch information
zackatbrightbeam committed Jul 28, 2024
1 parent 34cf554 commit 669a533
Show file tree
Hide file tree
Showing 15 changed files with 2,911 additions and 2,866 deletions.
2,850 changes: 1,435 additions & 1,415 deletions dist/voxgig-model-react.es.js

Large diffs are not rendered by default.

2,868 changes: 1,444 additions & 1,424 deletions dist/voxgig-model-react.umd.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/lib/BasicEntityAutocompleteField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const BasicEntityAutocompleteFieldSpecShape = Gubu(
field: Open({
id: String,
name: String,
kind: Skip(String),
label: Default(''),
kind: '',
label: '',
options: Open({
label: { field: Default('label') },
value: { field: Default('value') },
Expand Down
4 changes: 2 additions & 2 deletions src/lib/BasicEntityButtonField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const BasicEntityButtonFieldSpecShape = Gubu(
field: Open({
id: String,
name: String,
kind: Skip(String),
label: Default('', String),
kind: '',
label: String,
ux: Open({
kind: Exact('Button'),
edit: Default(true),
Expand Down
7 changes: 6 additions & 1 deletion src/lib/BasicEntityButtonGroupField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ const BasicEntityButtonGroupFieldSpecShape = Gubu(
id: String,
name: String,
kind: '',
label: String,
label: '',
options: Open({
label: { field: 'label' },
value: { field: 'value' },
ents: Open({}),
}),
ux: Open({
kind: Exact('ButtonGroup'),
edit: Default(true),
Expand Down
4 changes: 2 additions & 2 deletions src/lib/BasicEntityCheckboxField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const BasicEntityCheckboxFieldSpecShape = Gubu(
field: Open({
id: String,
name: String,
kind: Skip(String),
label: Default('', String),
kind: '',
label: '',
ux: Open({
kind: Exact('Checkbox'),
edit: Default(true),
Expand Down
4 changes: 2 additions & 2 deletions src/lib/BasicEntityDateField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const BasicEntityDateFieldSpecShape = Gubu(
field: Open({
id: String,
name: String,
kind: Skip(String),
label: Default('', String),
kind: '',
label: '',
ux: Open({
kind: Exact('Date'),
edit: Default(true),
Expand Down
4 changes: 2 additions & 2 deletions src/lib/BasicEntityDateTimeField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const BasicEntityDateTimeFieldSpecShape = Gubu(
field: Open({
id: String,
name: String,
kind: Skip(String),
label: Default('', String),
kind: '',
label: '',
ux: Open({
kind: Exact('DateTime'),
edit: Default(true),
Expand Down
4 changes: 2 additions & 2 deletions src/lib/BasicEntityField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const BasicEntityFieldSpecShape = Gubu(
field: Open({
id: String,
name: String,
kind: Skip(String),
label: Default('', String),
kind: '',
label: '',
ux: Open({
kind: Exact(
'Text',
Expand Down
4 changes: 2 additions & 2 deletions src/lib/BasicEntityRadioGroupField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const BasicEntityRadioGroupFieldSpecShape = Gubu(
field: Open({
id: String,
name: String,
kind: Skip(String),
label: Default('', String),
kind: '',
llabel: '',
ux: Open({
kind: Exact('RadioGroup'),
edit: Default(true),
Expand Down
4 changes: 2 additions & 2 deletions src/lib/BasicEntityRatingField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const BasicEntityRatingFieldSpecShape = Gubu(
field: Open({
id: String,
name: String,
kind: Skip(String),
label: Default('', String),
kind: '',
label: '',
ux: Open({
kind: Exact('Rating'),
edit: Default(true),
Expand Down
8 changes: 4 additions & 4 deletions src/lib/BasicEntitySliderField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ const BasicEntitySliderFieldSpecShape = Gubu(
field: Open({
id: String,
name: String,
kind: Skip(String),
label: Default('', String),
kind: '',
label: '',
ux: Open({
kind: Exact('Slider'),
edit: Default(true),
step: Default(1),
min: Default(0),
max: Default(100),
props: {
props: Open({
marks: Default({}),
valueLabelDisplay: Exact('on', 'auto', 'off').Default('auto'),
direction: Exact('horizontal', 'vertical').Default('horizontal'),
track: Exact('normal', 'inverted', 'disabled').Default('normal'),
},
}),
}),
}),
}),
Expand Down
4 changes: 2 additions & 2 deletions src/lib/BasicEntityTextBoxField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const BasicEntityTextBoxFieldSpecShape = Gubu(
field: Open({
id: String,
name: String,
kind: Skip(String),
label: Default('', String),
kind: '',
label: '',
ux: Open({
kind: Exact('TextBox'),
edit: Default(true),
Expand Down
4 changes: 2 additions & 2 deletions src/lib/BasicEntityTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const BasicEntityTextFieldSpecShape = Gubu(
field: Open({
id: String,
name: String,
kind: Skip(String),
label: Default('', String),
kind: '',
label: '',
ux: Open({
kind: Exact('Text'),
edit: Default(true),
Expand Down
4 changes: 2 additions & 2 deletions src/lib/BasicEntityTimeField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const BasicEntityTimeFieldSpecShape = Gubu(
field: Open({
id: String,
name: String,
kind: Skip(String),
label: Default('', String),
kind: '',
label: '',
ux: Open({
kind: Exact('Time'),
edit: Default(true),
Expand Down

0 comments on commit 669a533

Please sign in to comment.