@dxos/react-ui-form 0.8.4-main.70d3990 → 0.8.4-main.74a063c4e0
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/README.md +0 -1
- package/dist/lib/browser/index.mjs +2319 -2347
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +2319 -2347
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- 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 +66 -60
- package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/Form.d.ts +87 -27
- package/dist/types/src/components/Form/Form.d.ts.map +1 -1
- package/dist/types/src/components/Form/Form.stories.d.ts +111 -150
- package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField.d.ts +43 -0
- package/dist/types/src/components/Form/FormField.d.ts.map +1 -0
- package/dist/types/src/components/Form/FormFieldComponent.d.ts +77 -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 +18 -0
- package/dist/types/src/components/Form/FormFieldSet.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/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 +4 -0
- package/dist/types/src/components/Form/fields/MarkdownField.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 +16 -0
- package/dist/types/src/components/Form/fields/RefField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/SelectField.d.ts +10 -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 +82 -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 +12 -0
- package/dist/types/src/components/Form/fields/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/index.d.ts +2 -4
- package/dist/types/src/components/Form/index.d.ts.map +1 -1
- package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts +23 -10
- package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts.map +1 -1
- package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts +62 -59
- package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts.map +1 -1
- package/dist/types/src/components/Settings/Settings.d.ts +39 -0
- package/dist/types/src/components/Settings/Settings.d.ts.map +1 -0
- package/dist/types/src/components/Settings/Settings.stories.d.ts +81 -0
- package/dist/types/src/components/Settings/Settings.stories.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 -0
- package/dist/types/src/components/ViewEditor/ViewEditor.d.ts +9 -11
- package/dist/types/src/components/ViewEditor/ViewEditor.d.ts.map +1 -1
- package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts +66 -62
- package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/testing.d.ts +0 -2
- 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/translations.d.ts +63 -60
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +1 -1
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/properties.d.ts +7 -0
- package/dist/types/src/util/properties.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 +51 -48
- package/src/components/FieldEditor/FieldEditor.stories.tsx +43 -25
- package/src/components/FieldEditor/FieldEditor.test.tsx +0 -1
- package/src/components/FieldEditor/FieldEditor.tsx +73 -77
- package/src/components/Form/AUDIT.md +17 -0
- package/src/components/Form/Form.stories.tsx +147 -249
- package/src/components/Form/Form.tsx +324 -110
- package/src/components/Form/FormField.tsx +304 -0
- package/src/components/Form/FormFieldComponent.stories.tsx +65 -0
- package/src/components/Form/FormFieldComponent.tsx +171 -0
- package/src/components/Form/FormFieldSet.tsx +128 -0
- package/src/components/Form/README.md +3 -0
- package/src/components/Form/fields/ArrayField.tsx +154 -0
- package/src/components/Form/fields/BooleanField.tsx +22 -0
- package/src/components/Form/fields/GeoPointField.tsx +120 -0
- package/src/components/Form/fields/MarkdownField.tsx +78 -0
- package/src/components/Form/fields/NumberField.tsx +39 -0
- package/src/components/Form/fields/RefField.tsx +198 -0
- package/src/components/Form/fields/SelectField.tsx +65 -0
- package/src/components/Form/{custom/SelectOptionsInput.stories.tsx → fields/SelectOptionField.stories.tsx} +19 -17
- package/src/components/Form/{custom/SelectOptionsInput.tsx → fields/SelectOptionField.tsx} +29 -24
- 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} +16 -9
- package/src/components/Form/fields/index.ts +15 -0
- package/src/components/Form/index.ts +3 -4
- package/src/components/ObjectPicker/ObjectPicker.stories.tsx +18 -16
- package/src/components/ObjectPicker/ObjectPicker.tsx +103 -78
- package/src/components/Settings/Settings.stories.tsx +55 -0
- package/src/components/Settings/Settings.tsx +129 -0
- package/src/components/{ControlSection → Settings}/index.ts +1 -1
- package/src/components/ViewEditor/ViewEditor.stories.tsx +44 -39
- package/src/components/ViewEditor/ViewEditor.test.tsx +5 -5
- package/src/components/ViewEditor/ViewEditor.tsx +295 -197
- package/src/components/index.ts +1 -1
- package/src/components/testing.tsx +23 -9
- package/src/hooks/index.ts +2 -3
- package/src/hooks/useFormHandler.ts +380 -0
- package/src/hooks/useKeyHandler.tsx +37 -0
- package/src/translations.ts +66 -65
- package/src/util/index.ts +1 -1
- package/src/util/properties.ts +18 -0
- package/src/util/refs.ts +13 -15
- 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 -84
- 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 -79
- 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 -127
- package/src/components/Form/Defaults.tsx +0 -205
- package/src/components/Form/FormActions.tsx +0 -59
- 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 -34
- 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
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: any;
|
|
6
|
+
render: () => React.JSX.Element;
|
|
7
|
+
decorators: import("@storybook/react").Decorator[];
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: string;
|
|
10
|
+
translations: [{
|
|
11
|
+
readonly 'en-US': {
|
|
12
|
+
readonly "@dxos/react-ui-form": {
|
|
13
|
+
readonly 'fields.label': "Fields";
|
|
14
|
+
readonly 'hidden-fields.label': "Hidden Fields";
|
|
15
|
+
readonly 'empty-readonly-ref-field.label': "(none)";
|
|
16
|
+
readonly 'add-property-button.label': "Add property";
|
|
17
|
+
readonly 'field-property.label': "Property";
|
|
18
|
+
readonly 'field-property.placeholder': "Property name";
|
|
19
|
+
readonly 'field-format.label': "Type";
|
|
20
|
+
readonly 'field-path.label': "Field path";
|
|
21
|
+
readonly 'add-field.button': "Add field";
|
|
22
|
+
readonly 'boolean-input-true.value': "Yes";
|
|
23
|
+
readonly 'boolean-input-false.value': "No";
|
|
24
|
+
readonly 'show-field.label': "Show field";
|
|
25
|
+
readonly 'hide-field.label': "Hide field";
|
|
26
|
+
readonly 'delete-field.label': "Delete field";
|
|
27
|
+
readonly 'ref-field-combobox-input.placeholder': "Search…";
|
|
28
|
+
readonly 'ref-field.placeholder': "Select…";
|
|
29
|
+
readonly 'ref-field.placeholder_one': "Select…";
|
|
30
|
+
readonly 'ref-field.placeholder_other': "Select items…";
|
|
31
|
+
readonly 'create-option.label': "Create";
|
|
32
|
+
readonly 'example.placeholder': "Example";
|
|
33
|
+
readonly 'latitude.placeholder': "Latitude (e.g., 40.7128)";
|
|
34
|
+
readonly 'longitude.placeholder': "Longitude (e.g., -74.0060)";
|
|
35
|
+
readonly 'cancel-button.label': "Cancel";
|
|
36
|
+
readonly 'save-button.label': "Save";
|
|
37
|
+
readonly 'format.boolean.label': "Boolean";
|
|
38
|
+
readonly 'format.currency.label': "Currency";
|
|
39
|
+
readonly 'format.date.label': "Date";
|
|
40
|
+
readonly 'format.date-time.label': "DateTime";
|
|
41
|
+
readonly 'format.did.label': "DID";
|
|
42
|
+
readonly 'format.duration.label': "Duration";
|
|
43
|
+
readonly 'format.dxn.label': "DXN";
|
|
44
|
+
readonly 'format.email.label': "Email";
|
|
45
|
+
readonly 'format.formula.label': "Formula";
|
|
46
|
+
readonly 'format.hostname.label': "Hostname";
|
|
47
|
+
readonly 'format.integer.label': "Integer";
|
|
48
|
+
readonly 'format.json.label': "JSON";
|
|
49
|
+
readonly 'format.lnglat.label': "Geopoint";
|
|
50
|
+
readonly 'format.markdown.label': "Markdown";
|
|
51
|
+
readonly 'format.percent.label': "Percent";
|
|
52
|
+
readonly 'format.ref.label': "Reference";
|
|
53
|
+
readonly 'format.regex.label': "RegExp";
|
|
54
|
+
readonly 'format.string.label': "String";
|
|
55
|
+
readonly 'format.single-select.label': "Select";
|
|
56
|
+
readonly 'format.multi-select.label': "Multi-select";
|
|
57
|
+
readonly 'format.text.label': "Long text";
|
|
58
|
+
readonly 'format.time.label': "Time";
|
|
59
|
+
readonly 'format.timestamp.label': "Timestamp";
|
|
60
|
+
readonly 'format.user.label': "User";
|
|
61
|
+
readonly 'format.number.label': "Number";
|
|
62
|
+
readonly 'format.uri.label': "URI";
|
|
63
|
+
readonly 'format.url.label': "URL";
|
|
64
|
+
readonly 'format.uuid.label': "UUID";
|
|
65
|
+
readonly 'latitude.label': "Latitude";
|
|
66
|
+
readonly 'longitude.label': "Longitude";
|
|
67
|
+
readonly 'select-option.label': "Label";
|
|
68
|
+
readonly 'select-option-label.placeholder': "Option label";
|
|
69
|
+
readonly 'select-option-delete.button': "Delete";
|
|
70
|
+
readonly 'select-option-add.button': "Add option";
|
|
71
|
+
readonly 'system-schema.title': "System type";
|
|
72
|
+
readonly 'system-schema.description': "System type: cannot add or remove fields.";
|
|
73
|
+
readonly 'remove.button': "Remove";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}];
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export default meta;
|
|
80
|
+
type Story = StoryObj<typeof meta>;
|
|
81
|
+
export declare const Default: Story;
|
|
82
|
+
//# sourceMappingURL=SelectOptionField.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectOptionField.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/SelectOptionField.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAyCxC,QAAA,MAAM,IAAI;;eAEwB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOA,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FormFieldComponentProps } from '../FormFieldComponent';
|
|
3
|
+
export declare const TextAreaField: ({ type, readonly, placeholder, onValueChange, onBlur, ...props }: FormFieldComponentProps<string>) => React.JSX.Element;
|
|
4
|
+
//# sourceMappingURL=TextAreaField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextAreaField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/TextAreaField.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAI3C,OAAO,EAAE,KAAK,uBAAuB,EAAoB,MAAM,uBAAuB,CAAC;AAEvF,eAAO,MAAM,aAAa,GAAI,kEAO3B,uBAAuB,CAAC,MAAM,CAAC,sBAoBjC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FormFieldComponentProps } from '../FormFieldComponent';
|
|
3
|
+
export declare const TextField: ({ type, readonly, placeholder, onValueChange, onBlur, ...props }: FormFieldComponentProps<string>) => React.JSX.Element;
|
|
4
|
+
//# sourceMappingURL=TextField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/TextField.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAI3C,OAAO,EAAE,KAAK,uBAAuB,EAAoB,MAAM,uBAAuB,CAAC;AAEvF,eAAO,MAAM,SAAS,GAAI,kEAOvB,uBAAuB,CAAC,MAAM,CAAC,sBAoBjC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FormFieldComponentProps } from '../FormFieldComponent';
|
|
3
|
+
export declare const TupleField: ({ binding, type, readonly, label, getStatus, getValue, onValueChange, onBlur, }: FormFieldComponentProps<Record<string, number>> & {
|
|
4
|
+
binding: string[];
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
|
+
//# sourceMappingURL=TupleField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TupleField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/TupleField.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,uBAAuB,EAAkB,MAAM,uBAAuB,CAAC;AAIrF,eAAO,MAAM,UAAU,GAAI,iFASxB,uBAAuB,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG;IACnD,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,sBA4BA,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './ArrayField';
|
|
2
|
+
export * from './BooleanField';
|
|
3
|
+
export * from './GeoPointField';
|
|
4
|
+
export * from './MarkdownField';
|
|
5
|
+
export * from './NumberField';
|
|
6
|
+
export * from './RefField';
|
|
7
|
+
export * from './SelectField';
|
|
8
|
+
export * from './SelectOptionField';
|
|
9
|
+
export * from './TextField';
|
|
10
|
+
export * from './TextAreaField';
|
|
11
|
+
export * from './TupleField';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AAEzB,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,21 +1,33 @@
|
|
|
1
1
|
import type * as Schema from 'effect/Schema';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { type ThemedClassName } from '@dxos/react-ui';
|
|
4
|
-
import { type
|
|
3
|
+
import { type Palette, type ThemedClassName } from '@dxos/react-ui';
|
|
4
|
+
import { type FormFieldMap } from '../Form/FormFieldComponent';
|
|
5
|
+
export type RefOption = {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
hue?: Palette;
|
|
9
|
+
};
|
|
5
10
|
export type ObjectPickerContentProps = ThemedClassName<{
|
|
6
|
-
options:
|
|
11
|
+
options: RefOption[];
|
|
7
12
|
selectedIds?: string[];
|
|
8
|
-
createSchema?: Schema.Schema.AnyNoContext;
|
|
9
13
|
createOptionLabel?: [string, {
|
|
10
14
|
ns: string;
|
|
11
15
|
}];
|
|
12
16
|
createOptionIcon?: string;
|
|
17
|
+
createSchema?: Schema.Schema.AnyNoContext;
|
|
13
18
|
createInitialValuePath?: string;
|
|
14
|
-
|
|
19
|
+
createFieldMap?: FormFieldMap;
|
|
15
20
|
onCreate?: (values: any) => void;
|
|
21
|
+
onSelect: (id: string) => void;
|
|
16
22
|
}>;
|
|
17
23
|
export declare const ObjectPicker: {
|
|
18
|
-
Root: ({ modal, modalId: propsModalId, open: propsOpen, defaultOpen, onOpenChange: propsOnOpenChange, value: propsValue, defaultValue, onValueChange: propsOnValueChange, placeholder, children, }: import("@dxos/react-ui-
|
|
24
|
+
Root: ({ modal, modalId: propsModalId, open: propsOpen, defaultOpen, onOpenChange: propsOnOpenChange, value: propsValue, defaultValue, onValueChange: propsOnValueChange, placeholder, children, }: import("@dxos/react-ui-search").ComboboxRootProps) => React.JSX.Element;
|
|
25
|
+
Portal: {
|
|
26
|
+
(props: import("@dxos/react-ui").PopoverPortalProps & {
|
|
27
|
+
__scopePopover?: import("@radix-ui/react-context").Scope;
|
|
28
|
+
}): React.JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
19
31
|
Trigger: React.ForwardRefExoticComponent<Omit<import("@dxos/react-ui").ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
32
|
VirtualTrigger: {
|
|
21
33
|
(props: import("@dxos/react-ui").PopoverVirtualTriggerProps & {
|
|
@@ -24,18 +36,19 @@ export declare const ObjectPicker: {
|
|
|
24
36
|
displayName: string;
|
|
25
37
|
};
|
|
26
38
|
Content: React.ForwardRefExoticComponent<Omit<{
|
|
27
|
-
options:
|
|
39
|
+
options: RefOption[];
|
|
28
40
|
selectedIds?: string[];
|
|
29
|
-
createSchema?: Schema.Schema.AnyNoContext;
|
|
30
41
|
createOptionLabel?: [string, {
|
|
31
42
|
ns: string;
|
|
32
43
|
}];
|
|
33
44
|
createOptionIcon?: string;
|
|
45
|
+
createSchema?: Schema.Schema.AnyNoContext;
|
|
34
46
|
createInitialValuePath?: string;
|
|
35
|
-
|
|
47
|
+
createFieldMap?: FormFieldMap;
|
|
36
48
|
onCreate?: (values: any) => void;
|
|
49
|
+
onSelect: (id: string) => void;
|
|
37
50
|
}, "className"> & {
|
|
38
|
-
classNames?: import("@dxos/
|
|
51
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
39
52
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
40
53
|
};
|
|
41
54
|
//# sourceMappingURL=ObjectPicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectPicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectPicker/ObjectPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"ObjectPicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectPicker/ObjectPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAgE,MAAM,OAAO,CAAC;AAErF,OAAO,EAAE,KAAK,OAAO,EAAW,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAK7F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC;IACrD,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IAC1C,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,cAAc,CAAC,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,CAAC,CAAC;AAqJH,eAAO,MAAM,YAAY;;;;0BAjHb,CAAC;;;;;;;0BAiBH,CAAV;;;;;iBA9DW,SAAS,EAAE;sBACN,MAAM,EAAE;4BACF,CAAC,MAAM,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,CAAC;2BACzB,MAAM;uBACV,MAAM,CAAC,MAAM,CAAC,YAAY;iCAChB,MAAM;yBACd,YAAY;mBAClB,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI;kBACtB,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI;;;;CA4J/B,CAAC"}
|
|
@@ -11,65 +11,68 @@ declare const meta: {
|
|
|
11
11
|
};
|
|
12
12
|
translations: [{
|
|
13
13
|
readonly 'en-US': {
|
|
14
|
-
readonly "react-ui-form": {
|
|
15
|
-
readonly 'fields
|
|
16
|
-
readonly 'hidden
|
|
17
|
-
readonly 'empty
|
|
18
|
-
readonly 'add
|
|
19
|
-
readonly 'field
|
|
20
|
-
readonly 'field
|
|
21
|
-
readonly 'field
|
|
22
|
-
readonly 'field
|
|
23
|
-
readonly 'add
|
|
24
|
-
readonly '
|
|
25
|
-
readonly '
|
|
26
|
-
readonly '
|
|
27
|
-
readonly '
|
|
28
|
-
readonly '
|
|
29
|
-
readonly '
|
|
30
|
-
readonly '
|
|
31
|
-
readonly 'ref
|
|
32
|
-
readonly 'ref
|
|
33
|
-
readonly '
|
|
34
|
-
readonly '
|
|
35
|
-
readonly '
|
|
36
|
-
readonly '
|
|
37
|
-
readonly '
|
|
38
|
-
readonly '
|
|
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 'format
|
|
58
|
-
readonly 'format
|
|
59
|
-
readonly 'format
|
|
60
|
-
readonly 'format
|
|
61
|
-
readonly 'format
|
|
62
|
-
readonly 'format
|
|
63
|
-
readonly 'format
|
|
64
|
-
readonly '
|
|
65
|
-
readonly '
|
|
66
|
-
readonly '
|
|
67
|
-
readonly '
|
|
68
|
-
readonly '
|
|
69
|
-
readonly 'select
|
|
70
|
-
readonly 'select
|
|
71
|
-
readonly '
|
|
72
|
-
readonly '
|
|
14
|
+
readonly "@dxos/react-ui-form": {
|
|
15
|
+
readonly 'fields.label': "Fields";
|
|
16
|
+
readonly 'hidden-fields.label': "Hidden Fields";
|
|
17
|
+
readonly 'empty-readonly-ref-field.label': "(none)";
|
|
18
|
+
readonly 'add-property-button.label': "Add property";
|
|
19
|
+
readonly 'field-property.label': "Property";
|
|
20
|
+
readonly 'field-property.placeholder': "Property name";
|
|
21
|
+
readonly 'field-format.label': "Type";
|
|
22
|
+
readonly 'field-path.label': "Field path";
|
|
23
|
+
readonly 'add-field.button': "Add field";
|
|
24
|
+
readonly 'boolean-input-true.value': "Yes";
|
|
25
|
+
readonly 'boolean-input-false.value': "No";
|
|
26
|
+
readonly 'show-field.label': "Show field";
|
|
27
|
+
readonly 'hide-field.label': "Hide field";
|
|
28
|
+
readonly 'delete-field.label': "Delete field";
|
|
29
|
+
readonly 'ref-field-combobox-input.placeholder': "Search…";
|
|
30
|
+
readonly 'ref-field.placeholder': "Select…";
|
|
31
|
+
readonly 'ref-field.placeholder_one': "Select…";
|
|
32
|
+
readonly 'ref-field.placeholder_other': "Select items…";
|
|
33
|
+
readonly 'create-option.label': "Create";
|
|
34
|
+
readonly 'example.placeholder': "Example";
|
|
35
|
+
readonly 'latitude.placeholder': "Latitude (e.g., 40.7128)";
|
|
36
|
+
readonly 'longitude.placeholder': "Longitude (e.g., -74.0060)";
|
|
37
|
+
readonly 'cancel-button.label': "Cancel";
|
|
38
|
+
readonly 'save-button.label': "Save";
|
|
39
|
+
readonly 'format.boolean.label': "Boolean";
|
|
40
|
+
readonly 'format.currency.label': "Currency";
|
|
41
|
+
readonly 'format.date.label': "Date";
|
|
42
|
+
readonly 'format.date-time.label': "DateTime";
|
|
43
|
+
readonly 'format.did.label': "DID";
|
|
44
|
+
readonly 'format.duration.label': "Duration";
|
|
45
|
+
readonly 'format.dxn.label': "DXN";
|
|
46
|
+
readonly 'format.email.label': "Email";
|
|
47
|
+
readonly 'format.formula.label': "Formula";
|
|
48
|
+
readonly 'format.hostname.label': "Hostname";
|
|
49
|
+
readonly 'format.integer.label': "Integer";
|
|
50
|
+
readonly 'format.json.label': "JSON";
|
|
51
|
+
readonly 'format.lnglat.label': "Geopoint";
|
|
52
|
+
readonly 'format.markdown.label': "Markdown";
|
|
53
|
+
readonly 'format.percent.label': "Percent";
|
|
54
|
+
readonly 'format.ref.label': "Reference";
|
|
55
|
+
readonly 'format.regex.label': "RegExp";
|
|
56
|
+
readonly 'format.string.label': "String";
|
|
57
|
+
readonly 'format.single-select.label': "Select";
|
|
58
|
+
readonly 'format.multi-select.label': "Multi-select";
|
|
59
|
+
readonly 'format.text.label': "Long text";
|
|
60
|
+
readonly 'format.time.label': "Time";
|
|
61
|
+
readonly 'format.timestamp.label': "Timestamp";
|
|
62
|
+
readonly 'format.user.label': "User";
|
|
63
|
+
readonly 'format.number.label': "Number";
|
|
64
|
+
readonly 'format.uri.label': "URI";
|
|
65
|
+
readonly 'format.url.label': "URL";
|
|
66
|
+
readonly 'format.uuid.label': "UUID";
|
|
67
|
+
readonly 'latitude.label': "Latitude";
|
|
68
|
+
readonly 'longitude.label': "Longitude";
|
|
69
|
+
readonly 'select-option.label': "Label";
|
|
70
|
+
readonly 'select-option-label.placeholder': "Option label";
|
|
71
|
+
readonly 'select-option-delete.button': "Delete";
|
|
72
|
+
readonly 'select-option-add.button': "Add option";
|
|
73
|
+
readonly 'system-schema.title': "System type";
|
|
74
|
+
readonly 'system-schema.description': "System type: cannot add or remove fields.";
|
|
75
|
+
readonly 'remove.button': "Remove";
|
|
73
76
|
};
|
|
74
77
|
};
|
|
75
78
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectPicker.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectPicker/ObjectPicker.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAoD,MAAM,OAAO,CAAC;AA2FzE,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"ObjectPicker.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectPicker/ObjectPicker.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAoD,MAAM,OAAO,CAAC;AA2FzE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,QAAQ,EAAE,KAuFtB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type Label, type ThemedClassName } from '@dxos/react-ui';
|
|
3
|
+
type SettingsRootProps = ThemedClassName<PropsWithChildren>;
|
|
4
|
+
type SettingsSectionProps = PropsWithChildren<{
|
|
5
|
+
title: Label;
|
|
6
|
+
description?: Label;
|
|
7
|
+
}>;
|
|
8
|
+
type SettingsPanelProps = ThemedClassName<PropsWithChildren>;
|
|
9
|
+
type SettingsItemProps = PropsWithChildren<{
|
|
10
|
+
title: Label;
|
|
11
|
+
description?: Label;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const Settings: {
|
|
14
|
+
Root: {
|
|
15
|
+
({ children, classNames }: SettingsRootProps): React.JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
Viewport: React.ForwardRefExoticComponent<Omit<{}, "className"> & {
|
|
19
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
20
|
+
} & {
|
|
21
|
+
className?: string;
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
role?: string;
|
|
24
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
Section: {
|
|
26
|
+
({ title, description, children }: SettingsSectionProps): React.JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
Panel: {
|
|
30
|
+
({ classNames, children }: SettingsPanelProps): React.JSX.Element;
|
|
31
|
+
displayName: string;
|
|
32
|
+
};
|
|
33
|
+
Item: {
|
|
34
|
+
({ title, description, children }: SettingsItemProps): React.JSX.Element;
|
|
35
|
+
displayName: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=Settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../../../../src/components/Settings/Settings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAS,KAAK,KAAK,EAAc,KAAK,eAAe,EAAqC,MAAM,gBAAgB,CAAC;AAexH,KAAK,iBAAiB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AA8B5D,KAAK,oBAAoB,GAAG,iBAAiB,CAAC;IAC5C,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC,CAAC;AAmBH,KAAK,kBAAkB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAgB7D,KAAK,iBAAiB,GAAG,iBAAiB,CAAC;IACzC,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC,CAAC;AA8BH,eAAO,MAAM,QAAQ;;mCAnG2B,iBAAiB;;;;;;;;;;;2CAiCN,oBAAoB;;;;mCAmB9B,kBAAkB;;;;2CAmBN,iBAAiB;;;CAkC7E,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
render: () => React.JSX.Element;
|
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
translations: [{
|
|
10
|
+
readonly 'en-US': {
|
|
11
|
+
readonly "@dxos/react-ui-form": {
|
|
12
|
+
readonly 'fields.label': "Fields";
|
|
13
|
+
readonly 'hidden-fields.label': "Hidden Fields";
|
|
14
|
+
readonly 'empty-readonly-ref-field.label': "(none)";
|
|
15
|
+
readonly 'add-property-button.label': "Add property";
|
|
16
|
+
readonly 'field-property.label': "Property";
|
|
17
|
+
readonly 'field-property.placeholder': "Property name";
|
|
18
|
+
readonly 'field-format.label': "Type";
|
|
19
|
+
readonly 'field-path.label': "Field path";
|
|
20
|
+
readonly 'add-field.button': "Add field";
|
|
21
|
+
readonly 'boolean-input-true.value': "Yes";
|
|
22
|
+
readonly 'boolean-input-false.value': "No";
|
|
23
|
+
readonly 'show-field.label': "Show field";
|
|
24
|
+
readonly 'hide-field.label': "Hide field";
|
|
25
|
+
readonly 'delete-field.label': "Delete field";
|
|
26
|
+
readonly 'ref-field-combobox-input.placeholder': "Search…";
|
|
27
|
+
readonly 'ref-field.placeholder': "Select…";
|
|
28
|
+
readonly 'ref-field.placeholder_one': "Select…";
|
|
29
|
+
readonly 'ref-field.placeholder_other': "Select items…";
|
|
30
|
+
readonly 'create-option.label': "Create";
|
|
31
|
+
readonly 'example.placeholder': "Example";
|
|
32
|
+
readonly 'latitude.placeholder': "Latitude (e.g., 40.7128)";
|
|
33
|
+
readonly 'longitude.placeholder': "Longitude (e.g., -74.0060)";
|
|
34
|
+
readonly 'cancel-button.label': "Cancel";
|
|
35
|
+
readonly 'save-button.label': "Save";
|
|
36
|
+
readonly 'format.boolean.label': "Boolean";
|
|
37
|
+
readonly 'format.currency.label': "Currency";
|
|
38
|
+
readonly 'format.date.label': "Date";
|
|
39
|
+
readonly 'format.date-time.label': "DateTime";
|
|
40
|
+
readonly 'format.did.label': "DID";
|
|
41
|
+
readonly 'format.duration.label': "Duration";
|
|
42
|
+
readonly 'format.dxn.label': "DXN";
|
|
43
|
+
readonly 'format.email.label': "Email";
|
|
44
|
+
readonly 'format.formula.label': "Formula";
|
|
45
|
+
readonly 'format.hostname.label': "Hostname";
|
|
46
|
+
readonly 'format.integer.label': "Integer";
|
|
47
|
+
readonly 'format.json.label': "JSON";
|
|
48
|
+
readonly 'format.lnglat.label': "Geopoint";
|
|
49
|
+
readonly 'format.markdown.label': "Markdown";
|
|
50
|
+
readonly 'format.percent.label': "Percent";
|
|
51
|
+
readonly 'format.ref.label': "Reference";
|
|
52
|
+
readonly 'format.regex.label': "RegExp";
|
|
53
|
+
readonly 'format.string.label': "String";
|
|
54
|
+
readonly 'format.single-select.label': "Select";
|
|
55
|
+
readonly 'format.multi-select.label': "Multi-select";
|
|
56
|
+
readonly 'format.text.label': "Long text";
|
|
57
|
+
readonly 'format.time.label': "Time";
|
|
58
|
+
readonly 'format.timestamp.label': "Timestamp";
|
|
59
|
+
readonly 'format.user.label': "User";
|
|
60
|
+
readonly 'format.number.label': "Number";
|
|
61
|
+
readonly 'format.uri.label': "URI";
|
|
62
|
+
readonly 'format.url.label': "URL";
|
|
63
|
+
readonly 'format.uuid.label': "UUID";
|
|
64
|
+
readonly 'latitude.label': "Latitude";
|
|
65
|
+
readonly 'longitude.label': "Longitude";
|
|
66
|
+
readonly 'select-option.label': "Label";
|
|
67
|
+
readonly 'select-option-label.placeholder': "Option label";
|
|
68
|
+
readonly 'select-option-delete.button': "Delete";
|
|
69
|
+
readonly 'select-option-add.button': "Add option";
|
|
70
|
+
readonly 'system-schema.title': "System type";
|
|
71
|
+
readonly 'system-schema.description': "System type: cannot add or remove fields.";
|
|
72
|
+
readonly 'remove.button': "Remove";
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
}];
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export default meta;
|
|
79
|
+
type Story = StoryObj<typeof meta>;
|
|
80
|
+
export declare const Default: Story;
|
|
81
|
+
//# sourceMappingURL=Settings.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Settings.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Settings/Settings.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAmC1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQM,CAAC;AAEjB,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Settings/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC"}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { QueryAST } from '@dxos/echo';
|
|
4
|
-
import {
|
|
3
|
+
import { QueryAST, type SchemaRegistry } from '@dxos/echo';
|
|
4
|
+
import { View } from '@dxos/echo';
|
|
5
5
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
6
6
|
import { type QueryFormProps } from '@dxos/react-ui-components';
|
|
7
|
-
import { ProjectionModel
|
|
8
|
-
import { type
|
|
7
|
+
import { ProjectionModel } from '@dxos/schema';
|
|
8
|
+
import { type FormRootProps } from '../Form';
|
|
9
9
|
export type ViewEditorProps = ThemedClassName<{
|
|
10
10
|
schema: Schema.Schema.AnyNoContext;
|
|
11
11
|
view: View.View;
|
|
12
12
|
mode?: 'schema' | 'tag';
|
|
13
|
-
registry?: SchemaRegistry;
|
|
14
|
-
readonly?: boolean;
|
|
13
|
+
registry?: SchemaRegistry.SchemaRegistry;
|
|
15
14
|
showHeading?: boolean;
|
|
16
15
|
onQueryChanged?: (query: QueryAST.Query, target?: string) => void;
|
|
17
16
|
onDelete?: (fieldId: string) => void;
|
|
18
|
-
} & Pick<
|
|
17
|
+
} & Pick<QueryFormProps, 'types' | 'tags'> & Pick<FormRootProps<any>, 'readonly' | 'db'>>;
|
|
19
18
|
/**
|
|
20
19
|
* Schema-based object form.
|
|
21
20
|
*/
|
|
@@ -23,12 +22,11 @@ export declare const ViewEditor: React.ForwardRefExoticComponent<Omit<{
|
|
|
23
22
|
schema: Schema.Schema.AnyNoContext;
|
|
24
23
|
view: View.View;
|
|
25
24
|
mode?: "schema" | "tag";
|
|
26
|
-
registry?: SchemaRegistry;
|
|
27
|
-
readonly?: boolean;
|
|
25
|
+
registry?: SchemaRegistry.SchemaRegistry;
|
|
28
26
|
showHeading?: boolean;
|
|
29
27
|
onQueryChanged?: (query: QueryAST.Query, target?: string) => void;
|
|
30
28
|
onDelete?: (fieldId: string) => void;
|
|
31
|
-
} & Pick<
|
|
32
|
-
classNames?: import("@dxos/
|
|
29
|
+
} & Pick<QueryFormProps, "types" | "tags"> & Pick<FormRootProps<any>, "readonly" | "db">, "className"> & {
|
|
30
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
33
31
|
} & React.RefAttributes<ProjectionModel>>;
|
|
34
32
|
//# sourceMappingURL=ViewEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/ViewEditor/ViewEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/ViewEditor/ViewEditor.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAsF,MAAM,OAAO,CAAC;AAE3G,OAAO,EAA4C,QAAQ,EAAO,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAC1G,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC,OAAO,EAA8B,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAClG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3E,OAAO,EAEL,eAAe,EAIhB,MAAM,cAAc,CAAC;AAKtB,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,eAAe,GAAG,eAAe,CAC3C;IACE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IACnC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;IAChB,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IACxB,QAAQ,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,MAAM,CAAC,GACxC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC,CAC9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;YAdX,MAAM,CAAC,MAAM,CAAC,YAAY;UAC5B,IAAI,CAAC,IAAI;WACR,QAAQ,GAAG,KAAK;eACZ,cAAc,CAAC,cAAc;kBAC1B,OAAO;qBACJ,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI;eACtD,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;;;yCAyKvC,CAAC"}
|