@vef-framework-react/form-editor 2.5.0 → 2.7.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 (289) hide show
  1. package/dist/cjs/components/button/index.cjs +1 -1
  2. package/dist/cjs/components/checkbox-group-field/index.cjs +1 -1
  3. package/dist/cjs/components/code-editor/index.cjs +1 -1
  4. package/dist/cjs/components/date-field/index.cjs +1 -1
  5. package/dist/cjs/components/field-entries.cjs +1 -1
  6. package/dist/cjs/components/mobile/checkbox-group.cjs +1 -1
  7. package/dist/cjs/components/mobile/input-cell.cjs +1 -1
  8. package/dist/cjs/components/mobile/number.cjs +1 -1
  9. package/dist/cjs/components/mobile/switch.cjs +1 -1
  10. package/dist/cjs/components/mobile/textfield.cjs +1 -1
  11. package/dist/cjs/components/number-field/index.cjs +1 -1
  12. package/dist/cjs/components/radio-field/index.cjs +1 -1
  13. package/dist/cjs/components/select-field/index.cjs +1 -1
  14. package/dist/cjs/components/textfield/index.cjs +1 -1
  15. package/dist/cjs/editor/canvas/canvas-field.cjs +1 -1
  16. package/dist/cjs/editor/canvas/canvas.cjs +1 -1
  17. package/dist/cjs/editor/canvas/drop-zones.cjs +1 -1
  18. package/dist/cjs/editor/canvas/json-split-view.cjs +1 -1
  19. package/dist/cjs/editor/canvas/subform-column-eligibility.cjs +1 -1
  20. package/dist/cjs/editor/context-sources.cjs +1 -0
  21. package/dist/cjs/editor/dnd.cjs +1 -1
  22. package/dist/cjs/editor/editor-layout-context.cjs +1 -1
  23. package/dist/cjs/editor/form-config/form-config-drawer.cjs +1 -1
  24. package/dist/cjs/editor/form-config/linkage-overview.cjs +1 -0
  25. package/dist/cjs/editor/form-editor.cjs +1 -1
  26. package/dist/cjs/editor/palette/palette-group.cjs +1 -1
  27. package/dist/cjs/editor/preview-runtime-context.cjs +1 -1
  28. package/dist/cjs/editor/properties/container-properties.cjs +1 -1
  29. package/dist/cjs/editor/properties/entries/index.cjs +1 -1
  30. package/dist/cjs/editor/properties/entries/linkage/action-editor.cjs +2 -2
  31. package/dist/cjs/editor/properties/entries/linkage/actions-editor.cjs +1 -1
  32. package/dist/cjs/editor/properties/entries/linkage/condition-editor.cjs +1 -1
  33. package/dist/cjs/editor/properties/entries/linkage/container-linkage-section.cjs +1 -1
  34. package/dist/cjs/editor/properties/entries/linkage/expression-input.cjs +1 -0
  35. package/dist/cjs/editor/properties/entries/linkage/linkage-rules-entry.cjs +1 -1
  36. package/dist/cjs/editor/properties/entries/linkage/mutators.cjs +1 -1
  37. package/dist/cjs/editor/properties/entries/linkage/options.cjs +1 -1
  38. package/dist/cjs/editor/properties/entries/linkage/rule-diagnostics.cjs +1 -1
  39. package/dist/cjs/editor/properties/entries/linkage/rule-list-editor.cjs +1 -1
  40. package/dist/cjs/editor/properties/entries/linkage/trigger-editor.cjs +1 -1
  41. package/dist/cjs/editor/properties/entries/linkage/use-linkage-editor-model.cjs +1 -1
  42. package/dist/cjs/editor/properties/form-linkage-panel.cjs +1 -1
  43. package/dist/cjs/editor/properties/form-variables-panel.cjs +1 -1
  44. package/dist/cjs/editor/properties/properties-panel.cjs +1 -1
  45. package/dist/cjs/editor/properties/properties-provider.cjs +1 -1
  46. package/dist/cjs/editor/remove-node-confirm.cjs +2 -1
  47. package/dist/cjs/editor/schema-apply.cjs +2 -2
  48. package/dist/cjs/editor/toolbar/notify.cjs +1 -1
  49. package/dist/cjs/editor/toolbar/toolbar.cjs +2 -1
  50. package/dist/cjs/engine/conversion/index.cjs +1 -1
  51. package/dist/cjs/engine/keys.cjs +1 -1
  52. package/dist/cjs/engine/linkage/cycle.cjs +1 -1
  53. package/dist/cjs/engine/linkage/default-evaluator.cjs +1 -1
  54. package/dist/cjs/engine/linkage/effects.cjs +1 -1
  55. package/dist/cjs/engine/linkage/evaluator.cjs +1 -1
  56. package/dist/cjs/engine/linkage/index.cjs +1 -1
  57. package/dist/cjs/engine/linkage/operators.cjs +1 -1
  58. package/dist/cjs/engine/linkage/source-tracking.cjs +1 -1
  59. package/dist/cjs/engine/linkage/taxonomy.cjs +1 -1
  60. package/dist/cjs/engine/linkage/validator.cjs +1 -1
  61. package/dist/cjs/engine/registry/form-field-registry.cjs +1 -1
  62. package/dist/cjs/engine/schema/column-type.cjs +1 -0
  63. package/dist/cjs/engine/schema/edit-ops.cjs +1 -1
  64. package/dist/cjs/engine/schema/permission-bridge.cjs +1 -1
  65. package/dist/cjs/engine/schema/presentation.cjs +1 -1
  66. package/dist/cjs/engine/schema/reconcile.cjs +1 -1
  67. package/dist/cjs/engine/schema/validate.cjs +1 -1
  68. package/dist/cjs/engine/schema/walk.cjs +1 -1
  69. package/dist/cjs/engine/validation.cjs +1 -1
  70. package/dist/cjs/index.cjs +1 -1
  71. package/dist/cjs/render/form-renderer.cjs +1 -1
  72. package/dist/cjs/render/stack-style.cjs +1 -1
  73. package/dist/cjs/render/submit.cjs +1 -1
  74. package/dist/cjs/runtime/effects.cjs +1 -1
  75. package/dist/cjs/runtime/runtime-state-controller.cjs +1 -1
  76. package/dist/cjs/runtime/stabilize-state-map.cjs +1 -1
  77. package/dist/cjs/store/form-store.cjs +1 -1
  78. package/dist/cjs/types/index.cjs +1 -1
  79. package/dist/es/components/button/index.js +18 -18
  80. package/dist/es/components/checkbox-group-field/index.js +20 -19
  81. package/dist/es/components/code-editor/code-editor-input.js +1 -1
  82. package/dist/es/components/code-editor/index.js +31 -31
  83. package/dist/es/components/containers/index.js +1 -1
  84. package/dist/es/components/date-field/index.js +4 -2
  85. package/dist/es/components/display/index.js +1 -1
  86. package/dist/es/components/field-entries.js +22 -5
  87. package/dist/es/components/mobile/alert-block.js +1 -1
  88. package/dist/es/components/mobile/button.js +1 -1
  89. package/dist/es/components/mobile/checkbox-group.js +18 -18
  90. package/dist/es/components/mobile/date-adapters.js +1 -1
  91. package/dist/es/components/mobile/date.js +1 -1
  92. package/dist/es/components/mobile/daterange.js +1 -1
  93. package/dist/es/components/mobile/datetime.js +1 -1
  94. package/dist/es/components/mobile/definitions.js +1 -1
  95. package/dist/es/components/mobile/divider.js +1 -1
  96. package/dist/es/components/mobile/input-cell.js +13 -9
  97. package/dist/es/components/mobile/number.js +30 -35
  98. package/dist/es/components/mobile/option-group.js +1 -1
  99. package/dist/es/components/mobile/paragraph.js +1 -1
  100. package/dist/es/components/mobile/picker-trigger.js +1 -1
  101. package/dist/es/components/mobile/radio.js +1 -1
  102. package/dist/es/components/mobile/scope.js +1 -1
  103. package/dist/es/components/mobile/select.js +1 -1
  104. package/dist/es/components/mobile/switch.js +43 -19
  105. package/dist/es/components/mobile/textarea.js +1 -1
  106. package/dist/es/components/mobile/textfield.js +30 -26
  107. package/dist/es/components/mobile/theme.js +1 -1
  108. package/dist/es/components/number-field/index.js +28 -16
  109. package/dist/es/components/radio-field/index.js +30 -18
  110. package/dist/es/components/select-field/index.js +28 -16
  111. package/dist/es/components/switch-field/index.js +1 -1
  112. package/dist/es/components/textarea-field/index.js +1 -1
  113. package/dist/es/components/textfield/index.js +29 -28
  114. package/dist/es/editor/canvas/canvas-field.js +13 -11
  115. package/dist/es/editor/canvas/canvas.js +259 -248
  116. package/dist/es/editor/canvas/drop-indicator.js +1 -1
  117. package/dist/es/editor/canvas/drop-zones.js +31 -23
  118. package/dist/es/editor/canvas/json-split-view.js +73 -73
  119. package/dist/es/editor/canvas/mobile-seed-state.js +1 -1
  120. package/dist/es/editor/canvas/phone-frame.js +1 -1
  121. package/dist/es/editor/canvas/subform-column-eligibility.js +2 -2
  122. package/dist/es/editor/canvas/subform-table-cell.js +1 -1
  123. package/dist/es/editor/context-sources.js +21 -0
  124. package/dist/es/editor/dnd.js +2 -2
  125. package/dist/es/editor/editor-layout-context.js +2 -2
  126. package/dist/es/editor/footer/footer.js +1 -1
  127. package/dist/es/editor/form-config/form-basics-tab.js +1 -1
  128. package/dist/es/editor/form-config/form-config-drawer.js +125 -103
  129. package/dist/es/editor/form-config/linkage-overview.js +96 -0
  130. package/dist/es/editor/form-config/outline-tab.js +1 -1
  131. package/dist/es/editor/form-editor.js +97 -91
  132. package/dist/es/editor/palette/field-groups.js +1 -1
  133. package/dist/es/editor/palette/palette-group.js +3 -2
  134. package/dist/es/editor/palette/palette-item.js +1 -1
  135. package/dist/es/editor/palette/palette-panel.js +1 -1
  136. package/dist/es/editor/preview-effects.js +1 -1
  137. package/dist/es/editor/preview-runtime-context.js +3 -3
  138. package/dist/es/editor/properties/block-layout-section.js +1 -1
  139. package/dist/es/editor/properties/container-properties.js +16 -24
  140. package/dist/es/editor/properties/entries/built-ins.js +1 -1
  141. package/dist/es/editor/properties/entries/checkbox-entry.js +1 -1
  142. package/dist/es/editor/properties/entries/coerce.js +1 -1
  143. package/dist/es/editor/properties/entries/entry-field.js +1 -1
  144. package/dist/es/editor/properties/entries/icon-entry.js +1 -1
  145. package/dist/es/editor/properties/entries/index.js +10 -9
  146. package/dist/es/editor/properties/entries/key-entry.js +1 -1
  147. package/dist/es/editor/properties/entries/linkage/action-editor.js +117 -136
  148. package/dist/es/editor/properties/entries/linkage/actions-editor.js +13 -14
  149. package/dist/es/editor/properties/entries/linkage/condition-editor.js +158 -163
  150. package/dist/es/editor/properties/entries/linkage/container-linkage-section.js +18 -20
  151. package/dist/es/editor/properties/entries/linkage/expression-input.js +17 -0
  152. package/dist/es/editor/properties/entries/linkage/index.js +1 -1
  153. package/dist/es/editor/properties/entries/linkage/linkage-rules-entry.js +9 -11
  154. package/dist/es/editor/properties/entries/linkage/mutators.js +13 -13
  155. package/dist/es/editor/properties/entries/linkage/options.js +4 -4
  156. package/dist/es/editor/properties/entries/linkage/rule-diagnostics.js +30 -20
  157. package/dist/es/editor/properties/entries/linkage/rule-list-editor.js +29 -32
  158. package/dist/es/editor/properties/entries/linkage/styles.js +1 -1
  159. package/dist/es/editor/properties/entries/linkage/trigger-editor.js +10 -11
  160. package/dist/es/editor/properties/entries/linkage/use-linkage-editor-model.js +12 -13
  161. package/dist/es/editor/properties/entries/linkage/use-stable-options.js +1 -1
  162. package/dist/es/editor/properties/entries/number-entry.js +1 -1
  163. package/dist/es/editor/properties/entries/options-source/index.js +1 -1
  164. package/dist/es/editor/properties/entries/options-source/source-mutators.js +1 -1
  165. package/dist/es/editor/properties/entries/select-entry.js +1 -1
  166. package/dist/es/editor/properties/entries/text-entry.js +1 -1
  167. package/dist/es/editor/properties/form-data-sources-panel.js +1 -1
  168. package/dist/es/editor/properties/form-linkage-panel.js +2 -4
  169. package/dist/es/editor/properties/form-variables-panel.js +4 -4
  170. package/dist/es/editor/properties/option-editors.js +1 -1
  171. package/dist/es/editor/properties/panel-header.js +1 -1
  172. package/dist/es/editor/properties/properties-empty.js +1 -1
  173. package/dist/es/editor/properties/properties-header.js +1 -1
  174. package/dist/es/editor/properties/properties-panel.js +9 -9
  175. package/dist/es/editor/properties/properties-provider.js +6 -10
  176. package/dist/es/editor/properties/properties-tabs.js +1 -1
  177. package/dist/es/editor/properties/use-confirmable-kind-switch.js +1 -1
  178. package/dist/es/editor/remove-node-confirm.js +24 -29
  179. package/dist/es/editor/schema-apply.js +15 -17
  180. package/dist/es/editor/styles.js +1 -1
  181. package/dist/es/editor/toolbar/notify.js +9 -8
  182. package/dist/es/editor/toolbar/schema-io.js +1 -1
  183. package/dist/es/editor/toolbar/toolbar.js +61 -55
  184. package/dist/es/editor/use-editor-shortcuts.js +1 -1
  185. package/dist/es/editor/validation-summary.js +1 -1
  186. package/dist/es/engine/assert-never.js +1 -1
  187. package/dist/es/engine/conversion/index.js +2 -2
  188. package/dist/es/engine/ids.js +1 -1
  189. package/dist/es/engine/keys.js +28 -20
  190. package/dist/es/engine/linkage/cycle.js +6 -6
  191. package/dist/es/engine/linkage/default-evaluator.js +37 -32
  192. package/dist/es/engine/linkage/effects.js +13 -12
  193. package/dist/es/engine/linkage/evaluator.js +50 -47
  194. package/dist/es/engine/linkage/index.js +9 -8
  195. package/dist/es/engine/linkage/operators.js +51 -24
  196. package/dist/es/engine/linkage/source-tracking.js +15 -12
  197. package/dist/es/engine/linkage/taxonomy.js +12 -12
  198. package/dist/es/engine/linkage/validator.js +59 -50
  199. package/dist/es/engine/registry/defaults-mobile.js +1 -1
  200. package/dist/es/engine/registry/defaults.js +1 -1
  201. package/dist/es/engine/registry/form-field-registry.js +6 -6
  202. package/dist/es/engine/schema/column-type.js +38 -0
  203. package/dist/es/engine/schema/edit-ops.js +14 -11
  204. package/dist/es/engine/schema/mutate.js +1 -1
  205. package/dist/es/engine/schema/nodes.js +1 -1
  206. package/dist/es/engine/schema/permission-bridge.js +17 -22
  207. package/dist/es/engine/schema/presentation.js +2 -3
  208. package/dist/es/engine/schema/reconcile.js +4 -8
  209. package/dist/es/engine/schema/removal-impact.js +1 -1
  210. package/dist/es/engine/schema/rewrite.js +1 -1
  211. package/dist/es/engine/schema/validate.js +74 -71
  212. package/dist/es/engine/schema/walk.js +2 -2
  213. package/dist/es/engine/validation.js +15 -11
  214. package/dist/es/icons.js +1 -1
  215. package/dist/es/index.js +4 -3
  216. package/dist/es/render/chrome/mobile-chrome.js +1 -1
  217. package/dist/es/render/chrome/pc-chrome.js +1 -1
  218. package/dist/es/render/chrome/subform-shell.js +1 -1
  219. package/dist/es/render/data-source-context.js +0 -0
  220. package/dist/es/render/flex-style.js +1 -1
  221. package/dist/es/render/form-field.js +1 -1
  222. package/dist/es/render/form-renderer.js +180 -217
  223. package/dist/es/render/grid-style.js +1 -1
  224. package/dist/es/render/parts/field-shell.js +1 -1
  225. package/dist/es/render/parts/label.js +1 -1
  226. package/dist/es/render/parts/options-status.js +1 -1
  227. package/dist/es/render/stack-style.js +2 -2
  228. package/dist/es/render/subform-columns.js +1 -1
  229. package/dist/es/render/submit.js +6 -6
  230. package/dist/es/runtime/effects.js +37 -34
  231. package/dist/es/runtime/resolve-scope-values.js +1 -1
  232. package/dist/es/runtime/runtime-context.js +1 -1
  233. package/dist/es/runtime/runtime-state-controller.js +8 -8
  234. package/dist/es/runtime/stabilize-state-map.js +5 -3
  235. package/dist/es/store/engine-provider.js +1 -1
  236. package/dist/es/store/form-store.js +14 -8
  237. package/dist/es/types/chrome.js +1 -1
  238. package/dist/es/types/component.js +1 -1
  239. package/dist/es/types/data-source.js +1 -1
  240. package/dist/es/types/index.js +6 -5
  241. package/dist/es/types/linkage.js +1 -1
  242. package/dist/es/types/properties.js +1 -1
  243. package/dist/es/types/schema.js +1 -1
  244. package/dist/types/components/field-entries.d.ts +15 -1
  245. package/dist/types/components/mobile/input-cell.d.ts +5 -0
  246. package/dist/types/components/mobile/switch.d.ts +9 -8
  247. package/dist/types/components/mobile/textfield.d.ts +3 -0
  248. package/dist/types/editor/canvas/drop-zones.d.ts +12 -1
  249. package/dist/types/editor/context-sources.d.ts +19 -0
  250. package/dist/types/editor/dnd.d.ts +5 -4
  251. package/dist/types/editor/form-config/linkage-overview.d.ts +8 -0
  252. package/dist/types/editor/form-editor.d.ts +23 -5
  253. package/dist/types/editor/preview-runtime-context.d.ts +3 -3
  254. package/dist/types/editor/properties/entries/linkage/action-editor.d.ts +0 -5
  255. package/dist/types/editor/properties/entries/linkage/actions-editor.d.ts +0 -5
  256. package/dist/types/editor/properties/entries/linkage/condition-editor.d.ts +1 -6
  257. package/dist/types/editor/properties/entries/linkage/expression-input.d.ts +22 -0
  258. package/dist/types/editor/properties/entries/linkage/rule-diagnostics.d.ts +10 -0
  259. package/dist/types/editor/properties/entries/linkage/rule-list-editor.d.ts +0 -5
  260. package/dist/types/editor/properties/entries/linkage/trigger-editor.d.ts +0 -5
  261. package/dist/types/editor/properties/entries/linkage/use-linkage-editor-model.d.ts +5 -10
  262. package/dist/types/editor/properties/entries/linkage/use-stable-options.d.ts +4 -4
  263. package/dist/types/editor/properties/form-variables-panel.d.ts +1 -1
  264. package/dist/types/editor/toolbar/notify.d.ts +17 -1
  265. package/dist/types/editor/toolbar/toolbar.d.ts +9 -1
  266. package/dist/types/engine/keys.d.ts +11 -1
  267. package/dist/types/engine/linkage/default-evaluator.d.ts +6 -7
  268. package/dist/types/engine/linkage/effects.d.ts +2 -2
  269. package/dist/types/engine/linkage/evaluator.d.ts +12 -6
  270. package/dist/types/engine/linkage/index.d.ts +1 -1
  271. package/dist/types/engine/linkage/operators.d.ts +7 -5
  272. package/dist/types/engine/linkage/taxonomy.d.ts +4 -3
  273. package/dist/types/engine/registry/form-field-registry.d.ts +1 -1
  274. package/dist/types/engine/schema/column-type.d.ts +30 -0
  275. package/dist/types/engine/validation.d.ts +7 -1
  276. package/dist/types/index.d.ts +1 -0
  277. package/dist/types/render/form-renderer.d.ts +6 -7
  278. package/dist/types/render/submit.d.ts +4 -4
  279. package/dist/types/runtime/effects.d.ts +3 -3
  280. package/dist/types/runtime/runtime-state-controller.d.ts +5 -5
  281. package/dist/types/store/form-store.d.ts +7 -0
  282. package/dist/types/types/linkage.d.ts +30 -10
  283. package/dist/types/types/schema.d.ts +15 -1
  284. package/package.json +6 -12
  285. package/dist/cjs/editor/properties/entries/linkage/expression-assist.cjs +0 -1
  286. package/dist/es/editor/properties/entries/linkage/expression-assist.js +0 -86
  287. package/dist/types/editor/properties/entries/linkage/expression-assist.d.ts +0 -33
  288. package/dist/types/test-expression-engine.d.ts +0 -25
  289. /package/dist/types/{editor/properties/entries/linkage/expression-assist.test.d.ts → engine/schema/column-type.test.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/form-editor v2.5.0 made by Venus | 2026-06-25T04:03:24.761Z */
1
+ /*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
2
2
  import { CONTAINER_TYPES as e, GAP_SCALES as t } from "../../types/schema.js";
3
3
  import { createIssue as n, hasErrorIssues as r, isRecord as i, validateRemoteRequest as a } from "../validation.js";
4
4
  import { validateLinkageSchema as o } from "../linkage/validator.js";
@@ -25,14 +25,14 @@ function d(e, t) {
25
25
  valid: !1,
26
26
  issues: a
27
27
  };
28
- g({
28
+ _({
29
29
  dataSourceIds: s,
30
30
  formLinkage: o.linkage,
31
31
  issues: a,
32
32
  layer: c.pc,
33
33
  registry: t.pc,
34
34
  where: "presentations.pc"
35
- }), c.mobile !== void 0 && g({
35
+ }), c.mobile !== void 0 && _({
36
36
  dataSourceIds: s,
37
37
  formLinkage: void 0,
38
38
  issues: a,
@@ -43,7 +43,7 @@ function d(e, t) {
43
43
  let l = !r(a);
44
44
  return {
45
45
  valid: l,
46
- ...l ? { schema: o } : {},
46
+ ...l && { schema: o },
47
47
  issues: a
48
48
  };
49
49
  }
@@ -67,26 +67,29 @@ function p(e, t) {
67
67
  let r = /* @__PURE__ */ new Set();
68
68
  if (e === void 0) return r;
69
69
  if (!Array.isArray(e)) return t.push(n("dataSources", "data_sources_invalid")), r;
70
- let o = e;
71
- for (let [e, s] of o.entries()) {
72
- let o = `dataSources[${e}]`;
73
- if (!i(s)) {
74
- t.push(n(o, "data_sources_invalid"));
70
+ let a = e;
71
+ for (let [e, o] of a.entries()) {
72
+ let a = `dataSources[${e}]`;
73
+ if (!i(o)) {
74
+ t.push(n(a, "data_sources_invalid"));
75
75
  continue;
76
76
  }
77
- switch (typeof s.id != "string" || s.id.length === 0 || r.has(s.id) ? t.push(n(`${o}.id`, "data_sources_invalid")) : r.add(s.id), typeof s.name != "string" && t.push(n(`${o}.name`, "data_sources_invalid")), s.kind) {
78
- case "static":
79
- m(s.options, `${o}.options`, "data_sources_invalid", t);
80
- break;
81
- case "remote":
82
- t.push(...a(s.request, `${o}.request`)), h(s.mapping, `${o}.mapping`, "data_sources_invalid", t);
83
- break;
84
- default: t.push(n(`${o}.kind`, "data_sources_invalid"));
85
- }
77
+ typeof o.id != "string" || o.id.length === 0 || r.has(o.id) ? t.push(n(`${a}.id`, "data_sources_invalid")) : r.add(o.id), typeof o.name != "string" && t.push(n(`${a}.name`, "data_sources_invalid")), m(o, a, t);
86
78
  }
87
79
  return r;
88
80
  }
89
- function m(e, t, r, a) {
81
+ function m(e, t, r) {
82
+ switch (e.kind) {
83
+ case "static":
84
+ h(e.options, `${t}.options`, "data_sources_invalid", r);
85
+ return;
86
+ case "remote":
87
+ r.push(...a(e.request, `${t}.request`)), g(e.mapping, `${t}.mapping`, "data_sources_invalid", r);
88
+ return;
89
+ default: r.push(n(`${t}.kind`, "data_sources_invalid"));
90
+ }
91
+ }
92
+ function h(e, t, r, a) {
90
93
  if (!Array.isArray(e)) {
91
94
  a.push(n(t, r));
92
95
  return;
@@ -94,7 +97,7 @@ function m(e, t, r, a) {
94
97
  let o = e;
95
98
  for (let [e, s] of o.entries()) (!i(s) || typeof s.label != "string" || typeof s.value != "string" && typeof s.value != "number") && a.push(n(`${t}[${e}]`, r));
96
99
  }
97
- function h(e, t, r, a) {
100
+ function g(e, t, r, a) {
98
101
  if (e !== void 0) {
99
102
  if (!i(e)) {
100
103
  a.push(n(t, r));
@@ -108,7 +111,7 @@ function h(e, t, r, a) {
108
111
  ]) e[i] !== void 0 && typeof e[i] != "string" && a.push(n(`${t}.${i}`, r));
109
112
  }
110
113
  }
111
- function g(e) {
114
+ function _(e) {
112
115
  let { dataSourceIds: t, formLinkage: a, issues: s, layer: c, registry: l, where: u } = e;
113
116
  if (!i(c)) {
114
117
  s.push(n(u, "presentation_not_object"));
@@ -125,15 +128,15 @@ function g(e) {
125
128
  keysByScope: /* @__PURE__ */ new Map(),
126
129
  dataSourceIds: t
127
130
  }, f = s.length;
128
- for (let [e, t] of c.children.entries()) _(t, `${u}.children[${e}]`, [], d);
131
+ for (let [e, t] of c.children.entries()) v(t, `${u}.children[${e}]`, [], d);
129
132
  r(s.slice(f)) || s.push(...o(c, a).issues);
130
133
  }
131
- function _(e, t, r, a) {
134
+ function v(e, t, r, a) {
132
135
  if (!i(e)) {
133
136
  a.issues.push(n(t, "block_not_object"));
134
137
  return;
135
138
  }
136
- I(e.id, t, a), R(e.span, t, a), z(e.flex, t, a), B(e.columnWidth, t, a);
139
+ L(e.id, t, a), z(e.span, t, a), B(e.flex, t, a), V(e.columnWidth, t, a);
137
140
  let { type: o } = e;
138
141
  if (typeof o != "string" || o.length === 0) {
139
142
  a.issues.push(n(`${t}.type`, "type_required"));
@@ -141,24 +144,24 @@ function _(e, t, r, a) {
141
144
  }
142
145
  switch (o) {
143
146
  case "section":
144
- D(e, t, r, a);
147
+ O(e, t, r, a);
145
148
  return;
146
149
  case "tabs":
147
- N(e, t, r, a);
150
+ P(e, t, r, a);
148
151
  return;
149
152
  case "subform":
150
- P(e, t, r, a);
153
+ F(e, t, r, a);
151
154
  return;
152
155
  case "flex":
153
- A(e, t, r, a);
156
+ j(e, t, r, a);
154
157
  return;
155
158
  case "grid":
156
- j(e, t, r, a);
159
+ M(e, t, r, a);
157
160
  return;
158
- default: b(e, o, t, r, a);
161
+ default: x(e, o, t, r, a);
159
162
  }
160
163
  }
161
- var v = [
164
+ var y = [
162
165
  "label",
163
166
  "placeholder",
164
167
  "helperText",
@@ -166,26 +169,26 @@ var v = [
166
169
  "text",
167
170
  "message"
168
171
  ];
169
- function y(e, t, r) {
170
- for (let i of v) e[i] !== void 0 && typeof e[i] != "string" && r.issues.push(n(`${t}.${i}`, "display_text_invalid", { prop: i }));
172
+ function b(e, t, r) {
173
+ for (let i of y) e[i] !== void 0 && typeof e[i] != "string" && r.issues.push(n(`${t}.${i}`, "display_text_invalid", { prop: i }));
171
174
  }
172
- function b(e, t, r, i, a) {
175
+ function x(e, t, r, i, a) {
173
176
  if (!a.registry.has(t)) {
174
177
  a.issues.push(n(`${r}.type`, "unknown_field_type", { type: t }));
175
178
  return;
176
179
  }
177
- y(e, r, a);
180
+ b(e, r, a);
178
181
  let o = typeof e.key == "string" && e.key.length > 0, s = a.registry.get(t)?.config.keyed === !0;
179
- s && !o && a.issues.push(n(`${r}.key`, "key_required", { type: t })), o && !s ? a.issues.push(n(`${r}.key`, "stray_key", { type: t })) : o && L(e.key, i, r, a), S(e.validate, `${r}.validate`, a), e.dataSource !== void 0 && x(e.dataSource, `${r}.dataSource`, a);
182
+ s && !o && a.issues.push(n(`${r}.key`, "key_required", { type: t })), o && !s ? a.issues.push(n(`${r}.key`, "stray_key", { type: t })) : o && R(e.key, i, r, a), C(e.validate, `${r}.validate`, a), e.dataSource !== void 0 && S(e.dataSource, `${r}.dataSource`, a);
180
183
  }
181
- function x(e, t, r) {
184
+ function S(e, t, r) {
182
185
  if (!i(e)) {
183
186
  r.issues.push(n(t, "data_source_invalid"));
184
187
  return;
185
188
  }
186
189
  switch (e.kind) {
187
190
  case "static":
188
- m(e.options, `${t}.options`, "data_source_invalid", r.issues);
191
+ h(e.options, `${t}.options`, "data_source_invalid", r.issues);
189
192
  return;
190
193
  case "ref": {
191
194
  let { dataSourceId: i } = e;
@@ -193,12 +196,12 @@ function x(e, t, r) {
193
196
  return;
194
197
  }
195
198
  case "remote":
196
- r.issues.push(...a(e.request, `${t}.request`)), h(e.mapping, `${t}.mapping`, "data_source_invalid", r.issues);
199
+ r.issues.push(...a(e.request, `${t}.request`)), g(e.mapping, `${t}.mapping`, "data_source_invalid", r.issues);
197
200
  return;
198
201
  default: r.issues.push(n(`${t}.kind`, "data_source_invalid"));
199
202
  }
200
203
  }
201
- function S(e, t, r) {
204
+ function C(e, t, r) {
202
205
  if (e === void 0) return;
203
206
  if (!i(e)) {
204
207
  r.issues.push(n(t, "validate_malformed"));
@@ -211,48 +214,48 @@ function S(e, t, r) {
211
214
  })), typeof s == "number" && typeof a == "number" && s > a && r.issues.push(n(`${t}.min`, "validate_range_invalid", {
212
215
  lower: "min",
213
216
  upper: "max"
214
- })), typeof l == "string" && l.length > 0 && !C(l) && r.issues.push(n(`${t}.pattern`, "pattern_invalid"));
217
+ })), typeof l == "string" && l.length > 0 && !w(l) && r.issues.push(n(`${t}.pattern`, "pattern_invalid"));
215
218
  }
216
- function C(e) {
219
+ function w(e) {
217
220
  try {
218
221
  return new RegExp(e), !0;
219
222
  } catch {
220
223
  return !1;
221
224
  }
222
225
  }
223
- var w = new Set(t);
224
- function T(e, t, r) {
225
- e !== void 0 && !w.has(e) && r.issues.push(n(`${t}.gap`, "gap_invalid"));
226
+ var T = new Set(t);
227
+ function E(e, t, r) {
228
+ e !== void 0 && !T.has(e) && r.issues.push(n(`${t}.gap`, "gap_invalid"));
226
229
  }
227
- function E(e, t, r, i) {
230
+ function D(e, t, r, i) {
228
231
  typeof e.key == "string" && e.key.length > 0 && i.issues.push(n(`${r}.key`, "stray_key_on_container", { type: t }));
229
232
  }
230
- function D(e, t, r, i) {
231
- E(e, "section", t, i), e.variant !== "card" && e.variant !== "collapse" && i.issues.push(n(`${t}.variant`, "variant_invalid")), e.title !== void 0 && typeof e.title != "string" && i.issues.push(n(`${t}.title`, "title_invalid")), T(e.gap, t, i), F(e.children, `${t}.children`, r, i);
233
+ function O(e, t, r, i) {
234
+ D(e, "section", t, i), e.variant !== "card" && e.variant !== "collapse" && i.issues.push(n(`${t}.variant`, "variant_invalid")), e.title !== void 0 && typeof e.title != "string" && i.issues.push(n(`${t}.title`, "title_invalid")), E(e.gap, t, i), I(e.children, `${t}.children`, r, i);
232
235
  }
233
- var O = new Set([
236
+ var k = /* @__PURE__ */ new Set([
234
237
  "start",
235
238
  "center",
236
239
  "end",
237
240
  "between",
238
241
  "around"
239
- ]), k = new Set([
242
+ ]), A = /* @__PURE__ */ new Set([
240
243
  "start",
241
244
  "center",
242
245
  "end",
243
246
  "stretch"
244
247
  ]);
245
- function A(e, t, r, i) {
246
- E(e, "flex", t, i), e.direction !== void 0 && e.direction !== "row" && e.direction !== "column" && i.issues.push(n(`${t}.direction`, "flex_invalid")), e.justify !== void 0 && !O.has(e.justify) && i.issues.push(n(`${t}.justify`, "flex_invalid")), e.align !== void 0 && !k.has(e.align) && i.issues.push(n(`${t}.align`, "flex_invalid")), e.wrap !== void 0 && typeof e.wrap != "boolean" && i.issues.push(n(`${t}.wrap`, "flex_invalid")), e.gap !== void 0 && !M(e.gap) && i.issues.push(n(`${t}.gap`, "gap_invalid")), F(e.children, `${t}.children`, r, i);
247
- }
248
248
  function j(e, t, r, i) {
249
- E(e, "grid", t, i), e.columns !== void 0 && (typeof e.columns != "number" || !Number.isInteger(e.columns) || e.columns < 1 || e.columns > 24) && i.issues.push(n(`${t}.columns`, "columns_invalid", { max: 24 })), e.gap !== void 0 && !M(e.gap) && i.issues.push(n(`${t}.gap`, "gap_invalid")), e.rowGap !== void 0 && !M(e.rowGap) && i.issues.push(n(`${t}.rowGap`, "gap_invalid")), F(e.children, `${t}.children`, r, i);
249
+ D(e, "flex", t, i), e.direction !== void 0 && e.direction !== "row" && e.direction !== "column" && i.issues.push(n(`${t}.direction`, "flex_invalid")), e.justify !== void 0 && !k.has(e.justify) && i.issues.push(n(`${t}.justify`, "flex_invalid")), e.align !== void 0 && !A.has(e.align) && i.issues.push(n(`${t}.align`, "flex_invalid")), e.wrap !== void 0 && typeof e.wrap != "boolean" && i.issues.push(n(`${t}.wrap`, "flex_invalid")), e.gap !== void 0 && !N(e.gap) && i.issues.push(n(`${t}.gap`, "gap_invalid")), I(e.children, `${t}.children`, r, i);
250
250
  }
251
- function M(e) {
252
- return typeof e == "number" && Number.isInteger(e) && e >= 0;
251
+ function M(e, t, r, i) {
252
+ D(e, "grid", t, i), e.columns !== void 0 && (typeof e.columns != "number" || !Number.isSafeInteger(e.columns) || e.columns < 1 || e.columns > 24) && i.issues.push(n(`${t}.columns`, "columns_invalid", { max: 24 })), e.gap !== void 0 && !N(e.gap) && i.issues.push(n(`${t}.gap`, "gap_invalid")), e.rowGap !== void 0 && !N(e.rowGap) && i.issues.push(n(`${t}.rowGap`, "gap_invalid")), I(e.children, `${t}.children`, r, i);
253
253
  }
254
- function N(e, t, r, a) {
255
- if (E(e, "tabs", t, a), T(e.gap, t, a), !Array.isArray(e.tabs)) {
254
+ function N(e) {
255
+ return typeof e == "number" && Number.isSafeInteger(e) && e >= 0;
256
+ }
257
+ function P(e, t, r, a) {
258
+ if (D(e, "tabs", t, a), E(e.gap, t, a), !Array.isArray(e.tabs)) {
256
259
  a.issues.push(n(`${t}.tabs`, "children_not_array"));
257
260
  return;
258
261
  }
@@ -267,28 +270,28 @@ function N(e, t, r, a) {
267
270
  a.issues.push(n(o, "tab_malformed"));
268
271
  continue;
269
272
  }
270
- I(s.id, o, a), typeof s.label != "string" && a.issues.push(n(`${o}.label`, "tab_malformed")), F(s.children, `${o}.children`, r, a);
273
+ L(s.id, o, a), typeof s.label != "string" && a.issues.push(n(`${o}.label`, "tab_malformed")), I(s.children, `${o}.children`, r, a);
271
274
  }
272
275
  }
273
- function P(t, r, a, o) {
274
- t.variant !== "table" && t.variant !== "stack" && (t.variant = "stack");
276
+ function F(t, r, a, o) {
277
+ t.variant !== "table" && t.variant !== "stack" && o.issues.push(n(`${r}.variant`, "subform_variant_invalid"));
275
278
  let s = typeof t.key == "string" && t.key.length > 0;
276
- s ? L(t.key, a, r, o) : o.issues.push(n(`${r}.key`, "key_required", { type: "subform" })), T(t.gap, r, o), t.minRows !== void 0 && !M(t.minRows) && o.issues.push(n(`${r}.minRows`, "rows_bound_invalid")), t.maxRows !== void 0 && !M(t.maxRows) && o.issues.push(n(`${r}.maxRows`, "rows_bound_invalid")), typeof t.minRows == "number" && typeof t.maxRows == "number" && t.minRows > t.maxRows && o.issues.push(n(`${r}.minRows`, "rows_bound_invalid"));
279
+ s ? R(t.key, a, r, o) : o.issues.push(n(`${r}.key`, "key_required", { type: "subform" })), E(t.gap, r, o), t.minRows !== void 0 && !N(t.minRows) && o.issues.push(n(`${r}.minRows`, "rows_bound_invalid")), t.maxRows !== void 0 && !N(t.maxRows) && o.issues.push(n(`${r}.maxRows`, "rows_bound_invalid")), typeof t.minRows == "number" && typeof t.maxRows == "number" && t.minRows > t.maxRows && o.issues.push(n(`${r}.minRows`, "rows_bound_invalid"));
277
280
  let c = s ? [...a, t.key] : a;
278
- if (F(t.template, `${r}.template`, c, o), t.variant === "table" && Array.isArray(t.template)) for (let [a, s] of t.template.entries()) {
281
+ if (I(t.template, `${r}.template`, c, o), t.variant === "table" && Array.isArray(t.template)) for (let [a, s] of t.template.entries()) {
279
282
  let t = i(s) ? s.type : void 0, c = typeof t == "string" && e.includes(t), l = i(s) && typeof s.key == "string" && s.key.length > 0;
280
283
  (c || !l) && o.issues.push(n(`${r}.template[${a}]`, "subform_table_column"));
281
284
  }
282
285
  }
283
- function F(e, t, r, i) {
286
+ function I(e, t, r, i) {
284
287
  if (!Array.isArray(e)) {
285
288
  i.issues.push(n(t, "children_not_array"));
286
289
  return;
287
290
  }
288
291
  let a = e;
289
- for (let [e, n] of a.entries()) _(n, `${t}[${e}]`, r, i);
292
+ for (let [e, n] of a.entries()) v(n, `${t}[${e}]`, r, i);
290
293
  }
291
- function I(e, t, r) {
294
+ function L(e, t, r) {
292
295
  if (typeof e != "string" || e.length === 0) {
293
296
  r.issues.push(n(`${t}.id`, "id_required"));
294
297
  return;
@@ -299,15 +302,15 @@ function I(e, t, r) {
299
302
  }
300
303
  r.seenIds.add(e);
301
304
  }
302
- function L(e, t, r, i) {
305
+ function R(e, t, r, i) {
303
306
  s.test(e) || i.issues.push(n(`${r}.key`, "key_invalid_charset", { key: e }));
304
307
  let a = t.join("/"), o = i.keysByScope.get(a) ?? /* @__PURE__ */ new Set();
305
308
  o.has(e) ? i.issues.push(n(`${r}.key`, "duplicate_key", { key: e })) : o.add(e), i.keysByScope.set(a, o);
306
309
  }
307
- function R(e, t, r) {
308
- e !== void 0 && (typeof e != "number" || !Number.isInteger(e) || e < 1 || e > 24) && r.issues.push(n(`${t}.span`, "span_invalid", { max: 24 }));
309
- }
310
310
  function z(e, t, r) {
311
+ e !== void 0 && (typeof e != "number" || !Number.isSafeInteger(e) || e < 1 || e > 24) && r.issues.push(n(`${t}.span`, "span_invalid", { max: 24 }));
312
+ }
313
+ function B(e, t, r) {
311
314
  if (e !== void 0) {
312
315
  if (!i(e)) {
313
316
  r.issues.push(n(`${t}.flex`, "flex_invalid"));
@@ -316,7 +319,7 @@ function z(e, t, r) {
316
319
  e.grow !== void 0 && (typeof e.grow != "number" || e.grow < 0) && r.issues.push(n(`${t}.flex.grow`, "flex_invalid")), e.shrink !== void 0 && (typeof e.shrink != "number" || e.shrink < 0) && r.issues.push(n(`${t}.flex.shrink`, "flex_invalid")), e.basis !== void 0 && typeof e.basis != "string" && r.issues.push(n(`${t}.flex.basis`, "flex_invalid"));
317
320
  }
318
321
  }
319
- function B(e, t, r) {
322
+ function V(e, t, r) {
320
323
  e !== void 0 && (typeof e != "number" || !Number.isFinite(e) || e <= 0) && r.issues.push(n(`${t}.columnWidth`, "column_width_invalid"));
321
324
  }
322
325
  //#endregion
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/form-editor v2.5.0 made by Venus | 2026-06-25T04:03:24.761Z */
1
+ /*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
2
2
  import { CONTAINER_TYPES as e } from "../../types/schema.js";
3
3
  import { bodyScopeKey as t, containerBodies as n } from "./nodes.js";
4
4
  import { isShallowEqual as r } from "@vef-framework-react/shared";
@@ -100,4 +100,4 @@ function x(e, t) {
100
100
  }
101
101
  }
102
102
  //#endregion
103
- export { y as containsNode, p as countFields, g as findField, h as findNode, x as findNodeWithParentContainer, b as findParentContainer, _ as findScope, a as isContainerNode, o as isLeafField, c as isRootScope, l as nodeLabel, s as scopeEquals, f as walkFields, d as walkNodes };
103
+ export { v as collectNodeIds, y as containsNode, p as countFields, g as findField, h as findNode, x as findNodeWithParentContainer, b as findParentContainer, _ as findScope, a as isContainerNode, o as isLeafField, c as isRootScope, l as nodeLabel, s as scopeEquals, f as walkFields, d as walkNodes };
@@ -1,7 +1,7 @@
1
- /*! @vef-framework-react/form-editor v2.5.0 made by Venus | 2026-06-25T04:03:24.761Z */
1
+ /*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
2
2
  import { isPlainObject as e } from "@vef-framework-react/shared";
3
3
  //#region src/engine/validation.ts
4
- var t = new Set([
4
+ var t = /* @__PURE__ */ new Set([
5
5
  "data_source_ref_unknown",
6
6
  "request_incomplete",
7
7
  "condition_group_empty",
@@ -32,6 +32,7 @@ var t = new Set([
32
32
  column_width_invalid: "columnWidth 必须为正数(表格子表单列的固定像素宽度)",
33
33
  gap_invalid: "间距取值非法(需为预设档位或非负整数)",
34
34
  variant_invalid: "variant 必须为 \"card\" 或 \"collapse\"",
35
+ subform_variant_invalid: "variant 必须为 \"stack\" 或 \"table\"",
35
36
  title_invalid: "title 必须为字符串",
36
37
  rows_bound_invalid: "行数限制无效:minRows / maxRows 须为非负整数且 minRows ≤ maxRows",
37
38
  subform_table_column: "表格子表单的列必须是绑定字段(不能是容器或展示 / 按钮类组件)",
@@ -89,7 +90,7 @@ var t = new Set([
89
90
  cycle_detected: "联动规则存在循环依赖:{cycle}"
90
91
  };
91
92
  function i(e) {
92
- return e in r;
93
+ return Object.hasOwn(r, e);
93
94
  }
94
95
  function a(e, t) {
95
96
  if (!i(e)) return n[e];
@@ -99,25 +100,28 @@ function a(e, t) {
99
100
  function o(e, t) {
100
101
  return a(e, t);
101
102
  }
102
- function s(e, n, r, i) {
103
+ function s(e) {
104
+ return e.path.length > 0 ? `${e.path}:${e.message}` : e.message;
105
+ }
106
+ function c(e, n, r, i) {
103
107
  return {
104
108
  path: e,
105
109
  code: n,
106
110
  severity: t.has(n) ? "warning" : "error",
107
111
  message: a(n, r),
108
- ...i === void 0 ? {} : { ruleId: i }
112
+ ...i !== void 0 && { ruleId: i }
109
113
  };
110
114
  }
111
- function c(e) {
115
+ function l(e) {
112
116
  return e.some((e) => e.severity === "error");
113
117
  }
114
- function l(t) {
118
+ function u(t) {
115
119
  return e(t);
116
120
  }
117
- function u(e, t, n) {
118
- if (!l(e)) return [s(t, "request_malformed", void 0, n)];
121
+ function d(e, t, n) {
122
+ if (!u(e)) return [c(t, "request_malformed", void 0, n)];
119
123
  let r = [], { action: i, resource: a } = e;
120
- return typeof a == "string" ? a.length === 0 && r.push(s(`${t}.resource`, "request_incomplete", void 0, n)) : r.push(s(`${t}.resource`, "request_malformed", void 0, n)), typeof i == "string" ? i.length === 0 && r.push(s(`${t}.action`, "request_incomplete", void 0, n)) : r.push(s(`${t}.action`, "request_malformed", void 0, n)), r;
124
+ return typeof a == "string" ? a.length === 0 && r.push(c(`${t}.resource`, "request_incomplete", void 0, n)) : r.push(c(`${t}.resource`, "request_malformed", void 0, n)), typeof i == "string" ? i.length === 0 && r.push(c(`${t}.action`, "request_incomplete", void 0, n)) : r.push(c(`${t}.action`, "request_malformed", void 0, n)), r;
121
125
  }
122
126
  //#endregion
123
- export { s as createIssue, o as formatIssueMessage, c as hasErrorIssues, l as isRecord, u as validateRemoteRequest };
127
+ export { c as createIssue, s as formatIssueLine, o as formatIssueMessage, l as hasErrorIssues, u as isRecord, d as validateRemoteRequest };
package/dist/es/icons.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/form-editor v2.5.0 made by Venus | 2026-06-25T04:03:24.761Z */
1
+ /*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
2
2
  import { jsx as e } from "@emotion/react/jsx-runtime";
3
3
  import { DynamicIcon as t, Icon as n } from "@vef-framework-react/components";
4
4
  import { BracesIcon as r, CalendarIcon as i, CalendarRangeIcon as a, ChevronDownIcon as o, ChevronRightIcon as s, ChevronUpIcon as c, CircleDotIcon as l, CircleHelpIcon as u, CircleXIcon as d, ClipboardListIcon as f, ClockIcon as p, Code2Icon as m, CodeIcon as h, CopyIcon as g, DatabaseIcon as _, DownloadIcon as v, EllipsisIcon as y, EyeIcon as b, FolderPlusIcon as x, GitBranchIcon as S, GripVerticalIcon as C, HashIcon as w, InfoIcon as T, LayoutGridIcon as E, LayoutListIcon as D, LayoutPanelTopIcon as O, Link2Icon as ee, ListChecksIcon as k, ListTreeIcon as A, MinusIcon as j, MonitorIcon as M, MousePointer2Icon as N, MousePointerClickIcon as P, PaletteIcon as F, PilcrowIcon as I, PlusIcon as L, Redo2Icon as R, RocketIcon as z, SearchIcon as B, Settings2Icon as V, ShieldCheckIcon as H, SlidersHorizontalIcon as U, SmartphoneIcon as W, SquareIcon as G, SquarePenIcon as K, StretchHorizontalIcon as q, TableIcon as J, TextIcon as Y, ToggleLeftIcon as X, Trash2Icon as Z, TriangleAlertIcon as Q, TypeIcon as $, Undo2Icon as te, UploadIcon as ne, XIcon as re } from "lucide-react";
package/dist/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/form-editor v2.5.0 made by Venus | 2026-06-25T04:03:24.761Z */
1
+ /*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
2
2
  import { defineContainerDefinition as e, defineFieldDefinition as t } from "./types/component.js";
3
3
  import { noopDataSourceResolver as n } from "./types/data-source.js";
4
4
  import { definePropertyEntry as r } from "./types/properties.js";
@@ -50,5 +50,6 @@ import { SelectEntry as Ye } from "./editor/properties/entries/select-entry.js";
50
50
  import { TextEntry as Xe } from "./editor/properties/entries/text-entry.js";
51
51
  import { Toolbar as Ze } from "./editor/toolbar/toolbar.js";
52
52
  import { FormEditor as Qe, FormEditorProvider as $e, FormEditorShell as et, FormEditorStage as tt, FormEditorWorkspace as nt } from "./editor/form-editor.js";
53
- import { toFormFieldDefinitions as rt } from "./engine/schema/permission-bridge.js";
54
- export { xe as ALERT_LEVELS, i as CONTAINER_TYPES, We as CheckboxEntry, Be as ConversionRegistry, a as DEFAULT_GAP_SCALE, l as DataSourceProvider, z as DeviceProvider, Se as EFFECT_ACTION_TYPES, Ce as FIELD_EVENT_TRIGGER_KINDS, we as FIELD_TRIGGER_KINDS, Te as FORM_TRIGGER_KINDS, f as FieldShell, Qe as FormEditor, $e as FormEditorProvider, et as FormEditorShell, tt as FormEditorStage, Pe as FormEditorStoreProvider, Ze as FormEditorToolbar, nt as FormEditorWorkspace, F as FormFieldRegistry, ze as FormRenderer, o as GAP_SCALES, Ge as IconEntry, Ee as KEYED_ONLY_ACTIONS, Ke as KeyEntry, De as LINKAGE_ACTION_TYPES, be as LINKAGE_OPERATORS, d as Label, Ue as LinkageRulesEntry, qe as NumberEntry, Je as OptionsSourceEntry, s as ROW_COLS, B as RegistryProvider, Oe as STATE_ACTION_TYPES, Ye as SelectEntry, Xe as TextEntry, w as alertBlockDefinition, c as buttonDefinition, p as checkboxGroupFieldDefinition, ae as cloneBlock, m as codeEditorDefinition, Ve as convertPresentation, He as createDefaultConversionRules, R as createDefaultMobileRegistry, I as createDefaultRegistry, U as createEmptySchema, h as createId, ue as currentLayer, x as dateFieldDefinition, S as dateRangeFieldDefinition, C as datetimeFieldDefinition, ge as defaultEvaluateAssignExpression, _e as defaultEvaluateExpression, ve as defaultEvaluateScriptAction, e as defineContainerDefinition, t as defineFieldDefinition, r as definePropertyEntry, T as dividerDefinition, ne as editField, de as emptyLayer, W as findField, G as findNode, K as findParentContainer, g as flexDefinition, he as formatIssueMessage, Z as generateUniqueKey, _ as gridDefinition, oe as insertBlock, q as isContainerNode, ke as isEffectAction, Ae as isFieldEventTriggerKind, Q as isKeyedField, $ as isKeyedNode, J as isLeafField, Fe as isPaletteVisible, je as isStateAction, P as mobileFieldDefinitions, se as moveBlock, ee as nextUniqueKey, n as noopDataSourceResolver, D as numberFieldDefinition, E as paragraphDefinition, O as radioFieldDefinition, L as registerDefaults, re as removeBlock, ye as resolveLinkageEvaluators, fe as resolvePresentation, te as sanitizeKey, v as sectionDefinition, k as selectFieldDefinition, ce as setFlex, le as setSpan, y as subformDefinition, A as switchFieldDefinition, b as tabsDefinition, j as textareaFieldDefinition, M as textfieldDefinition, rt as toFormFieldDefinitions, pe as toRuntimeSchema, ie as updateNode, Ie as useCurrentLayer, V as useDeviceRegistries, u as useFieldOptions, H as useFieldRegistry, Le as useFormEditorStore, Re as useFormEditorStoreApi, N as useMobileScopeContainer, Me as validateLinkageSchema, Ne as validateSchema, Y as walkFields, X as walkNodes, me as withPresentation };
53
+ import { inferColumnType as rt, toColumnDefinitions as it } from "./engine/schema/column-type.js";
54
+ import { toFormFieldDefinitions as at } from "./engine/schema/permission-bridge.js";
55
+ export { xe as ALERT_LEVELS, i as CONTAINER_TYPES, We as CheckboxEntry, Be as ConversionRegistry, a as DEFAULT_GAP_SCALE, l as DataSourceProvider, z as DeviceProvider, Se as EFFECT_ACTION_TYPES, Ce as FIELD_EVENT_TRIGGER_KINDS, we as FIELD_TRIGGER_KINDS, Te as FORM_TRIGGER_KINDS, f as FieldShell, Qe as FormEditor, $e as FormEditorProvider, et as FormEditorShell, tt as FormEditorStage, Pe as FormEditorStoreProvider, Ze as FormEditorToolbar, nt as FormEditorWorkspace, F as FormFieldRegistry, ze as FormRenderer, o as GAP_SCALES, Ge as IconEntry, Ee as KEYED_ONLY_ACTIONS, Ke as KeyEntry, De as LINKAGE_ACTION_TYPES, be as LINKAGE_OPERATORS, d as Label, Ue as LinkageRulesEntry, qe as NumberEntry, Je as OptionsSourceEntry, s as ROW_COLS, B as RegistryProvider, Oe as STATE_ACTION_TYPES, Ye as SelectEntry, Xe as TextEntry, w as alertBlockDefinition, c as buttonDefinition, p as checkboxGroupFieldDefinition, ae as cloneBlock, m as codeEditorDefinition, Ve as convertPresentation, He as createDefaultConversionRules, R as createDefaultMobileRegistry, I as createDefaultRegistry, U as createEmptySchema, h as createId, ue as currentLayer, x as dateFieldDefinition, S as dateRangeFieldDefinition, C as datetimeFieldDefinition, ge as defaultEvaluateAssignExpression, _e as defaultEvaluateExpression, ve as defaultEvaluateScriptAction, e as defineContainerDefinition, t as defineFieldDefinition, r as definePropertyEntry, T as dividerDefinition, ne as editField, de as emptyLayer, W as findField, G as findNode, K as findParentContainer, g as flexDefinition, he as formatIssueMessage, Z as generateUniqueKey, _ as gridDefinition, rt as inferColumnType, oe as insertBlock, q as isContainerNode, ke as isEffectAction, Ae as isFieldEventTriggerKind, Q as isKeyedField, $ as isKeyedNode, J as isLeafField, Fe as isPaletteVisible, je as isStateAction, P as mobileFieldDefinitions, se as moveBlock, ee as nextUniqueKey, n as noopDataSourceResolver, D as numberFieldDefinition, E as paragraphDefinition, O as radioFieldDefinition, L as registerDefaults, re as removeBlock, ye as resolveLinkageEvaluators, fe as resolvePresentation, te as sanitizeKey, v as sectionDefinition, k as selectFieldDefinition, ce as setFlex, le as setSpan, y as subformDefinition, A as switchFieldDefinition, b as tabsDefinition, j as textareaFieldDefinition, M as textfieldDefinition, it as toColumnDefinitions, at as toFormFieldDefinitions, pe as toRuntimeSchema, ie as updateNode, Ie as useCurrentLayer, V as useDeviceRegistries, u as useFieldOptions, H as useFieldRegistry, Le as useFormEditorStore, Re as useFormEditorStoreApi, N as useMobileScopeContainer, Me as validateLinkageSchema, Ne as validateSchema, Y as walkFields, X as walkNodes, me as withPresentation };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/form-editor v2.5.0 made by Venus | 2026-06-25T04:03:24.761Z */
1
+ /*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
2
2
  import { EditorIcon as e } from "../../icons.js";
3
3
  import { SECTION_PANEL_KEY as t, subformBodyCss as n, subformRemoveCss as r, subformRowBodyCss as i, subformRowCss as a } from "./subform-shell.js";
4
4
  import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/form-editor v2.5.0 made by Venus | 2026-06-25T04:03:24.761Z */
1
+ /*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
2
2
  import { EditorIcon as e } from "../../icons.js";
3
3
  import { SECTION_PANEL_KEY as t, subformBodyCss as n, subformRemoveCss as r, subformRowBodyCss as i, subformRowCss as a } from "./subform-shell.js";
4
4
  import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/form-editor v2.5.0 made by Venus | 2026-06-25T04:03:24.761Z */
1
+ /*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
2
2
  import { css as e } from "@emotion/react";
3
3
  import { globalCssVars as t } from "@vef-framework-react/components";
4
4
  //#region src/render/chrome/subform-shell.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/form-editor v2.5.0 made by Venus | 2026-06-25T04:03:24.761Z */
1
+ /*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
2
2
  //#region src/render/flex-style.ts
3
3
  var e = {
4
4
  start: "flex-start",
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/form-editor v2.5.0 made by Venus | 2026-06-25T04:03:24.761Z */
1
+ /*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
2
2
  import { useFieldRegistry as e } from "../store/engine-provider.js";
3
3
  import { isKeyedField as t } from "../engine/keys.js";
4
4
  import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";