@dxos/react-ui-form 0.8.4-main.c4373fc → 0.8.4-main.c85a9c8dae

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 (185) hide show
  1. package/README.md +0 -1
  2. package/dist/lib/browser/index.mjs +2289 -2269
  3. package/dist/lib/browser/index.mjs.map +4 -4
  4. package/dist/lib/browser/meta.json +1 -1
  5. package/dist/lib/node-esm/index.mjs +2289 -2269
  6. package/dist/lib/node-esm/index.mjs.map +4 -4
  7. package/dist/lib/node-esm/meta.json +1 -1
  8. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts +8 -7
  9. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts.map +1 -1
  10. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts +13 -7
  11. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
  12. package/dist/types/src/components/Form/Form.d.ts +81 -26
  13. package/dist/types/src/components/Form/Form.d.ts.map +1 -1
  14. package/dist/types/src/components/Form/Form.stories.d.ts +59 -84
  15. package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
  16. package/dist/types/src/components/Form/FormField.d.ts +37 -0
  17. package/dist/types/src/components/Form/FormField.d.ts.map +1 -0
  18. package/dist/types/src/components/Form/FormFieldComponent.d.ts +78 -0
  19. package/dist/types/src/components/Form/FormFieldComponent.d.ts.map +1 -0
  20. package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts +9 -0
  21. package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts.map +1 -0
  22. package/dist/types/src/components/Form/FormFieldSet.d.ts +19 -0
  23. package/dist/types/src/components/Form/FormFieldSet.d.ts.map +1 -0
  24. package/dist/types/src/components/Form/fields/ArrayField.d.ts +18 -0
  25. package/dist/types/src/components/Form/fields/ArrayField.d.ts.map +1 -0
  26. package/dist/types/src/components/Form/fields/BooleanField.d.ts +4 -0
  27. package/dist/types/src/components/Form/fields/BooleanField.d.ts.map +1 -0
  28. package/dist/types/src/components/Form/fields/GeoPointField.d.ts +5 -0
  29. package/dist/types/src/components/Form/fields/GeoPointField.d.ts.map +1 -0
  30. package/dist/types/src/components/Form/fields/MarkdownField.d.ts +4 -0
  31. package/dist/types/src/components/Form/fields/MarkdownField.d.ts.map +1 -0
  32. package/dist/types/src/components/Form/fields/NumberField.d.ts +4 -0
  33. package/dist/types/src/components/Form/fields/NumberField.d.ts.map +1 -0
  34. package/dist/types/src/components/Form/fields/RefField.d.ts +14 -0
  35. package/dist/types/src/components/Form/fields/RefField.d.ts.map +1 -0
  36. package/dist/types/src/components/Form/fields/SelectField.d.ts +10 -0
  37. package/dist/types/src/components/Form/fields/SelectField.d.ts.map +1 -0
  38. package/dist/types/src/components/Form/fields/SelectOptionField.d.ts +5 -0
  39. package/dist/types/src/components/Form/fields/SelectOptionField.d.ts.map +1 -0
  40. package/dist/types/src/components/{ControlSection/ControlSection.stories.d.ts → Form/fields/SelectOptionField.stories.d.ts} +12 -14
  41. package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts.map +1 -0
  42. package/dist/types/src/components/Form/fields/TextAreaField.d.ts +4 -0
  43. package/dist/types/src/components/Form/fields/TextAreaField.d.ts.map +1 -0
  44. package/dist/types/src/components/Form/fields/TextField.d.ts +4 -0
  45. package/dist/types/src/components/Form/fields/TextField.d.ts.map +1 -0
  46. package/dist/types/src/components/Form/fields/TupleField.d.ts +6 -0
  47. package/dist/types/src/components/Form/fields/TupleField.d.ts.map +1 -0
  48. package/dist/types/src/components/Form/fields/index.d.ts +12 -0
  49. package/dist/types/src/components/Form/fields/index.d.ts.map +1 -0
  50. package/dist/types/src/components/Form/index.d.ts +2 -4
  51. package/dist/types/src/components/Form/index.d.ts.map +1 -1
  52. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts +15 -10
  53. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts.map +1 -1
  54. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts +10 -6
  55. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts.map +1 -1
  56. package/dist/types/src/components/Settings/Settings.d.ts +56 -0
  57. package/dist/types/src/components/Settings/Settings.d.ts.map +1 -0
  58. package/dist/types/src/components/{Form/custom/SelectOptionsInput.stories.d.ts → Settings/Settings.stories.d.ts} +10 -8
  59. package/dist/types/src/components/Settings/Settings.stories.d.ts.map +1 -0
  60. package/dist/types/src/components/Settings/index.d.ts +2 -0
  61. package/dist/types/src/components/Settings/index.d.ts.map +1 -0
  62. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts +16 -16
  63. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts.map +1 -1
  64. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts +13 -9
  65. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
  66. package/dist/types/src/components/index.d.ts +1 -1
  67. package/dist/types/src/components/index.d.ts.map +1 -1
  68. package/dist/types/src/components/testing.d.ts +0 -2
  69. package/dist/types/src/components/testing.d.ts.map +1 -1
  70. package/dist/types/src/hooks/index.d.ts +2 -3
  71. package/dist/types/src/hooks/index.d.ts.map +1 -1
  72. package/dist/types/src/hooks/useFormHandler.d.ts +82 -0
  73. package/dist/types/src/hooks/useFormHandler.d.ts.map +1 -0
  74. package/dist/types/src/hooks/useKeyHandler.d.ts +6 -0
  75. package/dist/types/src/hooks/useKeyHandler.d.ts.map +1 -0
  76. package/dist/types/src/translations.d.ts +10 -7
  77. package/dist/types/src/translations.d.ts.map +1 -1
  78. package/dist/types/src/util/field.d.ts +3 -3
  79. package/dist/types/src/util/field.d.ts.map +1 -1
  80. package/dist/types/src/util/formatting.d.ts +2 -2
  81. package/dist/types/src/util/formatting.d.ts.map +1 -1
  82. package/dist/types/src/util/index.d.ts +1 -1
  83. package/dist/types/src/util/index.d.ts.map +1 -1
  84. package/dist/types/src/util/properties.d.ts +7 -0
  85. package/dist/types/src/util/properties.d.ts.map +1 -0
  86. package/dist/types/src/util/refs.d.ts +1 -2
  87. package/dist/types/src/util/refs.d.ts.map +1 -1
  88. package/dist/types/tsconfig.tsbuildinfo +1 -1
  89. package/package.json +50 -46
  90. package/src/components/FieldEditor/FieldEditor.stories.tsx +43 -24
  91. package/src/components/FieldEditor/FieldEditor.tsx +74 -78
  92. package/src/components/Form/Form.stories.tsx +149 -248
  93. package/src/components/Form/Form.tsx +347 -107
  94. package/src/components/Form/FormField.tsx +294 -0
  95. package/src/components/Form/FormFieldComponent.stories.tsx +65 -0
  96. package/src/components/Form/FormFieldComponent.tsx +172 -0
  97. package/src/components/Form/FormFieldSet.tsx +123 -0
  98. package/src/components/Form/README.md +3 -0
  99. package/src/components/Form/fields/ArrayField.tsx +149 -0
  100. package/src/components/Form/fields/BooleanField.tsx +22 -0
  101. package/src/components/Form/fields/GeoPointField.tsx +120 -0
  102. package/src/components/Form/fields/MarkdownField.tsx +78 -0
  103. package/src/components/Form/fields/NumberField.tsx +39 -0
  104. package/src/components/Form/fields/RefField.tsx +189 -0
  105. package/src/components/Form/fields/SelectField.tsx +65 -0
  106. package/src/components/Form/{custom/SelectOptionsInput.stories.tsx → fields/SelectOptionField.stories.tsx} +19 -16
  107. package/src/components/Form/{custom/SelectOptionsInput.tsx → fields/SelectOptionField.tsx} +23 -17
  108. package/src/components/Form/fields/TextAreaField.tsx +38 -0
  109. package/src/components/Form/fields/TextField.tsx +38 -0
  110. package/src/components/Form/{custom/TupleInput.tsx → fields/TupleField.tsx} +15 -8
  111. package/src/components/Form/fields/index.ts +15 -0
  112. package/src/components/Form/index.ts +3 -4
  113. package/src/components/ObjectPicker/ObjectPicker.stories.tsx +40 -37
  114. package/src/components/ObjectPicker/ObjectPicker.tsx +84 -70
  115. package/src/components/Settings/Settings.stories.tsx +56 -0
  116. package/src/components/Settings/Settings.tsx +230 -0
  117. package/src/components/{ControlSection → Settings}/index.ts +1 -1
  118. package/src/components/ViewEditor/ViewEditor.stories.tsx +69 -49
  119. package/src/components/ViewEditor/ViewEditor.test.tsx +8 -6
  120. package/src/components/ViewEditor/ViewEditor.tsx +302 -271
  121. package/src/components/index.ts +1 -1
  122. package/src/components/testing.tsx +12 -7
  123. package/src/hooks/index.ts +2 -3
  124. package/src/hooks/useFormHandler.ts +380 -0
  125. package/src/hooks/useKeyHandler.tsx +37 -0
  126. package/src/translations.ts +12 -10
  127. package/src/util/field.ts +25 -25
  128. package/src/util/formatting.ts +22 -22
  129. package/src/util/index.ts +1 -1
  130. package/src/util/properties.ts +18 -0
  131. package/src/util/refs.ts +11 -17
  132. package/dist/types/src/components/ControlSection/ControlSection.d.ts +0 -23
  133. package/dist/types/src/components/ControlSection/ControlSection.d.ts.map +0 -1
  134. package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts.map +0 -1
  135. package/dist/types/src/components/ControlSection/index.d.ts +0 -2
  136. package/dist/types/src/components/ControlSection/index.d.ts.map +0 -1
  137. package/dist/types/src/components/Form/ArrayField.d.ts +0 -16
  138. package/dist/types/src/components/Form/ArrayField.d.ts.map +0 -1
  139. package/dist/types/src/components/Form/Defaults.d.ts +0 -14
  140. package/dist/types/src/components/Form/Defaults.d.ts.map +0 -1
  141. package/dist/types/src/components/Form/FormActions.d.ts +0 -9
  142. package/dist/types/src/components/Form/FormActions.d.ts.map +0 -1
  143. package/dist/types/src/components/Form/FormContent.d.ts +0 -63
  144. package/dist/types/src/components/Form/FormContent.d.ts.map +0 -1
  145. package/dist/types/src/components/Form/FormContext.d.ts +0 -23
  146. package/dist/types/src/components/Form/FormContext.d.ts.map +0 -1
  147. package/dist/types/src/components/Form/Input.d.ts +0 -29
  148. package/dist/types/src/components/Form/Input.d.ts.map +0 -1
  149. package/dist/types/src/components/Form/RefField.d.ts +0 -21
  150. package/dist/types/src/components/Form/RefField.d.ts.map +0 -1
  151. package/dist/types/src/components/Form/custom/GeoPointInput.d.ts +0 -4
  152. package/dist/types/src/components/Form/custom/GeoPointInput.d.ts.map +0 -1
  153. package/dist/types/src/components/Form/custom/SelectOptionsInput.d.ts +0 -4
  154. package/dist/types/src/components/Form/custom/SelectOptionsInput.d.ts.map +0 -1
  155. package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts.map +0 -1
  156. package/dist/types/src/components/Form/custom/TupleInput.d.ts +0 -6
  157. package/dist/types/src/components/Form/custom/TupleInput.d.ts.map +0 -1
  158. package/dist/types/src/components/Form/custom/index.d.ts +0 -4
  159. package/dist/types/src/components/Form/custom/index.d.ts.map +0 -1
  160. package/dist/types/src/components/Form/factory.d.ts +0 -8
  161. package/dist/types/src/components/Form/factory.d.ts.map +0 -1
  162. package/dist/types/src/hooks/useForm.d.ts +0 -67
  163. package/dist/types/src/hooks/useForm.d.ts.map +0 -1
  164. package/dist/types/src/hooks/useQueryRefOptions.d.ts +0 -28
  165. package/dist/types/src/hooks/useQueryRefOptions.d.ts.map +0 -1
  166. package/dist/types/src/hooks/useRefQueryLookupHandler.d.ts +0 -8
  167. package/dist/types/src/hooks/useRefQueryLookupHandler.d.ts.map +0 -1
  168. package/dist/types/src/util/schema.d.ts +0 -3
  169. package/dist/types/src/util/schema.d.ts.map +0 -1
  170. package/src/components/ControlSection/ControlSection.stories.tsx +0 -38
  171. package/src/components/ControlSection/ControlSection.tsx +0 -153
  172. package/src/components/Form/ArrayField.tsx +0 -125
  173. package/src/components/Form/Defaults.tsx +0 -205
  174. package/src/components/Form/FormActions.tsx +0 -54
  175. package/src/components/Form/FormContent.tsx +0 -322
  176. package/src/components/Form/FormContext.tsx +0 -110
  177. package/src/components/Form/Input.tsx +0 -54
  178. package/src/components/Form/RefField.tsx +0 -269
  179. package/src/components/Form/custom/GeoPointInput.tsx +0 -80
  180. package/src/components/Form/custom/index.ts +0 -7
  181. package/src/components/Form/factory.tsx +0 -31
  182. package/src/hooks/useForm.ts +0 -295
  183. package/src/hooks/useQueryRefOptions.ts +0 -59
  184. package/src/hooks/useRefQueryLookupHandler.ts +0 -39
  185. package/src/util/schema.ts +0 -12
@@ -1,21 +1,26 @@
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 QueryTag } from '../../hooks';
3
+ import { type Palette, type ThemedClassName } from '@dxos/react-ui';
4
+ export type RefOption = {
5
+ id: string;
6
+ label: string;
7
+ hue?: Palette;
8
+ };
5
9
  export type ObjectPickerContentProps = ThemedClassName<{
6
- options: QueryTag[];
10
+ options: RefOption[];
7
11
  selectedIds?: string[];
8
- createSchema?: Schema.Schema.AnyNoContext;
9
12
  createOptionLabel?: [string, {
10
13
  ns: string;
11
14
  }];
12
15
  createOptionIcon?: string;
16
+ createSchema?: Schema.Schema.AnyNoContext;
13
17
  createInitialValuePath?: string;
14
- onSelect: (id: string) => void;
15
18
  onCreate?: (values: any) => void;
19
+ onSelect: (id: string) => void;
16
20
  }>;
17
21
  export declare const ObjectPicker: {
18
- Root: ({ modal, children, open: propsOpen, onOpenChange: propsOnOpenChange, defaultOpen, ...props }: import("@dxos/react-ui-searchlist").PopoverComboboxRootProps) => React.JSX.Element;
22
+ Root: ({ modal, modalId: propsModalId, open: propsOpen, defaultOpen, onOpenChange: propsOnOpenChange, value: propsValue, defaultValue, onValueChange: propsOnValueChange, placeholder, children, }: import("@dxos/react-ui-searchlist").ComboboxRootProps) => React.JSX.Element;
23
+ Portal: React.FC<import("@dxos/react-ui").PopoverPortalProps>;
19
24
  Trigger: React.ForwardRefExoticComponent<Omit<import("@dxos/react-ui").ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
20
25
  VirtualTrigger: {
21
26
  (props: import("@dxos/react-ui").PopoverVirtualTriggerProps & {
@@ -24,18 +29,18 @@ export declare const ObjectPicker: {
24
29
  displayName: string;
25
30
  };
26
31
  Content: React.ForwardRefExoticComponent<Omit<{
27
- options: QueryTag[];
32
+ options: RefOption[];
28
33
  selectedIds?: string[];
29
- createSchema?: Schema.Schema.AnyNoContext;
30
34
  createOptionLabel?: [string, {
31
35
  ns: string;
32
36
  }];
33
37
  createOptionIcon?: string;
38
+ createSchema?: Schema.Schema.AnyNoContext;
34
39
  createInitialValuePath?: string;
35
- onSelect: (id: string) => void;
36
40
  onCreate?: (values: any) => void;
41
+ onSelect: (id: string) => void;
37
42
  }, "className"> & {
38
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
43
+ classNames?: import("@dxos/ui-types").ClassNameValue;
39
44
  } & React.RefAttributes<HTMLDivElement>>;
40
45
  };
41
46
  //# 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,KAA0F,MAAM,OAAO,CAAC;AAE/G,OAAO,EAAiB,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAGrF,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC;IACrD,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IAC1C,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;CAClC,CAAC,CAAC;AAoIH,eAAO,MAAM,YAAY;;;;;0BArGb,CAAC;;;;;iBAvCF,QAAQ,EAAE;sBACL,MAAM,EAAE;uBACP,MAAM,CAAC,MAAM,CAAC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AAE,MAAM,CAAA;SAAE,CAAC;2BACzB,MAAM;uBACV,MAAM,CAAC,MAAM,CAAC,YAAY;iCAChB,MAAM;mBACpB,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI;kBACtB,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI;;;;CAmJ/B,CAAC"}
@@ -11,11 +11,11 @@ declare const meta: {
11
11
  };
12
12
  translations: [{
13
13
  readonly 'en-US': {
14
- readonly "react-ui-form": {
14
+ readonly "@dxos/react-ui-form": {
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 'button add property': "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,8 +31,11 @@ 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 'button cancel': "Cancel";
35
- readonly 'button save': "Save";
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";
36
39
  readonly 'format boolean': "Boolean";
37
40
  readonly 'format currency': "Currency";
38
41
  readonly 'format date': "Date";
@@ -68,8 +71,8 @@ declare const meta: {
68
71
  readonly 'select option color': "Color";
69
72
  readonly 'select option delete': "Delete";
70
73
  readonly 'select option add': "Add option";
71
- readonly 'system schema title': "System record type";
72
- readonly 'system schema description': "This is a system record type and cannot be modified, though the view can still be configured.";
74
+ readonly 'system schema title': "System type";
75
+ readonly 'system schema description': "System type: cannot add or remove fields.";
73
76
  };
74
77
  };
75
78
  }];
@@ -78,4 +81,5 @@ declare const meta: {
78
81
  export default meta;
79
82
  type Story = StoryObj<typeof meta>;
80
83
  export declare const Default: Story;
84
+ export declare const WithTest: Story;
81
85
  //# sourceMappingURL=ObjectPicker.stories.d.ts.map
@@ -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;AA6FzE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAqFrB,CAAC"}
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;AA4FzE,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,56 @@
1
+ import React, { type PropsWithChildren } from 'react';
2
+ import { type ButtonProps, type Label, type ThemedClassName } from '@dxos/react-ui';
3
+ type SettingsRootProps = PropsWithChildren;
4
+ type SettingsSectionProps = PropsWithChildren<{
5
+ title: Label;
6
+ description?: Label;
7
+ }>;
8
+ type SettingsGroupProps = ThemedClassName<PropsWithChildren>;
9
+ type SettingsItemProps = PropsWithChildren<{
10
+ title: Label;
11
+ description?: Label;
12
+ }>;
13
+ export declare const Settings: {
14
+ Root: {
15
+ ({ children }: SettingsRootProps): React.JSX.Element;
16
+ displayName: string;
17
+ };
18
+ Section: {
19
+ ({ title, description, children }: SettingsSectionProps): React.JSX.Element;
20
+ displayName: string;
21
+ };
22
+ SectionHeading: {
23
+ ({ title, description }: Omit<SettingsSectionProps, "children">): React.JSX.Element;
24
+ displayName: string;
25
+ };
26
+ Group: {
27
+ ({ children, classNames }: SettingsGroupProps): React.JSX.Element;
28
+ displayName: string;
29
+ };
30
+ GroupButton: {
31
+ ({ classNames, ...props }: ButtonProps): React.JSX.Element;
32
+ displayName: string;
33
+ };
34
+ Container: {
35
+ ({ classNames, children }: ThemedClassName<PropsWithChildren>): React.JSX.Element;
36
+ displayName: string;
37
+ };
38
+ Frame: {
39
+ ({ children }: SettingsGroupProps): React.JSX.Element;
40
+ displayName: string;
41
+ };
42
+ FrameItem: {
43
+ ({ title, description, children }: SettingsItemProps): React.JSX.Element;
44
+ displayName: string;
45
+ };
46
+ Item: {
47
+ ({ title, description, children }: SettingsItemProps): React.JSX.Element;
48
+ displayName: string;
49
+ };
50
+ ItemInput: {
51
+ ({ title, description, children }: SettingsItemProps): React.JSX.Element;
52
+ displayName: string;
53
+ };
54
+ };
55
+ export {};
56
+ //# 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,EAEL,KAAK,WAAW,EAEhB,KAAK,KAAK,EAEV,KAAK,eAAe,EAGrB,MAAM,gBAAgB,CAAC;AA0BxB,KAAK,iBAAiB,GAAG,iBAAiB,CAAC;AAgB3C,KAAK,oBAAoB,GAAG,iBAAiB,CAAC;IAC5C,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC,CAAC;AA2CH,KAAK,kBAAkB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAkE7D,KAAK,iBAAiB,GAAG,iBAAiB,CAAC;IACzC,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC,CAAC;AA8CH,eAAO,MAAM,QAAQ;;uBA/Ke,iBAAiB;;;;2CAmBM,oBAAoB;;;;iCAevB,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC;;;;mCA4B7C,kBAAkB;;;;mCAZZ,WAAW;;;;mCAsDb,eAAe,CAAC,iBAAiB,CAAC;;;;uBA9BlD,kBAAkB;;;;2CAYM,iBAAiB;;;;2CA6CjB,iBAAiB;;;;2CAoBZ,iBAAiB;;;CAmClF,CAAC"}
@@ -2,18 +2,17 @@ import { type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: any;
6
5
  render: () => React.JSX.Element;
7
6
  decorators: import("@storybook/react").Decorator[];
8
7
  parameters: {
9
8
  layout: string;
10
9
  translations: [{
11
10
  readonly 'en-US': {
12
- readonly "react-ui-form": {
11
+ readonly "@dxos/react-ui-form": {
13
12
  readonly 'fields label': "Fields";
14
13
  readonly 'hidden fields label': "Hidden Fields";
15
14
  readonly 'empty readonly ref field label': "(none)";
16
- readonly 'button add property': "Add property";
15
+ readonly 'add property button label': "Add property";
17
16
  readonly 'field property label': "Property";
18
17
  readonly 'field property placeholder': "Property name";
19
18
  readonly 'field format label': "Type";
@@ -29,8 +28,11 @@ declare const meta: {
29
28
  readonly 'ref field combobox input placeholder': "Search…";
30
29
  readonly 'ref field placeholder_one': "Select…";
31
30
  readonly 'ref field placeholder_other': "Select items…";
32
- readonly 'button cancel': "Cancel";
33
- readonly 'button save': "Save";
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";
34
36
  readonly 'format boolean': "Boolean";
35
37
  readonly 'format currency': "Currency";
36
38
  readonly 'format date': "Date";
@@ -66,8 +68,8 @@ declare const meta: {
66
68
  readonly 'select option color': "Color";
67
69
  readonly 'select option delete': "Delete";
68
70
  readonly 'select option add': "Add option";
69
- readonly 'system schema title': "System record type";
70
- readonly 'system schema description': "This is a system record type and cannot be modified, though the view can still be configured.";
71
+ readonly 'system schema title': "System type";
72
+ readonly 'system schema description': "System type: cannot add or remove fields.";
71
73
  };
72
74
  };
73
75
  }];
@@ -76,4 +78,4 @@ declare const meta: {
76
78
  export default meta;
77
79
  type Story = StoryObj<typeof meta>;
78
80
  export declare const Default: Story;
79
- //# sourceMappingURL=SelectOptionsInput.stories.d.ts.map
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;AAoC1B,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,2 @@
1
+ export * from './Settings';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Settings/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC"}
@@ -1,32 +1,32 @@
1
1
  import * as Schema from 'effect/Schema';
2
2
  import React from 'react';
3
- import { type SchemaRegistry } from '@dxos/echo-db';
3
+ import { QueryAST, type SchemaRegistry } from '@dxos/echo';
4
+ import { View } from '@dxos/echo';
4
5
  import { type ThemedClassName } from '@dxos/react-ui';
5
- import { type DataType, ProjectionModel } from '@dxos/schema';
6
- import { type FormProps } from '../Form';
6
+ import { type QueryFormProps } from '@dxos/react-ui-components';
7
+ import { ProjectionModel } from '@dxos/schema';
8
+ import { type FormRootProps } from '../Form';
7
9
  export type ViewEditorProps = ThemedClassName<{
8
10
  schema: Schema.Schema.AnyNoContext;
9
- view: DataType.View;
10
- mode?: 'schema' | 'query';
11
- registry?: SchemaRegistry;
12
- readonly?: boolean;
11
+ view: View.View;
12
+ mode?: 'schema' | 'tag';
13
+ registry?: SchemaRegistry.SchemaRegistry;
13
14
  showHeading?: boolean;
14
- onQueryChanged?: (query: string, target?: string) => void;
15
+ onQueryChanged?: (query: QueryAST.Query, target?: string) => void;
15
16
  onDelete?: (fieldId: string) => void;
16
- } & Pick<FormProps<any>, 'outerSpacing'>>;
17
+ } & Pick<QueryFormProps, 'types' | 'tags'> & Pick<FormRootProps<any>, 'readonly' | 'db'>>;
17
18
  /**
18
19
  * Schema-based object form.
19
20
  */
20
21
  export declare const ViewEditor: React.ForwardRefExoticComponent<Omit<{
21
22
  schema: Schema.Schema.AnyNoContext;
22
- view: DataType.View;
23
- mode?: "schema" | "query";
24
- registry?: SchemaRegistry;
25
- readonly?: boolean;
23
+ view: View.View;
24
+ mode?: "schema" | "tag";
25
+ registry?: SchemaRegistry.SchemaRegistry;
26
26
  showHeading?: boolean;
27
- onQueryChanged?: (query: string, target?: string) => void;
27
+ onQueryChanged?: (query: QueryAST.Query, target?: string) => void;
28
28
  onDelete?: (fieldId: string) => void;
29
- } & Pick<FormProps<any>, "outerSpacing">, "className"> & {
30
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
29
+ } & Pick<QueryFormProps, "types" | "tags"> & Pick<FormRootProps<any>, "readonly" | "db">, "className"> & {
30
+ classNames?: import("@dxos/ui-types").ClassNameValue;
31
31
  } & React.RefAttributes<ProjectionModel>>;
32
32
  //# sourceMappingURL=ViewEditor.d.ts.map
@@ -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,KAA6F,MAAM,OAAO,CAAC;AAGlH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAIL,KAAK,eAAe,EAKrB,MAAM,gBAAgB,CAAC;AAMxB,OAAO,EACL,KAAK,QAAQ,EAGb,eAAe,EAGhB,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,QAAQ,CAAC,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC,CACzC,C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AO,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;;;yCAoKvC,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import { type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
+ import { type View } from '@dxos/echo';
3
4
  import { type EchoSchema } from '@dxos/echo/internal';
4
- import { type DataType, type ProjectionModel } from '@dxos/schema';
5
+ import { type ProjectionModel } from '@dxos/schema';
5
6
  import { type ViewEditorProps } from './ViewEditor';
6
7
  export type ViewEditorDebugObjects = {
7
8
  schema: EchoSchema;
8
- view: DataType.View;
9
+ view: View.View;
9
10
  projection: ProjectionModel;
10
11
  };
11
12
  type StoryProps = Pick<ViewEditorProps, 'readonly' | 'mode'>;
@@ -17,11 +18,11 @@ declare const meta: {
17
18
  layout: string;
18
19
  translations: [{
19
20
  readonly 'en-US': {
20
- readonly "react-ui-form": {
21
+ readonly "@dxos/react-ui-form": {
21
22
  readonly 'fields label': "Fields";
22
23
  readonly 'hidden fields label': "Hidden Fields";
23
24
  readonly 'empty readonly ref field label': "(none)";
24
- readonly 'button add property': "Add property";
25
+ readonly 'add property button label': "Add property";
25
26
  readonly 'field property label': "Property";
26
27
  readonly 'field property placeholder': "Property name";
27
28
  readonly 'field format label': "Type";
@@ -37,8 +38,11 @@ declare const meta: {
37
38
  readonly 'ref field combobox input placeholder': "Search…";
38
39
  readonly 'ref field placeholder_one': "Select…";
39
40
  readonly 'ref field placeholder_other': "Select items…";
40
- readonly 'button cancel': "Cancel";
41
- readonly 'button save': "Save";
41
+ readonly 'example placeholder': "Example";
42
+ readonly 'latitude placeholder': "Latitude (e.g., 40.7128)";
43
+ readonly 'longitude placeholder': "Longitude (e.g., -74.0060)";
44
+ readonly 'cancel button label': "Cancel";
45
+ readonly 'save button label': "Save";
42
46
  readonly 'format boolean': "Boolean";
43
47
  readonly 'format currency': "Currency";
44
48
  readonly 'format date': "Date";
@@ -74,8 +78,8 @@ declare const meta: {
74
78
  readonly 'select option color': "Color";
75
79
  readonly 'select option delete': "Delete";
76
80
  readonly 'select option add': "Add option";
77
- readonly 'system schema title': "System record type";
78
- readonly 'system schema description': "This is a system record type and cannot be modified, though the view can still be configured.";
81
+ readonly 'system schema title': "System type";
82
+ readonly 'system schema description': "System type: cannot add or remove fields.";
79
83
  };
80
84
  };
81
85
  }];
@@ -85,5 +89,5 @@ export default meta;
85
89
  type Story = StoryObj<typeof meta>;
86
90
  export declare const Default: Story;
87
91
  export declare const Readonly: Story;
88
- export declare const QueryMode: Story;
92
+ export declare const TagQueryMode: Story;
89
93
  //# 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,EAAwB,MAAM,qBAAqB,CAAC;AAM5E,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,eAAe,EAAoC,MAAM,cAAc,CAAC;AAKrG,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAGhE,MAAM,MAAM,sBAAsB,GAAG;IACn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7HmB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiJF,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,KAItB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAI1B,CAAC"}
@@ -1,6 +1,6 @@
1
- export * from './ControlSection';
2
1
  export * from './FieldEditor';
3
2
  export * from './Form';
4
3
  export * from './ObjectPicker';
4
+ export * from './Settings';
5
5
  export * from './ViewEditor';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
@@ -4,8 +4,6 @@ type TestLayoutProps = ThemedClassName<PropsWithChildren<{
4
4
  json?: any;
5
5
  }>>;
6
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;
9
7
  export declare const VIEW_EDITOR_DEBUG_SYMBOL: unique symbol;
10
8
  export declare const FIELD_EDITOR_DEBUG_SYMBOL: unique symbol;
11
9
  export {};
@@ -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,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
+ {"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;AAItD,KAAK,eAAe,GAAG,eAAe,CAAC,iBAAiB,CAAC;IAAE,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC,CAAC;AAE1E,eAAO,MAAM,UAAU,GAAI,gCAAgC,eAAe,sBASzE,CAAC;AAaF,eAAO,MAAM,wBAAwB,eAA4B,CAAC;AAClE,eAAO,MAAM,yBAAyB,eAA6B,CAAC"}
@@ -1,4 +1,3 @@
1
- export * from './useForm';
2
- export * from './useRefQueryLookupHandler';
3
- export * from './useQueryRefOptions';
1
+ export * from './useFormHandler';
2
+ export * from './useKeyHandler';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,82 @@
1
+ import type * as Schema from 'effect/Schema';
2
+ import type * as SchemaAST from 'effect/SchemaAST';
3
+ import { type AnyProperties } from '@dxos/echo/internal';
4
+ import { type JsonPath } from '@dxos/effect';
5
+ import { type ValidationError } from '@dxos/schema';
6
+ import { type MaybePromise } from '@dxos/util';
7
+ export type FormFieldStatus = {
8
+ status?: 'error';
9
+ error?: string;
10
+ };
11
+ /**
12
+ * Form properties.
13
+ */
14
+ export interface FormHandlerProps<T extends AnyProperties> {
15
+ /**
16
+ * Effect schema (Type literal).
17
+ */
18
+ schema?: Schema.Schema<T, any>;
19
+ /**
20
+ * Values for the form if controlled.
21
+ */
22
+ values?: Partial<T>;
23
+ /**
24
+ * Default values for the form which will be used if values is not provided.
25
+ */
26
+ defaultValues?: Partial<T>;
27
+ /**
28
+ * Auto-save the form when the values change.
29
+ */
30
+ autoSave?: boolean;
31
+ /**
32
+ * Callback for value changes. Note: This is called even when values are invalid.
33
+ * Sometimes the parent component may want to know about changes even if the form is
34
+ * in an invalid state.
35
+ */
36
+ onValuesChanged?: (values: Partial<T>, meta: FormUpdateMeta<T>) => void;
37
+ /**
38
+ * Custom validation function that runs only after schema validation passes.
39
+ * Use this for complex validation logic that can't be expressed in the schema.
40
+ * @returns Array of validation errors, or undefined if validation passes
41
+ */
42
+ onValidate?: (values: T) => ValidationError[] | undefined;
43
+ /**
44
+ * Called when the form is submitted and passes validation.
45
+ */
46
+ onSave?: (values: T, meta: FormUpdateMeta<T>) => MaybePromise<void>;
47
+ /**
48
+ * Called when the form is canceled.
49
+ */
50
+ onCancel?: () => void;
51
+ }
52
+ export type FormUpdateMeta<T extends AnyProperties> = {
53
+ changed: FormHandler<T>['changed'];
54
+ isValid: boolean;
55
+ };
56
+ /**
57
+ * Form handler properties and methods.
58
+ */
59
+ export type FormHandler<T extends AnyProperties> = Pick<FormHandlerProps<T>, 'schema' | 'autoSave'> & {
60
+ /** Initial values (which may not pass validation). */
61
+ values: Partial<T>;
62
+ /** Map of changed fields. */
63
+ changed: Record<JsonPath, boolean>;
64
+ touched: Record<JsonPath, boolean>;
65
+ /** Map of error strings. */
66
+ errors: Record<JsonPath, string>;
67
+ /** Whether the form can be saved (i.e., data is valid). */
68
+ isValid: boolean;
69
+ canSave: boolean;
70
+ onSave: () => void;
71
+ onCancel: () => void;
72
+ getStatus: (path: string | (string | number)[]) => FormFieldStatus;
73
+ getValue: <V>(path: (string | number)[]) => V | undefined;
74
+ onBlur: (path: (string | number)[]) => void;
75
+ onValueChange: <V>(path: (string | number)[], type: SchemaAST.AST, value: V) => void;
76
+ };
77
+ /**
78
+ * Creates a hook for managing form state, including values, validation, and submission.
79
+ * Deeply integrated with `@dxos/schema` for schema-based validation.
80
+ */
81
+ export declare const useFormHandler: <T extends AnyProperties>({ schema, autoSave, values: valuesProp, defaultValues: defaultValuesProp, onValuesChanged, onValidate, onSave, onCancel, ...props }: FormHandlerProps<T>) => FormHandler<T>;
82
+ //# sourceMappingURL=useFormHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFormHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useFormHandler.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAGnD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,KAAK,QAAQ,EAAmE,MAAM,cAAc,CAAC;AAG9G,OAAO,EAAE,KAAK,eAAe,EAA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any>) => void;
6
+ //# sourceMappingURL=useKeyHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useKeyHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useKeyHandler.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,aAAa,cAAc,GAAG,IAAI,EAAE,MAAM,WAAW,CAAC,GAAG,CAAC,SAuBvF,CAAC"}
@@ -1,11 +1,11 @@
1
- export declare const translationKey = "react-ui-form";
1
+ export declare const translationKey = "@dxos/react-ui-form";
2
2
  export declare const translations: [{
3
3
  readonly 'en-US': {
4
- readonly "react-ui-form": {
4
+ readonly "@dxos/react-ui-form": {
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 'button add property': "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,8 +21,11 @@ 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 'button cancel': "Cancel";
25
- readonly 'button save': "Save";
24
+ readonly 'example placeholder': "Example";
25
+ readonly 'latitude placeholder': "Latitude (e.g., 40.7128)";
26
+ readonly 'longitude placeholder': "Longitude (e.g., -74.0060)";
27
+ readonly 'cancel button label': "Cancel";
28
+ readonly 'save button label': "Save";
26
29
  readonly 'format boolean': "Boolean";
27
30
  readonly 'format currency': "Currency";
28
31
  readonly 'format date': "Date";
@@ -58,8 +61,8 @@ export declare const translations: [{
58
61
  readonly 'select option color': "Color";
59
62
  readonly 'select option delete': "Delete";
60
63
  readonly 'select option add': "Add option";
61
- readonly 'system schema title': "System record type";
62
- readonly 'system schema description': "This is a system record type and cannot be modified, though the view can still be configured.";
64
+ readonly 'system schema title': "System type";
65
+ readonly 'system schema description': "System type: cannot add or remove fields.";
63
66
  };
64
67
  };
65
68
  }];
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8EM,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,wBAAwB,CAAC;AAEpD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgFM,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FormatEnum, TypeEnum } from '@dxos/echo/internal';
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?: FormatEnum;
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?: FormatEnum;
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,UAA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AAGF,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,KAAG,eAGhD,CAAC"}
@@ -1,7 +1,7 @@
1
- import { FormatEnum, TypeEnum } from '@dxos/echo/internal';
1
+ import { Format, TypeEnum } from '@dxos/echo/internal';
2
2
  type ValueFormatProps = {
3
3
  type: TypeEnum;
4
- format?: FormatEnum | undefined;
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,UAAU,EAAe,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAExE,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAChC,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"}
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"}
@@ -1,5 +1,5 @@
1
1
  export * from './field';
2
2
  export * from './formatting';
3
+ export * from './properties';
3
4
  export * from './refs';
4
- export * from './schema';
5
5
  //# sourceMappingURL=index.d.ts.map