@m4l/components 9.19.0 → 9.20.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 (175) hide show
  1. package/components/CheckableList/slots/styled.d.ts +3 -3
  2. package/components/DynamicForm/DynamicForm.d.ts.map +1 -1
  3. package/components/DynamicForm/DynamicForm.js +121 -81
  4. package/components/DynamicForm/DynamicForm.styles.d.ts.map +1 -1
  5. package/components/DynamicForm/DynamicForm.styles.js +104 -20
  6. package/components/DynamicForm/constants.d.ts +1 -1
  7. package/components/DynamicForm/constants.d.ts.map +1 -1
  8. package/components/DynamicForm/constants.js +10 -10
  9. package/components/DynamicForm/dictionary.d.ts +9 -1
  10. package/components/DynamicForm/dictionary.d.ts.map +1 -1
  11. package/components/DynamicForm/dictionary.js +14 -5
  12. package/components/DynamicForm/helpers/applyRequiredValidation/applyRequiredValidation.d.ts.map +1 -1
  13. package/components/DynamicForm/helpers/createFieldValidationSchema/createFieldValidationSchema.d.ts.map +1 -1
  14. package/components/DynamicForm/helpers/createFieldValidationSchema/createFieldValidationSchema.js +24 -22
  15. package/components/DynamicForm/helpers/createFieldValidationSchema/strategies/baseSchema/baseSchemaStrategies.d.ts +7 -0
  16. package/components/DynamicForm/helpers/createFieldValidationSchema/strategies/baseSchema/baseSchemaStrategies.d.ts.map +1 -1
  17. package/components/DynamicForm/helpers/createFieldValidationSchema/strategies/baseSchema/baseSchemaStrategies.js +46 -30
  18. package/components/DynamicForm/helpers/createFieldValidationSchema/strategies/baseSchema/createBaseSchema.d.ts +1 -0
  19. package/components/DynamicForm/helpers/createFieldValidationSchema/strategies/baseSchema/createBaseSchema.d.ts.map +1 -1
  20. package/components/DynamicForm/helpers/createFieldValidationSchema/strategies/baseSchema/createBaseSchema.js +8 -6
  21. package/components/DynamicForm/helpers/createFieldValidationSchema/strategies/validation/validationStrategies.d.ts.map +1 -1
  22. package/components/DynamicForm/helpers/createFieldValidationSchema/strategies/validation/validationStrategies.js +37 -37
  23. package/components/DynamicForm/helpers/filterUnknownFieldsFromSubmit/filterUnknownFieldsFromSubmit.d.ts +14 -0
  24. package/components/DynamicForm/helpers/filterUnknownFieldsFromSubmit/filterUnknownFieldsFromSubmit.d.ts.map +1 -0
  25. package/components/DynamicForm/helpers/filterUnknownFieldsFromSubmit/index.d.ts +2 -0
  26. package/components/DynamicForm/helpers/filterUnknownFieldsFromSubmit/index.d.ts.map +1 -0
  27. package/components/DynamicForm/helpers/getFieldTypeApiKey/getFieldTypeApiKey.d.ts +8 -0
  28. package/components/DynamicForm/helpers/getFieldTypeApiKey/getFieldTypeApiKey.d.ts.map +1 -0
  29. package/components/DynamicForm/helpers/getFieldTypeApiKey/getFieldTypeApiKey.js +24 -0
  30. package/components/DynamicForm/helpers/getFieldTypeApiKey/index.d.ts +2 -0
  31. package/components/DynamicForm/helpers/getFieldTypeApiKey/index.d.ts.map +1 -0
  32. package/components/DynamicForm/helpers/index.d.ts +3 -0
  33. package/components/DynamicForm/helpers/index.d.ts.map +1 -1
  34. package/components/DynamicForm/helpers/isPositiveInteger.d.ts +1 -1
  35. package/components/DynamicForm/helpers/mapImageSelectorValuesForSubmit/index.d.ts +2 -0
  36. package/components/DynamicForm/helpers/mapImageSelectorValuesForSubmit/index.d.ts.map +1 -0
  37. package/components/DynamicForm/helpers/mapImageSelectorValuesForSubmit/mapImageSelectorValuesForSubmit.d.ts +9 -0
  38. package/components/DynamicForm/helpers/mapImageSelectorValuesForSubmit/mapImageSelectorValuesForSubmit.d.ts.map +1 -0
  39. package/components/DynamicForm/helpers/mapImageSelectorValuesForSubmit/mapImageSelectorValuesForSubmit.js +26 -0
  40. package/components/DynamicForm/helpers/resolveFieldComponent/resolveFieldComponent.d.ts +4 -2
  41. package/components/DynamicForm/helpers/resolveFieldComponent/resolveFieldComponent.d.ts.map +1 -1
  42. package/components/DynamicForm/helpers/resolveFieldComponent/resolveFieldComponent.js +10 -9
  43. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/autocompleteStrategy/autocompleteStrategy.d.ts.map +1 -1
  44. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/autocompleteStrategy/autocompleteStrategy.js +36 -37
  45. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/autocompleteStrategy/normalizeAutocompletePropsFromBackend.d.ts +1 -1
  46. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/autocompleteStrategy/normalizeAutocompletePropsFromBackend.d.ts.map +1 -1
  47. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/autocompleteStrategy/normalizeAutocompletePropsFromBackend.js +25 -24
  48. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/checkableListStrategy/checkableListStrategy.d.ts.map +1 -1
  49. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/checkableListStrategy/checkableListStrategy.js +26 -26
  50. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/checkableListStrategy/helpers/whitelist/propertyNormalizers.d.ts +1 -1
  51. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/checkableListStrategy/normalizeCheckableListPropsFromBackend.d.ts +3 -3
  52. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/checkableListStrategy/normalizeCheckableListPropsFromBackend.d.ts.map +1 -1
  53. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/checkableListStrategy/normalizeCheckableListPropsFromBackend.js +10 -9
  54. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/checkableListStrategy/types.d.ts +2 -2
  55. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/checkboxStrategy/checkboxStrategy.d.ts.map +1 -1
  56. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/checkboxStrategy/checkboxStrategy.js +13 -13
  57. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/checkboxStrategy/normalizeCheckboxPropsFromBackend.d.ts +2 -2
  58. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/checkboxStrategy/normalizeCheckboxPropsFromBackend.d.ts.map +1 -1
  59. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/checkboxStrategy/normalizeCheckboxPropsFromBackend.js +9 -8
  60. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/dateRangePickerStrategy/dateRangePickerStrategy.d.ts.map +1 -1
  61. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/dateRangePickerStrategy/dateRangePickerStrategy.js +12 -12
  62. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/dateRangePickerStrategy/normalizeDateRangePickerPropsFromBackend.d.ts +4 -4
  63. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/dateRangePickerStrategy/normalizeDateRangePickerPropsFromBackend.d.ts.map +1 -1
  64. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/dateRangePickerStrategy/normalizeDateRangePickerPropsFromBackend.js +7 -6
  65. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/daysOfWeekPickerStrategy/daysOfWeekPickerStrategy.d.ts.map +1 -1
  66. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/daysOfWeekPickerStrategy/daysOfWeekPickerStrategy.js +15 -15
  67. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/daysOfWeekPickerStrategy/normalizeDaysOfWeekPickerPropsFromBackend.d.ts +2 -2
  68. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/daysOfWeekPickerStrategy/normalizeDaysOfWeekPickerPropsFromBackend.d.ts.map +1 -1
  69. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/daysOfWeekPickerStrategy/normalizeDaysOfWeekPickerPropsFromBackend.js +9 -8
  70. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/imageSelectorStrategy/imageSelectorStrategy.d.ts +7 -0
  71. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/imageSelectorStrategy/imageSelectorStrategy.d.ts.map +1 -0
  72. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/imageSelectorStrategy/imageSelectorStrategy.js +41 -0
  73. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/imageSelectorStrategy/normalizeImageSelectorPropsFromBackend.d.ts +10 -0
  74. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/imageSelectorStrategy/normalizeImageSelectorPropsFromBackend.d.ts.map +1 -0
  75. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/imageSelectorStrategy/normalizeImageSelectorPropsFromBackend.js +70 -0
  76. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/imageSelectorStrategy/types.d.ts +9 -0
  77. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/imageSelectorStrategy/types.d.ts.map +1 -0
  78. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/index.d.ts +1 -0
  79. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/index.d.ts.map +1 -1
  80. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/normalizeRhfLabelRelatedPropsFromBackend.d.ts +1 -1
  81. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/numberInputStrategy/normalizeNumberInputPropsFromBackend.d.ts +2 -2
  82. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/numberInputStrategy/normalizeNumberInputPropsFromBackend.d.ts.map +1 -1
  83. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/numberInputStrategy/normalizeNumberInputPropsFromBackend.js +6 -5
  84. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/numberInputStrategy/numberInputStrategy.d.ts.map +1 -1
  85. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/numberInputStrategy/numberInputStrategy.js +15 -15
  86. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/radioGroupStrategy/normalizeRadioGroupPropsFromBackend.d.ts +4 -4
  87. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/radioGroupStrategy/normalizeRadioGroupPropsFromBackend.d.ts.map +1 -1
  88. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/radioGroupStrategy/normalizeRadioGroupPropsFromBackend.js +16 -15
  89. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/radioGroupStrategy/radioGroupStrategy.d.ts.map +1 -1
  90. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/radioGroupStrategy/radioGroupStrategy.js +16 -16
  91. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/registry.d.ts.map +1 -1
  92. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/registry.js +8 -6
  93. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/selectStrategy/normalizeSelectPropsFromBackend.d.ts +3 -3
  94. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/selectStrategy/normalizeSelectPropsFromBackend.d.ts.map +1 -1
  95. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/selectStrategy/normalizeSelectPropsFromBackend.js +6 -5
  96. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/selectStrategy/selectStrategy.d.ts.map +1 -1
  97. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/selectStrategy/selectStrategy.js +16 -16
  98. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/textFieldStrategy/normalizeTextFieldPropsFromBackend.d.ts +2 -2
  99. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/textFieldStrategy/normalizeTextFieldPropsFromBackend.d.ts.map +1 -1
  100. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/textFieldStrategy/normalizeTextFieldPropsFromBackend.js +13 -12
  101. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/textFieldStrategy/textFieldStrategy.d.ts.map +1 -1
  102. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/textFieldStrategy/textFieldStrategy.js +35 -18
  103. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/types.d.ts +2 -0
  104. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/types.d.ts.map +1 -1
  105. package/components/DynamicForm/helpers/resolveFieldComponent/types.d.ts +16 -1
  106. package/components/DynamicForm/helpers/resolveFieldComponent/types.d.ts.map +1 -1
  107. package/components/DynamicForm/helpers/resolveFieldContractAliases.d.ts +19 -0
  108. package/components/DynamicForm/helpers/resolveFieldContractAliases.d.ts.map +1 -0
  109. package/components/DynamicForm/helpers/resolveFieldContractAliases.js +23 -0
  110. package/components/DynamicForm/helpers/resolveFieldInputLabel/resolveFieldInputLabel.d.ts +1 -1
  111. package/components/DynamicForm/helpers/resolveFieldInputLabel/resolveFieldInputLabel.d.ts.map +1 -1
  112. package/components/DynamicForm/helpers/resolveFieldInputLabel/resolveFieldInputLabel.js +6 -5
  113. package/components/DynamicForm/helpers/resolveInitialValue/resolveInitialValue.d.ts.map +1 -1
  114. package/components/DynamicForm/helpers/resolveInitialValue/resolveInitialValue.js +83 -66
  115. package/components/DynamicForm/helpers/resolveInitialValue/types.d.ts +9 -2
  116. package/components/DynamicForm/helpers/resolveInitialValue/types.d.ts.map +1 -1
  117. package/components/DynamicForm/hooks/useDynamicForm/useDynamicForm.d.ts.map +1 -1
  118. package/components/DynamicForm/hooks/useDynamicForm/useDynamicForm.js +26 -24
  119. package/components/DynamicForm/hooks/useDynamicFormConditionals/useDynamicFormConditionals.js +22 -22
  120. package/components/DynamicForm/hooks/useDynamicFormCoupled/types.d.ts +1 -1
  121. package/components/DynamicForm/hooks/useDynamicFormCoupled/types.d.ts.map +1 -1
  122. package/components/DynamicForm/hooks/useDynamicFormCoupled/useDynamicFormCoupled.d.ts.map +1 -1
  123. package/components/DynamicForm/hooks/useDynamicFormCoupled/useDynamicFormCoupled.js +26 -24
  124. package/components/DynamicForm/hooks/useDynamicFormData/types.d.ts +11 -2
  125. package/components/DynamicForm/hooks/useDynamicFormData/types.d.ts.map +1 -1
  126. package/components/DynamicForm/hooks/useDynamicFormData/useDynamicFormData.d.ts +2 -1
  127. package/components/DynamicForm/hooks/useDynamicFormData/useDynamicFormData.d.ts.map +1 -1
  128. package/components/DynamicForm/hooks/useDynamicFormData/useDynamicFormData.js +72 -50
  129. package/components/DynamicForm/hooks/useFieldsWithFetchedOptions/useFieldsWithFetchedOptions.d.ts.map +1 -1
  130. package/components/DynamicForm/hooks/useFieldsWithFetchedOptions/useFieldsWithFetchedOptions.js +3 -3
  131. package/components/DynamicForm/index.d.ts +1 -0
  132. package/components/DynamicForm/index.d.ts.map +1 -1
  133. package/components/DynamicForm/slots/DynamicFormEnum.d.ts +4 -1
  134. package/components/DynamicForm/slots/DynamicFormEnum.d.ts.map +1 -1
  135. package/components/DynamicForm/slots/DynamicFormEnum.js +2 -2
  136. package/components/DynamicForm/slots/DynamicFormSlots.d.ts +9 -0
  137. package/components/DynamicForm/slots/DynamicFormSlots.d.ts.map +1 -1
  138. package/components/DynamicForm/slots/DynamicFormSlots.js +36 -23
  139. package/components/DynamicForm/subcomponents/DynamicFormContent/DynamicFormContent.d.ts.map +1 -1
  140. package/components/DynamicForm/subcomponents/DynamicFormContent/DynamicFormContent.js +85 -46
  141. package/components/DynamicForm/types.d.ts +127 -34
  142. package/components/DynamicForm/types.d.ts.map +1 -1
  143. package/components/ImageSelector/ImageSelector.d.ts.map +1 -1
  144. package/components/ImageSelector/ImageSelector.js +103 -101
  145. package/components/ImageSelector/hooks/useImageSelector.d.ts +1 -1
  146. package/components/ImageSelector/hooks/useImageSelector.d.ts.map +1 -1
  147. package/components/ImageSelector/hooks/useImageSelector.js +172 -168
  148. package/components/ImageSelector/types.d.ts +12 -4
  149. package/components/ImageSelector/types.d.ts.map +1 -1
  150. package/components/Label/Label.d.ts.map +1 -1
  151. package/components/Label/Label.js +31 -28
  152. package/components/Label/types.d.ts +6 -0
  153. package/components/Label/types.d.ts.map +1 -1
  154. package/components/PropertyValue/PropertyValue.d.ts.map +1 -1
  155. package/components/PropertyValue/PropertyValue.js +39 -37
  156. package/components/extended/mui/Accordion/Accordion.d.ts.map +1 -1
  157. package/components/extended/mui/Accordion/Accordion.js +67 -53
  158. package/components/extended/mui/Accordion/slots/AccordionEnum.d.ts +2 -0
  159. package/components/extended/mui/Accordion/slots/AccordionEnum.d.ts.map +1 -1
  160. package/components/extended/mui/Accordion/slots/AccordionEnum.js +1 -1
  161. package/components/extended/mui/Accordion/slots/AccordionSlots.d.ts +6 -0
  162. package/components/extended/mui/Accordion/slots/AccordionSlots.d.ts.map +1 -1
  163. package/components/extended/mui/Accordion/slots/AccordionSlots.js +22 -14
  164. package/components/extended/mui/Accordion/styles.d.ts.map +1 -1
  165. package/components/extended/mui/Accordion/styles.js +35 -8
  166. package/components/extended/mui/Accordion/types.d.ts +5 -0
  167. package/components/extended/mui/Accordion/types.d.ts.map +1 -1
  168. package/components/extended/mui/Tab/constants.d.ts +1 -1
  169. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
  170. package/components/hook-form/RHFNumberInput/RHFNumberInput.d.ts.map +1 -1
  171. package/components/hook-form/RHFNumberInput/RHFNumberInput.js +38 -36
  172. package/components/hook-form/RHFTextField/RHFTextField.d.ts.map +1 -1
  173. package/components/hook-form/RHFTextField/RHFTextField.js +48 -46
  174. package/index.js +519 -517
  175. package/package.json +6 -6
@@ -1,39 +1,52 @@
1
1
  import { styled as o } from "@mui/material/styles";
2
2
  import { Box as m } from "@mui/material";
3
3
  import { DynamicFormSlots as e } from "./DynamicFormEnum.js";
4
- import { componentStyles as r } from "../DynamicForm.styles.js";
5
- import { DYNAMIC_FORM_KEY_COMPONENT as t } from "../constants.js";
4
+ import { componentStyles as t } from "../DynamicForm.styles.js";
5
+ import { DYNAMIC_FORM_KEY_COMPONENT as r } from "../constants.js";
6
6
  import { RHFormProvider as i } from "../../hook-form/RHFormProvider/RHFormProvider.js";
7
- const n = o(i, {
8
- name: t,
7
+ import { Chip as n } from "../../Chip/Chip.js";
8
+ const a = o(i, {
9
+ name: r,
9
10
  slot: e.formProvider
10
- })(r?.formProvider), y = n, v = o("div", {
11
- name: t,
11
+ })(t?.formProvider), b = a, f = o("div", {
12
+ name: r,
12
13
  slot: e.contentRoot
13
- })(r?.contentRoot), F = o(m, {
14
- name: t,
14
+ })(t?.contentRoot), v = o(m, {
15
+ name: r,
15
16
  slot: e.fieldWrapper
16
- })(r?.fieldWrapper);
17
+ })(t?.fieldWrapper), D = o(m, {
18
+ name: r,
19
+ slot: e.submitFeedback
20
+ })(t?.submitFeedback), S = o(m, {
21
+ name: r,
22
+ slot: e.actionsRow
23
+ })(t?.actionsRow);
17
24
  o("div", {
18
- name: t,
25
+ name: r,
19
26
  slot: e.label
20
- })(r?.label);
27
+ })(t?.label);
21
28
  o("div", {
22
- name: t,
29
+ name: r,
23
30
  slot: e.helperText
24
- })(r?.helperText);
31
+ })(t?.helperText);
25
32
  o("div", {
26
- name: t,
33
+ name: r,
27
34
  slot: e.sectionDivider
28
- })(r?.sectionDivider);
29
- const f = o("div", {
30
- name: t,
35
+ })(t?.sectionDivider);
36
+ const h = o("div", {
37
+ name: r,
31
38
  slot: e.checkableListWrapper
32
- })(r?.checkableListWrapper);
39
+ })(t?.checkableListWrapper), k = o(n, {
40
+ name: r,
41
+ slot: e.fallbackEndIconChip
42
+ })(t?.fallbackEndIconChip);
33
43
  export {
34
- f as DynamicFormCheckableListWrapperStyled,
35
- v as DynamicFormContentRootStyled,
36
- F as DynamicFormFieldWrapperStyled,
37
- y as DynamicFormFormProviderStyled,
38
- n as DynamicFormFormProviderStyledBase
44
+ S as DynamicFormActionsRowStyled,
45
+ h as DynamicFormCheckableListWrapperStyled,
46
+ f as DynamicFormContentRootStyled,
47
+ k as DynamicFormFallbackEndIconChipStyled,
48
+ v as DynamicFormFieldWrapperStyled,
49
+ b as DynamicFormFormProviderStyled,
50
+ a as DynamicFormFormProviderStyledBase,
51
+ D as DynamicFormSubmitFeedbackStyled
39
52
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DynamicFormContent.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicForm/subcomponents/DynamicFormContent/DynamicFormContent.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAOrB,eAAO,MAAM,kBAAkB,oHAkE7B,CAAC"}
1
+ {"version":3,"file":"DynamicFormContent.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicForm/subcomponents/DynamicFormContent/DynamicFormContent.tsx"],"names":[],"mappings":"AAgBA,OAAO,EACL,uBAAuB,EACxB,MAAM,aAAa,CAAC;AASrB,eAAO,MAAM,kBAAkB,oHAiH7B,CAAC"}
@@ -1,62 +1,101 @@
1
- import { jsxs as N, jsx as o } from "@emotion/react/jsx-runtime";
2
- import { forwardRef as A } from "react";
3
- import n from "clsx";
4
- import { useModuleDictionary as R, useEnvironment as v } from "@m4l/core";
5
- import { TEST_PROP_ID as E } from "../../../../test/constants_no_mock.js";
6
- import { ActionsContainer as I } from "../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
7
- import { ActionFormIntro as O } from "../../../CommonActions/components/ActionFormIntro/ActionFormIntro.js";
8
- import { useDynamicFormConditionals as W } from "../../hooks/useDynamicFormConditionals/useDynamicFormConditionals.js";
9
- import { DYNAMIC_FORM_CLASSES as s } from "../../constants.js";
10
- import { DynamicFormContentRootStyled as x, DynamicFormFieldWrapperStyled as P } from "../../slots/DynamicFormSlots.js";
11
- import { useFieldsWithFetchedOptions as z } from "../../hooks/useFieldsWithFetchedOptions/useFieldsWithFetchedOptions.js";
12
- import { resolveFieldComponent as M } from "../../helpers/resolveFieldComponent/resolveFieldComponent.js";
13
- const T = A((m, a) => {
1
+ import { jsx as o, jsxs as A } from "@emotion/react/jsx-runtime";
2
+ import { forwardRef as E } from "react";
3
+ import a from "clsx";
4
+ import { useModuleDictionary as M, useEnvironment as N } from "@m4l/core";
5
+ import { NotificationCheckCircleFill as v, NotificationWarningFill as O } from "@m4l/icons";
6
+ import { Icon as W } from "@m4l/base";
7
+ import { TEST_PROP_ID as T } from "../../../../test/constants_no_mock.js";
8
+ import { ActionsContainer as P } from "../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
9
+ import { ActionFormIntro as k } from "../../../CommonActions/components/ActionFormIntro/ActionFormIntro.js";
10
+ import { PropertyValue as x } from "../../../PropertyValue/PropertyValue.js";
11
+ import { useDynamicFormConditionals as z } from "../../hooks/useDynamicFormConditionals/useDynamicFormConditionals.js";
12
+ import { resolveFieldInputLabel as L } from "../../helpers/resolveFieldInputLabel/resolveFieldInputLabel.js";
13
+ import { resolveFieldSymbol as g, resolveFieldMandatory as w } from "../../helpers/resolveFieldContractAliases.js";
14
+ import { DYNAMIC_FORM_DICTIONARY as c } from "../../dictionary.js";
15
+ import { DYNAMIC_FORM_CLASSES as l } from "../../constants.js";
16
+ import { DynamicFormSubmitFeedbackStyled as B, DynamicFormContentRootStyled as U, DynamicFormFieldWrapperStyled as Y, DynamicFormActionsRowStyled as j } from "../../slots/DynamicFormSlots.js";
17
+ import { useFieldsWithFetchedOptions as G } from "../../hooks/useFieldsWithFetchedOptions/useFieldsWithFetchedOptions.js";
18
+ import { resolveFieldComponent as V } from "../../helpers/resolveFieldComponent/resolveFieldComponent.js";
19
+ import { Chip as $ } from "../../../Chip/Chip.js";
20
+ const q = E((p, d) => {
14
21
  const {
15
- data: c,
16
- ownerState: p,
17
- currentSize: t,
18
- fieldWrapperClassName: l,
19
- dataTestId: d,
20
- coupled: f = !1,
21
- actionFormIntroProps: F,
22
- renderActions: e
23
- } = m, { getLabel: u } = R(), { host_static_assets: h, environment_assets: C, host_api_remote: _ } = v(), y = `${h}/${C}`, { visibleFields: D } = W(c), { fields: S } = z({ fields: D });
24
- return /* @__PURE__ */ N(
25
- x,
22
+ data: u,
23
+ currentSize: r,
24
+ fieldWrapperClassName: f,
25
+ dataTestId: F,
26
+ dataMeta: S,
27
+ coupled: s = !1,
28
+ actionFormIntroProps: y,
29
+ renderActions: n,
30
+ submitFeedbackStatus: e
31
+ } = p, { getLabel: i } = M(), { host_static_assets: h, environment_assets: C, host_api_remote: _ } = N(), b = `${h}/${C}`, { visibleFields: D } = z(u), { fields: I } = G({ fields: D }), R = !s && e ? /* @__PURE__ */ o(B, { children: /* @__PURE__ */ o(
32
+ $,
26
33
  {
27
- ref: a,
28
- className: n(s.contentRoot),
29
- ...process.env.NODE_ENV !== "production" ? { [E]: d } : {},
34
+ size: r,
35
+ label: i(
36
+ e === "success" ? c.SUBMIT_SUCCESS_MESSAGE : c.SUBMIT_ERROR_MESSAGE
37
+ ),
38
+ startIcon: /* @__PURE__ */ o(
39
+ W,
40
+ {
41
+ src: e === "success" ? /* @__PURE__ */ o(v, {}) : /* @__PURE__ */ o(O, {}),
42
+ color: e === "success" ? "chips.success.contained.color" : "chips.error.contained.color"
43
+ }
44
+ ),
45
+ color: e === "success" ? "success" : "error",
46
+ opacity: !0
47
+ }
48
+ ) }) : null;
49
+ return /* @__PURE__ */ A(
50
+ U,
51
+ {
52
+ ref: d,
53
+ className: a(l.contentRoot),
54
+ ...process.env.NODE_ENV !== "production" ? { [T]: F, "data-meta": S } : {},
30
55
  children: [
31
- S.map((r) => {
32
- const i = M(r, {
33
- size: t,
34
- getLabel: u,
35
- assetBasePath: y,
36
- hostApiRemote: _
56
+ R,
57
+ I.map((t) => {
58
+ if (typeof t.name != "string" || t.name.trim() === "")
59
+ return null;
60
+ const m = V(t, {
61
+ size: r,
62
+ getLabel: i,
63
+ assetBasePath: b,
64
+ hostApiRemote: _,
65
+ suppressLabel: !0
37
66
  });
38
- return i ? /* @__PURE__ */ o(
39
- P,
67
+ return m ? /* @__PURE__ */ o(
68
+ Y,
40
69
  {
41
- ownerState: p,
42
- className: n(l, s.fieldWrapper),
43
- children: i
70
+ ownerState: { semanticWidth: t.metadata?.semanticWidth },
71
+ className: a(f, l.fieldWrapper),
72
+ children: /* @__PURE__ */ o(
73
+ x,
74
+ {
75
+ property: L(t, i),
76
+ value: m,
77
+ isForm: !0,
78
+ mandatory: w(t),
79
+ symbol: g(t)
80
+ }
81
+ )
44
82
  },
45
- r.id
83
+ t.id
46
84
  ) : null;
47
85
  }),
48
- !f && /* @__PURE__ */ o(I, { children: e ? e() : /* @__PURE__ */ o(
49
- O,
86
+ !s && /* @__PURE__ */ o(j, { children: /* @__PURE__ */ o(P, { children: n ? n() : /* @__PURE__ */ o(
87
+ k,
50
88
  {
51
- size: t,
52
- ...F
89
+ size: r,
90
+ color: "default",
91
+ ...y
53
92
  }
54
- ) })
93
+ ) }) })
55
94
  ]
56
95
  }
57
96
  );
58
97
  });
59
- T.displayName = "DynamicFormContent";
98
+ q.displayName = "DynamicFormContent";
60
99
  export {
61
- T as DynamicFormContent
100
+ q as DynamicFormContent
62
101
  };
@@ -1,6 +1,7 @@
1
1
  import { Theme } from '@mui/material/styles';
2
2
  import { ReactNode } from 'react';
3
3
  import { Sizes } from '@m4l/styles';
4
+ import { SemanticWidthOptions } from '../PropertyValue/types';
4
5
  import { DynamicFormSlots } from './slots';
5
6
  import { DYNAMIC_FORM_KEY_COMPONENT } from './constants';
6
7
  import { M4LOverridesStyleRules } from '../../@types/augmentations';
@@ -15,6 +16,7 @@ import { RHFRadioGroupProps } from '../hook-form/RHFRadioGroup/types';
15
16
  import { RHFSelectProps } from '../hook-form/RHFSelect/types';
16
17
  import { RHFTextFieldProps } from '../hook-form/RHFTextField/types';
17
18
  import { BaseRHFProps } from '../../hocs/withRHFController/types';
19
+ import { ImageSelectorProps } from '../ImageSelector/types';
18
20
  /**
19
21
  * API contract type: FormMetadata
20
22
  */
@@ -22,36 +24,40 @@ export interface FormMetadata {
22
24
  id: number;
23
25
  name: string;
24
26
  version: number;
25
- labelForm: string;
26
- descriptionForm: string;
27
+ label: string | null;
28
+ description: string | null;
29
+ iconId?: string | null;
30
+ /** @deprecated Use `label`. */
31
+ labelForm?: string;
32
+ /** @deprecated Use `description`. */
33
+ descriptionForm?: string;
27
34
  }
28
35
  /**
29
- * Subset of `RHFCheckboxProps` allowed from the backend via `fieldType.rhfComponentProps`.
36
+ * Subset of `RHFCheckboxProps` allowed from the backend via `fieldType.componentProps`.
30
37
  * Visible label, mandatory state, and field helper text are **not** defined here; they come from
31
- * {@link Field} (`fieldLabel`, `isRequired`, `helperText`) and `resolveFieldInputLabel`, not from this payload.
38
+ * {@link Field} (`label`, `mandatory`, `helperMessage`) and `resolveFieldInputLabel`, not from this payload.
32
39
  */
33
40
  export type RHFCheckboxRHFComponentPropsFromBackend = Pick<RHFCheckboxProps, 'id' | 'htmlFor' | 'inlineText' | 'helperText' | 'error'>;
34
41
  /**
35
- * Subset of props accepted from the backend for the shared date-time range field via
36
- * `fieldType.rhfComponentProps`.
37
- * Visible label and field-level helper copy are **not** defined here; they come from {@link Field}
38
- * and `resolveFieldInputLabel`, not from this payload.
42
+ * Subset of props accepted from the backend for `RHFDateRangePicker` via `fieldType.componentProps`.
43
+ * Visible label and field-level helper copy are **not** defined here; they come from {@link Field} and
44
+ * `resolveFieldInputLabel`, not from this payload.
39
45
  */
40
46
  export type RHFDateTimeRangePickerRHFComponentPropsFromBackend = Pick<BaseRHFProps, 'name'> & Pick<DateTimeRangePickerProps, 'calendars' | 'compact' | 'openOnFocus' | 'readOnly' | 'timeDisplayVariant'>;
41
47
  /**
42
- * Subset of props accepted from the backend for `RHFDaysOfWeekPicker` via `fieldType.rhfComponentProps`.
48
+ * Subset of props accepted from the backend for `RHFDaysOfWeekPicker` via `fieldType.componentProps`.
43
49
  * Visible label and field-level helper copy are **not** defined here; they come from {@link Field} and
44
50
  * `resolveFieldInputLabel`, not from this payload.
45
51
  */
46
52
  export type RHFDaysOfWeekPickerRHFComponentPropsFromBackend = Pick<BaseRHFProps, 'name'> & Pick<DaysOfWeekPickerProps, 'disabledDays' | 'readOnly' | 'multiple'>;
47
53
  /**
48
- * Subset of `RHFNumberInputProps` allowed from the backend via `fieldType.rhfComponentProps`.
54
+ * Subset of `RHFNumberInputProps` allowed from the backend via `fieldType.componentProps`.
49
55
  * Visible label and field-level helper copy are **not** defined here; they come from {@link Field} and
50
56
  * `resolveFieldInputLabel`, not from this payload.
51
57
  */
52
58
  export type RHFNumberInputRHFComponentPropsFromBackend = Pick<RHFNumberInputProps, 'min' | 'max' | 'step' | 'shiftMultiplier' | 'defaultValue' | 'withDecimal' | 'readOnly' | 'error' | 'id' | 'placeholder'>;
53
59
  /**
54
- * Subset of `RHFRadioGroupProps` allowed from the backend via `fieldType.rhfComponentProps`.
60
+ * Subset of `RHFRadioGroupProps` allowed from the backend via `fieldType.componentProps`.
55
61
  * Visible label and field-level helper copy are **not** defined here; they come from {@link Field} and
56
62
  * `resolveFieldInputLabel`, not from this payload. **`options`**, **`getOptionLabel`**, and **`getOptionValue`**
57
63
  * are not taken from the API (options from `field.options` / fetched options; resolvers from the radio-group normalizer).
@@ -64,15 +70,15 @@ export type RHFRadioGroupRHFComponentPropsFromBackend = Pick<RHFRadioGroupProps<
64
70
  optionValuePath?: string;
65
71
  };
66
72
  /**
67
- * Subset of `RHFSelectProps` allowed from the backend via `fieldType.rhfComponentProps`.
73
+ * Subset of `RHFSelectProps` allowed from the backend via `fieldType.componentProps`.
68
74
  * Visible label and field-level helper copy are **not** defined here; they come from {@link Field} and
69
75
  * `resolveFieldInputLabel`, not from this payload.
70
76
  * **`options`** are not taken from the API (they come from `field.options` / fetched options). For multi-select,
71
- * use `isMultiple: true` in `rhfComponentProps` (not part of this pick); `multiple` on the payload is handled by the normalizer when valid.
77
+ * use `isMultiple: true` in `componentProps` (not part of this pick); `multiple` on the payload is handled by the normalizer when valid.
72
78
  */
73
79
  export type RHFSelectRHFComponentPropsFromBackend = Pick<RHFSelectProps<string | number, boolean | undefined>, 'id' | 'placeholder' | 'multiple'>;
74
80
  /**
75
- * Subset of `RHFTextFieldProps` allowed from the backend via `fieldType.rhfComponentProps`.
81
+ * Subset of `RHFTextFieldProps` allowed from the backend via `fieldType.componentProps`.
76
82
  * Visible label and field-level helper copy are **not** defined here; they come from {@link Field} and
77
83
  * `resolveFieldInputLabel`, not from this payload.
78
84
  * Does not pass `InputProps` from normalized output (controlled in code).
@@ -83,7 +89,7 @@ export type RHFTextFieldRHFComponentPropsFromBackend = Pick<RHFTextFieldProps, '
83
89
  endIcon?: string;
84
90
  };
85
91
  /**
86
- * DynamicForm autocomplete metadata accepted from the backend via `fieldType.rhfComponentProps`.
92
+ * DynamicForm autocomplete metadata accepted from the backend via `fieldType.componentProps`.
87
93
  * Visible label and field-level helper copy are **not** defined here; they come from {@link Field} and
88
94
  * `resolveFieldInputLabel`, not from this payload.
89
95
  */
@@ -100,29 +106,42 @@ export interface RHFAutocompleteRHFComponentPropsFromBackend {
100
106
  optionStartAdornmentIconPath?: string;
101
107
  optionStartAdornmentImagePath?: string;
102
108
  }
109
+ /**
110
+ * DynamicForm image-selector metadata accepted from the backend via `fieldType.componentProps`.
111
+ * Visible label and field-level helper copy are **not** defined here; they come from {@link Field} and
112
+ * `resolveFieldInputLabel`, not from this payload. Static `options` are taken from `field.options`, and
113
+ * async option loading is driven by `field.endpoint` / `field.endpointParams`.
114
+ */
115
+ export type RHFImageSelectorRHFComponentPropsFromBackend = Pick<ImageSelectorProps<unknown>, 'id' | 'presentationType' | 'imageSize' | 'maxColumns' | 'maxRows' | 'refetchOnOpen' | 'timeout' | 'resultField'> & {
116
+ optionLabelPath?: string;
117
+ optionImagePath?: string;
118
+ equalToValuePath?: string;
119
+ };
103
120
  /**
104
121
  * Output shape of `normalizeCheckableListPropsFromBackend` (whitelist): only JSON-safe props accepted for
105
- * `RHFCheckableList` from `field.fieldType.rhfComponentProps`. Raw `items` in `rhfComponentProps` and `size`
122
+ * `RHFCheckableList` from `field.fieldType.componentProps`. Raw `items` in `componentProps` and `size`
106
123
  * are not taken from the API; flat options are normalized from `field.options` into
107
124
  * `resolvedCheckableListItems` on the normalizer result. The normalizer also returns `resolvedLabel`,
108
125
  * `hasGroups`, and `resolvedSearchable` (see `NormalizedCheckableListPropsFromBackendResult`). Root UI props
109
126
  * such as `variant`, `loading`, `ariaLabel`, `ariaLabelledBy`, `className`, `dataTestId`, and `id` are not
110
- * read from `rhfComponentProps`; set them in application code if needed.
127
+ * read from `componentProps`; set them in application code if needed.
111
128
  */
112
129
  export type NormalizedRHFCheckableListPropsFromBackend = Pick<RHFCheckableListProps, 'groups' | 'searchable' | 'multiple' | 'selectAll' | 'groupable' | 'expandAllGroups' | 'itemRowHeight' | 'groupRowHeight' | 'width' | 'checkboxSize' | 'showCheckboxOnGroup' | 'indeterminateBehavior'>;
113
130
  /**
114
- * Loose backend payload shape accepted for `fieldType.rhfComponentProps` before each normalizer validates it.
131
+ * Loose backend payload shape accepted for `fieldType.componentProps` before each normalizer validates it.
115
132
  */
116
133
  export type DynamicFormBackendPropValue = unknown;
117
134
  /**
118
- * Combined type used by DynamicForm normalize helpers: JSON-safe props allowed under `fieldType.rhfComponentProps`.
135
+ * Combined type used by DynamicForm normalize helpers: JSON-safe props allowed under `fieldType.componentProps`.
119
136
  * It intentionally **excludes** control label/mandatory/helper messaging; those come from {@link Field} and dictionary
120
137
  * resolution (`resolveFieldInputLabel`), not from this object. Extra backend keys are tolerated at the type level
121
138
  * because each normalizer already whitelists supported keys and validates runtime value types before use.
122
139
  */
123
- export type combinatedRHFComponentsProps = Partial<RHFCheckboxRHFComponentPropsFromBackend> & Partial<RHFDateTimeRangePickerRHFComponentPropsFromBackend> & Partial<RHFDaysOfWeekPickerRHFComponentPropsFromBackend> & Partial<RHFNumberInputRHFComponentPropsFromBackend> & Partial<RHFRadioGroupRHFComponentPropsFromBackend> & Partial<RHFSelectRHFComponentPropsFromBackend> & Partial<RHFTextFieldRHFComponentPropsFromBackend> & Partial<RHFAutocompleteRHFComponentPropsFromBackend> & Partial<NormalizedRHFCheckableListPropsFromBackend> & {
140
+ export type CombinedFieldComponentPropsFromBackend = Partial<RHFCheckboxRHFComponentPropsFromBackend> & Partial<RHFDateTimeRangePickerRHFComponentPropsFromBackend> & Partial<RHFDaysOfWeekPickerRHFComponentPropsFromBackend> & Partial<RHFNumberInputRHFComponentPropsFromBackend> & Partial<RHFRadioGroupRHFComponentPropsFromBackend> & Partial<RHFSelectRHFComponentPropsFromBackend> & Partial<RHFTextFieldRHFComponentPropsFromBackend> & Partial<RHFAutocompleteRHFComponentPropsFromBackend> & Partial<RHFImageSelectorRHFComponentPropsFromBackend> & Partial<NormalizedRHFCheckableListPropsFromBackend> & {
124
141
  [key: string]: DynamicFormBackendPropValue;
125
142
  };
143
+ /** @deprecated Use `CombinedFieldComponentPropsFromBackend`. */
144
+ export type combinatedRHFComponentsProps = CombinedFieldComponentPropsFromBackend;
126
145
  /**
127
146
  * API contract type: FieldType
128
147
  */
@@ -130,7 +149,9 @@ export interface FieldType {
130
149
  id: string;
131
150
  name: string;
132
151
  componentId: string;
133
- rhfComponentProps?: combinatedRHFComponentsProps;
152
+ componentProps?: CombinedFieldComponentPropsFromBackend;
153
+ /** @deprecated Use `componentProps`. */
154
+ rhfComponentProps?: CombinedFieldComponentPropsFromBackend;
134
155
  supportsOptions: boolean;
135
156
  supportsValidation: boolean;
136
157
  }
@@ -168,7 +189,30 @@ export interface FieldOption {
168
189
  isDefault: boolean;
169
190
  displayOrder: number;
170
191
  }
171
- export type FieldCurrentValue = number | string | number[] | string[];
192
+ export type FieldCurrentValue = boolean | number | string | number[] | string[];
193
+ /**
194
+ * Optional field-level metadata carried inside each field entry.
195
+ * Drives layout hints resolved by DynamicFormContent (e.g. flex-wrap item sizing).
196
+ */
197
+ export interface FieldMetadata {
198
+ /**
199
+ * Semantic layout width for the field wrapper in the form flex-wrap container.
200
+ * Maps to the same `SemanticWidthOptions` used by `PropertyValue`, so field wrappers
201
+ * share the same preferred widths as ContainerFlow-style semantic items while still
202
+ * allowing rows to redistribute leftover space more naturally.
203
+ * When `null` or absent the field wrapper spans the full available width.
204
+ */
205
+ semanticWidth?: SemanticWidthOptions;
206
+ }
207
+ /**
208
+ * API contract type: measurement unit attached to a field (API key `magnitude_unit`).
209
+ * `symbol` is forwarded to the field label through Label's `symbol` prop and rendered
210
+ * in parentheses after the label text (e.g. `Temperatura (°C)`).
211
+ */
212
+ export interface MagnitudeUnit {
213
+ id: string;
214
+ symbol: string | null;
215
+ }
172
216
  /**
173
217
  * API contract type: dynamic form field definition (metadata, value, validation, visibility).
174
218
  */
@@ -202,10 +246,19 @@ export interface Field {
202
246
  * Query filter field name when the user types free text for the option label (`o1` in `f`).
203
247
  */
204
248
  endpointFilterFieldLabel?: string;
249
+ /**
250
+ * Measurement unit for the field (API key `magnitude_unit`). When `symbol` is a
251
+ * non-empty string it is shown in parentheses after the label; falsy values omit it.
252
+ */
253
+ magnitudeUnit?: MagnitudeUnit | null;
205
254
  /** Optional help text shown below the field. */
206
- helperText: string | null;
255
+ helperMessage: string | null;
256
+ /** @deprecated Use `helperMessage`. */
257
+ helperText?: string | null;
207
258
  /** When true, the field is required and validation schema enforces it when visible. */
208
- isRequired: boolean;
259
+ mandatory: boolean;
260
+ /** @deprecated Use `mandatory`. */
261
+ isRequired?: boolean;
209
262
  /** Placeholder for text/input-like components. */
210
263
  placeholder: string | null;
211
264
  /** Backend property identifier (e.g. for persistence or API mapping). */
@@ -215,13 +268,13 @@ export interface Field {
215
268
  /** Current value from the API. */
216
269
  currentValue: FieldCurrentValue | null;
217
270
  /** Fallback value when currentValue is null; used by resolveInitialValue. */
218
- defaultValue: string | null;
271
+ defaultValue: boolean | number | string | null;
219
272
  /** Order of the field in the form; visible fields are sorted by this for rendering. */
220
273
  displayOrder: number;
221
274
  /** Initial visibility from API for non-conditional fields. */
222
- isVisible: boolean;
275
+ isVisible: boolean | null;
223
276
  /** Visibility reason from API (for debugging/traceability). */
224
- visibilityReason: string;
277
+ visibilityReason: string | null;
225
278
  /** When true, visibility is controlled by conditional rules; otherwise by isVisible. */
226
279
  isConditional: boolean;
227
280
  /** Server-side validation errors, if any (e.g. from a previous submit). */
@@ -230,9 +283,21 @@ export interface Field {
230
283
  * Visible label text when the API sends a non-empty string; otherwise `resolveFieldInputLabel`
231
284
  * uses `dynamic_form.label_not_found_message` with the field id.
232
285
  */
233
- fieldLabel: string;
286
+ label: string | null;
287
+ /** @deprecated Use `label`. */
288
+ fieldLabel?: string;
234
289
  /** Dictionary key for the field description (i18n). */
235
- fieldDescription: string;
290
+ description: string | null;
291
+ /** @deprecated Use `description`. */
292
+ fieldDescription?: string;
293
+ /**
294
+ * Optional field-level metadata from the API (e.g. `{ semanticWidth: 'bigName' }`).
295
+ * `metadata.semanticWidth` drives the preferred flex width in `DynamicFormContent`,
296
+ * using the same semantic catalog as `PropertyValue` while allowing rows to redistribute
297
+ * remaining space more naturally.
298
+ * When `null` or absent the field wrapper defaults to full available width.
299
+ */
300
+ metadata?: FieldMetadata | null;
236
301
  }
237
302
  /**
238
303
  * API contract type: ConditionalRuleOperator
@@ -280,8 +345,8 @@ export interface FormInstance {
280
345
  name: string | null;
281
346
  createdAt: string;
282
347
  updatedAt: string;
283
- resourceTypeId: string;
284
- resourceSerialId: string;
348
+ resourceTypeId: string | null;
349
+ resourceSerialId: string | null;
285
350
  }
286
351
  /**
287
352
  * API contract type: DynamicFormApiResponse
@@ -289,9 +354,21 @@ export interface FormInstance {
289
354
  export interface DynamicFormApiResponse {
290
355
  form: FormMetadata;
291
356
  fields: Field[];
292
- instance: FormInstance;
357
+ instance: FormInstance | null;
293
358
  conditionalRules: ConditionalRule[];
294
359
  }
360
+ /**
361
+ * Submit strategy for the decoupled DynamicForm.
362
+ * - `'form'`: single request with the whole payload to `outputEndpoint` (current default behavior).
363
+ * - `'perField'`: one request per field to `forms/instances/{instanceId}/fields/{fieldId}/values`,
364
+ * all executed concurrently via `Promise.all`. Transitional mode while the backend does not
365
+ * support saving the complete form in a single endpoint.
366
+ */
367
+ export type DynamicFormSubmitMode = 'form' | 'perField';
368
+ /**
369
+ * Visual feedback state shown after a decoupled DynamicForm submit attempt.
370
+ */
371
+ export type DynamicFormSubmitFeedbackStatus = 'success' | 'error';
295
372
  /**
296
373
  * Base props shared by DynamicForm in both coupled and decoupled modes.
297
374
  */
@@ -312,10 +389,19 @@ interface DynamicFormPropsBase {
312
389
  * Output endpoint for submitting form data.
313
390
  */
314
391
  outputEndpoint?: string;
392
+ /**
393
+ * Submit strategy. `'form'` (default) sends one request to `outputEndpoint`;
394
+ * `'perField'` sends one POST per field to `forms/instances/{instanceId}/fields/{fieldId}/values`
395
+ * concurrently (`Promise.all`). Per-field mode requires a resolvable instance id
396
+ * (`formInstanceId` prop or `instance.id` from the loaded form data).
397
+ * Only used when coupled is false (decoupled mode).
398
+ */
399
+ submitMode?: DynamicFormSubmitMode;
315
400
  /**
316
401
  * Function to format data received from the input endpoint.
402
+ * May return the already-typed DynamicForm contract or a plain record.
317
403
  */
318
- formatInputData?: (data: Record<string, unknown>) => Record<string, unknown>;
404
+ formatInputData?: (data: Record<string, unknown>) => Record<string, unknown> | DynamicFormApiResponse;
319
405
  /**
320
406
  * Function to format data before sending to the output endpoint.
321
407
  */
@@ -340,6 +426,12 @@ interface DynamicFormPropsBase {
340
426
  * Test ID for QA.
341
427
  */
342
428
  dataTestId?: string;
429
+ /**
430
+ * Development-only metadata string rendered as a `data-meta` attribute on the form content
431
+ * root. Intended for debugging which form/instance a rendered DynamicForm belongs to.
432
+ * Not rendered in production builds (same gating as `dataTestId`).
433
+ */
434
+ dataMeta?: string;
343
435
  /**
344
436
  * Additional CSS class for each field wrapper.
345
437
  */
@@ -433,13 +525,14 @@ export type DynamicFormRef = RHFormProviderRef<DynamicFormValues>;
433
525
  */
434
526
  export interface DynamicFormContentProps {
435
527
  data: DynamicFormApiResponse;
436
- ownerState: DynamicFormOwnerState;
437
528
  currentSize: 'small' | 'medium';
438
529
  fieldWrapperClassName?: string;
439
530
  dataTestId?: string;
531
+ dataMeta?: string;
440
532
  coupled?: boolean;
441
533
  actionFormIntroProps?: Partial<DynamicFormProps['actionFormIntroProps']>;
442
534
  renderActions?: DynamicFormProps['renderActions'];
535
+ submitFeedbackStatus?: DynamicFormSubmitFeedbackStatus | null;
443
536
  }
444
537
  export {};
445
538
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/DynamicForm/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,K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KAAK,CACN,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEvE;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,0BAA0B,EAAE,OAAO,CAAC;CACrC;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;AAGlE;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,sBAAsB,CAAC;IAC7B,UAAU,EAAE,qBAAqB,CAAC;IAClC,WAAW,EAAE,OAAO,GAAG,QAAQ,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oBAAoB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,CAAC,CAAC;IACzE,aAAa,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;CACnD"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/DynamicForm/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EACL,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,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C;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,sBAAsB,CACpD,oBAAoB,EACpB,OAAO,0BAA0B,EACjC,KAAK,CACN,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEvE;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,0BAA0B,EAAE,OAAO,CAAC;CACrC;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;AAGlE;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,sBAAsB,CAAC;IAC7B,WAAW,EAAE,OAAO,GAAG,QAAQ,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oBAAoB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,CAAC,CAAC;IACzE,aAAa,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAClD,oBAAoB,CAAC,EAAE,+BAA+B,GAAG,IAAI,CAAC;CAC/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"ImageSelector.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/ImageSelector/ImageSelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,GAAG,EACJ,MAAM,OAAO,CAAC;AAWf,OAAO,EAEL,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAkPjB,eAAO,MAAM,aAAa,EAAyC,CACjE,CAAC,GAAG,OAAO,EAEX,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;CAC9B,KACE,GAAG,CAAC,OAAO,CAAC"}
1
+ {"version":3,"file":"ImageSelector.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/ImageSelector/ImageSelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,GAAG,EACJ,MAAM,OAAO,CAAC;AAWf,OAAO,EAEL,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAoPjB,eAAO,MAAM,aAAa,EAAyC,CACjE,CAAC,GAAG,OAAO,EAEX,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;CAC9B,KACE,GAAG,CAAC,OAAO,CAAC"}