@cratis/components 4.30.0 → 4.32.0

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 (60) hide show
  1. package/compat-manifest.json +11 -11
  2. package/dist/esm/CommandForm/AutoCommandForm.d.ts +2 -1
  3. package/dist/esm/CommandForm/AutoCommandForm.d.ts.map +1 -1
  4. package/dist/esm/CommandForm/AutoCommandForm.js +9 -1
  5. package/dist/esm/CommandForm/AutoCommandForm.js.map +1 -1
  6. package/dist/esm/CommandForm/fields/GuidField.d.ts +49 -0
  7. package/dist/esm/CommandForm/fields/GuidField.d.ts.map +1 -0
  8. package/dist/esm/CommandForm/fields/GuidField.js +85 -0
  9. package/dist/esm/CommandForm/fields/GuidField.js.map +1 -0
  10. package/dist/esm/CommandForm/fields/index.d.ts +1 -0
  11. package/dist/esm/CommandForm/fields/index.d.ts.map +1 -1
  12. package/dist/esm/CommandForm/fields/index.js +1 -0
  13. package/dist/esm/CommandForm/fields/index.js.map +1 -1
  14. package/dist/esm/CommandForm/index.js +1 -0
  15. package/dist/esm/CommandForm/index.js.map +1 -1
  16. package/dist/esm/Common/CratisComponentsProvider.d.ts +4 -0
  17. package/dist/esm/Common/CratisComponentsProvider.d.ts.map +1 -1
  18. package/dist/esm/Common/CratisComponentsProvider.js.map +1 -1
  19. package/dist/esm/DataPage/DataPage.d.ts +8 -0
  20. package/dist/esm/DataPage/DataPage.d.ts.map +1 -1
  21. package/dist/esm/DataPage/DataPage.js.map +1 -1
  22. package/dist/esm/DataTables/DataTableBody.d.ts +3 -1
  23. package/dist/esm/DataTables/DataTableBody.d.ts.map +1 -1
  24. package/dist/esm/DataTables/DataTableBody.js +2 -2
  25. package/dist/esm/DataTables/DataTableBody.js.map +1 -1
  26. package/dist/esm/DataTables/DataTableCore.d.ts +7 -1
  27. package/dist/esm/DataTables/DataTableCore.d.ts.map +1 -1
  28. package/dist/esm/DataTables/DataTableCore.js +8 -3
  29. package/dist/esm/DataTables/DataTableCore.js.map +1 -1
  30. package/dist/esm/DataTables/DataTableForObservableQuery.d.ts +8 -0
  31. package/dist/esm/DataTables/DataTableForObservableQuery.d.ts.map +1 -1
  32. package/dist/esm/DataTables/DataTableForObservableQuery.js +2 -2
  33. package/dist/esm/DataTables/DataTableForObservableQuery.js.map +1 -1
  34. package/dist/esm/DataTables/DataTableForQuery.d.ts +8 -0
  35. package/dist/esm/DataTables/DataTableForQuery.d.ts.map +1 -1
  36. package/dist/esm/DataTables/DataTableForQuery.js +2 -2
  37. package/dist/esm/DataTables/DataTableForQuery.js.map +1 -1
  38. package/dist/esm/DataTables/DataTableMessageOverrides.d.ts +1 -0
  39. package/dist/esm/DataTables/DataTableMessageOverrides.d.ts.map +1 -1
  40. package/dist/esm/DataTables/DataTableMessageOverrides.js.map +1 -1
  41. package/dist/esm/DataTables/DataTableMessages.d.ts +2 -0
  42. package/dist/esm/DataTables/DataTableMessages.d.ts.map +1 -1
  43. package/dist/esm/DataTables/DataTableMessages.js.map +1 -1
  44. package/dist/esm/DataTables/matchesFilterEntry.d.ts +7 -0
  45. package/dist/esm/DataTables/matchesFilterEntry.d.ts.map +1 -1
  46. package/dist/esm/DataTables/matchesFilterEntry.js +3 -1
  47. package/dist/esm/DataTables/matchesFilterEntry.js.map +1 -1
  48. package/dist/esm/DataTables/useDataTableMessages.d.ts +2 -1
  49. package/dist/esm/DataTables/useDataTableMessages.d.ts.map +1 -1
  50. package/dist/esm/DataTables/useDataTableMessages.js +6 -1
  51. package/dist/esm/DataTables/useDataTableMessages.js.map +1 -1
  52. package/dist/esm/DataTables/useServerQuery.d.ts +2 -1
  53. package/dist/esm/DataTables/useServerQuery.d.ts.map +1 -1
  54. package/dist/esm/DataTables/useServerQuery.js +2 -1
  55. package/dist/esm/DataTables/useServerQuery.js.map +1 -1
  56. package/dist/esm/types/parts.d.ts +4 -0
  57. package/dist/esm/types/parts.d.ts.map +1 -1
  58. package/dist/esm/types/parts.js +4 -0
  59. package/dist/esm/types/parts.js.map +1 -1
  60. package/package.json +1 -1
@@ -68,7 +68,7 @@
68
68
  {
69
69
  "name": "@cratis/components",
70
70
  "role": "core",
71
- "version": "4.30.0",
71
+ "version": "4.32.0",
72
72
  "releaseMajorRange": ">=4 <5",
73
73
  "independentRelease": false,
74
74
  "private": false,
@@ -92,7 +92,7 @@
92
92
  {
93
93
  "name": "@cratis/eslint-plugin-components",
94
94
  "role": "eslint",
95
- "version": "4.30.0",
95
+ "version": "4.32.0",
96
96
  "releaseMajorRange": ">=4 <5",
97
97
  "independentRelease": false,
98
98
  "private": false,
@@ -105,7 +105,7 @@
105
105
  {
106
106
  "name": "@cratis/components.migrator",
107
107
  "role": "migrator",
108
- "version": "4.30.0",
108
+ "version": "4.32.0",
109
109
  "releaseMajorRange": ">=4 <5",
110
110
  "independentRelease": false,
111
111
  "private": false,
@@ -116,13 +116,13 @@
116
116
  {
117
117
  "name": "@cratis/components.conformance",
118
118
  "role": "conformance",
119
- "version": "4.30.0",
119
+ "version": "4.32.0",
120
120
  "releaseMajorRange": ">=4 <5",
121
121
  "independentRelease": false,
122
122
  "private": false,
123
123
  "packageAccess": "public",
124
124
  "peerDependencies": {
125
- "@cratis/components": "4.30.0",
125
+ "@cratis/components": "4.32.0",
126
126
  "react": "^19.0.0",
127
127
  "react-dom": "^19.0.0"
128
128
  },
@@ -132,13 +132,13 @@
132
132
  {
133
133
  "name": "@cratis/components.mui",
134
134
  "role": "renderer-adapter",
135
- "version": "4.30.0",
135
+ "version": "4.32.0",
136
136
  "releaseMajorRange": ">=4 <5",
137
137
  "independentRelease": false,
138
138
  "private": false,
139
139
  "packageAccess": "public",
140
140
  "peerDependencies": {
141
- "@cratis/components": "4.30.0",
141
+ "@cratis/components": "4.32.0",
142
142
  "@emotion/react": ">=11.5 <12",
143
143
  "@emotion/styled": ">=11.11 <12",
144
144
  "@mui/material": ">=9 <10",
@@ -188,13 +188,13 @@
188
188
  {
189
189
  "name": "@cratis/components.primereact",
190
190
  "role": "renderer-adapter",
191
- "version": "4.30.0",
191
+ "version": "4.32.0",
192
192
  "releaseMajorRange": ">=4 <5",
193
193
  "independentRelease": false,
194
194
  "private": false,
195
195
  "packageAccess": "public",
196
196
  "peerDependencies": {
197
- "@cratis/components": "4.30.0",
197
+ "@cratis/components": "4.32.0",
198
198
  "@primereact/core": ">=11 <12",
199
199
  "@primereact/ui": ">=11 <12",
200
200
  "@primeuix/themes": ">=3 <4",
@@ -256,13 +256,13 @@
256
256
  {
257
257
  "name": "@cratis/components.primereact10",
258
258
  "role": "renderer-adapter",
259
- "version": "4.30.0",
259
+ "version": "4.32.0",
260
260
  "releaseMajorRange": ">=4 <5",
261
261
  "independentRelease": false,
262
262
  "private": false,
263
263
  "packageAccess": "public",
264
264
  "peerDependencies": {
265
- "@cratis/components": "4.30.0",
265
+ "@cratis/components": "4.32.0",
266
266
  "primereact": ">=10.9.9 <11",
267
267
  "react": "^19.0.0",
268
268
  "react-dom": "^19.0.0"
@@ -20,7 +20,8 @@ export interface AutoCommandFormProps<TCommand extends object, TResponse = objec
20
20
  * A `CommandForm` that generates its field list from the command's own properties, choosing each
21
21
  * field's component by the property's type through the {@link FieldTypeProvider} registry -
22
22
  * `registerFieldTypeProvider` for a type the built-in defaults (`string`, `number`, `boolean`,
23
- * `Date`) don't cover, or to override one of them.
23
+ * `Date`) don't cover, or to override one of them. `GuidField` is not a default; register it for
24
+ * Fundamentals `Guid` properties to edit them.
24
25
  *
25
26
  * A property whose type no registered provider handles is left out of the generated list -
26
27
  * `exclude` it explicitly for clarity, or add a `CommandForm` child by hand alongside this
@@ -1 +1 @@
1
- {"version":3,"file":"AutoCommandForm.d.ts","sourceRoot":"","sources":["../../../CommandForm/AutoCommandForm.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAMhF;;;GAGG;AACH,MAAM,WAAW,oBAAoB,CACjC,QAAQ,S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
2
2
  import { useMemo } from 'react';
3
3
  import { CommandForm } from '@cratis/arc.react/commands';
4
+ import { Guid } from '@cratis/fundamentals';
5
+ import { GuidField } from './fields/GuidField.js';
4
6
  import { registerDefaultFieldTypeProviders } from './defaultFieldTypeProviders.js';
5
7
  import { resolveFieldTypeProvider } from './fieldTypeProviderRegistry.js';
6
8
 
@@ -11,6 +13,12 @@ function formatTitle(propertyName) {
11
13
  .replace(/^./, (character) => character.toUpperCase())
12
14
  .trim();
13
15
  }
16
+ function guidFieldResetProps(field, overlayValue) {
17
+ if (field !== GuidField) {
18
+ return {};
19
+ }
20
+ return { resetKey: overlayValue instanceof Guid ? overlayValue.toString() : overlayValue };
21
+ }
14
22
  function AutoCommandForm(props) {
15
23
  const { exclude, footer, ...commandFormProps } = props;
16
24
  const propertyDescriptors = useMemo(() => new props.command().propertyDescriptors, [props.command]);
@@ -23,7 +31,7 @@ function AutoCommandForm(props) {
23
31
  return null;
24
32
  }
25
33
  const Field = provider.component;
26
- return (jsx(Field, { fieldName: descriptor.name, value: (instance) => {
34
+ return (jsx(Field, { ...guidFieldResetProps(Field, props.currentValues?.[descriptor.name]), fieldName: descriptor.name, value: (instance) => {
27
35
  return instance[descriptor.name];
28
36
  }, title: formatTitle(descriptor.name) }, descriptor.name));
29
37
  })
@@ -1 +1 @@
1
- {"version":3,"file":"AutoCommandForm.js","sources":["../../../CommandForm/AutoCommandForm.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type React from 'react';\nimport { useMemo } from 'react';\nimport type { Command } from '@cratis/arc/commands';\nimport { CommandForm, type CommandFormProps } from '@cratis/arc.react/commands';\nimport { registerDefaultFieldTypeProviders } from './defaultFieldTypeProviders';\nimport { resolveFieldTypeProvider } from './fieldTypeProviderRegistry';\n\nregisterDefaultFieldTypeProviders();\n\n/**\n * Props for {@link AutoCommandForm} - every {@link CommandFormProps} except `children`, which is\n * generated from the command's own properties instead of being written out by hand.\n */\nexport interface AutoCommandFormProps<\n TCommand extends object,\n TResponse = object,\n> extends Omit<CommandFormProps<TCommand, TResponse>, 'children'> {\n /**\n * Property names to leave out of the generated field list - for a property that should not\n * be user-editable, or one a custom field placed elsewhere on the page already covers.\n */\n exclude?: (keyof TCommand)[];\n\n /**\n * Optional content rendered after the generated fields, inside the native Arc form and\n * command context. Supply a submit control here when needed; no action is added by default.\n */\n footer?: React.ReactNode;\n}\n\nfunction formatTitle(propertyName: string): string {\n return propertyName\n .replace(/([A-Z])/g, ' $1')\n .replace(/^./, (character) => character.toUpperCase())\n .trim();\n}\n\n/**\n * A `CommandForm` that generates its field list from the command's own properties, choosing each\n * field's component by the property's type through the {@link FieldTypeProvider} registry -\n * `registerFieldTypeProvider` for a type the built-in defaults (`string`, `number`, `boolean`,\n * `Date`) don't cover, or to override one of them.\n *\n * A property whose type no registered provider handles is left out of the generated list -\n * `exclude` it explicitly for clarity, or add a `CommandForm` child by hand alongside this\n * component for that one property.\n *\n * @example\n * ```tsx\n * <AutoCommandForm command={RegisterInvoice} exclude={['invoiceId']} />\n * ```\n */\nexport function AutoCommandForm<TCommand extends object = object, TResponse = object>(\n props: AutoCommandFormProps<TCommand, TResponse>,\n): React.ReactElement {\n const { exclude, footer, ...commandFormProps } = props;\n // SAFETY: Arc command constructors expose the Command property-descriptor contract at runtime.\n const propertyDescriptors = useMemo(\n () => (new props.command() as unknown as Command).propertyDescriptors,\n [props.command],\n );\n const excluded = useMemo(\n () => new Set<string>((exclude ?? []) as string[]),\n [exclude],\n );\n\n const fields = propertyDescriptors\n .filter((descriptor) => !excluded.has(descriptor.name))\n .map((descriptor) => {\n const provider = resolveFieldTypeProvider(descriptor);\n if (!provider) {\n return null;\n }\n\n const Field = provider.component;\n return (\n <Field\n key={descriptor.name}\n // The accessor reads the property dynamically, so CommandForm cannot infer the\n // property name from its source text; fieldName states it explicitly.\n fieldName={descriptor.name}\n value={(instance: TCommand) => {\n // SAFETY: Arc descriptors name runtime properties on the same command instance.\n return (instance as unknown as Record<string, unknown>)[\n descriptor.name\n ];\n }}\n title={formatTitle(descriptor.name)}\n />\n );\n })\n .filter((field): field is React.ReactElement => field !== null);\n\n return (\n <CommandForm {...commandFormProps}>\n {fields}\n {footer}\n </CommandForm>\n );\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;AAUA,iCAAiC,EAAE;AAuBnC,SAAS,WAAW,CAAC,YAAoB,EAAA;AACrC,IAAA,OAAO;AACF,SAAA,OAAO,CAAC,UAAU,EAAE,KAAK;AACzB,SAAA,OAAO,CAAC,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS,CAAC,WAAW,EAAE;AACpD,SAAA,IAAI,EAAE;AACf;AAiBM,SAAU,eAAe,CAC3B,KAAgD,EAAA;IAEhD,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,gBAAgB,EAAE,GAAG,KAAK;IAEtD,MAAM,mBAAmB,GAAG,OAAO,CAC/B,MAAO,IAAI,KAAK,CAAC,OAAO,EAAyB,CAAC,mBAAmB,EACrE,CAAC,KAAK,CAAC,OAAO,CAAC,CAClB;IACD,MAAM,QAAQ,GAAG,OAAO,CACpB,MAAM,IAAI,GAAG,EAAU,OAAO,IAAI,EAAE,EAAc,EAClD,CAAC,OAAO,CAAC,CACZ;IAED,MAAM,MAAM,GAAG;AACV,SAAA,MAAM,CAAC,CAAC,UAAU,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC;AACrD,SAAA,GAAG,CAAC,CAAC,UAAU,KAAI;AAChB,QAAA,MAAM,QAAQ,GAAG,wBAAwB,CAAC,UAAU,CAAC;QACrD,IAAI,CAAC,QAAQ,EAAE;AACX,YAAA,OAAO,IAAI;QACf;AAEA,QAAA,MAAM,KAAK,GAAG,QAAQ,CAAC,SAAS;AAChC,QAAA,QACIA,GAAA,CAAC,KAAK,EAAA,EAIF,SAAS,EAAE,UAAU,CAAC,IAAI,EAC1B,KAAK,EAAE,CAAC,QAAkB,KAAI;AAE1B,gBAAA,OAAQ,QAA+C,CACnD,UAAU,CAAC,IAAI,CAClB;AACL,YAAA,CAAC,EACD,KAAK,EAAE,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,IAV9B,UAAU,CAAC,IAAI,CAWtB;AAEV,IAAA,CAAC;SACA,MAAM,CAAC,CAAC,KAAK,KAAkC,KAAK,KAAK,IAAI,CAAC;IAEnE,QACIC,IAAA,CAAC,WAAW,EAAA,EAAA,GAAK,gBAAgB,EAAA,QAAA,EAAA,CAC5B,MAAM,EACN,MAAM,CAAA,EAAA,CACG;AAEtB;;"}
1
+ {"version":3,"file":"AutoCommandForm.js","sources":["../../../CommandForm/AutoCommandForm.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type React from 'react';\nimport { useMemo } from 'react';\nimport type { Command } from '@cratis/arc/commands';\nimport { CommandForm, type CommandFormProps } from '@cratis/arc.react/commands';\nimport { Guid } from '@cratis/fundamentals';\nimport { GuidField } from './fields/GuidField';\nimport { registerDefaultFieldTypeProviders } from './defaultFieldTypeProviders';\nimport { resolveFieldTypeProvider } from './fieldTypeProviderRegistry';\n\nregisterDefaultFieldTypeProviders();\n\n/**\n * Props for {@link AutoCommandForm} - every {@link CommandFormProps} except `children`, which is\n * generated from the command's own properties instead of being written out by hand.\n */\nexport interface AutoCommandFormProps<\n TCommand extends object,\n TResponse = object,\n> extends Omit<CommandFormProps<TCommand, TResponse>, 'children'> {\n /**\n * Property names to leave out of the generated field list - for a property that should not\n * be user-editable, or one a custom field placed elsewhere on the page already covers.\n */\n exclude?: (keyof TCommand)[];\n\n /**\n * Optional content rendered after the generated fields, inside the native Arc form and\n * command context. Supply a submit control here when needed; no action is added by default.\n */\n footer?: React.ReactNode;\n}\n\nfunction formatTitle(propertyName: string): string {\n return propertyName\n .replace(/([A-Z])/g, ' $1')\n .replace(/^./, (character) => character.toUpperCase())\n .trim();\n}\n\n// An invalid GuidField draft leaves the command value empty, so a changed currentValues overlay must\n// discard the draft even when the native value does not change. Only the registered GuidField itself\n// receives the key: no other provider sees an extra prop.\nfunction guidFieldResetProps(field: unknown, overlayValue: unknown): { resetKey?: unknown } {\n if (field !== GuidField) {\n return {};\n }\n return { resetKey: overlayValue instanceof Guid ? overlayValue.toString() : overlayValue };\n}\n\n/**\n * A `CommandForm` that generates its field list from the command's own properties, choosing each\n * field's component by the property's type through the {@link FieldTypeProvider} registry -\n * `registerFieldTypeProvider` for a type the built-in defaults (`string`, `number`, `boolean`,\n * `Date`) don't cover, or to override one of them. `GuidField` is not a default; register it for\n * Fundamentals `Guid` properties to edit them.\n *\n * A property whose type no registered provider handles is left out of the generated list -\n * `exclude` it explicitly for clarity, or add a `CommandForm` child by hand alongside this\n * component for that one property.\n *\n * @example\n * ```tsx\n * <AutoCommandForm command={RegisterInvoice} exclude={['invoiceId']} />\n * ```\n */\nexport function AutoCommandForm<TCommand extends object = object, TResponse = object>(\n props: AutoCommandFormProps<TCommand, TResponse>,\n): React.ReactElement {\n const { exclude, footer, ...commandFormProps } = props;\n // SAFETY: Arc command constructors expose the Command property-descriptor contract at runtime.\n const propertyDescriptors = useMemo(\n () => (new props.command() as unknown as Command).propertyDescriptors,\n [props.command],\n );\n const excluded = useMemo(\n () => new Set<string>((exclude ?? []) as string[]),\n [exclude],\n );\n\n const fields = propertyDescriptors\n .filter((descriptor) => !excluded.has(descriptor.name))\n .map((descriptor) => {\n const provider = resolveFieldTypeProvider(descriptor);\n if (!provider) {\n return null;\n }\n\n const Field = provider.component;\n return (\n <Field\n key={descriptor.name}\n {...guidFieldResetProps(Field, props.currentValues?.[descriptor.name as keyof TCommand])}\n // The accessor reads the property dynamically, so CommandForm cannot infer the\n // property name from its source text; fieldName states it explicitly.\n fieldName={descriptor.name}\n value={(instance: TCommand) => {\n // SAFETY: Arc descriptors name runtime properties on the same command instance.\n return (instance as unknown as Record<string, unknown>)[\n descriptor.name\n ];\n }}\n title={formatTitle(descriptor.name)}\n />\n );\n })\n .filter((field): field is React.ReactElement => field !== null);\n\n return (\n <CommandForm {...commandFormProps}>\n {fields}\n {footer}\n </CommandForm>\n );\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;AAYA,iCAAiC,EAAE;AAuBnC,SAAS,WAAW,CAAC,YAAoB,EAAA;AACrC,IAAA,OAAO;AACF,SAAA,OAAO,CAAC,UAAU,EAAE,KAAK;AACzB,SAAA,OAAO,CAAC,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS,CAAC,WAAW,EAAE;AACpD,SAAA,IAAI,EAAE;AACf;AAKA,SAAS,mBAAmB,CAAC,KAAc,EAAE,YAAqB,EAAA;AAC9D,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,EAAE;IACb;AACA,IAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,YAAY,IAAI,GAAG,YAAY,CAAC,QAAQ,EAAE,GAAG,YAAY,EAAE;AAC9F;AAkBM,SAAU,eAAe,CAC3B,KAAgD,EAAA;IAEhD,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,gBAAgB,EAAE,GAAG,KAAK;IAEtD,MAAM,mBAAmB,GAAG,OAAO,CAC/B,MAAO,IAAI,KAAK,CAAC,OAAO,EAAyB,CAAC,mBAAmB,EACrE,CAAC,KAAK,CAAC,OAAO,CAAC,CAClB;IACD,MAAM,QAAQ,GAAG,OAAO,CACpB,MAAM,IAAI,GAAG,EAAU,OAAO,IAAI,EAAE,EAAc,EAClD,CAAC,OAAO,CAAC,CACZ;IAED,MAAM,MAAM,GAAG;AACV,SAAA,MAAM,CAAC,CAAC,UAAU,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC;AACrD,SAAA,GAAG,CAAC,CAAC,UAAU,KAAI;AAChB,QAAA,MAAM,QAAQ,GAAG,wBAAwB,CAAC,UAAU,CAAC;QACrD,IAAI,CAAC,QAAQ,EAAE;AACX,YAAA,OAAO,IAAI;QACf;AAEA,QAAA,MAAM,KAAK,GAAG,QAAQ,CAAC,SAAS;AAChC,QAAA,QACIA,GAAA,CAAC,KAAK,EAAA,EAAA,GAEE,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,GAAG,UAAU,CAAC,IAAsB,CAAC,CAAC,EAGxF,SAAS,EAAE,UAAU,CAAC,IAAI,EAC1B,KAAK,EAAE,CAAC,QAAkB,KAAI;AAE1B,gBAAA,OAAQ,QAA+C,CACnD,UAAU,CAAC,IAAI,CAClB;AACL,YAAA,CAAC,EACD,KAAK,EAAE,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,IAX9B,UAAU,CAAC,IAAI,CAYtB;AAEV,IAAA,CAAC;SACA,MAAM,CAAC,CAAC,KAAK,KAAkC,KAAK,KAAK,IAAI,CAAC;IAEnE,QACIC,IAAA,CAAC,WAAW,EAAA,EAAA,GAAK,gBAAgB,EAAA,QAAA,EAAA,CAC5B,MAAM,EACN,MAAM,CAAA,EAAA,CACG;AAEtB;;"}
@@ -0,0 +1,49 @@
1
+ import { type InputHTMLAttributes, type ReactElement } from 'react';
2
+ import { type BaseCommandFormFieldProps, type InjectedCommandFormFieldProps } from '@cratis/arc.react/commands';
3
+ import { Guid } from '@cratis/fundamentals';
4
+ import { type FieldAccessibilityProps } from './fieldAccessibility.js';
5
+ /** Stable part attributes for {@link GuidField}. */
6
+ export interface GuidParts {
7
+ /** Native text input. Its value, change handling and validation attributes remain owned by the field. */
8
+ root?: InputHTMLAttributes<HTMLInputElement>;
9
+ }
10
+ /** Props for {@link GuidField}. */
11
+ export interface GuidFieldProps<TCommand = unknown> extends BaseCommandFormFieldProps<TCommand>, InjectedCommandFormFieldProps, FieldAccessibilityProps {
12
+ /** Selects a scalar Fundamentals `Guid` property on the command. */
13
+ value(instance: TCommand): Guid | undefined | null;
14
+ /** Hint displayed while the text is empty. */
15
+ placeholder?: string;
16
+ /** Additional classes on the native input. */
17
+ className?: string;
18
+ /** Native input attributes. */
19
+ pt?: GuidParts;
20
+ /** Localizable error for a nonempty draft that is not a Guid. Defaults to `Enter a valid Guid.`; an empty string keeps the default. */
21
+ formatErrorMessage?: string;
22
+ /** Localizable error for an empty required field. Defaults to `A value is required.`; an empty string keeps the default. */
23
+ requiredErrorMessage?: string;
24
+ /**
25
+ * Change this value to discard the text draft even when the command value has not changed, such
26
+ * as when an invalid draft already left the command value empty and the form is reset to empty.
27
+ */
28
+ resetKey?: unknown;
29
+ }
30
+ declare function GuidFieldComponent<TCommand = unknown>(props: GuidFieldProps<TCommand>): ReactElement;
31
+ /**
32
+ * Edits a scalar Fundamentals `Guid` command property as text, keeping the command value a native `Guid`.
33
+ *
34
+ * Partial or invalid text stays editable and leaves the command value `undefined`; the field reports a
35
+ * format error, or a required error when a required field is empty, through the form's custom field
36
+ * errors. Arc and Arc React 22.19.1 or newer refuse to execute a form with custom field errors, so an
37
+ * invalid draft cannot be submitted. The field never generates an identifier and accepts every value
38
+ * `Guid.isGuid` accepts, including the empty Guid.
39
+ *
40
+ * Not a default {@link AutoCommandForm} provider; register it explicitly:
41
+ *
42
+ * @example
43
+ * ```tsx
44
+ * registerFieldTypeProvider({ canHandle: (descriptor) => descriptor.type === Guid, component: GuidField });
45
+ * ```
46
+ */
47
+ export declare const GuidField: typeof GuidFieldComponent & import("../index.js").CommandFormMarked;
48
+ export {};
49
+ //# sourceMappingURL=GuidField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GuidField.d.ts","sourceRoot":"","sources":["../../../../CommandForm/fields/GuidField.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA+B,KAAK,mBAAmB,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAGjG,OAAO,EAGH,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAErC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,OAAO,EAAyB,KAAK,uBAAuB,EAAE,MAAM,yBAAsB,CAAC;AAM3F,oDAAoD;AACpD,MAAM,WAAW,SAAS;IACtB,yGAAyG;IACzG,IAAI,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;CAChD;AAED,mCAAmC;AACnC,MAAM,WAAW,cAAc,CAAC,QAAQ,GAAG,OAAO,CAC9C,SAAQ,yBAAyB,CAAC,QAAQ,CAAC,EACvC,6BAA6B,EAC7B,uBAAuB;IAC3B,oEAAoE;IACpE,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;IACnD,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,EAAE,CAAC,EAAE,SAAS,CAAC;IACf,uIAAuI;IACvI,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,4HAA4H;IAC5H,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AA2HD,iBAAS,kBAAkB,CAAC,QAAQ,GAAG,OAAO,EAAE,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG,YAAY,CAG7F;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,SAAS,qEAA6C,CAAC"}
@@ -0,0 +1,85 @@
1
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
+ import { useState, useRef, useEffect } from 'react';
3
+ import { asCommandFormField, useCommandFormContext } from '@cratis/arc.react/commands';
4
+ import { Guid } from '@cratis/fundamentals';
5
+ import { markAsCommandFormField } from '../commandFormMarkers.js';
6
+ import { useFieldAccessibility } from './fieldAccessibility.js';
7
+
8
+ const defaultGuidFormatErrorMessage = 'Enter a valid Guid.';
9
+ const defaultGuidRequiredErrorMessage = 'A value is required.';
10
+ const textForValue = (value) => (value instanceof Guid ? value.toString() : '');
11
+ const propertyNameFromAccessor = (accessor) => {
12
+ if (typeof accessor !== 'function')
13
+ return '';
14
+ const match = accessor.toString().match(/\.([a-zA-Z_$][a-zA-Z0-9_$]*)/);
15
+ return match ? match[1] : '';
16
+ };
17
+ function GuidControl(props) {
18
+ const { value: currentValue, boundFieldName: fieldName, resetKey, required } = props;
19
+ const { getFieldError, customFieldErrors, setCustomFieldError } = useCommandFormContext();
20
+ const [draft, setDraft] = useState(() => ({ value: currentValue, resetKey, text: textForValue(currentValue) }));
21
+ const synchronized = Object.is(draft.value, currentValue) && Object.is(draft.resetKey, resetKey);
22
+ if (!synchronized) {
23
+ setDraft({ value: currentValue, resetKey, text: textForValue(currentValue) });
24
+ }
25
+ const text = synchronized ? draft.text : textForValue(currentValue);
26
+ const errorForText = (value) => {
27
+ if (value.length === 0) {
28
+ return required ? props.requiredErrorMessage || defaultGuidRequiredErrorMessage : undefined;
29
+ }
30
+ return Guid.isGuid(value) ? undefined : props.formatErrorMessage || defaultGuidFormatErrorMessage;
31
+ };
32
+ const error = errorForText(text);
33
+ const ownedErrorRef = useRef(undefined);
34
+ const latestGetFieldErrorRef = useRef(getFieldError);
35
+ latestGetFieldErrorRef.current = getFieldError;
36
+ const publishError = (nextError, current = fieldName ? getFieldError(fieldName) : undefined) => {
37
+ if (!fieldName)
38
+ return;
39
+ if (current && current !== ownedErrorRef.current) {
40
+ ownedErrorRef.current = undefined;
41
+ return;
42
+ }
43
+ if (nextError !== current) {
44
+ setCustomFieldError(fieldName, nextError);
45
+ }
46
+ ownedErrorRef.current = nextError;
47
+ };
48
+ const customError = fieldName && Object.hasOwn(customFieldErrors, fieldName) ? customFieldErrors[fieldName] || undefined : undefined;
49
+ useEffect(() => {
50
+ if (error !== ownedErrorRef.current || (error && !customError)) {
51
+ publishError(error, customError);
52
+ }
53
+ });
54
+ useEffect(() => () => {
55
+ if (fieldName && ownedErrorRef.current && latestGetFieldErrorRef.current(fieldName) === ownedErrorRef.current) {
56
+ setCustomFieldError(fieldName, undefined);
57
+ }
58
+ }, [fieldName, setCustomFieldError]);
59
+ const errors = [...new Set([error, ...props.errors].filter((message) => Boolean(message)))];
60
+ const invalid = errors.length > 0;
61
+ const accessibility = useFieldAccessibility({ ...props, errors }, {
62
+ id: props.pt?.root?.id,
63
+ ariaLabel: props.pt?.root?.['aria-label'],
64
+ ariaDescribedBy: props.pt?.root?.['aria-describedby'],
65
+ });
66
+ return (jsxs(Fragment, { children: [jsx("input", { ...props.pt?.root, id: accessibility.controlId, "aria-label": accessibility.ariaLabel, "aria-describedby": accessibility.ariaDescribedBy, "aria-required": required || undefined, "aria-invalid": invalid || undefined, type: 'text', value: text, onChange: (event) => {
67
+ const nextText = event.currentTarget.value;
68
+ const nextValue = Guid.isGuid(nextText) ? Guid.parse(nextText) : undefined;
69
+ setDraft({ value: nextValue, resetKey, text: nextText });
70
+ publishError(undefined);
71
+ props.onChange(nextValue);
72
+ publishError(errorForText(nextText));
73
+ }, onBlur: props.onBlur, placeholder: props.placeholder, "data-disabled": props.pt?.root?.disabled || undefined, "data-invalid": invalid || undefined, "data-readonly": props.pt?.root?.readOnly || undefined, "data-cratis-part": 'input', className: ['cratis-field-input', 'cratis:w-full', props.pt?.root?.className, props.className]
74
+ .filter(Boolean)
75
+ .join(' ') }), accessibility.hiddenError] }));
76
+ }
77
+ const GuidBinding = asCommandFormField(GuidControl, { defaultValue: undefined });
78
+ function GuidFieldComponent(props) {
79
+ const boundFieldName = props.fieldName || propertyNameFromAccessor(props.value) || undefined;
80
+ return jsx(GuidBinding, { ...props, boundFieldName: boundFieldName });
81
+ }
82
+ const GuidField = markAsCommandFormField(GuidFieldComponent);
83
+
84
+ export { GuidField };
85
+ //# sourceMappingURL=GuidField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GuidField.js","sources":["../../../../CommandForm/fields/GuidField.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useEffect, useRef, useState, type InputHTMLAttributes, type ReactElement } from 'react';\n// Only symbols @cratis/arc.react 20.3.1 already exports may be imported at module scope here: the\n// package declares Arc React as a range, and a missing named import fails when the module links.\nimport {\n asCommandFormField,\n useCommandFormContext,\n type BaseCommandFormFieldProps,\n type InjectedCommandFormFieldProps,\n type WrappedFieldProps,\n} from '@cratis/arc.react/commands';\nimport { Guid } from '@cratis/fundamentals';\nimport { markAsCommandFormField } from '../commandFormMarkers';\nimport { useFieldAccessibility, type FieldAccessibilityProps } from './fieldAccessibility';\n\nconst defaultGuidFormatErrorMessage = 'Enter a valid Guid.';\n\nconst defaultGuidRequiredErrorMessage = 'A value is required.';\n\n/** Stable part attributes for {@link GuidField}. */\nexport interface GuidParts {\n /** Native text input. Its value, change handling and validation attributes remain owned by the field. */\n root?: InputHTMLAttributes<HTMLInputElement>;\n}\n\n/** Props for {@link GuidField}. */\nexport interface GuidFieldProps<TCommand = unknown>\n extends BaseCommandFormFieldProps<TCommand>,\n InjectedCommandFormFieldProps,\n FieldAccessibilityProps {\n /** Selects a scalar Fundamentals `Guid` property on the command. */\n value(instance: TCommand): Guid | undefined | null;\n /** Hint displayed while the text is empty. */\n placeholder?: string;\n /** Additional classes on the native input. */\n className?: string;\n /** Native input attributes. */\n pt?: GuidParts;\n /** Localizable error for a nonempty draft that is not a Guid. Defaults to `Enter a valid Guid.`; an empty string keeps the default. */\n formatErrorMessage?: string;\n /** Localizable error for an empty required field. Defaults to `A value is required.`; an empty string keeps the default. */\n requiredErrorMessage?: string;\n /**\n * Change this value to discard the text draft even when the command value has not changed, such\n * as when an invalid draft already left the command value empty and the form is reset to empty.\n */\n resetKey?: unknown;\n}\n\ninterface GuidControlProps extends WrappedFieldProps<Guid | undefined | null>, FieldAccessibilityProps {\n placeholder?: string;\n className?: string;\n pt?: GuidParts;\n formatErrorMessage?: string;\n requiredErrorMessage?: string;\n resetKey?: unknown;\n /** The bound command property. `asCommandFormField` consumes `fieldName`, so it is forwarded under this name. */\n boundFieldName?: string;\n}\n\ninterface GuidDraft {\n value: unknown;\n resetKey: unknown;\n text: string;\n}\n\nconst textForValue = (value: unknown) => (value instanceof Guid ? value.toString() : '');\n\n// Mirrors Arc React's own source-text inference, so the field reports its errors under the same\n// property name Arc binds when an accessor such as `command => command.sampleId` has no fieldName.\nconst propertyNameFromAccessor = (accessor: unknown): string => {\n if (typeof accessor !== 'function') return '';\n const match = accessor.toString().match(/\\.([a-zA-Z_$][a-zA-Z0-9_$]*)/);\n return match ? match[1] : '';\n};\n\nfunction GuidControl(props: GuidControlProps) {\n const { value: currentValue, boundFieldName: fieldName, resetKey, required } = props;\n const { getFieldError, customFieldErrors, setCustomFieldError } = useCommandFormContext<unknown>();\n const [draft, setDraft] = useState<GuidDraft>(() => ({ value: currentValue, resetKey, text: textForValue(currentValue) }));\n const synchronized = Object.is(draft.value, currentValue) && Object.is(draft.resetKey, resetKey);\n // Adopt an external value or reset during render; a delayed effect could overwrite ongoing typing.\n if (!synchronized) {\n setDraft({ value: currentValue, resetKey, text: textForValue(currentValue) });\n }\n const text = synchronized ? draft.text : textForValue(currentValue);\n const errorForText = (value: string): string | undefined => {\n if (value.length === 0) {\n return required ? props.requiredErrorMessage || defaultGuidRequiredErrorMessage : undefined;\n }\n return Guid.isGuid(value) ? undefined : props.formatErrorMessage || defaultGuidFormatErrorMessage;\n };\n const error = errorForText(text);\n const ownedErrorRef = useRef<string | undefined>(undefined);\n const latestGetFieldErrorRef = useRef(getFieldError);\n latestGetFieldErrorRef.current = getFieldError;\n\n // The field writes only into an empty slot or over the error it published itself: an\n // onFieldValidate or caller error is never overwritten or cleared. Arc React 22.19.1+ reads custom\n // errors live, which is what makes the ownership check hold for writes made in the same event batch.\n const publishError = (nextError: string | undefined, current = fieldName ? getFieldError(fieldName) : undefined) => {\n if (!fieldName) return;\n if (current && current !== ownedErrorRef.current) {\n ownedErrorRef.current = undefined;\n return;\n }\n if (nextError !== current) {\n setCustomFieldError(fieldName, nextError);\n }\n ownedErrorRef.current = nextError;\n };\n const customError = fieldName && Object.hasOwn(customFieldErrors, fieldName) ? customFieldErrors[fieldName] || undefined : undefined;\n // Publish when the draft's own error changes, or refill an emptied slot so an invalid draft stays blocking.\n useEffect(() => {\n if (error !== ownedErrorRef.current || (error && !customError)) {\n publishError(error, customError);\n }\n });\n useEffect(() => () => {\n if (fieldName && ownedErrorRef.current && latestGetFieldErrorRef.current(fieldName) === ownedErrorRef.current) {\n setCustomFieldError(fieldName, undefined);\n }\n }, [fieldName, setCustomFieldError]);\n\n const errors = [...new Set([error, ...props.errors].filter((message): message is string => Boolean(message)))];\n const invalid = errors.length > 0;\n const accessibility = useFieldAccessibility({ ...props, errors }, {\n id: props.pt?.root?.id,\n ariaLabel: props.pt?.root?.['aria-label'],\n ariaDescribedBy: props.pt?.root?.['aria-describedby'],\n });\n return (\n <>\n <input\n {...props.pt?.root}\n id={accessibility.controlId}\n aria-label={accessibility.ariaLabel}\n aria-describedby={accessibility.ariaDescribedBy}\n aria-required={required || undefined}\n aria-invalid={invalid || undefined}\n type='text'\n value={text}\n onChange={(event) => {\n const nextText = event.currentTarget.value;\n const nextValue = Guid.isGuid(nextText) ? Guid.parse(nextText) : undefined;\n setDraft({ value: nextValue, resetKey, text: nextText });\n // A partial or invalid draft writes undefined at once, never the previous identifier.\n // Arc still owns command mutation, validation and execution; this field supplies an error.\n publishError(undefined);\n props.onChange(nextValue);\n // Publish again after binding: onFieldValidate may have replaced the error synchronously.\n publishError(errorForText(nextText));\n }}\n onBlur={props.onBlur}\n placeholder={props.placeholder}\n data-disabled={props.pt?.root?.disabled || undefined}\n data-invalid={invalid || undefined}\n data-readonly={props.pt?.root?.readOnly || undefined}\n data-cratis-part='input'\n className={['cratis-field-input', 'cratis:w-full', props.pt?.root?.className, props.className]\n .filter(Boolean)\n .join(' ')}\n />\n {accessibility.hiddenError}\n </>\n );\n}\n\nconst GuidBinding = asCommandFormField<GuidControlProps>(GuidControl, { defaultValue: undefined });\n\nfunction GuidFieldComponent<TCommand = unknown>(props: GuidFieldProps<TCommand>): ReactElement {\n const boundFieldName = props.fieldName || propertyNameFromAccessor(props.value) || undefined;\n return <GuidBinding<TCommand> {...props} boundFieldName={boundFieldName} />;\n}\n\n/**\n * Edits a scalar Fundamentals `Guid` command property as text, keeping the command value a native `Guid`.\n *\n * Partial or invalid text stays editable and leaves the command value `undefined`; the field reports a\n * format error, or a required error when a required field is empty, through the form's custom field\n * errors. Arc and Arc React 22.19.1 or newer refuse to execute a form with custom field errors, so an\n * invalid draft cannot be submitted. The field never generates an identifier and accepts every value\n * `Guid.isGuid` accepts, including the empty Guid.\n *\n * Not a default {@link AutoCommandForm} provider; register it explicitly:\n *\n * @example\n * ```tsx\n * registerFieldTypeProvider({ canHandle: (descriptor) => descriptor.type === Guid, component: GuidField });\n * ```\n */\nexport const GuidField = markAsCommandFormField(GuidFieldComponent);\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;AAiBA,MAAM,6BAA6B,GAAG,qBAAqB;AAE3D,MAAM,+BAA+B,GAAG,sBAAsB;AAiD9D,MAAM,YAAY,GAAG,CAAC,KAAc,MAAM,KAAK,YAAY,IAAI,GAAG,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC;AAIxF,MAAM,wBAAwB,GAAG,CAAC,QAAiB,KAAY;IAC3D,IAAI,OAAO,QAAQ,KAAK,UAAU;AAAE,QAAA,OAAO,EAAE;IAC7C,MAAM,KAAK,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,8BAA8B,CAAC;AACvE,IAAA,OAAO,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE;AAChC,CAAC;AAED,SAAS,WAAW,CAAC,KAAuB,EAAA;AACxC,IAAA,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK;IACpF,MAAM,EAAE,aAAa,EAAE,iBAAiB,EAAE,mBA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AAE,EAAE,IAAI,EAAE,QAAQ,IAAI,SAAS,EAAA,kBAAA,EACnC,OAAO,EACxB,SAAS,EAAE,CAAC,oBAAoB,EAAE,eAAe,EAAE,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS;qBACxF,MAAM,CAAC,OAAO;qBACd,IAAI,CAAC,GAAG,CAAC,EAAA,CAChB,EACD,aAAa,CAAC,WAAW,CAAA,EAAA,CAC3B;AAEX;AAEA,MAAM,WAAW,GAAG,kBAAkB,CAAmB,WAAW,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC;AAElG,SAAS,kBAAkB,CAAqB,KAA+B,EAAA;AAC3E,IAAA,MAAM,cAAc,GAAG,KAAK,CAAC,SAAS,IAAI,wBAAwB,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,SAAS;IAC5F,OAAOA,GAAA,CAAC,WAAW,EAAA,EAAA,GAAe,KAAK,EAAE,cAAc,EAAE,cAAc,EAAA,CAAI;AAC/E;MAkBa,SAAS,GAAG,sBAAsB,CAAC,kBAAkB;;"}
@@ -1,4 +1,5 @@
1
1
  export * from './InputTextField.js';
2
+ export * from './GuidField.js';
2
3
  export * from './NumberField.js';
3
4
  export * from './NumberInputField.js';
4
5
  export * from './CheckboxField.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../CommandForm/fields/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAkB,CAAC;AACjC,cAAc,kBAAe,CAAC;AAC9B,cAAc,uBAAoB,CAAC;AACnC,cAAc,oBAAiB,CAAC;AAChC,cAAc,oBAAiB,CAAC;AAChC,cAAc,oBAAiB,CAAC;AAChC,cAAc,kBAAe,CAAC;AAC9B,cAAc,oBAAiB,CAAC;AAChC,cAAc,uBAAoB,CAAC;AACnC,cAAc,uBAAoB,CAAC;AACnC,cAAc,iBAAc,CAAC;AAC7B,cAAc,uBAAoB,CAAC;AACnC,cAAc,sBAAmB,CAAC;AAClC,cAAc,oBAAiB,CAAC;AAChC,cAAc,wBAAqB,CAAC;AACpC,cAAc,kBAAe,CAAC;AAC9B,cAAc,uBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../CommandForm/fields/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAkB,CAAC;AACjC,cAAc,gBAAa,CAAC;AAC5B,cAAc,kBAAe,CAAC;AAC9B,cAAc,uBAAoB,CAAC;AACnC,cAAc,oBAAiB,CAAC;AAChC,cAAc,oBAAiB,CAAC;AAChC,cAAc,oBAAiB,CAAC;AAChC,cAAc,kBAAe,CAAC;AAC9B,cAAc,oBAAiB,CAAC;AAChC,cAAc,uBAAoB,CAAC;AACnC,cAAc,uBAAoB,CAAC;AACnC,cAAc,iBAAc,CAAC;AAC7B,cAAc,uBAAoB,CAAC;AACnC,cAAc,sBAAmB,CAAC;AAClC,cAAc,oBAAiB,CAAC;AAChC,cAAc,wBAAqB,CAAC;AACpC,cAAc,kBAAe,CAAC;AAC9B,cAAc,uBAAoB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  // Copyright (c) Cratis. All rights reserved.
2
2
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
  export * from './InputTextField.js';
4
+ export * from './GuidField.js';
4
5
  export * from './NumberField.js';
5
6
  export * from './NumberInputField.js';
6
7
  export * from './CheckboxField.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../CommandForm/fields/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,cAAc,qBAAkB,CAAC;AACjC,cAAc,kBAAe,CAAC;AAC9B,cAAc,uBAAoB,CAAC;AACnC,cAAc,oBAAiB,CAAC;AAChC,cAAc,oBAAiB,CAAC;AAChC,cAAc,oBAAiB,CAAC;AAChC,cAAc,kBAAe,CAAC;AAC9B,cAAc,oBAAiB,CAAC;AAChC,cAAc,uBAAoB,CAAC;AACnC,cAAc,uBAAoB,CAAC;AACnC,cAAc,iBAAc,CAAC;AAC7B,cAAc,uBAAoB,CAAC;AACnC,cAAc,sBAAmB,CAAC;AAClC,cAAc,oBAAiB,CAAC;AAChC,cAAc,wBAAqB,CAAC;AACpC,cAAc,kBAAe,CAAC;AAC9B,cAAc,uBAAoB,CAAC","sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nexport * from './InputTextField';\nexport * from './NumberField';\nexport * from './NumberInputField';\nexport * from './CheckboxField';\nexport * from './TextAreaField';\nexport * from './DropdownField';\nexport * from './SliderField';\nexport * from './CalendarField';\nexport * from './ColorPickerField';\nexport * from './MultiSelectField';\nexport * from './ChipsField';\nexport * from './RadioButtonField';\nexport * from './RadioGroupField';\nexport * from './PasswordField';\nexport * from './ToggleSwitchField';\nexport * from './RatingField';\nexport * from './NumberInputField';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../CommandForm/fields/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,cAAc,qBAAkB,CAAC;AACjC,cAAc,gBAAa,CAAC;AAC5B,cAAc,kBAAe,CAAC;AAC9B,cAAc,uBAAoB,CAAC;AACnC,cAAc,oBAAiB,CAAC;AAChC,cAAc,oBAAiB,CAAC;AAChC,cAAc,oBAAiB,CAAC;AAChC,cAAc,kBAAe,CAAC;AAC9B,cAAc,oBAAiB,CAAC;AAChC,cAAc,uBAAoB,CAAC;AACnC,cAAc,uBAAoB,CAAC;AACnC,cAAc,iBAAc,CAAC;AAC7B,cAAc,uBAAoB,CAAC;AACnC,cAAc,sBAAmB,CAAC;AAClC,cAAc,oBAAiB,CAAC;AAChC,cAAc,wBAAqB,CAAC;AACpC,cAAc,kBAAe,CAAC;AAC9B,cAAc,uBAAoB,CAAC","sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nexport * from './InputTextField';\nexport * from './GuidField';\nexport * from './NumberField';\nexport * from './NumberInputField';\nexport * from './CheckboxField';\nexport * from './TextAreaField';\nexport * from './DropdownField';\nexport * from './SliderField';\nexport * from './CalendarField';\nexport * from './ColorPickerField';\nexport * from './MultiSelectField';\nexport * from './ChipsField';\nexport * from './RadioButtonField';\nexport * from './RadioGroupField';\nexport * from './PasswordField';\nexport * from './ToggleSwitchField';\nexport * from './RatingField';\nexport * from './NumberInputField';\n"]}
@@ -1,5 +1,6 @@
1
1
  export { CommandFormColumnDisplayName, CommandFormFieldDisplayName, isCommandFormColumn, isCommandFormField, markAsCommandFormColumn, markAsCommandFormField } from './commandFormMarkers.js';
2
2
  export { InputTextField } from './fields/InputTextField.js';
3
+ export { GuidField } from './fields/GuidField.js';
3
4
  export { NumberField } from './fields/NumberField.js';
4
5
  export { NumberInputField } from './fields/NumberInputField.js';
5
6
  export { CheckboxField } from './fields/CheckboxField.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
@@ -95,6 +95,10 @@ export interface CratisDataTableMessages {
95
95
  failed?: string;
96
96
  /** Message shown when a query denies access. */
97
97
  unauthorized?: string;
98
+ /** Message shown when a search or filter leaves no rows on the loaded page. */
99
+ filteredEmpty?: string;
100
+ /** Message shown when a search or filter leaves no rows in server mode. */
101
+ filteredEmptyServer?: string;
98
102
  }
99
103
  /** Localizable accessible names for the Cratis filter panel and its searches. */
100
104
  export interface CratisFilterMessages {
@@ -1 +1 @@
1
- {"version":3,"file":"CratisComponentsProvider.d.ts","sourceRoot":"","sources":["../../../Common/CratisComponentsProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGhD,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,6BAA0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,EAAE,SAAS,CAAC;CACvB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,UAC7B,sBAAsB,GAAG,SAAS,KAC1C,sBAIF,CAAC;AAoEF,8EAA8E;AAC9E,eAAO,MAAM,wBAAwB,6GASlC,6BAA6B,gCAyB/B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CratisComponentsProvider.js","sources":["../../../Common/CratisComponentsProvider.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useMemo, type ReactNode } from 'react';\nimport { I18nProvider } from 'react-aria-components/I18nProvider';\nimport { merge } from 'ts-deepmerge';\nimport { Toaster, type ToasterProps } from '../Notifications/Toaster';\nimport { unstable_RendererRoot } from '../renderer/RendererContext';\nimport type { CratisRendererSetup, unstable_UiLibrary } from '../renderer/manifest';\nimport type { CratisOverlayEnvironment } from '../renderer/overlayEnvironment';\nimport { CratisComponentsContext } from '../configuration/CratisComponentsContext';\nimport { cratisDefaults } from '../configuration/CratisComponentsDefaults';\n\nconst RendererRoot = unstable_RendererRoot;\n\nexport { cratisDefaults } from '../configuration/CratisComponentsDefaults';\nexport { useCratisComponentsConfig } from '../configuration/CratisComponentsContext';\n\n/** Localizable labels owned by the Cratis paginator. */\nexport interface CratisPaginatorMessages {\n /** Pagination navigation-region name. */\n navigation?: string;\n /** First-page action label. */\n first?: string;\n /** Previous-page action label. */\n previous?: string;\n /** Next-page action label. */\n next?: string;\n /** Last-page action label. */\n last?: string;\n /** Builds a numbered page button's accessible name from its one-based page number. */\n page?: (page: number) => string;\n /** Accessible name for the numbered-page group. */\n pages?: string;\n}\n\n/** Localizable labels owned by the Cratis date picker composition. */\nexport interface CratisDatePickerMessages {\n /** Today action label. */\n today?: string;\n /** Clear action label. */\n clear?: string;\n /** Calendar-trigger label. */\n openCalendar?: string;\n /** Previous-month action label. */\n previousMonth?: string;\n /** Next-month action label. */\n nextMonth?: string;\n /**\n * Accessible name for the segmented date input when neither an explicit\n * `aria-label` nor a `placeholder` is supplied. Previously an orphaned\n * `'Date'` literal with no override path.\n */\n label?: string;\n}\n\n/** Localizable labels owned by the Cratis {@link Dropdown} composition. */\nexport interface CratisDropdownMessages {\n /** Accessible name for the options-popover trigger. */\n showOptions?: string;\n /** Accessible name for the clear-selection action. */\n clearSelection?: string;\n}\n\n/**\n * Localizable action and dismissal labels shared by every Cratis-owned dialog\n * surface — {@link Dialog}, {@link CommandDialog}, and {@link StepperCommandDialog}.\n */\nexport interface CratisDialogMessages {\n /** Primary confirmation label (the `Ok` action in `DialogButtons.Ok*`). */\n ok?: string;\n /** Cancellation label (the `Cancel` action, and the Stepper footer Cancel). */\n cancel?: string;\n /** Affirmative label (the `Yes` action in `DialogButtons.YesNo*`). */\n yes?: string;\n /** Negative label (the `No` action in `DialogButtons.YesNo*`). */\n no?: string;\n /** Accessible name for the header close (×) action. */\n close?: string;\n}\n\n/** Localizable navigation labels owned by {@link CommandStepper} / {@link StepperCommandDialog}. */\nexport interface CratisStepperMessages {\n /** Advance-to-next-step action label. */\n next?: string;\n /** Return-to-previous-step action label. */\n previous?: string;\n /** Final-step submit action label. */\n submit?: string;\n}\n\n/** Localizable labels owned by the Cratis {@link Toaster}. */\nexport interface CratisNotificationsMessages {\n /** Accessible name for a toast's dismiss action. */\n dismiss?: string;\n /** Accessible name for the toast region landmark. */\n region?: string;\n}\n\n/** Localizable labels owned by the Cratis {@link DataTableCore} composition. */\nexport interface CratisDataTableMessages {\n /** Accessible name for a single-selection row control. */\n selectRow?: string;\n /** Accessible name for the select-all control in a multiple-selection header. */\n selectAllRows?: string;\n /** Placeholder for the loaded-page search input. */\n search?: string;\n /** Accessible name for the loaded-page search input. */\n searchAriaLabel?: string;\n /** Message shown while loading an empty table. */\n loading?: string;\n /** Message shown when a query fails. */\n failed?: string;\n /** Message shown when a query denies access. */\n unauthorized?: string;\n}\n\n/** Localizable accessible names for the Cratis filter panel and its searches. */\nexport interface CratisFilterMessages {\n /** FilterPanel dialog name. Defaults to 'Filters'. */\n label?: string;\n /**\n * Search-input name for FilterPanel, its option groups, and standalone CheckboxListFilter.\n * Unset by default so an effective search placeholder retains precedence over 'Search'.\n * PivotViewer supplies group-specific names instead of using this shared name for its groups.\n */\n searchAriaLabel?: string;\n}\n\n/** Localizable labels owned by the Cratis column-filter popup. */\nexport interface CratisColumnFilterMessages {\n /** Builds the filter-trigger accessible name from the effective field. */\n filterTriggerAriaLabel?: (field: string) => string;\n /** Builds the value-control accessible name from the effective field. */\n valueAriaLabel?: (field: string) => string;\n /** Accessible name for the match-mode selector. */\n matchModeAriaLabel?: string;\n /** Localizes a match mode while retaining its default label as fallback input. */\n matchModeLabel?: (mode: string, defaultLabel: string) => string;\n /** Clear action label. */\n clear?: string;\n /** Apply action label. */\n apply?: string;\n /** Boolean true option label. */\n true?: string;\n /** Boolean false option label. */\n false?: string;\n}\n\n/** Localizable labels owned by the Cratis {@link Toolbar} composition. */\nexport interface CratisToolbarMessages {\n /** Accessible toolbar name used when neither `aria-label` nor `aria-labelledby` is supplied. */\n label?: string;\n /** Accessible name of the close button in a drawer {@link ToolbarFolder}. Defaults to 'Close'. */\n closeDrawer?: string;\n}\n\n/** Components-owned message groups. */\nexport interface CratisComponentsMessages {\n /** Paginator labels. */\n paginator?: CratisPaginatorMessages;\n /** Date-picker labels. */\n datePicker?: CratisDatePickerMessages;\n /** Dropdown labels. */\n dropdown?: CratisDropdownMessages;\n /** Dialog action/dismissal labels shared by Dialog, CommandDialog, and StepperCommandDialog. */\n dialog?: CratisDialogMessages;\n /** Stepper navigation labels shared by CommandStepper and StepperCommandDialog. */\n stepper?: CratisStepperMessages;\n /** Toaster labels. */\n notifications?: CratisNotificationsMessages;\n /** DataTable search, selection, and query-state messages. */\n dataTable?: CratisDataTableMessages;\n /** FilterPanel dialog and search-input accessible names. */\n filter?: CratisFilterMessages;\n /** Column-filter popup labels and match-mode copy. */\n columnFilter?: CratisColumnFilterMessages;\n /** Toolbar accessible-name fallback. */\n toolbar?: CratisToolbarMessages;\n}\n\n/**\n * Components-owned icon vocabulary. Every name is a concept the library draws in more than one\n * place; registering one replaces that concept's built-in glyph everywhere it is drawn, without\n * touching the surrounding element, its part, or its accessible name.\n *\n * Resolution per site is `per-component prop → provider icon → built-in glyph`: a named prop such\n * as `Dialog`'s `closeIcon` means \"this one call site\" and keeps winning, while the provider\n * replaces the built-in default for the whole product. Registering nothing renders exactly what the\n * library renders today, because the built-in glyph stays at its call site and is never part of\n * {@link cratisDefaults}.\n *\n * A name registered as `null` draws no glyph while the button, its part, and its accessible name\n * remain — the same meaning `closeIcon={null}` already has.\n */\nexport interface CratisComponentsIcons {\n /** Dismissal mark. Drawn by `Dialog`'s header close, `Toaster`'s dismiss, `ChatSidebar`, the `Chat` panel, and the PivotViewer detail panel. Defaults to `×`. */\n close?: ReactNode;\n /** Remove-this-value mark. Drawn by `TagGroup`'s tag remove, `Chip`'s remove control, and `CommandForm`'s chips field. Defaults to `×`. */\n remove?: ReactNode;\n /** Expand/collapse chevron on a closed-by-default surface. Drawn by `Dropdown`'s trigger and `ComboBox`'s trigger. Defaults to `⌄` (`▾` in `ComboBox`). */\n expand?: ReactNode;\n /** Ascending sort indicator. Drawn by `DataTableCore`'s sortable column header. Defaults to `▲`. */\n sortAscending?: ReactNode;\n /** Descending sort indicator. Drawn by `DataTableCore`'s sortable column header. Defaults to `▼`. */\n sortDescending?: ReactNode;\n /** Step-backwards mark. Drawn by `TablePaginator`'s previous page and the date picker's previous month. Defaults to `‹`. */\n previous?: ReactNode;\n /** Step-forwards mark. Drawn by `TablePaginator`'s next page and the date picker's next month. Defaults to `›`. */\n next?: ReactNode;\n /** Clear-the-current-value mark. Drawn by `Dropdown`'s clear-selection action and the PivotViewer filter panel's clear action. Defaults to `×`. */\n clear?: ReactNode;\n}\n\ninterface LegacyLocaleMessages {\n today?: string;\n clear?: string;\n aria?: {\n navigation?: string;\n firstPageLabel?: string;\n prevPageLabel?: string;\n nextPageLabel?: string;\n lastPageLabel?: string;\n };\n [message: string]: unknown;\n}\n\n/** Renderer-independent application configuration for Components. */\nexport interface CratisComponentsConfig {\n /** BCP 47 locale used by React Aria for dates, numbers, and interaction announcements. */\n locale?: string;\n /** Cratis-owned labels not supplied by the platform's internationalization APIs. */\n messages?: CratisComponentsMessages;\n /** Cratis-owned icon vocabulary replacing the built-in glyphs the library draws. */\n icons?: CratisComponentsIcons;\n /**\n * @deprecated Use {@link messages}; React Aria supplies its own locale data.\n */\n locales?: Record<string, LegacyLocaleMessages>;\n}\n\n/** Props for the application-root Components provider. */\nexport interface CratisComponentsProviderProps {\n /** Locale and Components-owned messages. */\n value?: CratisComponentsConfig;\n /** Mounts the global toaster with defaults or explicit options. */\n toaster?: boolean | ToasterProps;\n /**\n * Selects one stable presentation library. The broader generic manifest and ordered,\n * last-wins composition form remain experimental.\n */\n library?: unstable_UiLibrary | readonly unstable_UiLibrary[];\n /** Experimental profile-promise behavior. Defaults to strict. */\n libraryMode?: 'strict' | 'degrade';\n /** Terminal slot fallback behavior. Defaults to the built-in Core implementation. */\n rendererFallback?: 'core' | 'throw';\n /** Host environment for overlay portal containers. */\n overlayEnvironment?: CratisOverlayEnvironment;\n /**\n * Non-secret renderer setup attestations. Values are booleans so credentials and license\n * tokens never cross the Components provider boundary.\n */\n rendererSetup?: CratisRendererSetup;\n /** Application content. */\n children: ReactNode;\n}\n\n/**\n * Deep-merges consumer configuration over {@link cratisDefaults}.\n *\n * `icons` merges by name only. An icon value is an opaque node — often a React element — so it is\n * carried over by identity instead of being deep-merged into, while a partial map still leaves every\n * unregistered name to its built-in glyph.\n */\nexport const mergeCratisComponentsConfig = (\n value: CratisComponentsConfig | undefined,\n): CratisComponentsConfig => {\n const { icons, ...rest } = value ?? {};\n const merged = merge(cratisDefaults, rest) as CratisComponentsConfig;\n return icons ? { ...merged, icons: { ...cratisDefaults.icons, ...icons } } : merged;\n};\n\nconst withLegacyLocaleMessages = (\n config: CratisComponentsConfig,\n explicitMessages: CratisComponentsMessages | undefined,\n): CratisComponentsConfig => {\n const legacy = config.locale ? config.locales?.[config.locale] : undefined;\n if (!legacy) return config;\n return {\n ...config,\n messages: {\n ...config.messages,\n paginator: {\n ...config.messages?.paginator,\n navigation:\n explicitMessages?.paginator?.navigation ??\n legacy.aria?.navigation ??\n config.messages?.paginator?.navigation,\n first:\n explicitMessages?.paginator?.first ??\n legacy.aria?.firstPageLabel ??\n config.messages?.paginator?.first,\n previous:\n explicitMessages?.paginator?.previous ??\n legacy.aria?.prevPageLabel ??\n config.messages?.paginator?.previous,\n next:\n explicitMessages?.paginator?.next ??\n legacy.aria?.nextPageLabel ??\n config.messages?.paginator?.next,\n last:\n explicitMessages?.paginator?.last ??\n legacy.aria?.lastPageLabel ??\n config.messages?.paginator?.last,\n },\n datePicker: {\n ...config.messages?.datePicker,\n today:\n explicitMessages?.datePicker?.today ??\n legacy.today ??\n config.messages?.datePicker?.today,\n clear:\n explicitMessages?.datePicker?.clear ??\n legacy.clear ??\n config.messages?.datePicker?.clear,\n openCalendar:\n explicitMessages?.datePicker?.openCalendar ??\n config.messages?.datePicker?.openCalendar,\n previousMonth:\n explicitMessages?.datePicker?.previousMonth ??\n config.messages?.datePicker?.previousMonth,\n nextMonth:\n explicitMessages?.datePicker?.nextMonth ??\n config.messages?.datePicker?.nextMonth,\n },\n },\n };\n};\n\nconst validLocale = (locale: string | undefined) => {\n if (!locale) return 'en-US';\n try {\n return new Intl.Locale(locale).toString();\n } catch {\n return 'en-US';\n }\n};\n\n/** Application root for locale, labels, and the optional app-wide toaster. */\nexport const CratisComponentsProvider = ({\n value,\n toaster,\n library,\n libraryMode,\n rendererFallback,\n overlayEnvironment,\n rendererSetup,\n children,\n}: CratisComponentsProviderProps) => {\n const resolved = useMemo(\n () =>\n withLegacyLocaleMessages(mergeCratisComponentsConfig(value), value?.messages),\n [value],\n );\n\n return (\n <RendererRoot\n library={library}\n libraryMode={libraryMode}\n rendererFallback={rendererFallback}\n overlayEnvironment={overlayEnvironment}\n rendererSetup={rendererSetup}\n >\n <CratisComponentsContext.Provider value={resolved}>\n <I18nProvider locale={validLocale(resolved.locale)}>\n {children}\n {toaster && (\n <Toaster {...(typeof toaster === 'object' ? toaster : {})} />\n )}\n </I18nProvider>\n </CratisComponentsContext.Provider>\n </RendererRoot>\n );\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;AAaA,MAAM,YAAY,GAAG,qBAAqB;AAqQnC,MAAM,2BAA2B,GAAG,CACvC,KAAyC,KACjB;IACxB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,IAAI,EAAE;IACtC,MAAM,MAAM,GAAG,KAAK,CAAC,cAAc,EAAE,IAAI,CAA2B;IACpE,OAAO,KAAK,GAAG,EAAE,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE,GAAG,cAAc,CAAC,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAAM;AACvF;AAEA,MAAM,wBAAwB,GAAG,CAC7B,MAA8B,EAC9B,gBAAsD,KAC9B;IACxB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,SAAS;AAC1E,IAAA,IAAI,CAAC,MAAM;AAAE,QAAA,OAAO,MAAM;IAC1B,OAAO;AACH,QAAA,GAAG,MAAM;AACT,QAAA,QAAQ,EAAE;YACN,GAAG,MAAM,CAAC,QAAQ;AAClB,YAAA,SAAS,EAAE;AACP,gBAAA,GAAG,MAAM,CAAC,QAAQ,EAAE,SAAS;AAC7B,gBAAA,UAAU,EACN,gBAAgB,EAAE,SAAS,EAAE,UAAU;oBACvC,MAAM,CAAC,IAAI,EAAE,UAAU;AACvB,oBAAA,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU;AAC1C,gBAAA,KAAK,EACD,gBAAgB,EAAE,SAAS,EAAE,KAAK;oBAClC,MAAM,CAAC,IAAI,EAAE,cAAc;AAC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AAC7C,aAAA;AACJ,SAAA;KACJ;AACL,CAAC;AAED,MAAM,WAAW,GAAG,CAAC,MAA0B,KAAI;AAC/C,IAAA,IAAI,CAAC,MAAM;AAAE,QAAA,OAAO,OAAO;AAC3B,IAAA,IAAI;QACA,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;IAC7C;AAAE,IAAA,MAAM;AACJ,QAAA,OAAO,OAAO;IAClB;AACJ,CAAC;MAGY,wBAAwB,GAAG,CAAC,EACrC,KAAK,EACL,OAAO,EACP,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,QAAQ,GACoB,KAAI;IAChC,MAAM,QAAQ,GAAG,OAAO,CACpB,MACI,wBAAwB,CAAC,2BAA2B,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,EACjF,CAAC,KAAK,CAAC,CACV;AAED,IAAA,QACIA,GAAA,CAAC,YAAY,EAAA,EACT,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,aAAa,EAAE,aAAa,YAE5BA,GAAA,CAAC,uBAAuB,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,EAAA,QAAA,EAC7CC,KAAC,YAAY,EAAA,EAAC,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAA,QAAA,EAAA,CAC7C,QAAQ,EACR,OAAO,KACJD,GAAA,CAAC,OAAO,QAAM,OAAO,OAAO,KAAK,QAAQ,GAAG,OAAO,GAAG,EAAE,CAAC,GAAI,CAChE,CAAA,EAAA,CACU,EAAA,CACgB,EAAA,CACxB;AAEvB;;"}
1
+ {"version":3,"file":"CratisComponentsProvider.js","sources":["../../../Common/CratisComponentsProvider.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useMemo, type ReactNode } from 'react';\nimport { I18nProvider } from 'react-aria-components/I18nProvider';\nimport { merge } from 'ts-deepmerge';\nimport { Toaster, type ToasterProps } from '../Notifications/Toaster';\nimport { unstable_RendererRoot } from '../renderer/RendererContext';\nimport type { CratisRendererSetup, unstable_UiLibrary } from '../renderer/manifest';\nimport type { CratisOverlayEnvironment } from '../renderer/overlayEnvironment';\nimport { CratisComponentsContext } from '../configuration/CratisComponentsContext';\nimport { cratisDefaults } from '../configuration/CratisComponentsDefaults';\n\nconst RendererRoot = unstable_RendererRoot;\n\nexport { cratisDefaults } from '../configuration/CratisComponentsDefaults';\nexport { useCratisComponentsConfig } from '../configuration/CratisComponentsContext';\n\n/** Localizable labels owned by the Cratis paginator. */\nexport interface CratisPaginatorMessages {\n /** Pagination navigation-region name. */\n navigation?: string;\n /** First-page action label. */\n first?: string;\n /** Previous-page action label. */\n previous?: string;\n /** Next-page action label. */\n next?: string;\n /** Last-page action label. */\n last?: string;\n /** Builds a numbered page button's accessible name from its one-based page number. */\n page?: (page: number) => string;\n /** Accessible name for the numbered-page group. */\n pages?: string;\n}\n\n/** Localizable labels owned by the Cratis date picker composition. */\nexport interface CratisDatePickerMessages {\n /** Today action label. */\n today?: string;\n /** Clear action label. */\n clear?: string;\n /** Calendar-trigger label. */\n openCalendar?: string;\n /** Previous-month action label. */\n previousMonth?: string;\n /** Next-month action label. */\n nextMonth?: string;\n /**\n * Accessible name for the segmented date input when neither an explicit\n * `aria-label` nor a `placeholder` is supplied. Previously an orphaned\n * `'Date'` literal with no override path.\n */\n label?: string;\n}\n\n/** Localizable labels owned by the Cratis {@link Dropdown} composition. */\nexport interface CratisDropdownMessages {\n /** Accessible name for the options-popover trigger. */\n showOptions?: string;\n /** Accessible name for the clear-selection action. */\n clearSelection?: string;\n}\n\n/**\n * Localizable action and dismissal labels shared by every Cratis-owned dialog\n * surface — {@link Dialog}, {@link CommandDialog}, and {@link StepperCommandDialog}.\n */\nexport interface CratisDialogMessages {\n /** Primary confirmation label (the `Ok` action in `DialogButtons.Ok*`). */\n ok?: string;\n /** Cancellation label (the `Cancel` action, and the Stepper footer Cancel). */\n cancel?: string;\n /** Affirmative label (the `Yes` action in `DialogButtons.YesNo*`). */\n yes?: string;\n /** Negative label (the `No` action in `DialogButtons.YesNo*`). */\n no?: string;\n /** Accessible name for the header close (×) action. */\n close?: string;\n}\n\n/** Localizable navigation labels owned by {@link CommandStepper} / {@link StepperCommandDialog}. */\nexport interface CratisStepperMessages {\n /** Advance-to-next-step action label. */\n next?: string;\n /** Return-to-previous-step action label. */\n previous?: string;\n /** Final-step submit action label. */\n submit?: string;\n}\n\n/** Localizable labels owned by the Cratis {@link Toaster}. */\nexport interface CratisNotificationsMessages {\n /** Accessible name for a toast's dismiss action. */\n dismiss?: string;\n /** Accessible name for the toast region landmark. */\n region?: string;\n}\n\n/** Localizable labels owned by the Cratis {@link DataTableCore} composition. */\nexport interface CratisDataTableMessages {\n /** Accessible name for a single-selection row control. */\n selectRow?: string;\n /** Accessible name for the select-all control in a multiple-selection header. */\n selectAllRows?: string;\n /** Placeholder for the loaded-page search input. */\n search?: string;\n /** Accessible name for the loaded-page search input. */\n searchAriaLabel?: string;\n /** Message shown while loading an empty table. */\n loading?: string;\n /** Message shown when a query fails. */\n failed?: string;\n /** Message shown when a query denies access. */\n unauthorized?: string;\n /** Message shown when a search or filter leaves no rows on the loaded page. */\n filteredEmpty?: string;\n /** Message shown when a search or filter leaves no rows in server mode. */\n filteredEmptyServer?: string;\n}\n\n/** Localizable accessible names for the Cratis filter panel and its searches. */\nexport interface CratisFilterMessages {\n /** FilterPanel dialog name. Defaults to 'Filters'. */\n label?: string;\n /**\n * Search-input name for FilterPanel, its option groups, and standalone CheckboxListFilter.\n * Unset by default so an effective search placeholder retains precedence over 'Search'.\n * PivotViewer supplies group-specific names instead of using this shared name for its groups.\n */\n searchAriaLabel?: string;\n}\n\n/** Localizable labels owned by the Cratis column-filter popup. */\nexport interface CratisColumnFilterMessages {\n /** Builds the filter-trigger accessible name from the effective field. */\n filterTriggerAriaLabel?: (field: string) => string;\n /** Builds the value-control accessible name from the effective field. */\n valueAriaLabel?: (field: string) => string;\n /** Accessible name for the match-mode selector. */\n matchModeAriaLabel?: string;\n /** Localizes a match mode while retaining its default label as fallback input. */\n matchModeLabel?: (mode: string, defaultLabel: string) => string;\n /** Clear action label. */\n clear?: string;\n /** Apply action label. */\n apply?: string;\n /** Boolean true option label. */\n true?: string;\n /** Boolean false option label. */\n false?: string;\n}\n\n/** Localizable labels owned by the Cratis {@link Toolbar} composition. */\nexport interface CratisToolbarMessages {\n /** Accessible toolbar name used when neither `aria-label` nor `aria-labelledby` is supplied. */\n label?: string;\n /** Accessible name of the close button in a drawer {@link ToolbarFolder}. Defaults to 'Close'. */\n closeDrawer?: string;\n}\n\n/** Components-owned message groups. */\nexport interface CratisComponentsMessages {\n /** Paginator labels. */\n paginator?: CratisPaginatorMessages;\n /** Date-picker labels. */\n datePicker?: CratisDatePickerMessages;\n /** Dropdown labels. */\n dropdown?: CratisDropdownMessages;\n /** Dialog action/dismissal labels shared by Dialog, CommandDialog, and StepperCommandDialog. */\n dialog?: CratisDialogMessages;\n /** Stepper navigation labels shared by CommandStepper and StepperCommandDialog. */\n stepper?: CratisStepperMessages;\n /** Toaster labels. */\n notifications?: CratisNotificationsMessages;\n /** DataTable search, selection, and query-state messages. */\n dataTable?: CratisDataTableMessages;\n /** FilterPanel dialog and search-input accessible names. */\n filter?: CratisFilterMessages;\n /** Column-filter popup labels and match-mode copy. */\n columnFilter?: CratisColumnFilterMessages;\n /** Toolbar accessible-name fallback. */\n toolbar?: CratisToolbarMessages;\n}\n\n/**\n * Components-owned icon vocabulary. Every name is a concept the library draws in more than one\n * place; registering one replaces that concept's built-in glyph everywhere it is drawn, without\n * touching the surrounding element, its part, or its accessible name.\n *\n * Resolution per site is `per-component prop → provider icon → built-in glyph`: a named prop such\n * as `Dialog`'s `closeIcon` means \"this one call site\" and keeps winning, while the provider\n * replaces the built-in default for the whole product. Registering nothing renders exactly what the\n * library renders today, because the built-in glyph stays at its call site and is never part of\n * {@link cratisDefaults}.\n *\n * A name registered as `null` draws no glyph while the button, its part, and its accessible name\n * remain — the same meaning `closeIcon={null}` already has.\n */\nexport interface CratisComponentsIcons {\n /** Dismissal mark. Drawn by `Dialog`'s header close, `Toaster`'s dismiss, `ChatSidebar`, the `Chat` panel, and the PivotViewer detail panel. Defaults to `×`. */\n close?: ReactNode;\n /** Remove-this-value mark. Drawn by `TagGroup`'s tag remove, `Chip`'s remove control, and `CommandForm`'s chips field. Defaults to `×`. */\n remove?: ReactNode;\n /** Expand/collapse chevron on a closed-by-default surface. Drawn by `Dropdown`'s trigger and `ComboBox`'s trigger. Defaults to `⌄` (`▾` in `ComboBox`). */\n expand?: ReactNode;\n /** Ascending sort indicator. Drawn by `DataTableCore`'s sortable column header. Defaults to `▲`. */\n sortAscending?: ReactNode;\n /** Descending sort indicator. Drawn by `DataTableCore`'s sortable column header. Defaults to `▼`. */\n sortDescending?: ReactNode;\n /** Step-backwards mark. Drawn by `TablePaginator`'s previous page and the date picker's previous month. Defaults to `‹`. */\n previous?: ReactNode;\n /** Step-forwards mark. Drawn by `TablePaginator`'s next page and the date picker's next month. Defaults to `›`. */\n next?: ReactNode;\n /** Clear-the-current-value mark. Drawn by `Dropdown`'s clear-selection action and the PivotViewer filter panel's clear action. Defaults to `×`. */\n clear?: ReactNode;\n}\n\ninterface LegacyLocaleMessages {\n today?: string;\n clear?: string;\n aria?: {\n navigation?: string;\n firstPageLabel?: string;\n prevPageLabel?: string;\n nextPageLabel?: string;\n lastPageLabel?: string;\n };\n [message: string]: unknown;\n}\n\n/** Renderer-independent application configuration for Components. */\nexport interface CratisComponentsConfig {\n /** BCP 47 locale used by React Aria for dates, numbers, and interaction announcements. */\n locale?: string;\n /** Cratis-owned labels not supplied by the platform's internationalization APIs. */\n messages?: CratisComponentsMessages;\n /** Cratis-owned icon vocabulary replacing the built-in glyphs the library draws. */\n icons?: CratisComponentsIcons;\n /**\n * @deprecated Use {@link messages}; React Aria supplies its own locale data.\n */\n locales?: Record<string, LegacyLocaleMessages>;\n}\n\n/** Props for the application-root Components provider. */\nexport interface CratisComponentsProviderProps {\n /** Locale and Components-owned messages. */\n value?: CratisComponentsConfig;\n /** Mounts the global toaster with defaults or explicit options. */\n toaster?: boolean | ToasterProps;\n /**\n * Selects one stable presentation library. The broader generic manifest and ordered,\n * last-wins composition form remain experimental.\n */\n library?: unstable_UiLibrary | readonly unstable_UiLibrary[];\n /** Experimental profile-promise behavior. Defaults to strict. */\n libraryMode?: 'strict' | 'degrade';\n /** Terminal slot fallback behavior. Defaults to the built-in Core implementation. */\n rendererFallback?: 'core' | 'throw';\n /** Host environment for overlay portal containers. */\n overlayEnvironment?: CratisOverlayEnvironment;\n /**\n * Non-secret renderer setup attestations. Values are booleans so credentials and license\n * tokens never cross the Components provider boundary.\n */\n rendererSetup?: CratisRendererSetup;\n /** Application content. */\n children: ReactNode;\n}\n\n/**\n * Deep-merges consumer configuration over {@link cratisDefaults}.\n *\n * `icons` merges by name only. An icon value is an opaque node — often a React element — so it is\n * carried over by identity instead of being deep-merged into, while a partial map still leaves every\n * unregistered name to its built-in glyph.\n */\nexport const mergeCratisComponentsConfig = (\n value: CratisComponentsConfig | undefined,\n): CratisComponentsConfig => {\n const { icons, ...rest } = value ?? {};\n const merged = merge(cratisDefaults, rest) as CratisComponentsConfig;\n return icons ? { ...merged, icons: { ...cratisDefaults.icons, ...icons } } : merged;\n};\n\nconst withLegacyLocaleMessages = (\n config: CratisComponentsConfig,\n explicitMessages: CratisComponentsMessages | undefined,\n): CratisComponentsConfig => {\n const legacy = config.locale ? config.locales?.[config.locale] : undefined;\n if (!legacy) return config;\n return {\n ...config,\n messages: {\n ...config.messages,\n paginator: {\n ...config.messages?.paginator,\n navigation:\n explicitMessages?.paginator?.navigation ??\n legacy.aria?.navigation ??\n config.messages?.paginator?.navigation,\n first:\n explicitMessages?.paginator?.first ??\n legacy.aria?.firstPageLabel ??\n config.messages?.paginator?.first,\n previous:\n explicitMessages?.paginator?.previous ??\n legacy.aria?.prevPageLabel ??\n config.messages?.paginator?.previous,\n next:\n explicitMessages?.paginator?.next ??\n legacy.aria?.nextPageLabel ??\n config.messages?.paginator?.next,\n last:\n explicitMessages?.paginator?.last ??\n legacy.aria?.lastPageLabel ??\n config.messages?.paginator?.last,\n },\n datePicker: {\n ...config.messages?.datePicker,\n today:\n explicitMessages?.datePicker?.today ??\n legacy.today ??\n config.messages?.datePicker?.today,\n clear:\n explicitMessages?.datePicker?.clear ??\n legacy.clear ??\n config.messages?.datePicker?.clear,\n openCalendar:\n explicitMessages?.datePicker?.openCalendar ??\n config.messages?.datePicker?.openCalendar,\n previousMonth:\n explicitMessages?.datePicker?.previousMonth ??\n config.messages?.datePicker?.previousMonth,\n nextMonth:\n explicitMessages?.datePicker?.nextMonth ??\n config.messages?.datePicker?.nextMonth,\n },\n },\n };\n};\n\nconst validLocale = (locale: string | undefined) => {\n if (!locale) return 'en-US';\n try {\n return new Intl.Locale(locale).toString();\n } catch {\n return 'en-US';\n }\n};\n\n/** Application root for locale, labels, and the optional app-wide toaster. */\nexport const CratisComponentsProvider = ({\n value,\n toaster,\n library,\n libraryMode,\n rendererFallback,\n overlayEnvironment,\n rendererSetup,\n children,\n}: CratisComponentsProviderProps) => {\n const resolved = useMemo(\n () =>\n withLegacyLocaleMessages(mergeCratisComponentsConfig(value), value?.messages),\n [value],\n );\n\n return (\n <RendererRoot\n library={library}\n libraryMode={libraryMode}\n rendererFallback={rendererFallback}\n overlayEnvironment={overlayEnvironment}\n rendererSetup={rendererSetup}\n >\n <CratisComponentsContext.Provider value={resolved}>\n <I18nProvider locale={validLocale(resolved.locale)}>\n {children}\n {toaster && (\n <Toaster {...(typeof toaster === 'object' ? toaster : {})} />\n )}\n </I18nProvider>\n </CratisComponentsContext.Provider>\n </RendererRoot>\n );\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;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AAAE,IAAA,MAAM;AACJ,QAAA,OAAO,OAAO;IAClB;AACJ,CAAC;MAGY,wBAAwB,GAAG,CAAC,EACrC,KAAK,EACL,OAAO,EACP,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,QAAQ,GACoB,KAAI;IAChC,MAAM,QAAQ,GAAG,OAAO,CACpB,MACI,wBAAwB,CAAC,2BAA2B,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,EACjF,CAAC,KAAK,CAAC,CACV;AAED,IAAA,QACIA,GAAA,CAAC,YAAY,EAAA,EACT,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,aAAa,EAAE,aAAa,YAE5BA,GAAA,CAAC,uBAAuB,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,EAAA,QAAA,EAC7CC,KAAC,YAAY,EAAA,EAAC,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAA,QAAA,EAAA,CAC7C,QAAQ,EACR,OAAO,KACJD,GAAA,CAAC,OAAO,QAAM,OAAO,OAAO,KAAK,QAAQ,GAAG,OAAO,GAAG,EAAE,CAAC,GAAI,CAChE,CAAA,EAAA,CACU,EAAA,CACgB,EAAA,CACxB;AAEvB;;"}
@@ -115,6 +115,14 @@ export interface DataPageProps<TQuery extends IQueryFor<TDataType, TArguments> |
115
115
  * The message to show when there is no data
116
116
  */
117
117
  emptyMessage: string;
118
+ /**
119
+ * The message to show instead of {@link emptyMessage} when a search or column filter is active
120
+ * and no rows are shown. Defaults to a localizable message that says only the loaded page was
121
+ * searched, or, with `serverQuery`, a neutral "No rows match the search.".
122
+ */
123
+ filteredEmptyMessage?: ReactNode;
124
+ /** Notified of every change to the search text, as typed. */
125
+ onGlobalFilterChange?: (globalFilter: string) => void;
118
126
  /** Message shown while loading without rows. */
119
127
  loadingMessage?: ReactNode;
120
128
  /** Message shown when the query fails. */
@@ -1 +1 @@
1
- {"version":3,"file":"DataPage.d.ts","sourceRoot":"","sources":["../../../DataPage/DataPage.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAsB,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAEpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAkB,CAAC;AACpD,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAY,MAAM,qBAAqB,CAAC;AAEzF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAA6B,CAAC;AAElE,OAAO,KAAK,EACR,mBAAmB,EACnB,mBAAmB,EACtB,MAAM,iCAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAmC,CAAC;AAC7E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gDAA6C,CAAC;AACjG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAoC,CAAC;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAWxD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,0EAA0E;IAC1E,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnD,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED;;;;GAIG;AACH,eAAO,MAAM,QAAQ,WAAY,aAAa,SAE7C,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,kDAAkD;IAClD,QAAQ,EAAE,SAA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