@gravity-ui/dynamic-forms 5.0.0 → 5.2.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 (223) hide show
  1. package/build/cjs/lib/core/components/Form/DynamicField.js +7 -2
  2. package/build/cjs/lib/core/components/Form/hooks/useIntegrationFF.js +3 -2
  3. package/build/cjs/lib/core/components/Form/hooks/useSearch/useSearch.css +1 -1
  4. package/build/cjs/lib/core/components/Form/types/value.js +0 -1
  5. package/build/cjs/lib/kit/components/AccordeonCard/AccordeonCard.css +1 -1
  6. package/build/cjs/lib/kit/components/Card/Card.css +2 -2
  7. package/build/cjs/lib/kit/components/CopyButton/CopyButton.css +1 -1
  8. package/build/cjs/lib/kit/components/GroupIndent/GroupIndent.css +3 -3
  9. package/build/cjs/lib/kit/components/Inputs/ArrayBase/ArrayBase.css +2 -2
  10. package/build/cjs/lib/kit/components/Inputs/CheckboxGroup/CheckboxGroup.css +3 -3
  11. package/build/cjs/lib/kit/components/Inputs/CheckboxGroup/CheckboxGroup.js +1 -1
  12. package/build/cjs/lib/kit/components/Inputs/FileInput/FileInput.css +1 -1
  13. package/build/cjs/lib/kit/components/Inputs/MonacoInput/MonacoHeader.css +1 -1
  14. package/build/cjs/lib/kit/components/Inputs/MonacoInput/MonacoInputDialog.css +1 -1
  15. package/build/cjs/lib/kit/components/Inputs/MultiOneOf/MultiOneOf.css +1 -1
  16. package/build/cjs/lib/kit/components/Inputs/NumberWithScale/NumberWithScale.css +1 -1
  17. package/build/cjs/lib/kit/components/Inputs/OneOf/OneOf.css +4 -4
  18. package/build/cjs/lib/kit/components/Inputs/TableArrayInput/TableArrayInput.css +2 -2
  19. package/build/cjs/lib/kit/components/Inputs/TableArrayInput/TableArrayInput.js +1 -1
  20. package/build/cjs/lib/kit/components/Inputs/TextContent/TextContent.js +1 -1
  21. package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/components/TimeRangeSelect/TimeRangeSelect.js +1 -1
  22. package/build/cjs/lib/kit/components/Layouts/Column/Column.css +4 -4
  23. package/build/cjs/lib/kit/components/Layouts/Column/Column.js +1 -1
  24. package/build/cjs/lib/kit/components/Layouts/Row/Row.css +6 -6
  25. package/build/cjs/lib/kit/components/Layouts/Row/Row.js +1 -1
  26. package/build/cjs/lib/kit/components/Layouts/Section/Section.css +2 -2
  27. package/build/cjs/lib/kit/components/Layouts/Section/Section.js +1 -1
  28. package/build/cjs/lib/kit/components/Layouts/Transparent/Transparent.css +2 -2
  29. package/build/cjs/lib/kit/components/LongValue/LongValue.js +2 -4
  30. package/build/cjs/lib/kit/components/SimpleVerticalAccordeon/SimpleVerticalAccordeon.css +4 -4
  31. package/build/cjs/lib/kit/components/TogglerCard/TogglerCard.css +2 -2
  32. package/build/cjs/lib/kit/components/TogglerCard/TogglerCard.js +1 -1
  33. package/build/cjs/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.css +1 -1
  34. package/build/cjs/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.js +1 -1
  35. package/build/cjs/lib/kit/components/ViewLayouts/ViewRow/ViewRow.css +1 -1
  36. package/build/cjs/lib/kit/components/ViewLayouts/ViewRow/ViewRow.js +1 -1
  37. package/build/cjs/lib/kit/components/ViewLayouts/ViewTableCell/ViewTableCell.css +1 -1
  38. package/build/cjs/lib/kit/components/Views/ArrayBaseView/ArrayBaseView.css +1 -1
  39. package/build/cjs/lib/kit/components/Views/CheckboxGroupView/CheckboxGroupView.css +2 -2
  40. package/build/cjs/lib/kit/components/Views/DateView/DateView.js +1 -1
  41. package/build/cjs/lib/kit/components/Views/MonacoInputView/MonacoViewDialog.css +1 -1
  42. package/build/cjs/lib/kit/components/Views/MultiOneOfView/MultiOneOfView.js +1 -1
  43. package/build/cjs/lib/kit/components/Views/MultiSelectView/MultiSelectView.js +1 -1
  44. package/build/cjs/lib/kit/components/Views/ObjectBaseView/ObjectBaseView.js +1 -1
  45. package/build/cjs/lib/kit/components/Views/TableArrayView/TableArrayView.css +1 -1
  46. package/build/cjs/lib/kit/components/Views/TableArrayView/TableArrayView.js +1 -1
  47. package/build/cjs/lib/kit/components/Views/TextAreaView/TextAreaView.css +1 -1
  48. package/build/cjs/lib/kit/hooks/useOneOf/useOneOf.css +1 -1
  49. package/build/cjs/lib/kit/utils/common.js +1 -1
  50. package/build/esm/lib/core/components/Form/Controller/Controller.d.ts +2 -2
  51. package/build/esm/lib/core/components/Form/Controller/types.d.ts +2 -2
  52. package/build/esm/lib/core/components/Form/Controller/utils.d.ts +3 -3
  53. package/build/esm/lib/core/components/Form/DynamicField.d.ts +3 -2
  54. package/build/esm/lib/core/components/Form/DynamicField.js +7 -2
  55. package/build/esm/lib/core/components/Form/hooks/useControllerMirror.d.ts +1 -1
  56. package/build/esm/lib/core/components/Form/hooks/useCreateContext.d.ts +1 -1
  57. package/build/esm/lib/core/components/Form/hooks/useCreateSearchContext.d.ts +1 -1
  58. package/build/esm/lib/core/components/Form/hooks/useDynamicFieldMirror.d.ts +1 -1
  59. package/build/esm/lib/core/components/Form/hooks/useIntegrationFF.d.ts +9 -2
  60. package/build/esm/lib/core/components/Form/hooks/useIntegrationFF.js +3 -2
  61. package/build/esm/lib/core/components/Form/hooks/useMutators.d.ts +1 -1
  62. package/build/esm/lib/core/components/Form/hooks/useSearch/useSearch.css +1 -1
  63. package/build/esm/lib/core/components/Form/hooks/useSearch/useSearch.d.ts +2 -2
  64. package/build/esm/lib/core/components/Form/hooks/useStore.d.ts +1 -1
  65. package/build/esm/lib/core/components/Form/types/array.d.ts +2 -2
  66. package/build/esm/lib/core/components/Form/types/boolean.d.ts +2 -2
  67. package/build/esm/lib/core/components/Form/types/config.d.ts +2 -2
  68. package/build/esm/lib/core/components/Form/types/context.d.ts +3 -3
  69. package/build/esm/lib/core/components/Form/types/field.d.ts +2 -2
  70. package/build/esm/lib/core/components/Form/types/input.d.ts +3 -3
  71. package/build/esm/lib/core/components/Form/types/layout.d.ts +3 -3
  72. package/build/esm/lib/core/components/Form/types/mirror.d.ts +2 -2
  73. package/build/esm/lib/core/components/Form/types/mutators.d.ts +2 -2
  74. package/build/esm/lib/core/components/Form/types/number.d.ts +2 -2
  75. package/build/esm/lib/core/components/Form/types/object.d.ts +2 -2
  76. package/build/esm/lib/core/components/Form/types/search.d.ts +2 -2
  77. package/build/esm/lib/core/components/Form/types/store.d.ts +1 -1
  78. package/build/esm/lib/core/components/Form/types/string.d.ts +2 -2
  79. package/build/esm/lib/core/components/Form/types/validators.d.ts +1 -1
  80. package/build/esm/lib/core/components/Form/types/value.d.ts +1 -1
  81. package/build/esm/lib/core/components/Form/types/value.js +1 -1
  82. package/build/esm/lib/core/components/Form/utils/common.d.ts +1 -1
  83. package/build/esm/lib/core/components/Form/utils/search.d.ts +1 -1
  84. package/build/esm/lib/core/components/View/DynamicView.d.ts +2 -2
  85. package/build/esm/lib/core/components/View/ViewController.d.ts +1 -1
  86. package/build/esm/lib/core/components/View/hooks/useComponents.d.ts +2 -2
  87. package/build/esm/lib/core/components/View/hooks/useCreateContext.d.ts +1 -1
  88. package/build/esm/lib/core/components/View/hooks/useRender.d.ts +2 -2
  89. package/build/esm/lib/core/components/View/types/array.d.ts +2 -2
  90. package/build/esm/lib/core/components/View/types/boolean.d.ts +2 -2
  91. package/build/esm/lib/core/components/View/types/config.d.ts +2 -2
  92. package/build/esm/lib/core/components/View/types/context.d.ts +3 -3
  93. package/build/esm/lib/core/components/View/types/layout.d.ts +3 -3
  94. package/build/esm/lib/core/components/View/types/number.d.ts +2 -2
  95. package/build/esm/lib/core/components/View/types/object.d.ts +2 -2
  96. package/build/esm/lib/core/components/View/types/string.d.ts +2 -2
  97. package/build/esm/lib/core/components/View/types/views.d.ts +3 -3
  98. package/build/esm/lib/core/helpers.d.ts +1 -1
  99. package/build/esm/lib/core/types/specs.d.ts +3 -3
  100. package/build/esm/lib/kit/components/AccordeonCard/AccordeonCard.css +1 -1
  101. package/build/esm/lib/kit/components/Card/Card.css +2 -2
  102. package/build/esm/lib/kit/components/CopyButton/CopyButton.css +1 -1
  103. package/build/esm/lib/kit/components/CopyButton/CopyButton.d.ts +1 -1
  104. package/build/esm/lib/kit/components/ErrorWrapper/ErrorWrapper.d.ts +1 -1
  105. package/build/esm/lib/kit/components/GenerateRandomValueButton/GenerateRandomValueButton.d.ts +1 -1
  106. package/build/esm/lib/kit/components/GroupIndent/GroupIndent.css +3 -3
  107. package/build/esm/lib/kit/components/Inputs/ArrayBase/ArrayBase.css +2 -2
  108. package/build/esm/lib/kit/components/Inputs/ArrayBase/ArrayBase.d.ts +1 -1
  109. package/build/esm/lib/kit/components/Inputs/CardOneOf/CardOneOf.d.ts +1 -1
  110. package/build/esm/lib/kit/components/Inputs/CardOneOf/CardOneOf.js +1 -1
  111. package/build/esm/lib/kit/components/Inputs/Checkbox/Checkbox.d.ts +2 -2
  112. package/build/esm/lib/kit/components/Inputs/CheckboxGroup/CheckboxGroup.css +3 -3
  113. package/build/esm/lib/kit/components/Inputs/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  114. package/build/esm/lib/kit/components/Inputs/CheckboxGroup/CheckboxGroup.js +1 -1
  115. package/build/esm/lib/kit/components/Inputs/DateInput/DateInput.d.ts +2 -2
  116. package/build/esm/lib/kit/components/Inputs/FileInput/FileInput.css +1 -1
  117. package/build/esm/lib/kit/components/Inputs/FileInput/FileInput.d.ts +1 -1
  118. package/build/esm/lib/kit/components/Inputs/FileInput/utils.d.ts +1 -1
  119. package/build/esm/lib/kit/components/Inputs/MonacoInput/MonacoHeader.css +1 -1
  120. package/build/esm/lib/kit/components/Inputs/MonacoInput/MonacoInputBase.d.ts +1 -1
  121. package/build/esm/lib/kit/components/Inputs/MonacoInput/MonacoInputDialog.css +1 -1
  122. package/build/esm/lib/kit/components/Inputs/MultiOneOf/MultiOneOf.css +1 -1
  123. package/build/esm/lib/kit/components/Inputs/MultiOneOf/MultiOneOf.d.ts +1 -1
  124. package/build/esm/lib/kit/components/Inputs/MultiOneOf/MultiOneOf.js +1 -1
  125. package/build/esm/lib/kit/components/Inputs/MultiSelect/MultiSelect.d.ts +2 -2
  126. package/build/esm/lib/kit/components/Inputs/NumberWithScale/NumberWithScale.css +1 -1
  127. package/build/esm/lib/kit/components/Inputs/NumberWithScale/NumberWithScale.d.ts +1 -1
  128. package/build/esm/lib/kit/components/Inputs/NumberWithScale/useInitial.d.ts +1 -1
  129. package/build/esm/lib/kit/components/Inputs/ObjectBase/ObjectBase.d.ts +1 -1
  130. package/build/esm/lib/kit/components/Inputs/ObjectBase/ObjectBase.js +1 -1
  131. package/build/esm/lib/kit/components/Inputs/ObjectValueInput/ObjectValueInput.d.ts +1 -1
  132. package/build/esm/lib/kit/components/Inputs/OneOf/OneOf.css +4 -4
  133. package/build/esm/lib/kit/components/Inputs/OneOf/OneOf.d.ts +1 -1
  134. package/build/esm/lib/kit/components/Inputs/OneOf/OneOf.js +1 -1
  135. package/build/esm/lib/kit/components/Inputs/Secret/Secret.d.ts +1 -1
  136. package/build/esm/lib/kit/components/Inputs/Select/Select.d.ts +2 -2
  137. package/build/esm/lib/kit/components/Inputs/Switch/Switch.d.ts +1 -1
  138. package/build/esm/lib/kit/components/Inputs/TableArrayInput/TableArrayInput.css +2 -2
  139. package/build/esm/lib/kit/components/Inputs/TableArrayInput/TableArrayInput.d.ts +1 -1
  140. package/build/esm/lib/kit/components/Inputs/TableArrayInput/TableArrayInput.js +1 -1
  141. package/build/esm/lib/kit/components/Inputs/Text/Text.d.ts +2 -2
  142. package/build/esm/lib/kit/components/Inputs/TextArea/TextArea.d.ts +2 -2
  143. package/build/esm/lib/kit/components/Inputs/TextContent/TextContent.d.ts +1 -1
  144. package/build/esm/lib/kit/components/Inputs/TextContent/TextContent.js +1 -1
  145. package/build/esm/lib/kit/components/Inputs/TextLink/TextLink.d.ts +1 -1
  146. package/build/esm/lib/kit/components/Inputs/TextLink/TextLink.js +1 -1
  147. package/build/esm/lib/kit/components/Inputs/TimeRangeSelector/TimeRangeSelector.d.ts +1 -1
  148. package/build/esm/lib/kit/components/Inputs/TimeRangeSelector/TimeRangeSelector.js +1 -1
  149. package/build/esm/lib/kit/components/Inputs/TimeRangeSelector/components/TimeRangeSelect/TimeRangeSelect.d.ts +1 -1
  150. package/build/esm/lib/kit/components/Inputs/TimeRangeSelector/components/TimeRangeSelect/TimeRangeSelect.js +1 -1
  151. package/build/esm/lib/kit/components/Layouts/Accordeon/Accordeon.d.ts +2 -2
  152. package/build/esm/lib/kit/components/Layouts/AccordeonCard/AccordeonCardForm.d.ts +1 -1
  153. package/build/esm/lib/kit/components/Layouts/CardAccordeon.d.ts +1 -1
  154. package/build/esm/lib/kit/components/Layouts/CardSection.d.ts +1 -1
  155. package/build/esm/lib/kit/components/Layouts/Column/Column.css +4 -4
  156. package/build/esm/lib/kit/components/Layouts/Column/Column.d.ts +1 -1
  157. package/build/esm/lib/kit/components/Layouts/Column/Column.js +2 -2
  158. package/build/esm/lib/kit/components/Layouts/Row/Row.css +6 -6
  159. package/build/esm/lib/kit/components/Layouts/Row/Row.d.ts +1 -1
  160. package/build/esm/lib/kit/components/Layouts/Row/Row.js +2 -2
  161. package/build/esm/lib/kit/components/Layouts/Section/Section.css +2 -2
  162. package/build/esm/lib/kit/components/Layouts/Section/Section.d.ts +1 -1
  163. package/build/esm/lib/kit/components/Layouts/Section/Section.js +2 -2
  164. package/build/esm/lib/kit/components/Layouts/TableCell/TableCell.d.ts +1 -1
  165. package/build/esm/lib/kit/components/Layouts/Transparent/Transparent.css +2 -2
  166. package/build/esm/lib/kit/components/Layouts/Transparent/Transparent.d.ts +1 -1
  167. package/build/esm/lib/kit/components/Layouts/Transparent/Transparent.js +1 -1
  168. package/build/esm/lib/kit/components/LongValue/LongValue.js +2 -4
  169. package/build/esm/lib/kit/components/SimpleVerticalAccordeon/SimpleVerticalAccordeon.css +4 -4
  170. package/build/esm/lib/kit/components/SimpleVerticalAccordeon/SimpleVerticalAccordeon.d.ts +1 -1
  171. package/build/esm/lib/kit/components/TogglerCard/TogglerCard.css +2 -2
  172. package/build/esm/lib/kit/components/TogglerCard/TogglerCard.js +1 -1
  173. package/build/esm/lib/kit/components/ViewLayouts/ViewAccordeon/ViewAccordeon.d.ts +2 -2
  174. package/build/esm/lib/kit/components/ViewLayouts/ViewAccordeonCard/ViewAccordeonCard.d.ts +1 -1
  175. package/build/esm/lib/kit/components/ViewLayouts/ViewCardAccordeon.d.ts +1 -1
  176. package/build/esm/lib/kit/components/ViewLayouts/ViewCardSection.d.ts +1 -1
  177. package/build/esm/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.css +1 -1
  178. package/build/esm/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.d.ts +1 -1
  179. package/build/esm/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.js +1 -1
  180. package/build/esm/lib/kit/components/ViewLayouts/ViewRow/ViewRow.css +1 -1
  181. package/build/esm/lib/kit/components/ViewLayouts/ViewRow/ViewRow.d.ts +1 -1
  182. package/build/esm/lib/kit/components/ViewLayouts/ViewRow/ViewRow.js +1 -1
  183. package/build/esm/lib/kit/components/ViewLayouts/ViewSection/ViewSection.d.ts +1 -1
  184. package/build/esm/lib/kit/components/ViewLayouts/ViewTableCell/ViewTableCell.css +1 -1
  185. package/build/esm/lib/kit/components/ViewLayouts/ViewTableCell/ViewTableCell.d.ts +1 -1
  186. package/build/esm/lib/kit/components/ViewLayouts/ViewTransparent/ViewTransparent.d.ts +1 -1
  187. package/build/esm/lib/kit/components/Views/ArrayBaseView/ArrayBaseView.css +1 -1
  188. package/build/esm/lib/kit/components/Views/ArrayBaseView/ArrayBaseView.d.ts +1 -1
  189. package/build/esm/lib/kit/components/Views/BaseView/BaseView.d.ts +1 -1
  190. package/build/esm/lib/kit/components/Views/CardOneOfView.d.ts +1 -1
  191. package/build/esm/lib/kit/components/Views/CheckboxGroupView/CheckboxGroupView.css +2 -2
  192. package/build/esm/lib/kit/components/Views/CheckboxGroupView/CheckboxGroupView.d.ts +1 -1
  193. package/build/esm/lib/kit/components/Views/DateView/DateView.d.ts +1 -1
  194. package/build/esm/lib/kit/components/Views/DateView/DateView.js +1 -1
  195. package/build/esm/lib/kit/components/Views/FileInputView/FileInputView.d.ts +1 -1
  196. package/build/esm/lib/kit/components/Views/MonacoInputView/MonacoBaseView.d.ts +1 -1
  197. package/build/esm/lib/kit/components/Views/MonacoInputView/MonacoViewDialog.css +1 -1
  198. package/build/esm/lib/kit/components/Views/MultiOneOfView/MultiOneOfView.d.ts +1 -1
  199. package/build/esm/lib/kit/components/Views/MultiOneOfView/MultiOneOfView.js +1 -1
  200. package/build/esm/lib/kit/components/Views/MultiSelectView/MultiSelectView.d.ts +1 -1
  201. package/build/esm/lib/kit/components/Views/MultiSelectView/MultiSelectView.js +1 -1
  202. package/build/esm/lib/kit/components/Views/NumberWithScaleView/NumberWithScaleView.d.ts +1 -1
  203. package/build/esm/lib/kit/components/Views/ObjectBaseView/ObjectBaseView.d.ts +1 -1
  204. package/build/esm/lib/kit/components/Views/ObjectBaseView/ObjectBaseView.js +1 -1
  205. package/build/esm/lib/kit/components/Views/ObjectValueInputView/ObjectValueInputView.d.ts +1 -1
  206. package/build/esm/lib/kit/components/Views/OneOfView/OneOfView.d.ts +1 -1
  207. package/build/esm/lib/kit/components/Views/TableArrayView/TableArrayView.css +1 -1
  208. package/build/esm/lib/kit/components/Views/TableArrayView/TableArrayView.d.ts +1 -1
  209. package/build/esm/lib/kit/components/Views/TableArrayView/TableArrayView.js +1 -1
  210. package/build/esm/lib/kit/components/Views/TextAreaView/TextAreaView.css +1 -1
  211. package/build/esm/lib/kit/components/Views/TextAreaView/TextAreaView.d.ts +1 -1
  212. package/build/esm/lib/kit/components/Views/TextContentView.d.ts +1 -1
  213. package/build/esm/lib/kit/components/Views/TextLinkView/TextLinkView.d.ts +1 -1
  214. package/build/esm/lib/kit/components/Views/TimeRangeSelectorView/TimeRangeSelectorView.d.ts +1 -1
  215. package/build/esm/lib/kit/constants/config.d.ts +1 -1
  216. package/build/esm/lib/kit/hooks/useErrorChecker.d.ts +1 -1
  217. package/build/esm/lib/kit/hooks/useOneOf/useOneOf.css +1 -1
  218. package/build/esm/lib/kit/hooks/useOneOf/useOneOf.d.ts +1 -1
  219. package/build/esm/lib/kit/utils/common.d.ts +1 -1
  220. package/build/esm/lib/kit/utils/common.js +2 -2
  221. package/build/esm/lib/kit/utils/objectInline.d.ts +1 -1
  222. package/build/esm/lib/kit/validators/validators.d.ts +2 -2
  223. package/package.json +10 -9
@@ -18,7 +18,7 @@
18
18
  */
19
19
  /* Border-radius */
20
20
  .df-monaco-view-dialog .g-dialog-footer {
21
- padding: var(--df-monaco-view-dialog-footer-padding, 10px var(--g-spacing-8) var(--g-spacing-8));
21
+ padding: var(--df-monaco-view-dialog-footer-padding, var(--g-spacing-4));
22
22
  }
23
23
  .df-monaco-view-dialog__container {
24
24
  border: 1px solid var(--g-color-line-generic);
@@ -6,9 +6,9 @@ const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const uikit_1 = require("@gravity-ui/uikit");
7
7
  const isObjectLike_1 = tslib_1.__importDefault(require("lodash/isObjectLike"));
8
8
  const core_1 = require("../../../../core");
9
+ const common_1 = require("../../../constants/common");
9
10
  const utils_1 = require("../../../utils");
10
11
  const GroupIndent_1 = require("../../GroupIndent");
11
- const common_1 = require("../../../constants/common");
12
12
  const b = (0, utils_1.block)('multi-oneof-view');
13
13
  const MultiOneOfView = (props) => {
14
14
  const { name, value, Layout, spec, withoutIndent } = props;
@@ -4,8 +4,8 @@ exports.MultiSelectView = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const uikit_1 = require("@gravity-ui/uikit");
7
- const utils_1 = require("../../../utils");
8
7
  const common_1 = require("../../../constants/common");
8
+ const utils_1 = require("../../../utils");
9
9
  const b = (0, utils_1.block)('multiselect-view');
10
10
  const MultiSelectView = ({ spec, value = [] }) => {
11
11
  const _value = value;
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ObjectInlineView = exports.ObjectBaseView = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importDefault(require("react"));
6
- const isObjectLike_1 = tslib_1.__importDefault(require("lodash/isObjectLike"));
7
6
  const uikit_1 = require("@gravity-ui/uikit");
7
+ const isObjectLike_1 = tslib_1.__importDefault(require("lodash/isObjectLike"));
8
8
  const core_1 = require("../../../../core");
9
9
  const utils_1 = require("../../../utils");
10
10
  const b = (0, utils_1.block)('object-base-view');
@@ -18,7 +18,7 @@
18
18
  */
19
19
  /* Border-radius */
20
20
  .df-table-array-view__table {
21
- margin-bottom: var(--df-table-array-view-table-margin-bottom, 10px);
21
+ margin-bottom: var(--df-table-array-view-table-margin-bottom, var(--g-spacing-3));
22
22
  }
23
23
  .df-table-array-view__cell {
24
24
  max-width: var(--df-table-array-view-cell-min-width, 150px);
@@ -5,8 +5,8 @@ const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const uikit_1 = require("@gravity-ui/uikit");
7
7
  const core_1 = require("../../../../core");
8
- const utils_1 = require("../../../utils");
9
8
  const common_1 = require("../../../constants/common");
9
+ const utils_1 = require("../../../utils");
10
10
  const b = (0, utils_1.block)('table-array-view');
11
11
  const TableArrayView = ({ value = [], spec, name }) => {
12
12
  const { showLayoutDescription } = (0, core_1.useDynamicFormsCtx)();
@@ -24,7 +24,7 @@
24
24
  cursor: pointer;
25
25
  }
26
26
  .df-text-area-view__chevron {
27
- margin: var(--df-text-area-view-chevron-margin, 3px);
27
+ margin: var(--df-text-area-view-chevron-margin, var(--g-spacing-half));
28
28
  }
29
29
  .df-text-area-view__chevron_open {
30
30
  transform: rotate(180deg);
@@ -23,7 +23,7 @@
23
23
  }
24
24
  .df-use-oneof__toggler_card + .df-group-indent > .df-use-search:not(.df-group-indent) {
25
25
  padding-top: var(--df-use-oneof-card-child-padding, var(--g-spacing-0));
26
- margin-top: var(--df-spacing-inputs, 15px);
26
+ margin-top: var(--df-spacing-inputs, var(--g-spacing-4));
27
27
  }
28
28
  .df-use-oneof__card {
29
29
  display: flex;
@@ -4,11 +4,11 @@ exports.isCorrectSizeParams = exports.prepareSpec = exports.isNotEmptyValue = vo
4
4
  const tslib_1 = require("tslib");
5
5
  const cloneDeep_1 = tslib_1.__importDefault(require("lodash/cloneDeep"));
6
6
  const isArray_1 = tslib_1.__importDefault(require("lodash/isArray"));
7
+ const isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty"));
7
8
  const isNil_1 = tslib_1.__importDefault(require("lodash/isNil"));
8
9
  const isObject_1 = tslib_1.__importDefault(require("lodash/isObject"));
9
10
  const isObjectLike_1 = tslib_1.__importDefault(require("lodash/isObjectLike"));
10
11
  const isString_1 = tslib_1.__importDefault(require("lodash/isString"));
11
- const isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty"));
12
12
  const core_1 = require("../../core");
13
13
  const helpers_1 = require("../validators/helpers");
14
14
  const bigIntMath_1 = require("./bigIntMath");
@@ -1,5 +1,5 @@
1
- import { FormValue, Spec } from '../../../types';
2
- import { FieldValue, ValidateError } from '../types';
1
+ import type { FormValue, Spec } from '../../../types';
2
+ import type { FieldValue, ValidateError } from '../types';
3
3
  export interface ControllerProps<DirtyValue extends FieldValue, SpecType extends Spec> {
4
4
  spec: SpecType;
5
5
  name: string;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { FormValue, Spec } from '../../../types';
3
- import { DynamicFormConfig, DynamicFormMutatorsStore, DynamicFormsContext, FieldRenderProps, FieldValue, IndependentInputEntity, InputEntity, LayoutType, ValidateError } from '../types';
2
+ import type { FormValue, Spec } from '../../../types';
3
+ import type { DynamicFormConfig, DynamicFormMutatorsStore, DynamicFormsContext, FieldRenderProps, FieldValue, IndependentInputEntity, InputEntity, LayoutType, ValidateError } from '../types';
4
4
  export interface GetSpecParams<SpecType extends Spec> {
5
5
  name: string;
6
6
  spec: SpecType;
@@ -1,6 +1,6 @@
1
- import { FormValue, Spec } from '../../../types';
2
- import { BaseValidateError, FieldRenderProps, FieldValue, ValidateError } from '../types';
3
- import { ControllerStore, GetComponentsParams, GetComponentsReturn, GetFieldInitialsParams, GetFieldMethodsReturn, GetRenderParams, GetSpecParams, GetValidateParams, InitializeStoreParams, UpdateStoreParams } from './types';
1
+ import type { FormValue, Spec } from '../../../types';
2
+ import type { BaseValidateError, FieldRenderProps, FieldValue, ValidateError } from '../types';
3
+ import type { ControllerStore, GetComponentsParams, GetComponentsReturn, GetFieldInitialsParams, GetFieldMethodsReturn, GetRenderParams, GetSpecParams, GetValidateParams, InitializeStoreParams, UpdateStoreParams } from './types';
4
4
  export declare const updateParentStore: <DirtyValue extends FieldValue, Value extends FormValue, SpecType extends Spec<any, undefined, undefined>>(store: ControllerStore<DirtyValue, Value, SpecType>) => void;
5
5
  export declare const callUnmout: <DirtyValue extends FieldValue, Value extends FormValue, SpecType extends Spec<any, undefined, undefined>>(store: ControllerStore<DirtyValue, Value, SpecType>) => void;
6
6
  export declare const getSpec: <SpecType extends Spec<any, undefined, undefined>>({ name, spec, mutatorsStore, }: GetSpecParams<SpecType>) => SpecType;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { MonacoEditorProps } from 'react-monaco-editor/lib/types';
3
- import { Spec, StringSpec } from '../../types';
4
- import { DynamicFormConfig, DynamicFormMutators, FieldValue, WonderMirror } from './types';
3
+ import type { Spec, StringSpec } from '../../types';
4
+ import type { DynamicFormConfig, DynamicFormMutators, FieldValue, WonderMirror } from './types';
5
5
  export interface DynamicFieldProps {
6
6
  name: string;
7
7
  spec: Spec;
@@ -13,6 +13,7 @@ export interface DynamicFieldProps {
13
13
  destroyOnUnregister?: boolean;
14
14
  mutators?: DynamicFormMutators;
15
15
  shared?: Record<string, any>;
16
+ storeSubscriber?: (store: FieldValue) => void;
16
17
  __mirror?: WonderMirror;
17
18
  }
18
19
  export declare const DynamicField: React.FC<DynamicFieldProps>;
@@ -7,11 +7,16 @@ import { isCorrectSpec } from '../../helpers';
7
7
  import { Controller } from './Controller';
8
8
  import { useCreateContext, useCreateSearchContext, useDynamicFieldMirror, useFormSharedStore, useIntegrationFF, useMutators, useSearchStore, useStore, } from './hooks';
9
9
  import { getDefaultSearchFunction, isCorrectConfig } from './utils';
10
- export const DynamicField = ({ name, spec, config, Monaco, generateRandomValue, search, withoutInsertFFDebounce, destroyOnUnregister = true, mutators: externalMutators, shared: externalShared, __mirror, }) => {
10
+ export const DynamicField = ({ name, spec, config, Monaco, generateRandomValue, search, withoutInsertFFDebounce, destroyOnUnregister = true, mutators: externalMutators, shared: externalShared, storeSubscriber, __mirror, }) => {
11
11
  const DynamicFormsCtx = useCreateContext();
12
12
  const SearchContext = useCreateSearchContext();
13
13
  const { tools, store } = useStore(name);
14
- const watcher = useIntegrationFF(store, withoutInsertFFDebounce, destroyOnUnregister);
14
+ const watcher = useIntegrationFF({
15
+ store,
16
+ withoutDebounce: withoutInsertFFDebounce,
17
+ destroyOnUnregister,
18
+ storeSubscriber,
19
+ });
15
20
  const { mutatorsStore, mutateDFState } = useMutators(externalMutators);
16
21
  const { store: searchStore, setField, removeField, isHiddenField } = useSearchStore();
17
22
  const shared = useFormSharedStore(externalShared);
@@ -1,2 +1,2 @@
1
- import { ControllerMirror, WonderMirror } from '../types';
1
+ import type { ControllerMirror, WonderMirror } from '../types';
2
2
  export declare const useControllerMirror: (name: string, params: ControllerMirror, __mirror?: WonderMirror) => void;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { DynamicFormsContext } from '../types';
2
+ import type { DynamicFormsContext } from '../types';
3
3
  export declare const useCreateContext: () => React.Context<DynamicFormsContext>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { SearchContext } from '../types';
2
+ import type { SearchContext } from '../types';
3
3
  export declare const useCreateSearchContext: () => React.Context<SearchContext>;
@@ -1,2 +1,2 @@
1
- import { DynamicFieldMirror, WonderMirror } from '../types';
1
+ import type { DynamicFieldMirror, WonderMirror } from '../types';
2
2
  export declare const useDynamicFieldMirror: (params: DynamicFieldMirror, __mirror?: WonderMirror) => void;
@@ -1,2 +1,9 @@
1
- import { DynamicFieldStore } from '../types';
2
- export declare const useIntegrationFF: (store: DynamicFieldStore, withoutDebounce?: boolean, destroyOnUnregister?: boolean) => JSX.Element;
1
+ import type { DynamicFieldStore, FieldValue } from '../types';
2
+ interface UseIntegrationFFParams {
3
+ store: DynamicFieldStore;
4
+ withoutDebounce?: boolean;
5
+ destroyOnUnregister?: boolean;
6
+ storeSubscriber?: (store: FieldValue) => void;
7
+ }
8
+ export declare const useIntegrationFF: ({ store, withoutDebounce, destroyOnUnregister, storeSubscriber, }: UseIntegrationFFParams) => JSX.Element;
9
+ export {};
@@ -6,7 +6,7 @@ import isFunction from 'lodash/isFunction';
6
6
  import values from 'lodash/values';
7
7
  import { Field as FinalFormField, useForm } from 'react-final-form';
8
8
  import { transformArrOut } from '../utils';
9
- export const useIntegrationFF = (store, withoutDebounce, destroyOnUnregister) => {
9
+ export const useIntegrationFF = ({ store, withoutDebounce, destroyOnUnregister, storeSubscriber, }) => {
10
10
  const form = useForm();
11
11
  const watcher = React.useMemo(() => {
12
12
  const props = {
@@ -39,13 +39,14 @@ export const useIntegrationFF = (store, withoutDebounce, destroyOnUnregister) =>
39
39
  const cb = (value) => {
40
40
  if (store.name) {
41
41
  form.change(store.name, get(transformArrOut(value), store.name));
42
+ storeSubscriber === null || storeSubscriber === void 0 ? void 0 : storeSubscriber(get(value, store.name));
42
43
  }
43
44
  };
44
45
  if (withoutDebounce) {
45
46
  return cb;
46
47
  }
47
48
  return debounce(cb, 100);
48
- }, [form.change, store.name, withoutDebounce]);
49
+ }, [form.change, store.name, withoutDebounce, storeSubscriber]);
49
50
  React.useEffect(() => {
50
51
  change(store.values);
51
52
  }, [store.values]);
@@ -1,4 +1,4 @@
1
- import { DynamicFormMutators, DynamicFormMutatorsStore } from '../types';
1
+ import type { DynamicFormMutators, DynamicFormMutatorsStore } from '../types';
2
2
  export declare const useMutators: (externalMutators?: DynamicFormMutators) => {
3
3
  mutatorsStore: DynamicFormMutatorsStore;
4
4
  mutateDFState: (mutators: DynamicFormMutators) => void;
@@ -18,7 +18,7 @@
18
18
  */
19
19
  /* Border-radius */
20
20
  .df-use-search {
21
- margin-bottom: var(--df-spacing-inputs, 15px);
21
+ margin-bottom: var(--df-spacing-inputs, var(--g-spacing-4));
22
22
  }
23
23
  .df-use-search_hidden {
24
24
  display: none;
@@ -1,4 +1,4 @@
1
- import { Spec } from '../../../../types';
2
- import { FieldValue } from '../../types';
1
+ import type { Spec } from '../../../../types';
2
+ import type { FieldValue } from '../../types';
3
3
  import './useSearch.css';
4
4
  export declare const useSearch: (spec: Spec, value: FieldValue, name: string) => (children: JSX.Element | null) => JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { DynamicFieldStore, FieldObjectValue, FieldValue, ValidateError } from '../types';
1
+ import type { DynamicFieldStore, FieldObjectValue, FieldValue, ValidateError } from '../types';
2
2
  export declare const useStore: (name: string) => {
3
3
  tools: {
4
4
  initialValue: FieldObjectValue;
@@ -1,5 +1,5 @@
1
- import { ArraySpec, ArrayValue } from '../../../types';
2
- import { FieldArrayValue, IndependentInputEntity, IndependentInputProps, IndependentInputType, InputEntity, InputProps, InputType, InputsMap, LayoutProps, LayoutType, LayoutsMap, TypeConfig, ValidatorsMap } from './';
1
+ import type { ArraySpec, ArrayValue } from '../../../types';
2
+ import type { FieldArrayValue, IndependentInputEntity, IndependentInputProps, IndependentInputType, InputEntity, InputProps, InputType, InputsMap, LayoutProps, LayoutType, LayoutsMap, TypeConfig, ValidatorsMap } from './';
3
3
  export type ArrayInputProps<InputComponentProps extends Record<string, any> | undefined = undefined> = InputProps<FieldArrayValue, InputComponentProps, undefined, ArraySpec<undefined, InputComponentProps, undefined>>;
4
4
  export type ArrayIndependentInputProps<InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> = IndependentInputProps<FieldArrayValue, InputComponentProps, LayoutComponentProps, ArraySpec<undefined, InputComponentProps, LayoutComponentProps>>;
5
5
  export type ArrayLayoutProps<InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> = LayoutProps<FieldArrayValue, InputComponentProps, LayoutComponentProps, ArraySpec<undefined, InputComponentProps, LayoutComponentProps>>;
@@ -1,5 +1,5 @@
1
- import { BooleanSpec } from '../../../types';
2
- import { IndependentInputEntity, IndependentInputProps, IndependentInputType, InputEntity, InputProps, InputType, InputsMap, LayoutProps, LayoutType, LayoutsMap, TypeConfig, ValidatorsMap } from './';
1
+ import type { BooleanSpec } from '../../../types';
2
+ import type { IndependentInputEntity, IndependentInputProps, IndependentInputType, InputEntity, InputProps, InputType, InputsMap, LayoutProps, LayoutType, LayoutsMap, TypeConfig, ValidatorsMap } from './';
3
3
  export type BooleanInputProps<InputComponentProps extends Record<string, any> | undefined = undefined> = InputProps<boolean, InputComponentProps, undefined, BooleanSpec<undefined, InputComponentProps, undefined>>;
4
4
  export type BooleanIndependentInputProps<InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> = IndependentInputProps<boolean, InputComponentProps, LayoutComponentProps, BooleanSpec<undefined, InputComponentProps, LayoutComponentProps>>;
5
5
  export type BooleanLayoutProps<InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> = LayoutProps<boolean, InputComponentProps, LayoutComponentProps, BooleanSpec<undefined, InputComponentProps, LayoutComponentProps>>;
@@ -1,5 +1,5 @@
1
- import { FormValue, Spec } from '../../../types';
2
- import { ArrayConfig, BooleanConfig, FieldValue, InputsMap, LayoutsMap, NumberConfig, ObjectConfig, StringConfig, ValidatorsMap } from './';
1
+ import type { FormValue, Spec } from '../../../types';
2
+ import type { ArrayConfig, BooleanConfig, FieldValue, InputsMap, LayoutsMap, NumberConfig, ObjectConfig, StringConfig, ValidatorsMap } from './';
3
3
  export interface TypeConfig<DirtyValue extends FieldValue, Value extends FormValue, SpecType extends Spec<undefined, any, any>> {
4
4
  inputs: InputsMap<DirtyValue, SpecType>;
5
5
  layouts: LayoutsMap<DirtyValue, SpecType>;
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import type { MonacoEditorProps } from 'react-monaco-editor/lib/types';
3
- import { StringSpec } from '../../../types';
4
- import { DynamicFieldStore, DynamicFormConfig, DynamicFormMutators, DynamicFormMutatorsStore, FieldValue, ValidateError, WonderMirror } from './';
3
+ import type { StringSpec } from '../../../types';
4
+ import type { DynamicFieldStore, DynamicFormConfig, DynamicFormMutators, DynamicFormMutatorsStore, FieldValue, ValidateError, WonderMirror } from './';
5
5
  export interface DynamicFormsContext {
6
6
  config: DynamicFormConfig;
7
7
  Monaco?: React.ComponentType<MonacoEditorProps>;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { FieldValue, ValidateError } from './';
1
+ import type React from 'react';
2
+ import type { FieldValue, ValidateError } from './';
3
3
  export interface FieldRenderProps<Value extends FieldValue> {
4
4
  input: {
5
5
  name: string;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { Spec } from '../../../types';
3
- import { FieldRenderProps, FieldValue, LayoutType } from './';
1
+ import type React from 'react';
2
+ import type { Spec } from '../../../types';
3
+ import type { FieldRenderProps, FieldValue, LayoutType } from './';
4
4
  export type InputProps<Value extends FieldValue, InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined, SpecType extends Spec<undefined, InputComponentProps, LayoutComponentProps> = Spec> = {
5
5
  spec: SpecType;
6
6
  name: string;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { Spec } from '../../../types';
3
- import { FieldValue, InputProps } from './';
1
+ import type React from 'react';
2
+ import type { Spec } from '../../../types';
3
+ import type { FieldValue, InputProps } from './';
4
4
  export type LayoutProps<Value extends FieldValue, InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined, SpecType extends Spec<undefined, InputComponentProps, LayoutComponentProps> = Spec> = {
5
5
  children: React.ReactElement;
6
6
  layoutProps?: LayoutComponentProps;
@@ -1,5 +1,5 @@
1
- import { useIntegrationFF, useSearch, useSearchStore, useStore } from '../hooks';
2
- import { FieldRenderProps } from './field';
1
+ import type { useIntegrationFF, useSearch, useSearchStore, useStore } from '../hooks';
2
+ import type { FieldRenderProps } from './field';
3
3
  export interface ControllerMirror {
4
4
  useField?: FieldRenderProps<any>;
5
5
  useSearch?: ReturnType<typeof useSearch>;
@@ -1,5 +1,5 @@
1
- import { ArraySpec, BooleanSpec, FormValue, NumberSpec, ObjectSpec, StringSpec } from '../../../types';
2
- import { BaseValidateError } from './';
1
+ import type { ArraySpec, BooleanSpec, FormValue, NumberSpec, ObjectSpec, StringSpec } from '../../../types';
2
+ import type { BaseValidateError } from './';
3
3
  export type SpecMutator = Partial<(Omit<ArraySpec, 'viewSpec'> & {
4
4
  viewSpec: Partial<ArraySpec['viewSpec']>;
5
5
  }) | (Omit<BooleanSpec, 'viewSpec'> & {
@@ -1,5 +1,5 @@
1
- import { NumberSpec } from '../../../types';
2
- import { IndependentInputEntity, IndependentInputProps, IndependentInputType, InputEntity, InputProps, InputType, InputsMap, LayoutProps, LayoutType, LayoutsMap, TypeConfig, ValidatorsMap } from './';
1
+ import type { NumberSpec } from '../../../types';
2
+ import type { IndependentInputEntity, IndependentInputProps, IndependentInputType, InputEntity, InputProps, InputType, InputsMap, LayoutProps, LayoutType, LayoutsMap, TypeConfig, ValidatorsMap } from './';
3
3
  export type NumberInputProps<InputComponentProps extends Record<string, any> | undefined = undefined> = InputProps<number, InputComponentProps, undefined, NumberSpec<undefined, InputComponentProps, undefined>>;
4
4
  export type NumberIndependentInputProps<InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> = IndependentInputProps<number, InputComponentProps, LayoutComponentProps, NumberSpec<undefined, InputComponentProps, LayoutComponentProps>>;
5
5
  export type NumberLayoutProps<InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> = LayoutProps<number, InputComponentProps, LayoutComponentProps, NumberSpec<undefined, InputComponentProps, LayoutComponentProps>>;
@@ -1,5 +1,5 @@
1
- import { ObjectSpec, ObjectValue } from '../../../types';
2
- import { FieldObjectValue, IndependentInputEntity, IndependentInputProps, IndependentInputType, InputEntity, InputProps, InputType, InputsMap, LayoutProps, LayoutType, LayoutsMap, TypeConfig, ValidatorsMap } from './';
1
+ import type { ObjectSpec, ObjectValue } from '../../../types';
2
+ import type { FieldObjectValue, IndependentInputEntity, IndependentInputProps, IndependentInputType, InputEntity, InputProps, InputType, InputsMap, LayoutProps, LayoutType, LayoutsMap, TypeConfig, ValidatorsMap } from './';
3
3
  export type ObjectInputProps<InputComponentProps extends Record<string, any> | undefined = undefined> = InputProps<FieldObjectValue, InputComponentProps, undefined, ObjectSpec<undefined, InputComponentProps, undefined>>;
4
4
  export type ObjectIndependentInputProps<InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> = IndependentInputProps<FieldObjectValue, InputComponentProps, LayoutComponentProps, ObjectSpec<undefined, InputComponentProps, LayoutComponentProps>>;
5
5
  export type ObjectLayoutProps<InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> = LayoutProps<FieldObjectValue, InputComponentProps, LayoutComponentProps, ObjectSpec<undefined, InputComponentProps, LayoutComponentProps>>;
@@ -1,5 +1,5 @@
1
- import { Spec } from '../../../types';
2
- import { FieldValue } from './value';
1
+ import type { Spec } from '../../../types';
2
+ import type { FieldValue } from './value';
3
3
  export interface SearchContext {
4
4
  setField: (name: string, search: boolean) => void;
5
5
  removeField: (name: string) => void;
@@ -1,4 +1,4 @@
1
- import { FieldObjectValue, ValidateError } from '../types';
1
+ import type { FieldObjectValue, ValidateError } from '../types';
2
2
  export interface DynamicFieldStore {
3
3
  name: string;
4
4
  initialValue: FieldObjectValue;
@@ -1,5 +1,5 @@
1
- import { StringSpec } from '../../../types';
2
- import { IndependentInputEntity, IndependentInputProps, IndependentInputType, InputEntity, InputProps, InputType, InputsMap, LayoutProps, LayoutType, LayoutsMap, TypeConfig, ValidatorsMap } from './';
1
+ import type { StringSpec } from '../../../types';
2
+ import type { IndependentInputEntity, IndependentInputProps, IndependentInputType, InputEntity, InputProps, InputType, InputsMap, LayoutProps, LayoutType, LayoutsMap, TypeConfig, ValidatorsMap } from './';
3
3
  export type StringInputProps<InputComponentProps extends Record<string, any> | undefined = undefined> = InputProps<string, InputComponentProps, undefined, StringSpec<undefined, InputComponentProps, undefined>>;
4
4
  export type StringIndependentInputProps<InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> = IndependentInputProps<string, InputComponentProps, LayoutComponentProps, StringSpec<undefined, InputComponentProps, LayoutComponentProps>>;
5
5
  export type StringLayoutProps<InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> = LayoutProps<string, InputComponentProps, LayoutComponentProps, StringSpec<undefined, InputComponentProps, LayoutComponentProps>>;
@@ -1,4 +1,4 @@
1
- import { FormValue, Spec } from '../../../types';
1
+ import type { FormValue, Spec } from '../../../types';
2
2
  export type BaseValidateError = string | boolean | undefined;
3
3
  export type AsyncValidateError = Promise<BaseValidateError>;
4
4
  export type ValidateError = BaseValidateError | AsyncValidateError;
@@ -1,4 +1,4 @@
1
- import { OBJECT_ARRAY_CNT, OBJECT_ARRAY_FLAG } from '../constants';
1
+ import type { OBJECT_ARRAY_CNT, OBJECT_ARRAY_FLAG } from '../constants';
2
2
  export interface FieldArrayValue extends Record<string, FieldValue> {
3
3
  [OBJECT_ARRAY_FLAG]: true;
4
4
  [OBJECT_ARRAY_CNT]: number;
@@ -1 +1 @@
1
- import { OBJECT_ARRAY_CNT, OBJECT_ARRAY_FLAG } from '../constants';
1
+ export {};
@@ -1,4 +1,4 @@
1
- import { FormValue, Spec } from '../../../types';
1
+ import type { FormValue, Spec } from '../../../types';
2
2
  export declare const isCorrectConfig: (candidate: any) => boolean;
3
3
  export declare const transformArrIn: <Type extends FormValue, ReturnType_1 extends FormValue = Type>(value: Type) => ReturnType_1;
4
4
  export declare const transformArrOut: <Type extends FormValue, ReturnType_1 extends FormValue = Type>(value: Type) => ReturnType_1;
@@ -1,3 +1,3 @@
1
- import { Spec } from '../../../types';
1
+ import type { Spec } from '../../../types';
2
2
  export declare const getParentName: (name: string) => string | undefined;
3
3
  export declare const getDefaultSearchFunction: (search?: string) => (spec: Spec) => boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { MonacoEditorProps } from 'react-monaco-editor/lib/types';
3
- import { FormValue, Spec } from '../../types';
4
- import { DynamicViewConfig } from './types';
3
+ import type { FormValue, Spec } from '../../types';
4
+ import type { DynamicViewConfig } from './types';
5
5
  export interface DynamicViewProps {
6
6
  value: FormValue;
7
7
  spec: Spec;
@@ -1,4 +1,4 @@
1
- import { Spec } from '../../types';
1
+ import type { Spec } from '../../types';
2
2
  export interface ViewControllerProps<SpecType extends Spec> {
3
3
  spec: SpecType;
4
4
  name: string;
@@ -1,5 +1,5 @@
1
- import { FormValue, Spec } from '../../../types';
2
- import { DynamicViewConfig, IndependentViewEntity, ViewEntity, ViewLayoutType } from '../types';
1
+ import type { FormValue, Spec } from '../../../types';
2
+ import type { DynamicViewConfig, IndependentViewEntity, ViewEntity, ViewLayoutType } from '../types';
3
3
  export declare const useComponents: <Value extends FormValue, SpecType extends Spec<any, undefined, undefined>>(spec: SpecType, config: DynamicViewConfig) => {
4
4
  viewEntity: ViewEntity<Value, SpecType> | IndependentViewEntity<Value, SpecType> | undefined;
5
5
  Layout: ViewLayoutType<Value, SpecType> | undefined;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { DynamicViewContext } from '../types';
2
+ import type { DynamicViewContext } from '../types';
3
3
  export declare const useCreateContext: () => React.Context<DynamicViewContext>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { FormValue, Spec } from '../../../types';
3
- import { IndependentViewEntity, ViewEntity, ViewLayoutType } from '../types';
2
+ import type { FormValue, Spec } from '../../../types';
3
+ import type { IndependentViewEntity, ViewEntity, ViewLayoutType } from '../types';
4
4
  export interface UseRenderParams<Value extends FormValue, SpecType extends Spec> {
5
5
  value: Value;
6
6
  name: string;
@@ -1,5 +1,5 @@
1
- import { ArraySpec, ArrayValue } from '../../../types';
2
- import { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
1
+ import type { ArraySpec, ArrayValue } from '../../../types';
2
+ import type { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
3
3
  export type ArrayViewProps = ViewProps<ArrayValue, ArraySpec>;
4
4
  export type ArrayIndependentViewProps = IndependentViewProps<ArrayValue, ArraySpec>;
5
5
  export type ArrayViewLayoutProps = ViewLayoutProps<ArrayValue, ArraySpec>;
@@ -1,5 +1,5 @@
1
- import { BooleanSpec } from '../../../types';
2
- import { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
1
+ import type { BooleanSpec } from '../../../types';
2
+ import type { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
3
3
  export type BooleanViewProps = ViewProps<boolean, BooleanSpec>;
4
4
  export type BooleanIndependentViewProps = IndependentViewProps<boolean, BooleanSpec>;
5
5
  export type BooleanViewLayoutProps = ViewLayoutProps<boolean, BooleanSpec>;
@@ -1,5 +1,5 @@
1
- import { FormValue, Spec } from '../../../types';
2
- import { ArrayViewConfig, BooleanViewConfig, NumberViewConfig, ObjectViewConfig, StringViewConfig, ViewLayoutsMap, ViewsMap } from './';
1
+ import type { FormValue, Spec } from '../../../types';
2
+ import type { ArrayViewConfig, BooleanViewConfig, NumberViewConfig, ObjectViewConfig, StringViewConfig, ViewLayoutsMap, ViewsMap } from './';
3
3
  export interface ViewTypeConfig<Value extends FormValue, SpecType extends Spec> {
4
4
  views: ViewsMap<Value, SpecType>;
5
5
  layouts: ViewLayoutsMap<Value, SpecType>;
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import type { MonacoEditorProps } from 'react-monaco-editor/lib/types';
3
- import { FormValue, Spec } from '../../../types';
4
- import { DynamicViewConfig } from './';
3
+ import type { FormValue, Spec } from '../../../types';
4
+ import type { DynamicViewConfig } from './';
5
5
  export interface DynamicViewContext {
6
6
  config: DynamicViewConfig;
7
7
  value: FormValue;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { FormValue, Spec } from '../../../';
3
- import { ViewProps } from './';
1
+ import type React from 'react';
2
+ import type { FormValue, Spec } from '../../../';
3
+ import type { ViewProps } from './';
4
4
  export type ViewLayoutProps<Value extends FormValue, SpecType extends Spec<undefined, undefined, Record<string, any> | undefined> = Spec> = {
5
5
  children: React.ReactElement;
6
6
  } & ViewProps<Value, SpecType>;
@@ -1,5 +1,5 @@
1
- import { NumberSpec } from '../../../types';
2
- import { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
1
+ import type { NumberSpec } from '../../../types';
2
+ import type { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
3
3
  export type NumberViewProps = ViewProps<number, NumberSpec>;
4
4
  export type NumberIndependentViewProps = IndependentViewProps<number, NumberSpec>;
5
5
  export type NumberViewLayoutProps = ViewLayoutProps<number, NumberSpec>;
@@ -1,5 +1,5 @@
1
- import { ObjectSpec, ObjectValue } from '../../../types';
2
- import { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
1
+ import type { ObjectSpec, ObjectValue } from '../../../types';
2
+ import type { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
3
3
  export type ObjectViewProps = ViewProps<ObjectValue, ObjectSpec>;
4
4
  export type ObjectIndependentViewProps = IndependentViewProps<ObjectValue, ObjectSpec>;
5
5
  export type ObjectViewLayoutProps = ViewLayoutProps<ObjectValue, ObjectSpec>;
@@ -1,5 +1,5 @@
1
- import { StringSpec } from '../../../types';
2
- import { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
1
+ import type { StringSpec } from '../../../types';
2
+ import type { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
3
3
  export type StringViewProps = ViewProps<string, StringSpec>;
4
4
  export type StringIndependentViewProps = IndependentViewProps<string, StringSpec>;
5
5
  export type StringViewLayoutProps = ViewLayoutProps<string, StringSpec>;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { FormValue, Spec } from '../../../';
3
- import { ViewLayoutType } from './';
1
+ import type React from 'react';
2
+ import type { FormValue, Spec } from '../../../';
3
+ import type { ViewLayoutType } from './';
4
4
  export type ViewProps<Value extends FormValue, SpecType extends Spec<undefined, undefined, Record<string, any> | undefined> = Spec> = {
5
5
  spec: SpecType;
6
6
  name: string;
@@ -1,4 +1,4 @@
1
- import { ArraySpec, BooleanSpec, NumberSpec, ObjectSpec, StringSpec } from './types';
1
+ import type { ArraySpec, BooleanSpec, NumberSpec, ObjectSpec, StringSpec } from './types';
2
2
  export declare const isCorrectSpec: (candidate: any) => boolean;
3
3
  export declare const isArraySpec: (candidate: any) => candidate is ArraySpec<any, undefined, undefined>;
4
4
  export declare const isBooleanSpec: (candidate: any) => candidate is BooleanSpec<any, undefined, undefined>;