@dxos/react-ui-form 0.8.4-main.72ec0f3 → 0.8.4-main.7ace549
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 +82 -101
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +82 -101
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts +5 -4
- package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts.map +1 -1
- package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts +5 -4
- package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/ArrayField.d.ts.map +1 -1
- package/dist/types/src/components/Form/Form.d.ts +4 -4
- package/dist/types/src/components/Form/Form.d.ts.map +1 -1
- package/dist/types/src/components/Form/Form.stories.d.ts +46 -31
- package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormActions.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormContext.d.ts +3 -3
- package/dist/types/src/components/Form/FormContext.d.ts.map +1 -1
- package/dist/types/src/components/Form/Input.d.ts +2 -2
- package/dist/types/src/components/Form/Input.d.ts.map +1 -1
- package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts +5 -4
- package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/factory.d.ts +2 -2
- package/dist/types/src/components/Form/factory.d.ts.map +1 -1
- package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts +5 -4
- package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.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 +6 -5
- package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
- package/dist/types/src/hooks/useForm.d.ts +4 -4
- package/dist/types/src/hooks/useForm.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +5 -4
- package/dist/types/src/translations.d.ts.map +1 -1
- 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/tsconfig.tsbuildinfo +1 -1
- package/package.json +31 -31
- package/src/components/FieldEditor/FieldEditor.stories.tsx +2 -2
- package/src/components/FieldEditor/FieldEditor.tsx +3 -3
- package/src/components/Form/ArrayField.tsx +3 -1
- package/src/components/Form/Form.stories.tsx +21 -21
- package/src/components/Form/Form.tsx +4 -4
- package/src/components/Form/FormActions.tsx +7 -2
- package/src/components/Form/FormContent.tsx +1 -1
- package/src/components/Form/FormContext.tsx +4 -4
- package/src/components/Form/Input.tsx +2 -2
- package/src/components/Form/factory.tsx +7 -4
- package/src/components/ViewEditor/ViewEditor.stories.tsx +3 -6
- package/src/components/ViewEditor/ViewEditor.tsx +13 -24
- package/src/hooks/useForm.ts +5 -5
- package/src/hooks/useRefQueryLookupHandler.ts +3 -3
- package/src/translations.ts +5 -4
- package/src/util/field.ts +25 -25
- package/src/util/formatting.ts +22 -22
- package/src/util/refs.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/factory.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/factory.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,MAAM,UAAU,EAChB,SAAS,MAAM,CAAC,UAAU,GAAG,MAAM,KAClC,cAAc,GAAG,SAgBnB,CAAC"}
|
|
@@ -15,7 +15,7 @@ declare const meta: {
|
|
|
15
15
|
readonly 'fields label': "Fields";
|
|
16
16
|
readonly 'hidden fields label': "Hidden Fields";
|
|
17
17
|
readonly 'empty readonly ref field label': "(none)";
|
|
18
|
-
readonly 'add property button': "Add property";
|
|
18
|
+
readonly 'add property button label': "Add property";
|
|
19
19
|
readonly 'field property label': "Property";
|
|
20
20
|
readonly 'field property placeholder': "Property name";
|
|
21
21
|
readonly 'field format label': "Type";
|
|
@@ -31,7 +31,8 @@ declare const meta: {
|
|
|
31
31
|
readonly 'ref field combobox input placeholder': "Search…";
|
|
32
32
|
readonly 'ref field placeholder_one': "Select…";
|
|
33
33
|
readonly 'ref field placeholder_other': "Select items…";
|
|
34
|
-
readonly '
|
|
34
|
+
readonly 'cancel button label': "Cancel";
|
|
35
|
+
readonly 'save button label': "Save";
|
|
35
36
|
readonly 'format boolean': "Boolean";
|
|
36
37
|
readonly 'format currency': "Currency";
|
|
37
38
|
readonly 'format date': "Date";
|
|
@@ -67,8 +68,8 @@ declare const meta: {
|
|
|
67
68
|
readonly 'select option color': "Color";
|
|
68
69
|
readonly 'select option delete': "Delete";
|
|
69
70
|
readonly 'select option add': "Add option";
|
|
70
|
-
readonly 'system schema title': "System
|
|
71
|
-
readonly 'system schema description': "This is a system
|
|
71
|
+
readonly 'system schema title': "System type";
|
|
72
|
+
readonly 'system schema description': "This is a system type and cannot be modified, though the view can still be configured.";
|
|
72
73
|
};
|
|
73
74
|
};
|
|
74
75
|
}];
|
|
@@ -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,KAqFtB,CAAC"}
|
|
@@ -9,7 +9,7 @@ import { type FormProps } from '../Form';
|
|
|
9
9
|
export type ViewEditorProps = ThemedClassName<{
|
|
10
10
|
schema: Schema.Schema.AnyNoContext;
|
|
11
11
|
view: View.View;
|
|
12
|
-
mode?: 'schema' | '
|
|
12
|
+
mode?: 'schema' | 'tag';
|
|
13
13
|
registry?: SchemaRegistry;
|
|
14
14
|
readonly?: boolean;
|
|
15
15
|
showHeading?: boolean;
|
|
@@ -22,7 +22,7 @@ export type ViewEditorProps = ThemedClassName<{
|
|
|
22
22
|
export declare const ViewEditor: React.ForwardRefExoticComponent<Omit<{
|
|
23
23
|
schema: Schema.Schema.AnyNoContext;
|
|
24
24
|
view: View.View;
|
|
25
|
-
mode?: "schema" | "
|
|
25
|
+
mode?: "schema" | "tag";
|
|
26
26
|
registry?: SchemaRegistry;
|
|
27
27
|
readonly?: boolean;
|
|
28
28
|
showHeading?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/ViewEditor/ViewEditor.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAA0E,MAAM,OAAO,CAAC;AAE/F,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,EAA8B,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAClG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAI3E,OAAO,EAGL,eAAe,EAEf,KAAK,IAAI,EAEV,MAAM,cAAc,CAAC;AAItB,OAAO,EAAQ,KAAK,SAAS,EAAqD,MAAM,SAAS,CAAC;AAKlG,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,
|
|
1
|
+
{"version":3,"file":"ViewEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/ViewEditor/ViewEditor.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAA0E,MAAM,OAAO,CAAC;AAE/F,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,EAA8B,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAClG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAI3E,OAAO,EAGL,eAAe,EAEf,KAAK,IAAI,EAEV,MAAM,cAAc,CAAC;AAItB,OAAO,EAAQ,KAAK,SAAS,EAAqD,MAAM,SAAS,CAAC;AAKlG,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;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,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,SAAS,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC,GACtC,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,MAAM,CAAC,CACzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;YAfX,MAAM,CAAC,MAAM,CAAC,YAAY;UAC5B,IAAI,CAAC,IAAI;WACR,QAAQ,GAAG,KAAK;eACZ,cAAc;eACd,OAAO;kBACJ,OAAO;qBACJ,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI;eACtD,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;;;yCAqQvC,CAAC"}
|
|
@@ -21,7 +21,7 @@ declare const meta: {
|
|
|
21
21
|
readonly 'fields label': "Fields";
|
|
22
22
|
readonly 'hidden fields label': "Hidden Fields";
|
|
23
23
|
readonly 'empty readonly ref field label': "(none)";
|
|
24
|
-
readonly 'add property button': "Add property";
|
|
24
|
+
readonly 'add property button label': "Add property";
|
|
25
25
|
readonly 'field property label': "Property";
|
|
26
26
|
readonly 'field property placeholder': "Property name";
|
|
27
27
|
readonly 'field format label': "Type";
|
|
@@ -37,7 +37,8 @@ declare const meta: {
|
|
|
37
37
|
readonly 'ref field combobox input placeholder': "Search…";
|
|
38
38
|
readonly 'ref field placeholder_one': "Select…";
|
|
39
39
|
readonly 'ref field placeholder_other': "Select items…";
|
|
40
|
-
readonly '
|
|
40
|
+
readonly 'cancel button label': "Cancel";
|
|
41
|
+
readonly 'save button label': "Save";
|
|
41
42
|
readonly 'format boolean': "Boolean";
|
|
42
43
|
readonly 'format currency': "Currency";
|
|
43
44
|
readonly 'format date': "Date";
|
|
@@ -73,8 +74,8 @@ declare const meta: {
|
|
|
73
74
|
readonly 'select option color': "Color";
|
|
74
75
|
readonly 'select option delete': "Delete";
|
|
75
76
|
readonly 'select option add': "Add option";
|
|
76
|
-
readonly 'system schema title': "System
|
|
77
|
-
readonly 'system schema description': "This is a system
|
|
77
|
+
readonly 'system schema title': "System type";
|
|
78
|
+
readonly 'system schema description': "This is a system type and cannot be modified, though the view can still be configured.";
|
|
78
79
|
};
|
|
79
80
|
};
|
|
80
81
|
}];
|
|
@@ -84,5 +85,5 @@ export default meta;
|
|
|
84
85
|
type Story = StoryObj<typeof meta>;
|
|
85
86
|
export declare const Default: Story;
|
|
86
87
|
export declare const Readonly: Story;
|
|
87
|
-
export declare const
|
|
88
|
+
export declare const TagQueryMode: Story;
|
|
88
89
|
//# sourceMappingURL=ViewEditor.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ViewEditor/ViewEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAE,KAAK,UAAU,EAAU,MAAM,qBAAqB,CAAC;AAK9D,OAAO,EAAE,KAAK,eAAe,EAAE,IAAI,EAAwB,MAAM,cAAc,CAAC;AAMhF,OAAO,EAAc,KAAK,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|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type * as Schema from 'effect/Schema';
|
|
2
|
-
import { type
|
|
2
|
+
import { type AnyProperties } from '@dxos/echo/internal';
|
|
3
3
|
import { type JsonPath, type SimpleType } from '@dxos/effect';
|
|
4
4
|
import { type ValidationError } from '@dxos/schema';
|
|
5
5
|
import { type MaybePromise } from '@dxos/util';
|
|
6
6
|
/**
|
|
7
7
|
* Return type from `useForm` hook.
|
|
8
8
|
*/
|
|
9
|
-
export type FormHandler<T extends
|
|
9
|
+
export type FormHandler<T extends AnyProperties> = {
|
|
10
10
|
values: Partial<T>;
|
|
11
11
|
errors: Record<JsonPath, string>;
|
|
12
12
|
touched: Record<JsonPath, boolean>;
|
|
@@ -25,7 +25,7 @@ export type FormHandler<T extends BaseObject> = {
|
|
|
25
25
|
/**
|
|
26
26
|
* Hook options.
|
|
27
27
|
*/
|
|
28
|
-
export interface FormOptions<T extends
|
|
28
|
+
export interface FormOptions<T extends AnyProperties> {
|
|
29
29
|
/**
|
|
30
30
|
* Effect schema (Type literal).
|
|
31
31
|
*/
|
|
@@ -63,5 +63,5 @@ export interface FormOptions<T extends BaseObject> {
|
|
|
63
63
|
* Creates a hook for managing form state, including values, validation, and submission.
|
|
64
64
|
* Deeply integrated with `@dxos/schema` for schema-based validation.
|
|
65
65
|
*/
|
|
66
|
-
export declare const useForm: <T extends
|
|
66
|
+
export declare const useForm: <T extends AnyProperties>({ schema, initialValues, onValuesChanged, onValidate, onValid, onSave, }: FormOptions<T>) => FormHandler<T>;
|
|
67
67
|
//# sourceMappingURL=useForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useForm.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAI7C,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../../src/hoo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KAAK,IAAI,CAAC;CAChD,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,aAAa;IAClD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAE9B;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAE1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAE/C;;;;OAIG;IAEH,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,eAAe,EAAE,GAAG,SAAS,CAAC;IAE1D;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE;QAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;KAAE,KAAK,IAAI,CAAC;IAE5E;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE;QAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;KAAE,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;CAC1F;AAED;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,aAAa,EAAE,0EAO9C,WAAW,CAAC,CAAC,CAAC,KAAG,WAAW,CAAC,CAAC,CAsLhC,CAAC"}
|
|
@@ -5,7 +5,7 @@ export declare const translations: [{
|
|
|
5
5
|
readonly 'fields label': "Fields";
|
|
6
6
|
readonly 'hidden fields label': "Hidden Fields";
|
|
7
7
|
readonly 'empty readonly ref field label': "(none)";
|
|
8
|
-
readonly 'add property button': "Add property";
|
|
8
|
+
readonly 'add property button label': "Add property";
|
|
9
9
|
readonly 'field property label': "Property";
|
|
10
10
|
readonly 'field property placeholder': "Property name";
|
|
11
11
|
readonly 'field format label': "Type";
|
|
@@ -21,7 +21,8 @@ export declare const translations: [{
|
|
|
21
21
|
readonly 'ref field combobox input placeholder': "Search…";
|
|
22
22
|
readonly 'ref field placeholder_one': "Select…";
|
|
23
23
|
readonly 'ref field placeholder_other': "Select items…";
|
|
24
|
-
readonly '
|
|
24
|
+
readonly 'cancel button label': "Cancel";
|
|
25
|
+
readonly 'save button label': "Save";
|
|
25
26
|
readonly 'format boolean': "Boolean";
|
|
26
27
|
readonly 'format currency': "Currency";
|
|
27
28
|
readonly 'format date': "Date";
|
|
@@ -57,8 +58,8 @@ export declare const translations: [{
|
|
|
57
58
|
readonly 'select option color': "Color";
|
|
58
59
|
readonly 'select option delete': "Delete";
|
|
59
60
|
readonly 'select option add': "Add option";
|
|
60
|
-
readonly 'system schema title': "System
|
|
61
|
-
readonly 'system schema description': "This is a system
|
|
61
|
+
readonly 'system schema title': "System type";
|
|
62
|
+
readonly 'system schema description': "This is a system type and cannot be modified, though the view can still be configured.";
|
|
62
63
|
};
|
|
63
64
|
};
|
|
64
65
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAE9C,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAE9C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8EM,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Format, TypeEnum } from '@dxos/echo/internal';
|
|
2
2
|
import { type ValidationError } from '@dxos/schema';
|
|
3
3
|
/**
|
|
4
4
|
* Parse value by field value type.
|
|
@@ -8,13 +8,13 @@ import { type ValidationError } from '@dxos/schema';
|
|
|
8
8
|
*/
|
|
9
9
|
export type ParseProps = {
|
|
10
10
|
type?: TypeEnum;
|
|
11
|
-
format?:
|
|
11
|
+
format?: Format.TypeFormat;
|
|
12
12
|
value: any;
|
|
13
13
|
};
|
|
14
14
|
export declare const parseValue: ({ type, format, value }: ParseProps) => any;
|
|
15
15
|
export type CellClassesForFieldTypeProps = {
|
|
16
16
|
type?: TypeEnum;
|
|
17
|
-
format?:
|
|
17
|
+
format?: Format.TypeFormat;
|
|
18
18
|
};
|
|
19
19
|
export declare const cellClassesForFieldType: ({ type, format }: CellClassesForFieldTypeProps) => string[] | undefined;
|
|
20
20
|
export declare const pathNotUniqueError: (path: string) => ValidationError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/util/field.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
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,GAAI,yBAAyB,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,GAAI,kBAAkB,4BAA4B,KAAG,MAAM,EAAE,GAAG,SAyBnG,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,KAAG,eAGhD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Format, TypeEnum } from '@dxos/echo/internal';
|
|
2
2
|
type ValueFormatProps = {
|
|
3
3
|
type: TypeEnum;
|
|
4
|
-
format?:
|
|
4
|
+
format?: Format.TypeFormat | undefined;
|
|
5
5
|
value: any;
|
|
6
6
|
locale?: string | undefined;
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../src/util/formatting.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,
|
|
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,GAAI,iCAA6C,gBAAgB,KAAG,MAqFhG,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,iCAA6C,gBAAgB,KAAG,MA8DhG,CAAC"}
|