@vef-framework-react/form-editor 2.4.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 (483) hide show
  1. package/dist/cjs/_internal/_rolldown/runtime.cjs +1 -0
  2. package/dist/cjs/components/button/index.cjs +1 -0
  3. package/dist/cjs/components/checkbox-group-field/index.cjs +1 -0
  4. package/dist/cjs/components/code-editor/code-editor-input.cjs +1 -0
  5. package/dist/cjs/components/code-editor/index.cjs +1 -0
  6. package/dist/cjs/components/containers/index.cjs +1 -0
  7. package/dist/cjs/components/date-field/index.cjs +1 -0
  8. package/dist/cjs/components/display/index.cjs +1 -0
  9. package/dist/cjs/components/field-entries.cjs +1 -0
  10. package/dist/cjs/components/mobile/alert-block.cjs +1 -0
  11. package/dist/cjs/components/mobile/button.cjs +1 -0
  12. package/dist/cjs/components/mobile/checkbox-group.cjs +1 -0
  13. package/dist/cjs/components/mobile/date-adapters.cjs +1 -0
  14. package/dist/cjs/components/mobile/date.cjs +1 -0
  15. package/dist/cjs/components/mobile/daterange.cjs +1 -0
  16. package/dist/cjs/components/mobile/datetime.cjs +1 -0
  17. package/dist/cjs/components/mobile/definitions.cjs +1 -0
  18. package/dist/cjs/components/mobile/divider.cjs +1 -0
  19. package/dist/cjs/components/mobile/input-cell.cjs +1 -0
  20. package/dist/cjs/components/mobile/number.cjs +1 -0
  21. package/dist/cjs/components/mobile/option-group.cjs +1 -0
  22. package/dist/cjs/components/mobile/paragraph.cjs +1 -0
  23. package/dist/cjs/components/mobile/picker-trigger.cjs +1 -0
  24. package/dist/cjs/components/mobile/radio.cjs +1 -0
  25. package/dist/cjs/components/mobile/scope.cjs +1 -0
  26. package/dist/cjs/components/mobile/select.cjs +1 -0
  27. package/dist/cjs/components/mobile/switch.cjs +1 -0
  28. package/dist/cjs/components/mobile/textarea.cjs +1 -0
  29. package/dist/cjs/components/mobile/textfield.cjs +1 -0
  30. package/dist/cjs/components/mobile/theme.cjs +1 -0
  31. package/dist/cjs/components/number-field/index.cjs +1 -0
  32. package/dist/cjs/components/radio-field/index.cjs +1 -0
  33. package/dist/cjs/components/select-field/index.cjs +1 -0
  34. package/dist/cjs/components/switch-field/index.cjs +1 -0
  35. package/dist/cjs/components/textarea-field/index.cjs +1 -0
  36. package/dist/cjs/components/textfield/index.cjs +1 -0
  37. package/dist/cjs/editor/canvas/canvas-field.cjs +1 -0
  38. package/dist/cjs/editor/canvas/canvas.cjs +1 -0
  39. package/dist/cjs/editor/canvas/drop-indicator.cjs +1 -0
  40. package/dist/cjs/editor/canvas/drop-zones.cjs +1 -0
  41. package/dist/cjs/editor/canvas/json-split-view.cjs +1 -0
  42. package/dist/cjs/editor/canvas/mobile-seed-state.cjs +2 -0
  43. package/dist/cjs/editor/canvas/phone-frame.cjs +1 -0
  44. package/dist/cjs/editor/dnd.cjs +1 -0
  45. package/dist/cjs/editor/editor-layout-context.cjs +1 -0
  46. package/dist/cjs/editor/footer/footer.cjs +1 -0
  47. package/dist/cjs/editor/form-config/form-basics-tab.cjs +1 -0
  48. package/dist/cjs/editor/form-config/form-config-drawer.cjs +1 -0
  49. package/dist/cjs/editor/form-config/outline-tab.cjs +1 -0
  50. package/dist/cjs/editor/form-editor.cjs +1 -0
  51. package/dist/cjs/editor/palette/field-groups.cjs +1 -0
  52. package/dist/cjs/editor/palette/palette-group.cjs +1 -0
  53. package/dist/cjs/editor/palette/palette-item.cjs +1 -0
  54. package/dist/cjs/editor/palette/palette-panel.cjs +1 -0
  55. package/dist/cjs/editor/preview-effects.cjs +1 -0
  56. package/dist/cjs/editor/preview-runtime-context.cjs +1 -0
  57. package/dist/cjs/editor/properties/block-layout-section.cjs +1 -0
  58. package/dist/cjs/editor/properties/container-properties.cjs +1 -0
  59. package/dist/cjs/editor/properties/entries/built-ins.cjs +1 -0
  60. package/dist/cjs/editor/properties/entries/checkbox-entry.cjs +1 -0
  61. package/dist/cjs/editor/properties/entries/coerce.cjs +1 -0
  62. package/dist/cjs/editor/properties/entries/entry-field.cjs +1 -0
  63. package/dist/cjs/editor/properties/entries/icon-entry.cjs +1 -0
  64. package/dist/cjs/editor/properties/entries/index.cjs +1 -0
  65. package/dist/cjs/editor/properties/entries/key-entry.cjs +1 -0
  66. package/dist/cjs/editor/properties/entries/linkage/action-editor.cjs +2 -0
  67. package/dist/cjs/editor/properties/entries/linkage/actions-editor.cjs +1 -0
  68. package/dist/cjs/editor/properties/entries/linkage/condition-editor.cjs +1 -0
  69. package/dist/cjs/editor/properties/entries/linkage/container-linkage-section.cjs +1 -0
  70. package/dist/cjs/editor/properties/entries/linkage/expression-assist.cjs +1 -0
  71. package/dist/cjs/editor/properties/entries/linkage/index.cjs +1 -0
  72. package/dist/cjs/editor/properties/entries/linkage/linkage-rules-entry.cjs +1 -0
  73. package/dist/cjs/editor/properties/entries/linkage/mutators.cjs +1 -0
  74. package/dist/cjs/editor/properties/entries/linkage/options.cjs +1 -0
  75. package/dist/cjs/editor/properties/entries/linkage/rule-diagnostics.cjs +1 -0
  76. package/dist/cjs/editor/properties/entries/linkage/rule-list-editor.cjs +1 -0
  77. package/dist/cjs/editor/properties/entries/linkage/styles.cjs +1 -0
  78. package/dist/cjs/editor/properties/entries/linkage/trigger-editor.cjs +1 -0
  79. package/dist/cjs/editor/properties/entries/linkage/use-linkage-editor-model.cjs +1 -0
  80. package/dist/cjs/editor/properties/entries/linkage/use-stable-options.cjs +1 -0
  81. package/dist/cjs/editor/properties/entries/number-entry.cjs +1 -0
  82. package/dist/cjs/editor/properties/entries/options-source/index.cjs +1 -0
  83. package/dist/cjs/editor/properties/entries/options-source/source-mutators.cjs +1 -0
  84. package/dist/cjs/editor/properties/entries/select-entry.cjs +1 -0
  85. package/dist/cjs/editor/properties/entries/text-entry.cjs +1 -0
  86. package/dist/cjs/editor/properties/form-data-sources-panel.cjs +1 -0
  87. package/dist/cjs/editor/properties/form-linkage-panel.cjs +1 -0
  88. package/dist/cjs/editor/properties/form-variables-panel.cjs +1 -0
  89. package/dist/cjs/editor/properties/option-editors.cjs +1 -0
  90. package/dist/cjs/editor/properties/panel-header.cjs +1 -0
  91. package/dist/cjs/editor/properties/properties-empty.cjs +1 -0
  92. package/dist/cjs/editor/properties/properties-header.cjs +1 -0
  93. package/dist/cjs/editor/properties/properties-panel.cjs +1 -0
  94. package/dist/cjs/editor/properties/properties-provider.cjs +1 -0
  95. package/dist/cjs/editor/properties/properties-tabs.cjs +1 -0
  96. package/dist/cjs/editor/properties/use-confirmable-kind-switch.cjs +1 -0
  97. package/dist/cjs/editor/remove-node-confirm.cjs +1 -0
  98. package/dist/cjs/editor/schema-apply.cjs +2 -0
  99. package/dist/cjs/editor/styles.cjs +1 -0
  100. package/dist/cjs/editor/toolbar/notify.cjs +1 -0
  101. package/dist/cjs/editor/toolbar/schema-io.cjs +1 -0
  102. package/dist/cjs/editor/toolbar/toolbar.cjs +1 -0
  103. package/dist/cjs/editor/use-editor-shortcuts.cjs +1 -0
  104. package/dist/cjs/editor/validation-summary.cjs +1 -0
  105. package/dist/cjs/engine/assert-never.cjs +1 -0
  106. package/dist/cjs/engine/conversion/index.cjs +1 -0
  107. package/dist/cjs/engine/ids.cjs +1 -0
  108. package/dist/cjs/engine/keys.cjs +1 -0
  109. package/dist/cjs/engine/linkage/cycle.cjs +1 -0
  110. package/dist/cjs/engine/linkage/default-evaluator.cjs +1 -0
  111. package/dist/cjs/engine/linkage/effects.cjs +1 -0
  112. package/dist/cjs/engine/linkage/evaluator.cjs +1 -0
  113. package/dist/cjs/engine/linkage/index.cjs +1 -0
  114. package/dist/cjs/engine/linkage/operators.cjs +1 -0
  115. package/dist/cjs/engine/linkage/source-tracking.cjs +1 -0
  116. package/dist/cjs/engine/linkage/taxonomy.cjs +1 -0
  117. package/dist/cjs/engine/linkage/validator.cjs +1 -0
  118. package/dist/cjs/engine/registry/defaults-mobile.cjs +1 -0
  119. package/dist/cjs/engine/registry/defaults.cjs +1 -0
  120. package/dist/cjs/engine/registry/form-field-registry.cjs +1 -0
  121. package/dist/cjs/engine/schema/edit-ops.cjs +1 -0
  122. package/dist/cjs/engine/schema/mutate.cjs +1 -0
  123. package/dist/cjs/engine/schema/nodes.cjs +1 -0
  124. package/dist/cjs/engine/schema/permission-bridge.cjs +1 -0
  125. package/dist/cjs/engine/schema/presentation.cjs +1 -0
  126. package/dist/cjs/engine/schema/reconcile.cjs +1 -0
  127. package/dist/cjs/engine/schema/removal-impact.cjs +1 -0
  128. package/dist/cjs/engine/schema/rewrite.cjs +1 -0
  129. package/dist/cjs/engine/schema/validate.cjs +1 -0
  130. package/dist/cjs/engine/schema/walk.cjs +1 -0
  131. package/dist/cjs/engine/validation.cjs +1 -0
  132. package/dist/cjs/icons.cjs +1 -0
  133. package/dist/cjs/index.cjs +1 -0
  134. package/dist/cjs/render/chrome/mobile-chrome.cjs +1 -0
  135. package/dist/cjs/render/chrome/pc-chrome.cjs +1 -0
  136. package/dist/cjs/render/chrome/subform-shell.cjs +1 -0
  137. package/dist/cjs/render/data-source-context.cjs +0 -0
  138. package/dist/cjs/render/flex-style.cjs +1 -0
  139. package/dist/cjs/render/form-field.cjs +1 -0
  140. package/dist/cjs/render/form-renderer.cjs +1 -0
  141. package/dist/cjs/render/grid-style.cjs +1 -0
  142. package/dist/cjs/render/parts/field-shell.cjs +1 -0
  143. package/dist/cjs/render/parts/label.cjs +1 -0
  144. package/dist/cjs/render/parts/options-status.cjs +1 -0
  145. package/dist/cjs/render/stack-style.cjs +1 -0
  146. package/dist/cjs/render/subform-columns.cjs +1 -0
  147. package/dist/cjs/render/submit.cjs +1 -0
  148. package/dist/cjs/runtime/effects.cjs +1 -0
  149. package/dist/cjs/runtime/resolve-scope-values.cjs +1 -0
  150. package/dist/cjs/runtime/runtime-context.cjs +1 -0
  151. package/dist/cjs/runtime/runtime-state-controller.cjs +1 -0
  152. package/dist/cjs/runtime/stabilize-state-map.cjs +1 -0
  153. package/dist/cjs/store/engine-provider.cjs +1 -0
  154. package/dist/cjs/store/form-store.cjs +1 -0
  155. package/dist/cjs/types/chrome.cjs +0 -0
  156. package/dist/cjs/types/component.cjs +1 -0
  157. package/dist/cjs/types/data-source.cjs +1 -0
  158. package/dist/cjs/types/index.cjs +1 -0
  159. package/dist/cjs/types/linkage.cjs +0 -0
  160. package/dist/cjs/types/properties.cjs +1 -0
  161. package/dist/cjs/types/schema.cjs +1 -0
  162. package/dist/es/components/button/index.js +183 -0
  163. package/dist/es/components/checkbox-group-field/index.js +103 -0
  164. package/dist/es/components/code-editor/code-editor-input.js +3 -0
  165. package/dist/es/components/code-editor/index.js +212 -0
  166. package/dist/es/components/containers/index.js +72 -0
  167. package/dist/es/components/date-field/index.js +197 -0
  168. package/dist/es/components/display/index.js +276 -0
  169. package/dist/es/components/field-entries.js +184 -0
  170. package/dist/es/components/mobile/alert-block.js +40 -0
  171. package/dist/es/components/mobile/button.js +41 -0
  172. package/dist/es/components/mobile/checkbox-group.js +35 -0
  173. package/dist/es/components/mobile/date-adapters.js +16 -0
  174. package/dist/es/components/mobile/date.js +42 -0
  175. package/dist/es/components/mobile/daterange.js +48 -0
  176. package/dist/es/components/mobile/datetime.js +42 -0
  177. package/dist/es/components/mobile/definitions.js +58 -0
  178. package/dist/es/components/mobile/divider.js +10 -0
  179. package/dist/es/components/mobile/input-cell.js +56 -0
  180. package/dist/es/components/mobile/number.js +73 -0
  181. package/dist/es/components/mobile/option-group.js +34 -0
  182. package/dist/es/components/mobile/paragraph.js +30 -0
  183. package/dist/es/components/mobile/picker-trigger.js +94 -0
  184. package/dist/es/components/mobile/radio.js +35 -0
  185. package/dist/es/components/mobile/scope.js +61 -0
  186. package/dist/es/components/mobile/select.js +45 -0
  187. package/dist/es/components/mobile/switch.js +22 -0
  188. package/dist/es/components/mobile/textarea.js +32 -0
  189. package/dist/es/components/mobile/textfield.js +30 -0
  190. package/dist/es/components/mobile/theme.js +8 -0
  191. package/dist/es/components/number-field/index.js +186 -0
  192. package/dist/es/components/radio-field/index.js +139 -0
  193. package/dist/es/components/select-field/index.js +128 -0
  194. package/dist/es/components/switch-field/index.js +133 -0
  195. package/dist/es/components/textarea-field/index.js +137 -0
  196. package/dist/es/components/textfield/index.js +138 -0
  197. package/dist/es/editor/canvas/canvas-field.js +202 -0
  198. package/dist/es/editor/canvas/canvas.js +415 -0
  199. package/dist/es/editor/canvas/drop-indicator.js +42 -0
  200. package/dist/es/editor/canvas/drop-zones.js +42 -0
  201. package/dist/es/editor/canvas/json-split-view.js +148 -0
  202. package/dist/es/editor/canvas/mobile-seed-state.js +103 -0
  203. package/dist/es/editor/canvas/phone-frame.js +109 -0
  204. package/dist/es/editor/dnd.js +75 -0
  205. package/dist/es/editor/editor-layout-context.js +34 -0
  206. package/dist/es/editor/footer/footer.js +154 -0
  207. package/dist/es/editor/form-config/form-basics-tab.js +184 -0
  208. package/dist/es/editor/form-config/form-config-drawer.js +224 -0
  209. package/dist/es/editor/form-config/outline-tab.js +132 -0
  210. package/dist/es/editor/form-editor.js +179 -0
  211. package/dist/es/editor/palette/field-groups.js +19 -0
  212. package/dist/es/editor/palette/palette-group.js +147 -0
  213. package/dist/es/editor/palette/palette-item.js +153 -0
  214. package/dist/es/editor/palette/palette-panel.js +109 -0
  215. package/dist/es/editor/preview-effects.js +22 -0
  216. package/dist/es/editor/preview-runtime-context.js +24 -0
  217. package/dist/es/editor/properties/block-layout-section.js +161 -0
  218. package/dist/es/editor/properties/container-properties.js +575 -0
  219. package/dist/es/editor/properties/entries/built-ins.js +21 -0
  220. package/dist/es/editor/properties/entries/checkbox-entry.js +31 -0
  221. package/dist/es/editor/properties/entries/coerce.js +8 -0
  222. package/dist/es/editor/properties/entries/entry-field.js +43 -0
  223. package/dist/es/editor/properties/entries/icon-entry.js +21 -0
  224. package/dist/es/editor/properties/entries/index.js +9 -0
  225. package/dist/es/editor/properties/entries/key-entry.js +29 -0
  226. package/dist/es/editor/properties/entries/linkage/action-editor.js +260 -0
  227. package/dist/es/editor/properties/entries/linkage/actions-editor.js +64 -0
  228. package/dist/es/editor/properties/entries/linkage/condition-editor.js +265 -0
  229. package/dist/es/editor/properties/entries/linkage/container-linkage-section.js +71 -0
  230. package/dist/es/editor/properties/entries/linkage/expression-assist.js +87 -0
  231. package/dist/es/editor/properties/entries/linkage/index.js +3 -0
  232. package/dist/es/editor/properties/entries/linkage/linkage-rules-entry.js +110 -0
  233. package/dist/es/editor/properties/entries/linkage/mutators.js +209 -0
  234. package/dist/es/editor/properties/entries/linkage/options.js +155 -0
  235. package/dist/es/editor/properties/entries/linkage/rule-diagnostics.js +58 -0
  236. package/dist/es/editor/properties/entries/linkage/rule-list-editor.js +126 -0
  237. package/dist/es/editor/properties/entries/linkage/styles.js +276 -0
  238. package/dist/es/editor/properties/entries/linkage/trigger-editor.js +64 -0
  239. package/dist/es/editor/properties/entries/linkage/use-linkage-editor-model.js +20 -0
  240. package/dist/es/editor/properties/entries/linkage/use-stable-options.js +12 -0
  241. package/dist/es/editor/properties/entries/number-entry.js +25 -0
  242. package/dist/es/editor/properties/entries/options-source/index.js +122 -0
  243. package/dist/es/editor/properties/entries/options-source/source-mutators.js +31 -0
  244. package/dist/es/editor/properties/entries/select-entry.js +23 -0
  245. package/dist/es/editor/properties/entries/text-entry.js +23 -0
  246. package/dist/es/editor/properties/form-data-sources-panel.js +170 -0
  247. package/dist/es/editor/properties/form-linkage-panel.js +36 -0
  248. package/dist/es/editor/properties/form-variables-panel.js +184 -0
  249. package/dist/es/editor/properties/option-editors.js +170 -0
  250. package/dist/es/editor/properties/panel-header.js +93 -0
  251. package/dist/es/editor/properties/properties-empty.js +62 -0
  252. package/dist/es/editor/properties/properties-header.js +31 -0
  253. package/dist/es/editor/properties/properties-panel.js +195 -0
  254. package/dist/es/editor/properties/properties-provider.js +95 -0
  255. package/dist/es/editor/properties/properties-tabs.js +91 -0
  256. package/dist/es/editor/properties/use-confirmable-kind-switch.js +26 -0
  257. package/dist/es/editor/remove-node-confirm.js +60 -0
  258. package/dist/es/editor/schema-apply.js +36 -0
  259. package/dist/es/editor/styles.js +74 -0
  260. package/dist/es/editor/toolbar/notify.js +59 -0
  261. package/dist/es/editor/toolbar/schema-io.js +107 -0
  262. package/dist/es/editor/toolbar/toolbar.js +394 -0
  263. package/dist/es/editor/use-editor-shortcuts.js +43 -0
  264. package/dist/es/editor/validation-summary.js +66 -0
  265. package/dist/es/engine/assert-never.js +8 -0
  266. package/dist/es/engine/conversion/index.js +127 -0
  267. package/dist/es/engine/ids.js +18 -0
  268. package/dist/es/engine/keys.js +48 -0
  269. package/dist/es/engine/linkage/cycle.js +25 -0
  270. package/dist/es/engine/linkage/default-evaluator.js +79 -0
  271. package/dist/es/engine/linkage/effects.js +41 -0
  272. package/dist/es/engine/linkage/evaluator.js +119 -0
  273. package/dist/es/engine/linkage/index.js +9 -0
  274. package/dist/es/engine/linkage/operators.js +44 -0
  275. package/dist/es/engine/linkage/source-tracking.js +17 -0
  276. package/dist/es/engine/linkage/taxonomy.js +51 -0
  277. package/dist/es/engine/linkage/validator.js +360 -0
  278. package/dist/es/engine/registry/defaults-mobile.js +12 -0
  279. package/dist/es/engine/registry/defaults.js +25 -0
  280. package/dist/es/engine/registry/form-field-registry.js +52 -0
  281. package/dist/es/engine/schema/edit-ops.js +264 -0
  282. package/dist/es/engine/schema/mutate.js +39 -0
  283. package/dist/es/engine/schema/nodes.js +61 -0
  284. package/dist/es/engine/schema/permission-bridge.js +46 -0
  285. package/dist/es/engine/schema/presentation.js +37 -0
  286. package/dist/es/engine/schema/reconcile.js +258 -0
  287. package/dist/es/engine/schema/removal-impact.js +59 -0
  288. package/dist/es/engine/schema/rewrite.js +11 -0
  289. package/dist/es/engine/schema/validate.js +320 -0
  290. package/dist/es/engine/schema/walk.js +103 -0
  291. package/dist/es/engine/validation.js +122 -0
  292. package/dist/es/icons.js +74 -0
  293. package/dist/es/index.js +54 -0
  294. package/dist/es/render/chrome/mobile-chrome.js +119 -0
  295. package/dist/es/render/chrome/pc-chrome.js +76 -0
  296. package/dist/es/render/chrome/subform-shell.js +38 -0
  297. package/dist/es/render/data-source-context.js +0 -0
  298. package/dist/es/render/flex-style.js +24 -0
  299. package/dist/es/render/form-field.js +37 -0
  300. package/dist/es/render/form-renderer.js +516 -0
  301. package/dist/es/render/grid-style.js +23 -0
  302. package/dist/es/render/parts/field-shell.js +119 -0
  303. package/dist/es/render/parts/label.js +44 -0
  304. package/dist/es/render/parts/options-status.js +19 -0
  305. package/dist/es/render/stack-style.js +13 -0
  306. package/dist/es/render/subform-columns.js +118 -0
  307. package/dist/es/render/submit.js +112 -0
  308. package/dist/es/runtime/effects.js +109 -0
  309. package/dist/es/runtime/resolve-scope-values.js +14 -0
  310. package/dist/es/runtime/runtime-context.js +10 -0
  311. package/dist/es/runtime/runtime-state-controller.js +99 -0
  312. package/dist/es/runtime/stabilize-state-map.js +14 -0
  313. package/dist/es/store/engine-provider.js +37 -0
  314. package/dist/es/store/form-store.js +306 -0
  315. package/dist/es/types/chrome.js +1 -0
  316. package/dist/es/types/component.js +13 -0
  317. package/dist/es/types/data-source.js +5 -0
  318. package/dist/es/types/index.js +5 -0
  319. package/dist/es/types/linkage.js +1 -0
  320. package/dist/es/types/properties.js +7 -0
  321. package/dist/es/types/schema.js +15 -0
  322. package/dist/types/src/components/button/index.d.ts +8 -0
  323. package/dist/types/src/components/checkbox-group-field/index.d.ts +2 -0
  324. package/dist/types/src/components/code-editor/code-editor-input.d.ts +1 -0
  325. package/dist/types/src/components/code-editor/index.d.ts +4 -0
  326. package/dist/types/src/components/containers/index.d.ts +12 -0
  327. package/dist/types/src/components/date-field/index.d.ts +4 -0
  328. package/dist/types/src/components/display/index.d.ts +4 -0
  329. package/dist/types/src/components/field-entries.d.ts +103 -0
  330. package/dist/types/src/components/mobile/alert-block.d.ts +12 -0
  331. package/dist/types/src/components/mobile/button.d.ts +9 -0
  332. package/dist/types/src/components/mobile/checkbox-group.d.ts +11 -0
  333. package/dist/types/src/components/mobile/date-adapters.d.ts +28 -0
  334. package/dist/types/src/components/mobile/date.d.ts +10 -0
  335. package/dist/types/src/components/mobile/daterange.d.ts +11 -0
  336. package/dist/types/src/components/mobile/datetime.d.ts +10 -0
  337. package/dist/types/src/components/mobile/definitions.d.ts +9 -0
  338. package/dist/types/src/components/mobile/divider.d.ts +10 -0
  339. package/dist/types/src/components/mobile/input-cell.d.ts +30 -0
  340. package/dist/types/src/components/mobile/number.d.ts +25 -0
  341. package/dist/types/src/components/mobile/option-group.d.ts +17 -0
  342. package/dist/types/src/components/mobile/paragraph.d.ts +10 -0
  343. package/dist/types/src/components/mobile/picker-trigger.d.ts +31 -0
  344. package/dist/types/src/components/mobile/radio.d.ts +12 -0
  345. package/dist/types/src/components/mobile/scope.d.ts +42 -0
  346. package/dist/types/src/components/mobile/select.d.ts +12 -0
  347. package/dist/types/src/components/mobile/switch.d.ts +14 -0
  348. package/dist/types/src/components/mobile/textarea.d.ts +3 -0
  349. package/dist/types/src/components/mobile/textfield.d.ts +11 -0
  350. package/dist/types/src/components/mobile/theme.d.ts +16 -0
  351. package/dist/types/src/components/number-field/index.d.ts +2 -0
  352. package/dist/types/src/components/radio-field/index.d.ts +2 -0
  353. package/dist/types/src/components/select-field/index.d.ts +2 -0
  354. package/dist/types/src/components/switch-field/index.d.ts +2 -0
  355. package/dist/types/src/components/textarea-field/index.d.ts +2 -0
  356. package/dist/types/src/components/textfield/index.d.ts +11 -0
  357. package/dist/types/src/editor/canvas/canvas-field.d.ts +24 -0
  358. package/dist/types/src/editor/canvas/canvas.d.ts +11 -0
  359. package/dist/types/src/editor/canvas/drop-indicator.d.ts +14 -0
  360. package/dist/types/src/editor/canvas/drop-zones.d.ts +48 -0
  361. package/dist/types/src/editor/canvas/json-split-view.d.ts +15 -0
  362. package/dist/types/src/editor/canvas/mobile-seed-state.d.ts +9 -0
  363. package/dist/types/src/editor/canvas/phone-frame.d.ts +15 -0
  364. package/dist/types/src/editor/dnd.d.ts +88 -0
  365. package/dist/types/src/editor/editor-layout-context.d.ts +53 -0
  366. package/dist/types/src/editor/footer/footer.d.ts +7 -0
  367. package/dist/types/src/editor/form-config/form-basics-tab.d.ts +34 -0
  368. package/dist/types/src/editor/form-config/form-config-drawer.d.ts +8 -0
  369. package/dist/types/src/editor/form-config/outline-tab.d.ts +2 -0
  370. package/dist/types/src/editor/form-editor.d.ts +142 -0
  371. package/dist/types/src/editor/palette/field-groups.d.ts +12 -0
  372. package/dist/types/src/editor/palette/palette-group.d.ts +31 -0
  373. package/dist/types/src/editor/palette/palette-item.d.ts +34 -0
  374. package/dist/types/src/editor/palette/palette-panel.d.ts +17 -0
  375. package/dist/types/src/editor/preview-effects.d.ts +14 -0
  376. package/dist/types/src/editor/preview-runtime-context.d.ts +23 -0
  377. package/dist/types/src/editor/properties/block-layout-section.d.ts +19 -0
  378. package/dist/types/src/editor/properties/container-properties.d.ts +19 -0
  379. package/dist/types/src/editor/properties/entries/built-ins.d.ts +19 -0
  380. package/dist/types/src/editor/properties/entries/checkbox-entry.d.ts +3 -0
  381. package/dist/types/src/editor/properties/entries/coerce.d.ts +6 -0
  382. package/dist/types/src/editor/properties/entries/entry-field.d.ts +29 -0
  383. package/dist/types/src/editor/properties/entries/icon-entry.d.ts +8 -0
  384. package/dist/types/src/editor/properties/entries/index.d.ts +8 -0
  385. package/dist/types/src/editor/properties/entries/key-entry.d.ts +14 -0
  386. package/dist/types/src/editor/properties/entries/linkage/action-editor.d.ts +42 -0
  387. package/dist/types/src/editor/properties/entries/linkage/actions-editor.d.ts +43 -0
  388. package/dist/types/src/editor/properties/entries/linkage/condition-editor.d.ts +28 -0
  389. package/dist/types/src/editor/properties/entries/linkage/container-linkage-section.d.ts +14 -0
  390. package/dist/types/src/editor/properties/entries/linkage/expression-assist.d.ts +33 -0
  391. package/dist/types/src/editor/properties/entries/linkage/index.d.ts +1 -0
  392. package/dist/types/src/editor/properties/entries/linkage/linkage-rules-entry.d.ts +17 -0
  393. package/dist/types/src/editor/properties/entries/linkage/mutators.d.ts +73 -0
  394. package/dist/types/src/editor/properties/entries/linkage/options.d.ts +72 -0
  395. package/dist/types/src/editor/properties/entries/linkage/rule-diagnostics.d.ts +20 -0
  396. package/dist/types/src/editor/properties/entries/linkage/rule-list-editor.d.ts +75 -0
  397. package/dist/types/src/editor/properties/entries/linkage/styles.d.ts +46 -0
  398. package/dist/types/src/editor/properties/entries/linkage/trigger-editor.d.ts +35 -0
  399. package/dist/types/src/editor/properties/entries/linkage/use-linkage-editor-model.d.ts +46 -0
  400. package/dist/types/src/editor/properties/entries/linkage/use-stable-options.d.ts +17 -0
  401. package/dist/types/src/editor/properties/entries/number-entry.d.ts +3 -0
  402. package/dist/types/src/editor/properties/entries/options-source/index.d.ts +9 -0
  403. package/dist/types/src/editor/properties/entries/options-source/source-mutators.d.ts +14 -0
  404. package/dist/types/src/editor/properties/entries/select-entry.d.ts +3 -0
  405. package/dist/types/src/editor/properties/entries/text-entry.d.ts +3 -0
  406. package/dist/types/src/editor/properties/form-data-sources-panel.d.ts +16 -0
  407. package/dist/types/src/editor/properties/form-linkage-panel.d.ts +13 -0
  408. package/dist/types/src/editor/properties/form-variables-panel.d.ts +17 -0
  409. package/dist/types/src/editor/properties/option-editors.d.ts +33 -0
  410. package/dist/types/src/editor/properties/panel-header.d.ts +21 -0
  411. package/dist/types/src/editor/properties/properties-empty.d.ts +13 -0
  412. package/dist/types/src/editor/properties/properties-header.d.ts +13 -0
  413. package/dist/types/src/editor/properties/properties-panel.d.ts +18 -0
  414. package/dist/types/src/editor/properties/properties-provider.d.ts +42 -0
  415. package/dist/types/src/editor/properties/properties-tabs.d.ts +24 -0
  416. package/dist/types/src/editor/properties/use-confirmable-kind-switch.d.ts +38 -0
  417. package/dist/types/src/editor/remove-node-confirm.d.ts +8 -0
  418. package/dist/types/src/editor/schema-apply.d.ts +25 -0
  419. package/dist/types/src/editor/styles.d.ts +37 -0
  420. package/dist/types/src/editor/toolbar/notify.d.ts +13 -0
  421. package/dist/types/src/editor/toolbar/schema-io.d.ts +12 -0
  422. package/dist/types/src/editor/toolbar/toolbar.d.ts +42 -0
  423. package/dist/types/src/editor/use-editor-shortcuts.d.ts +23 -0
  424. package/dist/types/src/editor/validation-summary.d.ts +19 -0
  425. package/dist/types/src/engine/assert-never.d.ts +18 -0
  426. package/dist/types/src/engine/conversion/index.d.ts +87 -0
  427. package/dist/types/src/engine/ids.d.ts +14 -0
  428. package/dist/types/src/engine/keys.d.ts +70 -0
  429. package/dist/types/src/engine/linkage/cycle.d.ts +28 -0
  430. package/dist/types/src/engine/linkage/default-evaluator.d.ts +10 -0
  431. package/dist/types/src/engine/linkage/effects.d.ts +76 -0
  432. package/dist/types/src/engine/linkage/evaluator.d.ts +72 -0
  433. package/dist/types/src/engine/linkage/index.d.ts +8 -0
  434. package/dist/types/src/engine/linkage/operators.d.ts +23 -0
  435. package/dist/types/src/engine/linkage/source-tracking.d.ts +25 -0
  436. package/dist/types/src/engine/linkage/taxonomy.d.ts +49 -0
  437. package/dist/types/src/engine/linkage/validator.d.ts +23 -0
  438. package/dist/types/src/engine/registry/defaults-mobile.d.ts +17 -0
  439. package/dist/types/src/engine/registry/defaults.d.ts +22 -0
  440. package/dist/types/src/engine/registry/form-field-registry.d.ts +79 -0
  441. package/dist/types/src/engine/schema/edit-ops.d.ts +101 -0
  442. package/dist/types/src/engine/schema/mutate.d.ts +41 -0
  443. package/dist/types/src/engine/schema/nodes.d.ts +34 -0
  444. package/dist/types/src/engine/schema/permission-bridge.d.ts +37 -0
  445. package/dist/types/src/engine/schema/presentation.d.ts +30 -0
  446. package/dist/types/src/engine/schema/reconcile.d.ts +80 -0
  447. package/dist/types/src/engine/schema/removal-impact.d.ts +39 -0
  448. package/dist/types/src/engine/schema/rewrite.d.ts +15 -0
  449. package/dist/types/src/engine/schema/validate.d.ts +36 -0
  450. package/dist/types/src/engine/schema/walk.d.ts +90 -0
  451. package/dist/types/src/engine/validation.d.ts +139 -0
  452. package/dist/types/src/icons.d.ts +8 -0
  453. package/dist/types/src/index.d.ts +39 -0
  454. package/dist/types/src/render/chrome/mobile-chrome.d.ts +9 -0
  455. package/dist/types/src/render/chrome/pc-chrome.d.ts +7 -0
  456. package/dist/types/src/render/chrome/subform-shell.d.ts +17 -0
  457. package/dist/types/src/render/data-source-context.d.ts +42 -0
  458. package/dist/types/src/render/flex-style.d.ts +26 -0
  459. package/dist/types/src/render/form-field.d.ts +32 -0
  460. package/dist/types/src/render/form-renderer.d.ts +65 -0
  461. package/dist/types/src/render/grid-style.d.ts +24 -0
  462. package/dist/types/src/render/parts/field-shell.d.ts +33 -0
  463. package/dist/types/src/render/parts/label.d.ts +20 -0
  464. package/dist/types/src/render/parts/options-status.d.ts +14 -0
  465. package/dist/types/src/render/stack-style.d.ts +19 -0
  466. package/dist/types/src/render/subform-columns.d.ts +16 -0
  467. package/dist/types/src/render/submit.d.ts +91 -0
  468. package/dist/types/src/runtime/effects.d.ts +77 -0
  469. package/dist/types/src/runtime/resolve-scope-values.d.ts +8 -0
  470. package/dist/types/src/runtime/runtime-context.d.ts +21 -0
  471. package/dist/types/src/runtime/runtime-state-controller.d.ts +33 -0
  472. package/dist/types/src/runtime/stabilize-state-map.d.ts +12 -0
  473. package/dist/types/src/runtime/types.d.ts +13 -0
  474. package/dist/types/src/store/engine-provider.d.ts +50 -0
  475. package/dist/types/src/store/form-store.d.ts +234 -0
  476. package/dist/types/src/types/chrome.d.ts +51 -0
  477. package/dist/types/src/types/component.d.ts +116 -0
  478. package/dist/types/src/types/data-source.d.ts +70 -0
  479. package/dist/types/src/types/index.d.ts +6 -0
  480. package/dist/types/src/types/linkage.d.ts +350 -0
  481. package/dist/types/src/types/properties.d.ts +122 -0
  482. package/dist/types/src/types/schema.d.ts +839 -0
  483. package/package.json +77 -0
@@ -0,0 +1,186 @@
1
+ /*! @vef-framework-react/form-editor v2.4.0 made by Venus | 2026-06-15T15:10:34.033Z */
2
+ import { defineFieldDefinition as e } from "../../types/component.js";
3
+ import { definePropertyEntry as t } from "../../types/properties.js";
4
+ import { maxValueEntry as n, messageEntry as r, minValueEntry as i, requiredEntry as a, sizeEntry as o } from "../field-entries.js";
5
+ import { FieldShell as s } from "../../render/parts/field-shell.js";
6
+ import { jsx as c } from "@emotion/react/jsx-runtime";
7
+ import { InputNumber as l } from "@vef-framework-react/components";
8
+ //#region src/components/number-field/index.tsx
9
+ var u = { width: "100%" }, d = e({
10
+ config: {
11
+ type: "number",
12
+ name: "数字",
13
+ group: "basic-input",
14
+ keyed: !0,
15
+ icon: "hash",
16
+ create: () => ({
17
+ type: "number",
18
+ label: "数字"
19
+ })
20
+ },
21
+ Component: ({ disabled: e, domId: t, errors: n, field: r, labelPosition: i, required: a, value: o, onChange: d }) => /* @__PURE__ */ c(s, {
22
+ domId: t,
23
+ errors: n,
24
+ helperText: r.helperText,
25
+ label: r.label ?? "数字",
26
+ labelPosition: r.labelPosition ?? i,
27
+ required: a ?? r.validate?.required,
28
+ children: /* @__PURE__ */ c(l, {
29
+ controls: r.controls,
30
+ disabled: e,
31
+ id: t,
32
+ max: r.max,
33
+ min: r.min,
34
+ placeholder: r.placeholder,
35
+ precision: r.precision,
36
+ prefix: r.prefix,
37
+ size: r.size,
38
+ status: n?.length ? "error" : void 0,
39
+ step: r.step,
40
+ style: u,
41
+ suffix: r.suffix,
42
+ value: o,
43
+ onChange: (e) => d(typeof e == "number" ? e : void 0)
44
+ })
45
+ }),
46
+ properties: [
47
+ {
48
+ id: "general",
49
+ label: "通用",
50
+ tab: "props",
51
+ entries: [
52
+ t({
53
+ id: "label",
54
+ label: "标签",
55
+ type: "text",
56
+ read: (e) => e.label,
57
+ write: (e, t) => ({
58
+ ...e,
59
+ label: t
60
+ })
61
+ }),
62
+ t({
63
+ id: "placeholder",
64
+ label: "占位符",
65
+ type: "text",
66
+ read: (e) => e.placeholder,
67
+ write: (e, t) => ({
68
+ ...e,
69
+ placeholder: t
70
+ })
71
+ }),
72
+ t({
73
+ id: "helperText",
74
+ label: "帮助文字",
75
+ type: "text",
76
+ read: (e) => e.helperText,
77
+ write: (e, t) => ({
78
+ ...e,
79
+ helperText: t
80
+ })
81
+ })
82
+ ]
83
+ },
84
+ {
85
+ id: "appearance",
86
+ label: "外观",
87
+ tab: "props",
88
+ entries: [
89
+ o(),
90
+ t({
91
+ id: "prefix",
92
+ label: "前缀",
93
+ type: "text",
94
+ placeholder: "如 ¥",
95
+ read: (e) => e.prefix,
96
+ write: (e, t) => ({
97
+ ...e,
98
+ prefix: t
99
+ })
100
+ }),
101
+ t({
102
+ id: "suffix",
103
+ label: "后缀",
104
+ type: "text",
105
+ placeholder: "如 元 / %",
106
+ read: (e) => e.suffix,
107
+ write: (e, t) => ({
108
+ ...e,
109
+ suffix: t
110
+ })
111
+ }),
112
+ t({
113
+ id: "controls",
114
+ label: "显示步进按钮",
115
+ type: "checkbox",
116
+ read: (e) => e.controls,
117
+ write: (e, t) => ({
118
+ ...e,
119
+ controls: t === !0
120
+ })
121
+ })
122
+ ]
123
+ },
124
+ {
125
+ id: "range",
126
+ label: "取值",
127
+ tab: "props",
128
+ entries: [
129
+ t({
130
+ id: "min",
131
+ label: "最小值",
132
+ type: "number",
133
+ read: (e) => e.min,
134
+ write: (e, t) => ({
135
+ ...e,
136
+ min: t
137
+ })
138
+ }),
139
+ t({
140
+ id: "max",
141
+ label: "最大值",
142
+ type: "number",
143
+ read: (e) => e.max,
144
+ write: (e, t) => ({
145
+ ...e,
146
+ max: t
147
+ })
148
+ }),
149
+ t({
150
+ id: "step",
151
+ label: "步长",
152
+ type: "number",
153
+ read: (e) => e.step,
154
+ write: (e, t) => ({
155
+ ...e,
156
+ step: t
157
+ })
158
+ }),
159
+ t({
160
+ id: "precision",
161
+ label: "精度",
162
+ type: "number",
163
+ description: "保留的小数位数",
164
+ read: (e) => e.precision,
165
+ write: (e, t) => ({
166
+ ...e,
167
+ precision: t
168
+ })
169
+ })
170
+ ]
171
+ },
172
+ {
173
+ id: "validation",
174
+ label: "基础",
175
+ tab: "validation",
176
+ entries: [
177
+ a(),
178
+ i(),
179
+ n(),
180
+ r()
181
+ ]
182
+ }
183
+ ]
184
+ });
185
+ //#endregion
186
+ export { d as numberFieldDefinition };
@@ -0,0 +1,139 @@
1
+ /*! @vef-framework-react/form-editor v2.4.0 made by Venus | 2026-06-15T15:10:34.033Z */
2
+ import { defineFieldDefinition as e } from "../../types/component.js";
3
+ import { definePropertyEntry as t } from "../../types/properties.js";
4
+ import { optionDirectionEntry as n, requiredEntry as r } from "../field-entries.js";
5
+ import { useFieldOptions as i } from "../../render/data-source-context.js";
6
+ import { FieldShell as a } from "../../render/parts/field-shell.js";
7
+ import { OptionsStatus as o } from "../../render/parts/options-status.js";
8
+ import { jsx as s } from "@emotion/react/jsx-runtime";
9
+ import { Radio as c, Spin as l } from "@vef-framework-react/components";
10
+ var u = e({
11
+ config: {
12
+ type: "radio",
13
+ name: "单选",
14
+ group: "selection",
15
+ keyed: !0,
16
+ icon: "circle-dot",
17
+ create: () => ({
18
+ type: "radio",
19
+ label: "单选",
20
+ dataSource: {
21
+ kind: "static",
22
+ options: []
23
+ }
24
+ })
25
+ },
26
+ Component: ({ disabled: e, domId: t, errors: n, field: r, labelPosition: u, required: d, value: f, onChange: p }) => {
27
+ let { error: m, loading: h, options: g } = i(r.dataSource);
28
+ return /* @__PURE__ */ s(a, {
29
+ domId: t,
30
+ errors: n,
31
+ helperText: r.helperText,
32
+ label: r.label ?? "单选",
33
+ labelPosition: r.labelPosition ?? u,
34
+ required: d ?? r.validate?.required,
35
+ children: g.length > 0 ? /* @__PURE__ */ s(l, {
36
+ spinning: h,
37
+ children: /* @__PURE__ */ s(c.Group, {
38
+ buttonStyle: r.buttonStyle,
39
+ disabled: e,
40
+ options: g,
41
+ optionType: r.optionType,
42
+ orientation: r.direction,
43
+ value: f === "" ? void 0 : f,
44
+ onChange: (e) => p(e.target.value)
45
+ })
46
+ }) : /* @__PURE__ */ s(o, {
47
+ error: m,
48
+ loading: h
49
+ })
50
+ });
51
+ },
52
+ properties: [
53
+ {
54
+ id: "general",
55
+ label: "通用",
56
+ tab: "props",
57
+ entries: [t({
58
+ id: "label",
59
+ label: "标签",
60
+ type: "text",
61
+ read: (e) => e.label,
62
+ write: (e, t) => ({
63
+ ...e,
64
+ label: t
65
+ })
66
+ }), t({
67
+ id: "helperText",
68
+ label: "帮助文字",
69
+ type: "text",
70
+ read: (e) => e.helperText,
71
+ write: (e, t) => ({
72
+ ...e,
73
+ helperText: t
74
+ })
75
+ })]
76
+ },
77
+ {
78
+ id: "options",
79
+ label: "选项",
80
+ tab: "props",
81
+ entries: [
82
+ t({
83
+ id: "options",
84
+ label: "可选项",
85
+ type: "options-editor",
86
+ read: (e) => e.dataSource,
87
+ write: (e, t) => ({
88
+ ...e,
89
+ dataSource: t
90
+ })
91
+ }),
92
+ t({
93
+ id: "optionType",
94
+ label: "样式",
95
+ type: "select",
96
+ options: [{
97
+ value: "default",
98
+ label: "圆点"
99
+ }, {
100
+ value: "button",
101
+ label: "按钮组"
102
+ }],
103
+ read: (e) => e.optionType,
104
+ write: (e, t) => ({
105
+ ...e,
106
+ optionType: t
107
+ })
108
+ }),
109
+ t({
110
+ id: "buttonStyle",
111
+ label: "按钮风格",
112
+ type: "select",
113
+ options: [{
114
+ value: "outline",
115
+ label: "描边"
116
+ }, {
117
+ value: "solid",
118
+ label: "填充"
119
+ }],
120
+ visible: (e) => e.optionType === "button",
121
+ read: (e) => e.buttonStyle,
122
+ write: (e, t) => ({
123
+ ...e,
124
+ buttonStyle: t
125
+ })
126
+ }),
127
+ n()
128
+ ]
129
+ },
130
+ {
131
+ id: "validation",
132
+ label: "基础",
133
+ tab: "validation",
134
+ entries: [r()]
135
+ }
136
+ ]
137
+ });
138
+ //#endregion
139
+ export { u as radioFieldDefinition };
@@ -0,0 +1,128 @@
1
+ /*! @vef-framework-react/form-editor v2.4.0 made by Venus | 2026-06-15T15:10:34.033Z */
2
+ import { defineFieldDefinition as e } from "../../types/component.js";
3
+ import { definePropertyEntry as t } from "../../types/properties.js";
4
+ import { allowClearEntry as n, requiredEntry as r, sizeEntry as i } from "../field-entries.js";
5
+ import { useFieldOptions as a } from "../../render/data-source-context.js";
6
+ import { FieldShell as o } from "../../render/parts/field-shell.js";
7
+ import { jsx as s } from "@emotion/react/jsx-runtime";
8
+ import { Select as c } from "@vef-framework-react/components";
9
+ //#region src/components/select-field/index.tsx
10
+ var l = { width: "100%" }, u = e({
11
+ config: {
12
+ type: "select",
13
+ name: "下拉选择",
14
+ group: "selection",
15
+ keyed: !0,
16
+ icon: "chevron-down",
17
+ create: () => ({
18
+ type: "select",
19
+ label: "下拉选择",
20
+ dataSource: {
21
+ kind: "static",
22
+ options: []
23
+ }
24
+ })
25
+ },
26
+ Component: ({ disabled: e, domId: t, errors: n, field: r, labelPosition: i, required: u, value: d, onChange: f }) => {
27
+ let { error: p, loading: m, options: h } = a(r.dataSource);
28
+ return /* @__PURE__ */ s(o, {
29
+ domId: t,
30
+ errors: n,
31
+ helperText: r.helperText,
32
+ label: r.label ?? "下拉选择",
33
+ labelPosition: r.labelPosition ?? i,
34
+ required: u ?? r.validate?.required,
35
+ children: /* @__PURE__ */ s(c, {
36
+ allowClear: r.allowClear,
37
+ disabled: e,
38
+ id: t,
39
+ loading: m,
40
+ notFoundContent: p && h.length === 0 ? "选项加载失败" : void 0,
41
+ options: h,
42
+ placeholder: r.placeholder,
43
+ showSearch: r.showSearch,
44
+ size: r.size,
45
+ status: n?.length || p ? "error" : void 0,
46
+ style: l,
47
+ value: d === "" || d === void 0 ? void 0 : d,
48
+ onChange: (e) => f(e ?? "")
49
+ })
50
+ });
51
+ },
52
+ properties: [
53
+ {
54
+ id: "general",
55
+ label: "通用",
56
+ tab: "props",
57
+ entries: [
58
+ t({
59
+ id: "label",
60
+ label: "标签",
61
+ type: "text",
62
+ read: (e) => e.label,
63
+ write: (e, t) => ({
64
+ ...e,
65
+ label: t
66
+ })
67
+ }),
68
+ t({
69
+ id: "placeholder",
70
+ label: "占位符",
71
+ type: "text",
72
+ read: (e) => e.placeholder,
73
+ write: (e, t) => ({
74
+ ...e,
75
+ placeholder: t
76
+ })
77
+ }),
78
+ t({
79
+ id: "helperText",
80
+ label: "帮助文字",
81
+ type: "text",
82
+ read: (e) => e.helperText,
83
+ write: (e, t) => ({
84
+ ...e,
85
+ helperText: t
86
+ })
87
+ }),
88
+ i()
89
+ ]
90
+ },
91
+ {
92
+ id: "options",
93
+ label: "选项",
94
+ tab: "props",
95
+ entries: [
96
+ t({
97
+ id: "options",
98
+ label: "可选项",
99
+ type: "options-editor",
100
+ read: (e) => e.dataSource,
101
+ write: (e, t) => ({
102
+ ...e,
103
+ dataSource: t
104
+ })
105
+ }),
106
+ n(),
107
+ t({
108
+ id: "showSearch",
109
+ label: "可搜索",
110
+ type: "checkbox",
111
+ read: (e) => e.showSearch,
112
+ write: (e, t) => ({
113
+ ...e,
114
+ showSearch: t === !0
115
+ })
116
+ })
117
+ ]
118
+ },
119
+ {
120
+ id: "validation",
121
+ label: "基础",
122
+ tab: "validation",
123
+ entries: [r()]
124
+ }
125
+ ]
126
+ });
127
+ //#endregion
128
+ export { u as selectFieldDefinition };
@@ -0,0 +1,133 @@
1
+ /*! @vef-framework-react/form-editor v2.4.0 made by Venus | 2026-06-15T15:10:34.033Z */
2
+ import { defineFieldDefinition as e } from "../../types/component.js";
3
+ import { definePropertyEntry as t } from "../../types/properties.js";
4
+ import { Label as n } from "../../render/parts/label.js";
5
+ import { FieldFooter as r } from "../../render/parts/field-shell.js";
6
+ import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
7
+ import "@emotion/react";
8
+ import { Switch as o } from "@vef-framework-react/components";
9
+ //#region src/components/switch-field/index.tsx
10
+ function s() {
11
+ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
12
+ }
13
+ var c = process.env.NODE_ENV === "production" ? {
14
+ name: "b6wrti",
15
+ styles: "display:flex;flex-direction:column;width:100%"
16
+ } : {
17
+ name: "b6wrti",
18
+ styles: "display:flex;flex-direction:column;width:100%/*# sourceMappingURL=data:application/json;charset=ut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wZXJ0aWVzXG59KTtcbiJdfQ== */",
19
+ toString: s
20
+ }, l = process.env.NODE_ENV === "production" ? {
21
+ name: "1og3vwv",
22
+ styles: "display:flex;align-items:center;gap:10px"
23
+ } : {
24
+ name: "1og3vwv",
25
+ styles: "display:flex;align-items:center;gap:10px/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpQmUiLCJmaWxlIjoiaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBGQyB9IGZyb20gXCJyZWFjdFwiO1xuXG5pbXBvcnQgdHlwZSB7IEZpZWxkQ29tcG9uZW50UHJvcHMsIEZpZWxkRGVmaW5pdGlvbiwgUHJvcGVydGllc0Rlc2NyaXB0b3IsIFN3aXRjaEZpZWxkIH0gZnJvbSBcIi4uLy4uL3R5cGVzXCI7XG5cbmltcG9ydCB7IGNzcyB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdFwiO1xuaW1wb3J0IHsgU3dpdGNoIH0gZnJvbSBcIkB2ZWYtZnJhbWV3b3JrLXJlYWN0L2NvbXBvbmVudHNcIjtcblxuaW1wb3J0IHsgRmllbGRGb290ZXIgfSBmcm9tIFwiLi4vLi4vcmVuZGVyL3BhcnRzL2ZpZWxkLXNoZWxsXCI7XG5pbXBvcnQgeyBMYWJlbCB9IGZyb20gXCIuLi8uLi9yZW5kZXIvcGFydHMvbGFiZWxcIjtcbmltcG9ydCB7IGRlZmluZUZpZWxkRGVmaW5pdGlvbiwgZGVmaW5lUHJvcGVydHlFbnRyeSB9IGZyb20gXCIuLi8uLi90eXBlc1wiO1xuXG5jb25zdCB3cmFwcGVyQ3NzID0gY3NzKHtcbiAgZGlzcGxheTogXCJmbGV4XCIsXG4gIGZsZXhEaXJlY3Rpb246IFwiY29sdW1uXCIsXG4gIHdpZHRoOiBcIjEwMCV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iAgICBjcmVhdGU6ICgpID0+IHtcbiAgICAgIHJldHVybiB7IHR5cGU6IFwic3dpdGNoXCIsIGxhYmVsOiBcIuW8gOWFs1wiIH07XG4gICAgfVxuICB9LFxuICBDb21wb25lbnQ6IFN3aXRjaElucHV0LFxuICBwcm9wZXJ0aWVzOiBzd2l0Y2hQcm9wZXJ0aWVzXG59KTtcbiJdfQ== */",
26
+ toString: s
27
+ }, u = e({
28
+ config: {
29
+ type: "switch",
30
+ name: "开关",
31
+ group: "selection",
32
+ keyed: !0,
33
+ icon: "toggle-left",
34
+ create: () => ({
35
+ type: "switch",
36
+ label: "开关"
37
+ })
38
+ },
39
+ Component: ({ disabled: e, domId: t, errors: s, field: u, required: d, value: f, onChange: p }) => /* @__PURE__ */ a("div", {
40
+ css: c,
41
+ children: [/* @__PURE__ */ a("div", {
42
+ css: l,
43
+ children: [/* @__PURE__ */ i(o, {
44
+ checked: f === !0,
45
+ checkedChildren: u.onText,
46
+ disabled: e,
47
+ id: t,
48
+ size: u.size,
49
+ unCheckedChildren: u.offText,
50
+ onChange: (e) => p(e)
51
+ }), /* @__PURE__ */ i(n, {
52
+ htmlFor: t,
53
+ position: "right",
54
+ required: d,
55
+ children: u.label ?? "开关"
56
+ })]
57
+ }), /* @__PURE__ */ i(r, {
58
+ errors: s,
59
+ helperText: u.helperText
60
+ })]
61
+ }),
62
+ properties: [{
63
+ id: "general",
64
+ label: "通用",
65
+ tab: "props",
66
+ entries: [t({
67
+ id: "label",
68
+ label: "标签",
69
+ type: "text",
70
+ read: (e) => e.label,
71
+ write: (e, t) => ({
72
+ ...e,
73
+ label: t
74
+ })
75
+ }), t({
76
+ id: "helperText",
77
+ label: "帮助文字",
78
+ type: "text",
79
+ read: (e) => e.helperText,
80
+ write: (e, t) => ({
81
+ ...e,
82
+ helperText: t
83
+ })
84
+ })]
85
+ }, {
86
+ id: "appearance",
87
+ label: "外观",
88
+ tab: "props",
89
+ entries: [
90
+ t({
91
+ id: "onText",
92
+ label: "开启文字",
93
+ type: "text",
94
+ placeholder: "如 开",
95
+ read: (e) => e.onText,
96
+ write: (e, t) => ({
97
+ ...e,
98
+ onText: t
99
+ })
100
+ }),
101
+ t({
102
+ id: "offText",
103
+ label: "关闭文字",
104
+ type: "text",
105
+ placeholder: "如 关",
106
+ read: (e) => e.offText,
107
+ write: (e, t) => ({
108
+ ...e,
109
+ offText: t
110
+ })
111
+ }),
112
+ t({
113
+ id: "size",
114
+ label: "尺寸",
115
+ type: "select",
116
+ options: [{
117
+ value: "default",
118
+ label: "默认"
119
+ }, {
120
+ value: "small",
121
+ label: "小"
122
+ }],
123
+ read: (e) => e.size,
124
+ write: (e, t) => ({
125
+ ...e,
126
+ size: t
127
+ })
128
+ })
129
+ ]
130
+ }]
131
+ });
132
+ //#endregion
133
+ export { u as switchFieldDefinition };