@dxos/react-ui-form 0.8.4-main.d05673bc65 → 0.8.4-main.dfabb4ec29
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/dist/lib/browser/index.mjs +1004 -612
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/translations.mjs +82 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +1004 -612
- 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 +84 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/types/src/components/FieldEditor/FieldEditor.d.ts.map +1 -1
- package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts +63 -61
- package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/Form.d.ts +40 -12
- package/dist/types/src/components/Form/Form.d.ts.map +1 -1
- package/dist/types/src/components/Form/Form.stories.d.ts +76 -74
- package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField.d.ts +11 -5
- package/dist/types/src/components/Form/FormField.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormFieldComponent.d.ts +8 -7
- package/dist/types/src/components/Form/FormFieldComponent.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormFieldSet.d.ts +5 -9
- package/dist/types/src/components/Form/FormFieldSet.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/ArrayField.d.ts +4 -4
- package/dist/types/src/components/Form/fields/ArrayField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/BooleanField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/GeoPointField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/MarkdownField.d.ts +8 -1
- package/dist/types/src/components/Form/fields/MarkdownField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/MarkdownField.stories.d.ts +84 -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.map +1 -1
- package/dist/types/src/components/Form/fields/RefField.d.ts +12 -6
- package/dist/types/src/components/Form/fields/RefField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/SelectField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/SelectOptionField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts +63 -61
- package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/TextAreaField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/TextField.d.ts +1 -1
- package/dist/types/src/components/Form/fields/TextField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/TupleField.d.ts.map +1 -1
- package/dist/types/src/components/ObjectForm/ObjectForm.d.ts +9 -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 +26 -4
- package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts.map +1 -1
- package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts +63 -61
- 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 +127 -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/Settings/Settings.d.ts +28 -33
- package/dist/types/src/components/Settings/Settings.d.ts.map +1 -1
- package/dist/types/src/components/Settings/Settings.stories.d.ts +64 -61
- package/dist/types/src/components/Settings/Settings.stories.d.ts.map +1 -1
- 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 +2 -0
- package/dist/types/src/components/Settings/index.d.ts.map +1 -1
- package/dist/types/src/components/ViewEditor/ViewEditor.d.ts +2 -2
- package/dist/types/src/components/ViewEditor/ViewEditor.d.ts.map +1 -1
- package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts +65 -63
- package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +2 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/testing.d.ts +4 -4
- package/dist/types/src/components/testing.d.ts.map +1 -1
- package/dist/types/src/hooks/useFormHandler.d.ts.map +1 -1
- package/dist/types/src/hooks/useKeyHandler.d.ts +2 -1
- package/dist/types/src/hooks/useKeyHandler.d.ts.map +1 -1
- 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 +63 -61
- 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.map +1 -1
- package/dist/types/src/util/formatting.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +1 -0
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/properties.d.ts.map +1 -1
- package/dist/types/src/util/refs.d.ts +1 -0
- package/dist/types/src/util/refs.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +42 -40
- package/src/components/FieldEditor/FieldEditor.stories.tsx +2 -2
- package/src/components/FieldEditor/FieldEditor.test.tsx +0 -1
- package/src/components/FieldEditor/FieldEditor.tsx +4 -3
- package/src/components/Form/AUDIT.md +17 -0
- package/src/components/Form/Form.stories.tsx +23 -36
- package/src/components/Form/Form.tsx +77 -48
- package/src/components/Form/FormField.tsx +27 -15
- package/src/components/Form/FormFieldComponent.tsx +5 -3
- package/src/components/Form/FormFieldSet.tsx +98 -77
- package/src/components/Form/fields/ArrayField.tsx +14 -8
- package/src/components/Form/fields/GeoPointField.tsx +8 -7
- package/src/components/Form/fields/MarkdownField.stories.tsx +206 -0
- package/src/components/Form/fields/MarkdownField.tsx +135 -45
- package/src/components/Form/fields/RefField.tsx +70 -35
- package/src/components/Form/fields/SelectOptionField.stories.tsx +8 -6
- package/src/components/Form/fields/SelectOptionField.tsx +10 -10
- package/src/components/Form/fields/TextField.tsx +2 -2
- package/src/components/Form/fields/TupleField.tsx +1 -1
- package/src/components/ObjectForm/ObjectForm.tsx +114 -0
- package/src/components/ObjectForm/index.ts +5 -0
- package/src/components/ObjectPicker/ObjectPicker.stories.tsx +9 -7
- package/src/components/ObjectPicker/ObjectPicker.tsx +92 -65
- package/src/components/ObjectProperties/ObjectProperties.stories.tsx +362 -0
- package/src/components/ObjectProperties/ObjectProperties.test.tsx +101 -0
- package/src/components/ObjectProperties/ObjectProperties.tsx +141 -0
- package/src/components/ObjectProperties/index.ts +5 -0
- package/src/components/Settings/AUDIT.md +52 -0
- package/src/components/Settings/Settings.stories.tsx +69 -21
- package/src/components/Settings/Settings.tsx +33 -183
- 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 +2 -0
- package/src/components/ViewEditor/ViewEditor.stories.tsx +10 -10
- package/src/components/ViewEditor/ViewEditor.test.tsx +0 -1
- package/src/components/ViewEditor/ViewEditor.tsx +15 -15
- package/src/components/index.ts +2 -0
- package/src/components/testing.tsx +19 -11
- package/src/hooks/useKeyHandler.tsx +7 -7
- package/src/index.ts +0 -4
- package/src/translations.ts +66 -63
- package/src/util/field-type.ts +60 -0
- package/src/util/index.ts +1 -0
- package/src/util/refs.ts +7 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
1
2
|
import { type FormHandler } from './useFormHandler';
|
|
2
3
|
/**
|
|
3
4
|
* Key handler.
|
|
4
5
|
*/
|
|
5
|
-
export declare const useKeyHandler: (
|
|
6
|
+
export declare const useKeyHandler: (elRef: RefObject<HTMLDivElement | null>, form: FormHandler<any>) => void;
|
|
6
7
|
//# sourceMappingURL=useKeyHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useKeyHandler.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useKeyHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useKeyHandler.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAgC,MAAM,OAAO,CAAC;AAIrE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,aAAa,UAAW,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,QAAQ,WAAW,CAAC,GAAG,CAAC,SAuB5F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
|
@@ -2,67 +2,69 @@ export declare const translationKey = "@dxos/react-ui-form";
|
|
|
2
2
|
export declare const translations: [{
|
|
3
3
|
readonly 'en-US': {
|
|
4
4
|
readonly "@dxos/react-ui-form": {
|
|
5
|
-
readonly 'fields
|
|
6
|
-
readonly 'hidden
|
|
7
|
-
readonly 'empty
|
|
8
|
-
readonly '
|
|
9
|
-
readonly 'field
|
|
10
|
-
readonly 'field
|
|
11
|
-
readonly 'field
|
|
12
|
-
readonly '
|
|
13
|
-
readonly 'add
|
|
14
|
-
readonly '
|
|
15
|
-
readonly '
|
|
16
|
-
readonly '
|
|
17
|
-
readonly '
|
|
18
|
-
readonly '
|
|
19
|
-
readonly '
|
|
20
|
-
readonly '
|
|
21
|
-
readonly 'ref
|
|
22
|
-
readonly 'ref
|
|
23
|
-
readonly 'ref
|
|
24
|
-
readonly '
|
|
25
|
-
readonly '
|
|
26
|
-
readonly '
|
|
27
|
-
readonly '
|
|
28
|
-
readonly '
|
|
29
|
-
readonly '
|
|
30
|
-
readonly '
|
|
31
|
-
readonly 'format
|
|
32
|
-
readonly 'format
|
|
33
|
-
readonly 'format
|
|
34
|
-
readonly 'format
|
|
35
|
-
readonly 'format
|
|
36
|
-
readonly 'format
|
|
37
|
-
readonly 'format
|
|
38
|
-
readonly 'format
|
|
39
|
-
readonly 'format
|
|
40
|
-
readonly 'format
|
|
41
|
-
readonly 'format
|
|
42
|
-
readonly 'format
|
|
43
|
-
readonly 'format
|
|
44
|
-
readonly 'format
|
|
45
|
-
readonly 'format
|
|
46
|
-
readonly 'format
|
|
47
|
-
readonly 'format
|
|
48
|
-
readonly 'format
|
|
49
|
-
readonly 'format
|
|
50
|
-
readonly 'format
|
|
51
|
-
readonly 'format
|
|
52
|
-
readonly 'format
|
|
53
|
-
readonly 'format
|
|
54
|
-
readonly 'format
|
|
55
|
-
readonly 'format
|
|
56
|
-
readonly 'format
|
|
57
|
-
readonly '
|
|
58
|
-
readonly '
|
|
59
|
-
readonly '
|
|
60
|
-
readonly '
|
|
61
|
-
readonly 'select
|
|
62
|
-
readonly 'select
|
|
63
|
-
readonly 'select
|
|
64
|
-
readonly '
|
|
65
|
-
readonly 'system
|
|
5
|
+
readonly 'fields.label': 'Fields';
|
|
6
|
+
readonly 'hidden-fields.label': 'Hidden Fields';
|
|
7
|
+
readonly 'empty-readonly-ref-field.label': '(none)';
|
|
8
|
+
readonly 'field-property.label': 'Property';
|
|
9
|
+
readonly 'field-property.placeholder': 'Property name';
|
|
10
|
+
readonly 'field-format.label': 'Type';
|
|
11
|
+
readonly 'field-path.label': 'Field path';
|
|
12
|
+
readonly 'add-item.button': 'Add item';
|
|
13
|
+
readonly 'add-property-button.label': 'Add property';
|
|
14
|
+
readonly 'boolean-input-true.value': 'Yes';
|
|
15
|
+
readonly 'boolean-input-false.value': 'No';
|
|
16
|
+
readonly 'show-field.label': 'Show field';
|
|
17
|
+
readonly 'hide-field.label': 'Hide field';
|
|
18
|
+
readonly 'delete-field.label': 'Delete field';
|
|
19
|
+
readonly 'create-option.label': 'Create';
|
|
20
|
+
readonly 'add-tag.label': 'Add tag';
|
|
21
|
+
readonly 'ref-field-combobox-input.placeholder': 'Search\u2026';
|
|
22
|
+
readonly 'ref-field.placeholder': 'Select\u2026';
|
|
23
|
+
readonly 'ref-field.placeholder_one': 'Select\u2026';
|
|
24
|
+
readonly 'ref-field.placeholder_other': 'Select items\u2026';
|
|
25
|
+
readonly 'example.placeholder': 'Example';
|
|
26
|
+
readonly 'latitude.placeholder': 'Latitude (e.g., 40.7128)';
|
|
27
|
+
readonly 'longitude.placeholder': 'Longitude (e.g., -74.0060)';
|
|
28
|
+
readonly 'cancel-button.label': 'Cancel';
|
|
29
|
+
readonly 'save-button.label': 'Save';
|
|
30
|
+
readonly 'create-text.label': 'Create text';
|
|
31
|
+
readonly 'format.boolean.label': 'Boolean';
|
|
32
|
+
readonly 'format.currency.label': 'Currency';
|
|
33
|
+
readonly 'format.date.label': 'Date';
|
|
34
|
+
readonly 'format.date-time.label': 'DateTime';
|
|
35
|
+
readonly 'format.did.label': 'DID';
|
|
36
|
+
readonly 'format.duration.label': 'Duration';
|
|
37
|
+
readonly 'format.dxn.label': 'DXN';
|
|
38
|
+
readonly 'format.email.label': 'Email';
|
|
39
|
+
readonly 'format.formula.label': 'Formula';
|
|
40
|
+
readonly 'format.hostname.label': 'Hostname';
|
|
41
|
+
readonly 'format.integer.label': 'Integer';
|
|
42
|
+
readonly 'format.json.label': 'JSON';
|
|
43
|
+
readonly 'format.lnglat.label': 'Geopoint';
|
|
44
|
+
readonly 'format.markdown.label': 'Markdown';
|
|
45
|
+
readonly 'format.percent.label': 'Percent';
|
|
46
|
+
readonly 'format.ref.label': 'Reference';
|
|
47
|
+
readonly 'format.regex.label': 'RegExp';
|
|
48
|
+
readonly 'format.string.label': 'String';
|
|
49
|
+
readonly 'format.single-select.label': 'Select';
|
|
50
|
+
readonly 'format.multi-select.label': 'Multi-select';
|
|
51
|
+
readonly 'format.text.label': 'Long text';
|
|
52
|
+
readonly 'format.time.label': 'Time';
|
|
53
|
+
readonly 'format.timestamp.label': 'Timestamp';
|
|
54
|
+
readonly 'format.user.label': 'User';
|
|
55
|
+
readonly 'format.number.label': 'Number';
|
|
56
|
+
readonly 'format.uri.label': 'URI';
|
|
57
|
+
readonly 'format.url.label': 'URL';
|
|
58
|
+
readonly 'format.uuid.label': 'UUID';
|
|
59
|
+
readonly 'latitude.label': 'Latitude';
|
|
60
|
+
readonly 'longitude.label': 'Longitude';
|
|
61
|
+
readonly 'select-option.label': 'Label';
|
|
62
|
+
readonly 'select-option-label.placeholder': 'Option label';
|
|
63
|
+
readonly 'select-option-delete.button': 'Delete';
|
|
64
|
+
readonly 'select-option-add.button': 'Add option';
|
|
65
|
+
readonly 'system-schema.title': 'System type';
|
|
66
|
+
readonly 'system-schema.description': 'System type: cannot add or remove fields.';
|
|
67
|
+
readonly 'remove.button': 'Remove';
|
|
66
68
|
};
|
|
67
69
|
};
|
|
68
70
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,wBAAwB,CAAC;AAEpD,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,wBAAwB,CAAC;AAEpD,eAAO,MAAM,YAAY;;;qBAIjB,cAAc,EAAE,QAAQ;qBACxB,qBAAqB,EAAE,eAAe;qBACtC,gCAAgC,EAAE,QAAQ;qBAE1C,sBAAsB,EAAE,UAAU;qBAClC,4BAA4B,EAAE,eAAe;qBAC7C,oBAAoB,EAAE,MAAM;qBAC5B,kBAAkB,EAAE,YAAY;qBAEhC,iBAAiB,EAAE,UAAU;qBAC7B,2BAA2B,EAAE,cAAc;qBAC3C,0BAA0B,EAAE,KAAK;qBACjC,2BAA2B,EAAE,IAAI;qBACjC,kBAAkB,EAAE,YAAY;qBAChC,kBAAkB,EAAE,YAAY;qBAChC,oBAAoB,EAAE,cAAc;qBACpC,qBAAqB,EAAE,QAAQ;qBAC/B,eAAe,EAAE,SAAS;qBAE1B,sCAAsC,EAAE,cAAS;qBACjD,uBAAuB,EAAE,cAAS;qBAClC,2BAA2B,EAAE,cAAS;qBACtC,6BAA6B,EAAE,oBAAe;qBAE9C,qBAAqB,EAAE,SAAS;qBAChC,sBAAsB,EAAE,0BAA0B;qBAClD,uBAAuB,EAAE,4BAA4B;qBAErD,qBAAqB,EAAE,QAAQ;qBAC/B,mBAAmB,EAAE,MAAM;qBAC3B,mBAAmB,EAAE,aAAa;qBAGlC,sBAAsB,EAAE,SAAS;qBACjC,uBAAuB,EAAE,UAAU;qBACnC,mBAAmB,EAAE,MAAM;qBAC3B,wBAAwB,EAAE,UAAU;qBACpC,kBAAkB,EAAE,KAAK;qBACzB,uBAAuB,EAAE,UAAU;qBACnC,kBAAkB,EAAE,KAAK;qBACzB,oBAAoB,EAAE,OAAO;qBAC7B,sBAAsB,EAAE,SAAS;qBACjC,uBAAuB,EAAE,UAAU;qBACnC,sBAAsB,EAAE,SAAS;qBACjC,mBAAmB,EAAE,MAAM;qBAC3B,qBAAqB,EAAE,UAAU;qBACjC,uBAAuB,EAAE,UAAU;qBACnC,sBAAsB,EAAE,SAAS;qBACjC,kBAAkB,EAAE,WAAW;qBAC/B,oBAAoB,EAAE,QAAQ;qBAC9B,qBAAqB,EAAE,QAAQ;qBAC/B,4BAA4B,EAAE,QAAQ;qBACtC,2BAA2B,EAAE,cAAc;qBAC3C,mBAAmB,EAAE,WAAW;qBAChC,mBAAmB,EAAE,MAAM;qBAC3B,wBAAwB,EAAE,WAAW;qBACrC,mBAAmB,EAAE,MAAM;qBAC3B,qBAAqB,EAAE,QAAQ;qBAC/B,kBAAkB,EAAE,KAAK;qBACzB,kBAAkB,EAAE,KAAK;qBACzB,mBAAmB,EAAE,MAAM;qBAG3B,gBAAgB,EAAE,UAAU;qBAC5B,iBAAiB,EAAE,WAAW;qBAG9B,qBAAqB,EAAE,OAAO;qBAC9B,iCAAiC,EAAE,cAAc;qBACjD,6BAA6B,EAAE,QAAQ;qBACvC,0BAA0B,EAAE,YAAY;qBAGxC,qBAAqB,EAAE,aAAa;qBACpC,2BAA2B,EAAE,2CAA2C;qBACxE,eAAe,EAAE,QAAQ;;;EAIF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as SchemaAST from 'effect/SchemaAST';
|
|
2
|
+
/**
|
|
3
|
+
* Detected field type for a schema property.
|
|
4
|
+
*/
|
|
5
|
+
export type SettingsFieldType = 'boolean' | 'string' | 'number' | 'select' | 'struct';
|
|
6
|
+
export type SelectOption = {
|
|
7
|
+
value: string | number;
|
|
8
|
+
label?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Detect the field type from an Effect Schema AST node.
|
|
12
|
+
*/
|
|
13
|
+
export declare const detectFieldType: (ast: SchemaAST.AST) => SettingsFieldType | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Extract select options from a literal union AST node.
|
|
16
|
+
* Reads title annotations from individual literals for labels.
|
|
17
|
+
*/
|
|
18
|
+
export declare const getSelectOptionsFromAst: (ast: SchemaAST.AST) => SelectOption[] | undefined;
|
|
19
|
+
//# sourceMappingURL=field-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-type.d.ts","sourceRoot":"","sources":["../../../../src/util/field-type.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAI9C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEtF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,QAAS,SAAS,CAAC,GAAG,KAAG,iBAAiB,GAAG,SAkBxE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAS,SAAS,CAAC,GAAG,KAAG,YAAY,EAAE,GAAG,SAc7E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/util/field.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAe,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAC3B,KAAK,EAAE,GAAG,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/util/field.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAe,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAC3B,KAAK,EAAE,GAAG,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,UAAU,4BAA6B,UAAU,QAsF7D,CAAC;AAGF,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,qBAAsB,4BAA4B,KAAG,MAAM,EAAE,GAAG,SAyBnG,CAAC;AAGF,eAAO,MAAM,kBAAkB,SAAU,MAAM,KAAG,eAGhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../src/util/formatting.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAe,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpE,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,UAAU,GAAG,SAAS,CAAC;IACvC,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AAGH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../src/util/formatting.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAe,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpE,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,UAAU,GAAG,SAAS,CAAC;IACvC,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AAGH,eAAO,MAAM,gBAAgB,oCAAiD,gBAAgB,KAAG,MAqFhG,CAAC;AAEF,eAAO,MAAM,gBAAgB,oCAAiD,gBAAgB,KAAG,MA8DhG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../../src/util/properties.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAGnD,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,cAAc,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../../src/util/properties.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAGnD,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,cAAc,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAS,SAAS,CAAC,GAAG,KAAG,cAAc,EAIpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../../../src/util/refs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,SAAS,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../../../src/util/refs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAMnD,KAAK,QAAQ,GAAG;IACd,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,WAAW,QAAS,SAAS,CAAC,GAAG,KAAG,QAAQ,GAAG,SAmB3D,CAAC"}
|