@dxos/react-ui-form 0.8.4-main.e8ec1fe → 0.8.4-main.effb148878
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +102 -5
- package/README.md +0 -1
- package/dist/lib/browser/index.mjs +3240 -2345
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/translations.mjs +83 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +3240 -2345
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/translations.mjs +85 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/types/src/components/FieldEditor/FieldEditor.d.ts +8 -7
- package/dist/types/src/components/FieldEditor/FieldEditor.d.ts.map +1 -1
- package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts +69 -59
- package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/Form.d.ts +123 -27
- package/dist/types/src/components/Form/Form.d.ts.map +1 -1
- package/dist/types/src/components/Form/Form.stories.d.ts +175 -137
- package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField.d.ts +48 -0
- package/dist/types/src/components/Form/FormField.d.ts.map +1 -0
- package/dist/types/src/components/Form/FormFieldComponent.d.ts +95 -0
- package/dist/types/src/components/Form/FormFieldComponent.d.ts.map +1 -0
- package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts +9 -0
- package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts.map +1 -0
- package/dist/types/src/components/Form/FormFieldSet.d.ts +21 -0
- package/dist/types/src/components/Form/FormFieldSet.d.ts.map +1 -0
- package/dist/types/src/components/Form/FormTooltipsContext.d.ts +19 -0
- package/dist/types/src/components/Form/FormTooltipsContext.d.ts.map +1 -0
- package/dist/types/src/components/Form/Layout/FormLayout.d.ts +25 -0
- package/dist/types/src/components/Form/Layout/FormLayout.d.ts.map +1 -0
- package/dist/types/src/components/Form/Layout/FormLayout.stories.d.ts +116 -0
- package/dist/types/src/components/Form/Layout/FormLayout.stories.d.ts.map +1 -0
- package/dist/types/src/components/Form/Layout/annotation.d.ts +30 -0
- package/dist/types/src/components/Form/Layout/annotation.d.ts.map +1 -0
- package/dist/types/src/components/Form/Layout/index.d.ts +4 -0
- package/dist/types/src/components/Form/Layout/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/Layout/parser.d.ts +31 -0
- package/dist/types/src/components/Form/Layout/parser.d.ts.map +1 -0
- package/dist/types/src/components/Form/Layout/parser.test.d.ts +2 -0
- package/dist/types/src/components/Form/Layout/parser.test.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/ArrayField.d.ts +18 -0
- package/dist/types/src/components/Form/fields/ArrayField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/BooleanField.d.ts +4 -0
- package/dist/types/src/components/Form/fields/BooleanField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/DateField.d.ts +4 -0
- package/dist/types/src/components/Form/fields/DateField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/GeoPointField.d.ts +5 -0
- package/dist/types/src/components/Form/fields/GeoPointField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/MarkdownField.d.ts +11 -0
- package/dist/types/src/components/Form/fields/MarkdownField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/MarkdownField.stories.d.ts +85 -0
- package/dist/types/src/components/Form/fields/MarkdownField.stories.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/NumberField.d.ts +4 -0
- package/dist/types/src/components/Form/fields/NumberField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/RefField.d.ts +22 -0
- package/dist/types/src/components/Form/fields/RefField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/SelectField.d.ts +13 -0
- package/dist/types/src/components/Form/fields/SelectField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/SelectOptionField.d.ts +5 -0
- package/dist/types/src/components/Form/fields/SelectOptionField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts +85 -0
- package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/TextAreaField.d.ts +4 -0
- package/dist/types/src/components/Form/fields/TextAreaField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/TextField.d.ts +4 -0
- package/dist/types/src/components/Form/fields/TextField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/TupleField.d.ts +6 -0
- package/dist/types/src/components/Form/fields/TupleField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/index.d.ts +13 -0
- package/dist/types/src/components/Form/fields/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/index.d.ts +4 -4
- package/dist/types/src/components/Form/index.d.ts.map +1 -1
- package/dist/types/src/components/ObjectForm/ObjectForm.d.ts +8 -0
- package/dist/types/src/components/ObjectForm/ObjectForm.d.ts.map +1 -0
- package/dist/types/src/components/ObjectForm/index.d.ts +2 -0
- package/dist/types/src/components/ObjectForm/index.d.ts.map +1 -0
- package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts +37 -10
- package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts.map +1 -1
- package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts +65 -58
- package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts.map +1 -1
- package/dist/types/src/components/ObjectProperties/ObjectProperties.d.ts +9 -0
- package/dist/types/src/components/ObjectProperties/ObjectProperties.d.ts.map +1 -0
- package/dist/types/src/components/ObjectProperties/ObjectProperties.stories.d.ts +128 -0
- package/dist/types/src/components/ObjectProperties/ObjectProperties.stories.d.ts.map +1 -0
- package/dist/types/src/components/ObjectProperties/ObjectProperties.test.d.ts +2 -0
- package/dist/types/src/components/ObjectProperties/ObjectProperties.test.d.ts.map +1 -0
- package/dist/types/src/components/ObjectProperties/index.d.ts +2 -0
- package/dist/types/src/components/ObjectProperties/index.d.ts.map +1 -0
- package/dist/types/src/components/ObjectTree/ObjectTree.d.ts +9 -0
- package/dist/types/src/components/ObjectTree/ObjectTree.d.ts.map +1 -0
- package/dist/types/src/components/ObjectTree/ObjectTree.stories.d.ts +87 -0
- package/dist/types/src/components/ObjectTree/ObjectTree.stories.d.ts.map +1 -0
- package/dist/types/src/components/ObjectTree/index.d.ts +2 -0
- package/dist/types/src/components/ObjectTree/index.d.ts.map +1 -0
- package/dist/types/src/components/Settings/Settings.d.ts +51 -0
- package/dist/types/src/components/Settings/Settings.d.ts.map +1 -0
- package/dist/types/src/components/Settings/Settings.stories.d.ts +85 -0
- package/dist/types/src/components/Settings/Settings.stories.d.ts.map +1 -0
- package/dist/types/src/components/Settings/SettingsFieldSet.d.ts +43 -0
- package/dist/types/src/components/Settings/SettingsFieldSet.d.ts.map +1 -0
- package/dist/types/src/components/Settings/SettingsItem.d.ts +16 -0
- package/dist/types/src/components/Settings/SettingsItem.d.ts.map +1 -0
- package/dist/types/src/components/Settings/SettingsSelectField.d.ts +18 -0
- package/dist/types/src/components/Settings/SettingsSelectField.d.ts.map +1 -0
- package/dist/types/src/components/Settings/index.d.ts +4 -0
- package/dist/types/src/components/Settings/index.d.ts.map +1 -0
- package/dist/types/src/components/ViewEditor/ViewEditor.d.ts +14 -18
- package/dist/types/src/components/ViewEditor/ViewEditor.d.ts.map +1 -1
- package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts +71 -64
- package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +4 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/testing.d.ts +13 -6
- package/dist/types/src/components/testing.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +2 -3
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useFormHandler.d.ts +82 -0
- package/dist/types/src/hooks/useFormHandler.d.ts.map +1 -0
- package/dist/types/src/hooks/useKeyHandler.d.ts +7 -0
- package/dist/types/src/hooks/useKeyHandler.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +0 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +66 -59
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/util/field-type.d.ts +19 -0
- package/dist/types/src/util/field-type.d.ts.map +1 -0
- package/dist/types/src/util/field.d.ts +3 -3
- package/dist/types/src/util/field.d.ts.map +1 -1
- package/dist/types/src/util/formatting.d.ts +2 -2
- package/dist/types/src/util/formatting.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +2 -1
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/properties.d.ts +17 -0
- package/dist/types/src/util/properties.d.ts.map +1 -0
- package/dist/types/src/util/properties.test.d.ts +2 -0
- package/dist/types/src/util/properties.test.d.ts.map +1 -0
- package/dist/types/src/util/refs.d.ts +2 -2
- package/dist/types/src/util/refs.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +61 -52
- package/src/components/FieldEditor/FieldEditor.stories.tsx +44 -25
- package/src/components/FieldEditor/FieldEditor.test.tsx +0 -1
- package/src/components/FieldEditor/FieldEditor.tsx +84 -84
- package/src/components/Form/AUDIT.md +17 -0
- package/src/components/Form/Form.stories.tsx +134 -252
- package/src/components/Form/Form.tsx +417 -109
- package/src/components/Form/FormField.tsx +332 -0
- package/src/components/Form/FormFieldComponent.stories.tsx +65 -0
- package/src/components/Form/FormFieldComponent.tsx +206 -0
- package/src/components/Form/FormFieldSet.tsx +173 -0
- package/src/components/Form/FormTooltipsContext.ts +25 -0
- package/src/components/Form/Layout/FormLayout.stories.tsx +339 -0
- package/src/components/Form/Layout/FormLayout.tsx +123 -0
- package/src/components/Form/Layout/annotation.ts +38 -0
- package/src/components/Form/Layout/index.ts +7 -0
- package/src/components/Form/Layout/parser.test.ts +120 -0
- package/src/components/Form/Layout/parser.ts +167 -0
- package/src/components/Form/README.md +3 -0
- package/src/components/Form/fields/ArrayField.tsx +185 -0
- package/src/components/Form/fields/BooleanField.tsx +22 -0
- package/src/components/Form/fields/DateField.tsx +95 -0
- package/src/components/Form/fields/GeoPointField.tsx +124 -0
- package/src/components/Form/fields/MarkdownField.stories.tsx +206 -0
- package/src/components/Form/fields/MarkdownField.tsx +168 -0
- package/src/components/Form/fields/NumberField.tsx +39 -0
- package/src/components/Form/fields/RefField.tsx +232 -0
- package/src/components/Form/fields/SelectField.tsx +77 -0
- package/src/components/Form/{custom/SelectOptionsInput.stories.tsx → fields/SelectOptionField.stories.tsx} +23 -18
- package/src/components/Form/{custom/SelectOptionsInput.tsx → fields/SelectOptionField.tsx} +32 -25
- package/src/components/Form/fields/TextAreaField.tsx +38 -0
- package/src/components/Form/fields/TextField.tsx +38 -0
- package/src/components/Form/{custom/TupleInput.tsx → fields/TupleField.tsx} +17 -9
- package/src/components/Form/fields/index.ts +16 -0
- package/src/components/Form/index.ts +5 -4
- package/src/components/ObjectForm/ObjectForm.tsx +115 -0
- package/src/components/{ControlSection → ObjectForm}/index.ts +1 -1
- package/src/components/ObjectPicker/ObjectPicker.stories.tsx +26 -21
- package/src/components/ObjectPicker/ObjectPicker.tsx +122 -81
- package/src/components/ObjectProperties/ObjectProperties.stories.tsx +350 -0
- package/src/components/ObjectProperties/ObjectProperties.test.tsx +108 -0
- package/src/components/ObjectProperties/ObjectProperties.tsx +147 -0
- package/src/components/ObjectProperties/index.ts +5 -0
- package/src/components/ObjectTree/ObjectTree.stories.tsx +134 -0
- package/src/components/ObjectTree/ObjectTree.tsx +190 -0
- package/src/components/ObjectTree/index.ts +5 -0
- package/src/components/Settings/AUDIT.md +51 -0
- package/src/components/Settings/Settings.stories.tsx +104 -0
- package/src/components/Settings/Settings.tsx +81 -0
- package/src/components/Settings/SettingsFieldSet.tsx +257 -0
- package/src/components/Settings/SettingsItem.tsx +58 -0
- package/src/components/Settings/SettingsSelectField.tsx +59 -0
- package/src/components/Settings/index.ts +7 -0
- package/src/components/ViewEditor/ViewEditor.stories.tsx +62 -71
- package/src/components/ViewEditor/ViewEditor.test.tsx +10 -10
- package/src/components/ViewEditor/ViewEditor.tsx +308 -217
- package/src/components/index.ts +4 -1
- package/src/components/testing.tsx +24 -11
- package/src/hooks/index.ts +2 -3
- package/src/hooks/useFormHandler.ts +380 -0
- package/src/hooks/useKeyHandler.tsx +37 -0
- package/src/index.ts +0 -4
- package/src/translations.ts +71 -64
- package/src/util/field-type.ts +60 -0
- package/src/util/field.ts +25 -25
- package/src/util/formatting.ts +22 -22
- package/src/util/index.ts +2 -1
- package/src/util/properties.test.ts +78 -0
- package/src/util/properties.ts +38 -0
- package/src/util/refs.ts +13 -15
- package/src/vite-env.d.ts +10 -0
- package/dist/types/src/components/ControlSection/ControlSection.d.ts +0 -23
- package/dist/types/src/components/ControlSection/ControlSection.d.ts.map +0 -1
- package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts +0 -83
- package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts.map +0 -1
- package/dist/types/src/components/ControlSection/index.d.ts +0 -2
- package/dist/types/src/components/ControlSection/index.d.ts.map +0 -1
- package/dist/types/src/components/Form/ArrayField.d.ts +0 -16
- package/dist/types/src/components/Form/ArrayField.d.ts.map +0 -1
- package/dist/types/src/components/Form/Defaults.d.ts +0 -14
- package/dist/types/src/components/Form/Defaults.d.ts.map +0 -1
- package/dist/types/src/components/Form/FormActions.d.ts +0 -9
- package/dist/types/src/components/Form/FormActions.d.ts.map +0 -1
- package/dist/types/src/components/Form/FormContent.d.ts +0 -63
- package/dist/types/src/components/Form/FormContent.d.ts.map +0 -1
- package/dist/types/src/components/Form/FormContext.d.ts +0 -23
- package/dist/types/src/components/Form/FormContext.d.ts.map +0 -1
- package/dist/types/src/components/Form/Input.d.ts +0 -29
- package/dist/types/src/components/Form/Input.d.ts.map +0 -1
- package/dist/types/src/components/Form/RefField.d.ts +0 -22
- package/dist/types/src/components/Form/RefField.d.ts.map +0 -1
- package/dist/types/src/components/Form/custom/GeoPointInput.d.ts +0 -4
- package/dist/types/src/components/Form/custom/GeoPointInput.d.ts.map +0 -1
- package/dist/types/src/components/Form/custom/SelectOptionsInput.d.ts +0 -4
- package/dist/types/src/components/Form/custom/SelectOptionsInput.d.ts.map +0 -1
- package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts +0 -78
- package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts.map +0 -1
- package/dist/types/src/components/Form/custom/TupleInput.d.ts +0 -6
- package/dist/types/src/components/Form/custom/TupleInput.d.ts.map +0 -1
- package/dist/types/src/components/Form/custom/index.d.ts +0 -4
- package/dist/types/src/components/Form/custom/index.d.ts.map +0 -1
- package/dist/types/src/components/Form/factory.d.ts +0 -8
- package/dist/types/src/components/Form/factory.d.ts.map +0 -1
- package/dist/types/src/hooks/useForm.d.ts +0 -67
- package/dist/types/src/hooks/useForm.d.ts.map +0 -1
- package/dist/types/src/hooks/useQueryRefOptions.d.ts +0 -29
- package/dist/types/src/hooks/useQueryRefOptions.d.ts.map +0 -1
- package/dist/types/src/hooks/useRefQueryLookupHandler.d.ts +0 -8
- package/dist/types/src/hooks/useRefQueryLookupHandler.d.ts.map +0 -1
- package/dist/types/src/util/schema.d.ts +0 -3
- package/dist/types/src/util/schema.d.ts.map +0 -1
- package/src/components/ControlSection/ControlSection.stories.tsx +0 -38
- package/src/components/ControlSection/ControlSection.tsx +0 -153
- package/src/components/Form/ArrayField.tsx +0 -125
- package/src/components/Form/Defaults.tsx +0 -205
- package/src/components/Form/FormActions.tsx +0 -54
- package/src/components/Form/FormContent.tsx +0 -362
- package/src/components/Form/FormContext.tsx +0 -110
- package/src/components/Form/Input.tsx +0 -54
- package/src/components/Form/RefField.tsx +0 -283
- package/src/components/Form/custom/GeoPointInput.tsx +0 -80
- package/src/components/Form/custom/index.ts +0 -7
- package/src/components/Form/factory.tsx +0 -31
- package/src/hooks/useForm.ts +0 -296
- package/src/hooks/useQueryRefOptions.ts +0 -62
- package/src/hooks/useRefQueryLookupHandler.ts +0 -39
- package/src/util/schema.ts +0 -12
package/package.json
CHANGED
|
@@ -1,82 +1,91 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-form",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.effb148878",
|
|
4
4
|
"description": "Data components.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
-
"
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/dxos/dxos"
|
|
10
|
+
},
|
|
11
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
8
12
|
"author": "DXOS.org",
|
|
9
13
|
"type": "module",
|
|
14
|
+
"imports": {
|
|
15
|
+
"#translations": "./src/translations.ts"
|
|
16
|
+
},
|
|
10
17
|
"exports": {
|
|
11
18
|
".": {
|
|
12
19
|
"source": "./src/index.ts",
|
|
13
20
|
"types": "./dist/types/src/index.d.ts",
|
|
14
21
|
"browser": "./dist/lib/browser/index.mjs",
|
|
15
22
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
23
|
+
},
|
|
24
|
+
"./translations": {
|
|
25
|
+
"source": "./src/translations.ts",
|
|
26
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
27
|
+
"browser": "./dist/lib/browser/translations.mjs",
|
|
28
|
+
"node": "./dist/lib/node-esm/translations.mjs"
|
|
16
29
|
}
|
|
17
30
|
},
|
|
18
31
|
"types": "dist/types/src/index.d.ts",
|
|
19
|
-
"typesVersions": {
|
|
20
|
-
"*": {}
|
|
21
|
-
},
|
|
22
32
|
"files": [
|
|
23
33
|
"dist",
|
|
24
34
|
"src"
|
|
25
35
|
],
|
|
26
36
|
"dependencies": {
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"@fluentui/react-tabster": "
|
|
30
|
-
"@preact-signals/safe-react": "^0.9.0",
|
|
31
|
-
"@preact/signals-react": "^3.2.0",
|
|
37
|
+
"@codemirror/lang-xml": "^6.1.0",
|
|
38
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
39
|
+
"@fluentui/react-tabster": "9.26.11",
|
|
32
40
|
"@radix-ui/react-context": "1.1.1",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/echo-
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/react-client": "0.8.4-main.
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/react-ui-
|
|
48
|
-
"@dxos/react-ui-
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/react-ui-
|
|
51
|
-
"@dxos/react-ui-
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/schema": "0.8.4-main.
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/util": "0.8.4-main.e8ec1fe"
|
|
41
|
+
"@radix-ui/react-use-controllable-state": "1.1.0",
|
|
42
|
+
"date-fns": "^3.6.0",
|
|
43
|
+
"tabster": "^8.5.5",
|
|
44
|
+
"@dxos/async": "0.8.4-main.effb148878",
|
|
45
|
+
"@dxos/echo-atom": "0.8.4-main.effb148878",
|
|
46
|
+
"@dxos/echo-react": "0.8.4-main.effb148878",
|
|
47
|
+
"@dxos/echo-db": "0.8.4-main.effb148878",
|
|
48
|
+
"@dxos/effect": "0.8.4-main.effb148878",
|
|
49
|
+
"@dxos/invariant": "0.8.4-main.effb148878",
|
|
50
|
+
"@dxos/keys": "0.8.4-main.effb148878",
|
|
51
|
+
"@dxos/echo": "0.8.4-main.effb148878",
|
|
52
|
+
"@dxos/lit-ui": "0.8.4-main.effb148878",
|
|
53
|
+
"@dxos/react-client": "0.8.4-main.effb148878",
|
|
54
|
+
"@dxos/log": "0.8.4-main.effb148878",
|
|
55
|
+
"@dxos/react-ui-components": "0.8.4-main.effb148878",
|
|
56
|
+
"@dxos/react-ui-editor": "0.8.4-main.effb148878",
|
|
57
|
+
"@dxos/react-ui-list": "0.8.4-main.effb148878",
|
|
58
|
+
"@dxos/react-ui-pickers": "0.8.4-main.effb148878",
|
|
59
|
+
"@dxos/react-ui-search": "0.8.4-main.effb148878",
|
|
60
|
+
"@dxos/types": "0.8.4-main.effb148878",
|
|
61
|
+
"@dxos/schema": "0.8.4-main.effb148878",
|
|
62
|
+
"@dxos/util": "0.8.4-main.effb148878",
|
|
63
|
+
"@dxos/ui-editor": "0.8.4-main.effb148878"
|
|
57
64
|
},
|
|
58
65
|
"devDependencies": {
|
|
59
|
-
"@types/
|
|
60
|
-
"@types/react": "~19.2.
|
|
61
|
-
"
|
|
62
|
-
"effect": "3.18.3",
|
|
66
|
+
"@types/react": "~19.2.7",
|
|
67
|
+
"@types/react-dom": "~19.2.3",
|
|
68
|
+
"effect": "3.20.0",
|
|
63
69
|
"fast-check": "^3.19.0",
|
|
64
|
-
"react": "~19.2.
|
|
65
|
-
"react-dom": "~19.2.
|
|
66
|
-
"vite": "
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/react-
|
|
71
|
-
"@dxos/react-ui
|
|
72
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
70
|
+
"react": "~19.2.3",
|
|
71
|
+
"react-dom": "~19.2.3",
|
|
72
|
+
"vite": "^8.0.14",
|
|
73
|
+
"@dxos/effect-proto": "0.8.4-main.effb148878",
|
|
74
|
+
"@dxos/protocols": "0.8.4-main.effb148878",
|
|
75
|
+
"@dxos/random": "0.8.4-main.effb148878",
|
|
76
|
+
"@dxos/react-client": "0.8.4-main.effb148878",
|
|
77
|
+
"@dxos/react-ui": "0.8.4-main.effb148878",
|
|
78
|
+
"@dxos/storybook-utils": "0.8.4-main.effb148878",
|
|
79
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.effb148878",
|
|
80
|
+
"@dxos/ui-theme": "0.8.4-main.effb148878",
|
|
81
|
+
"@dxos/ui-types": "0.8.4-main.effb148878"
|
|
73
82
|
},
|
|
74
83
|
"peerDependencies": {
|
|
75
|
-
"effect": "
|
|
76
|
-
"react": "
|
|
77
|
-
"react-dom": "
|
|
78
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
79
|
-
"@dxos/
|
|
84
|
+
"effect": "3.20.0",
|
|
85
|
+
"react": "~19.2.3",
|
|
86
|
+
"react-dom": "~19.2.3",
|
|
87
|
+
"@dxos/react-ui": "0.8.4-main.effb148878",
|
|
88
|
+
"@dxos/ui-theme": "0.8.4-main.effb148878"
|
|
80
89
|
},
|
|
81
90
|
"publishConfig": {
|
|
82
91
|
"access": "public"
|
|
@@ -5,51 +5,73 @@
|
|
|
5
5
|
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
6
6
|
import React, { useEffect, useMemo } from 'react';
|
|
7
7
|
|
|
8
|
+
import { Filter, Query, Type } from '@dxos/echo';
|
|
8
9
|
import { createEchoSchema } from '@dxos/echo/testing';
|
|
9
10
|
import { log } from '@dxos/log';
|
|
10
|
-
import { withTheme } from '@dxos/react-ui/testing';
|
|
11
|
-
import { ProjectionModel } from '@dxos/schema';
|
|
12
|
-
import {
|
|
11
|
+
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
12
|
+
import { ProjectionModel, ViewModel, createEchoChangeCallback } from '@dxos/schema';
|
|
13
|
+
import { Example } from '@dxos/schema/testing';
|
|
13
14
|
|
|
14
|
-
import { translations } from '
|
|
15
|
-
import { FIELD_EDITOR_DEBUG_SYMBOL, TestLayout, TestPanel } from '../testing';
|
|
15
|
+
import { translations } from '#translations';
|
|
16
16
|
|
|
17
|
+
import { FIELD_EDITOR_DEBUG_SYMBOL, TestLayout } from '../testing';
|
|
17
18
|
import { FieldEditor, type FieldEditorProps } from './FieldEditor';
|
|
18
19
|
|
|
19
|
-
// Type definition for debug objects exposed to tests.
|
|
20
20
|
export type FieldEditorDebugObjects = {
|
|
21
21
|
props: FieldEditorProps;
|
|
22
22
|
projection: ProjectionModel;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
const
|
|
25
|
+
const useTestProjection = () => {
|
|
26
|
+
return useMemo(() => {
|
|
27
|
+
const schema = createEchoSchema(Type.getSchema(Example));
|
|
28
|
+
const view = ViewModel.make({
|
|
29
|
+
name: 'Test',
|
|
30
|
+
query: Query.select(Filter.type(Example)),
|
|
31
|
+
jsonSchema: schema.jsonSchema,
|
|
32
|
+
});
|
|
33
|
+
const projection = new ProjectionModel({
|
|
34
|
+
view,
|
|
35
|
+
baseSchema: schema.jsonSchema,
|
|
36
|
+
change: createEchoChangeCallback(view, schema),
|
|
37
|
+
});
|
|
38
|
+
projection.normalizeView();
|
|
39
|
+
return { view, projection };
|
|
40
|
+
}, []);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const DefaultStory = () => {
|
|
44
|
+
const { view, projection } = useTestProjection();
|
|
45
|
+
|
|
26
46
|
const handleComplete: FieldEditorProps['onSave'] = () => {
|
|
27
|
-
log.info('onClose'
|
|
47
|
+
log.info('onClose');
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const props: FieldEditorProps = {
|
|
51
|
+
projection,
|
|
52
|
+
field: view.projection.fields[0],
|
|
53
|
+
onSave: handleComplete,
|
|
28
54
|
};
|
|
29
55
|
|
|
30
56
|
// Expose objects on window for test access.
|
|
31
57
|
useEffect(() => {
|
|
32
|
-
props.projection.normalizeView();
|
|
33
|
-
|
|
34
58
|
if (typeof window !== 'undefined') {
|
|
35
59
|
(window as any)[FIELD_EDITOR_DEBUG_SYMBOL] = {
|
|
36
60
|
props,
|
|
37
|
-
projection
|
|
61
|
+
projection,
|
|
38
62
|
} satisfies FieldEditorDebugObjects;
|
|
39
63
|
}
|
|
40
|
-
}, [props,
|
|
64
|
+
}, [props, projection]);
|
|
41
65
|
|
|
42
66
|
// NOTE(ZaymonFC): This looks awkward but it resolves an infinite parsing issue with sb.
|
|
43
67
|
const json = useMemo(
|
|
44
|
-
() => JSON.parse(JSON.stringify({ props, projection
|
|
45
|
-
[JSON.stringify(props), JSON.stringify(
|
|
68
|
+
() => JSON.parse(JSON.stringify({ props, projection })),
|
|
69
|
+
[JSON.stringify(props), JSON.stringify(projection)],
|
|
46
70
|
);
|
|
47
71
|
|
|
48
72
|
return (
|
|
49
73
|
<TestLayout json={json}>
|
|
50
|
-
<
|
|
51
|
-
<FieldEditor {...props} onSave={handleComplete} />
|
|
52
|
-
</TestPanel>
|
|
74
|
+
<FieldEditor {...props} />
|
|
53
75
|
</TestLayout>
|
|
54
76
|
);
|
|
55
77
|
};
|
|
@@ -58,10 +80,13 @@ const meta = {
|
|
|
58
80
|
title: 'ui/react-ui-form/FieldEditor',
|
|
59
81
|
component: FieldEditor as any,
|
|
60
82
|
render: DefaultStory,
|
|
61
|
-
decorators: [withTheme],
|
|
83
|
+
decorators: [withTheme(), withLayout({ layout: 'fullscreen' })],
|
|
62
84
|
parameters: {
|
|
63
85
|
layout: 'fullscreen',
|
|
64
86
|
translations,
|
|
87
|
+
controls: {
|
|
88
|
+
disabled: true,
|
|
89
|
+
},
|
|
65
90
|
},
|
|
66
91
|
} satisfies Meta<typeof DefaultStory>;
|
|
67
92
|
|
|
@@ -69,10 +94,4 @@ export default meta;
|
|
|
69
94
|
|
|
70
95
|
type Story = StoryObj<typeof meta>;
|
|
71
96
|
|
|
72
|
-
export const Default: Story = {
|
|
73
|
-
args: {
|
|
74
|
-
projection: new ProjectionModel(createEchoSchema(TestSchema).jsonSchema, testView.projection),
|
|
75
|
-
field: testView.projection.fields[0],
|
|
76
|
-
},
|
|
77
|
-
parameters: { controls: { disabled: true } },
|
|
78
|
-
};
|
|
97
|
+
export const Default: Story = {};
|
|
@@ -9,7 +9,6 @@ import { afterEach, describe, expect, test } from 'vitest';
|
|
|
9
9
|
import { ProjectionModel } from '@dxos/schema';
|
|
10
10
|
|
|
11
11
|
import { FIELD_EDITOR_DEBUG_SYMBOL } from '../testing';
|
|
12
|
-
|
|
13
12
|
import * as stories from './FieldEditor.stories';
|
|
14
13
|
import { type FieldEditorDebugObjects } from './FieldEditor.stories';
|
|
15
14
|
|
|
@@ -4,49 +4,41 @@
|
|
|
4
4
|
|
|
5
5
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
6
6
|
|
|
7
|
-
import { type
|
|
8
|
-
import {
|
|
7
|
+
import { Obj, type SchemaRegistry, Type, type View } from '@dxos/echo';
|
|
8
|
+
import { Format, FormatEnums, formatToType } from '@dxos/echo/internal';
|
|
9
|
+
import { type SchemaProperty } from '@dxos/effect';
|
|
9
10
|
import { log } from '@dxos/log';
|
|
10
11
|
import { useAsyncEffect, useTranslation } from '@dxos/react-ui';
|
|
11
12
|
import {
|
|
12
|
-
type FieldType,
|
|
13
13
|
type ProjectionModel,
|
|
14
14
|
type PropertyType,
|
|
15
|
-
type SchemaProperty,
|
|
16
15
|
formatToAdditionalPropertyAttributes,
|
|
17
16
|
getFormatSchema,
|
|
18
|
-
getSchemaProperties,
|
|
19
|
-
sortProperties,
|
|
20
17
|
} from '@dxos/schema';
|
|
21
18
|
|
|
22
|
-
import { translationKey } from '
|
|
23
|
-
|
|
19
|
+
import { translationKey } from '#translations';
|
|
20
|
+
|
|
21
|
+
import { getFormProperties } from '../../util';
|
|
22
|
+
import { Form, type FormFieldMap, type FormRootProps, SelectField, SelectOptionField } from '../Form';
|
|
24
23
|
|
|
25
24
|
export type FieldEditorProps = {
|
|
26
25
|
projection: ProjectionModel;
|
|
27
|
-
field: FieldType;
|
|
28
|
-
registry?: SchemaRegistry;
|
|
26
|
+
field: View.FieldType;
|
|
27
|
+
registry?: SchemaRegistry.SchemaRegistry;
|
|
28
|
+
view?: Obj.Unknown;
|
|
29
29
|
onSave: () => void;
|
|
30
30
|
onCancel?: () => void;
|
|
31
|
-
} & Pick<
|
|
31
|
+
} & Pick<FormRootProps<any>, 'readonly'>;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* Displays a Form representing the metadata for a given `Field` and `View`.
|
|
35
35
|
*/
|
|
36
|
-
export const FieldEditor = ({
|
|
37
|
-
readonly,
|
|
38
|
-
projection,
|
|
39
|
-
field,
|
|
40
|
-
registry,
|
|
41
|
-
onSave,
|
|
42
|
-
onCancel,
|
|
43
|
-
outerSpacing,
|
|
44
|
-
}: FieldEditorProps) => {
|
|
36
|
+
export const FieldEditor = ({ readonly, projection, field, registry, view, onSave, onCancel }: FieldEditorProps) => {
|
|
45
37
|
const { t } = useTranslation(translationKey);
|
|
46
38
|
const [props, setProps] = useState<PropertyType>(projection.getFieldProjection(field.id).props);
|
|
47
39
|
useEffect(() => setProps(projection.getFieldProjection(field.id).props), [field, projection]);
|
|
48
40
|
|
|
49
|
-
const [schemas, setSchemas] = useState<
|
|
41
|
+
const [schemas, setSchemas] = useState<Type.Type[]>([]);
|
|
50
42
|
useAsyncEffect(async () => {
|
|
51
43
|
if (!registry) {
|
|
52
44
|
return;
|
|
@@ -61,20 +53,59 @@ export const FieldEditor = ({
|
|
|
61
53
|
return () => subscription?.();
|
|
62
54
|
}, [registry]);
|
|
63
55
|
|
|
64
|
-
const [referenceSchema, setReferenceSchema] = useState<
|
|
56
|
+
const [referenceSchema, setReferenceSchema] = useState<Type.Type>();
|
|
65
57
|
useEffect(() => {
|
|
66
|
-
setReferenceSchema(schemas.find((schema) => schema
|
|
58
|
+
setReferenceSchema(schemas.find((schema) => Type.getTypename(schema) === props?.referenceSchema));
|
|
67
59
|
}, [schemas, props?.referenceSchema]);
|
|
68
60
|
|
|
69
61
|
// TODO(burdon): Need to wrap otherwise throws error:
|
|
70
62
|
// Class constructor SchemaClass cannot be invoked without 'new'.
|
|
71
63
|
const [{ fieldSchema }, setFieldSchema] = useState({ fieldSchema: getFormatSchema(props?.format) });
|
|
72
64
|
|
|
73
|
-
const
|
|
65
|
+
const fieldMap = useMemo<FormFieldMap>(
|
|
66
|
+
() => ({
|
|
67
|
+
['format' satisfies keyof PropertyType]: (props) => (
|
|
68
|
+
<SelectField
|
|
69
|
+
{...props}
|
|
70
|
+
options={FormatEnums.filter((value) => value !== Format.TypeFormat.None).map((value) => ({
|
|
71
|
+
value,
|
|
72
|
+
label: t(`format.${value}.label`),
|
|
73
|
+
}))}
|
|
74
|
+
/>
|
|
75
|
+
),
|
|
76
|
+
['referenceSchema' satisfies keyof PropertyType]: (props) => (
|
|
77
|
+
<SelectField
|
|
78
|
+
{...props}
|
|
79
|
+
options={schemas
|
|
80
|
+
.map((schema) => Type.getTypename(schema))
|
|
81
|
+
.filter((typename): typename is string => typename != null)
|
|
82
|
+
.map((typename) => ({
|
|
83
|
+
value: typename,
|
|
84
|
+
}))}
|
|
85
|
+
/>
|
|
86
|
+
),
|
|
87
|
+
['referencePath' satisfies keyof PropertyType]: (props) => (
|
|
88
|
+
<SelectField
|
|
89
|
+
{...props}
|
|
90
|
+
options={
|
|
91
|
+
referenceSchema
|
|
92
|
+
? getFormProperties(Type.getSchema(referenceSchema).ast)
|
|
93
|
+
.sort((a, b) => a.name.toString().localeCompare(b.name.toString()))
|
|
94
|
+
.map((p) => ({ value: p.name.toString() }))
|
|
95
|
+
: []
|
|
96
|
+
}
|
|
97
|
+
/>
|
|
98
|
+
),
|
|
99
|
+
['options' satisfies keyof PropertyType]: (props) => <SelectOptionField {...props} />,
|
|
100
|
+
}),
|
|
101
|
+
[t, schemas, referenceSchema],
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
const propIsNotType = useCallback((props: SchemaProperty[]) => props.filter((prop) => prop.name !== 'type'), []);
|
|
105
|
+
|
|
106
|
+
const handleValuesChanged = useCallback<NonNullable<FormRootProps<PropertyType>['onValuesChanged']>>(
|
|
74
107
|
(_props) => {
|
|
75
|
-
// TODO(
|
|
76
|
-
// TODO(Zaymon): Workout why old and new format values are the same sometimes even when
|
|
77
|
-
// selecting novel format values.
|
|
108
|
+
// TODO(Zaymon): Workout why old and new format values are the same sometimes even when selecting novel format values.
|
|
78
109
|
setFieldSchema((prev) => {
|
|
79
110
|
const fieldSchema = getFormatSchema(_props.format);
|
|
80
111
|
if (prev.fieldSchema === fieldSchema) {
|
|
@@ -84,8 +115,8 @@ export const FieldEditor = ({
|
|
|
84
115
|
});
|
|
85
116
|
|
|
86
117
|
setReferenceSchema((prev) => {
|
|
87
|
-
if (_props.referenceSchema !== prev
|
|
88
|
-
const newSchema = schemas.find((schema) => schema
|
|
118
|
+
if (_props.referenceSchema !== (prev ? Type.getTypename(prev) : undefined)) {
|
|
119
|
+
const newSchema = schemas.find((schema) => Type.getTypename(schema) === _props.referenceSchema);
|
|
89
120
|
if (newSchema) {
|
|
90
121
|
return newSchema;
|
|
91
122
|
}
|
|
@@ -107,9 +138,9 @@ export const FieldEditor = ({
|
|
|
107
138
|
[schemas, props.format, props.referenceSchema],
|
|
108
139
|
);
|
|
109
140
|
|
|
110
|
-
const handleValidate = useCallback<NonNullable<
|
|
141
|
+
const handleValidate = useCallback<NonNullable<FormRootProps<PropertyType>['onValidate']>>(
|
|
111
142
|
({ property }) => {
|
|
112
|
-
if (property && projection.
|
|
143
|
+
if (property && projection.getFields().find((f) => f.path === property && f.path !== field.path)) {
|
|
113
144
|
return [
|
|
114
145
|
{
|
|
115
146
|
path: 'property',
|
|
@@ -118,84 +149,53 @@ export const FieldEditor = ({
|
|
|
118
149
|
];
|
|
119
150
|
}
|
|
120
151
|
},
|
|
121
|
-
[projection.
|
|
152
|
+
[projection.getFields(), field],
|
|
122
153
|
);
|
|
123
154
|
|
|
124
|
-
const handleSave = useCallback<NonNullable<
|
|
155
|
+
const handleSave = useCallback<NonNullable<FormRootProps<PropertyType>['onSave']>>(
|
|
125
156
|
(props) => {
|
|
126
|
-
|
|
157
|
+
if (view) {
|
|
158
|
+
Obj.update(view, () => {
|
|
159
|
+
projection.setFieldProjection({ field, props });
|
|
160
|
+
});
|
|
161
|
+
} else {
|
|
162
|
+
projection.setFieldProjection({ field, props });
|
|
163
|
+
}
|
|
127
164
|
onSave();
|
|
128
165
|
},
|
|
129
|
-
[projection, field, onSave],
|
|
166
|
+
[projection, field, view, onSave],
|
|
130
167
|
);
|
|
131
168
|
|
|
132
|
-
const handleCancel = useCallback<NonNullable<
|
|
169
|
+
const handleCancel = useCallback<NonNullable<FormRootProps<PropertyType>['onCancel']>>(() => {
|
|
170
|
+
onSave();
|
|
133
171
|
// Need to defer to allow form to close.
|
|
134
172
|
requestAnimationFrame(() => onCancel?.());
|
|
135
|
-
onSave();
|
|
136
173
|
}, [onSave]);
|
|
137
174
|
|
|
138
|
-
const custom: Partial<Record<string, InputComponent>> = useMemo(
|
|
139
|
-
() => ({
|
|
140
|
-
['format' satisfies keyof PropertyType]: (props) => (
|
|
141
|
-
<SelectInput
|
|
142
|
-
{...props}
|
|
143
|
-
options={FormatEnums.filter((value) => value !== FormatEnum.None).map((value) => ({
|
|
144
|
-
value,
|
|
145
|
-
label: t(`format ${value}`),
|
|
146
|
-
}))}
|
|
147
|
-
/>
|
|
148
|
-
),
|
|
149
|
-
['referenceSchema' satisfies keyof PropertyType]: (props) => (
|
|
150
|
-
<SelectInput
|
|
151
|
-
{...props}
|
|
152
|
-
options={schemas.map((schema) => ({
|
|
153
|
-
value: schema.typename,
|
|
154
|
-
}))}
|
|
155
|
-
/>
|
|
156
|
-
),
|
|
157
|
-
['referencePath' satisfies keyof PropertyType]: (props) => (
|
|
158
|
-
<SelectInput
|
|
159
|
-
{...props}
|
|
160
|
-
options={
|
|
161
|
-
referenceSchema
|
|
162
|
-
? getSchemaProperties(referenceSchema.ast)
|
|
163
|
-
.sort(sortProperties)
|
|
164
|
-
.map((p) => ({ value: p.name }))
|
|
165
|
-
: []
|
|
166
|
-
}
|
|
167
|
-
/>
|
|
168
|
-
),
|
|
169
|
-
['options' satisfies keyof PropertyType]: (props) => <SelectOptionInput {...props} />,
|
|
170
|
-
}),
|
|
171
|
-
[t, schemas, referenceSchema],
|
|
172
|
-
);
|
|
173
|
-
|
|
174
|
-
const propIsNotType = useCallback(
|
|
175
|
-
(props: SchemaProperty<PropertyType>[]) => props.filter((p) => p.name !== 'type'),
|
|
176
|
-
[],
|
|
177
|
-
);
|
|
178
|
-
|
|
179
175
|
if (!fieldSchema) {
|
|
180
176
|
log.warn('invalid format', { props });
|
|
181
177
|
return null;
|
|
182
178
|
}
|
|
183
179
|
|
|
184
180
|
return (
|
|
185
|
-
<Form<PropertyType>
|
|
181
|
+
<Form.Root<PropertyType>
|
|
186
182
|
key={field.id}
|
|
183
|
+
fieldMap={fieldMap}
|
|
187
184
|
autoFocus
|
|
188
185
|
readonly={readonly}
|
|
189
|
-
values={props}
|
|
190
186
|
schema={fieldSchema}
|
|
191
|
-
|
|
187
|
+
values={props}
|
|
188
|
+
exclude={propIsNotType}
|
|
192
189
|
sort={['property', 'format']}
|
|
193
190
|
onValuesChanged={handleValuesChanged}
|
|
194
191
|
onValidate={handleValidate}
|
|
195
192
|
onSave={handleSave}
|
|
196
193
|
onCancel={handleCancel}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
194
|
+
>
|
|
195
|
+
<Form.Content>
|
|
196
|
+
<Form.FieldSet />
|
|
197
|
+
<Form.Actions />
|
|
198
|
+
</Form.Content>
|
|
199
|
+
</Form.Root>
|
|
200
200
|
);
|
|
201
201
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Form
|
|
2
|
+
|
|
3
|
+
## New features/polish
|
|
4
|
+
|
|
5
|
+
- [x] Unify readonly/inline modes.
|
|
6
|
+
- [x] Refs
|
|
7
|
+
- [x] Single-select (fix popover)
|
|
8
|
+
- [x] Multi-select (array)
|
|
9
|
+
- [ ] auto save doesn't work for combobox + select due to only firing on blur (workaround is to use onValuesChanged).
|
|
10
|
+
- [ ] Don't call save/autoSave if value hasn't changed.
|
|
11
|
+
- [ ] Fix onCancel (restore values).
|
|
12
|
+
- [ ] Fix useSchema Type.AnyObj cast.
|
|
13
|
+
- [ ] TableCellEditor (handleEnter/ModalController).
|
|
14
|
+
- [ ] Use FormFieldWrapper uniformly
|
|
15
|
+
- [ ] Inline tables.
|
|
16
|
+
- [ ] Defer query until popover.
|
|
17
|
+
- [ ] Omit id from sub properties (tune Omit)
|