@gravity-ui/dynamic-forms 5.19.1 → 5.21.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 (1035) hide show
  1. package/build/cjs/lib/core/components/Form/DynamicField.js +3 -0
  2. package/build/cjs/lib/core/components/View/DynamicView.js +3 -0
  3. package/build/cjs/lib/core/helpers.d.ts +3 -1
  4. package/build/cjs/lib/core/helpers.js +27 -1
  5. package/build/cjs/lib/unstable/core/SchemaRenderer/SchemaRenderer.js +3 -3
  6. package/build/cjs/lib/unstable/core/SchemaRendererNode/SchemaRendererNode.d.ts +11 -0
  7. package/build/cjs/lib/unstable/core/SchemaRendererNode/SchemaRendererNode.js +131 -0
  8. package/build/cjs/lib/unstable/core/SchemaRendererNode/index.d.ts +3 -0
  9. package/build/cjs/lib/unstable/core/SchemaRendererNode/index.js +8 -0
  10. package/build/cjs/lib/unstable/core/SchemaRendererNode/types.d.ts +3 -0
  11. package/build/cjs/lib/unstable/core/SchemaRendererNode/utils.d.ts +25 -0
  12. package/build/cjs/lib/unstable/core/SchemaRendererNode/utils.js +162 -0
  13. package/build/cjs/lib/unstable/core/constants.d.ts +12 -1
  14. package/build/cjs/lib/unstable/core/constants.js +22 -10
  15. package/build/cjs/lib/unstable/core/index.d.ts +6 -3
  16. package/build/cjs/lib/unstable/core/index.js +18 -6
  17. package/build/cjs/lib/unstable/core/types/components.d.ts +21 -21
  18. package/build/cjs/lib/unstable/core/types/config.d.ts +28 -27
  19. package/build/cjs/lib/unstable/core/types/helpers.d.ts +22 -17
  20. package/build/cjs/lib/unstable/core/types/index.d.ts +1 -0
  21. package/build/cjs/lib/unstable/core/types/jsl-errors.d.ts +105 -0
  22. package/build/cjs/lib/unstable/core/types/schema.d.ts +63 -164
  23. package/build/cjs/lib/unstable/core/types/validation.d.ts +30 -32
  24. package/build/cjs/lib/unstable/core/useSchemaRenderer/constants.d.ts +1 -1
  25. package/build/cjs/lib/unstable/core/useSchemaRenderer/constants.js +2 -2
  26. package/build/cjs/lib/unstable/core/useSchemaRenderer/index.d.ts +3 -3
  27. package/build/cjs/lib/unstable/core/useSchemaRenderer/index.js +3 -6
  28. package/build/cjs/lib/unstable/core/useSchemaRenderer/types/index.d.ts +4 -0
  29. package/build/cjs/lib/unstable/core/useSchemaRenderer/types/index.js +7 -0
  30. package/build/cjs/lib/unstable/core/useSchemaRenderer/types/patches.d.ts +21 -0
  31. package/build/cjs/lib/unstable/core/useSchemaRenderer/types/state.d.ts +34 -0
  32. package/build/cjs/lib/unstable/core/useSchemaRenderer/types/subscription.d.ts +13 -0
  33. package/build/cjs/lib/unstable/core/useSchemaRenderer/types/validation.d.ts +10 -0
  34. package/build/cjs/lib/unstable/core/useSchemaRenderer/useSchemaRenderer.d.ts +7 -28
  35. package/build/cjs/lib/unstable/core/useSchemaRenderer/useSchemaRenderer.js +95 -69
  36. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-dispatch.d.ts +3 -0
  37. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-dispatch.js +54 -0
  38. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-run-validate.d.ts +2 -0
  39. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-run-validate.js +19 -0
  40. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-schema-root-node.d.ts +11 -0
  41. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-schema-root-node.js +136 -0
  42. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-subscribe.d.ts +6 -0
  43. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-subscribe.js +63 -0
  44. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-validate.d.ts +3 -14
  45. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-validate.js +69 -48
  46. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/index.d.ts +3 -1
  47. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/index.js +7 -3
  48. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/parse-errors.d.ts +14 -0
  49. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/parse-errors.js +338 -0
  50. package/build/cjs/lib/unstable/core/useSchemaRendererState/index.d.ts +1 -0
  51. package/build/cjs/lib/unstable/core/useSchemaRendererState/index.js +5 -0
  52. package/build/cjs/lib/unstable/core/useSchemaRendererState/useSchemaRendererState.d.ts +9 -0
  53. package/build/cjs/lib/unstable/core/useSchemaRendererState/useSchemaRendererState.js +62 -0
  54. package/build/cjs/lib/unstable/core/useSchemaRendererTools/index.d.ts +1 -0
  55. package/build/cjs/lib/unstable/core/useSchemaRendererTools/index.js +5 -0
  56. package/build/cjs/lib/unstable/core/useSchemaRendererTools/useSchemaRendererTools.d.ts +8 -0
  57. package/build/cjs/lib/unstable/core/useSchemaRendererTools/useSchemaRendererTools.js +19 -0
  58. package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/external-errors.d.ts +18 -0
  59. package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/external-errors.js +38 -0
  60. package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/index.d.ts +3 -0
  61. package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/index.js +11 -0
  62. package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/schema-patch.d.ts +12 -0
  63. package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/schema-patch.js +175 -0
  64. package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/user-context.d.ts +9 -0
  65. package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/user-context.js +17 -0
  66. package/build/cjs/lib/unstable/core/utils/common.d.ts +36 -25
  67. package/build/cjs/lib/unstable/core/utils/common.js +46 -108
  68. package/build/cjs/lib/unstable/core/utils/definers.d.ts +58 -0
  69. package/build/cjs/lib/unstable/core/utils/definers.js +9 -0
  70. package/build/cjs/lib/unstable/core/utils/index.d.ts +1 -0
  71. package/build/cjs/lib/unstable/core/utils/index.js +1 -0
  72. package/build/cjs/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.d.ts +2 -0
  73. package/build/cjs/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.js +13 -6
  74. package/build/cjs/lib/unstable/kit/components/CopyButton/CopyButton.css +9 -0
  75. package/build/cjs/lib/unstable/kit/components/CopyButton/CopyButton.d.ts +7 -0
  76. package/build/cjs/lib/unstable/kit/components/CopyButton/CopyButton.js +18 -0
  77. package/build/cjs/lib/unstable/kit/components/CopyButton/index.d.ts +1 -0
  78. package/build/cjs/lib/unstable/kit/components/CopyButton/index.js +5 -0
  79. package/build/cjs/lib/unstable/kit/components/EmptyEntityValue/EmptyEntityValue.d.ts +2 -0
  80. package/build/cjs/lib/unstable/kit/components/EmptyEntityValue/EmptyEntityValue.js +11 -0
  81. package/build/cjs/lib/unstable/kit/components/EmptyEntityValue/index.d.ts +1 -0
  82. package/build/cjs/lib/unstable/kit/components/EmptyEntityValue/index.js +5 -0
  83. package/build/cjs/lib/unstable/kit/components/EntityContainer/EntityContainer.css +22 -0
  84. package/build/cjs/lib/unstable/kit/components/EntityContainer/EntityContainer.d.ts +8 -0
  85. package/build/cjs/lib/unstable/kit/components/EntityContainer/EntityContainer.js +14 -0
  86. package/build/cjs/lib/unstable/kit/components/EntityContainer/index.d.ts +1 -0
  87. package/build/cjs/lib/unstable/kit/components/EntityContainer/index.js +5 -0
  88. package/build/cjs/lib/unstable/kit/components/EntityError/EntityError.css +3 -0
  89. package/build/cjs/lib/unstable/kit/components/EntityError/EntityError.d.ts +6 -0
  90. package/build/cjs/lib/unstable/kit/components/EntityError/EntityError.js +15 -0
  91. package/build/cjs/lib/unstable/kit/components/EntityError/index.d.ts +1 -0
  92. package/build/cjs/lib/unstable/kit/components/EntityError/index.js +5 -0
  93. package/build/cjs/lib/unstable/kit/components/LayoutContainer/LayoutContainer.css +11 -0
  94. package/build/cjs/lib/unstable/kit/components/LayoutContainer/LayoutContainer.d.ts +7 -0
  95. package/build/cjs/lib/unstable/kit/components/LayoutContainer/LayoutContainer.js +13 -0
  96. package/build/cjs/lib/unstable/kit/components/LayoutContainer/index.d.ts +1 -0
  97. package/build/cjs/lib/unstable/kit/components/LayoutContainer/index.js +5 -0
  98. package/build/cjs/lib/unstable/kit/components/LongValue/LongValue.css +19 -0
  99. package/build/cjs/lib/unstable/kit/components/LongValue/LongValue.d.ts +7 -0
  100. package/build/cjs/lib/unstable/kit/components/LongValue/LongValue.js +42 -0
  101. package/build/cjs/lib/unstable/kit/components/LongValue/index.d.ts +1 -0
  102. package/build/cjs/lib/unstable/kit/components/LongValue/index.js +5 -0
  103. package/build/cjs/lib/unstable/kit/components/MonacoContainer/MonacoContainer.css +21 -0
  104. package/build/cjs/lib/unstable/kit/components/MonacoContainer/MonacoContainer.d.ts +12 -0
  105. package/build/cjs/lib/unstable/kit/components/MonacoContainer/MonacoContainer.js +21 -0
  106. package/build/cjs/lib/unstable/kit/components/MonacoContainer/index.d.ts +1 -0
  107. package/build/cjs/lib/unstable/kit/components/MonacoContainer/index.js +5 -0
  108. package/build/cjs/lib/unstable/kit/components/index.d.ts +7 -1
  109. package/build/cjs/lib/unstable/kit/components/index.js +15 -3
  110. package/build/cjs/lib/unstable/kit/constants/common.d.ts +2 -0
  111. package/build/cjs/lib/unstable/kit/constants/common.js +5 -0
  112. package/build/cjs/lib/unstable/kit/constants/config.d.ts +461 -49
  113. package/build/cjs/lib/unstable/kit/constants/config.js +202 -41
  114. package/build/cjs/lib/unstable/kit/constants/index.d.ts +1 -0
  115. package/build/cjs/lib/unstable/kit/constants/index.js +4 -1
  116. package/build/cjs/lib/unstable/kit/entities/Alert/Alert.d.ts +8 -0
  117. package/build/cjs/lib/unstable/kit/entities/Alert/Alert.js +27 -0
  118. package/build/cjs/lib/unstable/kit/entities/Alert/index.d.ts +1 -0
  119. package/build/cjs/lib/unstable/kit/entities/Alert/index.js +5 -0
  120. package/build/cjs/lib/unstable/kit/entities/ArrayEntity/ArrayEntity.css +3 -0
  121. package/build/cjs/lib/unstable/kit/entities/ArrayEntity/ArrayEntity.d.ts +6 -0
  122. package/build/cjs/lib/unstable/kit/entities/ArrayEntity/ArrayEntity.js +57 -0
  123. package/build/cjs/lib/unstable/kit/entities/ArrayEntity/index.d.ts +1 -0
  124. package/build/cjs/lib/unstable/kit/entities/ArrayEntity/index.js +5 -0
  125. package/build/cjs/lib/unstable/kit/entities/ArrayTable/ArrayTable.css +45 -0
  126. package/build/cjs/lib/unstable/kit/entities/ArrayTable/ArrayTable.d.ts +7 -0
  127. package/build/cjs/lib/unstable/kit/entities/ArrayTable/ArrayTable.js +102 -0
  128. package/build/cjs/lib/unstable/kit/entities/ArrayTable/index.d.ts +1 -0
  129. package/build/cjs/lib/unstable/kit/entities/ArrayTable/index.js +5 -0
  130. package/build/cjs/lib/unstable/kit/entities/DotValue/DotValue.d.ts +4 -0
  131. package/build/cjs/lib/unstable/kit/entities/DotValue/DotValue.js +33 -0
  132. package/build/cjs/lib/unstable/kit/entities/DotValue/index.d.ts +1 -0
  133. package/build/cjs/lib/unstable/kit/entities/DotValue/index.js +5 -0
  134. package/build/cjs/lib/unstable/kit/entities/FewOfNested/FewOfNested.css +17 -0
  135. package/build/cjs/lib/unstable/kit/entities/FewOfNested/FewOfNested.d.ts +7 -0
  136. package/build/cjs/lib/unstable/kit/entities/FewOfNested/FewOfNested.js +73 -0
  137. package/build/cjs/lib/unstable/kit/entities/FewOfNested/index.d.ts +1 -0
  138. package/build/cjs/lib/unstable/kit/entities/FewOfNested/index.js +5 -0
  139. package/build/cjs/lib/unstable/kit/entities/Label/Label.d.ts +8 -0
  140. package/build/cjs/lib/unstable/kit/entities/Label/Label.js +30 -0
  141. package/build/cjs/lib/unstable/kit/entities/Label/index.d.ts +1 -0
  142. package/build/cjs/lib/unstable/kit/entities/Label/index.js +5 -0
  143. package/build/cjs/lib/unstable/kit/entities/Monaco/Monaco.css +6 -0
  144. package/build/cjs/lib/unstable/kit/entities/Monaco/Monaco.d.ts +7 -0
  145. package/build/cjs/lib/unstable/kit/entities/Monaco/Monaco.js +80 -0
  146. package/build/cjs/lib/unstable/kit/entities/Monaco/index.d.ts +1 -0
  147. package/build/cjs/lib/unstable/kit/entities/Monaco/index.js +5 -0
  148. package/build/cjs/lib/unstable/kit/entities/ObjectEntity/ObjectEntity.d.ts +6 -0
  149. package/build/cjs/lib/unstable/kit/entities/ObjectEntity/ObjectEntity.js +16 -0
  150. package/build/cjs/lib/unstable/kit/entities/ObjectEntity/index.d.ts +1 -0
  151. package/build/cjs/lib/unstable/kit/entities/ObjectEntity/index.js +5 -0
  152. package/build/cjs/lib/unstable/kit/entities/ObjectInline/ObjectInline.css +11 -0
  153. package/build/cjs/lib/unstable/kit/entities/ObjectInline/ObjectInline.d.ts +7 -0
  154. package/build/cjs/lib/unstable/kit/entities/ObjectInline/ObjectInline.js +26 -0
  155. package/build/cjs/lib/unstable/kit/entities/ObjectInline/index.d.ts +1 -0
  156. package/build/cjs/lib/unstable/kit/entities/ObjectInline/index.js +5 -0
  157. package/build/cjs/lib/unstable/kit/entities/OneOfNested/OneOfNested.css +17 -0
  158. package/build/cjs/lib/unstable/kit/entities/OneOfNested/OneOfNested.d.ts +11 -0
  159. package/build/cjs/lib/unstable/kit/entities/OneOfNested/OneOfNested.js +70 -0
  160. package/build/cjs/lib/unstable/kit/entities/OneOfNested/index.d.ts +1 -0
  161. package/build/cjs/lib/unstable/kit/entities/OneOfNested/index.js +5 -0
  162. package/build/cjs/lib/unstable/kit/entities/TextContent/TextContent.css +19 -0
  163. package/build/cjs/lib/unstable/kit/entities/TextContent/TextContent.d.ts +8 -0
  164. package/build/cjs/lib/unstable/kit/entities/TextContent/TextContent.js +31 -0
  165. package/build/cjs/lib/unstable/kit/entities/TextContent/index.d.ts +1 -0
  166. package/build/cjs/lib/unstable/kit/entities/TextContent/index.js +5 -0
  167. package/build/cjs/lib/unstable/kit/entities/index.d.ts +11 -0
  168. package/build/cjs/lib/unstable/kit/entities/index.js +25 -0
  169. package/build/cjs/lib/unstable/kit/form-entities/CheckboxGroupInput/CheckboxGroupInput.css +9 -0
  170. package/build/cjs/lib/unstable/kit/form-entities/CheckboxGroupInput/CheckboxGroupInput.d.ts +8 -0
  171. package/build/cjs/lib/unstable/kit/form-entities/CheckboxGroupInput/CheckboxGroupInput.js +42 -0
  172. package/build/cjs/lib/unstable/kit/form-entities/CheckboxGroupInput/index.d.ts +1 -0
  173. package/build/cjs/lib/unstable/kit/form-entities/CheckboxGroupInput/index.js +5 -0
  174. package/build/cjs/lib/unstable/kit/form-entities/CheckboxInput/CheckboxInput.css +11 -0
  175. package/build/cjs/lib/unstable/kit/form-entities/CheckboxInput/CheckboxInput.d.ts +5 -0
  176. package/build/cjs/lib/unstable/kit/form-entities/CheckboxInput/CheckboxInput.js +20 -0
  177. package/build/cjs/lib/unstable/kit/form-entities/CheckboxInput/index.d.ts +1 -0
  178. package/build/cjs/lib/unstable/kit/form-entities/CheckboxInput/index.js +5 -0
  179. package/build/cjs/lib/unstable/kit/form-entities/ColorPickerInput/ColorPickerInput.css +6 -0
  180. package/build/cjs/lib/unstable/kit/form-entities/ColorPickerInput/ColorPickerInput.d.ts +5 -0
  181. package/build/cjs/lib/unstable/kit/form-entities/ColorPickerInput/ColorPickerInput.js +25 -0
  182. package/build/cjs/lib/unstable/kit/form-entities/ColorPickerInput/index.d.ts +1 -0
  183. package/build/cjs/lib/unstable/kit/form-entities/ColorPickerInput/index.js +5 -0
  184. package/build/cjs/lib/unstable/kit/form-entities/DateInput/DateInput.css +3 -0
  185. package/build/cjs/lib/unstable/kit/form-entities/DateInput/DateInput.d.ts +6 -0
  186. package/build/cjs/lib/unstable/kit/form-entities/DateInput/DateInput.js +47 -0
  187. package/build/cjs/lib/unstable/kit/form-entities/FileInput/FileInput.d.ts +6 -0
  188. package/build/cjs/lib/unstable/kit/form-entities/FileInput/FileInput.js +53 -0
  189. package/build/cjs/lib/unstable/kit/form-entities/FileInput/index.d.ts +1 -0
  190. package/build/cjs/lib/unstable/kit/form-entities/FileInput/index.js +5 -0
  191. package/build/cjs/lib/unstable/kit/form-entities/MultiSelectInput/MultiSelectInput.d.ts +7 -0
  192. package/build/cjs/lib/unstable/kit/form-entities/MultiSelectInput/MultiSelectInput.js +38 -0
  193. package/build/cjs/lib/unstable/kit/form-entities/MultiSelectInput/index.d.ts +1 -0
  194. package/build/cjs/lib/unstable/kit/form-entities/MultiSelectInput/index.js +5 -0
  195. package/build/cjs/lib/unstable/kit/form-entities/NumberInput/NumberInput.css +3 -0
  196. package/build/cjs/lib/unstable/kit/form-entities/NumberInput/NumberInput.d.ts +5 -0
  197. package/build/cjs/lib/unstable/kit/form-entities/NumberInput/NumberInput.js +16 -0
  198. package/build/cjs/lib/unstable/kit/form-entities/NumberInput/index.d.ts +1 -0
  199. package/build/cjs/lib/unstable/kit/form-entities/NumberInput/index.js +5 -0
  200. package/build/cjs/lib/unstable/kit/form-entities/NumberWithScaleInput/NumberWithScaleInput.css +6 -0
  201. package/build/cjs/lib/unstable/kit/form-entities/NumberWithScaleInput/NumberWithScaleInput.d.ts +11 -0
  202. package/build/cjs/lib/unstable/kit/form-entities/NumberWithScaleInput/NumberWithScaleInput.js +76 -0
  203. package/build/cjs/lib/unstable/kit/form-entities/NumberWithScaleInput/index.d.ts +1 -0
  204. package/build/cjs/lib/unstable/kit/form-entities/NumberWithScaleInput/index.js +5 -0
  205. package/build/cjs/lib/unstable/kit/form-entities/PasswordInput/PasswordInput.css +3 -0
  206. package/build/cjs/lib/unstable/kit/form-entities/PasswordInput/PasswordInput.d.ts +5 -0
  207. package/build/cjs/lib/unstable/kit/form-entities/PasswordInput/PasswordInput.js +16 -0
  208. package/build/cjs/lib/unstable/kit/form-entities/PasswordInput/index.d.ts +1 -0
  209. package/build/cjs/lib/unstable/kit/form-entities/PasswordInput/index.js +5 -0
  210. package/build/cjs/lib/unstable/kit/form-entities/RadioGroupInput/RadioGroupInput.css +13 -0
  211. package/build/cjs/lib/unstable/kit/form-entities/RadioGroupInput/RadioGroupInput.d.ts +7 -0
  212. package/build/cjs/lib/unstable/kit/form-entities/RadioGroupInput/RadioGroupInput.js +24 -0
  213. package/build/cjs/lib/unstable/kit/form-entities/RadioGroupInput/index.d.ts +1 -0
  214. package/build/cjs/lib/unstable/kit/form-entities/RadioGroupInput/index.js +5 -0
  215. package/build/cjs/lib/unstable/kit/form-entities/RangeInput/RangeInput.css +8 -0
  216. package/build/cjs/lib/unstable/kit/form-entities/RangeInput/RangeInput.d.ts +6 -0
  217. package/build/cjs/lib/unstable/kit/form-entities/RangeInput/RangeInput.js +71 -0
  218. package/build/cjs/lib/unstable/kit/form-entities/RangeInput/index.d.ts +1 -0
  219. package/build/cjs/lib/unstable/kit/form-entities/RangeInput/index.js +5 -0
  220. package/build/cjs/lib/unstable/kit/form-entities/RangeSliderInput/RangeSliderInput.d.ts +6 -0
  221. package/build/cjs/lib/unstable/kit/form-entities/RangeSliderInput/RangeSliderInput.js +35 -0
  222. package/build/cjs/lib/unstable/kit/form-entities/RangeSliderInput/index.d.ts +1 -0
  223. package/build/cjs/lib/unstable/kit/form-entities/RangeSliderInput/index.js +5 -0
  224. package/build/cjs/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/SegmentedRadioGroupInput.css +6 -0
  225. package/build/cjs/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/SegmentedRadioGroupInput.d.ts +7 -0
  226. package/build/cjs/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/SegmentedRadioGroupInput.js +29 -0
  227. package/build/cjs/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/index.d.ts +1 -0
  228. package/build/cjs/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/index.js +5 -0
  229. package/build/cjs/lib/unstable/kit/form-entities/SelectInput/SelectInput.d.ts +8 -0
  230. package/build/cjs/lib/unstable/kit/form-entities/SelectInput/SelectInput.js +35 -0
  231. package/build/cjs/lib/unstable/kit/form-entities/SelectInput/index.d.ts +1 -0
  232. package/build/cjs/lib/unstable/kit/form-entities/SelectInput/index.js +5 -0
  233. package/build/cjs/lib/unstable/kit/form-entities/SliderInput/SliderInput.d.ts +5 -0
  234. package/build/cjs/lib/unstable/kit/form-entities/SliderInput/SliderInput.js +21 -0
  235. package/build/cjs/lib/unstable/kit/form-entities/SliderInput/index.d.ts +1 -0
  236. package/build/cjs/lib/unstable/kit/form-entities/SliderInput/index.js +5 -0
  237. package/build/cjs/lib/unstable/kit/form-entities/StringInput/StringInput.css +3 -0
  238. package/build/cjs/lib/unstable/kit/form-entities/StringInput/StringInput.d.ts +5 -0
  239. package/build/cjs/lib/unstable/kit/form-entities/StringInput/StringInput.js +15 -0
  240. package/build/cjs/lib/unstable/kit/form-entities/StringInput/index.d.ts +1 -0
  241. package/build/cjs/lib/unstable/kit/form-entities/StringInput/index.js +5 -0
  242. package/build/cjs/lib/unstable/kit/form-entities/StringNumberWithScaleInput/StringNumberWithScaleInput.css +6 -0
  243. package/build/cjs/lib/unstable/kit/form-entities/StringNumberWithScaleInput/StringNumberWithScaleInput.d.ts +11 -0
  244. package/build/cjs/lib/unstable/kit/form-entities/StringNumberWithScaleInput/StringNumberWithScaleInput.js +81 -0
  245. package/build/cjs/lib/unstable/kit/form-entities/StringNumberWithScaleInput/index.d.ts +1 -0
  246. package/build/cjs/lib/unstable/kit/form-entities/StringNumberWithScaleInput/index.js +5 -0
  247. package/build/cjs/lib/unstable/kit/form-entities/SwitchInput/SwitchInput.css +11 -0
  248. package/build/cjs/lib/unstable/kit/form-entities/SwitchInput/SwitchInput.d.ts +5 -0
  249. package/build/cjs/lib/unstable/kit/form-entities/SwitchInput/SwitchInput.js +20 -0
  250. package/build/cjs/lib/unstable/kit/form-entities/SwitchInput/index.d.ts +1 -0
  251. package/build/cjs/lib/unstable/kit/form-entities/SwitchInput/index.js +5 -0
  252. package/build/cjs/lib/unstable/kit/form-entities/TextAreaInput/TextAreaInput.css +3 -0
  253. package/build/cjs/lib/unstable/kit/form-entities/TextAreaInput/TextAreaInput.d.ts +5 -0
  254. package/build/cjs/lib/unstable/kit/form-entities/TextAreaInput/TextAreaInput.js +15 -0
  255. package/build/cjs/lib/unstable/kit/form-entities/TextAreaInput/index.d.ts +1 -0
  256. package/build/cjs/lib/unstable/kit/form-entities/TextAreaInput/index.js +5 -0
  257. package/build/cjs/lib/unstable/kit/form-entities/index.d.ts +19 -0
  258. package/build/cjs/lib/unstable/kit/form-entities/index.js +41 -0
  259. package/build/cjs/lib/unstable/kit/form-layouts/FormColumn/FormColumn.css +21 -0
  260. package/build/cjs/lib/unstable/kit/form-layouts/FormColumn/FormColumn.d.ts +5 -0
  261. package/build/cjs/lib/unstable/kit/form-layouts/FormColumn/FormColumn.js +35 -0
  262. package/build/cjs/lib/unstable/kit/form-layouts/FormColumn/index.d.ts +1 -0
  263. package/build/cjs/lib/unstable/kit/form-layouts/FormColumn/index.js +5 -0
  264. package/build/cjs/lib/unstable/kit/form-layouts/FormRow/FormRow.css +25 -0
  265. package/build/cjs/lib/unstable/kit/form-layouts/FormRow/FormRow.d.ts +5 -0
  266. package/build/cjs/lib/unstable/kit/form-layouts/FormRow/FormRow.js +35 -0
  267. package/build/cjs/lib/unstable/kit/form-layouts/FormRow/index.d.ts +1 -0
  268. package/build/cjs/lib/unstable/kit/form-layouts/FormRow/index.js +5 -0
  269. package/build/cjs/lib/unstable/kit/form-layouts/index.d.ts +2 -0
  270. package/build/cjs/lib/unstable/kit/form-layouts/index.js +7 -0
  271. package/build/cjs/lib/unstable/kit/index.d.ts +9 -0
  272. package/build/cjs/lib/unstable/kit/index.js +12 -0
  273. package/build/cjs/lib/unstable/kit/layouts/Accordeon/Accordeon.css +46 -0
  274. package/build/cjs/lib/unstable/kit/layouts/Accordeon/Accordeon.d.ts +9 -0
  275. package/build/cjs/lib/unstable/kit/layouts/Accordeon/Accordeon.js +47 -0
  276. package/build/cjs/lib/unstable/kit/layouts/Accordeon/index.d.ts +1 -0
  277. package/build/cjs/lib/unstable/kit/layouts/Accordeon/index.js +5 -0
  278. package/build/cjs/lib/unstable/kit/layouts/Card/Card.css +41 -0
  279. package/build/cjs/lib/unstable/kit/layouts/Card/Card.d.ts +7 -0
  280. package/build/cjs/lib/unstable/kit/layouts/Card/Card.js +50 -0
  281. package/build/cjs/lib/unstable/kit/layouts/Card/index.d.ts +1 -0
  282. package/build/cjs/lib/unstable/kit/layouts/Card/index.js +5 -0
  283. package/build/cjs/lib/unstable/kit/layouts/Section/Section.css +34 -0
  284. package/build/cjs/lib/unstable/kit/layouts/Section/Section.d.ts +7 -0
  285. package/build/cjs/lib/unstable/kit/layouts/Section/Section.js +39 -0
  286. package/build/cjs/lib/unstable/kit/layouts/Section/index.d.ts +1 -0
  287. package/build/cjs/lib/unstable/kit/layouts/Section/index.js +5 -0
  288. package/build/cjs/lib/unstable/kit/layouts/Transparent/Transparent.css +12 -0
  289. package/build/cjs/lib/unstable/kit/layouts/Transparent/Transparent.d.ts +5 -0
  290. package/build/cjs/lib/unstable/kit/layouts/Transparent/Transparent.js +21 -0
  291. package/build/cjs/lib/unstable/kit/layouts/index.d.ts +4 -0
  292. package/build/cjs/lib/unstable/kit/layouts/index.js +11 -0
  293. package/build/cjs/lib/unstable/kit/overview-entities/BooleanValue/BooleanValue.d.ts +14 -0
  294. package/build/cjs/lib/unstable/kit/overview-entities/BooleanValue/BooleanValue.js +25 -0
  295. package/build/cjs/lib/unstable/kit/overview-entities/BooleanValue/index.d.ts +1 -0
  296. package/build/cjs/lib/unstable/kit/overview-entities/BooleanValue/index.js +5 -0
  297. package/build/cjs/lib/unstable/kit/overview-entities/ColorPickerValue/ColorPickerValue.css +6 -0
  298. package/build/cjs/lib/unstable/kit/overview-entities/ColorPickerValue/ColorPickerValue.d.ts +5 -0
  299. package/build/cjs/lib/unstable/kit/overview-entities/ColorPickerValue/ColorPickerValue.js +19 -0
  300. package/build/cjs/lib/unstable/kit/overview-entities/ColorPickerValue/index.d.ts +1 -0
  301. package/build/cjs/lib/unstable/kit/overview-entities/ColorPickerValue/index.js +5 -0
  302. package/build/cjs/lib/unstable/kit/overview-entities/DateValue/DateValue.d.ts +9 -0
  303. package/build/cjs/lib/unstable/kit/overview-entities/DateValue/DateValue.js +20 -0
  304. package/build/cjs/lib/unstable/kit/overview-entities/DateValue/index.d.ts +1 -0
  305. package/build/cjs/lib/unstable/kit/overview-entities/DateValue/index.js +5 -0
  306. package/build/cjs/lib/unstable/kit/overview-entities/NumberValue/NumberValue.d.ts +5 -0
  307. package/build/cjs/lib/unstable/kit/overview-entities/NumberValue/NumberValue.js +15 -0
  308. package/build/cjs/lib/unstable/kit/overview-entities/NumberValue/index.d.ts +1 -0
  309. package/build/cjs/lib/unstable/kit/overview-entities/NumberValue/index.js +5 -0
  310. package/build/cjs/lib/unstable/kit/overview-entities/NumberWithScaleValue/NumberWithScaleValue.d.ts +10 -0
  311. package/build/cjs/lib/unstable/kit/overview-entities/NumberWithScaleValue/NumberWithScaleValue.js +34 -0
  312. package/build/cjs/lib/unstable/kit/overview-entities/NumberWithScaleValue/index.d.ts +1 -0
  313. package/build/cjs/lib/unstable/kit/overview-entities/NumberWithScaleValue/index.js +5 -0
  314. package/build/cjs/lib/unstable/kit/overview-entities/PrimitiveArrayValue/PrimitiveArrayValue.d.ts +7 -0
  315. package/build/cjs/lib/unstable/kit/overview-entities/PrimitiveArrayValue/PrimitiveArrayValue.js +27 -0
  316. package/build/cjs/lib/unstable/kit/overview-entities/PrimitiveArrayValue/index.d.ts +1 -0
  317. package/build/cjs/lib/unstable/kit/overview-entities/PrimitiveArrayValue/index.js +5 -0
  318. package/build/cjs/lib/unstable/kit/overview-entities/RangeValue/RangeValue.d.ts +7 -0
  319. package/build/cjs/lib/unstable/kit/overview-entities/RangeValue/RangeValue.js +24 -0
  320. package/build/cjs/lib/unstable/kit/overview-entities/RangeValue/index.d.ts +1 -0
  321. package/build/cjs/lib/unstable/kit/overview-entities/RangeValue/index.js +5 -0
  322. package/build/cjs/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/StringNumberWithScaleValue.d.ts +10 -0
  323. package/build/cjs/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/StringNumberWithScaleValue.js +35 -0
  324. package/build/cjs/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/index.d.ts +1 -0
  325. package/build/cjs/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/index.js +5 -0
  326. package/build/cjs/lib/unstable/kit/overview-entities/StringValue/StringValue.d.ts +5 -0
  327. package/build/cjs/lib/unstable/kit/overview-entities/StringValue/StringValue.js +14 -0
  328. package/build/cjs/lib/unstable/kit/overview-entities/StringValue/index.d.ts +1 -0
  329. package/build/cjs/lib/unstable/kit/overview-entities/StringValue/index.js +5 -0
  330. package/build/cjs/lib/unstable/kit/overview-entities/index.d.ts +9 -0
  331. package/build/cjs/lib/unstable/kit/overview-entities/index.js +21 -0
  332. package/build/cjs/lib/unstable/kit/overview-layouts/OverviewColumn/OverviewColumn.css +22 -0
  333. package/build/cjs/lib/unstable/kit/overview-layouts/OverviewColumn/OverviewColumn.d.ts +2 -0
  334. package/build/cjs/lib/unstable/kit/overview-layouts/OverviewColumn/OverviewColumn.js +28 -0
  335. package/build/cjs/lib/unstable/kit/overview-layouts/OverviewColumn/index.d.ts +1 -0
  336. package/build/cjs/lib/unstable/kit/overview-layouts/OverviewColumn/index.js +5 -0
  337. package/build/cjs/lib/unstable/kit/overview-layouts/OverviewRow/OverviewRow.css +38 -0
  338. package/build/cjs/lib/unstable/kit/overview-layouts/OverviewRow/OverviewRow.d.ts +2 -0
  339. package/build/cjs/lib/unstable/kit/overview-layouts/OverviewRow/OverviewRow.js +28 -0
  340. package/build/cjs/lib/unstable/kit/overview-layouts/OverviewRow/index.d.ts +1 -0
  341. package/build/cjs/lib/unstable/kit/overview-layouts/OverviewRow/index.js +5 -0
  342. package/build/cjs/lib/unstable/kit/overview-layouts/index.d.ts +2 -0
  343. package/build/cjs/lib/unstable/kit/overview-layouts/index.js +7 -0
  344. package/build/cjs/lib/unstable/kit/utils/common.d.ts +5 -1
  345. package/build/cjs/lib/unstable/kit/utils/common.js +23 -5
  346. package/build/cjs/lib/unstable/kit/utils/date.d.ts +2 -0
  347. package/build/cjs/lib/unstable/kit/utils/date.js +15 -0
  348. package/build/cjs/lib/unstable/kit/utils/index.d.ts +3 -1
  349. package/build/cjs/lib/unstable/kit/utils/index.js +15 -1
  350. package/build/cjs/lib/unstable/kit/utils/transformer.d.ts +18 -0
  351. package/build/cjs/lib/unstable/kit/utils/transformer.js +2912 -0
  352. package/build/cjs/unstable.d.ts +1 -3
  353. package/build/cjs/unstable.js +1 -6
  354. package/build/esm/lib/core/components/Form/DynamicField.js +4 -1
  355. package/build/esm/lib/core/components/View/DynamicView.js +4 -1
  356. package/build/esm/lib/core/helpers.d.ts +3 -1
  357. package/build/esm/lib/core/helpers.js +24 -0
  358. package/build/esm/lib/unstable/core/SchemaRenderer/SchemaRenderer.js +3 -3
  359. package/build/esm/lib/unstable/core/SchemaRendererNode/SchemaRendererNode.d.ts +11 -0
  360. package/build/esm/lib/unstable/core/SchemaRendererNode/SchemaRendererNode.js +127 -0
  361. package/build/esm/lib/unstable/core/SchemaRendererNode/index.d.ts +3 -0
  362. package/build/esm/lib/unstable/core/SchemaRendererNode/index.js +2 -0
  363. package/build/esm/lib/unstable/core/SchemaRendererNode/types.d.ts +3 -0
  364. package/build/esm/lib/unstable/core/SchemaRendererNode/utils.d.ts +25 -0
  365. package/build/esm/lib/unstable/core/SchemaRendererNode/utils.js +156 -0
  366. package/build/esm/lib/unstable/core/constants.d.ts +12 -1
  367. package/build/esm/lib/unstable/core/constants.js +21 -9
  368. package/build/esm/lib/unstable/core/index.d.ts +6 -3
  369. package/build/esm/lib/unstable/core/index.js +6 -3
  370. package/build/esm/lib/unstable/core/types/components.d.ts +21 -21
  371. package/build/esm/lib/unstable/core/types/config.d.ts +28 -27
  372. package/build/esm/lib/unstable/core/types/helpers.d.ts +22 -17
  373. package/build/esm/lib/unstable/core/types/index.d.ts +1 -0
  374. package/build/esm/lib/unstable/core/types/jsl-errors.d.ts +105 -0
  375. package/build/esm/lib/unstable/core/types/schema.d.ts +63 -164
  376. package/build/esm/lib/unstable/core/types/validation.d.ts +30 -32
  377. package/build/esm/lib/unstable/core/useSchemaRenderer/constants.d.ts +1 -1
  378. package/build/esm/lib/unstable/core/useSchemaRenderer/constants.js +1 -1
  379. package/build/esm/lib/unstable/core/useSchemaRenderer/index.d.ts +3 -3
  380. package/build/esm/lib/unstable/core/useSchemaRenderer/index.js +2 -3
  381. package/build/esm/lib/unstable/core/useSchemaRenderer/types/index.d.ts +4 -0
  382. package/build/esm/lib/unstable/core/useSchemaRenderer/types/index.js +4 -0
  383. package/build/esm/lib/unstable/core/useSchemaRenderer/types/patches.d.ts +21 -0
  384. package/build/esm/lib/unstable/core/useSchemaRenderer/types/state.d.ts +34 -0
  385. package/build/esm/lib/unstable/core/useSchemaRenderer/types/subscription.d.ts +13 -0
  386. package/build/esm/lib/unstable/core/useSchemaRenderer/types/validation.d.ts +10 -0
  387. package/build/esm/lib/unstable/core/useSchemaRenderer/useSchemaRenderer.d.ts +7 -28
  388. package/build/esm/lib/unstable/core/useSchemaRenderer/useSchemaRenderer.js +97 -71
  389. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-dispatch.d.ts +3 -0
  390. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-dispatch.js +50 -0
  391. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-run-validate.d.ts +2 -0
  392. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-run-validate.js +15 -0
  393. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-schema-root-node.d.ts +11 -0
  394. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-schema-root-node.js +131 -0
  395. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-subscribe.d.ts +6 -0
  396. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-subscribe.js +59 -0
  397. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-validate.d.ts +3 -14
  398. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-validate.js +70 -49
  399. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/index.d.ts +3 -1
  400. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/index.js +3 -1
  401. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/parse-errors.d.ts +14 -0
  402. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/parse-errors.js +334 -0
  403. package/build/esm/lib/unstable/core/useSchemaRendererState/index.d.ts +1 -0
  404. package/build/esm/lib/unstable/core/useSchemaRendererState/index.js +1 -0
  405. package/build/esm/lib/unstable/core/useSchemaRendererState/useSchemaRendererState.d.ts +9 -0
  406. package/build/esm/lib/unstable/core/useSchemaRendererState/useSchemaRendererState.js +57 -0
  407. package/build/esm/lib/unstable/core/useSchemaRendererTools/index.d.ts +1 -0
  408. package/build/esm/lib/unstable/core/useSchemaRendererTools/index.js +1 -0
  409. package/build/esm/lib/unstable/core/useSchemaRendererTools/useSchemaRendererTools.d.ts +8 -0
  410. package/build/esm/lib/unstable/core/useSchemaRendererTools/useSchemaRendererTools.js +14 -0
  411. package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/external-errors.d.ts +18 -0
  412. package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/external-errors.js +32 -0
  413. package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/index.d.ts +3 -0
  414. package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/index.js +3 -0
  415. package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/schema-patch.d.ts +12 -0
  416. package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/schema-patch.js +169 -0
  417. package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/user-context.d.ts +9 -0
  418. package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/user-context.js +13 -0
  419. package/build/esm/lib/unstable/core/utils/common.d.ts +36 -25
  420. package/build/esm/lib/unstable/core/utils/common.js +40 -97
  421. package/build/esm/lib/unstable/core/utils/definers.d.ts +58 -0
  422. package/build/esm/lib/unstable/core/utils/definers.js +3 -0
  423. package/build/esm/lib/unstable/core/utils/index.d.ts +1 -0
  424. package/build/esm/lib/unstable/core/utils/index.js +1 -0
  425. package/build/esm/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.d.ts +2 -0
  426. package/build/esm/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.js +13 -6
  427. package/build/esm/lib/unstable/kit/components/CopyButton/CopyButton.css +9 -0
  428. package/build/esm/lib/unstable/kit/components/CopyButton/CopyButton.d.ts +8 -0
  429. package/build/esm/lib/unstable/kit/components/CopyButton/CopyButton.js +14 -0
  430. package/build/esm/lib/unstable/kit/components/CopyButton/index.d.ts +1 -0
  431. package/build/esm/lib/unstable/kit/components/CopyButton/index.js +1 -0
  432. package/build/esm/lib/unstable/kit/components/EmptyEntityValue/EmptyEntityValue.d.ts +2 -0
  433. package/build/esm/lib/unstable/kit/components/EmptyEntityValue/EmptyEntityValue.js +6 -0
  434. package/build/esm/lib/unstable/kit/components/EmptyEntityValue/index.d.ts +1 -0
  435. package/build/esm/lib/unstable/kit/components/EmptyEntityValue/index.js +1 -0
  436. package/build/esm/lib/unstable/kit/components/EntityContainer/EntityContainer.css +22 -0
  437. package/build/esm/lib/unstable/kit/components/EntityContainer/EntityContainer.d.ts +9 -0
  438. package/build/esm/lib/unstable/kit/components/EntityContainer/EntityContainer.js +11 -0
  439. package/build/esm/lib/unstable/kit/components/EntityContainer/index.d.ts +1 -0
  440. package/build/esm/lib/unstable/kit/components/EntityContainer/index.js +1 -0
  441. package/build/esm/lib/unstable/kit/components/EntityError/EntityError.css +3 -0
  442. package/build/esm/lib/unstable/kit/components/EntityError/EntityError.d.ts +7 -0
  443. package/build/esm/lib/unstable/kit/components/EntityError/EntityError.js +11 -0
  444. package/build/esm/lib/unstable/kit/components/EntityError/index.d.ts +1 -0
  445. package/build/esm/lib/unstable/kit/components/EntityError/index.js +1 -0
  446. package/build/esm/lib/unstable/kit/components/LayoutContainer/LayoutContainer.css +11 -0
  447. package/build/esm/lib/unstable/kit/components/LayoutContainer/LayoutContainer.d.ts +8 -0
  448. package/build/esm/lib/unstable/kit/components/LayoutContainer/LayoutContainer.js +10 -0
  449. package/build/esm/lib/unstable/kit/components/LayoutContainer/index.d.ts +1 -0
  450. package/build/esm/lib/unstable/kit/components/LayoutContainer/index.js +1 -0
  451. package/build/esm/lib/unstable/kit/components/LongValue/LongValue.css +19 -0
  452. package/build/esm/lib/unstable/kit/components/LongValue/LongValue.d.ts +8 -0
  453. package/build/esm/lib/unstable/kit/components/LongValue/LongValue.js +39 -0
  454. package/build/esm/lib/unstable/kit/components/LongValue/index.d.ts +1 -0
  455. package/build/esm/lib/unstable/kit/components/LongValue/index.js +1 -0
  456. package/build/esm/lib/unstable/kit/components/MonacoContainer/MonacoContainer.css +21 -0
  457. package/build/esm/lib/unstable/kit/components/MonacoContainer/MonacoContainer.d.ts +13 -0
  458. package/build/esm/lib/unstable/kit/components/MonacoContainer/MonacoContainer.js +17 -0
  459. package/build/esm/lib/unstable/kit/components/MonacoContainer/index.d.ts +1 -0
  460. package/build/esm/lib/unstable/kit/components/MonacoContainer/index.js +1 -0
  461. package/build/esm/lib/unstable/kit/components/index.d.ts +7 -1
  462. package/build/esm/lib/unstable/kit/components/index.js +7 -1
  463. package/build/esm/lib/unstable/kit/constants/common.d.ts +2 -0
  464. package/build/esm/lib/unstable/kit/constants/common.js +2 -0
  465. package/build/esm/lib/unstable/kit/constants/config.d.ts +461 -49
  466. package/build/esm/lib/unstable/kit/constants/config.js +203 -42
  467. package/build/esm/lib/unstable/kit/constants/index.d.ts +1 -0
  468. package/build/esm/lib/unstable/kit/constants/index.js +1 -0
  469. package/build/esm/lib/unstable/kit/entities/Alert/Alert.d.ts +8 -0
  470. package/build/esm/lib/unstable/kit/entities/Alert/Alert.js +23 -0
  471. package/build/esm/lib/unstable/kit/entities/Alert/index.d.ts +1 -0
  472. package/build/esm/lib/unstable/kit/entities/Alert/index.js +1 -0
  473. package/build/esm/lib/unstable/kit/entities/ArrayEntity/ArrayEntity.css +3 -0
  474. package/build/esm/lib/unstable/kit/entities/ArrayEntity/ArrayEntity.d.ts +7 -0
  475. package/build/esm/lib/unstable/kit/entities/ArrayEntity/ArrayEntity.js +53 -0
  476. package/build/esm/lib/unstable/kit/entities/ArrayEntity/index.d.ts +1 -0
  477. package/build/esm/lib/unstable/kit/entities/ArrayEntity/index.js +1 -0
  478. package/build/esm/lib/unstable/kit/entities/ArrayTable/ArrayTable.css +45 -0
  479. package/build/esm/lib/unstable/kit/entities/ArrayTable/ArrayTable.d.ts +8 -0
  480. package/build/esm/lib/unstable/kit/entities/ArrayTable/ArrayTable.js +98 -0
  481. package/build/esm/lib/unstable/kit/entities/ArrayTable/index.d.ts +1 -0
  482. package/build/esm/lib/unstable/kit/entities/ArrayTable/index.js +1 -0
  483. package/build/esm/lib/unstable/kit/entities/DotValue/DotValue.d.ts +4 -0
  484. package/build/esm/lib/unstable/kit/entities/DotValue/DotValue.js +28 -0
  485. package/build/esm/lib/unstable/kit/entities/DotValue/index.d.ts +1 -0
  486. package/build/esm/lib/unstable/kit/entities/DotValue/index.js +1 -0
  487. package/build/esm/lib/unstable/kit/entities/FewOfNested/FewOfNested.css +17 -0
  488. package/build/esm/lib/unstable/kit/entities/FewOfNested/FewOfNested.d.ts +8 -0
  489. package/build/esm/lib/unstable/kit/entities/FewOfNested/FewOfNested.js +69 -0
  490. package/build/esm/lib/unstable/kit/entities/FewOfNested/index.d.ts +1 -0
  491. package/build/esm/lib/unstable/kit/entities/FewOfNested/index.js +1 -0
  492. package/build/esm/lib/unstable/kit/entities/Label/Label.d.ts +8 -0
  493. package/build/esm/lib/unstable/kit/entities/Label/Label.js +26 -0
  494. package/build/esm/lib/unstable/kit/entities/Label/index.d.ts +1 -0
  495. package/build/esm/lib/unstable/kit/entities/Label/index.js +1 -0
  496. package/build/esm/lib/unstable/kit/entities/Monaco/Monaco.css +6 -0
  497. package/build/esm/lib/unstable/kit/entities/Monaco/Monaco.d.ts +8 -0
  498. package/build/esm/lib/unstable/kit/entities/Monaco/Monaco.js +77 -0
  499. package/build/esm/lib/unstable/kit/entities/Monaco/index.d.ts +1 -0
  500. package/build/esm/lib/unstable/kit/entities/Monaco/index.js +1 -0
  501. package/build/esm/lib/unstable/kit/entities/ObjectEntity/ObjectEntity.d.ts +6 -0
  502. package/build/esm/lib/unstable/kit/entities/ObjectEntity/ObjectEntity.js +11 -0
  503. package/build/esm/lib/unstable/kit/entities/ObjectEntity/index.d.ts +1 -0
  504. package/build/esm/lib/unstable/kit/entities/ObjectEntity/index.js +1 -0
  505. package/build/esm/lib/unstable/kit/entities/ObjectInline/ObjectInline.css +11 -0
  506. package/build/esm/lib/unstable/kit/entities/ObjectInline/ObjectInline.d.ts +8 -0
  507. package/build/esm/lib/unstable/kit/entities/ObjectInline/ObjectInline.js +22 -0
  508. package/build/esm/lib/unstable/kit/entities/ObjectInline/index.d.ts +1 -0
  509. package/build/esm/lib/unstable/kit/entities/ObjectInline/index.js +1 -0
  510. package/build/esm/lib/unstable/kit/entities/OneOfNested/OneOfNested.css +17 -0
  511. package/build/esm/lib/unstable/kit/entities/OneOfNested/OneOfNested.d.ts +12 -0
  512. package/build/esm/lib/unstable/kit/entities/OneOfNested/OneOfNested.js +66 -0
  513. package/build/esm/lib/unstable/kit/entities/OneOfNested/index.d.ts +1 -0
  514. package/build/esm/lib/unstable/kit/entities/OneOfNested/index.js +1 -0
  515. package/build/esm/lib/unstable/kit/entities/TextContent/TextContent.css +19 -0
  516. package/build/esm/lib/unstable/kit/entities/TextContent/TextContent.d.ts +9 -0
  517. package/build/esm/lib/unstable/kit/entities/TextContent/TextContent.js +28 -0
  518. package/build/esm/lib/unstable/kit/entities/TextContent/index.d.ts +1 -0
  519. package/build/esm/lib/unstable/kit/entities/TextContent/index.js +1 -0
  520. package/build/esm/lib/unstable/kit/entities/index.d.ts +11 -0
  521. package/build/esm/lib/unstable/kit/entities/index.js +11 -0
  522. package/build/esm/lib/unstable/kit/form-entities/CheckboxGroupInput/CheckboxGroupInput.css +9 -0
  523. package/build/esm/lib/unstable/kit/form-entities/CheckboxGroupInput/CheckboxGroupInput.d.ts +9 -0
  524. package/build/esm/lib/unstable/kit/form-entities/CheckboxGroupInput/CheckboxGroupInput.js +38 -0
  525. package/build/esm/lib/unstable/kit/form-entities/CheckboxGroupInput/index.d.ts +1 -0
  526. package/build/esm/lib/unstable/kit/form-entities/CheckboxGroupInput/index.js +1 -0
  527. package/build/esm/lib/unstable/kit/form-entities/CheckboxInput/CheckboxInput.css +11 -0
  528. package/build/esm/lib/unstable/kit/form-entities/CheckboxInput/CheckboxInput.d.ts +6 -0
  529. package/build/esm/lib/unstable/kit/form-entities/CheckboxInput/CheckboxInput.js +16 -0
  530. package/build/esm/lib/unstable/kit/form-entities/CheckboxInput/index.d.ts +1 -0
  531. package/build/esm/lib/unstable/kit/form-entities/CheckboxInput/index.js +1 -0
  532. package/build/esm/lib/unstable/kit/form-entities/ColorPickerInput/ColorPickerInput.css +6 -0
  533. package/build/esm/lib/unstable/kit/form-entities/ColorPickerInput/ColorPickerInput.d.ts +6 -0
  534. package/build/esm/lib/unstable/kit/form-entities/ColorPickerInput/ColorPickerInput.js +22 -0
  535. package/build/esm/lib/unstable/kit/form-entities/ColorPickerInput/index.d.ts +1 -0
  536. package/build/esm/lib/unstable/kit/form-entities/ColorPickerInput/index.js +1 -0
  537. package/build/esm/lib/unstable/kit/form-entities/DateInput/DateInput.css +3 -0
  538. package/build/esm/lib/unstable/kit/form-entities/DateInput/DateInput.d.ts +7 -0
  539. package/build/esm/lib/unstable/kit/form-entities/DateInput/DateInput.js +44 -0
  540. package/build/esm/lib/unstable/kit/form-entities/FileInput/FileInput.d.ts +6 -0
  541. package/build/esm/lib/unstable/kit/form-entities/FileInput/FileInput.js +49 -0
  542. package/build/esm/lib/unstable/kit/form-entities/FileInput/index.d.ts +1 -0
  543. package/build/esm/lib/unstable/kit/form-entities/FileInput/index.js +1 -0
  544. package/build/esm/lib/unstable/kit/form-entities/MultiSelectInput/MultiSelectInput.d.ts +7 -0
  545. package/build/esm/lib/unstable/kit/form-entities/MultiSelectInput/MultiSelectInput.js +34 -0
  546. package/build/esm/lib/unstable/kit/form-entities/MultiSelectInput/index.d.ts +1 -0
  547. package/build/esm/lib/unstable/kit/form-entities/MultiSelectInput/index.js +1 -0
  548. package/build/esm/lib/unstable/kit/form-entities/NumberInput/NumberInput.css +3 -0
  549. package/build/esm/lib/unstable/kit/form-entities/NumberInput/NumberInput.d.ts +6 -0
  550. package/build/esm/lib/unstable/kit/form-entities/NumberInput/NumberInput.js +12 -0
  551. package/build/esm/lib/unstable/kit/form-entities/NumberInput/index.d.ts +1 -0
  552. package/build/esm/lib/unstable/kit/form-entities/NumberInput/index.js +1 -0
  553. package/build/esm/lib/unstable/kit/form-entities/NumberWithScaleInput/NumberWithScaleInput.css +6 -0
  554. package/build/esm/lib/unstable/kit/form-entities/NumberWithScaleInput/NumberWithScaleInput.d.ts +12 -0
  555. package/build/esm/lib/unstable/kit/form-entities/NumberWithScaleInput/NumberWithScaleInput.js +73 -0
  556. package/build/esm/lib/unstable/kit/form-entities/NumberWithScaleInput/index.d.ts +1 -0
  557. package/build/esm/lib/unstable/kit/form-entities/NumberWithScaleInput/index.js +1 -0
  558. package/build/esm/lib/unstable/kit/form-entities/PasswordInput/PasswordInput.css +3 -0
  559. package/build/esm/lib/unstable/kit/form-entities/PasswordInput/PasswordInput.d.ts +6 -0
  560. package/build/esm/lib/unstable/kit/form-entities/PasswordInput/PasswordInput.js +12 -0
  561. package/build/esm/lib/unstable/kit/form-entities/PasswordInput/index.d.ts +1 -0
  562. package/build/esm/lib/unstable/kit/form-entities/PasswordInput/index.js +1 -0
  563. package/build/esm/lib/unstable/kit/form-entities/RadioGroupInput/RadioGroupInput.css +13 -0
  564. package/build/esm/lib/unstable/kit/form-entities/RadioGroupInput/RadioGroupInput.d.ts +8 -0
  565. package/build/esm/lib/unstable/kit/form-entities/RadioGroupInput/RadioGroupInput.js +21 -0
  566. package/build/esm/lib/unstable/kit/form-entities/RadioGroupInput/index.d.ts +1 -0
  567. package/build/esm/lib/unstable/kit/form-entities/RadioGroupInput/index.js +1 -0
  568. package/build/esm/lib/unstable/kit/form-entities/RangeInput/RangeInput.css +8 -0
  569. package/build/esm/lib/unstable/kit/form-entities/RangeInput/RangeInput.d.ts +7 -0
  570. package/build/esm/lib/unstable/kit/form-entities/RangeInput/RangeInput.js +67 -0
  571. package/build/esm/lib/unstable/kit/form-entities/RangeInput/index.d.ts +1 -0
  572. package/build/esm/lib/unstable/kit/form-entities/RangeInput/index.js +1 -0
  573. package/build/esm/lib/unstable/kit/form-entities/RangeSliderInput/RangeSliderInput.d.ts +6 -0
  574. package/build/esm/lib/unstable/kit/form-entities/RangeSliderInput/RangeSliderInput.js +31 -0
  575. package/build/esm/lib/unstable/kit/form-entities/RangeSliderInput/index.d.ts +1 -0
  576. package/build/esm/lib/unstable/kit/form-entities/RangeSliderInput/index.js +1 -0
  577. package/build/esm/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/SegmentedRadioGroupInput.css +6 -0
  578. package/build/esm/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/SegmentedRadioGroupInput.d.ts +8 -0
  579. package/build/esm/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/SegmentedRadioGroupInput.js +26 -0
  580. package/build/esm/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/index.d.ts +1 -0
  581. package/build/esm/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/index.js +1 -0
  582. package/build/esm/lib/unstable/kit/form-entities/SelectInput/SelectInput.d.ts +8 -0
  583. package/build/esm/lib/unstable/kit/form-entities/SelectInput/SelectInput.js +31 -0
  584. package/build/esm/lib/unstable/kit/form-entities/SelectInput/index.d.ts +1 -0
  585. package/build/esm/lib/unstable/kit/form-entities/SelectInput/index.js +1 -0
  586. package/build/esm/lib/unstable/kit/form-entities/SliderInput/SliderInput.d.ts +5 -0
  587. package/build/esm/lib/unstable/kit/form-entities/SliderInput/SliderInput.js +16 -0
  588. package/build/esm/lib/unstable/kit/form-entities/SliderInput/index.d.ts +1 -0
  589. package/build/esm/lib/unstable/kit/form-entities/SliderInput/index.js +1 -0
  590. package/build/esm/lib/unstable/kit/form-entities/StringInput/StringInput.css +3 -0
  591. package/build/esm/lib/unstable/kit/form-entities/StringInput/StringInput.d.ts +6 -0
  592. package/build/esm/lib/unstable/kit/form-entities/StringInput/StringInput.js +11 -0
  593. package/build/esm/lib/unstable/kit/form-entities/StringInput/index.d.ts +1 -0
  594. package/build/esm/lib/unstable/kit/form-entities/StringInput/index.js +1 -0
  595. package/build/esm/lib/unstable/kit/form-entities/StringNumberWithScaleInput/StringNumberWithScaleInput.css +6 -0
  596. package/build/esm/lib/unstable/kit/form-entities/StringNumberWithScaleInput/StringNumberWithScaleInput.d.ts +12 -0
  597. package/build/esm/lib/unstable/kit/form-entities/StringNumberWithScaleInput/StringNumberWithScaleInput.js +78 -0
  598. package/build/esm/lib/unstable/kit/form-entities/StringNumberWithScaleInput/index.d.ts +1 -0
  599. package/build/esm/lib/unstable/kit/form-entities/StringNumberWithScaleInput/index.js +1 -0
  600. package/build/esm/lib/unstable/kit/form-entities/SwitchInput/SwitchInput.css +11 -0
  601. package/build/esm/lib/unstable/kit/form-entities/SwitchInput/SwitchInput.d.ts +6 -0
  602. package/build/esm/lib/unstable/kit/form-entities/SwitchInput/SwitchInput.js +16 -0
  603. package/build/esm/lib/unstable/kit/form-entities/SwitchInput/index.d.ts +1 -0
  604. package/build/esm/lib/unstable/kit/form-entities/SwitchInput/index.js +1 -0
  605. package/build/esm/lib/unstable/kit/form-entities/TextAreaInput/TextAreaInput.css +3 -0
  606. package/build/esm/lib/unstable/kit/form-entities/TextAreaInput/TextAreaInput.d.ts +6 -0
  607. package/build/esm/lib/unstable/kit/form-entities/TextAreaInput/TextAreaInput.js +11 -0
  608. package/build/esm/lib/unstable/kit/form-entities/TextAreaInput/index.d.ts +1 -0
  609. package/build/esm/lib/unstable/kit/form-entities/TextAreaInput/index.js +1 -0
  610. package/build/esm/lib/unstable/kit/form-entities/index.d.ts +19 -0
  611. package/build/esm/lib/unstable/kit/form-entities/index.js +19 -0
  612. package/build/esm/lib/unstable/kit/form-layouts/FormColumn/FormColumn.css +21 -0
  613. package/build/esm/lib/unstable/kit/form-layouts/FormColumn/FormColumn.d.ts +6 -0
  614. package/build/esm/lib/unstable/kit/form-layouts/FormColumn/FormColumn.js +31 -0
  615. package/build/esm/lib/unstable/kit/form-layouts/FormColumn/index.d.ts +1 -0
  616. package/build/esm/lib/unstable/kit/form-layouts/FormColumn/index.js +1 -0
  617. package/build/esm/lib/unstable/kit/form-layouts/FormRow/FormRow.css +25 -0
  618. package/build/esm/lib/unstable/kit/form-layouts/FormRow/FormRow.d.ts +6 -0
  619. package/build/esm/lib/unstable/kit/form-layouts/FormRow/FormRow.js +31 -0
  620. package/build/esm/lib/unstable/kit/form-layouts/FormRow/index.d.ts +1 -0
  621. package/build/esm/lib/unstable/kit/form-layouts/FormRow/index.js +1 -0
  622. package/build/esm/lib/unstable/kit/form-layouts/index.d.ts +2 -0
  623. package/build/esm/lib/unstable/kit/form-layouts/index.js +2 -0
  624. package/build/esm/lib/unstable/kit/index.d.ts +9 -0
  625. package/build/esm/lib/unstable/kit/index.js +9 -0
  626. package/build/esm/lib/unstable/kit/layouts/Accordeon/Accordeon.css +46 -0
  627. package/build/esm/lib/unstable/kit/layouts/Accordeon/Accordeon.d.ts +10 -0
  628. package/build/esm/lib/unstable/kit/layouts/Accordeon/Accordeon.js +44 -0
  629. package/build/esm/lib/unstable/kit/layouts/Accordeon/index.d.ts +1 -0
  630. package/build/esm/lib/unstable/kit/layouts/Accordeon/index.js +1 -0
  631. package/build/esm/lib/unstable/kit/layouts/Card/Card.css +41 -0
  632. package/build/esm/lib/unstable/kit/layouts/Card/Card.d.ts +8 -0
  633. package/build/esm/lib/unstable/kit/layouts/Card/Card.js +47 -0
  634. package/build/esm/lib/unstable/kit/layouts/Card/index.d.ts +1 -0
  635. package/build/esm/lib/unstable/kit/layouts/Card/index.js +1 -0
  636. package/build/esm/lib/unstable/kit/layouts/Section/Section.css +34 -0
  637. package/build/esm/lib/unstable/kit/layouts/Section/Section.d.ts +8 -0
  638. package/build/esm/lib/unstable/kit/layouts/Section/Section.js +36 -0
  639. package/build/esm/lib/unstable/kit/layouts/Section/index.d.ts +1 -0
  640. package/build/esm/lib/unstable/kit/layouts/Section/index.js +1 -0
  641. package/build/esm/lib/unstable/kit/layouts/Transparent/Transparent.css +12 -0
  642. package/build/esm/lib/unstable/kit/layouts/Transparent/Transparent.d.ts +6 -0
  643. package/build/esm/lib/unstable/kit/layouts/Transparent/Transparent.js +17 -0
  644. package/build/esm/lib/unstable/kit/layouts/index.d.ts +4 -0
  645. package/build/esm/lib/unstable/kit/layouts/index.js +4 -0
  646. package/build/esm/lib/unstable/kit/overview-entities/BooleanValue/BooleanValue.d.ts +14 -0
  647. package/build/esm/lib/unstable/kit/overview-entities/BooleanValue/BooleanValue.js +21 -0
  648. package/build/esm/lib/unstable/kit/overview-entities/BooleanValue/index.d.ts +1 -0
  649. package/build/esm/lib/unstable/kit/overview-entities/BooleanValue/index.js +1 -0
  650. package/build/esm/lib/unstable/kit/overview-entities/ColorPickerValue/ColorPickerValue.css +6 -0
  651. package/build/esm/lib/unstable/kit/overview-entities/ColorPickerValue/ColorPickerValue.d.ts +6 -0
  652. package/build/esm/lib/unstable/kit/overview-entities/ColorPickerValue/ColorPickerValue.js +15 -0
  653. package/build/esm/lib/unstable/kit/overview-entities/ColorPickerValue/index.d.ts +1 -0
  654. package/build/esm/lib/unstable/kit/overview-entities/ColorPickerValue/index.js +1 -0
  655. package/build/esm/lib/unstable/kit/overview-entities/DateValue/DateValue.d.ts +9 -0
  656. package/build/esm/lib/unstable/kit/overview-entities/DateValue/DateValue.js +16 -0
  657. package/build/esm/lib/unstable/kit/overview-entities/DateValue/index.d.ts +1 -0
  658. package/build/esm/lib/unstable/kit/overview-entities/DateValue/index.js +1 -0
  659. package/build/esm/lib/unstable/kit/overview-entities/NumberValue/NumberValue.d.ts +5 -0
  660. package/build/esm/lib/unstable/kit/overview-entities/NumberValue/NumberValue.js +10 -0
  661. package/build/esm/lib/unstable/kit/overview-entities/NumberValue/index.d.ts +1 -0
  662. package/build/esm/lib/unstable/kit/overview-entities/NumberValue/index.js +1 -0
  663. package/build/esm/lib/unstable/kit/overview-entities/NumberWithScaleValue/NumberWithScaleValue.d.ts +10 -0
  664. package/build/esm/lib/unstable/kit/overview-entities/NumberWithScaleValue/NumberWithScaleValue.js +30 -0
  665. package/build/esm/lib/unstable/kit/overview-entities/NumberWithScaleValue/index.d.ts +1 -0
  666. package/build/esm/lib/unstable/kit/overview-entities/NumberWithScaleValue/index.js +1 -0
  667. package/build/esm/lib/unstable/kit/overview-entities/PrimitiveArrayValue/PrimitiveArrayValue.d.ts +7 -0
  668. package/build/esm/lib/unstable/kit/overview-entities/PrimitiveArrayValue/PrimitiveArrayValue.js +23 -0
  669. package/build/esm/lib/unstable/kit/overview-entities/PrimitiveArrayValue/index.d.ts +1 -0
  670. package/build/esm/lib/unstable/kit/overview-entities/PrimitiveArrayValue/index.js +1 -0
  671. package/build/esm/lib/unstable/kit/overview-entities/RangeValue/RangeValue.d.ts +7 -0
  672. package/build/esm/lib/unstable/kit/overview-entities/RangeValue/RangeValue.js +20 -0
  673. package/build/esm/lib/unstable/kit/overview-entities/RangeValue/index.d.ts +1 -0
  674. package/build/esm/lib/unstable/kit/overview-entities/RangeValue/index.js +1 -0
  675. package/build/esm/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/StringNumberWithScaleValue.d.ts +10 -0
  676. package/build/esm/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/StringNumberWithScaleValue.js +31 -0
  677. package/build/esm/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/index.d.ts +1 -0
  678. package/build/esm/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/index.js +1 -0
  679. package/build/esm/lib/unstable/kit/overview-entities/StringValue/StringValue.d.ts +5 -0
  680. package/build/esm/lib/unstable/kit/overview-entities/StringValue/StringValue.js +9 -0
  681. package/build/esm/lib/unstable/kit/overview-entities/StringValue/index.d.ts +1 -0
  682. package/build/esm/lib/unstable/kit/overview-entities/StringValue/index.js +1 -0
  683. package/build/esm/lib/unstable/kit/overview-entities/index.d.ts +9 -0
  684. package/build/esm/lib/unstable/kit/overview-entities/index.js +9 -0
  685. package/build/esm/lib/unstable/kit/overview-layouts/OverviewColumn/OverviewColumn.css +22 -0
  686. package/build/esm/lib/unstable/kit/overview-layouts/OverviewColumn/OverviewColumn.d.ts +3 -0
  687. package/build/esm/lib/unstable/kit/overview-layouts/OverviewColumn/OverviewColumn.js +24 -0
  688. package/build/esm/lib/unstable/kit/overview-layouts/OverviewColumn/index.d.ts +1 -0
  689. package/build/esm/lib/unstable/kit/overview-layouts/OverviewColumn/index.js +1 -0
  690. package/build/esm/lib/unstable/kit/overview-layouts/OverviewRow/OverviewRow.css +38 -0
  691. package/build/esm/lib/unstable/kit/overview-layouts/OverviewRow/OverviewRow.d.ts +3 -0
  692. package/build/esm/lib/unstable/kit/overview-layouts/OverviewRow/OverviewRow.js +24 -0
  693. package/build/esm/lib/unstable/kit/overview-layouts/OverviewRow/index.d.ts +1 -0
  694. package/build/esm/lib/unstable/kit/overview-layouts/OverviewRow/index.js +1 -0
  695. package/build/esm/lib/unstable/kit/overview-layouts/index.d.ts +2 -0
  696. package/build/esm/lib/unstable/kit/overview-layouts/index.js +2 -0
  697. package/build/esm/lib/unstable/kit/utils/common.d.ts +5 -1
  698. package/build/esm/lib/unstable/kit/utils/common.js +18 -4
  699. package/build/esm/lib/unstable/kit/utils/date.d.ts +2 -0
  700. package/build/esm/lib/unstable/kit/utils/date.js +11 -0
  701. package/build/esm/lib/unstable/kit/utils/index.d.ts +3 -1
  702. package/build/esm/lib/unstable/kit/utils/index.js +3 -1
  703. package/build/esm/lib/unstable/kit/utils/transformer.d.ts +18 -0
  704. package/build/esm/lib/unstable/kit/utils/transformer.js +2907 -0
  705. package/build/esm/unstable.d.ts +1 -3
  706. package/build/esm/unstable.js +1 -3
  707. package/package.json +3 -2
  708. package/build/cjs/lib/unstable/core/Entity/Entity.d.ts +0 -10
  709. package/build/cjs/lib/unstable/core/Entity/Entity.js +0 -78
  710. package/build/cjs/lib/unstable/core/Entity/index.d.ts +0 -2
  711. package/build/cjs/lib/unstable/core/Entity/index.js +0 -5
  712. package/build/cjs/lib/unstable/core/Entity/types.d.ts +0 -27
  713. package/build/cjs/lib/unstable/core/Entity/utils.d.ts +0 -3
  714. package/build/cjs/lib/unstable/core/Entity/utils.js +0 -40
  715. package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/index.d.ts +0 -2
  716. package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/index.js +0 -7
  717. package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useEntitiesState.d.ts +0 -7
  718. package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useEntitiesState.js +0 -25
  719. package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useSchemaRendererMutators.d.ts +0 -10
  720. package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useSchemaRendererMutators.js +0 -17
  721. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/async-validation.d.ts +0 -3
  722. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/async-validation.js +0 -35
  723. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/index.d.ts +0 -2
  724. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/index.js +0 -5
  725. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/types.d.ts +0 -34
  726. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/external-errors.d.ts +0 -3
  727. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/external-errors.js +0 -60
  728. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/index.d.ts +0 -2
  729. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/index.js +0 -5
  730. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/types.d.ts +0 -25
  731. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/index.d.ts +0 -13
  732. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/index.js +0 -16
  733. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/index.d.ts +0 -2
  734. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/index.js +0 -5
  735. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/schema-mutators.d.ts +0 -3
  736. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/schema-mutators.js +0 -81
  737. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/types.d.ts +0 -26
  738. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/index.d.ts +0 -2
  739. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/index.js +0 -5
  740. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/trigger-fields.d.ts +0 -2
  741. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/trigger-fields.js +0 -12
  742. package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/types.d.ts +0 -6
  743. package/build/cjs/lib/unstable/core/useSchemaRenderer/types.d.ts +0 -22
  744. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/common.d.ts +0 -1
  745. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/common.js +0 -11
  746. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-ajv-validate.d.ts +0 -11
  747. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-ajv-validate.js +0 -39
  748. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-ajv-error.d.ts +0 -10
  749. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-ajv-error.js +0 -51
  750. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-ajv-validate-errors.d.ts +0 -20
  751. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-ajv-validate-errors.js +0 -43
  752. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-entity-parameters-error.d.ts +0 -15
  753. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-entity-parameters-error.js +0 -36
  754. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-errors-state.d.ts +0 -12
  755. package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-errors-state.js +0 -17
  756. package/build/cjs/lib/unstable/kit/Accordeon.d.ts +0 -3
  757. package/build/cjs/lib/unstable/kit/Accordeon.js +0 -31
  758. package/build/cjs/lib/unstable/kit/Any.d.ts +0 -2
  759. package/build/cjs/lib/unstable/kit/Any.js +0 -21
  760. package/build/cjs/lib/unstable/kit/ArrayBase.css +0 -23
  761. package/build/cjs/lib/unstable/kit/ArrayBase.d.ts +0 -2
  762. package/build/cjs/lib/unstable/kit/ArrayBase.js +0 -101
  763. package/build/cjs/lib/unstable/kit/MultiSelect.css +0 -6
  764. package/build/cjs/lib/unstable/kit/MultiSelect.d.ts +0 -6
  765. package/build/cjs/lib/unstable/kit/MultiSelect.js +0 -66
  766. package/build/cjs/lib/unstable/kit/ObjectBase.css +0 -10
  767. package/build/cjs/lib/unstable/kit/ObjectBase.d.ts +0 -7
  768. package/build/cjs/lib/unstable/kit/ObjectBase.js +0 -71
  769. package/build/cjs/lib/unstable/kit/Row.css +0 -73
  770. package/build/cjs/lib/unstable/kit/Row.d.ts +0 -10
  771. package/build/cjs/lib/unstable/kit/Row.js +0 -50
  772. package/build/cjs/lib/unstable/kit/Text.d.ts +0 -6
  773. package/build/cjs/lib/unstable/kit/Text.js +0 -259
  774. package/build/cjs/lib/unstable/kit/components/ControlError/ControlError.css +0 -33
  775. package/build/cjs/lib/unstable/kit/components/ControlError/ControlError.d.ts +0 -8
  776. package/build/cjs/lib/unstable/kit/components/ControlError/ControlError.js +0 -15
  777. package/build/cjs/lib/unstable/kit/components/ControlError/index.d.ts +0 -1
  778. package/build/cjs/lib/unstable/kit/components/ControlError/index.js +0 -5
  779. package/build/cjs/lib/unstable/kit/config.d.ts +0 -95
  780. package/build/cjs/lib/unstable/kit/config.js +0 -68
  781. package/build/cjs/lib/unstable/kit/controls/ArrayBase/ArrayBase.d.ts +0 -8
  782. package/build/cjs/lib/unstable/kit/controls/ArrayBase/ArrayBase.js +0 -46
  783. package/build/cjs/lib/unstable/kit/controls/ArrayBase/index.d.ts +0 -1
  784. package/build/cjs/lib/unstable/kit/controls/ArrayBase/index.js +0 -4
  785. package/build/cjs/lib/unstable/kit/controls/Checkbox/Checkbox.css +0 -5
  786. package/build/cjs/lib/unstable/kit/controls/Checkbox/Checkbox.d.ts +0 -6
  787. package/build/cjs/lib/unstable/kit/controls/Checkbox/Checkbox.js +0 -16
  788. package/build/cjs/lib/unstable/kit/controls/Checkbox/index.d.ts +0 -1
  789. package/build/cjs/lib/unstable/kit/controls/Checkbox/index.js +0 -5
  790. package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.css +0 -3
  791. package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.d.ts +0 -9
  792. package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.js +0 -37
  793. package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/index.d.ts +0 -1
  794. package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/index.js +0 -5
  795. package/build/cjs/lib/unstable/kit/controls/ColorPicker/ColorPicker.d.ts +0 -6
  796. package/build/cjs/lib/unstable/kit/controls/ColorPicker/ColorPicker.js +0 -24
  797. package/build/cjs/lib/unstable/kit/controls/ColorPicker/index.d.ts +0 -1
  798. package/build/cjs/lib/unstable/kit/controls/ColorPicker/index.js +0 -5
  799. package/build/cjs/lib/unstable/kit/controls/DateInput/DateInput.css +0 -3
  800. package/build/cjs/lib/unstable/kit/controls/DateInput/DateInput.d.ts +0 -8
  801. package/build/cjs/lib/unstable/kit/controls/DateInput/DateInput.js +0 -55
  802. package/build/cjs/lib/unstable/kit/controls/MultiSelect/MultiSelect.d.ts +0 -8
  803. package/build/cjs/lib/unstable/kit/controls/MultiSelect/MultiSelect.js +0 -35
  804. package/build/cjs/lib/unstable/kit/controls/MultiSelect/index.d.ts +0 -1
  805. package/build/cjs/lib/unstable/kit/controls/MultiSelect/index.js +0 -5
  806. package/build/cjs/lib/unstable/kit/controls/NumberBase/Number.d.ts +0 -6
  807. package/build/cjs/lib/unstable/kit/controls/NumberBase/Number.js +0 -12
  808. package/build/cjs/lib/unstable/kit/controls/NumberBase/index.d.ts +0 -1
  809. package/build/cjs/lib/unstable/kit/controls/NumberBase/index.js +0 -5
  810. package/build/cjs/lib/unstable/kit/controls/ObjectBase/ObjectBase.d.ts +0 -8
  811. package/build/cjs/lib/unstable/kit/controls/ObjectBase/ObjectBase.js +0 -33
  812. package/build/cjs/lib/unstable/kit/controls/ObjectBase/index.d.ts +0 -1
  813. package/build/cjs/lib/unstable/kit/controls/ObjectBase/index.js +0 -5
  814. package/build/cjs/lib/unstable/kit/controls/Password/Password.d.ts +0 -6
  815. package/build/cjs/lib/unstable/kit/controls/Password/Password.js +0 -12
  816. package/build/cjs/lib/unstable/kit/controls/Password/index.d.ts +0 -1
  817. package/build/cjs/lib/unstable/kit/controls/Password/index.js +0 -5
  818. package/build/cjs/lib/unstable/kit/controls/RadioGroup/RadioGroup.css +0 -3
  819. package/build/cjs/lib/unstable/kit/controls/RadioGroup/RadioGroup.d.ts +0 -8
  820. package/build/cjs/lib/unstable/kit/controls/RadioGroup/RadioGroup.js +0 -24
  821. package/build/cjs/lib/unstable/kit/controls/RadioGroup/index.d.ts +0 -1
  822. package/build/cjs/lib/unstable/kit/controls/RadioGroup/index.js +0 -5
  823. package/build/cjs/lib/unstable/kit/controls/RangeSlider/RangeSlider.css +0 -3
  824. package/build/cjs/lib/unstable/kit/controls/RangeSlider/RangeSlider.d.ts +0 -7
  825. package/build/cjs/lib/unstable/kit/controls/RangeSlider/RangeSlider.js +0 -33
  826. package/build/cjs/lib/unstable/kit/controls/RangeSlider/index.d.ts +0 -1
  827. package/build/cjs/lib/unstable/kit/controls/RangeSlider/index.js +0 -5
  828. package/build/cjs/lib/unstable/kit/controls/Select/Select.d.ts +0 -9
  829. package/build/cjs/lib/unstable/kit/controls/Select/Select.js +0 -32
  830. package/build/cjs/lib/unstable/kit/controls/Select/index.d.ts +0 -1
  831. package/build/cjs/lib/unstable/kit/controls/Select/index.js +0 -5
  832. package/build/cjs/lib/unstable/kit/controls/Slider/Slider.css +0 -3
  833. package/build/cjs/lib/unstable/kit/controls/Slider/Slider.d.ts +0 -6
  834. package/build/cjs/lib/unstable/kit/controls/Slider/Slider.js +0 -19
  835. package/build/cjs/lib/unstable/kit/controls/Slider/index.d.ts +0 -1
  836. package/build/cjs/lib/unstable/kit/controls/Slider/index.js +0 -5
  837. package/build/cjs/lib/unstable/kit/controls/StringBase/StringBase.d.ts +0 -6
  838. package/build/cjs/lib/unstable/kit/controls/StringBase/StringBase.js +0 -12
  839. package/build/cjs/lib/unstable/kit/controls/StringBase/index.d.ts +0 -1
  840. package/build/cjs/lib/unstable/kit/controls/StringBase/index.js +0 -5
  841. package/build/cjs/lib/unstable/kit/controls/Switch/Switch.css +0 -5
  842. package/build/cjs/lib/unstable/kit/controls/Switch/Switch.d.ts +0 -6
  843. package/build/cjs/lib/unstable/kit/controls/Switch/Switch.js +0 -16
  844. package/build/cjs/lib/unstable/kit/controls/Switch/index.d.ts +0 -1
  845. package/build/cjs/lib/unstable/kit/controls/Switch/index.js +0 -5
  846. package/build/cjs/lib/unstable/kit/controls/TextArea/TextArea.d.ts +0 -6
  847. package/build/cjs/lib/unstable/kit/controls/TextArea/TextArea.js +0 -12
  848. package/build/cjs/lib/unstable/kit/controls/TextArea/index.d.ts +0 -1
  849. package/build/cjs/lib/unstable/kit/controls/TextArea/index.js +0 -5
  850. package/build/cjs/lib/unstable/kit/controls/index.d.ts +0 -16
  851. package/build/cjs/lib/unstable/kit/controls/index.js +0 -35
  852. package/build/cjs/lib/unstable/kit/wrappers/Row/Row.css +0 -27
  853. package/build/cjs/lib/unstable/kit/wrappers/Row/Row.d.ts +0 -6
  854. package/build/cjs/lib/unstable/kit/wrappers/Row/Row.js +0 -34
  855. package/build/cjs/lib/unstable/kit/wrappers/Row/index.d.ts +0 -1
  856. package/build/cjs/lib/unstable/kit/wrappers/Row/index.js +0 -5
  857. package/build/cjs/lib/unstable/kit/wrappers/Transparent/Transparent.css +0 -6
  858. package/build/cjs/lib/unstable/kit/wrappers/Transparent/Transparent.d.ts +0 -3
  859. package/build/cjs/lib/unstable/kit/wrappers/Transparent/Transparent.js +0 -15
  860. package/build/cjs/lib/unstable/kit/wrappers/index.d.ts +0 -2
  861. package/build/cjs/lib/unstable/kit/wrappers/index.js +0 -7
  862. package/build/esm/lib/unstable/core/Entity/Entity.d.ts +0 -10
  863. package/build/esm/lib/unstable/core/Entity/Entity.js +0 -74
  864. package/build/esm/lib/unstable/core/Entity/index.d.ts +0 -2
  865. package/build/esm/lib/unstable/core/Entity/index.js +0 -1
  866. package/build/esm/lib/unstable/core/Entity/types.d.ts +0 -27
  867. package/build/esm/lib/unstable/core/Entity/utils.d.ts +0 -3
  868. package/build/esm/lib/unstable/core/Entity/utils.js +0 -35
  869. package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/index.d.ts +0 -2
  870. package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/index.js +0 -2
  871. package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/useEntitiesState.d.ts +0 -7
  872. package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/useEntitiesState.js +0 -20
  873. package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/useSchemaRendererMutators.d.ts +0 -10
  874. package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/useSchemaRendererMutators.js +0 -13
  875. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/async-validation.d.ts +0 -3
  876. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/async-validation.js +0 -29
  877. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/index.d.ts +0 -2
  878. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/index.js +0 -2
  879. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/types.d.ts +0 -34
  880. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/external-errors.d.ts +0 -3
  881. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/external-errors.js +0 -54
  882. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/index.d.ts +0 -2
  883. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/index.js +0 -2
  884. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/types.d.ts +0 -25
  885. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/index.d.ts +0 -13
  886. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/index.js +0 -13
  887. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/index.d.ts +0 -2
  888. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/index.js +0 -2
  889. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/schema-mutators.d.ts +0 -3
  890. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/schema-mutators.js +0 -75
  891. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/types.d.ts +0 -26
  892. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/index.d.ts +0 -2
  893. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/index.js +0 -2
  894. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/trigger-fields.d.ts +0 -2
  895. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/trigger-fields.js +0 -8
  896. package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/types.d.ts +0 -6
  897. package/build/esm/lib/unstable/core/useSchemaRenderer/types.d.ts +0 -22
  898. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/common.d.ts +0 -1
  899. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/common.js +0 -7
  900. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-ajv-validate.d.ts +0 -11
  901. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-ajv-validate.js +0 -34
  902. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-ajv-error.d.ts +0 -10
  903. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-ajv-error.js +0 -46
  904. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-ajv-validate-errors.d.ts +0 -20
  905. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-ajv-validate-errors.js +0 -39
  906. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-entity-parameters-error.d.ts +0 -15
  907. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-entity-parameters-error.js +0 -31
  908. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-errors-state.d.ts +0 -12
  909. package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-errors-state.js +0 -12
  910. package/build/esm/lib/unstable/kit/Accordeon.d.ts +0 -3
  911. package/build/esm/lib/unstable/kit/Accordeon.js +0 -26
  912. package/build/esm/lib/unstable/kit/Any.d.ts +0 -2
  913. package/build/esm/lib/unstable/kit/Any.js +0 -16
  914. package/build/esm/lib/unstable/kit/ArrayBase.css +0 -23
  915. package/build/esm/lib/unstable/kit/ArrayBase.d.ts +0 -3
  916. package/build/esm/lib/unstable/kit/ArrayBase.js +0 -97
  917. package/build/esm/lib/unstable/kit/MultiSelect.css +0 -6
  918. package/build/esm/lib/unstable/kit/MultiSelect.d.ts +0 -7
  919. package/build/esm/lib/unstable/kit/MultiSelect.js +0 -62
  920. package/build/esm/lib/unstable/kit/ObjectBase.css +0 -10
  921. package/build/esm/lib/unstable/kit/ObjectBase.d.ts +0 -8
  922. package/build/esm/lib/unstable/kit/ObjectBase.js +0 -66
  923. package/build/esm/lib/unstable/kit/Row.css +0 -73
  924. package/build/esm/lib/unstable/kit/Row.d.ts +0 -11
  925. package/build/esm/lib/unstable/kit/Row.js +0 -47
  926. package/build/esm/lib/unstable/kit/Text.d.ts +0 -6
  927. package/build/esm/lib/unstable/kit/Text.js +0 -255
  928. package/build/esm/lib/unstable/kit/components/ControlError/ControlError.css +0 -33
  929. package/build/esm/lib/unstable/kit/components/ControlError/ControlError.d.ts +0 -9
  930. package/build/esm/lib/unstable/kit/components/ControlError/ControlError.js +0 -11
  931. package/build/esm/lib/unstable/kit/components/ControlError/index.d.ts +0 -1
  932. package/build/esm/lib/unstable/kit/components/ControlError/index.js +0 -1
  933. package/build/esm/lib/unstable/kit/config.d.ts +0 -95
  934. package/build/esm/lib/unstable/kit/config.js +0 -65
  935. package/build/esm/lib/unstable/kit/controls/ArrayBase/ArrayBase.d.ts +0 -8
  936. package/build/esm/lib/unstable/kit/controls/ArrayBase/ArrayBase.js +0 -42
  937. package/build/esm/lib/unstable/kit/controls/ArrayBase/index.d.ts +0 -1
  938. package/build/esm/lib/unstable/kit/controls/ArrayBase/index.js +0 -1
  939. package/build/esm/lib/unstable/kit/controls/Checkbox/Checkbox.css +0 -5
  940. package/build/esm/lib/unstable/kit/controls/Checkbox/Checkbox.d.ts +0 -7
  941. package/build/esm/lib/unstable/kit/controls/Checkbox/Checkbox.js +0 -13
  942. package/build/esm/lib/unstable/kit/controls/Checkbox/index.d.ts +0 -1
  943. package/build/esm/lib/unstable/kit/controls/Checkbox/index.js +0 -1
  944. package/build/esm/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.css +0 -3
  945. package/build/esm/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.d.ts +0 -10
  946. package/build/esm/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.js +0 -34
  947. package/build/esm/lib/unstable/kit/controls/CheckboxGroup/index.d.ts +0 -1
  948. package/build/esm/lib/unstable/kit/controls/CheckboxGroup/index.js +0 -1
  949. package/build/esm/lib/unstable/kit/controls/ColorPicker/ColorPicker.d.ts +0 -6
  950. package/build/esm/lib/unstable/kit/controls/ColorPicker/ColorPicker.js +0 -21
  951. package/build/esm/lib/unstable/kit/controls/ColorPicker/index.d.ts +0 -1
  952. package/build/esm/lib/unstable/kit/controls/ColorPicker/index.js +0 -1
  953. package/build/esm/lib/unstable/kit/controls/DateInput/DateInput.css +0 -3
  954. package/build/esm/lib/unstable/kit/controls/DateInput/DateInput.d.ts +0 -9
  955. package/build/esm/lib/unstable/kit/controls/DateInput/DateInput.js +0 -53
  956. package/build/esm/lib/unstable/kit/controls/MultiSelect/MultiSelect.d.ts +0 -8
  957. package/build/esm/lib/unstable/kit/controls/MultiSelect/MultiSelect.js +0 -32
  958. package/build/esm/lib/unstable/kit/controls/MultiSelect/index.d.ts +0 -1
  959. package/build/esm/lib/unstable/kit/controls/MultiSelect/index.js +0 -1
  960. package/build/esm/lib/unstable/kit/controls/NumberBase/Number.d.ts +0 -6
  961. package/build/esm/lib/unstable/kit/controls/NumberBase/Number.js +0 -8
  962. package/build/esm/lib/unstable/kit/controls/NumberBase/index.d.ts +0 -1
  963. package/build/esm/lib/unstable/kit/controls/NumberBase/index.js +0 -1
  964. package/build/esm/lib/unstable/kit/controls/ObjectBase/ObjectBase.d.ts +0 -8
  965. package/build/esm/lib/unstable/kit/controls/ObjectBase/ObjectBase.js +0 -29
  966. package/build/esm/lib/unstable/kit/controls/ObjectBase/index.d.ts +0 -1
  967. package/build/esm/lib/unstable/kit/controls/ObjectBase/index.js +0 -1
  968. package/build/esm/lib/unstable/kit/controls/Password/Password.d.ts +0 -6
  969. package/build/esm/lib/unstable/kit/controls/Password/Password.js +0 -8
  970. package/build/esm/lib/unstable/kit/controls/Password/index.d.ts +0 -1
  971. package/build/esm/lib/unstable/kit/controls/Password/index.js +0 -1
  972. package/build/esm/lib/unstable/kit/controls/RadioGroup/RadioGroup.css +0 -3
  973. package/build/esm/lib/unstable/kit/controls/RadioGroup/RadioGroup.d.ts +0 -9
  974. package/build/esm/lib/unstable/kit/controls/RadioGroup/RadioGroup.js +0 -22
  975. package/build/esm/lib/unstable/kit/controls/RadioGroup/index.d.ts +0 -1
  976. package/build/esm/lib/unstable/kit/controls/RadioGroup/index.js +0 -1
  977. package/build/esm/lib/unstable/kit/controls/RangeSlider/RangeSlider.css +0 -3
  978. package/build/esm/lib/unstable/kit/controls/RangeSlider/RangeSlider.d.ts +0 -8
  979. package/build/esm/lib/unstable/kit/controls/RangeSlider/RangeSlider.js +0 -31
  980. package/build/esm/lib/unstable/kit/controls/RangeSlider/index.d.ts +0 -1
  981. package/build/esm/lib/unstable/kit/controls/RangeSlider/index.js +0 -1
  982. package/build/esm/lib/unstable/kit/controls/Select/Select.d.ts +0 -9
  983. package/build/esm/lib/unstable/kit/controls/Select/Select.js +0 -29
  984. package/build/esm/lib/unstable/kit/controls/Select/index.d.ts +0 -1
  985. package/build/esm/lib/unstable/kit/controls/Select/index.js +0 -1
  986. package/build/esm/lib/unstable/kit/controls/Slider/Slider.css +0 -3
  987. package/build/esm/lib/unstable/kit/controls/Slider/Slider.d.ts +0 -7
  988. package/build/esm/lib/unstable/kit/controls/Slider/Slider.js +0 -16
  989. package/build/esm/lib/unstable/kit/controls/Slider/index.d.ts +0 -1
  990. package/build/esm/lib/unstable/kit/controls/Slider/index.js +0 -1
  991. package/build/esm/lib/unstable/kit/controls/StringBase/StringBase.d.ts +0 -6
  992. package/build/esm/lib/unstable/kit/controls/StringBase/StringBase.js +0 -8
  993. package/build/esm/lib/unstable/kit/controls/StringBase/index.d.ts +0 -1
  994. package/build/esm/lib/unstable/kit/controls/StringBase/index.js +0 -1
  995. package/build/esm/lib/unstable/kit/controls/Switch/Switch.css +0 -5
  996. package/build/esm/lib/unstable/kit/controls/Switch/Switch.d.ts +0 -7
  997. package/build/esm/lib/unstable/kit/controls/Switch/Switch.js +0 -13
  998. package/build/esm/lib/unstable/kit/controls/Switch/index.d.ts +0 -1
  999. package/build/esm/lib/unstable/kit/controls/Switch/index.js +0 -1
  1000. package/build/esm/lib/unstable/kit/controls/TextArea/TextArea.d.ts +0 -6
  1001. package/build/esm/lib/unstable/kit/controls/TextArea/TextArea.js +0 -8
  1002. package/build/esm/lib/unstable/kit/controls/TextArea/index.d.ts +0 -1
  1003. package/build/esm/lib/unstable/kit/controls/TextArea/index.js +0 -1
  1004. package/build/esm/lib/unstable/kit/controls/index.d.ts +0 -16
  1005. package/build/esm/lib/unstable/kit/controls/index.js +0 -16
  1006. package/build/esm/lib/unstable/kit/wrappers/Row/Row.css +0 -27
  1007. package/build/esm/lib/unstable/kit/wrappers/Row/Row.d.ts +0 -7
  1008. package/build/esm/lib/unstable/kit/wrappers/Row/Row.js +0 -31
  1009. package/build/esm/lib/unstable/kit/wrappers/Row/index.d.ts +0 -1
  1010. package/build/esm/lib/unstable/kit/wrappers/Row/index.js +0 -1
  1011. package/build/esm/lib/unstable/kit/wrappers/Transparent/Transparent.css +0 -6
  1012. package/build/esm/lib/unstable/kit/wrappers/Transparent/Transparent.d.ts +0 -4
  1013. package/build/esm/lib/unstable/kit/wrappers/Transparent/Transparent.js +0 -12
  1014. package/build/esm/lib/unstable/kit/wrappers/index.d.ts +0 -2
  1015. package/build/esm/lib/unstable/kit/wrappers/index.js +0 -2
  1016. /package/build/cjs/lib/unstable/core/{Entity → SchemaRendererNode}/types.js +0 -0
  1017. /package/build/cjs/lib/unstable/core/{useSchemaRenderer/mutators/async-validation/types.js → types/jsl-errors.js} +0 -0
  1018. /package/build/cjs/lib/unstable/core/useSchemaRenderer/{mutators/external-errors/types.js → types/patches.js} +0 -0
  1019. /package/build/cjs/lib/unstable/core/useSchemaRenderer/{mutators/schema-mutators/types.js → types/state.js} +0 -0
  1020. /package/build/cjs/lib/unstable/core/useSchemaRenderer/{mutators/trigger-fields/types.js → types/subscription.js} +0 -0
  1021. /package/build/cjs/lib/unstable/core/useSchemaRenderer/{types.js → types/validation.js} +0 -0
  1022. /package/build/cjs/lib/unstable/kit/{controls → form-entities}/DateInput/index.d.ts +0 -0
  1023. /package/build/cjs/lib/unstable/kit/{controls → form-entities}/DateInput/index.js +0 -0
  1024. /package/build/cjs/lib/unstable/kit/{wrappers → layouts}/Transparent/index.d.ts +0 -0
  1025. /package/build/cjs/lib/unstable/kit/{wrappers → layouts}/Transparent/index.js +0 -0
  1026. /package/build/esm/lib/unstable/core/{Entity → SchemaRendererNode}/types.js +0 -0
  1027. /package/build/esm/lib/unstable/core/{useSchemaRenderer/mutators/async-validation/types.js → types/jsl-errors.js} +0 -0
  1028. /package/build/esm/lib/unstable/core/useSchemaRenderer/{mutators/external-errors/types.js → types/patches.js} +0 -0
  1029. /package/build/esm/lib/unstable/core/useSchemaRenderer/{mutators/schema-mutators/types.js → types/state.js} +0 -0
  1030. /package/build/esm/lib/unstable/core/useSchemaRenderer/{mutators/trigger-fields/types.js → types/subscription.js} +0 -0
  1031. /package/build/esm/lib/unstable/core/useSchemaRenderer/{types.js → types/validation.js} +0 -0
  1032. /package/build/esm/lib/unstable/kit/{controls → form-entities}/DateInput/index.d.ts +0 -0
  1033. /package/build/esm/lib/unstable/kit/{controls → form-entities}/DateInput/index.js +0 -0
  1034. /package/build/esm/lib/unstable/kit/{wrappers → layouts}/Transparent/index.d.ts +0 -0
  1035. /package/build/esm/lib/unstable/kit/{wrappers → layouts}/Transparent/index.js +0 -0
@@ -0,0 +1,2907 @@
1
+ /* eslint-disable complexity */
2
+ import get from 'lodash/get';
3
+ import set from 'lodash/set';
4
+ import { isArraySpec, isBooleanSpec, isNumberSpec, isObjectSpec, isStringSpec, } from '../../../core';
5
+ import { JsonSchemaType, NodeType } from '../../core';
6
+ export const layoutRules = {
7
+ row: (_spec, mutableSchema) => {
8
+ set(mutableSchema, 'nodeParameters.layout', 'row');
9
+ },
10
+ row_verbose: (_spec, mutableSchema) => {
11
+ set(mutableSchema, 'nodeParameters.layout', 'row');
12
+ set(mutableSchema, 'nodeParameters.layoutProps.descriptionType', 'bottom');
13
+ },
14
+ column: (_spec, mutableSchema) => {
15
+ set(mutableSchema, 'nodeParameters.layout', 'column');
16
+ },
17
+ accordeon: (_spec, mutableSchema) => {
18
+ set(mutableSchema, 'nodeParameters.layout', 'accordeon');
19
+ set(mutableSchema, 'nodeParameters.layoutProps.togglerProps.view', 'clear');
20
+ set(mutableSchema, 'nodeParameters.layoutProps.withIndent', true);
21
+ },
22
+ section: (_spec, mutableSchema) => {
23
+ set(mutableSchema, 'nodeParameters.layout', 'section');
24
+ set(mutableSchema, 'nodeParameters.layoutProps.variant', 'subheader-2');
25
+ },
26
+ section2: (_spec, mutableSchema) => {
27
+ // the new section title default (subheader-1) matches the old section2 title size
28
+ set(mutableSchema, 'nodeParameters.layout', 'section');
29
+ },
30
+ group: (_spec, mutableSchema) => {
31
+ set(mutableSchema, 'nodeParameters.layout', 'section');
32
+ set(mutableSchema, 'nodeParameters.layoutProps.variant', 'subheader-2');
33
+ set(mutableSchema, 'nodeParameters.layoutProps.withIndent', true);
34
+ },
35
+ group2: (_spec, mutableSchema) => {
36
+ set(mutableSchema, 'nodeParameters.layout', 'section');
37
+ set(mutableSchema, 'nodeParameters.layoutProps.withIndent', true);
38
+ },
39
+ table_item: (_spec, mutableSchema) => {
40
+ set(mutableSchema, 'nodeParameters.layout', 'cell');
41
+ },
42
+ transparent: (_spec, mutableSchema) => {
43
+ set(mutableSchema, 'nodeParameters.layout', 'transparent');
44
+ },
45
+ card_accordeon: (_spec, mutableSchema) => {
46
+ set(mutableSchema, 'nodeParameters.layout', 'card');
47
+ set(mutableSchema, 'nodeParameters.layoutProps.likeAccordeon', true);
48
+ },
49
+ card_section: (_spec, mutableSchema) => {
50
+ set(mutableSchema, 'nodeParameters.layout', 'card');
51
+ set(mutableSchema, 'nodeParameters.layoutProps.likeAccordeon', false);
52
+ },
53
+ accordeon_card: (_spec, mutableSchema) => {
54
+ set(mutableSchema, 'nodeParameters.layout', 'card');
55
+ set(mutableSchema, 'nodeParameters.layoutProps.likeAccordeon', true);
56
+ },
57
+ };
58
+ export const arrayInputTypeRules = {
59
+ select: (spec, mutableSchema, ctx) => {
60
+ var _a;
61
+ if (spec.defaultValue) {
62
+ set(mutableSchema, 'default', spec.defaultValue);
63
+ }
64
+ set(mutableSchema, 'type', JsonSchemaType.Array);
65
+ if (spec.required) {
66
+ set(mutableSchema, 'allOf', [
67
+ ...(mutableSchema.allOf || []),
68
+ { not: { enum: [null, undefined, '', false] } },
69
+ ]);
70
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
71
+ }
72
+ if (spec.maxLength) {
73
+ const maxItems = Number(spec.maxLength);
74
+ if (!isNaN(maxItems)) {
75
+ set(mutableSchema, 'maxItems', maxItems);
76
+ }
77
+ }
78
+ if (spec.minLength) {
79
+ const minItems = Number(spec.minLength);
80
+ if (!isNaN(minItems)) {
81
+ set(mutableSchema, 'minItems', minItems);
82
+ }
83
+ }
84
+ if (spec.enum) {
85
+ set(mutableSchema, 'items.enum', spec.enum);
86
+ }
87
+ // items for old select not expected
88
+ // if (spec.items) {}
89
+ if (spec.description) {
90
+ set(mutableSchema, 'nodeParameters.entityProps.enumDescriptions', spec.description);
91
+ }
92
+ if (spec.validator && spec.validator !== 'base') {
93
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
94
+ }
95
+ if (spec.viewSpec.disabled) {
96
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
97
+ }
98
+ set(mutableSchema, 'nodeParameters.type', NodeType.Array);
99
+ set(mutableSchema, 'nodeParameters.entity', 'select');
100
+ if (spec.viewSpec.layout) {
101
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
102
+ if (layoutRule) {
103
+ layoutRule(spec, mutableSchema, ctx);
104
+ }
105
+ else if (process.env.NODE_ENV !== 'production') {
106
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
107
+ }
108
+ }
109
+ if (spec.viewSpec.layoutTitle) {
110
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
111
+ }
112
+ if (spec.viewSpec.layoutDescription) {
113
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
114
+ }
115
+ if (spec.viewSpec.layoutOpen !== undefined) {
116
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
117
+ }
118
+ // itemLabel for old select not expected
119
+ // if (spec.viewSpec.itemLabel) {}
120
+ // itemPrefix for old select not expected
121
+ // if (spec.viewSpec.itemPrefix) {}
122
+ // table for old select not expected
123
+ // if (spec.viewSpec.table) {}
124
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
125
+ console.warn(`[dynamic-forms] Unknown array select view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
126
+ }
127
+ if (spec.viewSpec.placeholder) {
128
+ set(mutableSchema, 'nodeParameters.entityProps.placeholder', spec.viewSpec.placeholder);
129
+ }
130
+ // addButtonPosition for old select not expected
131
+ // if (spec.viewSpec.addButtonPosition) {}
132
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
133
+ console.warn(`[dynamic-forms] Unknown array select view spec key: "hidden"`);
134
+ }
135
+ if (spec.viewSpec.selectParams) {
136
+ if (spec.viewSpec.selectParams.filterPlaceholder) {
137
+ set(mutableSchema, 'nodeParameters.entityProps.filterPlaceholder', spec.viewSpec.selectParams.filterPlaceholder);
138
+ }
139
+ if (spec.viewSpec.selectParams.meta) {
140
+ set(mutableSchema, 'nodeParameters.entityProps.optionsMeta', spec.viewSpec.selectParams.meta);
141
+ }
142
+ }
143
+ if (spec.viewSpec.inputProps) {
144
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
145
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
146
+ });
147
+ }
148
+ if (spec.viewSpec.layoutProps) {
149
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
150
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
151
+ });
152
+ }
153
+ // checkboxGroupParams for old select not expected
154
+ // if (spec.viewSpec.checkboxGroupParams) {}
155
+ },
156
+ table: (spec, mutableSchema, ctx) => {
157
+ var _a;
158
+ if (spec.defaultValue) {
159
+ set(mutableSchema, 'default', spec.defaultValue);
160
+ }
161
+ set(mutableSchema, 'type', JsonSchemaType.Array);
162
+ if (spec.required) {
163
+ set(mutableSchema, 'allOf', [
164
+ ...(mutableSchema.allOf || []),
165
+ { not: { enum: [null, undefined, '', false] } },
166
+ ]);
167
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
168
+ }
169
+ if (spec.maxLength) {
170
+ const maxItems = Number(spec.maxLength);
171
+ if (!isNaN(maxItems)) {
172
+ set(mutableSchema, 'maxItems', maxItems);
173
+ }
174
+ }
175
+ if (spec.minLength) {
176
+ const minItems = Number(spec.minLength);
177
+ if (!isNaN(minItems)) {
178
+ set(mutableSchema, 'minItems', minItems);
179
+ }
180
+ }
181
+ // enum for old table not expected
182
+ // if (spec.enum) {}
183
+ if (spec.items && isObjectSpec(spec.items)) {
184
+ Object.entries(spec.items.properties || {}).forEach(([key, value]) => {
185
+ set(mutableSchema, ['items', 'properties', key], specToJsonSchema(value, get(mutableSchema, ['items', 'properties', key])));
186
+ });
187
+ }
188
+ // description for old table not expected
189
+ // if (spec.description) {}
190
+ if (spec.validator && spec.validator !== 'base') {
191
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
192
+ }
193
+ if (spec.viewSpec.disabled) {
194
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
195
+ }
196
+ set(mutableSchema, 'nodeParameters.type', NodeType.Array);
197
+ set(mutableSchema, 'nodeParameters.entity', 'table');
198
+ if (spec.viewSpec.layout) {
199
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
200
+ if (layoutRule) {
201
+ layoutRule(spec, mutableSchema, ctx);
202
+ }
203
+ else if (process.env.NODE_ENV !== 'production') {
204
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
205
+ }
206
+ }
207
+ if (spec.viewSpec.layoutTitle) {
208
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
209
+ }
210
+ if (spec.viewSpec.layoutDescription) {
211
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
212
+ }
213
+ if (spec.viewSpec.layoutOpen !== undefined) {
214
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
215
+ }
216
+ if (spec.viewSpec.itemLabel) {
217
+ set(mutableSchema, 'nodeParameters.entityProps.addButtonText', spec.viewSpec.itemLabel);
218
+ }
219
+ // itemPrefix for old table not expected
220
+ // if (spec.viewSpec.itemPrefix) {}
221
+ if (spec.viewSpec.table) {
222
+ const order = [];
223
+ spec.viewSpec.table.forEach(({ description, label, property, width }) => {
224
+ order.push(property);
225
+ if (label) {
226
+ set(mutableSchema, ['items', 'properties', property, 'title'], label);
227
+ }
228
+ if (description) {
229
+ set(mutableSchema, ['items', 'properties', property, 'description'], description);
230
+ }
231
+ if (width !== undefined && process.env.NODE_ENV !== 'production') {
232
+ console.warn(`[dynamic-forms] Unknown array table view spec key: "table[].width", value - ${width}`);
233
+ }
234
+ });
235
+ set(mutableSchema, 'nodeParameters.entityProps.order', order);
236
+ }
237
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
238
+ console.warn(`[dynamic-forms] Unknown array table view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
239
+ }
240
+ // placeholder for old table not expected
241
+ // if (spec.viewSpec.placeholder) {}
242
+ if (spec.viewSpec.addButtonPosition && process.env.NODE_ENV !== 'production') {
243
+ console.warn(`[dynamic-forms] Unknown array table view spec key: "addButtonPosition", value - ${spec.viewSpec.addButtonPosition}`);
244
+ }
245
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
246
+ console.warn(`[dynamic-forms] Unknown array table view spec key: "hidden"`);
247
+ }
248
+ // selectParams for old table not expected
249
+ // if (spec.viewSpec.selectParams) {}
250
+ if (spec.viewSpec.inputProps) {
251
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
252
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
253
+ });
254
+ }
255
+ if (spec.viewSpec.layoutProps) {
256
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
257
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
258
+ });
259
+ }
260
+ // checkboxGroupParams for old table not expected
261
+ // if (spec.viewSpec.checkboxGroupParams) {}
262
+ },
263
+ base: (spec, mutableSchema, ctx) => {
264
+ var _a;
265
+ if (spec.defaultValue) {
266
+ set(mutableSchema, 'default', spec.defaultValue);
267
+ }
268
+ set(mutableSchema, 'type', JsonSchemaType.Array);
269
+ if (spec.required) {
270
+ set(mutableSchema, 'allOf', [
271
+ ...(mutableSchema.allOf || []),
272
+ { not: { enum: [null, undefined, '', false] } },
273
+ ]);
274
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
275
+ }
276
+ if (spec.maxLength) {
277
+ const maxItems = Number(spec.maxLength);
278
+ if (!isNaN(maxItems)) {
279
+ set(mutableSchema, 'maxItems', maxItems);
280
+ }
281
+ }
282
+ if (spec.minLength) {
283
+ const minItems = Number(spec.minLength);
284
+ if (!isNaN(minItems)) {
285
+ set(mutableSchema, 'minItems', minItems);
286
+ }
287
+ }
288
+ // enum for old base not expected
289
+ // if (spec.enum) {}
290
+ if (spec.items) {
291
+ set(mutableSchema, 'items', specToJsonSchema(spec.items, get(mutableSchema, 'items')));
292
+ }
293
+ // description for old base not expected
294
+ // if (spec.description) {}
295
+ if (spec.validator && spec.validator !== 'base') {
296
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
297
+ }
298
+ if (spec.viewSpec.disabled) {
299
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
300
+ }
301
+ set(mutableSchema, 'nodeParameters.type', NodeType.Array);
302
+ set(mutableSchema, 'nodeParameters.entity', 'base');
303
+ if (spec.viewSpec.layout) {
304
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
305
+ if (layoutRule) {
306
+ layoutRule(spec, mutableSchema, ctx);
307
+ }
308
+ else if (process.env.NODE_ENV !== 'production') {
309
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
310
+ }
311
+ }
312
+ if (spec.viewSpec.layoutTitle) {
313
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
314
+ }
315
+ if (spec.viewSpec.layoutDescription) {
316
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
317
+ }
318
+ if (spec.viewSpec.layoutOpen !== undefined) {
319
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
320
+ }
321
+ if (spec.viewSpec.itemLabel) {
322
+ set(mutableSchema, 'nodeParameters.entityProps.addButtonText', spec.viewSpec.itemLabel);
323
+ }
324
+ if (spec.viewSpec.itemPrefix && process.env.NODE_ENV !== 'production') {
325
+ console.warn(`[dynamic-forms] Unknown array base view spec key: "itemPrefix", value - ${spec.viewSpec.itemPrefix}`);
326
+ }
327
+ // table for old base not expected
328
+ // if (spec.viewSpec.table) {}
329
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
330
+ console.warn(`[dynamic-forms] Unknown array base view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
331
+ }
332
+ // placeholder for old base not expected
333
+ // if (spec.viewSpec.placeholder) {}
334
+ if (spec.viewSpec.addButtonPosition && process.env.NODE_ENV !== 'production') {
335
+ console.warn(`[dynamic-forms] Unknown array base view spec key: "addButtonPosition", value - ${spec.viewSpec.addButtonPosition}`);
336
+ }
337
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
338
+ console.warn(`[dynamic-forms] Unknown array base view spec key: "hidden"`);
339
+ }
340
+ // selectParams for old base not expected
341
+ // if (spec.viewSpec.selectParams) {}
342
+ if (spec.viewSpec.inputProps) {
343
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
344
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
345
+ });
346
+ }
347
+ if (spec.viewSpec.layoutProps) {
348
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
349
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
350
+ });
351
+ }
352
+ // checkboxGroupParams for old base not expected
353
+ // if (spec.viewSpec.checkboxGroupParams) {}
354
+ },
355
+ checkbox_group: (spec, mutableSchema, ctx) => {
356
+ var _a;
357
+ if (spec.defaultValue) {
358
+ set(mutableSchema, 'default', spec.defaultValue);
359
+ }
360
+ set(mutableSchema, 'type', JsonSchemaType.Array);
361
+ if (spec.required) {
362
+ set(mutableSchema, 'allOf', [
363
+ ...(mutableSchema.allOf || []),
364
+ { not: { enum: [null, undefined, '', false] } },
365
+ ]);
366
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
367
+ }
368
+ if (spec.maxLength) {
369
+ const maxItems = Number(spec.maxLength);
370
+ if (!isNaN(maxItems)) {
371
+ set(mutableSchema, 'maxItems', maxItems);
372
+ }
373
+ }
374
+ if (spec.minLength) {
375
+ const minItems = Number(spec.minLength);
376
+ if (!isNaN(minItems)) {
377
+ set(mutableSchema, 'minItems', minItems);
378
+ }
379
+ }
380
+ if (spec.enum) {
381
+ set(mutableSchema, 'items.enum', spec.enum);
382
+ }
383
+ // items for old checkbox_group not expected
384
+ // if (spec.items) {}
385
+ if (spec.description) {
386
+ set(mutableSchema, 'nodeParameters.entityProps.enumDescriptions', spec.description);
387
+ }
388
+ if (spec.validator && spec.validator !== 'base') {
389
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
390
+ }
391
+ if (spec.viewSpec.disabled) {
392
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
393
+ }
394
+ set(mutableSchema, 'nodeParameters.type', NodeType.Array);
395
+ set(mutableSchema, 'nodeParameters.entity', 'checkbox_group');
396
+ if (spec.viewSpec.layout) {
397
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
398
+ if (layoutRule) {
399
+ layoutRule(spec, mutableSchema, ctx);
400
+ }
401
+ else if (process.env.NODE_ENV !== 'production') {
402
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
403
+ }
404
+ }
405
+ if (spec.viewSpec.layoutTitle) {
406
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
407
+ }
408
+ if (spec.viewSpec.layoutDescription) {
409
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
410
+ }
411
+ if (spec.viewSpec.layoutOpen !== undefined) {
412
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
413
+ }
414
+ // itemLabel for old checkbox_group not expected
415
+ // if (spec.viewSpec.itemLabel) {}
416
+ // itemPrefix for old checkbox_group not expected
417
+ // if (spec.viewSpec.itemPrefix) {}
418
+ // table for old checkbox_group not expected
419
+ // if (spec.viewSpec.table) {}
420
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
421
+ console.warn(`[dynamic-forms] Unknown array checkbox_group view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
422
+ }
423
+ // placeholder for old checkbox_group not expected
424
+ // if (spec.viewSpec.placeholder) {}
425
+ // addButtonPosition for old checkbox_group not expected
426
+ // if (spec.viewSpec.addButtonPosition) {}
427
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
428
+ console.warn(`[dynamic-forms] Unknown array checkbox_group view spec key: "hidden"`);
429
+ }
430
+ // selectParams for old checkbox_group not expected
431
+ // if (spec.viewSpec.selectParams) {}
432
+ if (spec.viewSpec.inputProps) {
433
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
434
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
435
+ });
436
+ }
437
+ if (spec.viewSpec.layoutProps) {
438
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
439
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
440
+ });
441
+ }
442
+ if (spec.viewSpec.checkboxGroupParams) {
443
+ if (spec.viewSpec.checkboxGroupParams.placement) {
444
+ set(mutableSchema, 'nodeParameters.entityProps.direction', spec.viewSpec.checkboxGroupParams.placement === 'vertical' ? 'column' : 'row');
445
+ }
446
+ if (spec.viewSpec.checkboxGroupParams.disabled) {
447
+ set(mutableSchema, 'nodeParameters.entityProps.optionsDisabled', spec.viewSpec.checkboxGroupParams.disabled);
448
+ }
449
+ }
450
+ },
451
+ };
452
+ export const booleanInputTypeRules = {
453
+ base: (spec, mutableSchema, ctx) => {
454
+ var _a;
455
+ if (spec.defaultValue !== undefined) {
456
+ set(mutableSchema, 'default', spec.defaultValue);
457
+ }
458
+ set(mutableSchema, 'type', JsonSchemaType.Boolean);
459
+ if (spec.required) {
460
+ set(mutableSchema, 'allOf', [
461
+ ...(mutableSchema.allOf || []),
462
+ { not: { enum: [null, undefined, '', false] } },
463
+ ]);
464
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
465
+ }
466
+ if (spec.validator && spec.validator !== 'base') {
467
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
468
+ }
469
+ if (spec.viewSpec.disabled) {
470
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
471
+ }
472
+ set(mutableSchema, 'nodeParameters.type', NodeType.Boolean);
473
+ set(mutableSchema, 'nodeParameters.entity', 'base');
474
+ if (spec.viewSpec.layout) {
475
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
476
+ if (layoutRule) {
477
+ layoutRule(spec, mutableSchema, ctx);
478
+ }
479
+ else if (process.env.NODE_ENV !== 'production') {
480
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
481
+ }
482
+ }
483
+ if (spec.viewSpec.layoutTitle) {
484
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
485
+ }
486
+ if (spec.viewSpec.layoutDescription) {
487
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
488
+ }
489
+ if (spec.viewSpec.layoutOpen !== undefined) {
490
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
491
+ }
492
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
493
+ console.warn(`[dynamic-forms] Unknown boolean base view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
494
+ }
495
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
496
+ console.warn(`[dynamic-forms] Unknown boolean base view spec key: "hidden"`);
497
+ }
498
+ if (spec.viewSpec.inputProps) {
499
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
500
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
501
+ });
502
+ }
503
+ if (spec.viewSpec.layoutProps) {
504
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
505
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
506
+ });
507
+ }
508
+ if (spec.viewSpec.viewColor) {
509
+ set(mutableSchema, 'nodeParameters.overviewEntityProps.viewColor', spec.viewSpec.viewColor);
510
+ }
511
+ },
512
+ switch: (spec, mutableSchema, ctx) => {
513
+ var _a;
514
+ if (spec.defaultValue !== undefined) {
515
+ set(mutableSchema, 'default', spec.defaultValue);
516
+ }
517
+ set(mutableSchema, 'type', JsonSchemaType.Boolean);
518
+ if (spec.required) {
519
+ set(mutableSchema, 'allOf', [
520
+ ...(mutableSchema.allOf || []),
521
+ { not: { enum: [null, undefined, '', false] } },
522
+ ]);
523
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
524
+ }
525
+ if (spec.validator && spec.validator !== 'base') {
526
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
527
+ }
528
+ if (spec.viewSpec.disabled) {
529
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
530
+ }
531
+ set(mutableSchema, 'nodeParameters.type', NodeType.Boolean);
532
+ set(mutableSchema, 'nodeParameters.entity', 'switch');
533
+ if (spec.viewSpec.layout) {
534
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
535
+ if (layoutRule) {
536
+ layoutRule(spec, mutableSchema, ctx);
537
+ }
538
+ else if (process.env.NODE_ENV !== 'production') {
539
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
540
+ }
541
+ }
542
+ if (spec.viewSpec.layoutTitle) {
543
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
544
+ }
545
+ if (spec.viewSpec.layoutDescription) {
546
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
547
+ }
548
+ if (spec.viewSpec.layoutOpen !== undefined) {
549
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
550
+ }
551
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
552
+ console.warn(`[dynamic-forms] Unknown boolean switch view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
553
+ }
554
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
555
+ console.warn(`[dynamic-forms] Unknown boolean switch view spec key: "hidden"`);
556
+ }
557
+ if (spec.viewSpec.inputProps) {
558
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
559
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
560
+ });
561
+ }
562
+ if (spec.viewSpec.layoutProps) {
563
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
564
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
565
+ });
566
+ }
567
+ if (spec.viewSpec.viewColor) {
568
+ set(mutableSchema, 'nodeParameters.overviewEntityProps.viewColor', spec.viewSpec.viewColor);
569
+ }
570
+ },
571
+ };
572
+ export const numberInputTypeRules = {
573
+ base: (spec, mutableSchema, ctx) => {
574
+ var _a;
575
+ if (spec.defaultValue !== undefined) {
576
+ set(mutableSchema, 'default', spec.defaultValue);
577
+ }
578
+ set(mutableSchema, 'type', JsonSchemaType.Number);
579
+ if (spec.required) {
580
+ set(mutableSchema, 'allOf', [
581
+ ...(mutableSchema.allOf || []),
582
+ { not: { enum: [null, undefined, '', false] } },
583
+ ]);
584
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
585
+ }
586
+ if (spec.maximum !== undefined) {
587
+ const maximum = Number(spec.maximum);
588
+ if (!isNaN(maximum)) {
589
+ set(mutableSchema, 'maximum', maximum);
590
+ }
591
+ }
592
+ if (spec.minimum !== undefined) {
593
+ const minimum = Number(spec.minimum);
594
+ if (!isNaN(minimum)) {
595
+ set(mutableSchema, 'minimum', minimum);
596
+ }
597
+ }
598
+ if (spec.format === 'int64') {
599
+ set(mutableSchema, 'type', JsonSchemaType.Integer);
600
+ }
601
+ if (spec.validator && spec.validator !== 'base') {
602
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
603
+ }
604
+ if (spec.viewSpec.disabled) {
605
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
606
+ }
607
+ set(mutableSchema, 'nodeParameters.type', NodeType.Number);
608
+ set(mutableSchema, 'nodeParameters.entity', 'base');
609
+ if (spec.viewSpec.layout) {
610
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
611
+ if (layoutRule) {
612
+ layoutRule(spec, mutableSchema, ctx);
613
+ }
614
+ else if (process.env.NODE_ENV !== 'production') {
615
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
616
+ }
617
+ }
618
+ if (spec.viewSpec.layoutTitle) {
619
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
620
+ }
621
+ if (spec.viewSpec.layoutDescription) {
622
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
623
+ }
624
+ if (spec.viewSpec.layoutOpen !== undefined) {
625
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
626
+ }
627
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
628
+ console.warn(`[dynamic-forms] Unknown number base view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
629
+ }
630
+ if (spec.viewSpec.placeholder) {
631
+ set(mutableSchema, 'nodeParameters.entityProps.placeholder', spec.viewSpec.placeholder);
632
+ }
633
+ if (spec.viewSpec.copy) {
634
+ set(mutableSchema, 'nodeParameters.layoutProps.copy', true);
635
+ }
636
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
637
+ console.warn(`[dynamic-forms] Unknown number base view spec key: "hidden"`);
638
+ }
639
+ if (spec.viewSpec.inputProps) {
640
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
641
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
642
+ });
643
+ }
644
+ if (spec.viewSpec.layoutProps) {
645
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
646
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
647
+ });
648
+ }
649
+ },
650
+ range_input_picker: (spec, mutableSchema, ctx) => {
651
+ var _a;
652
+ if (spec.defaultValue !== undefined) {
653
+ set(mutableSchema, 'default', spec.defaultValue);
654
+ }
655
+ set(mutableSchema, 'type', JsonSchemaType.Number);
656
+ if (spec.required) {
657
+ set(mutableSchema, 'allOf', [
658
+ ...(mutableSchema.allOf || []),
659
+ { not: { enum: [null, undefined, '', false] } },
660
+ ]);
661
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
662
+ }
663
+ if (spec.maximum !== undefined) {
664
+ const maximum = Number(spec.maximum);
665
+ if (!isNaN(maximum)) {
666
+ set(mutableSchema, 'maximum', maximum);
667
+ }
668
+ }
669
+ if (spec.minimum !== undefined) {
670
+ const minimum = Number(spec.minimum);
671
+ if (!isNaN(minimum)) {
672
+ set(mutableSchema, 'minimum', minimum);
673
+ }
674
+ }
675
+ if (spec.format === 'int64') {
676
+ set(mutableSchema, 'type', JsonSchemaType.Integer);
677
+ }
678
+ if (spec.validator && spec.validator !== 'base') {
679
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
680
+ }
681
+ if (spec.viewSpec.disabled) {
682
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
683
+ }
684
+ set(mutableSchema, 'nodeParameters.type', NodeType.Number);
685
+ set(mutableSchema, 'nodeParameters.entity', 'slider');
686
+ if (spec.viewSpec.layout) {
687
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
688
+ if (layoutRule) {
689
+ layoutRule(spec, mutableSchema, ctx);
690
+ }
691
+ else if (process.env.NODE_ENV !== 'production') {
692
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
693
+ }
694
+ }
695
+ if (spec.viewSpec.layoutTitle) {
696
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
697
+ }
698
+ if (spec.viewSpec.layoutDescription) {
699
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
700
+ }
701
+ if (spec.viewSpec.layoutOpen !== undefined) {
702
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
703
+ }
704
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
705
+ console.warn(`[dynamic-forms] Unknown number range_input_picker view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
706
+ }
707
+ if (spec.viewSpec.placeholder && process.env.NODE_ENV !== 'production') {
708
+ console.warn(`[dynamic-forms] Unknown number range_input_picker view spec key: "placeholder", value - ${spec.viewSpec.placeholder}`);
709
+ }
710
+ if (spec.viewSpec.copy) {
711
+ set(mutableSchema, 'nodeParameters.layoutProps.copy', true);
712
+ }
713
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
714
+ console.warn(`[dynamic-forms] Unknown number range_input_picker view spec key: "hidden"`);
715
+ }
716
+ if (spec.viewSpec.inputProps) {
717
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
718
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
719
+ });
720
+ }
721
+ if (spec.viewSpec.layoutProps) {
722
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
723
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
724
+ });
725
+ }
726
+ },
727
+ };
728
+ export const objectInputTypeRules = {
729
+ oneof: (spec, mutableSchema) => {
730
+ var _a, _b, _c, _d, _e;
731
+ const booleanToggler = ((_a = spec.viewSpec.oneOfParams) === null || _a === void 0 ? void 0 : _a.toggler) === 'checkbox' ||
732
+ ((_b = spec.viewSpec.oneOfParams) === null || _b === void 0 ? void 0 : _b.toggler) === 'switch';
733
+ if (spec.defaultValue !== undefined) {
734
+ set(mutableSchema, 'default', spec.defaultValue);
735
+ }
736
+ set(mutableSchema, 'type', JsonSchemaType.Object);
737
+ if (spec.required) {
738
+ set(mutableSchema, 'allOf', [
739
+ ...(mutableSchema.allOf || []),
740
+ { not: { enum: [null, undefined, '', false] } },
741
+ ]);
742
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
743
+ }
744
+ if (spec.properties) {
745
+ Object.entries(spec.properties).forEach(([key, childSpec]) => {
746
+ set(mutableSchema, ['properties', key], specToJsonSchema(childSpec, get(mutableSchema, ['properties', key])));
747
+ if (!get(mutableSchema, ['properties', key, 'nodeParameters', 'layout'])) {
748
+ set(mutableSchema, ['properties', key, 'nodeParameters', 'layout'], 'transparent');
749
+ }
750
+ });
751
+ if (!booleanToggler) {
752
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.enum', Object.keys(spec.properties));
753
+ }
754
+ }
755
+ if (spec.description) {
756
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entityProps.enumDescriptions', spec.description);
757
+ }
758
+ if (spec.validator && spec.validator !== 'base') {
759
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
760
+ }
761
+ if (spec.viewSpec.disabled) {
762
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
763
+ }
764
+ set(mutableSchema, 'nodeParameters.type', NodeType.Object);
765
+ set(mutableSchema, 'nodeParameters.entity', 'one_of_nested');
766
+ set(mutableSchema, 'nodeParameters.entityProps.withIndent', true);
767
+ if (booleanToggler) {
768
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.type', JsonSchemaType.Boolean);
769
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.type', NodeType.Boolean);
770
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entity', ((_c = spec.viewSpec.oneOfParams) === null || _c === void 0 ? void 0 : _c.toggler) === 'switch' ? 'switch' : 'base');
771
+ }
772
+ else {
773
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.type', JsonSchemaType.String);
774
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.type', NodeType.String);
775
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entity', ((_d = spec.viewSpec.oneOfParams) === null || _d === void 0 ? void 0 : _d.toggler) === 'radio'
776
+ ? 'radio_group'
777
+ : 'segmented_radio_group');
778
+ }
779
+ set(mutableSchema, 'nodeParameters.layout', 'transparent');
780
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.layout', 'row');
781
+ if (spec.viewSpec.layoutTitle) {
782
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.title', spec.viewSpec.layoutTitle);
783
+ }
784
+ if (spec.viewSpec.layoutDescription) {
785
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.description', spec.viewSpec.layoutDescription);
786
+ }
787
+ if (spec.viewSpec.layoutOpen !== undefined) {
788
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
789
+ }
790
+ if (spec.viewSpec.order && !booleanToggler) {
791
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.enum', spec.viewSpec.order);
792
+ }
793
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
794
+ console.warn(`[dynamic-forms] Unknown object oneof view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
795
+ }
796
+ if ((_e = spec.viewSpec.oneOfParams) === null || _e === void 0 ? void 0 : _e.booleanMap) {
797
+ set(mutableSchema, 'nodeParameters.entityProps.booleanToKey', spec.viewSpec.oneOfParams.booleanMap);
798
+ }
799
+ if (spec.viewSpec.placeholder) {
800
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entityProps.placeholder', spec.viewSpec.placeholder);
801
+ }
802
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
803
+ console.warn(`[dynamic-forms] Unknown object oneof view spec key: "hidden"`);
804
+ }
805
+ if (spec.viewSpec.inputProps) {
806
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
807
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
808
+ });
809
+ }
810
+ if (spec.viewSpec.layoutProps) {
811
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
812
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
813
+ });
814
+ }
815
+ // delimiter for old oneof not expected
816
+ // if (spec.viewSpec.delimiter) {}
817
+ },
818
+ oneof_flat: (spec, mutableSchema) => {
819
+ var _a, _b, _c, _d, _e;
820
+ const booleanToggler = ((_a = spec.viewSpec.oneOfParams) === null || _a === void 0 ? void 0 : _a.toggler) === 'checkbox' ||
821
+ ((_b = spec.viewSpec.oneOfParams) === null || _b === void 0 ? void 0 : _b.toggler) === 'switch';
822
+ if (spec.defaultValue !== undefined) {
823
+ set(mutableSchema, 'default', spec.defaultValue);
824
+ }
825
+ set(mutableSchema, 'type', JsonSchemaType.Object);
826
+ if (spec.required) {
827
+ set(mutableSchema, 'allOf', [
828
+ ...(mutableSchema.allOf || []),
829
+ { not: { enum: [null, undefined, '', false] } },
830
+ ]);
831
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
832
+ }
833
+ if (spec.properties) {
834
+ Object.entries(spec.properties).forEach(([key, childSpec]) => {
835
+ set(mutableSchema, ['properties', key], specToJsonSchema(childSpec, get(mutableSchema, ['properties', key])));
836
+ if (!get(mutableSchema, ['properties', key, 'nodeParameters', 'layout'])) {
837
+ set(mutableSchema, ['properties', key, 'nodeParameters', 'layout'], 'transparent');
838
+ }
839
+ });
840
+ if (!booleanToggler) {
841
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.enum', Object.keys(spec.properties));
842
+ }
843
+ }
844
+ if (spec.description) {
845
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entityProps.enumDescriptions', spec.description);
846
+ }
847
+ if (spec.validator && spec.validator !== 'base') {
848
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
849
+ }
850
+ if (spec.viewSpec.disabled) {
851
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
852
+ }
853
+ set(mutableSchema, 'nodeParameters.type', NodeType.Object);
854
+ set(mutableSchema, 'nodeParameters.entity', 'one_of_nested');
855
+ if (booleanToggler) {
856
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.type', JsonSchemaType.Boolean);
857
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.type', NodeType.Boolean);
858
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entity', ((_c = spec.viewSpec.oneOfParams) === null || _c === void 0 ? void 0 : _c.toggler) === 'switch' ? 'switch' : 'base');
859
+ }
860
+ else {
861
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.type', JsonSchemaType.String);
862
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.type', NodeType.String);
863
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entity', ((_d = spec.viewSpec.oneOfParams) === null || _d === void 0 ? void 0 : _d.toggler) === 'radio'
864
+ ? 'radio_group'
865
+ : 'segmented_radio_group');
866
+ }
867
+ set(mutableSchema, 'nodeParameters.layout', 'transparent');
868
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.layout', 'row');
869
+ if (spec.viewSpec.layoutTitle) {
870
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.title', spec.viewSpec.layoutTitle);
871
+ }
872
+ if (spec.viewSpec.layoutDescription) {
873
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.description', spec.viewSpec.layoutDescription);
874
+ }
875
+ if (spec.viewSpec.layoutOpen !== undefined) {
876
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
877
+ }
878
+ if (spec.viewSpec.order && !booleanToggler) {
879
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.enum', spec.viewSpec.order);
880
+ }
881
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
882
+ console.warn(`[dynamic-forms] Unknown object oneof_flat view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
883
+ }
884
+ if ((_e = spec.viewSpec.oneOfParams) === null || _e === void 0 ? void 0 : _e.booleanMap) {
885
+ set(mutableSchema, 'nodeParameters.entityProps.booleanToKey', spec.viewSpec.oneOfParams.booleanMap);
886
+ }
887
+ if (spec.viewSpec.placeholder) {
888
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entityProps.placeholder', spec.viewSpec.placeholder);
889
+ }
890
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
891
+ console.warn(`[dynamic-forms] Unknown object oneof_flat view spec key: "hidden"`);
892
+ }
893
+ if (spec.viewSpec.inputProps) {
894
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
895
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
896
+ });
897
+ }
898
+ if (spec.viewSpec.layoutProps) {
899
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
900
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
901
+ });
902
+ }
903
+ // delimiter for old oneof_flat not expected
904
+ // if (spec.viewSpec.delimiter) {}
905
+ },
906
+ card_oneof: (spec, mutableSchema) => {
907
+ var _a, _b, _c, _d, _e;
908
+ const booleanToggler = ((_a = spec.viewSpec.oneOfParams) === null || _a === void 0 ? void 0 : _a.toggler) === 'checkbox' ||
909
+ ((_b = spec.viewSpec.oneOfParams) === null || _b === void 0 ? void 0 : _b.toggler) === 'switch';
910
+ if (spec.defaultValue !== undefined) {
911
+ set(mutableSchema, 'default', spec.defaultValue);
912
+ }
913
+ set(mutableSchema, 'type', JsonSchemaType.Object);
914
+ if (spec.required) {
915
+ set(mutableSchema, 'allOf', [
916
+ ...(mutableSchema.allOf || []),
917
+ { not: { enum: [null, undefined, '', false] } },
918
+ ]);
919
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
920
+ }
921
+ if (spec.properties) {
922
+ Object.entries(spec.properties).forEach(([key, childSpec]) => {
923
+ set(mutableSchema, ['properties', key], specToJsonSchema(childSpec, get(mutableSchema, ['properties', key])));
924
+ if (!get(mutableSchema, ['properties', key, 'nodeParameters', 'layout'])) {
925
+ set(mutableSchema, ['properties', key, 'nodeParameters', 'layout'], 'transparent');
926
+ }
927
+ });
928
+ if (!booleanToggler) {
929
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.enum', Object.keys(spec.properties));
930
+ }
931
+ }
932
+ if (spec.description) {
933
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entityProps.enumDescriptions', spec.description);
934
+ }
935
+ if (spec.validator && spec.validator !== 'base') {
936
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
937
+ }
938
+ if (spec.viewSpec.disabled) {
939
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
940
+ }
941
+ set(mutableSchema, 'nodeParameters.type', NodeType.Object);
942
+ set(mutableSchema, 'nodeParameters.entity', 'one_of_nested');
943
+ if (booleanToggler) {
944
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.type', JsonSchemaType.Boolean);
945
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.type', NodeType.Boolean);
946
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entity', ((_c = spec.viewSpec.oneOfParams) === null || _c === void 0 ? void 0 : _c.toggler) === 'switch' ? 'switch' : 'base');
947
+ }
948
+ else {
949
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.type', JsonSchemaType.String);
950
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.type', NodeType.String);
951
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entity', ((_d = spec.viewSpec.oneOfParams) === null || _d === void 0 ? void 0 : _d.toggler) === 'select'
952
+ ? 'select'
953
+ : 'segmented_radio_group');
954
+ }
955
+ set(mutableSchema, 'nodeParameters.layout', 'card');
956
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.layout', 'row');
957
+ if (spec.viewSpec.layoutTitle) {
958
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
959
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.title', spec.viewSpec.layoutTitle);
960
+ }
961
+ if (spec.viewSpec.layoutDescription) {
962
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.description', spec.viewSpec.layoutDescription);
963
+ }
964
+ if (spec.viewSpec.layoutOpen !== undefined) {
965
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
966
+ }
967
+ if (spec.viewSpec.order && !booleanToggler) {
968
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.enum', spec.viewSpec.order);
969
+ }
970
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
971
+ console.warn(`[dynamic-forms] Unknown object card_oneof view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
972
+ }
973
+ if ((_e = spec.viewSpec.oneOfParams) === null || _e === void 0 ? void 0 : _e.booleanMap) {
974
+ set(mutableSchema, 'nodeParameters.entityProps.booleanToKey', spec.viewSpec.oneOfParams.booleanMap);
975
+ }
976
+ if (spec.viewSpec.placeholder) {
977
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entityProps.placeholder', spec.viewSpec.placeholder);
978
+ }
979
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
980
+ console.warn(`[dynamic-forms] Unknown object card_oneof view spec key: "hidden"`);
981
+ }
982
+ if (spec.viewSpec.inputProps) {
983
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
984
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
985
+ });
986
+ }
987
+ if (spec.viewSpec.layoutProps) {
988
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
989
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
990
+ });
991
+ }
992
+ // delimiter for old card_oneof not expected
993
+ // if (spec.viewSpec.delimiter) {}
994
+ },
995
+ secret: (spec, mutableSchema, ctx) => {
996
+ var _a;
997
+ if (spec.defaultValue !== undefined) {
998
+ set(mutableSchema, 'default', spec.defaultValue);
999
+ }
1000
+ set(mutableSchema, 'type', JsonSchemaType.Object);
1001
+ if (spec.required) {
1002
+ set(mutableSchema, 'allOf', [
1003
+ ...(mutableSchema.allOf || []),
1004
+ { not: { enum: [null, undefined, '', false] } },
1005
+ ]);
1006
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
1007
+ }
1008
+ if (spec.properties) {
1009
+ Object.entries(spec.properties).forEach(([key, childSpec]) => {
1010
+ set(mutableSchema, ['properties', key], specToJsonSchema(childSpec, get(mutableSchema, ['properties', key])));
1011
+ });
1012
+ }
1013
+ // description for old secret not expected
1014
+ // if (spec.description) {}
1015
+ if (spec.validator && spec.validator !== 'base') {
1016
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
1017
+ }
1018
+ if (spec.viewSpec.disabled) {
1019
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
1020
+ }
1021
+ set(mutableSchema, 'nodeParameters.type', NodeType.Object);
1022
+ // there is no secret entity in the new kit yet, the name is kept as is
1023
+ set(mutableSchema, 'nodeParameters.entity', 'secret');
1024
+ if (spec.viewSpec.layout) {
1025
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
1026
+ if (layoutRule) {
1027
+ layoutRule(spec, mutableSchema, ctx);
1028
+ }
1029
+ else if (process.env.NODE_ENV !== 'production') {
1030
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
1031
+ }
1032
+ }
1033
+ if (spec.viewSpec.layoutTitle) {
1034
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
1035
+ }
1036
+ if (spec.viewSpec.layoutDescription) {
1037
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
1038
+ }
1039
+ if (spec.viewSpec.layoutOpen !== undefined) {
1040
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
1041
+ }
1042
+ if (spec.viewSpec.order) {
1043
+ set(mutableSchema, 'nodeParameters.entityProps.order', spec.viewSpec.order);
1044
+ }
1045
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
1046
+ console.warn(`[dynamic-forms] Unknown object secret view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
1047
+ }
1048
+ // oneOfParams for old secret not expected
1049
+ // if (spec.viewSpec.oneOfParams) {}
1050
+ // placeholder for old secret not expected
1051
+ // if (spec.viewSpec.placeholder) {}
1052
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
1053
+ console.warn(`[dynamic-forms] Unknown object secret view spec key: "hidden"`);
1054
+ }
1055
+ if (spec.viewSpec.inputProps) {
1056
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
1057
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
1058
+ });
1059
+ }
1060
+ if (spec.viewSpec.layoutProps) {
1061
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
1062
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
1063
+ });
1064
+ }
1065
+ // delimiter for old secret not expected
1066
+ // if (spec.viewSpec.delimiter) {}
1067
+ },
1068
+ base: (spec, mutableSchema, ctx) => {
1069
+ var _a;
1070
+ if (spec.defaultValue !== undefined) {
1071
+ set(mutableSchema, 'default', spec.defaultValue);
1072
+ }
1073
+ set(mutableSchema, 'type', JsonSchemaType.Object);
1074
+ if (spec.required) {
1075
+ set(mutableSchema, 'allOf', [
1076
+ ...(mutableSchema.allOf || []),
1077
+ { not: { enum: [null, undefined, '', false] } },
1078
+ ]);
1079
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
1080
+ }
1081
+ if (spec.properties) {
1082
+ Object.entries(spec.properties).forEach(([key, childSpec]) => {
1083
+ set(mutableSchema, ['properties', key], specToJsonSchema(childSpec, get(mutableSchema, ['properties', key])));
1084
+ });
1085
+ }
1086
+ // description for old base not expected
1087
+ // if (spec.description) {}
1088
+ if (spec.validator && spec.validator !== 'base') {
1089
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
1090
+ }
1091
+ if (spec.viewSpec.disabled) {
1092
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
1093
+ }
1094
+ set(mutableSchema, 'nodeParameters.type', NodeType.Object);
1095
+ set(mutableSchema, 'nodeParameters.entity', 'base');
1096
+ if (spec.viewSpec.layout) {
1097
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
1098
+ if (layoutRule) {
1099
+ layoutRule(spec, mutableSchema, ctx);
1100
+ }
1101
+ else if (process.env.NODE_ENV !== 'production') {
1102
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
1103
+ }
1104
+ }
1105
+ if (spec.viewSpec.layoutTitle) {
1106
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
1107
+ }
1108
+ if (spec.viewSpec.layoutDescription) {
1109
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
1110
+ }
1111
+ if (spec.viewSpec.layoutOpen !== undefined) {
1112
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
1113
+ }
1114
+ if (spec.viewSpec.order) {
1115
+ set(mutableSchema, 'nodeParameters.entityProps.order', spec.viewSpec.order);
1116
+ }
1117
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
1118
+ console.warn(`[dynamic-forms] Unknown object base view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
1119
+ }
1120
+ // oneOfParams for old base not expected
1121
+ // if (spec.viewSpec.oneOfParams) {}
1122
+ // placeholder for old base not expected
1123
+ // if (spec.viewSpec.placeholder) {}
1124
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
1125
+ console.warn(`[dynamic-forms] Unknown object base view spec key: "hidden"`);
1126
+ }
1127
+ if (spec.viewSpec.inputProps) {
1128
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
1129
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
1130
+ });
1131
+ }
1132
+ if (spec.viewSpec.layoutProps) {
1133
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
1134
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
1135
+ });
1136
+ }
1137
+ if (spec.viewSpec.delimiter && process.env.NODE_ENV !== 'production') {
1138
+ console.warn(`[dynamic-forms] Unknown object base view spec key: "delimiter", value - ${JSON.stringify(spec.viewSpec.delimiter, null, 2)}`);
1139
+ }
1140
+ },
1141
+ text_link: (spec, mutableSchema, ctx) => {
1142
+ var _a;
1143
+ if (spec.defaultValue !== undefined) {
1144
+ set(mutableSchema, 'default', spec.defaultValue);
1145
+ }
1146
+ set(mutableSchema, 'type', JsonSchemaType.Object);
1147
+ if (spec.required) {
1148
+ set(mutableSchema, 'allOf', [
1149
+ ...(mutableSchema.allOf || []),
1150
+ { not: { enum: [null, undefined, '', false] } },
1151
+ ]);
1152
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
1153
+ }
1154
+ if (spec.properties) {
1155
+ Object.entries(spec.properties).forEach(([key, childSpec]) => {
1156
+ set(mutableSchema, ['properties', key], specToJsonSchema(childSpec, get(mutableSchema, ['properties', key])));
1157
+ });
1158
+ }
1159
+ // description for old text_link not expected
1160
+ // if (spec.description) {}
1161
+ if (spec.validator && spec.validator !== 'base') {
1162
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
1163
+ }
1164
+ if (spec.viewSpec.disabled) {
1165
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
1166
+ }
1167
+ set(mutableSchema, 'nodeParameters.type', NodeType.Object);
1168
+ // there is no text_link entity in the new kit yet, the name is kept as is
1169
+ set(mutableSchema, 'nodeParameters.entity', 'text_link');
1170
+ if (spec.viewSpec.layout) {
1171
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
1172
+ if (layoutRule) {
1173
+ layoutRule(spec, mutableSchema, ctx);
1174
+ }
1175
+ else if (process.env.NODE_ENV !== 'production') {
1176
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
1177
+ }
1178
+ }
1179
+ if (spec.viewSpec.layoutTitle) {
1180
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
1181
+ }
1182
+ if (spec.viewSpec.layoutDescription) {
1183
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
1184
+ }
1185
+ if (spec.viewSpec.layoutOpen !== undefined) {
1186
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
1187
+ }
1188
+ // order for old text_link not expected
1189
+ // if (spec.viewSpec.order) {}
1190
+ if (spec.viewSpec.link) {
1191
+ set(mutableSchema, 'nodeParameters.entityProps.link', spec.viewSpec.link);
1192
+ }
1193
+ // oneOfParams for old text_link not expected
1194
+ // if (spec.viewSpec.oneOfParams) {}
1195
+ // placeholder for old text_link not expected
1196
+ // if (spec.viewSpec.placeholder) {}
1197
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
1198
+ console.warn(`[dynamic-forms] Unknown object text_link view spec key: "hidden"`);
1199
+ }
1200
+ if (spec.viewSpec.inputProps) {
1201
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
1202
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
1203
+ });
1204
+ }
1205
+ if (spec.viewSpec.layoutProps) {
1206
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
1207
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
1208
+ });
1209
+ }
1210
+ // delimiter for old text_link not expected
1211
+ // if (spec.viewSpec.delimiter) {}
1212
+ },
1213
+ object_value: (spec, mutableSchema, ctx) => {
1214
+ var _a;
1215
+ if (spec.defaultValue !== undefined) {
1216
+ set(mutableSchema, 'default', spec.defaultValue);
1217
+ }
1218
+ set(mutableSchema, 'type', JsonSchemaType.Object);
1219
+ if (spec.required) {
1220
+ set(mutableSchema, 'allOf', [
1221
+ ...(mutableSchema.allOf || []),
1222
+ { not: { enum: [null, undefined, '', false] } },
1223
+ ]);
1224
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
1225
+ }
1226
+ if (spec.properties) {
1227
+ Object.entries(spec.properties).forEach(([key, childSpec]) => {
1228
+ set(mutableSchema, ['properties', key], specToJsonSchema(childSpec, get(mutableSchema, ['properties', key])));
1229
+ });
1230
+ }
1231
+ // description for old object_value not expected
1232
+ // if (spec.description) {}
1233
+ if (spec.validator && spec.validator !== 'base') {
1234
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
1235
+ }
1236
+ if (spec.viewSpec.disabled) {
1237
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
1238
+ }
1239
+ set(mutableSchema, 'nodeParameters.type', NodeType.Object);
1240
+ set(mutableSchema, 'nodeParameters.entity', 'dot_value');
1241
+ if (spec.viewSpec.layout) {
1242
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
1243
+ if (layoutRule) {
1244
+ layoutRule(spec, mutableSchema, ctx);
1245
+ }
1246
+ else if (process.env.NODE_ENV !== 'production') {
1247
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
1248
+ }
1249
+ }
1250
+ if (spec.viewSpec.layoutTitle) {
1251
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
1252
+ }
1253
+ if (spec.viewSpec.layoutDescription) {
1254
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
1255
+ }
1256
+ if (spec.viewSpec.layoutOpen !== undefined) {
1257
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
1258
+ }
1259
+ if (spec.viewSpec.order && process.env.NODE_ENV !== 'production') {
1260
+ console.warn(`[dynamic-forms] Unknown object object_value view spec key: "order", value - ${JSON.stringify(spec.viewSpec.order)}`);
1261
+ }
1262
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
1263
+ console.warn(`[dynamic-forms] Unknown object object_value view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
1264
+ }
1265
+ // oneOfParams for old object_value not expected
1266
+ // if (spec.viewSpec.oneOfParams) {}
1267
+ // placeholder for old object_value not expected
1268
+ // if (spec.viewSpec.placeholder) {}
1269
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
1270
+ console.warn(`[dynamic-forms] Unknown object object_value view spec key: "hidden"`);
1271
+ }
1272
+ if (spec.viewSpec.inputProps) {
1273
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
1274
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
1275
+ });
1276
+ }
1277
+ if (spec.viewSpec.layoutProps) {
1278
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
1279
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
1280
+ });
1281
+ }
1282
+ // delimiter for old object_value not expected
1283
+ // if (spec.viewSpec.delimiter) {}
1284
+ },
1285
+ multi_oneof: (spec, mutableSchema) => {
1286
+ var _a, _b;
1287
+ if (spec.defaultValue !== undefined) {
1288
+ set(mutableSchema, 'default', spec.defaultValue);
1289
+ }
1290
+ set(mutableSchema, 'type', JsonSchemaType.Object);
1291
+ if (spec.required) {
1292
+ set(mutableSchema, 'allOf', [
1293
+ ...(mutableSchema.allOf || []),
1294
+ { not: { enum: [null, undefined, '', false] } },
1295
+ ]);
1296
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
1297
+ }
1298
+ if (spec.properties) {
1299
+ Object.entries(spec.properties).forEach(([key, childSpec]) => {
1300
+ set(mutableSchema, ['properties', key], specToJsonSchema(childSpec, get(mutableSchema, ['properties', key])));
1301
+ if (!get(mutableSchema, ['properties', key, 'nodeParameters', 'layout'])) {
1302
+ set(mutableSchema, ['properties', key, 'nodeParameters', 'layout'], 'transparent');
1303
+ }
1304
+ });
1305
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.items.enum', Object.keys(spec.properties));
1306
+ }
1307
+ if (spec.description) {
1308
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entityProps.enumDescriptions', spec.description);
1309
+ }
1310
+ if (spec.validator && spec.validator !== 'base') {
1311
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
1312
+ }
1313
+ if (spec.viewSpec.disabled) {
1314
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
1315
+ }
1316
+ set(mutableSchema, 'nodeParameters.type', NodeType.Object);
1317
+ set(mutableSchema, 'nodeParameters.entity', 'few_of_nested');
1318
+ set(mutableSchema, 'nodeParameters.entityProps.withIndent', true);
1319
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.type', JsonSchemaType.Array);
1320
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.type', NodeType.Array);
1321
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entity', ((_a = spec.viewSpec.oneOfParams) === null || _a === void 0 ? void 0 : _a.toggler) === 'checkbox' ? 'checkbox_group' : 'select');
1322
+ set(mutableSchema, 'nodeParameters.layout', 'transparent');
1323
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.layout', 'row');
1324
+ if (spec.viewSpec.layoutTitle) {
1325
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.title', spec.viewSpec.layoutTitle);
1326
+ }
1327
+ if (spec.viewSpec.layoutDescription) {
1328
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.description', spec.viewSpec.layoutDescription);
1329
+ }
1330
+ if (spec.viewSpec.layoutOpen !== undefined) {
1331
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
1332
+ }
1333
+ if (spec.viewSpec.order) {
1334
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.items.enum', spec.viewSpec.order);
1335
+ }
1336
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
1337
+ console.warn(`[dynamic-forms] Unknown object multi_oneof view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
1338
+ }
1339
+ if (((_b = spec.viewSpec.oneOfParams) === null || _b === void 0 ? void 0 : _b.booleanMap) && process.env.NODE_ENV !== 'production') {
1340
+ console.warn(`[dynamic-forms] Unknown object multi_oneof view spec key: "oneOfParams.booleanMap", value - ${JSON.stringify(spec.viewSpec.oneOfParams.booleanMap)}`);
1341
+ }
1342
+ if (spec.viewSpec.placeholder) {
1343
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entityProps.placeholder', spec.viewSpec.placeholder);
1344
+ }
1345
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
1346
+ console.warn(`[dynamic-forms] Unknown object multi_oneof view spec key: "hidden"`);
1347
+ }
1348
+ if (spec.viewSpec.inputProps) {
1349
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
1350
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
1351
+ });
1352
+ }
1353
+ if (spec.viewSpec.layoutProps) {
1354
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
1355
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
1356
+ });
1357
+ }
1358
+ // delimiter for old multi_oneof not expected
1359
+ // if (spec.viewSpec.delimiter) {}
1360
+ },
1361
+ multi_oneof_flat: (spec, mutableSchema) => {
1362
+ var _a, _b;
1363
+ if (spec.defaultValue !== undefined) {
1364
+ set(mutableSchema, 'default', spec.defaultValue);
1365
+ }
1366
+ set(mutableSchema, 'type', JsonSchemaType.Object);
1367
+ if (spec.required) {
1368
+ set(mutableSchema, 'allOf', [
1369
+ ...(mutableSchema.allOf || []),
1370
+ { not: { enum: [null, undefined, '', false] } },
1371
+ ]);
1372
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
1373
+ }
1374
+ if (spec.properties) {
1375
+ Object.entries(spec.properties).forEach(([key, childSpec]) => {
1376
+ set(mutableSchema, ['properties', key], specToJsonSchema(childSpec, get(mutableSchema, ['properties', key])));
1377
+ if (!get(mutableSchema, ['properties', key, 'nodeParameters', 'layout'])) {
1378
+ set(mutableSchema, ['properties', key, 'nodeParameters', 'layout'], 'transparent');
1379
+ }
1380
+ });
1381
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.items.enum', Object.keys(spec.properties));
1382
+ }
1383
+ if (spec.description) {
1384
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entityProps.enumDescriptions', spec.description);
1385
+ }
1386
+ if (spec.validator && spec.validator !== 'base') {
1387
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
1388
+ }
1389
+ if (spec.viewSpec.disabled) {
1390
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
1391
+ }
1392
+ set(mutableSchema, 'nodeParameters.type', NodeType.Object);
1393
+ set(mutableSchema, 'nodeParameters.entity', 'few_of_nested');
1394
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.type', JsonSchemaType.Array);
1395
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.type', NodeType.Array);
1396
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entity', ((_a = spec.viewSpec.oneOfParams) === null || _a === void 0 ? void 0 : _a.toggler) === 'checkbox' ? 'checkbox_group' : 'select');
1397
+ set(mutableSchema, 'nodeParameters.layout', 'transparent');
1398
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.layout', 'row');
1399
+ if (spec.viewSpec.layoutTitle) {
1400
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.title', spec.viewSpec.layoutTitle);
1401
+ }
1402
+ if (spec.viewSpec.layoutDescription) {
1403
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.description', spec.viewSpec.layoutDescription);
1404
+ }
1405
+ if (spec.viewSpec.layoutOpen !== undefined) {
1406
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
1407
+ }
1408
+ if (spec.viewSpec.order) {
1409
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.items.enum', spec.viewSpec.order);
1410
+ }
1411
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
1412
+ console.warn(`[dynamic-forms] Unknown object multi_oneof_flat view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
1413
+ }
1414
+ if (((_b = spec.viewSpec.oneOfParams) === null || _b === void 0 ? void 0 : _b.booleanMap) && process.env.NODE_ENV !== 'production') {
1415
+ console.warn(`[dynamic-forms] Unknown object multi_oneof_flat view spec key: "oneOfParams.booleanMap", value - ${JSON.stringify(spec.viewSpec.oneOfParams.booleanMap)}`);
1416
+ }
1417
+ if (spec.viewSpec.placeholder) {
1418
+ set(mutableSchema, 'nodeParameters.entityProps.toggler.nodeParameters.entityProps.placeholder', spec.viewSpec.placeholder);
1419
+ }
1420
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
1421
+ console.warn(`[dynamic-forms] Unknown object multi_oneof_flat view spec key: "hidden"`);
1422
+ }
1423
+ if (spec.viewSpec.inputProps) {
1424
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
1425
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
1426
+ });
1427
+ }
1428
+ if (spec.viewSpec.layoutProps) {
1429
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
1430
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
1431
+ });
1432
+ }
1433
+ // delimiter for old multi_oneof_flat not expected
1434
+ // if (spec.viewSpec.delimiter) {}
1435
+ },
1436
+ inline: (spec, mutableSchema, ctx) => {
1437
+ var _a;
1438
+ if (spec.defaultValue !== undefined) {
1439
+ set(mutableSchema, 'default', spec.defaultValue);
1440
+ }
1441
+ set(mutableSchema, 'type', JsonSchemaType.Object);
1442
+ if (spec.required) {
1443
+ set(mutableSchema, 'allOf', [
1444
+ ...(mutableSchema.allOf || []),
1445
+ { not: { enum: [null, undefined, '', false] } },
1446
+ ]);
1447
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
1448
+ }
1449
+ if (spec.properties) {
1450
+ Object.entries(spec.properties).forEach(([key, childSpec]) => {
1451
+ set(mutableSchema, ['properties', key], specToJsonSchema(childSpec, get(mutableSchema, ['properties', key])));
1452
+ });
1453
+ }
1454
+ // description for old inline not expected
1455
+ // if (spec.description) {}
1456
+ if (spec.validator && spec.validator !== 'base') {
1457
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
1458
+ }
1459
+ if (spec.viewSpec.disabled) {
1460
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
1461
+ }
1462
+ set(mutableSchema, 'nodeParameters.type', NodeType.Object);
1463
+ set(mutableSchema, 'nodeParameters.entity', 'inline');
1464
+ if (spec.viewSpec.layout) {
1465
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
1466
+ if (layoutRule) {
1467
+ layoutRule(spec, mutableSchema, ctx);
1468
+ }
1469
+ else if (process.env.NODE_ENV !== 'production') {
1470
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
1471
+ }
1472
+ }
1473
+ if (spec.viewSpec.layoutTitle) {
1474
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
1475
+ }
1476
+ if (spec.viewSpec.layoutDescription) {
1477
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
1478
+ }
1479
+ if (spec.viewSpec.layoutOpen !== undefined) {
1480
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
1481
+ }
1482
+ if (spec.viewSpec.order) {
1483
+ set(mutableSchema, 'nodeParameters.entityProps.order', spec.viewSpec.order);
1484
+ }
1485
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
1486
+ console.warn(`[dynamic-forms] Unknown object inline view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
1487
+ }
1488
+ // oneOfParams for old inline not expected
1489
+ // if (spec.viewSpec.oneOfParams) {}
1490
+ // placeholder for old inline not expected
1491
+ // if (spec.viewSpec.placeholder) {}
1492
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
1493
+ console.warn(`[dynamic-forms] Unknown object inline view spec key: "hidden"`);
1494
+ }
1495
+ if (spec.viewSpec.inputProps) {
1496
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
1497
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
1498
+ });
1499
+ }
1500
+ if (spec.viewSpec.layoutProps) {
1501
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
1502
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
1503
+ });
1504
+ }
1505
+ if (spec.viewSpec.delimiter) {
1506
+ set(mutableSchema, 'nodeParameters.entityProps.delimiter', spec.viewSpec.delimiter);
1507
+ }
1508
+ },
1509
+ time_range_selector: (spec, mutableSchema, ctx) => {
1510
+ var _a;
1511
+ if (spec.defaultValue !== undefined) {
1512
+ set(mutableSchema, 'default', spec.defaultValue);
1513
+ }
1514
+ set(mutableSchema, 'type', JsonSchemaType.Object);
1515
+ if (spec.required) {
1516
+ set(mutableSchema, 'allOf', [
1517
+ ...(mutableSchema.allOf || []),
1518
+ { not: { enum: [null, undefined, '', false] } },
1519
+ ]);
1520
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
1521
+ }
1522
+ if (spec.properties) {
1523
+ Object.entries(spec.properties).forEach(([key, childSpec]) => {
1524
+ set(mutableSchema, ['properties', key], specToJsonSchema(childSpec, get(mutableSchema, ['properties', key])));
1525
+ });
1526
+ }
1527
+ // description for old time_range_selector not expected
1528
+ // if (spec.description) {}
1529
+ if (spec.validator && spec.validator !== 'base') {
1530
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
1531
+ }
1532
+ if (spec.viewSpec.disabled) {
1533
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
1534
+ }
1535
+ set(mutableSchema, 'nodeParameters.type', NodeType.Object);
1536
+ // there is no time_range_selector entity in the new kit yet, the name is kept as is
1537
+ set(mutableSchema, 'nodeParameters.entity', 'time_range_selector');
1538
+ if (spec.viewSpec.layout) {
1539
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
1540
+ if (layoutRule) {
1541
+ layoutRule(spec, mutableSchema, ctx);
1542
+ }
1543
+ else if (process.env.NODE_ENV !== 'production') {
1544
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
1545
+ }
1546
+ }
1547
+ if (spec.viewSpec.layoutTitle) {
1548
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
1549
+ }
1550
+ if (spec.viewSpec.layoutDescription) {
1551
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
1552
+ }
1553
+ if (spec.viewSpec.layoutOpen !== undefined) {
1554
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
1555
+ }
1556
+ if (spec.viewSpec.order) {
1557
+ set(mutableSchema, 'nodeParameters.entityProps.order', spec.viewSpec.order);
1558
+ }
1559
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
1560
+ console.warn(`[dynamic-forms] Unknown object time_range_selector view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
1561
+ }
1562
+ // oneOfParams for old time_range_selector not expected
1563
+ // if (spec.viewSpec.oneOfParams) {}
1564
+ if (spec.viewSpec.placeholder) {
1565
+ set(mutableSchema, 'nodeParameters.entityProps.placeholder', spec.viewSpec.placeholder);
1566
+ }
1567
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
1568
+ console.warn(`[dynamic-forms] Unknown object time_range_selector view spec key: "hidden"`);
1569
+ }
1570
+ if (spec.viewSpec.inputProps) {
1571
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
1572
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
1573
+ });
1574
+ }
1575
+ if (spec.viewSpec.layoutProps) {
1576
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
1577
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
1578
+ });
1579
+ }
1580
+ // delimiter for old time_range_selector not expected
1581
+ // if (spec.viewSpec.delimiter) {}
1582
+ },
1583
+ range_input_picker: (spec, mutableSchema, ctx) => {
1584
+ var _a;
1585
+ if (spec.defaultValue !== undefined) {
1586
+ set(mutableSchema, 'default', spec.defaultValue);
1587
+ }
1588
+ set(mutableSchema, 'type', JsonSchemaType.Object);
1589
+ if (spec.required) {
1590
+ set(mutableSchema, 'allOf', [
1591
+ ...(mutableSchema.allOf || []),
1592
+ { not: { enum: [null, undefined, '', false] } },
1593
+ ]);
1594
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
1595
+ }
1596
+ if (spec.properties) {
1597
+ Object.entries(spec.properties).forEach(([key, childSpec]) => {
1598
+ set(mutableSchema, ['properties', key], specToJsonSchema(childSpec, get(mutableSchema, ['properties', key])));
1599
+ });
1600
+ }
1601
+ // description for old range_input_picker not expected
1602
+ // if (spec.description) {}
1603
+ if (spec.validator && spec.validator !== 'base') {
1604
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
1605
+ }
1606
+ if (spec.viewSpec.disabled) {
1607
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
1608
+ }
1609
+ set(mutableSchema, 'nodeParameters.type', NodeType.Object);
1610
+ set(mutableSchema, 'nodeParameters.entity', 'range_input');
1611
+ if (spec.viewSpec.layout) {
1612
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
1613
+ if (layoutRule) {
1614
+ layoutRule(spec, mutableSchema, ctx);
1615
+ }
1616
+ else if (process.env.NODE_ENV !== 'production') {
1617
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
1618
+ }
1619
+ }
1620
+ if (spec.viewSpec.layoutTitle) {
1621
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
1622
+ }
1623
+ if (spec.viewSpec.layoutDescription) {
1624
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
1625
+ }
1626
+ if (spec.viewSpec.layoutOpen !== undefined) {
1627
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
1628
+ }
1629
+ if (spec.viewSpec.order) {
1630
+ if (spec.viewSpec.order.length === 2) {
1631
+ set(mutableSchema, 'nodeParameters.entityProps.propertyKeys', spec.viewSpec.order);
1632
+ }
1633
+ else if (process.env.NODE_ENV !== 'production') {
1634
+ console.warn(`[dynamic-forms] Unknown object range_input_picker view spec key: "order", value - ${JSON.stringify(spec.viewSpec.order)}`);
1635
+ }
1636
+ }
1637
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
1638
+ console.warn(`[dynamic-forms] Unknown object range_input_picker view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
1639
+ }
1640
+ // oneOfParams for old range_input_picker not expected
1641
+ // if (spec.viewSpec.oneOfParams) {}
1642
+ // placeholder for old range_input_picker not expected
1643
+ // if (spec.viewSpec.placeholder) {}
1644
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
1645
+ console.warn(`[dynamic-forms] Unknown object range_input_picker view spec key: "hidden"`);
1646
+ }
1647
+ if (spec.viewSpec.inputProps) {
1648
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
1649
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
1650
+ });
1651
+ }
1652
+ if (spec.viewSpec.layoutProps) {
1653
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
1654
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
1655
+ });
1656
+ }
1657
+ if (spec.viewSpec.delimiter && process.env.NODE_ENV !== 'production') {
1658
+ console.warn(`[dynamic-forms] Unknown object range_input_picker view spec key: "delimiter", value - ${JSON.stringify(spec.viewSpec.delimiter)}`);
1659
+ }
1660
+ },
1661
+ };
1662
+ export const stringInputTypeRules = {
1663
+ password: (spec, mutableSchema, ctx) => {
1664
+ var _a;
1665
+ if (spec.defaultValue !== undefined) {
1666
+ set(mutableSchema, 'default', spec.defaultValue);
1667
+ }
1668
+ set(mutableSchema, 'type', JsonSchemaType.String);
1669
+ if (spec.required) {
1670
+ set(mutableSchema, 'allOf', [
1671
+ ...(mutableSchema.allOf || []),
1672
+ { not: { enum: [null, undefined, '', false] } },
1673
+ ]);
1674
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
1675
+ }
1676
+ if (spec.maxLength) {
1677
+ const maxLength = Number(spec.maxLength);
1678
+ if (!isNaN(maxLength)) {
1679
+ set(mutableSchema, 'maxLength', maxLength);
1680
+ }
1681
+ }
1682
+ if (spec.minLength) {
1683
+ const minLength = Number(spec.minLength);
1684
+ if (!isNaN(minLength)) {
1685
+ set(mutableSchema, 'minLength', minLength);
1686
+ }
1687
+ }
1688
+ if (spec.pattern) {
1689
+ set(mutableSchema, 'pattern', spec.pattern);
1690
+ }
1691
+ if (spec.patternError) {
1692
+ set(mutableSchema, 'nodeParameters.errorMessages.pattern', spec.patternError);
1693
+ }
1694
+ // enum for old password not expected
1695
+ // if (spec.enum) {}
1696
+ // description for old password not expected
1697
+ // if (spec.description) {}
1698
+ if (spec.validator && spec.validator !== 'base') {
1699
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
1700
+ }
1701
+ if (spec.viewSpec.disabled) {
1702
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
1703
+ }
1704
+ set(mutableSchema, 'nodeParameters.type', NodeType.String);
1705
+ set(mutableSchema, 'nodeParameters.entity', 'password');
1706
+ if (spec.viewSpec.layout) {
1707
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
1708
+ if (layoutRule) {
1709
+ layoutRule(spec, mutableSchema, ctx);
1710
+ }
1711
+ else if (process.env.NODE_ENV !== 'production') {
1712
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
1713
+ }
1714
+ }
1715
+ if (spec.viewSpec.layoutTitle) {
1716
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
1717
+ }
1718
+ if (spec.viewSpec.layoutDescription) {
1719
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
1720
+ }
1721
+ if (spec.viewSpec.layoutOpen !== undefined) {
1722
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
1723
+ }
1724
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
1725
+ console.warn(`[dynamic-forms] Unknown string password view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
1726
+ }
1727
+ // sizeParams for old password not expected
1728
+ // if (spec.viewSpec.sizeParams) {}
1729
+ // monacoParams for old password not expected
1730
+ // if (spec.viewSpec.monacoParams) {}
1731
+ if (spec.viewSpec.hideValues && process.env.NODE_ENV !== 'production') {
1732
+ console.warn(`[dynamic-forms] Unknown string password view spec key: "hideValues", value - ${JSON.stringify(spec.viewSpec.hideValues)}`);
1733
+ }
1734
+ if (spec.viewSpec.placeholder) {
1735
+ set(mutableSchema, 'nodeParameters.entityProps.placeholder', spec.viewSpec.placeholder);
1736
+ }
1737
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
1738
+ console.warn(`[dynamic-forms] Unknown string password view spec key: "hidden"`);
1739
+ }
1740
+ // textContentParams for old password not expected
1741
+ // if (spec.viewSpec.textContentParams) {}
1742
+ // fileInput for old password not expected
1743
+ // if (spec.viewSpec.fileInput) {}
1744
+ // dateInput for old password not expected
1745
+ // if (spec.viewSpec.dateInput) {}
1746
+ if (spec.viewSpec.copy) {
1747
+ set(mutableSchema, 'nodeParameters.layoutProps.copy', true);
1748
+ }
1749
+ // selectParams for old password not expected
1750
+ // if (spec.viewSpec.selectParams) {}
1751
+ // radioGroupParams for old password not expected
1752
+ // if (spec.viewSpec.radioGroupParams) {}
1753
+ if (spec.viewSpec.inputProps) {
1754
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
1755
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
1756
+ });
1757
+ }
1758
+ if (spec.viewSpec.layoutProps) {
1759
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
1760
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
1761
+ });
1762
+ }
1763
+ if (spec.viewSpec.generateRandomValueButton && process.env.NODE_ENV !== 'production') {
1764
+ console.warn(`[dynamic-forms] Unknown string password view spec key: "generateRandomValueButton"`);
1765
+ }
1766
+ },
1767
+ textarea: (spec, mutableSchema, ctx) => {
1768
+ var _a;
1769
+ if (spec.defaultValue !== undefined) {
1770
+ set(mutableSchema, 'default', spec.defaultValue);
1771
+ }
1772
+ set(mutableSchema, 'type', JsonSchemaType.String);
1773
+ if (spec.required) {
1774
+ set(mutableSchema, 'allOf', [
1775
+ ...(mutableSchema.allOf || []),
1776
+ { not: { enum: [null, undefined, '', false] } },
1777
+ ]);
1778
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
1779
+ }
1780
+ if (spec.maxLength) {
1781
+ const maxLength = Number(spec.maxLength);
1782
+ if (!isNaN(maxLength)) {
1783
+ set(mutableSchema, 'maxLength', maxLength);
1784
+ }
1785
+ }
1786
+ if (spec.minLength) {
1787
+ const minLength = Number(spec.minLength);
1788
+ if (!isNaN(minLength)) {
1789
+ set(mutableSchema, 'minLength', minLength);
1790
+ }
1791
+ }
1792
+ if (spec.pattern) {
1793
+ set(mutableSchema, 'pattern', spec.pattern);
1794
+ }
1795
+ if (spec.patternError) {
1796
+ set(mutableSchema, 'nodeParameters.errorMessages.pattern', spec.patternError);
1797
+ }
1798
+ // enum for old textarea not expected
1799
+ // if (spec.enum) {}
1800
+ // description for old textarea not expected
1801
+ // if (spec.description) {}
1802
+ if (spec.validator && spec.validator !== 'base') {
1803
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
1804
+ }
1805
+ if (spec.viewSpec.disabled) {
1806
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
1807
+ }
1808
+ set(mutableSchema, 'nodeParameters.type', NodeType.String);
1809
+ set(mutableSchema, 'nodeParameters.entity', 'textarea');
1810
+ if (spec.viewSpec.layout) {
1811
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
1812
+ if (layoutRule) {
1813
+ layoutRule(spec, mutableSchema, ctx);
1814
+ }
1815
+ else if (process.env.NODE_ENV !== 'production') {
1816
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
1817
+ }
1818
+ }
1819
+ if (spec.viewSpec.layoutTitle) {
1820
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
1821
+ }
1822
+ if (spec.viewSpec.layoutDescription) {
1823
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
1824
+ }
1825
+ if (spec.viewSpec.layoutOpen !== undefined) {
1826
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
1827
+ }
1828
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
1829
+ console.warn(`[dynamic-forms] Unknown string textarea view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
1830
+ }
1831
+ // sizeParams for old textarea not expected
1832
+ // if (spec.viewSpec.sizeParams) {}
1833
+ // monacoParams for old textarea not expected
1834
+ // if (spec.viewSpec.monacoParams) {}
1835
+ if (spec.viewSpec.hideValues && process.env.NODE_ENV !== 'production') {
1836
+ console.warn(`[dynamic-forms] Unknown string textarea view spec key: "hideValues", value - ${JSON.stringify(spec.viewSpec.hideValues)}`);
1837
+ }
1838
+ if (spec.viewSpec.placeholder) {
1839
+ set(mutableSchema, 'nodeParameters.entityProps.placeholder', spec.viewSpec.placeholder);
1840
+ }
1841
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
1842
+ console.warn(`[dynamic-forms] Unknown string textarea view spec key: "hidden"`);
1843
+ }
1844
+ // textContentParams for old textarea not expected
1845
+ // if (spec.viewSpec.textContentParams) {}
1846
+ // fileInput for old textarea not expected
1847
+ // if (spec.viewSpec.fileInput) {}
1848
+ // dateInput for old textarea not expected
1849
+ // if (spec.viewSpec.dateInput) {}
1850
+ if (spec.viewSpec.copy) {
1851
+ set(mutableSchema, 'nodeParameters.layoutProps.copy', true);
1852
+ }
1853
+ // selectParams for old textarea not expected
1854
+ // if (spec.viewSpec.selectParams) {}
1855
+ // radioGroupParams for old textarea not expected
1856
+ // if (spec.viewSpec.radioGroupParams) {}
1857
+ if (spec.viewSpec.inputProps) {
1858
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
1859
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
1860
+ });
1861
+ }
1862
+ if (spec.viewSpec.layoutProps) {
1863
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
1864
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
1865
+ });
1866
+ }
1867
+ if (spec.viewSpec.generateRandomValueButton && process.env.NODE_ENV !== 'production') {
1868
+ console.warn(`[dynamic-forms] Unknown string textarea view spec key: "generateRandomValueButton"`);
1869
+ }
1870
+ },
1871
+ select: (spec, mutableSchema, ctx) => {
1872
+ var _a;
1873
+ if (spec.defaultValue !== undefined) {
1874
+ set(mutableSchema, 'default', spec.defaultValue);
1875
+ }
1876
+ set(mutableSchema, 'type', JsonSchemaType.String);
1877
+ if (spec.required) {
1878
+ set(mutableSchema, 'allOf', [
1879
+ ...(mutableSchema.allOf || []),
1880
+ { not: { enum: [null, undefined, '', false] } },
1881
+ ]);
1882
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
1883
+ }
1884
+ // maxLength for old select not expected
1885
+ // if (spec.maxLength) {}
1886
+ // minLength for old select not expected
1887
+ // if (spec.minLength) {}
1888
+ // pattern for old select not expected
1889
+ // if (spec.pattern) {}
1890
+ // patternError for old select not expected
1891
+ // if (spec.patternError) {}
1892
+ if (spec.enum) {
1893
+ set(mutableSchema, 'enum', spec.enum);
1894
+ }
1895
+ if (spec.description) {
1896
+ set(mutableSchema, 'nodeParameters.entityProps.enumDescriptions', spec.description);
1897
+ }
1898
+ if (spec.validator && spec.validator !== 'base') {
1899
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
1900
+ }
1901
+ if (spec.viewSpec.disabled) {
1902
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
1903
+ }
1904
+ set(mutableSchema, 'nodeParameters.type', NodeType.String);
1905
+ set(mutableSchema, 'nodeParameters.entity', 'select');
1906
+ if (spec.viewSpec.layout) {
1907
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
1908
+ if (layoutRule) {
1909
+ layoutRule(spec, mutableSchema, ctx);
1910
+ }
1911
+ else if (process.env.NODE_ENV !== 'production') {
1912
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
1913
+ }
1914
+ }
1915
+ if (spec.viewSpec.layoutTitle) {
1916
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
1917
+ }
1918
+ if (spec.viewSpec.layoutDescription) {
1919
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
1920
+ }
1921
+ if (spec.viewSpec.layoutOpen !== undefined) {
1922
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
1923
+ }
1924
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
1925
+ console.warn(`[dynamic-forms] Unknown string select view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
1926
+ }
1927
+ // sizeParams for old select not expected
1928
+ // if (spec.viewSpec.sizeParams) {}
1929
+ // monacoParams for old select not expected
1930
+ // if (spec.viewSpec.monacoParams) {}
1931
+ if (spec.viewSpec.hideValues && process.env.NODE_ENV !== 'production') {
1932
+ console.warn(`[dynamic-forms] Unknown string select view spec key: "hideValues", value - ${JSON.stringify(spec.viewSpec.hideValues)}`);
1933
+ }
1934
+ if (spec.viewSpec.placeholder) {
1935
+ set(mutableSchema, 'nodeParameters.entityProps.placeholder', spec.viewSpec.placeholder);
1936
+ }
1937
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
1938
+ console.warn(`[dynamic-forms] Unknown string select view spec key: "hidden"`);
1939
+ }
1940
+ // textContentParams for old select not expected
1941
+ // if (spec.viewSpec.textContentParams) {}
1942
+ // fileInput for old select not expected
1943
+ // if (spec.viewSpec.fileInput) {}
1944
+ // dateInput for old select not expected
1945
+ // if (spec.viewSpec.dateInput) {}
1946
+ if (spec.viewSpec.copy) {
1947
+ set(mutableSchema, 'nodeParameters.layoutProps.copy', true);
1948
+ }
1949
+ if (spec.viewSpec.selectParams) {
1950
+ if (spec.viewSpec.selectParams.filterPlaceholder) {
1951
+ set(mutableSchema, 'nodeParameters.entityProps.filterPlaceholder', spec.viewSpec.selectParams.filterPlaceholder);
1952
+ }
1953
+ if (spec.viewSpec.selectParams.meta) {
1954
+ set(mutableSchema, 'nodeParameters.entityProps.optionsMeta', spec.viewSpec.selectParams.meta);
1955
+ }
1956
+ }
1957
+ // radioGroupParams for old select not expected
1958
+ // if (spec.viewSpec.radioGroupParams) {}
1959
+ if (spec.viewSpec.inputProps) {
1960
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
1961
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
1962
+ });
1963
+ }
1964
+ if (spec.viewSpec.layoutProps) {
1965
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
1966
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
1967
+ });
1968
+ }
1969
+ // generateRandomValueButton for old select not expected
1970
+ // if (spec.viewSpec.generateRandomValueButton) {}
1971
+ },
1972
+ base: (spec, mutableSchema, ctx) => {
1973
+ var _a;
1974
+ if (spec.defaultValue !== undefined) {
1975
+ set(mutableSchema, 'default', spec.defaultValue);
1976
+ }
1977
+ set(mutableSchema, 'type', JsonSchemaType.String);
1978
+ if (spec.required) {
1979
+ set(mutableSchema, 'allOf', [
1980
+ ...(mutableSchema.allOf || []),
1981
+ { not: { enum: [null, undefined, '', false] } },
1982
+ ]);
1983
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
1984
+ }
1985
+ if (spec.maxLength) {
1986
+ const maxLength = Number(spec.maxLength);
1987
+ if (!isNaN(maxLength)) {
1988
+ set(mutableSchema, 'maxLength', maxLength);
1989
+ }
1990
+ }
1991
+ if (spec.minLength) {
1992
+ const minLength = Number(spec.minLength);
1993
+ if (!isNaN(minLength)) {
1994
+ set(mutableSchema, 'minLength', minLength);
1995
+ }
1996
+ }
1997
+ if (spec.pattern) {
1998
+ set(mutableSchema, 'pattern', spec.pattern);
1999
+ }
2000
+ if (spec.patternError) {
2001
+ set(mutableSchema, 'nodeParameters.errorMessages.pattern', spec.patternError);
2002
+ }
2003
+ // enum for old base not expected
2004
+ // if (spec.enum) {}
2005
+ // description for old base not expected
2006
+ // if (spec.description) {}
2007
+ if (spec.validator && spec.validator !== 'base') {
2008
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
2009
+ }
2010
+ if (spec.viewSpec.disabled) {
2011
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
2012
+ }
2013
+ set(mutableSchema, 'nodeParameters.type', NodeType.String);
2014
+ set(mutableSchema, 'nodeParameters.entity', 'base');
2015
+ if (spec.viewSpec.layout) {
2016
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
2017
+ if (layoutRule) {
2018
+ layoutRule(spec, mutableSchema, ctx);
2019
+ }
2020
+ else if (process.env.NODE_ENV !== 'production') {
2021
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
2022
+ }
2023
+ }
2024
+ if (spec.viewSpec.layoutTitle) {
2025
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
2026
+ }
2027
+ if (spec.viewSpec.layoutDescription) {
2028
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
2029
+ }
2030
+ if (spec.viewSpec.layoutOpen !== undefined) {
2031
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
2032
+ }
2033
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
2034
+ console.warn(`[dynamic-forms] Unknown string base view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
2035
+ }
2036
+ // sizeParams for old base not expected
2037
+ // if (spec.viewSpec.sizeParams) {}
2038
+ // monacoParams for old base not expected
2039
+ // if (spec.viewSpec.monacoParams) {}
2040
+ if (spec.viewSpec.hideValues && process.env.NODE_ENV !== 'production') {
2041
+ console.warn(`[dynamic-forms] Unknown string base view spec key: "hideValues", value - ${JSON.stringify(spec.viewSpec.hideValues)}`);
2042
+ }
2043
+ if (spec.viewSpec.placeholder) {
2044
+ set(mutableSchema, 'nodeParameters.entityProps.placeholder', spec.viewSpec.placeholder);
2045
+ }
2046
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
2047
+ console.warn(`[dynamic-forms] Unknown string base view spec key: "hidden"`);
2048
+ }
2049
+ // textContentParams for old base not expected
2050
+ // if (spec.viewSpec.textContentParams) {}
2051
+ // fileInput for old base not expected
2052
+ // if (spec.viewSpec.fileInput) {}
2053
+ // dateInput for old base not expected
2054
+ // if (spec.viewSpec.dateInput) {}
2055
+ if (spec.viewSpec.copy) {
2056
+ set(mutableSchema, 'nodeParameters.layoutProps.copy', true);
2057
+ }
2058
+ // selectParams for old base not expected
2059
+ // if (spec.viewSpec.selectParams) {}
2060
+ // radioGroupParams for old base not expected
2061
+ // if (spec.viewSpec.radioGroupParams) {}
2062
+ if (spec.viewSpec.inputProps) {
2063
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
2064
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
2065
+ });
2066
+ }
2067
+ if (spec.viewSpec.layoutProps) {
2068
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
2069
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
2070
+ });
2071
+ }
2072
+ if (spec.viewSpec.generateRandomValueButton && process.env.NODE_ENV !== 'production') {
2073
+ console.warn(`[dynamic-forms] Unknown string base view spec key: "generateRandomValueButton"`);
2074
+ }
2075
+ },
2076
+ file_input: (spec, mutableSchema, ctx) => {
2077
+ var _a;
2078
+ if (spec.defaultValue !== undefined) {
2079
+ set(mutableSchema, 'default', spec.defaultValue);
2080
+ }
2081
+ set(mutableSchema, 'type', JsonSchemaType.String);
2082
+ if (spec.required) {
2083
+ set(mutableSchema, 'allOf', [
2084
+ ...(mutableSchema.allOf || []),
2085
+ { not: { enum: [null, undefined, '', false] } },
2086
+ ]);
2087
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
2088
+ }
2089
+ if (spec.maxLength) {
2090
+ const maxLength = Number(spec.maxLength);
2091
+ if (!isNaN(maxLength)) {
2092
+ set(mutableSchema, 'maxLength', maxLength);
2093
+ }
2094
+ }
2095
+ if (spec.minLength) {
2096
+ const minLength = Number(spec.minLength);
2097
+ if (!isNaN(minLength)) {
2098
+ set(mutableSchema, 'minLength', minLength);
2099
+ }
2100
+ }
2101
+ // pattern for old file_input not expected
2102
+ // if (spec.pattern) {}
2103
+ // patternError for old file_input not expected
2104
+ // if (spec.patternError) {}
2105
+ // enum for old file_input not expected
2106
+ // if (spec.enum) {}
2107
+ // description for old file_input not expected
2108
+ // if (spec.description) {}
2109
+ if (spec.validator && spec.validator !== 'base') {
2110
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
2111
+ }
2112
+ if (spec.viewSpec.disabled) {
2113
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
2114
+ }
2115
+ set(mutableSchema, 'nodeParameters.type', NodeType.String);
2116
+ set(mutableSchema, 'nodeParameters.entity', 'file');
2117
+ if (spec.viewSpec.layout) {
2118
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
2119
+ if (layoutRule) {
2120
+ layoutRule(spec, mutableSchema, ctx);
2121
+ }
2122
+ else if (process.env.NODE_ENV !== 'production') {
2123
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
2124
+ }
2125
+ }
2126
+ if (spec.viewSpec.layoutTitle) {
2127
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
2128
+ }
2129
+ if (spec.viewSpec.layoutDescription) {
2130
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
2131
+ }
2132
+ if (spec.viewSpec.layoutOpen !== undefined) {
2133
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
2134
+ }
2135
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
2136
+ console.warn(`[dynamic-forms] Unknown string file_input view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
2137
+ }
2138
+ // sizeParams for old file_input not expected
2139
+ // if (spec.viewSpec.sizeParams) {}
2140
+ // monacoParams for old file_input not expected
2141
+ // if (spec.viewSpec.monacoParams) {}
2142
+ if (spec.viewSpec.hideValues && process.env.NODE_ENV !== 'production') {
2143
+ console.warn(`[dynamic-forms] Unknown string file_input view spec key: "hideValues", value - ${JSON.stringify(spec.viewSpec.hideValues)}`);
2144
+ }
2145
+ // placeholder for old file_input not expected
2146
+ // if (spec.viewSpec.placeholder) {}
2147
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
2148
+ console.warn(`[dynamic-forms] Unknown string file_input view spec key: "hidden"`);
2149
+ }
2150
+ // textContentParams for old file_input not expected
2151
+ // if (spec.viewSpec.textContentParams) {}
2152
+ if (spec.viewSpec.fileInput) {
2153
+ if (spec.viewSpec.fileInput.accept) {
2154
+ set(mutableSchema, 'nodeParameters.entityProps.accept', [
2155
+ spec.viewSpec.fileInput.accept,
2156
+ ]);
2157
+ }
2158
+ if (spec.viewSpec.fileInput.readAsMethod) {
2159
+ set(mutableSchema, 'nodeParameters.entityProps.readAsMethod', spec.viewSpec.fileInput.readAsMethod);
2160
+ }
2161
+ if (spec.viewSpec.fileInput.ignoreText && process.env.NODE_ENV !== 'production') {
2162
+ console.warn(`[dynamic-forms] Unknown string file_input view spec key: "fileInput.ignoreText"`);
2163
+ }
2164
+ }
2165
+ // dateInput for old file_input not expected
2166
+ // if (spec.viewSpec.dateInput) {}
2167
+ if (spec.viewSpec.copy) {
2168
+ set(mutableSchema, 'nodeParameters.layoutProps.copy', true);
2169
+ }
2170
+ // selectParams for old file_input not expected
2171
+ // if (spec.viewSpec.selectParams) {}
2172
+ // radioGroupParams for old file_input not expected
2173
+ // if (spec.viewSpec.radioGroupParams) {}
2174
+ if (spec.viewSpec.inputProps) {
2175
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
2176
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
2177
+ });
2178
+ }
2179
+ if (spec.viewSpec.layoutProps) {
2180
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
2181
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
2182
+ });
2183
+ }
2184
+ // generateRandomValueButton for old file_input not expected
2185
+ // if (spec.viewSpec.generateRandomValueButton) {}
2186
+ },
2187
+ date_input: (spec, mutableSchema, ctx) => {
2188
+ var _a;
2189
+ if (spec.defaultValue !== undefined) {
2190
+ set(mutableSchema, 'default', spec.defaultValue);
2191
+ }
2192
+ // json schema type is not set: the value may be a string, a date or a timestamp object
2193
+ if (spec.required) {
2194
+ set(mutableSchema, 'allOf', [
2195
+ ...(mutableSchema.allOf || []),
2196
+ { not: { enum: [null, undefined, '', false] } },
2197
+ ]);
2198
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
2199
+ }
2200
+ // maxLength for old date_input not expected
2201
+ // if (spec.maxLength) {}
2202
+ // minLength for old date_input not expected
2203
+ // if (spec.minLength) {}
2204
+ // pattern for old date_input not expected
2205
+ // if (spec.pattern) {}
2206
+ // patternError for old date_input not expected
2207
+ // if (spec.patternError) {}
2208
+ // enum for old date_input not expected
2209
+ // if (spec.enum) {}
2210
+ // description for old date_input not expected
2211
+ // if (spec.description) {}
2212
+ if (spec.validator && spec.validator !== 'base') {
2213
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
2214
+ }
2215
+ if (spec.viewSpec.disabled) {
2216
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
2217
+ }
2218
+ set(mutableSchema, 'nodeParameters.type', NodeType.Any);
2219
+ set(mutableSchema, 'nodeParameters.entity', 'date');
2220
+ if (spec.viewSpec.layout) {
2221
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
2222
+ if (layoutRule) {
2223
+ layoutRule(spec, mutableSchema, ctx);
2224
+ }
2225
+ else if (process.env.NODE_ENV !== 'production') {
2226
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
2227
+ }
2228
+ }
2229
+ if (spec.viewSpec.layoutTitle) {
2230
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
2231
+ }
2232
+ if (spec.viewSpec.layoutDescription) {
2233
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
2234
+ }
2235
+ if (spec.viewSpec.layoutOpen !== undefined) {
2236
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
2237
+ }
2238
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
2239
+ console.warn(`[dynamic-forms] Unknown string date_input view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
2240
+ }
2241
+ // sizeParams for old date_input not expected
2242
+ // if (spec.viewSpec.sizeParams) {}
2243
+ // monacoParams for old date_input not expected
2244
+ // if (spec.viewSpec.monacoParams) {}
2245
+ if (spec.viewSpec.hideValues && process.env.NODE_ENV !== 'production') {
2246
+ console.warn(`[dynamic-forms] Unknown string date_input view spec key: "hideValues", value - ${JSON.stringify(spec.viewSpec.hideValues)}`);
2247
+ }
2248
+ if (spec.viewSpec.placeholder) {
2249
+ set(mutableSchema, 'nodeParameters.entityProps.placeholder', spec.viewSpec.placeholder);
2250
+ }
2251
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
2252
+ console.warn(`[dynamic-forms] Unknown string date_input view spec key: "hidden"`);
2253
+ }
2254
+ // textContentParams for old date_input not expected
2255
+ // if (spec.viewSpec.textContentParams) {}
2256
+ // fileInput for old date_input not expected
2257
+ // if (spec.viewSpec.fileInput) {}
2258
+ if (spec.viewSpec.dateInput) {
2259
+ if (spec.viewSpec.dateInput.outputFormat) {
2260
+ set(mutableSchema, 'nodeParameters.entityProps.outputFormat', spec.viewSpec.dateInput.outputFormat);
2261
+ }
2262
+ if (spec.viewSpec.dateInput.printFormat) {
2263
+ set(mutableSchema, 'nodeParameters.entityProps.format', spec.viewSpec.dateInput.printFormat);
2264
+ }
2265
+ if (spec.viewSpec.dateInput.timeZone) {
2266
+ set(mutableSchema, 'nodeParameters.entityProps.timeZone', spec.viewSpec.dateInput.timeZone);
2267
+ }
2268
+ }
2269
+ if (spec.viewSpec.copy) {
2270
+ set(mutableSchema, 'nodeParameters.layoutProps.copy', true);
2271
+ }
2272
+ // selectParams for old date_input not expected
2273
+ // if (spec.viewSpec.selectParams) {}
2274
+ // radioGroupParams for old date_input not expected
2275
+ // if (spec.viewSpec.radioGroupParams) {}
2276
+ if (spec.viewSpec.inputProps) {
2277
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
2278
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
2279
+ });
2280
+ }
2281
+ if (spec.viewSpec.layoutProps) {
2282
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
2283
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
2284
+ });
2285
+ }
2286
+ // generateRandomValueButton for old date_input not expected
2287
+ // if (spec.viewSpec.generateRandomValueButton) {}
2288
+ },
2289
+ color_picker: (spec, mutableSchema, ctx) => {
2290
+ var _a;
2291
+ if (spec.defaultValue !== undefined) {
2292
+ set(mutableSchema, 'default', spec.defaultValue);
2293
+ }
2294
+ set(mutableSchema, 'type', JsonSchemaType.String);
2295
+ if (spec.required) {
2296
+ set(mutableSchema, 'allOf', [
2297
+ ...(mutableSchema.allOf || []),
2298
+ { not: { enum: [null, undefined, '', false] } },
2299
+ ]);
2300
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
2301
+ }
2302
+ // maxLength for old color_picker not expected
2303
+ // if (spec.maxLength) {}
2304
+ // minLength for old color_picker not expected
2305
+ // if (spec.minLength) {}
2306
+ if (spec.pattern) {
2307
+ set(mutableSchema, 'pattern', spec.pattern);
2308
+ }
2309
+ if (spec.patternError) {
2310
+ set(mutableSchema, 'nodeParameters.errorMessages.pattern', spec.patternError);
2311
+ }
2312
+ // enum for old color_picker not expected
2313
+ // if (spec.enum) {}
2314
+ // description for old color_picker not expected
2315
+ // if (spec.description) {}
2316
+ if (spec.validator && spec.validator !== 'base') {
2317
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
2318
+ }
2319
+ if (spec.viewSpec.disabled) {
2320
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
2321
+ }
2322
+ set(mutableSchema, 'nodeParameters.type', NodeType.String);
2323
+ set(mutableSchema, 'nodeParameters.entity', 'color_picker');
2324
+ if (spec.viewSpec.layout) {
2325
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
2326
+ if (layoutRule) {
2327
+ layoutRule(spec, mutableSchema, ctx);
2328
+ }
2329
+ else if (process.env.NODE_ENV !== 'production') {
2330
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
2331
+ }
2332
+ }
2333
+ if (spec.viewSpec.layoutTitle) {
2334
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
2335
+ }
2336
+ if (spec.viewSpec.layoutDescription) {
2337
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
2338
+ }
2339
+ if (spec.viewSpec.layoutOpen !== undefined) {
2340
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
2341
+ }
2342
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
2343
+ console.warn(`[dynamic-forms] Unknown string color_picker view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
2344
+ }
2345
+ // sizeParams for old color_picker not expected
2346
+ // if (spec.viewSpec.sizeParams) {}
2347
+ // monacoParams for old color_picker not expected
2348
+ // if (spec.viewSpec.monacoParams) {}
2349
+ if (spec.viewSpec.hideValues && process.env.NODE_ENV !== 'production') {
2350
+ console.warn(`[dynamic-forms] Unknown string color_picker view spec key: "hideValues", value - ${JSON.stringify(spec.viewSpec.hideValues)}`);
2351
+ }
2352
+ if (spec.viewSpec.placeholder && process.env.NODE_ENV !== 'production') {
2353
+ console.warn(`[dynamic-forms] Unknown string color_picker view spec key: "placeholder", value - ${spec.viewSpec.placeholder}`);
2354
+ }
2355
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
2356
+ console.warn(`[dynamic-forms] Unknown string color_picker view spec key: "hidden"`);
2357
+ }
2358
+ // textContentParams for old color_picker not expected
2359
+ // if (spec.viewSpec.textContentParams) {}
2360
+ // fileInput for old color_picker not expected
2361
+ // if (spec.viewSpec.fileInput) {}
2362
+ // dateInput for old color_picker not expected
2363
+ // if (spec.viewSpec.dateInput) {}
2364
+ if (spec.viewSpec.copy) {
2365
+ set(mutableSchema, 'nodeParameters.layoutProps.copy', true);
2366
+ }
2367
+ // selectParams for old color_picker not expected
2368
+ // if (spec.viewSpec.selectParams) {}
2369
+ // radioGroupParams for old color_picker not expected
2370
+ // if (spec.viewSpec.radioGroupParams) {}
2371
+ if (spec.viewSpec.inputProps) {
2372
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
2373
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
2374
+ });
2375
+ }
2376
+ if (spec.viewSpec.layoutProps) {
2377
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
2378
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
2379
+ });
2380
+ }
2381
+ // generateRandomValueButton for old color_picker not expected
2382
+ // if (spec.viewSpec.generateRandomValueButton) {}
2383
+ },
2384
+ number_with_scale: (spec, mutableSchema, ctx) => {
2385
+ var _a;
2386
+ const numberWithScaleSpec = spec;
2387
+ if (spec.defaultValue !== undefined) {
2388
+ set(mutableSchema, 'default', spec.defaultValue);
2389
+ }
2390
+ set(mutableSchema, 'type', JsonSchemaType.String);
2391
+ if (spec.required) {
2392
+ set(mutableSchema, 'allOf', [
2393
+ ...(mutableSchema.allOf || []),
2394
+ { not: { enum: [null, undefined, '', false] } },
2395
+ ]);
2396
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
2397
+ }
2398
+ // maxLength for old number_with_scale not expected
2399
+ // if (spec.maxLength) {}
2400
+ // minLength for old number_with_scale not expected
2401
+ // if (spec.minLength) {}
2402
+ // pattern for old number_with_scale not expected
2403
+ // if (spec.pattern) {}
2404
+ // patternError for old number_with_scale not expected
2405
+ // if (spec.patternError) {}
2406
+ // enum for old number_with_scale not expected
2407
+ // if (spec.enum) {}
2408
+ // description for old number_with_scale not expected
2409
+ // if (spec.description) {}
2410
+ if (spec.validator && spec.validator !== 'base') {
2411
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
2412
+ }
2413
+ // NumberWithScaleSpec keeps its numeric limits in the stringNumber keyword
2414
+ if (numberWithScaleSpec.minimum !== undefined) {
2415
+ const minimum = Number(numberWithScaleSpec.minimum);
2416
+ if (!isNaN(minimum)) {
2417
+ set(mutableSchema, 'stringNumber.minimum', `${minimum}`);
2418
+ }
2419
+ }
2420
+ if (numberWithScaleSpec.maximum !== undefined) {
2421
+ const maximum = Number(numberWithScaleSpec.maximum);
2422
+ if (!isNaN(maximum)) {
2423
+ set(mutableSchema, 'stringNumber.maximum', `${maximum}`);
2424
+ }
2425
+ }
2426
+ if (numberWithScaleSpec.format) {
2427
+ set(mutableSchema, 'stringNumber.type', numberWithScaleSpec.format === 'int64'
2428
+ ? JsonSchemaType.Integer
2429
+ : JsonSchemaType.Number);
2430
+ }
2431
+ if (spec.viewSpec.disabled) {
2432
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
2433
+ }
2434
+ set(mutableSchema, 'nodeParameters.type', NodeType.String);
2435
+ set(mutableSchema, 'nodeParameters.entity', 'string_number_with_scale');
2436
+ if (spec.viewSpec.layout) {
2437
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
2438
+ if (layoutRule) {
2439
+ layoutRule(spec, mutableSchema, ctx);
2440
+ }
2441
+ else if (process.env.NODE_ENV !== 'production') {
2442
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
2443
+ }
2444
+ }
2445
+ if (spec.viewSpec.layoutTitle) {
2446
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
2447
+ }
2448
+ if (spec.viewSpec.layoutDescription) {
2449
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
2450
+ }
2451
+ if (spec.viewSpec.layoutOpen !== undefined) {
2452
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
2453
+ }
2454
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
2455
+ console.warn(`[dynamic-forms] Unknown string number_with_scale view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
2456
+ }
2457
+ if (spec.viewSpec.sizeParams) {
2458
+ if (spec.viewSpec.sizeParams.defaultType) {
2459
+ set(mutableSchema, 'nodeParameters.entityProps.defaultType', spec.viewSpec.sizeParams.defaultType);
2460
+ }
2461
+ if (spec.viewSpec.sizeParams.scale) {
2462
+ set(mutableSchema, 'nodeParameters.entityProps.scale', spec.viewSpec.sizeParams.scale);
2463
+ }
2464
+ if (spec.viewSpec.sizeParams.viewType) {
2465
+ set(mutableSchema, 'nodeParameters.entityProps.viewType', spec.viewSpec.sizeParams.viewType);
2466
+ }
2467
+ }
2468
+ // monacoParams for old number_with_scale not expected
2469
+ // if (spec.viewSpec.monacoParams) {}
2470
+ if (spec.viewSpec.hideValues && process.env.NODE_ENV !== 'production') {
2471
+ console.warn(`[dynamic-forms] Unknown string number_with_scale view spec key: "hideValues", value - ${JSON.stringify(spec.viewSpec.hideValues)}`);
2472
+ }
2473
+ if (spec.viewSpec.placeholder) {
2474
+ set(mutableSchema, 'nodeParameters.entityProps.placeholder', spec.viewSpec.placeholder);
2475
+ }
2476
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
2477
+ console.warn(`[dynamic-forms] Unknown string number_with_scale view spec key: "hidden"`);
2478
+ }
2479
+ // textContentParams for old number_with_scale not expected
2480
+ // if (spec.viewSpec.textContentParams) {}
2481
+ // fileInput for old number_with_scale not expected
2482
+ // if (spec.viewSpec.fileInput) {}
2483
+ // dateInput for old number_with_scale not expected
2484
+ // if (spec.viewSpec.dateInput) {}
2485
+ if (spec.viewSpec.copy) {
2486
+ set(mutableSchema, 'nodeParameters.layoutProps.copy', true);
2487
+ }
2488
+ // selectParams for old number_with_scale not expected
2489
+ // if (spec.viewSpec.selectParams) {}
2490
+ // radioGroupParams for old number_with_scale not expected
2491
+ // if (spec.viewSpec.radioGroupParams) {}
2492
+ if (spec.viewSpec.inputProps) {
2493
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
2494
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
2495
+ });
2496
+ }
2497
+ if (spec.viewSpec.layoutProps) {
2498
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
2499
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
2500
+ });
2501
+ }
2502
+ // generateRandomValueButton for old number_with_scale not expected
2503
+ // if (spec.viewSpec.generateRandomValueButton) {}
2504
+ },
2505
+ monaco_input: (spec, mutableSchema, ctx) => {
2506
+ var _a;
2507
+ if (spec.defaultValue !== undefined) {
2508
+ set(mutableSchema, 'default', spec.defaultValue);
2509
+ }
2510
+ set(mutableSchema, 'type', JsonSchemaType.String);
2511
+ if (spec.required) {
2512
+ set(mutableSchema, 'allOf', [
2513
+ ...(mutableSchema.allOf || []),
2514
+ { not: { enum: [null, undefined, '', false] } },
2515
+ ]);
2516
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
2517
+ }
2518
+ if (spec.maxLength) {
2519
+ const maxLength = Number(spec.maxLength);
2520
+ if (!isNaN(maxLength)) {
2521
+ set(mutableSchema, 'maxLength', maxLength);
2522
+ }
2523
+ }
2524
+ if (spec.minLength) {
2525
+ const minLength = Number(spec.minLength);
2526
+ if (!isNaN(minLength)) {
2527
+ set(mutableSchema, 'minLength', minLength);
2528
+ }
2529
+ }
2530
+ // pattern for old monaco_input not expected
2531
+ // if (spec.pattern) {}
2532
+ // patternError for old monaco_input not expected
2533
+ // if (spec.patternError) {}
2534
+ // enum for old monaco_input not expected
2535
+ // if (spec.enum) {}
2536
+ // description for old monaco_input not expected
2537
+ // if (spec.description) {}
2538
+ if (spec.validator && spec.validator !== 'base') {
2539
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
2540
+ }
2541
+ if (spec.viewSpec.disabled) {
2542
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
2543
+ }
2544
+ set(mutableSchema, 'nodeParameters.type', NodeType.String);
2545
+ set(mutableSchema, 'nodeParameters.entity', 'monaco');
2546
+ if (spec.viewSpec.layout) {
2547
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
2548
+ if (layoutRule) {
2549
+ layoutRule(spec, mutableSchema, ctx);
2550
+ }
2551
+ else if (process.env.NODE_ENV !== 'production') {
2552
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
2553
+ }
2554
+ }
2555
+ if (spec.viewSpec.layoutTitle) {
2556
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
2557
+ }
2558
+ if (spec.viewSpec.layoutDescription) {
2559
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
2560
+ }
2561
+ if (spec.viewSpec.layoutOpen !== undefined) {
2562
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
2563
+ }
2564
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
2565
+ console.warn(`[dynamic-forms] Unknown string monaco_input view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
2566
+ }
2567
+ // sizeParams for old monaco_input not expected
2568
+ // if (spec.viewSpec.sizeParams) {}
2569
+ if (spec.viewSpec.monacoParams) {
2570
+ if (spec.viewSpec.monacoParams.language) {
2571
+ set(mutableSchema, 'nodeParameters.entityProps.language', spec.viewSpec.monacoParams.language);
2572
+ }
2573
+ if (spec.viewSpec.monacoParams.fontSize) {
2574
+ set(mutableSchema, 'nodeParameters.entityProps.options.fontSize', spec.viewSpec.monacoParams.fontSize);
2575
+ }
2576
+ if (process.env.NODE_ENV !== 'production') {
2577
+ [
2578
+ 'headerIconSize',
2579
+ 'headerIconIndent',
2580
+ 'headerTitleVariant',
2581
+ 'headerDialogButtonSize',
2582
+ 'headerDialogIconSize',
2583
+ ].forEach((key) => {
2584
+ var _a;
2585
+ if (((_a = spec.viewSpec.monacoParams) === null || _a === void 0 ? void 0 : _a[key]) !== undefined) {
2586
+ console.warn(`[dynamic-forms] Unknown string monaco_input view spec key: "monacoParams.${key}", value - ${spec.viewSpec.monacoParams[key]}`);
2587
+ }
2588
+ });
2589
+ }
2590
+ }
2591
+ if (spec.viewSpec.hideValues && process.env.NODE_ENV !== 'production') {
2592
+ console.warn(`[dynamic-forms] Unknown string monaco_input view spec key: "hideValues", value - ${JSON.stringify(spec.viewSpec.hideValues)}`);
2593
+ }
2594
+ if (spec.viewSpec.placeholder && process.env.NODE_ENV !== 'production') {
2595
+ console.warn(`[dynamic-forms] Unknown string monaco_input view spec key: "placeholder", value - ${spec.viewSpec.placeholder}`);
2596
+ }
2597
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
2598
+ console.warn(`[dynamic-forms] Unknown string monaco_input view spec key: "hidden"`);
2599
+ }
2600
+ // textContentParams for old monaco_input not expected
2601
+ // if (spec.viewSpec.textContentParams) {}
2602
+ // fileInput for old monaco_input not expected
2603
+ // if (spec.viewSpec.fileInput) {}
2604
+ // dateInput for old monaco_input not expected
2605
+ // if (spec.viewSpec.dateInput) {}
2606
+ if (spec.viewSpec.copy) {
2607
+ set(mutableSchema, 'nodeParameters.layoutProps.copy', true);
2608
+ }
2609
+ // selectParams for old monaco_input not expected
2610
+ // if (spec.viewSpec.selectParams) {}
2611
+ // radioGroupParams for old monaco_input not expected
2612
+ // if (spec.viewSpec.radioGroupParams) {}
2613
+ if (spec.viewSpec.inputProps) {
2614
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
2615
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
2616
+ });
2617
+ }
2618
+ if (spec.viewSpec.layoutProps) {
2619
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
2620
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
2621
+ });
2622
+ }
2623
+ // generateRandomValueButton for old monaco_input not expected
2624
+ // if (spec.viewSpec.generateRandomValueButton) {}
2625
+ },
2626
+ text_content: (spec, mutableSchema, ctx) => {
2627
+ var _a;
2628
+ if (spec.defaultValue !== undefined) {
2629
+ set(mutableSchema, 'default', spec.defaultValue);
2630
+ }
2631
+ set(mutableSchema, 'type', JsonSchemaType.String);
2632
+ // required for old text_content not expected
2633
+ // if (spec.required) {}
2634
+ // maxLength for old text_content not expected
2635
+ // if (spec.maxLength) {}
2636
+ // minLength for old text_content not expected
2637
+ // if (spec.minLength) {}
2638
+ // pattern for old text_content not expected
2639
+ // if (spec.pattern) {}
2640
+ // patternError for old text_content not expected
2641
+ // if (spec.patternError) {}
2642
+ // enum for old text_content not expected
2643
+ // if (spec.enum) {}
2644
+ // description for old text_content not expected
2645
+ // if (spec.description) {}
2646
+ // validator for old text_content not expected
2647
+ // if (spec.validator) {}
2648
+ // disabled for old text_content not expected
2649
+ // if (spec.viewSpec.disabled) {}
2650
+ set(mutableSchema, 'nodeParameters.type', NodeType.String);
2651
+ set(mutableSchema, 'nodeParameters.entity', 'text_content');
2652
+ if (spec.viewSpec.layout) {
2653
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
2654
+ if (layoutRule) {
2655
+ layoutRule(spec, mutableSchema, ctx);
2656
+ }
2657
+ else if (process.env.NODE_ENV !== 'production') {
2658
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
2659
+ }
2660
+ }
2661
+ if (spec.viewSpec.layoutTitle) {
2662
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
2663
+ }
2664
+ if (spec.viewSpec.layoutDescription) {
2665
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
2666
+ }
2667
+ if (spec.viewSpec.layoutOpen !== undefined) {
2668
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
2669
+ }
2670
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
2671
+ console.warn(`[dynamic-forms] Unknown string text_content view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
2672
+ }
2673
+ // sizeParams for old text_content not expected
2674
+ // if (spec.viewSpec.sizeParams) {}
2675
+ // monacoParams for old text_content not expected
2676
+ // if (spec.viewSpec.monacoParams) {}
2677
+ // hideValues for old text_content not expected
2678
+ // if (spec.viewSpec.hideValues) {}
2679
+ // placeholder for old text_content not expected
2680
+ // if (spec.viewSpec.placeholder) {}
2681
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
2682
+ console.warn(`[dynamic-forms] Unknown string text_content view spec key: "hidden"`);
2683
+ }
2684
+ if (spec.viewSpec.textContentParams) {
2685
+ // the new kit splits the old text_content into text_content, alert and label entities
2686
+ if (spec.viewSpec.textContentParams.themeAlert) {
2687
+ set(mutableSchema, 'nodeParameters.entity', 'alert');
2688
+ set(mutableSchema, 'nodeParameters.entityProps.theme', spec.viewSpec.textContentParams.themeAlert);
2689
+ if (spec.viewSpec.textContentParams.text) {
2690
+ set(mutableSchema, 'nodeParameters.entityProps.message', spec.viewSpec.textContentParams.text);
2691
+ }
2692
+ if (spec.viewSpec.textContentParams.titleAlert) {
2693
+ set(mutableSchema, 'nodeParameters.entityProps.title', spec.viewSpec.textContentParams.titleAlert);
2694
+ }
2695
+ if (spec.viewSpec.textContentParams.viewAlert) {
2696
+ set(mutableSchema, 'nodeParameters.entityProps.view', spec.viewSpec.textContentParams.viewAlert);
2697
+ }
2698
+ }
2699
+ else if (spec.viewSpec.textContentParams.themeLabel) {
2700
+ set(mutableSchema, 'nodeParameters.entity', 'label');
2701
+ set(mutableSchema, 'nodeParameters.entityProps.theme', spec.viewSpec.textContentParams.themeLabel);
2702
+ if (spec.viewSpec.textContentParams.text) {
2703
+ set(mutableSchema, 'nodeParameters.entityProps.title', spec.viewSpec.textContentParams.text);
2704
+ }
2705
+ }
2706
+ else if (spec.viewSpec.textContentParams.text) {
2707
+ set(mutableSchema, 'nodeParameters.entityProps.title', spec.viewSpec.textContentParams.text);
2708
+ }
2709
+ if (spec.viewSpec.textContentParams.icon) {
2710
+ set(mutableSchema, 'nodeParameters.entityProps.iconName', spec.viewSpec.textContentParams.icon);
2711
+ }
2712
+ if (spec.viewSpec.textContentParams.iconColor) {
2713
+ set(mutableSchema, 'nodeParameters.entityProps.iconProps.color', spec.viewSpec.textContentParams.iconColor);
2714
+ }
2715
+ }
2716
+ // fileInput for old text_content not expected
2717
+ // if (spec.viewSpec.fileInput) {}
2718
+ // dateInput for old text_content not expected
2719
+ // if (spec.viewSpec.dateInput) {}
2720
+ // copy for old text_content not expected
2721
+ // if (spec.viewSpec.copy) {}
2722
+ // selectParams for old text_content not expected
2723
+ // if (spec.viewSpec.selectParams) {}
2724
+ // radioGroupParams for old text_content not expected
2725
+ // if (spec.viewSpec.radioGroupParams) {}
2726
+ if (spec.viewSpec.inputProps) {
2727
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
2728
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
2729
+ });
2730
+ }
2731
+ if (spec.viewSpec.layoutProps) {
2732
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
2733
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
2734
+ });
2735
+ }
2736
+ // generateRandomValueButton for old text_content not expected
2737
+ // if (spec.viewSpec.generateRandomValueButton) {}
2738
+ },
2739
+ radio_group: (spec, mutableSchema, ctx) => {
2740
+ var _a;
2741
+ if (spec.defaultValue !== undefined) {
2742
+ set(mutableSchema, 'default', spec.defaultValue);
2743
+ }
2744
+ set(mutableSchema, 'type', JsonSchemaType.String);
2745
+ if (spec.required) {
2746
+ set(mutableSchema, 'allOf', [
2747
+ ...(mutableSchema.allOf || []),
2748
+ { not: { enum: [null, undefined, '', false] } },
2749
+ ]);
2750
+ set(mutableSchema, 'nodeParameters.layoutProps.required', true);
2751
+ }
2752
+ // maxLength for old radio_group not expected
2753
+ // if (spec.maxLength) {}
2754
+ // minLength for old radio_group not expected
2755
+ // if (spec.minLength) {}
2756
+ // pattern for old radio_group not expected
2757
+ // if (spec.pattern) {}
2758
+ // patternError for old radio_group not expected
2759
+ // if (spec.patternError) {}
2760
+ if (spec.enum) {
2761
+ set(mutableSchema, 'enum', spec.enum);
2762
+ }
2763
+ if (spec.description) {
2764
+ set(mutableSchema, 'nodeParameters.entityProps.enumDescriptions', spec.description);
2765
+ }
2766
+ if (spec.validator && spec.validator !== 'base') {
2767
+ set(mutableSchema, 'nodeParameters.entityProps.validator', spec.validator);
2768
+ }
2769
+ if (spec.viewSpec.disabled) {
2770
+ set(mutableSchema, 'nodeParameters.entityProps.disabled', true);
2771
+ }
2772
+ set(mutableSchema, 'nodeParameters.type', NodeType.String);
2773
+ set(mutableSchema, 'nodeParameters.entity', 'radio_group');
2774
+ if (spec.viewSpec.layout) {
2775
+ const layoutRule = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules) === null || _a === void 0 ? void 0 : _a[spec.viewSpec.layout];
2776
+ if (layoutRule) {
2777
+ layoutRule(spec, mutableSchema, ctx);
2778
+ }
2779
+ else if (process.env.NODE_ENV !== 'production') {
2780
+ console.warn(`[dynamic-forms] Unknown view spec layout: ${spec.viewSpec.layout}`);
2781
+ }
2782
+ }
2783
+ if (spec.viewSpec.layoutTitle) {
2784
+ set(mutableSchema, 'title', spec.viewSpec.layoutTitle);
2785
+ }
2786
+ if (spec.viewSpec.layoutDescription) {
2787
+ set(mutableSchema, 'description', spec.viewSpec.layoutDescription);
2788
+ }
2789
+ if (spec.viewSpec.layoutOpen !== undefined) {
2790
+ set(mutableSchema, 'nodeParameters.layoutProps.open', spec.viewSpec.layoutOpen);
2791
+ }
2792
+ if (spec.viewSpec.link && process.env.NODE_ENV !== 'production') {
2793
+ console.warn(`[dynamic-forms] Unknown string radio_group view spec key: "link", value - ${JSON.stringify(spec.viewSpec.link, null, 2)}`);
2794
+ }
2795
+ // sizeParams for old radio_group not expected
2796
+ // if (spec.viewSpec.sizeParams) {}
2797
+ // monacoParams for old radio_group not expected
2798
+ // if (spec.viewSpec.monacoParams) {}
2799
+ if (spec.viewSpec.hideValues && process.env.NODE_ENV !== 'production') {
2800
+ console.warn(`[dynamic-forms] Unknown string radio_group view spec key: "hideValues", value - ${JSON.stringify(spec.viewSpec.hideValues)}`);
2801
+ }
2802
+ if (spec.viewSpec.placeholder && process.env.NODE_ENV !== 'production') {
2803
+ console.warn(`[dynamic-forms] Unknown string radio_group view spec key: "placeholder", value - ${spec.viewSpec.placeholder}`);
2804
+ }
2805
+ if (spec.viewSpec.hidden && process.env.NODE_ENV !== 'production') {
2806
+ console.warn(`[dynamic-forms] Unknown string radio_group view spec key: "hidden"`);
2807
+ }
2808
+ // textContentParams for old radio_group not expected
2809
+ // if (spec.viewSpec.textContentParams) {}
2810
+ // fileInput for old radio_group not expected
2811
+ // if (spec.viewSpec.fileInput) {}
2812
+ // dateInput for old radio_group not expected
2813
+ // if (spec.viewSpec.dateInput) {}
2814
+ if (spec.viewSpec.copy) {
2815
+ set(mutableSchema, 'nodeParameters.layoutProps.copy', true);
2816
+ }
2817
+ // selectParams for old radio_group not expected
2818
+ // if (spec.viewSpec.selectParams) {}
2819
+ if (spec.viewSpec.radioGroupParams) {
2820
+ if (spec.viewSpec.radioGroupParams.direction) {
2821
+ set(mutableSchema, 'nodeParameters.entityProps.direction', spec.viewSpec.radioGroupParams.direction);
2822
+ }
2823
+ if (spec.viewSpec.radioGroupParams.disabled) {
2824
+ set(mutableSchema, 'nodeParameters.entityProps.optionsDisabled', spec.viewSpec.radioGroupParams.disabled);
2825
+ }
2826
+ }
2827
+ if (spec.viewSpec.inputProps) {
2828
+ Object.entries(spec.viewSpec.inputProps).forEach(([key, value]) => {
2829
+ set(mutableSchema, `nodeParameters.entityProps.${key}`, value);
2830
+ });
2831
+ }
2832
+ if (spec.viewSpec.layoutProps) {
2833
+ Object.entries(spec.viewSpec.layoutProps).forEach(([key, value]) => {
2834
+ set(mutableSchema, `nodeParameters.layoutProps.${key}`, value);
2835
+ });
2836
+ }
2837
+ // generateRandomValueButton for old radio_group not expected
2838
+ // if (spec.viewSpec.generateRandomValueButton) {}
2839
+ },
2840
+ };
2841
+ export function specToJsonSchema(spec, jsonSchema, ctx) {
2842
+ const context = {
2843
+ arrayInputTypeRules: Object.assign(Object.assign({}, arrayInputTypeRules), ctx === null || ctx === void 0 ? void 0 : ctx.arrayInputTypeRules),
2844
+ booleanInputTypeRules: Object.assign(Object.assign({}, booleanInputTypeRules), ctx === null || ctx === void 0 ? void 0 : ctx.booleanInputTypeRules),
2845
+ numberInputTypeRules: Object.assign(Object.assign({}, numberInputTypeRules), ctx === null || ctx === void 0 ? void 0 : ctx.numberInputTypeRules),
2846
+ objectInputTypeRules: Object.assign(Object.assign({}, objectInputTypeRules), ctx === null || ctx === void 0 ? void 0 : ctx.objectInputTypeRules),
2847
+ stringInputTypeRules: Object.assign(Object.assign({}, stringInputTypeRules), ctx === null || ctx === void 0 ? void 0 : ctx.stringInputTypeRules),
2848
+ layoutRules: Object.assign(Object.assign({}, layoutRules), ctx === null || ctx === void 0 ? void 0 : ctx.layoutRules),
2849
+ };
2850
+ const schema = jsonSchema || {};
2851
+ if (isArraySpec(spec)) {
2852
+ if (spec.viewSpec.type) {
2853
+ const rule = context.arrayInputTypeRules[spec.viewSpec.type];
2854
+ if (rule) {
2855
+ rule(spec, schema, context);
2856
+ }
2857
+ else if (process.env.NODE_ENV !== 'production') {
2858
+ console.warn(`[dynamic-forms] Unknown array view spec type: ${spec.viewSpec.type}`);
2859
+ }
2860
+ }
2861
+ }
2862
+ if (isBooleanSpec(spec)) {
2863
+ if (spec.viewSpec.type) {
2864
+ const rule = context.booleanInputTypeRules[spec.viewSpec.type];
2865
+ if (rule) {
2866
+ rule(spec, schema, context);
2867
+ }
2868
+ else if (process.env.NODE_ENV !== 'production') {
2869
+ console.warn(`[dynamic-forms] Unknown boolean view spec type: ${spec.viewSpec.type}`);
2870
+ }
2871
+ }
2872
+ }
2873
+ if (isNumberSpec(spec)) {
2874
+ if (spec.viewSpec.type) {
2875
+ const rule = context.numberInputTypeRules[spec.viewSpec.type];
2876
+ if (rule) {
2877
+ rule(spec, schema, context);
2878
+ }
2879
+ else if (process.env.NODE_ENV !== 'production') {
2880
+ console.warn(`[dynamic-forms] Unknown number view spec type: ${spec.viewSpec.type}`);
2881
+ }
2882
+ }
2883
+ }
2884
+ if (isObjectSpec(spec)) {
2885
+ if (spec.viewSpec.type) {
2886
+ const rule = context.objectInputTypeRules[spec.viewSpec.type];
2887
+ if (rule) {
2888
+ rule(spec, schema, context);
2889
+ }
2890
+ else if (process.env.NODE_ENV !== 'production') {
2891
+ console.warn(`[dynamic-forms] Unknown object view spec type: ${spec.viewSpec.type}`);
2892
+ }
2893
+ }
2894
+ }
2895
+ if (isStringSpec(spec)) {
2896
+ if (spec.viewSpec.type) {
2897
+ const rule = context.stringInputTypeRules[spec.viewSpec.type];
2898
+ if (rule) {
2899
+ rule(spec, schema, context);
2900
+ }
2901
+ else if (process.env.NODE_ENV !== 'production') {
2902
+ console.warn(`[dynamic-forms] Unknown string view spec type: ${spec.viewSpec.type}`);
2903
+ }
2904
+ }
2905
+ }
2906
+ return schema;
2907
+ }