@dnb/eufemia 10.72.0 → 10.72.2

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 (105) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/cjs/components/step-indicator/StepIndicatorItem.js +1 -3
  3. package/cjs/components/step-indicator/StepIndicatorItem.js.map +1 -1
  4. package/cjs/components/step-indicator/style/dnb-step-indicator.css +2 -4
  5. package/cjs/components/step-indicator/style/dnb-step-indicator.min.css +1 -1
  6. package/cjs/components/step-indicator/style/dnb-step-indicator.scss +3 -6
  7. package/cjs/extensions/forms/DataContext/Provider/ProviderDocs.js +1 -1
  8. package/cjs/extensions/forms/DataContext/Provider/ProviderDocs.js.map +1 -1
  9. package/cjs/extensions/forms/Field/Indeterminate/IndeterminateDocs.js +1 -1
  10. package/cjs/extensions/forms/Field/Indeterminate/IndeterminateDocs.js.map +1 -1
  11. package/cjs/extensions/forms/Wizard/Buttons/ButtonsDocs.js +1 -1
  12. package/cjs/extensions/forms/Wizard/Buttons/ButtonsDocs.js.map +1 -1
  13. package/cjs/extensions/forms/hooks/useFieldProps.js +1 -1
  14. package/cjs/extensions/forms/hooks/useFieldProps.js.map +1 -1
  15. package/cjs/shared/Eufemia.d.ts +1 -1
  16. package/cjs/shared/Eufemia.js +2 -2
  17. package/cjs/shared/Eufemia.js.map +1 -1
  18. package/cjs/style/core/scopes.scss +1 -1
  19. package/cjs/style/dnb-ui-basis.css +1 -1
  20. package/cjs/style/dnb-ui-basis.min.css +1 -1
  21. package/cjs/style/dnb-ui-body.css +1 -1
  22. package/cjs/style/dnb-ui-body.min.css +1 -1
  23. package/cjs/style/dnb-ui-components.css +2 -4
  24. package/cjs/style/dnb-ui-components.min.css +1 -1
  25. package/cjs/style/dnb-ui-core.css +1 -1
  26. package/cjs/style/dnb-ui-core.min.css +1 -1
  27. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.css +2 -4
  28. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
  29. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.css +2 -4
  30. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
  31. package/cjs/style/themes/theme-ui/ui-theme-components.css +2 -4
  32. package/cjs/style/themes/theme-ui/ui-theme-components.min.css +1 -1
  33. package/components/step-indicator/StepIndicatorItem.js +1 -3
  34. package/components/step-indicator/StepIndicatorItem.js.map +1 -1
  35. package/components/step-indicator/style/dnb-step-indicator.css +2 -4
  36. package/components/step-indicator/style/dnb-step-indicator.min.css +1 -1
  37. package/components/step-indicator/style/dnb-step-indicator.scss +3 -6
  38. package/es/components/step-indicator/StepIndicatorItem.js +1 -3
  39. package/es/components/step-indicator/StepIndicatorItem.js.map +1 -1
  40. package/es/components/step-indicator/style/dnb-step-indicator.css +2 -4
  41. package/es/components/step-indicator/style/dnb-step-indicator.min.css +1 -1
  42. package/es/components/step-indicator/style/dnb-step-indicator.scss +3 -6
  43. package/es/extensions/forms/DataContext/Provider/ProviderDocs.js +1 -1
  44. package/es/extensions/forms/DataContext/Provider/ProviderDocs.js.map +1 -1
  45. package/es/extensions/forms/Field/Indeterminate/IndeterminateDocs.js +1 -1
  46. package/es/extensions/forms/Field/Indeterminate/IndeterminateDocs.js.map +1 -1
  47. package/es/extensions/forms/Wizard/Buttons/ButtonsDocs.js +1 -1
  48. package/es/extensions/forms/Wizard/Buttons/ButtonsDocs.js.map +1 -1
  49. package/es/extensions/forms/hooks/useFieldProps.js +1 -1
  50. package/es/extensions/forms/hooks/useFieldProps.js.map +1 -1
  51. package/es/shared/Eufemia.d.ts +1 -1
  52. package/es/shared/Eufemia.js +2 -2
  53. package/es/shared/Eufemia.js.map +1 -1
  54. package/es/style/core/scopes.scss +1 -1
  55. package/es/style/dnb-ui-basis.css +1 -1
  56. package/es/style/dnb-ui-basis.min.css +1 -1
  57. package/es/style/dnb-ui-body.css +1 -1
  58. package/es/style/dnb-ui-body.min.css +1 -1
  59. package/es/style/dnb-ui-components.css +2 -4
  60. package/es/style/dnb-ui-components.min.css +1 -1
  61. package/es/style/dnb-ui-core.css +1 -1
  62. package/es/style/dnb-ui-core.min.css +1 -1
  63. package/es/style/themes/theme-eiendom/eiendom-theme-components.css +2 -4
  64. package/es/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
  65. package/es/style/themes/theme-sbanken/sbanken-theme-components.css +2 -4
  66. package/es/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
  67. package/es/style/themes/theme-ui/ui-theme-components.css +2 -4
  68. package/es/style/themes/theme-ui/ui-theme-components.min.css +1 -1
  69. package/esm/dnb-ui-basis.min.mjs +1 -1
  70. package/esm/dnb-ui-components.min.mjs +1 -1
  71. package/esm/dnb-ui-elements.min.mjs +1 -1
  72. package/esm/dnb-ui-extensions.min.mjs +1 -1
  73. package/esm/dnb-ui-lib.min.mjs +1 -1
  74. package/extensions/forms/DataContext/Provider/ProviderDocs.js +1 -1
  75. package/extensions/forms/DataContext/Provider/ProviderDocs.js.map +1 -1
  76. package/extensions/forms/Field/Indeterminate/IndeterminateDocs.js +1 -1
  77. package/extensions/forms/Field/Indeterminate/IndeterminateDocs.js.map +1 -1
  78. package/extensions/forms/Wizard/Buttons/ButtonsDocs.js +1 -1
  79. package/extensions/forms/Wizard/Buttons/ButtonsDocs.js.map +1 -1
  80. package/extensions/forms/hooks/useFieldProps.js +1 -1
  81. package/extensions/forms/hooks/useFieldProps.js.map +1 -1
  82. package/package.json +1 -1
  83. package/shared/Eufemia.d.ts +1 -1
  84. package/shared/Eufemia.js +2 -2
  85. package/shared/Eufemia.js.map +1 -1
  86. package/style/core/scopes.scss +1 -1
  87. package/style/dnb-ui-basis.css +1 -1
  88. package/style/dnb-ui-basis.min.css +1 -1
  89. package/style/dnb-ui-body.css +1 -1
  90. package/style/dnb-ui-body.min.css +1 -1
  91. package/style/dnb-ui-components.css +2 -4
  92. package/style/dnb-ui-components.min.css +1 -1
  93. package/style/dnb-ui-core.css +1 -1
  94. package/style/dnb-ui-core.min.css +1 -1
  95. package/style/themes/theme-eiendom/eiendom-theme-components.css +2 -4
  96. package/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
  97. package/style/themes/theme-sbanken/sbanken-theme-components.css +2 -4
  98. package/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
  99. package/style/themes/theme-ui/ui-theme-components.css +2 -4
  100. package/style/themes/theme-ui/ui-theme-components.min.css +1 -1
  101. package/umd/dnb-ui-basis.min.js +1 -1
  102. package/umd/dnb-ui-components.min.js +1 -1
  103. package/umd/dnb-ui-elements.min.js +1 -1
  104. package/umd/dnb-ui-extensions.min.js +1 -1
  105. package/umd/dnb-ui-lib.min.js +1 -1
@@ -102,7 +102,7 @@ export const ProviderEvents = {
102
102
  status: 'optional'
103
103
  },
104
104
  onSubmit: {
105
- doc: "Will be called (on validation success) when the user submit the form (i.e by clicking a [SubmitButton](/uilib/extensions/forms/Form/SubmitButton) component inside), with the data set as argument. When an async function is provided, it will show an indicator on the submit button during the form submission. All form elements will be disabled during the submit. The indicator will be shown for minimum 1 second. Related props: `minimumAsyncBehaviorTime` and `asyncSubmitTimeout`. You can return an error or an object with these keys `{ status: 'pending', info: 'Info message', warning: 'Warning message', error: Error('My error') } as const` to be shown in a [FormStatus](/uilib/components/form-status). Will only emit when every validation has passed. The second parameter is an object containing the `filterData`, `reduceToVisibleFields`, `transformData`, `resetForm` and `clearData` functions.",
105
+ doc: "Will be called (on validation success) when the user submit the form (i.e by clicking a [Form.SubmitButton](/uilib/extensions/forms/Form/SubmitButton) component inside), with the data set as argument. When an async function is provided, it will show an indicator on the submit button during the form submission. All form elements will be disabled during the submit. The indicator will be shown for minimum 1 second. Related props: `minimumAsyncBehaviorTime` and `asyncSubmitTimeout`. You can return an error or an object with these keys `{ status: 'pending', info: 'Info message', warning: 'Warning message', error: Error('My error') } as const` to be shown in a [FormStatus](/uilib/components/form-status). Will only emit when every validation has passed. The second parameter is an object containing the `filterData`, `reduceToVisibleFields`, `transformData`, `resetForm` and `clearData` functions.",
106
106
  type: 'function',
107
107
  status: 'optional'
108
108
  },
@@ -1 +1 @@
1
- {"version":3,"file":"ProviderDocs.js","names":["ProviderProperties","defaultData","doc","type","status","data","id","schema","errorMessages","minimumAsyncBehaviorTime","asyncSubmitTimeout","scrollTopOnSubmit","sessionStorageId","ajvInstance","transformIn","transformOut","globalStatusId","required","disabled","locale","countryCode","children","ProviderEvents","onChange","onPathChange","onSubmit","onSubmitRequest","onSubmitComplete","onClear"],"sources":["../../../../../../src/extensions/forms/DataContext/Provider/ProviderDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../../../shared/types'\n\nexport const ProviderProperties: PropertiesTableProps = {\n defaultData: {\n doc: 'Default source data, only used if no other source is available, and not leading to updates if changed after mount.',\n type: 'object',\n status: 'optional',\n },\n data: {\n doc: 'Dynamic source data used as both initial data, and updates internal data if changed after mount.',\n type: 'object',\n status: 'optional',\n },\n id: {\n doc: 'Unique id for connecting Form.Handler and helper tools such as Form.useData.',\n type: ['string', 'Function', 'Object', 'React.Context'],\n status: 'optional',\n },\n schema: {\n doc: 'JSON Schema for validation of the data set.',\n type: 'object',\n status: 'optional',\n },\n errorMessages: {\n doc: 'Object containing error messages by either type of JSON Pointer path and type. The messages can be a React.ReactNode or a string.',\n type: 'object',\n status: 'optional',\n },\n minimumAsyncBehaviorTime: {\n doc: 'Minimum time to display the submit indicator. Default is 1s.',\n type: 'boolean',\n status: 'optional',\n },\n asyncSubmitTimeout: {\n doc: 'The maximum time to display the submit indicator before it changes back to normal. In case something went wrong during submission. Default is 30s.',\n type: 'boolean',\n status: 'optional',\n },\n scrollTopOnSubmit: {\n doc: 'True for the UI to scroll to the top of the page when data is submitted.',\n type: 'boolean',\n status: 'optional',\n },\n sessionStorageId: {\n doc: 'Key for saving active data to session storage and loading it on mount.',\n type: 'string',\n status: 'optional',\n },\n ajvInstance: {\n doc: 'Provide your own custom Ajv instance. More info in the [Schema validation](/uilib/extensions/forms/Form/schema-validation/#custom-ajv-instance-and-keywords) section.',\n type: 'ajv',\n status: 'optional',\n },\n transformIn: {\n doc: \"Mutate the data context (internally as well) based on your criteria: `({ path, value, data, props, internal }) => 'new value'`. It will iterate on each data entry (/path).\",\n type: 'function',\n status: 'optional',\n },\n transformOut: {\n doc: \"Mutate the data before it enters onSubmit or onChange based on your criteria: `({ path, value, data, props, internal }) => 'new value'`. It will iterate on each data entry (/path).\",\n type: 'function',\n status: 'optional',\n },\n globalStatusId: {\n doc: 'If needed, you can define a custom [GlobalStatus](/uilib/components/global-status) id. Defaults to `main`.',\n type: 'string',\n status: 'optional',\n },\n required: {\n doc: 'Make all fields required.',\n type: 'boolean',\n status: 'optional',\n },\n disabled: {\n doc: 'Disable all fields.',\n type: 'boolean',\n status: 'optional',\n },\n locale: {\n doc: 'Locale (language) to use for all nested Eufemia components.',\n type: 'string',\n status: 'optional',\n },\n countryCode: {\n doc: 'Will change the country code for fields supporting `countryCode`. You can also set a path as the value, e.g. `/myCountryCodePath`.',\n type: ['ISO 3166-1 alpha-2', 'Path/JSON Pointer'],\n status: 'optional',\n },\n children: {\n doc: 'Contents.',\n type: 'React.Node',\n status: 'required',\n },\n}\n\nexport const ProviderEvents: PropertiesTableProps = {\n onChange: {\n doc: \"Will be called when a value of a field was changed by the user, with the data set (including the changed value) as argument. When an async function is provided, it will show an indicator on the current label during a field change. Related props: `minimumAsyncBehaviorTime` and `asyncSubmitTimeout`. You can return an error or an object with these keys `{ info: 'Info message', warning: 'Warning message', error: Error('My error') } as const` in addition to { success: 'saved' } indicate the field was saved. Will emit unvalidated by default and validated when an async function is provided (like `onSubmit`). The second parameter is an object containing the `filterData`, `resetForm` and `clearData` functions.\",\n type: 'function',\n status: 'optional',\n },\n onPathChange: {\n doc: 'Will be called when a value of a field was changed by the user, with the `path` (JSON Pointer) and new `value` as arguments. Can be an async function. Will emit unvalidated by default and validated when `onChange` is an async function.',\n type: 'function',\n status: 'optional',\n },\n onSubmit: {\n doc: \"Will be called (on validation success) when the user submit the form (i.e by clicking a [SubmitButton](/uilib/extensions/forms/Form/SubmitButton) component inside), with the data set as argument. When an async function is provided, it will show an indicator on the submit button during the form submission. All form elements will be disabled during the submit. The indicator will be shown for minimum 1 second. Related props: `minimumAsyncBehaviorTime` and `asyncSubmitTimeout`. You can return an error or an object with these keys `{ status: 'pending', info: 'Info message', warning: 'Warning message', error: Error('My error') } as const` to be shown in a [FormStatus](/uilib/components/form-status). Will only emit when every validation has passed. The second parameter is an object containing the `filterData`, `reduceToVisibleFields`, `transformData`, `resetForm` and `clearData` functions.\",\n type: 'function',\n status: 'optional',\n },\n onSubmitRequest: {\n doc: 'Will be called when the user tries to submit, but errors stop the data from being submitted. The first parameter is aa object containing the `getErrors` method, returning an array with field errors. Each error object contains the `path`, `error` and `props` of the field. You can use this to log the errors before the form is submitted.',\n type: 'function',\n status: 'optional',\n },\n onSubmitComplete: {\n doc: 'Will be called after onSubmit has finished and had not errors. It supports the same return values as `onSubmit` and will be merged together.',\n type: 'function',\n status: 'optional',\n },\n onClear: {\n doc: 'Will be called when the form is cleared via `Form.clearData` or via the `onSubmit` event (or `onCommit`) argument `{ clearData }`.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,OAAO,MAAMA,kBAAwC,GAAG;EACtDC,WAAW,EAAE;IACXC,GAAG,EAAE,oHAAoH;IACzHC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDC,IAAI,EAAE;IACJH,GAAG,EAAE,kGAAkG;IACvGC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDE,EAAE,EAAE;IACFJ,GAAG,EAAE,8EAA8E;IACnFC,IAAI,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,CAAC;IACvDC,MAAM,EAAE;EACV,CAAC;EACDG,MAAM,EAAE;IACNL,GAAG,EAAE,6CAA6C;IAClDC,IAAI,EAAE,QAAQ;IACdC,MAAM,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AAC;EACDgB,WAAW,EAAE;IACXlB,GAAG,EAAE,oIAAoI;IACzIC,IAAI,EAAE,CAAC,oBAAoB,EAAE,mBAAmB,CAAC;IACjDC,MAAM,EAAE;EACV,CAAC;EACDiB,QAAQ,EAAE;IACRnB,GAAG,EAAE,WAAW;IAChBC,IAAI,EAAE,YAAY;IAClBC,MAAM,EAAE;EACV;AACF,CAAC;AAED,OAAO,MAAMkB,cAAoC,GAAG;EAClDC,QAAQ,EAAE;IACRrB,GAAG,EAAE,wsBAAwsB;IAC7sBC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDoB,YAAY,EAAE;IACZtB,GAAG,EAAE,6OAA6O;IAClPC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDqB,QAAQ,EAAE;IACRvB,GAAG,EAAE,i4BAAi4B;IACt4BC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDsB,eAAe,EAAE;IACfxB,GAAG,EAAE,kVAAkV;IACvVC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDuB,gBAAgB,EAAE;IAChBzB,GAAG,EAAE,8IAA8I;IACnJC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDwB,OAAO,EAAE;IACP1B,GAAG,EAAE,oIAAoI;IACzIC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"ProviderDocs.js","names":["ProviderProperties","defaultData","doc","type","status","data","id","schema","errorMessages","minimumAsyncBehaviorTime","asyncSubmitTimeout","scrollTopOnSubmit","sessionStorageId","ajvInstance","transformIn","transformOut","globalStatusId","required","disabled","locale","countryCode","children","ProviderEvents","onChange","onPathChange","onSubmit","onSubmitRequest","onSubmitComplete","onClear"],"sources":["../../../../../../src/extensions/forms/DataContext/Provider/ProviderDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../../../shared/types'\n\nexport const ProviderProperties: PropertiesTableProps = {\n defaultData: {\n doc: 'Default source data, only used if no other source is available, and not leading to updates if changed after mount.',\n type: 'object',\n status: 'optional',\n },\n data: {\n doc: 'Dynamic source data used as both initial data, and updates internal data if changed after mount.',\n type: 'object',\n status: 'optional',\n },\n id: {\n doc: 'Unique id for connecting Form.Handler and helper tools such as Form.useData.',\n type: ['string', 'Function', 'Object', 'React.Context'],\n status: 'optional',\n },\n schema: {\n doc: 'JSON Schema for validation of the data set.',\n type: 'object',\n status: 'optional',\n },\n errorMessages: {\n doc: 'Object containing error messages by either type of JSON Pointer path and type. The messages can be a React.ReactNode or a string.',\n type: 'object',\n status: 'optional',\n },\n minimumAsyncBehaviorTime: {\n doc: 'Minimum time to display the submit indicator. Default is 1s.',\n type: 'boolean',\n status: 'optional',\n },\n asyncSubmitTimeout: {\n doc: 'The maximum time to display the submit indicator before it changes back to normal. In case something went wrong during submission. Default is 30s.',\n type: 'boolean',\n status: 'optional',\n },\n scrollTopOnSubmit: {\n doc: 'True for the UI to scroll to the top of the page when data is submitted.',\n type: 'boolean',\n status: 'optional',\n },\n sessionStorageId: {\n doc: 'Key for saving active data to session storage and loading it on mount.',\n type: 'string',\n status: 'optional',\n },\n ajvInstance: {\n doc: 'Provide your own custom Ajv instance. More info in the [Schema validation](/uilib/extensions/forms/Form/schema-validation/#custom-ajv-instance-and-keywords) section.',\n type: 'ajv',\n status: 'optional',\n },\n transformIn: {\n doc: \"Mutate the data context (internally as well) based on your criteria: `({ path, value, data, props, internal }) => 'new value'`. It will iterate on each data entry (/path).\",\n type: 'function',\n status: 'optional',\n },\n transformOut: {\n doc: \"Mutate the data before it enters onSubmit or onChange based on your criteria: `({ path, value, data, props, internal }) => 'new value'`. It will iterate on each data entry (/path).\",\n type: 'function',\n status: 'optional',\n },\n globalStatusId: {\n doc: 'If needed, you can define a custom [GlobalStatus](/uilib/components/global-status) id. Defaults to `main`.',\n type: 'string',\n status: 'optional',\n },\n required: {\n doc: 'Make all fields required.',\n type: 'boolean',\n status: 'optional',\n },\n disabled: {\n doc: 'Disable all fields.',\n type: 'boolean',\n status: 'optional',\n },\n locale: {\n doc: 'Locale (language) to use for all nested Eufemia components.',\n type: 'string',\n status: 'optional',\n },\n countryCode: {\n doc: 'Will change the country code for fields supporting `countryCode`. You can also set a path as the value, e.g. `/myCountryCodePath`.',\n type: ['ISO 3166-1 alpha-2', 'Path/JSON Pointer'],\n status: 'optional',\n },\n children: {\n doc: 'Contents.',\n type: 'React.Node',\n status: 'required',\n },\n}\n\nexport const ProviderEvents: PropertiesTableProps = {\n onChange: {\n doc: \"Will be called when a value of a field was changed by the user, with the data set (including the changed value) as argument. When an async function is provided, it will show an indicator on the current label during a field change. Related props: `minimumAsyncBehaviorTime` and `asyncSubmitTimeout`. You can return an error or an object with these keys `{ info: 'Info message', warning: 'Warning message', error: Error('My error') } as const` in addition to { success: 'saved' } indicate the field was saved. Will emit unvalidated by default and validated when an async function is provided (like `onSubmit`). The second parameter is an object containing the `filterData`, `resetForm` and `clearData` functions.\",\n type: 'function',\n status: 'optional',\n },\n onPathChange: {\n doc: 'Will be called when a value of a field was changed by the user, with the `path` (JSON Pointer) and new `value` as arguments. Can be an async function. Will emit unvalidated by default and validated when `onChange` is an async function.',\n type: 'function',\n status: 'optional',\n },\n onSubmit: {\n doc: \"Will be called (on validation success) when the user submit the form (i.e by clicking a [Form.SubmitButton](/uilib/extensions/forms/Form/SubmitButton) component inside), with the data set as argument. When an async function is provided, it will show an indicator on the submit button during the form submission. All form elements will be disabled during the submit. The indicator will be shown for minimum 1 second. Related props: `minimumAsyncBehaviorTime` and `asyncSubmitTimeout`. You can return an error or an object with these keys `{ status: 'pending', info: 'Info message', warning: 'Warning message', error: Error('My error') } as const` to be shown in a [FormStatus](/uilib/components/form-status). Will only emit when every validation has passed. The second parameter is an object containing the `filterData`, `reduceToVisibleFields`, `transformData`, `resetForm` and `clearData` functions.\",\n type: 'function',\n status: 'optional',\n },\n onSubmitRequest: {\n doc: 'Will be called when the user tries to submit, but errors stop the data from being submitted. The first parameter is aa object containing the `getErrors` method, returning an array with field errors. Each error object contains the `path`, `error` and `props` of the field. You can use this to log the errors before the form is submitted.',\n type: 'function',\n status: 'optional',\n },\n onSubmitComplete: {\n doc: 'Will be called after onSubmit has finished and had not errors. It supports the same return values as `onSubmit` and will be merged together.',\n type: 'function',\n status: 'optional',\n },\n onClear: {\n doc: 'Will be called when the form is cleared via `Form.clearData` or via the `onSubmit` event (or `onCommit`) argument `{ clearData }`.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,OAAO,MAAMA,kBAAwC,GAAG;EACtDC,WAAW,EAAE;IACXC,GAAG,EAAE,oHAAoH;IACzHC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDC,IAAI,EAAE;IACJH,GAAG,EAAE,kGAAkG;IACvGC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDE,EAAE,EAAE;IACFJ,GAAG,EAAE,8EAA8E;IACnFC,IAAI,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,CAAC;IACvDC,MAAM,EAAE;EACV,CAAC;EACDG,MAAM,EAAE;IACNL,GAAG,EAAE,6CAA6C;IAClDC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDI,aAAa,EAAE;IACbN,GAAG,EAAE,mIAAmI;IACxIC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDK,wBAAwB,EAAE;IACxBP,GAAG,EAAE,8DAA8D;IACnEC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDM,kBAAkB,EAAE;IAClBR,GAAG,EAAE,oJAAoJ;IACzJC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDO,iBAAiB,EAAE;IACjBT,GAAG,EAAE,0EAA0E;IAC/EC,IAAI,EAAE,SAAS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EAAE;IACZtB,GAAG,EAAE,6OAA6O;IAClPC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDqB,QAAQ,EAAE;IACRvB,GAAG,EAAE,s4BAAs4B;IAC34BC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDsB,eAAe,EAAE;IACfxB,GAAG,EAAE,kVAAkV;IACvVC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDuB,gBAAgB,EAAE;IAChBzB,GAAG,EAAE,8IAA8I;IACnJC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDwB,OAAO,EAAE;IACP1B,GAAG,EAAE,oIAAoI;IACzIC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
@@ -12,7 +12,7 @@ Object.assign(ToggleProperties, {
12
12
  });
13
13
  export const IndeterminateProperties = _objectSpread(_objectSpread({
14
14
  dependencePaths: {
15
- doc: 'Provide an array with the related paths of other [Toggle](/uilib/extensions/forms/base-fields/Toggle/) og [Boolean](/uilib/extensions/forms/base-fields/Boolean/) fields.',
15
+ doc: 'Provide an array with the related paths of other [Field.Toggle](/uilib/extensions/forms/base-fields/Toggle/) or [Field.Boolean](/uilib/extensions/forms/base-fields/Boolean/) fields.',
16
16
  type: 'array',
17
17
  status: 'required'
18
18
  },
@@ -1 +1 @@
1
- {"version":3,"file":"IndeterminateDocs.js","names":["ToggleProperties","Object","assign","valueOn","_objectSpread","status","valueOff","IndeterminateProperties","dependencePaths","doc","type","propagateIndeterminateState","textOn","undefined","textOff","variant"],"sources":["../../../../../../src/extensions/forms/Field/Indeterminate/IndeterminateDocs.tsx"],"sourcesContent":["import { PropertiesTableProps } from '../../../../shared/types'\nimport { ToggleProperties } from '../Toggle/ToggleDocs'\n\nObject.assign(ToggleProperties, {\n valueOn: {\n ...ToggleProperties.valueOn,\n status: 'optional',\n },\n valueOff: {\n ...ToggleProperties.valueOff,\n status: 'optional',\n },\n})\n\nexport const IndeterminateProperties: PropertiesTableProps = {\n dependencePaths: {\n doc: 'Provide an array with the related paths of other [Toggle](/uilib/extensions/forms/base-fields/Toggle/) og [Boolean](/uilib/extensions/forms/base-fields/Boolean/) fields.',\n type: 'array',\n status: 'required',\n },\n propagateIndeterminateState: {\n doc: 'When `checked`, the dependent checkboxes will always be set to \"checked\" when in indeterminate state. When `unchecked`, the dependent checkboxes will be set to \"unchecked\" when in indeterminate state. When \"auto\", the dependent checkboxes will get the inverted state from where the (this) parent checkbox is in. Default is `true`.',\n type: ['checked', 'unchecked', 'auto'],\n status: 'optional',\n },\n ...ToggleProperties,\n textOn: undefined,\n textOff: undefined,\n variant: undefined,\n}\n"],"mappings":";;;AACA,SAASA,gBAAgB,QAAQ,sBAAsB;AAEvDC,MAAM,CAACC,MAAM,CAACF,gBAAgB,EAAE;EAC9BG,OAAO,EAAAC,aAAA,CAAAA,aAAA,KACFJ,gBAAgB,CAACG,OAAO;IAC3BE,MAAM,EAAE;EAAU,EACnB;EACDC,QAAQ,EAAAF,aAAA,CAAAA,aAAA,KACHJ,gBAAgB,CAACM,QAAQ;IAC5BD,MAAM,EAAE;EAAU;AAEtB,CAAC,CAAC;AAEF,OAAO,MAAME,uBAA6C,GAAAH,aAAA,CAAAA,aAAA;EACxDI,eAAe,EAAE;IACfC,GAAG,EAAE,2KAA2K;IAChLC,IAAI,EAAE,OAAO;IACbL,MAAM,EAAE;EACV,CAAC;EACDM,2BAA2B,EAAE;IAC3BF,GAAG,EAAE,4UAA4U;IACjVC,IAAI,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,CAAC;IACtCL,MAAM,EAAE;EACV;AAAC,GACEL,gBAAgB;EACnBY,MAAM,EAAEC,SAAS;EACjBC,OAAO,EAAED,SAAS;EAClBE,OAAO,EAAEF;AAAS,EACnB","ignoreList":[]}
1
+ {"version":3,"file":"IndeterminateDocs.js","names":["ToggleProperties","Object","assign","valueOn","_objectSpread","status","valueOff","IndeterminateProperties","dependencePaths","doc","type","propagateIndeterminateState","textOn","undefined","textOff","variant"],"sources":["../../../../../../src/extensions/forms/Field/Indeterminate/IndeterminateDocs.tsx"],"sourcesContent":["import { PropertiesTableProps } from '../../../../shared/types'\nimport { ToggleProperties } from '../Toggle/ToggleDocs'\n\nObject.assign(ToggleProperties, {\n valueOn: {\n ...ToggleProperties.valueOn,\n status: 'optional',\n },\n valueOff: {\n ...ToggleProperties.valueOff,\n status: 'optional',\n },\n})\n\nexport const IndeterminateProperties: PropertiesTableProps = {\n dependencePaths: {\n doc: 'Provide an array with the related paths of other [Field.Toggle](/uilib/extensions/forms/base-fields/Toggle/) or [Field.Boolean](/uilib/extensions/forms/base-fields/Boolean/) fields.',\n type: 'array',\n status: 'required',\n },\n propagateIndeterminateState: {\n doc: 'When `checked`, the dependent checkboxes will always be set to \"checked\" when in indeterminate state. When `unchecked`, the dependent checkboxes will be set to \"unchecked\" when in indeterminate state. When \"auto\", the dependent checkboxes will get the inverted state from where the (this) parent checkbox is in. Default is `true`.',\n type: ['checked', 'unchecked', 'auto'],\n status: 'optional',\n },\n ...ToggleProperties,\n textOn: undefined,\n textOff: undefined,\n variant: undefined,\n}\n"],"mappings":";;;AACA,SAASA,gBAAgB,QAAQ,sBAAsB;AAEvDC,MAAM,CAACC,MAAM,CAACF,gBAAgB,EAAE;EAC9BG,OAAO,EAAAC,aAAA,CAAAA,aAAA,KACFJ,gBAAgB,CAACG,OAAO;IAC3BE,MAAM,EAAE;EAAU,EACnB;EACDC,QAAQ,EAAAF,aAAA,CAAAA,aAAA,KACHJ,gBAAgB,CAACM,QAAQ;IAC5BD,MAAM,EAAE;EAAU;AAEtB,CAAC,CAAC;AAEF,OAAO,MAAME,uBAA6C,GAAAH,aAAA,CAAAA,aAAA;EACxDI,eAAe,EAAE;IACfC,GAAG,EAAE,uLAAuL;IAC5LC,IAAI,EAAE,OAAO;IACbL,MAAM,EAAE;EACV,CAAC;EACDM,2BAA2B,EAAE;IAC3BF,GAAG,EAAE,4UAA4U;IACjVC,IAAI,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,CAAC;IACtCL,MAAM,EAAE;EACV;AAAC,GACEL,gBAAgB;EACnBY,MAAM,EAAEC,SAAS;EACjBC,OAAO,EAAED,SAAS;EAClBE,OAAO,EAAEF;AAAS,EACnB","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  export const WizardButtonsProperties = {
2
- '[ButtonRow](/uilib/extensions/forms/Form/ButtonRow/properties/)': {
2
+ '[Form.ButtonRow](/uilib/extensions/forms/Form/ButtonRow/properties/)': {
3
3
  doc: 'ButtonRow properties.',
4
4
  type: 'Various',
5
5
  status: 'optional'
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonsDocs.js","names":["WizardButtonsProperties","doc","type","status"],"sources":["../../../../../../src/extensions/forms/Wizard/Buttons/ButtonsDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../../../shared/types'\n\nexport const WizardButtonsProperties: PropertiesTableProps = {\n '[ButtonRow](/uilib/extensions/forms/Form/ButtonRow/properties/)': {\n doc: 'ButtonRow properties.',\n type: 'Various',\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,OAAO,MAAMA,uBAA6C,GAAG;EAC3D,iEAAiE,EAAE;IACjEC,GAAG,EAAE,uBAAuB;IAC5BC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"ButtonsDocs.js","names":["WizardButtonsProperties","doc","type","status"],"sources":["../../../../../../src/extensions/forms/Wizard/Buttons/ButtonsDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../../../shared/types'\n\nexport const WizardButtonsProperties: PropertiesTableProps = {\n '[Form.ButtonRow](/uilib/extensions/forms/Form/ButtonRow/properties/)': {\n doc: 'ButtonRow properties.',\n type: 'Various',\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,OAAO,MAAMA,uBAA6C,GAAG;EAC3D,sEAAsE,EAAE;IACtEC,GAAG,EAAE,uBAAuB;IAC5BC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
@@ -427,7 +427,7 @@ export default function useFieldProps(localProps) {
427
427
  return;
428
428
  }
429
429
  const hasError = Boolean(localErrorRef.current);
430
- revealErrorRef.current = hasError;
430
+ revealErrorRef.current = true;
431
431
  setErrorState(hasError);
432
432
  }, [validateInitially, setErrorState]);
433
433
  const hideError = useCallback(() => {