@dxos/react-ui-form 0.8.3 → 0.8.4-main.1da679c

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.
Files changed (103) hide show
  1. package/dist/lib/browser/index.mjs +648 -581
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node-esm/index.mjs +648 -581
  5. package/dist/lib/node-esm/index.mjs.map +4 -4
  6. package/dist/lib/node-esm/meta.json +1 -1
  7. package/dist/types/src/components/ControlSection/ControlSection.d.ts +2 -2
  8. package/dist/types/src/components/ControlSection/ControlSection.d.ts.map +1 -1
  9. package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts +79 -4
  10. package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts.map +1 -1
  11. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts +4 -5
  12. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts.map +1 -1
  13. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts +76 -6
  14. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
  15. package/dist/types/src/components/Form/ArrayField.d.ts +2 -2
  16. package/dist/types/src/components/Form/ArrayField.d.ts.map +1 -1
  17. package/dist/types/src/components/Form/Defaults.d.ts +5 -5
  18. package/dist/types/src/components/Form/Defaults.d.ts.map +1 -1
  19. package/dist/types/src/components/Form/Form.d.ts +5 -4
  20. package/dist/types/src/components/Form/Form.d.ts.map +1 -1
  21. package/dist/types/src/components/Form/Form.stories.d.ts +126 -30
  22. package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
  23. package/dist/types/src/components/Form/FormActions.d.ts.map +1 -1
  24. package/dist/types/src/components/Form/FormContent.d.ts +16 -10
  25. package/dist/types/src/components/Form/FormContent.d.ts.map +1 -1
  26. package/dist/types/src/components/Form/FormContext.d.ts +1 -1
  27. package/dist/types/src/components/Form/FormContext.d.ts.map +1 -1
  28. package/dist/types/src/components/Form/Input.d.ts +4 -1
  29. package/dist/types/src/components/Form/Input.d.ts.map +1 -1
  30. package/dist/types/src/components/Form/RefField.d.ts +10 -4
  31. package/dist/types/src/components/Form/RefField.d.ts.map +1 -1
  32. package/dist/types/src/components/Form/custom/GeoPointInput.d.ts +1 -1
  33. package/dist/types/src/components/Form/custom/GeoPointInput.d.ts.map +1 -1
  34. package/dist/types/src/components/Form/custom/SelectOptionsInput.d.ts +1 -1
  35. package/dist/types/src/components/Form/custom/SelectOptionsInput.d.ts.map +1 -1
  36. package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts +74 -3
  37. package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts.map +1 -1
  38. package/dist/types/src/components/Form/custom/TupleInput.d.ts +1 -1
  39. package/dist/types/src/components/Form/factory.d.ts.map +1 -1
  40. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts +5 -4
  41. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts.map +1 -1
  42. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts +78 -7
  43. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
  44. package/dist/types/src/components/index.d.ts +0 -1
  45. package/dist/types/src/components/index.d.ts.map +1 -1
  46. package/dist/types/src/components/testing.d.ts +6 -3
  47. package/dist/types/src/components/testing.d.ts.map +1 -1
  48. package/dist/types/src/hooks/useForm.d.ts +1 -1
  49. package/dist/types/src/hooks/useForm.d.ts.map +1 -1
  50. package/dist/types/src/index.d.ts +1 -1
  51. package/dist/types/src/index.d.ts.map +1 -1
  52. package/dist/types/src/translations.d.ts +61 -57
  53. package/dist/types/src/translations.d.ts.map +1 -1
  54. package/dist/types/src/util/field.d.ts.map +1 -1
  55. package/dist/types/tsconfig.tsbuildinfo +1 -1
  56. package/package.json +36 -33
  57. package/src/components/ControlSection/ControlSection.stories.tsx +10 -12
  58. package/src/components/ControlSection/ControlSection.tsx +26 -12
  59. package/src/components/FieldEditor/FieldEditor.stories.tsx +21 -20
  60. package/src/components/FieldEditor/FieldEditor.test.tsx +14 -13
  61. package/src/components/FieldEditor/FieldEditor.tsx +17 -22
  62. package/src/components/Form/ArrayField.tsx +9 -9
  63. package/src/components/Form/Defaults.tsx +22 -20
  64. package/src/components/Form/Form.stories.tsx +131 -95
  65. package/src/components/Form/Form.tsx +16 -12
  66. package/src/components/Form/FormActions.tsx +2 -1
  67. package/src/components/Form/FormContent.tsx +96 -34
  68. package/src/components/Form/FormContext.tsx +5 -5
  69. package/src/components/Form/Input.tsx +4 -1
  70. package/src/components/Form/RefField.tsx +126 -40
  71. package/src/components/Form/custom/GeoPointInput.tsx +29 -21
  72. package/src/components/Form/custom/SelectOptionsInput.stories.tsx +9 -8
  73. package/src/components/Form/custom/SelectOptionsInput.tsx +29 -30
  74. package/src/components/Form/custom/TupleInput.tsx +2 -2
  75. package/src/components/Form/factory.tsx +1 -1
  76. package/src/components/ViewEditor/ViewEditor.stories.tsx +70 -32
  77. package/src/components/ViewEditor/ViewEditor.test.tsx +38 -39
  78. package/src/components/ViewEditor/ViewEditor.tsx +159 -155
  79. package/src/components/index.ts +0 -2
  80. package/src/components/testing.tsx +15 -9
  81. package/src/hooks/useForm.ts +5 -3
  82. package/src/hooks/useRefQueryLookupHandler.ts +1 -1
  83. package/src/index.ts +1 -1
  84. package/src/translations.ts +15 -7
  85. package/src/util/field.ts +8 -18
  86. package/dist/lib/node/index.cjs +0 -2416
  87. package/dist/lib/node/index.cjs.map +0 -7
  88. package/dist/lib/node/meta.json +0 -1
  89. package/dist/types/src/components/ViewEditor/Test.stories.d.ts +0 -10
  90. package/dist/types/src/components/ViewEditor/Test.stories.d.ts.map +0 -1
  91. package/dist/types/src/components/deprecated/Form.d.ts +0 -15
  92. package/dist/types/src/components/deprecated/Form.d.ts.map +0 -1
  93. package/dist/types/src/components/deprecated/Form.stories.d.ts +0 -13
  94. package/dist/types/src/components/deprecated/Form.stories.d.ts.map +0 -1
  95. package/dist/types/src/components/deprecated/FormInput.d.ts +0 -16
  96. package/dist/types/src/components/deprecated/FormInput.d.ts.map +0 -1
  97. package/dist/types/src/components/deprecated/index.d.ts +0 -2
  98. package/dist/types/src/components/deprecated/index.d.ts.map +0 -1
  99. package/src/components/ViewEditor/Test.stories.tsx +0 -45
  100. package/src/components/deprecated/Form.stories.tsx +0 -62
  101. package/src/components/deprecated/Form.tsx +0 -119
  102. package/src/components/deprecated/FormInput.tsx +0 -71
  103. package/src/components/deprecated/index.ts +0 -5
@@ -1,17 +1,88 @@
1
1
  import '@dxos-theme';
2
- import { type Meta, type StoryObj } from '@storybook/react';
2
+ import { type StoryObj } from '@storybook/react-vite';
3
+ import React from 'react';
3
4
  import { type EchoSchema } from '@dxos/echo-schema';
4
- import { ViewProjection, ViewType } from '@dxos/schema';
5
+ import { type DataType, ProjectionModel } from '@dxos/schema';
5
6
  import { type ViewEditorProps } from './ViewEditor';
6
7
  export type ViewEditorDebugObjects = {
7
8
  schema: EchoSchema;
8
- view: ViewType;
9
- projection: ViewProjection;
9
+ view: DataType.View;
10
+ projection: ProjectionModel;
11
+ };
12
+ type StoryProps = Pick<ViewEditorProps, 'readonly' | 'kind'>;
13
+ declare const meta: {
14
+ title: string;
15
+ render: (props: StoryProps) => React.JSX.Element;
16
+ decorators: import("@storybook/react").Decorator[];
17
+ parameters: {
18
+ translations: [{
19
+ readonly 'en-US': {
20
+ readonly "react-ui-form": {
21
+ readonly 'fields label': "Fields";
22
+ readonly 'hidden fields label': "Hidden Fields";
23
+ readonly 'empty readonly ref field label': "(none)";
24
+ readonly 'button add property': "Add property";
25
+ readonly 'field property label': "Property";
26
+ readonly 'field property placeholder': "Property name";
27
+ readonly 'field format label': "Type";
28
+ readonly 'field path label': "Field path";
29
+ readonly 'add field': "Add field";
30
+ readonly 'delete field': "Delete field";
31
+ readonly 'field limit reached': "Maximum number of fields reached";
32
+ readonly 'boolean input true value': "Yes";
33
+ readonly 'boolean input false value': "No";
34
+ readonly 'show field label': "Show field";
35
+ readonly 'hide field label': "Hide field";
36
+ readonly 'delete field label': "Delete field";
37
+ readonly 'ref field placeholder_one': "Select…";
38
+ readonly 'ref field placeholder_other': "Select items…";
39
+ readonly 'button cancel': "Cancel";
40
+ readonly 'button save': "Save";
41
+ readonly 'format boolean': "Boolean";
42
+ readonly 'format currency': "Currency";
43
+ readonly 'format date': "Date";
44
+ readonly 'format date-time': "DateTime";
45
+ readonly 'format did': "DID";
46
+ readonly 'format duration': "Duration";
47
+ readonly 'format dxn': "DXN";
48
+ readonly 'format email': "Email";
49
+ readonly 'format formula': "Formula";
50
+ readonly 'format hostname': "Hostname";
51
+ readonly 'format integer': "Integer";
52
+ readonly 'format json': "JSON";
53
+ readonly 'format latlng': "Geopoint";
54
+ readonly 'format markdown': "Markdown";
55
+ readonly 'format percent': "Percent";
56
+ readonly 'format ref': "Reference";
57
+ readonly 'format regex': "RegExp";
58
+ readonly 'format string': "String";
59
+ readonly 'format single-select': "Select";
60
+ readonly 'format multi-select': "Multi-select";
61
+ readonly 'format text': "Long text";
62
+ readonly 'format time': "Time";
63
+ readonly 'format timestamp': "Timestamp";
64
+ readonly 'format user': "User";
65
+ readonly 'format number': "Number";
66
+ readonly 'format uri': "URI";
67
+ readonly 'format url': "URL";
68
+ readonly 'format uuid': "UUID";
69
+ readonly 'latitude label': "Latitude";
70
+ readonly 'longitude label': "Longitude";
71
+ readonly 'select option label': "Label";
72
+ readonly 'select option label placeholder': "Option label";
73
+ readonly 'select option color': "Color";
74
+ readonly 'select option delete': "Delete";
75
+ readonly 'select option add': "Add option";
76
+ readonly 'system schema title': "System record type";
77
+ readonly 'system schema description': "This is a system record type and cannot be modified, though the view can still be configured.";
78
+ };
79
+ };
80
+ }];
81
+ };
10
82
  };
11
- type StoryProps = Pick<ViewEditorProps, 'readonly'>;
12
- declare const meta: Meta<StoryProps>;
13
83
  export default meta;
14
- type Story = StoryObj<StoryProps>;
84
+ type Story = StoryObj<typeof meta>;
15
85
  export declare const Default: Story;
16
86
  export declare const Readonly: Story;
87
+ export declare const Advanced: Story;
17
88
  //# 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,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAI5D,OAAO,EAAU,KAAK,UAAU,EAA6B,MAAM,mBAAmB,CAAC;AAIvF,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAc,MAAM,cAAc,CAAC;AAGpE,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAKhE,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAC;IACf,UAAU,EAAE,cAAc,CAAC;CAC5B,CAAC;AAEF,KAAK,UAAU,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;AA4EpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAAU,CAK1B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAElC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC"}
1
+ {"version":3,"file":"ViewEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ViewEditor/ViewEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAE,KAAK,UAAU,EAAwB,MAAM,mBAAmB,CAAC;AAK1E,OAAO,EAAE,KAAK,QAAQ,EAAE,eAAe,EAAiC,MAAM,cAAc,CAAC;AAM7F,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAGhE,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,KAAK,UAAU,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC;AAmG7D,QAAA,MAAM,IAAI;;oBAjGmB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8GF,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,KAEtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC"}
@@ -1,4 +1,3 @@
1
- export * from './deprecated';
2
1
  export * from './ControlSection';
3
2
  export * from './FieldEditor';
4
3
  export * from './Form';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAE7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
@@ -1,9 +1,12 @@
1
1
  import React, { type PropsWithChildren } from 'react';
2
2
  import { type ThemedClassName } from '@dxos/react-ui';
3
- export declare const TestLayout: ({ classNames, json, children }: ThemedClassName<PropsWithChildren<{
3
+ type TestLayoutProps = ThemedClassName<PropsWithChildren<{
4
4
  json?: any;
5
- }>>) => React.JSX.Element;
6
- export declare const TestPanel: ({ classNames, children }: ThemedClassName<PropsWithChildren>) => React.JSX.Element;
5
+ }>>;
6
+ export declare const TestLayout: ({ classNames, children, json }: TestLayoutProps) => React.JSX.Element;
7
+ type TestPanelProps = ThemedClassName<PropsWithChildren>;
8
+ export declare const TestPanel: ({ classNames, children }: TestPanelProps) => React.JSX.Element;
7
9
  export declare const VIEW_EDITOR_DEBUG_SYMBOL: unique symbol;
8
10
  export declare const FIELD_EDITOR_DEBUG_SYMBOL: unique symbol;
11
+ export {};
9
12
  //# sourceMappingURL=testing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/components/testing.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKtD,eAAO,MAAM,UAAU,GAAI,gCAAgC,eAAe,CAAC,iBAAiB,CAAC;IAAE,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC,sBAK5G,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,0BAA0B,eAAe,CAAC,iBAAiB,CAAC,sBAErF,CAAC;AAGF,eAAO,MAAM,wBAAwB,eAA4B,CAAC;AAClE,eAAO,MAAM,yBAAyB,eAA6B,CAAC"}
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/components/testing.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKtD,KAAK,eAAe,GAAG,eAAe,CAAC,iBAAiB,CAAC;IAAE,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC,CAAC;AAE1E,eAAO,MAAM,UAAU,GAAI,gCAAgC,eAAe,sBAOzE,CAAC;AAEF,KAAK,cAAc,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAEzD,eAAO,MAAM,SAAS,GAAI,0BAA0B,cAAc,sBAEjE,CAAC;AAGF,eAAO,MAAM,wBAAwB,eAA4B,CAAC;AAClE,eAAO,MAAM,yBAAyB,eAA6B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type Schema } from 'effect';
2
2
  import { type BaseObject } from '@dxos/echo-schema';
3
- import { type SimpleType, type JsonPath } from '@dxos/effect';
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
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useForm.ts"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhD,OAAO,EAAE,KAAK,UAAU,EAAsB,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAA4C,MAAM,cAAc,CAAC;AAGxG,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,UAAU,IAAI;IAK9C,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CA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C,SAAS,UAAU,EAAE,0EAO3C,WAAW,CAAC,CAAC,CAAC,KAAG,WAAW,CAAC,CAAC,CAoLhC,CAAC"}
@@ -1,4 +1,4 @@
1
- import translations from './translations';
1
+ import { translations } from './translations';
2
2
  export * from './components';
3
3
  export * from './hooks';
4
4
  export * from './util';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1,61 +1,65 @@
1
1
  export declare const translationKey = "react-ui-form";
2
- declare const _default: {
3
- 'en-US': {
4
- "react-ui-form": {
5
- 'fields label': string;
6
- 'hidden fields label': string;
7
- 'empty readonly ref field label': string;
8
- 'button add property': string;
9
- 'field property label': string;
10
- 'field property placeholder': string;
11
- 'field format label': string;
12
- 'field path label': string;
13
- 'add field': string;
14
- 'delete field': string;
15
- 'field limit reached': string;
16
- 'boolean input true value': string;
17
- 'boolean input false value': string;
18
- 'button cancel': string;
19
- 'button save': string;
20
- 'format boolean': string;
21
- 'format currency': string;
22
- 'format date': string;
23
- 'format date-time': string;
24
- 'format did': string;
25
- 'format duration': string;
26
- 'format dxn': string;
27
- 'format email': string;
28
- 'format formula': string;
29
- 'format hostname': string;
30
- 'format integer': string;
31
- 'format json': string;
32
- 'format latlng': string;
33
- 'format markdown': string;
34
- 'format percent': string;
35
- 'format ref': string;
36
- 'format regex': string;
37
- 'format string': string;
38
- 'format single-select': string;
39
- 'format multi-select': string;
40
- 'format text': string;
41
- 'format time': string;
42
- 'format timestamp': string;
43
- 'format user': string;
44
- 'format number': string;
45
- 'format uri': string;
46
- 'format url': string;
47
- 'format uuid': string;
48
- 'placeholder latitude': string;
49
- 'placeholder longitude': string;
50
- 'select option label': string;
51
- 'select option label placeholder': string;
52
- 'select option color': string;
53
- 'select option delete': string;
54
- 'select option add': string;
55
- 'system schema title': string;
56
- 'system schema description': string;
2
+ export declare const translations: [{
3
+ readonly 'en-US': {
4
+ readonly "react-ui-form": {
5
+ readonly 'fields label': "Fields";
6
+ readonly 'hidden fields label': "Hidden Fields";
7
+ readonly 'empty readonly ref field label': "(none)";
8
+ readonly 'button add property': "Add property";
9
+ readonly 'field property label': "Property";
10
+ readonly 'field property placeholder': "Property name";
11
+ readonly 'field format label': "Type";
12
+ readonly 'field path label': "Field path";
13
+ readonly 'add field': "Add field";
14
+ readonly 'delete field': "Delete field";
15
+ readonly 'field limit reached': "Maximum number of fields reached";
16
+ readonly 'boolean input true value': "Yes";
17
+ readonly 'boolean input false value': "No";
18
+ readonly 'show field label': "Show field";
19
+ readonly 'hide field label': "Hide field";
20
+ readonly 'delete field label': "Delete field";
21
+ readonly 'ref field placeholder_one': "Select…";
22
+ readonly 'ref field placeholder_other': "Select items…";
23
+ readonly 'button cancel': "Cancel";
24
+ readonly 'button save': "Save";
25
+ readonly 'format boolean': "Boolean";
26
+ readonly 'format currency': "Currency";
27
+ readonly 'format date': "Date";
28
+ readonly 'format date-time': "DateTime";
29
+ readonly 'format did': "DID";
30
+ readonly 'format duration': "Duration";
31
+ readonly 'format dxn': "DXN";
32
+ readonly 'format email': "Email";
33
+ readonly 'format formula': "Formula";
34
+ readonly 'format hostname': "Hostname";
35
+ readonly 'format integer': "Integer";
36
+ readonly 'format json': "JSON";
37
+ readonly 'format latlng': "Geopoint";
38
+ readonly 'format markdown': "Markdown";
39
+ readonly 'format percent': "Percent";
40
+ readonly 'format ref': "Reference";
41
+ readonly 'format regex': "RegExp";
42
+ readonly 'format string': "String";
43
+ readonly 'format single-select': "Select";
44
+ readonly 'format multi-select': "Multi-select";
45
+ readonly 'format text': "Long text";
46
+ readonly 'format time': "Time";
47
+ readonly 'format timestamp': "Timestamp";
48
+ readonly 'format user': "User";
49
+ readonly 'format number': "Number";
50
+ readonly 'format uri': "URI";
51
+ readonly 'format url': "URL";
52
+ readonly 'format uuid': "UUID";
53
+ readonly 'latitude label': "Latitude";
54
+ readonly 'longitude label': "Longitude";
55
+ readonly 'select option label': "Label";
56
+ readonly 'select option label placeholder': "Option label";
57
+ readonly 'select option color': "Color";
58
+ readonly 'select option delete': "Delete";
59
+ readonly 'select option add': "Add option";
60
+ readonly 'system schema title': "System record type";
61
+ readonly 'system schema description': "This is a system record type and cannot be modified, though the view can still be configured.";
57
62
  };
58
63
  };
59
- }[];
60
- export default _default;
64
+ }];
61
65
  //# sourceMappingURL=translations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,kBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9C,wBAuEE"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAE9C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6EM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/util/field.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAe,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CA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