@zeng-alt/formkit-form-builder 1.4.0 → 2.0.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 (231) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +323 -137
  3. package/dist/builder.css +1 -1
  4. package/dist/builder.es.js +7922 -42834
  5. package/dist/builder.es.js.map +1 -0
  6. package/dist/builder.umd.js +58 -86
  7. package/dist/chunks/AiPrompt-CWUhBDH4.js +174 -0
  8. package/dist/chunks/AiPrompt-CWUhBDH4.js.map +1 -0
  9. package/dist/chunks/BadgeEditor-B1kB2DXg.js +133 -0
  10. package/dist/chunks/BadgeEditor-B1kB2DXg.js.map +1 -0
  11. package/dist/chunks/BuilderPreview-CKL5bqCP.js +142 -0
  12. package/dist/chunks/BuilderPreview-CKL5bqCP.js.map +1 -0
  13. package/dist/chunks/ButtonGroupEditor-C5pChDFz.js +55 -0
  14. package/dist/chunks/ButtonGroupEditor-C5pChDFz.js.map +1 -0
  15. package/dist/chunks/CardEditor-Bsbriwvu.js +61 -0
  16. package/dist/chunks/CardEditor-Bsbriwvu.js.map +1 -0
  17. package/dist/chunks/CheckboxEditor-CxNEvn_Y.js +23 -0
  18. package/dist/chunks/CheckboxEditor-CxNEvn_Y.js.map +1 -0
  19. package/dist/chunks/CollapseEditor-CUFTdj0V.js +36 -0
  20. package/dist/chunks/CollapseEditor-CUFTdj0V.js.map +1 -0
  21. package/dist/chunks/ColorEditor-Bo9QkLsR.js +17 -0
  22. package/dist/chunks/ColorEditor-Bo9QkLsR.js.map +1 -0
  23. package/dist/chunks/DataTableContainerPreview-phlGcigM.js +403 -0
  24. package/dist/chunks/DataTableContainerPreview-phlGcigM.js.map +1 -0
  25. package/dist/chunks/DataTableEditor-BTDWXdtk.js +473 -0
  26. package/dist/chunks/DataTableEditor-BTDWXdtk.js.map +1 -0
  27. package/dist/chunks/DataTableFieldPicker-qWxGmVxr.js +1579 -0
  28. package/dist/chunks/DataTableFieldPicker-qWxGmVxr.js.map +1 -0
  29. package/dist/chunks/DataTableRowCellInput-BLTM3I21.js +195 -0
  30. package/dist/chunks/DataTableRowCellInput-BLTM3I21.js.map +1 -0
  31. package/dist/chunks/DataTableSearchField-PU89hniM.js +81 -0
  32. package/dist/chunks/DataTableSearchField-PU89hniM.js.map +1 -0
  33. package/dist/chunks/DateLikeEditor-ZkCbMhpE.js +74 -0
  34. package/dist/chunks/DateLikeEditor-ZkCbMhpE.js.map +1 -0
  35. package/dist/chunks/DateTimeEditor-C-jZKTT5.js +73 -0
  36. package/dist/chunks/DateTimeEditor-C-jZKTT5.js.map +1 -0
  37. package/dist/chunks/EditorSection-BR3qdK2c.js +23 -0
  38. package/dist/chunks/EditorSection-BR3qdK2c.js.map +1 -0
  39. package/dist/chunks/EditsLayout-fueCrxZM.js +22 -0
  40. package/dist/chunks/EditsLayout-fueCrxZM.js.map +1 -0
  41. package/dist/chunks/ExprEditModal-CeXiPStM.js +540 -0
  42. package/dist/chunks/ExprEditModal-CeXiPStM.js.map +1 -0
  43. package/dist/chunks/FileEditor-BXELd_SD.js +35 -0
  44. package/dist/chunks/FileEditor-BXELd_SD.js.map +1 -0
  45. package/dist/chunks/FormRenderer-BwykpB3h.js +2625 -0
  46. package/dist/chunks/FormRenderer-BwykpB3h.js.map +1 -0
  47. package/dist/chunks/GroupEditor-DchDUDDY.js +13 -0
  48. package/dist/chunks/GroupEditor-DchDUDDY.js.map +1 -0
  49. package/dist/chunks/HistoryPanel-1p0-Obef.js +104 -0
  50. package/dist/chunks/HistoryPanel-1p0-Obef.js.map +1 -0
  51. package/dist/chunks/ImportExportModal-CTqkyp1s.js +266 -0
  52. package/dist/chunks/ImportExportModal-CTqkyp1s.js.map +1 -0
  53. package/dist/chunks/InlineEditableText-BO-dT5rp.js +68 -0
  54. package/dist/chunks/InlineEditableText-BO-dT5rp.js.map +1 -0
  55. package/dist/chunks/InputGroupEditor-D_5giZtN.js +13 -0
  56. package/dist/chunks/InputGroupEditor-D_5giZtN.js.map +1 -0
  57. package/dist/chunks/IssuesPanel-CW5bdwvC.js +82 -0
  58. package/dist/chunks/IssuesPanel-CW5bdwvC.js.map +1 -0
  59. package/dist/chunks/JsCodeEditor-CIPxhwZa.js +751 -0
  60. package/dist/chunks/JsCodeEditor-CIPxhwZa.js.map +1 -0
  61. package/dist/chunks/JsonTextarea-C3mnRwtG.js +54 -0
  62. package/dist/chunks/JsonTextarea-C3mnRwtG.js.map +1 -0
  63. package/dist/chunks/ListEditor-C1hn5yOi.js +25 -0
  64. package/dist/chunks/ListEditor-C1hn5yOi.js.map +1 -0
  65. package/dist/chunks/NaiveAlertEditor-DACimYS1.js +67 -0
  66. package/dist/chunks/NaiveAlertEditor-DACimYS1.js.map +1 -0
  67. package/dist/chunks/NaiveAutoCompleteEditor-CtCvPe7H.js +122 -0
  68. package/dist/chunks/NaiveAutoCompleteEditor-CtCvPe7H.js.map +1 -0
  69. package/dist/chunks/NaiveAvatarEditor-CmDUodoa.js +36 -0
  70. package/dist/chunks/NaiveAvatarEditor-CmDUodoa.js.map +1 -0
  71. package/dist/chunks/NaiveBackTopEditor-Iq-li1JT.js +69 -0
  72. package/dist/chunks/NaiveBackTopEditor-Iq-li1JT.js.map +1 -0
  73. package/dist/chunks/NaiveBasicSection-wNyhGLou.js +184 -0
  74. package/dist/chunks/NaiveBasicSection-wNyhGLou.js.map +1 -0
  75. package/dist/chunks/NaiveBlockquoteEditor-BfqWqKwF.js +13 -0
  76. package/dist/chunks/NaiveBlockquoteEditor-BfqWqKwF.js.map +1 -0
  77. package/dist/chunks/NaiveButtonEditor-B4Rp2T7n.js +168 -0
  78. package/dist/chunks/NaiveButtonEditor-B4Rp2T7n.js.map +1 -0
  79. package/dist/chunks/NaiveCascaderEditor-BtD6KRXl.js +26 -0
  80. package/dist/chunks/NaiveCascaderEditor-BtD6KRXl.js.map +1 -0
  81. package/dist/chunks/NaiveDividerEditor-B1dPteDV.js +52 -0
  82. package/dist/chunks/NaiveDividerEditor-B1dPteDV.js.map +1 -0
  83. package/dist/chunks/NaiveH1Editor-Can7c9mh.js +14 -0
  84. package/dist/chunks/NaiveH1Editor-Can7c9mh.js.map +1 -0
  85. package/dist/chunks/NaiveH2Editor-BRKeEVf4.js +14 -0
  86. package/dist/chunks/NaiveH2Editor-BRKeEVf4.js.map +1 -0
  87. package/dist/chunks/NaiveH3Editor-DCdyd3-n.js +14 -0
  88. package/dist/chunks/NaiveH3Editor-DCdyd3-n.js.map +1 -0
  89. package/dist/chunks/NaiveH4Editor-COFS6udv.js +14 -0
  90. package/dist/chunks/NaiveH4Editor-COFS6udv.js.map +1 -0
  91. package/dist/chunks/NaiveH5Editor-CQEe6s1O.js +14 -0
  92. package/dist/chunks/NaiveH5Editor-CQEe6s1O.js.map +1 -0
  93. package/dist/chunks/NaiveH6Editor-DHGzIUAl.js +14 -0
  94. package/dist/chunks/NaiveH6Editor-DHGzIUAl.js.map +1 -0
  95. package/dist/chunks/NaiveHeaderEditor-Cy02AmLI.js +12 -0
  96. package/dist/chunks/NaiveHeaderEditor-Cy02AmLI.js.map +1 -0
  97. package/dist/chunks/NaiveImageEditor-WyVYLNbT.js +201 -0
  98. package/dist/chunks/NaiveImageEditor-WyVYLNbT.js.map +1 -0
  99. package/dist/chunks/NaiveLiEditor-CC65rrna.js +13 -0
  100. package/dist/chunks/NaiveLiEditor-CC65rrna.js.map +1 -0
  101. package/dist/chunks/NaiveLinkEditor-DkjFrzEE.js +38 -0
  102. package/dist/chunks/NaiveLinkEditor-DkjFrzEE.js.map +1 -0
  103. package/dist/chunks/NaiveMentionEditor-BupocM2c.js +23 -0
  104. package/dist/chunks/NaiveMentionEditor-BupocM2c.js.map +1 -0
  105. package/dist/chunks/NaiveOlEditor-DYFqg6Sp.js +16 -0
  106. package/dist/chunks/NaiveOlEditor-DYFqg6Sp.js.map +1 -0
  107. package/dist/chunks/NaiveParagraphEditor-B3Ju6ZNI.js +104 -0
  108. package/dist/chunks/NaiveParagraphEditor-B3Ju6ZNI.js.map +1 -0
  109. package/dist/chunks/NaiveProgressEditor-CwpsZG2z.js +119 -0
  110. package/dist/chunks/NaiveProgressEditor-CwpsZG2z.js.map +1 -0
  111. package/dist/chunks/NaiveQrCodeEditor-YWWAozHe.js +77 -0
  112. package/dist/chunks/NaiveQrCodeEditor-YWWAozHe.js.map +1 -0
  113. package/dist/chunks/NaiveRateEditor-BVY1QiXv.js +44 -0
  114. package/dist/chunks/NaiveRateEditor-BVY1QiXv.js.map +1 -0
  115. package/dist/chunks/NaiveSwitchEditor-BP1v-oZf.js +17 -0
  116. package/dist/chunks/NaiveSwitchEditor-BP1v-oZf.js.map +1 -0
  117. package/dist/chunks/NaiveTextEditor-C38l4Q-j.js +107 -0
  118. package/dist/chunks/NaiveTextEditor-C38l4Q-j.js.map +1 -0
  119. package/dist/chunks/NaiveTransferEditor-BRH_5ioX.js +19 -0
  120. package/dist/chunks/NaiveTransferEditor-BRH_5ioX.js.map +1 -0
  121. package/dist/chunks/NaiveTreeSelectEditor-jX2DrMcT.js +26 -0
  122. package/dist/chunks/NaiveTreeSelectEditor-jX2DrMcT.js.map +1 -0
  123. package/dist/chunks/NaiveUlEditor-CMKofBid.js +16 -0
  124. package/dist/chunks/NaiveUlEditor-CMKofBid.js.map +1 -0
  125. package/dist/chunks/NumberEditor-0P2Li_GH.js +40 -0
  126. package/dist/chunks/NumberEditor-0P2Li_GH.js.map +1 -0
  127. package/dist/chunks/NumberInput-DU-FiLxW.js +37 -0
  128. package/dist/chunks/NumberInput-DU-FiLxW.js.map +1 -0
  129. package/dist/chunks/OptionsLayoutSection-C9gVadRA.js +21 -0
  130. package/dist/chunks/OptionsLayoutSection-C9gVadRA.js.map +1 -0
  131. package/dist/chunks/OptionsSourceTabs-3fsum0OI.js +628 -0
  132. package/dist/chunks/OptionsSourceTabs-3fsum0OI.js.map +1 -0
  133. package/dist/chunks/OptionsTagsSection-vKkxlWLw.js +31 -0
  134. package/dist/chunks/OptionsTagsSection-vKkxlWLw.js.map +1 -0
  135. package/dist/chunks/PasswordEditor-Igld1ak6.js +29 -0
  136. package/dist/chunks/PasswordEditor-Igld1ak6.js.map +1 -0
  137. package/dist/chunks/PlaceholderSection-BKOS-7Qu.js +26 -0
  138. package/dist/chunks/PlaceholderSection-BKOS-7Qu.js.map +1 -0
  139. package/dist/chunks/RadioEditor-CyJhILjI.js +23 -0
  140. package/dist/chunks/RadioEditor-CyJhILjI.js.map +1 -0
  141. package/dist/chunks/RangeEditor-PGOnGfuV.js +86 -0
  142. package/dist/chunks/RangeEditor-PGOnGfuV.js.map +1 -0
  143. package/dist/chunks/RichText-DqcMtoil.js +424 -0
  144. package/dist/chunks/RichText-DqcMtoil.js.map +1 -0
  145. package/dist/chunks/RichTextEditor-EfA6m9w2.js +81 -0
  146. package/dist/chunks/RichTextEditor-EfA6m9w2.js.map +1 -0
  147. package/dist/chunks/SelectEditor-mJ_zUivj.js +21 -0
  148. package/dist/chunks/SelectEditor-mJ_zUivj.js.map +1 -0
  149. package/dist/chunks/SelectInput-DY4Oi2Lp.js +31 -0
  150. package/dist/chunks/SelectInput-DY4Oi2Lp.js.map +1 -0
  151. package/dist/chunks/SignatureEditor-BNttg68X.js +52 -0
  152. package/dist/chunks/SignatureEditor-BNttg68X.js.map +1 -0
  153. package/dist/chunks/SignaturePad-qhmoMg1E.js +170 -0
  154. package/dist/chunks/SignaturePad-qhmoMg1E.js.map +1 -0
  155. package/dist/chunks/StepsEditor-C8U-ext8.js +63 -0
  156. package/dist/chunks/StepsEditor-C8U-ext8.js.map +1 -0
  157. package/dist/chunks/SubmitEditor-B9R984q8.js +168 -0
  158. package/dist/chunks/SubmitEditor-B9R984q8.js.map +1 -0
  159. package/dist/chunks/SwitchInput-DQrSTyW0.js +34 -0
  160. package/dist/chunks/SwitchInput-DQrSTyW0.js.map +1 -0
  161. package/dist/chunks/TabsEditor-DepUhmsz.js +100 -0
  162. package/dist/chunks/TabsEditor-DepUhmsz.js.map +1 -0
  163. package/dist/chunks/TagsInput-DeG3Om1R.js +36 -0
  164. package/dist/chunks/TagsInput-DeG3Om1R.js.map +1 -0
  165. package/dist/chunks/TemplatePickerModal-DPkdJJJs.js +440 -0
  166. package/dist/chunks/TemplatePickerModal-DPkdJJJs.js.map +1 -0
  167. package/dist/chunks/TextInput-D1EMeBPf.js +53 -0
  168. package/dist/chunks/TextInput-D1EMeBPf.js.map +1 -0
  169. package/dist/chunks/TextLikeEditor-Du0nHQWQ.js +56 -0
  170. package/dist/chunks/TextLikeEditor-Du0nHQWQ.js.map +1 -0
  171. package/dist/chunks/ToggleInput-DoZPwM0A.js +51 -0
  172. package/dist/chunks/ToggleInput-DoZPwM0A.js.map +1 -0
  173. package/dist/chunks/_plugin-vue_export-helper-BxNYtmDu.js +8 -0
  174. package/dist/chunks/axios-agM_iOnv.js +1589 -0
  175. package/dist/chunks/axios-agM_iOnv.js.map +1 -0
  176. package/dist/chunks/bind-runtime-CRyrBYCi.js +58 -0
  177. package/dist/chunks/bind-runtime-CRyrBYCi.js.map +1 -0
  178. package/dist/chunks/canvas-locate-CxDD4bDp.js +64 -0
  179. package/dist/chunks/canvas-locate-CxDD4bDp.js.map +1 -0
  180. package/dist/chunks/context-4zkSHwVA.js +2510 -0
  181. package/dist/chunks/context-4zkSHwVA.js.map +1 -0
  182. package/dist/chunks/create-form-builder-state-CoXaJhWO.js +358 -0
  183. package/dist/chunks/create-form-builder-state-CoXaJhWO.js.map +1 -0
  184. package/dist/chunks/date-family-BYkr1OaE.js +75 -0
  185. package/dist/chunks/date-family-BYkr1OaE.js.map +1 -0
  186. package/dist/chunks/evaluator-DqNftI0d.js +139 -0
  187. package/dist/chunks/evaluator-DqNftI0d.js.map +1 -0
  188. package/dist/chunks/expr-parse-u7_CxMWg.js +463 -0
  189. package/dist/chunks/expr-parse-u7_CxMWg.js.map +1 -0
  190. package/dist/chunks/expr-source-BRPYrxuB.js +118 -0
  191. package/dist/chunks/expr-source-BRPYrxuB.js.map +1 -0
  192. package/dist/chunks/form-builder-plugin-BCbiWZKT.js +280 -0
  193. package/dist/chunks/form-builder-plugin-BCbiWZKT.js.map +1 -0
  194. package/dist/chunks/form-fields-DjLk8iH2.js +877 -0
  195. package/dist/chunks/form-fields-DjLk8iH2.js.map +1 -0
  196. package/dist/chunks/form-layout-Dm4QeYrL.js +69 -0
  197. package/dist/chunks/form-layout-Dm4QeYrL.js.map +1 -0
  198. package/dist/chunks/grid-C8xMKll5.js +137 -0
  199. package/dist/chunks/grid-C8xMKll5.js.map +1 -0
  200. package/dist/chunks/keys-D4DlFgJT.js +61 -0
  201. package/dist/chunks/keys-D4DlFgJT.js.map +1 -0
  202. package/dist/chunks/media-family-B4Wijm18.js +178 -0
  203. package/dist/chunks/media-family-B4Wijm18.js.map +1 -0
  204. package/dist/chunks/misc-family-CQJhCKco.js +133 -0
  205. package/dist/chunks/misc-family-CQJhCKco.js.map +1 -0
  206. package/dist/chunks/rich-text-toolbar-CQidmjGI.js +32 -0
  207. package/dist/chunks/rich-text-toolbar-CQidmjGI.js.map +1 -0
  208. package/dist/chunks/rolldown-runtime-DMoxecvO.js +11 -0
  209. package/dist/chunks/schema-adapter-_sLPmdLy.js +2089 -0
  210. package/dist/chunks/schema-adapter-_sLPmdLy.js.map +1 -0
  211. package/dist/chunks/selection-family-T_wZGrXc.js +249 -0
  212. package/dist/chunks/selection-family-T_wZGrXc.js.map +1 -0
  213. package/dist/chunks/use-ai-prompt-focus-39DHK41R.js +14 -0
  214. package/dist/chunks/use-ai-prompt-focus-39DHK41R.js.map +1 -0
  215. package/dist/chunks/use-bind-events-C-H7jhW_.js +89 -0
  216. package/dist/chunks/use-bind-events-C-H7jhW_.js.map +1 -0
  217. package/dist/chunks/use-config-DTr8dhzM.js +16 -0
  218. package/dist/chunks/use-config-DTr8dhzM.js.map +1 -0
  219. package/dist/chunks/use-dictionary-BAN34x49.js +26 -0
  220. package/dist/chunks/use-dictionary-BAN34x49.js.map +1 -0
  221. package/dist/chunks/use-dynamic-options-DbGSz-3_.js +29 -0
  222. package/dist/chunks/use-dynamic-options-DbGSz-3_.js.map +1 -0
  223. package/dist/chunks/use-schema-render-data-DagOPKiy.js +33 -0
  224. package/dist/chunks/use-schema-render-data-DagOPKiy.js.map +1 -0
  225. package/dist/chunks/utils-DlUMv2vG.js +53 -0
  226. package/dist/chunks/utils-DlUMv2vG.js.map +1 -0
  227. package/dist/index.d.ts +243 -1060
  228. package/dist/renderer.d.ts +632 -0
  229. package/dist/renderer.es.js +6 -0
  230. package/dist/renderer.umd.js +34 -0
  231. package/package.json +48 -33
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-4zkSHwVA.js","names":[],"sources":["../../src/i18n/en.ts","../../src/i18n/zh.ts","../../src/i18n/messages.ts","../../src/i18n/context.ts"],"sourcesContent":["export default {\n common: {\n selectFieldToEdit: 'Select a field to edit its properties',\n cancel: 'Cancel',\n confirm: 'Confirm',\n save: 'Save',\n edit: 'Edit',\n /** Suffix appended to a duplicated copy's label (H6), leading space is intentional (\"Text copy\") */\n copySuffix: ' copy',\n },\n sidebar: {\n search: 'Search...',\n elements: 'Elements',\n structure: 'Structure',\n structureEmpty: 'No structure yet. Add elements on the canvas first.',\n // F: recently used section / search result group headings / no-results hint\n recentlyUsed: 'Recently used',\n clearRecent: 'Clear',\n noResults: 'No matching elements found',\n clearSearch: 'Clear search',\n },\n builder: {\n clearForm: 'Clear form',\n previewForm: 'Preview Form',\n undo: 'Undo',\n redo: 'Redo',\n undoTooltip: 'Undo (Ctrl/Cmd+Z)',\n redoTooltip: 'Redo (Ctrl/Cmd+Shift+Z or Ctrl/Cmd+Y)',\n deleteField: 'Delete field',\n duplicateField: 'Duplicate field',\n resizeFieldWidth: 'Resize field width',\n // D: canvas interaction — shared copy for the floating toolbar / context menu / shortcuts\n commands: {\n more: 'More actions',\n copy: 'Copy',\n cut: 'Cut',\n paste: 'Paste',\n duplicate: 'Duplicate',\n duplicateTooltip: 'Duplicate (Ctrl/Cmd+D)',\n moveUp: 'Move up',\n moveUpTooltip: 'Move up',\n moveDown: 'Move down',\n moveDownTooltip: 'Move down',\n deleteTooltip: 'Delete (Delete)',\n wrapIn: 'Wrap in',\n convertTo: 'Convert to',\n selectAllRoot: 'Select all root elements',\n crossContainerNotice:\n 'Multi-select only works within the same parent — switched to single selection',\n batchSelected: '{count} elements selected',\n batchHeader: 'Batch actions',\n batchDelete: 'Delete',\n batchDuplicate: 'Duplicate',\n batchWrap: 'Wrap in',\n batchWrapAs: 'Wrap in {name}',\n // I1: batch settings (multi-select bulk property edit)\n batchSettingsTitle: 'Batch settings',\n batchColSpan: 'Column span',\n batchColSpanMixed: 'Mixed',\n batchRequired: 'Required',\n batchDisabled: 'Disabled',\n batchSize: 'Size',\n batchSizeFollowForm: 'Follow form',\n batchOn: 'On',\n batchOff: 'Off',\n batchMixed: 'Mixed',\n batchApplyScope: 'Applies to {n} / {m} elements',\n },\n clearConfirm:\n 'Are you absolutely sure? This will permanently delete the form you have created.',\n creatingForm: 'Creating your new form...',\n desktopView: 'Desktop View',\n tabletView: 'Tablet View',\n mobileView: 'Mobile View',\n importExportSchema: 'Import / Export Schema',\n switchLanguage: 'Switch Language',\n previewTitle: 'Form Preview',\n previewDescription: 'Preview your form and test its functionality.',\n bindTitle: 'Bind',\n bindEvents: 'Events',\n noEvents: 'No events',\n editEvent: 'Edit event',\n quickInsert: 'Quick insert: ',\n bindHint:\n 'Write JavaScript. Available params: event (event object), form (form data), $form (form meta {id, version, name}), $value (current value), $node (node), $name (field name), $get(name) (get field value), $slots (slots), attrs (node config), ctx (full context), axios (HTTP). Click the quick-insert chips above to insert.',\n formDataTitle: 'Form Data:',\n formSubmitted: 'Form submitted!',\n listContainer: 'List container',\n listAdd: 'Add item',\n listRemove: 'Remove container',\n listDropHere: 'Drag fields here',\n addStep: 'Add step',\n deleteStep: 'Delete step (keeps the first one)',\n addTab: 'Add tab',\n stepsConsolidateNotice: 'Existing content has been moved into step 1',\n paneNameDuplicate: 'The name \"{name}\" is already in use, please choose another',\n prevStep: 'Previous',\n nextStep: 'Next',\n finish: 'Finish',\n dataTableFieldPicker: {\n search: 'Search field types',\n empty: 'No matching field types',\n },\n dataTableFixed: 'Fixed data',\n dataTableRemote: 'Remote data',\n dataTableAddColumn: 'Add column',\n dataTableSearch: 'Search',\n dataTableAdd: 'Add',\n dataTableRefresh: 'Refresh',\n dataTableAddRowTitle: 'Add data',\n dataTableEditRowTitle: 'Edit data',\n dataTableDeleteRowTitle: 'Delete data',\n dataTableActions: 'Actions',\n dataTableReset: 'Reset',\n dataTableExpand: 'Expand',\n dataTableCollapse: 'Collapse',\n dataTableSaveSuccess: 'Saved successfully',\n dataTableSaveError: 'Save failed',\n dataTableDeleteSuccess: 'Deleted successfully',\n dataTableDeleteError: 'Delete failed',\n // Data table canvas (DataTableContainer) copy\n dataTableCanvas: {\n searchDragHint: 'Drag fields here, or',\n searchZoneLabel: 'search area',\n addSearchCondition: 'Add search condition',\n addConditionShort: 'Condition',\n columnMoveLeft: 'Move left',\n columnMoveRight: 'Move right',\n columnDuplicate: 'Duplicate column',\n columnDelete: 'Delete column',\n noColumns: 'No columns yet',\n addFirstColumn: 'Add the first column',\n sampleDataLabel: 'Sample data',\n remoteDataLabel: 'Remote data · loaded via API at runtime',\n remoteAddTooltip: 'Adding rows is handled by the API at runtime',\n totalCount: '{count} rows total',\n perPage: '{count} per page',\n pageSizeSuffix: '{count} / page',\n },\n // Data table fixed-data edit modal (DataTableDataGridModal) copy\n dataTableGrid: {\n title: 'Edit data',\n rowsCount: '{count} rows',\n addRow: 'Add row',\n empty: 'No data yet',\n deleteRow: 'Delete row',\n },\n // B3: empty-canvas guide card\n emptyCanvas: {\n title: 'Start designing your form',\n dragTitle: 'Drag elements from the left',\n dragDescription: 'Pick a field or container on the left panel and drop it here to begin',\n templateTitle: 'Start from a template',\n templateDescription: 'Pick a ready-made template to get a common form up quickly',\n aiTitle: 'Generate with AI',\n aiDescription: 'Describe what you need up top and let AI build the whole form for you',\n },\n },\n // L: drag feedback when moving elements onto the canvas (insert badge / container\n // hover label / not-allowed feedback)\n dnd: {\n insertBadge: {\n right: 'Place right · {width}/12',\n left: 'Place left · {width}/12',\n bottom: 'Place below · {width}/12',\n top: 'Place above · {width}/12',\n split: 'Split {a} + {b}',\n halve: 'Split evenly {a} + {b}',\n },\n dropInto: 'Drop into: {name}',\n reject: {\n notAllowed: \"Can't drop here\",\n },\n reason: {\n buttonGroupOnly: 'Button groups only accept buttons',\n stepsExclusive: 'A step wizard already exists — drop inside a step instead',\n noNestedSteps: \"Steps can't be nested inside another step\",\n singleChildOnly: 'This container only holds a single element',\n searchFieldsOnly: 'The search area only accepts fields',\n },\n },\n importExport: {\n title: 'Import / Export Schema',\n tabDsl: 'DSL',\n tabFormkit: 'FormKit Schema',\n placeholder: 'Paste your form schema JSON here...',\n downloadJson: 'Download JSON',\n downloadJs: 'Download JS',\n saveAndImport: 'Save & Import',\n schemaMustBeArray: 'Schema must be an array',\n importSuccess: 'Schema imported successfully',\n downloadedSuccess: 'Schema downloaded successfully',\n failedParseJson: 'Failed to parse JSON: {message}',\n jsonInvalid: 'Invalid JSON format',\n jsonErrorLocation: 'Near line {line}, column {column}',\n failedGenerateDownload: 'Failed to generate download: Invalid JSON',\n unknownError: 'Unknown error',\n },\n // B2: form template picker modal\n templates: {\n entry: 'Templates',\n modalTitle: 'Start from a template',\n modalDescription: 'Pick a template to start quickly — you can still edit everything after',\n fieldCount: '{count} fields',\n apply: 'Use this template',\n replaceConfirmTitle: 'Replace the current form?',\n replaceConfirmContent:\n 'Applying a template replaces the content currently on the canvas. This can still be undone.',\n replaceConfirmOk: 'Replace',\n userRegistration: {\n name: 'User registration',\n description: 'Sign-up form with username, password, email and terms confirmation',\n fieldUsername: 'Username',\n fieldUsernamePlaceholder: 'Enter your username',\n fieldPassword: 'Password',\n fieldPasswordPlaceholder: 'Enter your password',\n fieldEmail: 'Email',\n fieldEmailPlaceholder: 'Enter your email',\n fieldAgreement: 'Terms of service',\n fieldAgreementOption: 'I have read and agree to the terms of service',\n },\n leaveApplication: {\n name: 'Leave application',\n description: 'Employee leave request with leave type, date range and reason',\n fieldName: 'Name',\n fieldLeaveType: 'Leave type',\n leaveTypeCasual: 'Casual leave',\n leaveTypeSick: 'Sick leave',\n leaveTypeAnnual: 'Annual leave',\n leaveTypeMarriage: 'Marriage leave',\n fieldStartDate: 'Start date',\n fieldEndDate: 'End date',\n fieldReason: 'Reason',\n fieldReasonPlaceholder: 'Briefly describe the reason for leave',\n },\n satisfactionSurvey: {\n name: 'Satisfaction survey',\n description: 'Service satisfaction survey with a rating and a single-choice question',\n fieldRating: 'Service rating',\n fieldRecommend: 'Would you recommend us to others?',\n recommendYes: 'Yes',\n recommendNo: 'No',\n fieldSuggestion: 'Other suggestions',\n fieldSuggestionPlaceholder: 'Feel free to leave a suggestion (optional)',\n },\n contactUs: {\n name: 'Contact us',\n description: 'Visitor message form with contact info and a multi-line message',\n fieldName: 'Name',\n fieldEmail: 'Email',\n fieldSubject: 'Subject',\n fieldMessage: 'Message',\n fieldMessagePlaceholder: 'Tell us what you have in mind',\n },\n employeeRegistration: {\n name: 'Employee registration',\n description: 'New-hire profile registration grouped into cards, with a date and a select',\n groupBasicInfo: 'Basic info',\n groupWorkInfo: 'Work info',\n fieldName: 'Name',\n fieldGender: 'Gender',\n genderMale: 'Male',\n genderFemale: 'Female',\n fieldBirthDate: 'Date of birth',\n fieldDepartment: 'Department',\n departmentTech: 'Engineering',\n departmentMarketing: 'Marketing',\n departmentHr: 'HR',\n departmentFinance: 'Finance',\n fieldHireDate: 'Hire date',\n fieldPosition: 'Position',\n },\n },\n formSettings: {\n title: 'Form settings',\n name: 'Form name',\n id: 'Form ID',\n version: 'Version',\n labelPosition: 'Label position',\n labelWidth: 'Label width',\n positionTop: 'Top',\n positionLeft: 'Left',\n submit: 'Submit logic',\n editSubmit: 'Edit submit logic',\n sections: {\n basic: 'Basic info',\n layout: 'Layout',\n status: 'Status',\n submit: 'Submit',\n },\n size: 'Control size',\n sizeDefault: \"Follow each field's own\",\n sizeSmall: 'Small',\n sizeMedium: 'Medium',\n sizeLarge: 'Large',\n disabled: 'Disable whole form',\n readonly: 'Read-only whole form',\n successMessage: 'Success message',\n successMessagePlaceholder: 'Leave empty to show nothing',\n successRedirect: 'Redirect after success',\n successRedirectPlaceholder: '/thank-you or https://example.com',\n submitText: 'Submit button text',\n resetText: 'Reset button text',\n showReset: 'Show reset button',\n },\n expression: {\n useExpressionValue: 'Use expression value',\n placeholder: 'e.g. $my_variable + 1',\n variablesNotFound: 'Variables not found: {vars}',\n parseError:\n \"This expression can't be parsed and won't be computed at runtime. Reference fields as $name and wrap strings in quotes, e.g. $name + ' Jr.'\",\n },\n condition: {\n useIf: 'Conditional render (if)',\n placeholder: 'e.g. $other == \"yes\" && $age >= 18',\n parseWarning:\n \"The built-in syntax can't parse this condition; it will be passed to FormKit as-is. If it isn't FormKit syntax, check field names, quotes and brackets\",\n requiredIf: 'Conditional required',\n disabledIf: 'Conditional disabled',\n readonlyIf: 'Conditional read-only',\n staticRequiredHint: 'Already set as required — conditional required has no effect',\n },\n ai: {\n tooltip: 'AI Assistant',\n placeholder: 'AI Assistant',\n promptPlaceholder: 'Prompt AI',\n emptyPrompt: 'Empty chat prompt!',\n emptyPromptDescription: 'Please enter a prompt to generate a form.',\n defaultInstructions: \"Generate a FormKit schema based on the user's description\",\n requestFailed: 'AI request failed',\n parseFailed: 'Could not parse the form schema returned by AI. Try again or rephrase.',\n },\n validation: {\n rulesTitle: 'Validation Rules',\n bothValuesMustBeSet: 'Both values must be set',\n accepted: { label: 'Accepted', tooltip: 'Value must be accepted (typically for checkboxes)' },\n required: { label: 'Required', tooltip: 'Value is required for completion' },\n email: { label: 'Email', tooltip: 'Input must be a valid email address' },\n number: { label: 'Number', tooltip: 'Input must be a valid numeric value' },\n lowercase: { label: 'Lowercase', tooltip: 'Input must be all lowercase letters' },\n uppercase: { label: 'Uppercase', tooltip: 'Input must be all uppercase letters' },\n url: { label: 'URL', tooltip: 'Input must be a valid URL' },\n alpha: { label: 'Alpha', tooltip: 'Input must only contain letters' },\n alpha_spaces: { label: 'Alpha spaces', tooltip: 'Input must only contain letters and spaces' },\n alphanumeric: { label: 'Alphanumeric', tooltip: 'Input must only contain letters and numbers' },\n symbol: { label: 'Symbol', tooltip: 'Input must only contain symbols' },\n contains_alpha: { label: 'Contains alpha', tooltip: 'Input must contain a letter' },\n contains_alphanumeric: {\n label: 'Contains alphanumeric',\n tooltip: 'Input must contain a letter or number',\n },\n contains_alpha_spaces: {\n label: 'Contains alpha spaces',\n tooltip: 'Input must contain a letter or space',\n },\n contains_symbol: { label: 'Contains symbol', tooltip: 'Input must contain a symbol' },\n contains_uppercase: {\n label: 'Contains uppercase',\n tooltip: 'Input must contain an uppercase letter',\n },\n contains_lowercase: {\n label: 'Contains lowercase',\n tooltip: 'Input must contain a lowercase letter',\n },\n contains_numeric: { label: 'Contains numeric', tooltip: 'Input must contain a number' },\n confirm: {\n label: 'Confirm',\n tooltip: 'Input must match another field value',\n placeholder: 'other_field_name',\n },\n min: {\n label: 'Minimum',\n tooltip: 'Number must be greater or equal to the given value',\n placeholder: '0',\n },\n max: {\n label: 'Maximum',\n tooltip: 'Number must be less than or equal to the given value',\n placeholder: '10',\n },\n matches: {\n label: 'Matches',\n tooltip:\n 'Input must match a particular value or pattern. If you pass multiple arguments, it checks each until a match is found',\n placeholder: '/[0-9]/',\n },\n matchesMessage: {\n label: 'Matches message',\n tooltip: 'Custom validation error message for matches rule',\n placeholder: 'Passwords must include a number.',\n },\n starts_with: {\n label: 'Starts with',\n tooltip: 'Value must start with given string',\n placeholder: 'Value',\n },\n ends_with: {\n label: 'Ends with',\n tooltip: 'Value must end with given string',\n placeholder: 'Value',\n },\n date_after: {\n label: 'Date after',\n tooltip: 'Input must be after the given date',\n placeholder: 'YYYY-MM-DD',\n },\n date_before: {\n label: 'Date before',\n tooltip: 'Input must be before the given date',\n placeholder: 'YYYY-MM-DD',\n },\n date_format: {\n label: 'Date format',\n tooltip: 'Date must match the given format',\n placeholder: 'YYYY-MM-DD',\n },\n date_between: { label: 'Date between', tooltip: 'Date must be between the given dates' },\n is: { label: 'Is', tooltip: 'Value must equal the given value', placeholder: 'Value' },\n not: { label: 'Not', tooltip: 'Value must not equal the given value', placeholder: 'Value' },\n require_one: {\n label: 'Require one',\n tooltip: 'At least one field in the given list must be completed',\n placeholder: 'field_one,field_two',\n },\n length: { label: 'Length', tooltip: 'Sentence length must be between min and max.' },\n between: { label: 'Between', tooltip: 'Number is (inclusively) between two other numbers' },\n minLabel: 'Min',\n maxLabel: 'Max',\n },\n edits: {\n sections: {\n basic: 'Basic',\n options: 'Options',\n appearance: 'Appearance',\n behavior: 'Behavior',\n logic: 'Logic',\n events: 'Events',\n },\n content: {\n text: 'Content',\n title: 'Title',\n content: 'Content',\n description: 'Description',\n },\n inlineEditHint: 'Double-click to edit content',\n placeholder: {\n label: 'Enter label',\n help: 'Enter help text',\n placeholder: 'Enter placeholder',\n text: 'Enter text',\n dividerTitle: 'Divider title',\n addItems: 'Add Items...',\n fieldName: 'field_name',\n prefix: 'Text or icon class',\n suffix: 'Text or icon class',\n },\n pair: {\n label: 'pair',\n separatorLabel: 'separator',\n separatorPlaceholder: 'e.g. -',\n },\n optionsSource: {\n title: 'Options source',\n labelList: 'Labels',\n addPairRow: 'Add row',\n pairLabelPlaceholder: 'label',\n pairValuePlaceholder: 'value',\n endpointPlaceholder: 'https://api.example.com/options',\n dictInputPlaceholder: 'Dictionary code',\n dictBrowse: 'Browse',\n dictPickerTitle: 'Select dictionary',\n dictCode: 'Code',\n dictLabel: 'Label',\n dictAction: 'Action',\n dictChoose: 'Choose',\n dictCodePlaceholder: 'Filter by code',\n dictLabelPlaceholder: 'Filter by label',\n dictSearch: 'Search',\n dictEmpty: 'No data',\n dictProviderMissing:\n 'No dictionary methods configured. Pass fetchDictionary / fetchDictionaryPage in BuilderProvider config.',\n treeDictProviderMissing:\n 'No tree dictionary methods configured. Pass fetchTreeDictionary / fetchTreeDictionaryPage in BuilderProvider config.',\n dictCancel: 'Cancel',\n jsonParseError: 'Invalid JSON',\n jsonArrayError: 'Options must be a JSON array',\n tabs: {\n label: 'label',\n pair: 'pair',\n json: 'json',\n dynamicDict: 'Dynamic Dict',\n dynamicTreeDict: 'Dynamic Tree Dict',\n },\n },\n optionsLayout: {\n horizontal: 'Horizontal',\n },\n image: {\n sizeModeLabel: 'Size mode',\n sizeModeRatio: 'Ratio',\n sizeModeFill: 'Fill row',\n sizeModeFixed: 'Fixed size',\n aspectRatioLabel: 'Aspect ratio',\n aspectRatioOriginal: 'Original',\n minHeightLabel: 'Min height (px)',\n minHeightPlaceholder: '120',\n fillRowSpanHint:\n 'Height is stretched by \"Row span\" below; falls back to min height when the row has no taller field',\n srcLabel: 'Image src',\n srcPlaceholder: 'https://...',\n altLabel: 'Alt text',\n altPlaceholder: 'Image description',\n widthLabel: 'Width',\n widthPlaceholder: '240',\n heightLabel: 'Height',\n heightPlaceholder: '160',\n objectFitLabel: 'Object fit',\n previewDisabledLabel: 'Disable preview',\n lazyLabel: 'Lazy',\n },\n grid: {\n rowSpanLabel: 'Row span',\n colSpanLabel: 'Column span',\n },\n optionsLabel: 'Add Items to List',\n label: 'Label',\n helpText: 'Help Text',\n customAttrs: {\n title: 'Custom Attributes',\n keyPlaceholder: 'Attribute key',\n valuePlaceholder: 'Attribute value',\n add: 'Add attribute',\n },\n name: 'Name',\n placeholderLabel: 'Placeholder',\n items: 'Items',\n optionsJsonLabel: 'Options (JSON)',\n nameRequired: 'Field name is required',\n nameFormat:\n 'Field name may only contain letters, numbers and underscores, and cannot start with a digit',\n nameExists: 'Field name already exists',\n nameReserved:\n 'Field name cannot start with \"{prefix}\" (reserved for built-in condition functions)',\n button: {\n textPlaceholder: 'Button text',\n },\n file: {\n numberOfFiles: 'Number of files',\n multiple: 'Multiple',\n single: 'Single',\n },\n number: {\n decimal: 'Decimal',\n integer: 'Integer',\n },\n props: {\n size: 'Size',\n disabled: 'Disabled',\n clearable: 'Clearable',\n bordered: 'Bordered',\n readonly: 'Readonly',\n round: 'Round',\n autofocus: 'Autofocus',\n showCount: 'Show count',\n showPasswordOn: 'Show password on',\n maxlength: 'Max length',\n minlength: 'Min length',\n type: 'Type',\n theme: 'Theme',\n depth: 'Depth',\n align: 'Align',\n placement: 'Placement',\n block: 'Block',\n circle: 'Circle',\n dashed: 'Dashed',\n focusable: 'Focusable',\n fullWidth: 'Full width',\n ghost: 'Ghost',\n secondary: 'Secondary',\n embedded: 'Embedded',\n hoverable: 'Hoverable',\n filterable: 'Filterable',\n multiple: 'Multiple',\n vertical: 'Vertical',\n show: 'Show',\n right: 'Right',\n bottom: 'Bottom',\n visibilityHeight: 'Visibility height',\n animated: 'Animated',\n closable: 'Closable',\n strong: 'Strong',\n italic: 'Italic',\n underline: 'Underline',\n delete: 'Strikethrough',\n code: 'Inline code',\n target: 'Target',\n href: 'Href',\n src: 'Src',\n count: 'Count',\n allowHalf: 'Allow half',\n titlePlacement: 'Title placement',\n showIcon: 'Show icon',\n text: 'Text',\n fallbackText: 'Fallback text',\n valueFormat: 'Value format',\n prefix: 'Prefix',\n suffix: 'Suffix',\n value: 'Badge value',\n max: 'Max value',\n dot: 'Dot mode',\n showZero: 'Show zero',\n processing: 'Ripple animation',\n color: 'Badge color',\n offsetX: 'Horizontal offset',\n offsetY: 'Vertical offset',\n padding: 'Padding',\n errorCorrectionLevel: 'Error correction level',\n backgroundColor: 'Background color',\n percentage: 'Percentage',\n showIndicator: 'Show indicator',\n height: 'Height',\n strokeWidth: 'Stroke width',\n railColor: 'Rail color',\n valuePlaceholder: 'e.g. 5 / NEW / $count',\n append: 'Append after select',\n status: 'Validation status',\n getShow: 'Show menu on focus (getShow)',\n getShowHint:\n 'Decide whether to show the menu while focused, based on the input value. Param: value (current input), return a boolean. Example:\\nvalue.length >= 2',\n },\n pickerType: {\n date: 'Date',\n datetime: 'Date & Time',\n daterange: 'Date Range',\n datetimerange: 'Date & Time Range',\n month: 'Month',\n monthrange: 'Month Range',\n year: 'Year',\n yearrange: 'Year Range',\n quarter: 'Quarter',\n quarterrange: 'Quarter Range',\n week: 'Week',\n },\n dataTable: {\n rowKey: 'Row key',\n rowKeyPlaceholder: 'e.g. id',\n columns: 'Columns',\n columnsPlaceholder: '[{ \"key\": \"name\", \"title\": \"Name\", \"width\": 140, \"render\": \"text\" }]',\n data: 'Fixed data',\n dataPlaceholder: '[{ \"name\": \"John\", \"id\": 1 }]',\n size: 'Size',\n pagination: 'Enable pagination',\n remote: 'Remote pagination',\n searchExpandable: 'Search area expandable',\n bordered: 'Bordered',\n getData: 'Remote data (getData code)',\n getDataHint:\n \"Params: page · pageSize · form data · id · version · axios. Return { data, total } or an array.\\nExample:\\nconst { data, total } = await axios.get('/api/list', { params: { page, pageSize } })\\nreturn data\",\n createData: 'Remote create (createData code)',\n createDataHint:\n \"Params: row new row · form data · id · version · axios. Return created row or void.\\nExample:\\nconst { data } = await axios.post('/api/create', row)\\nreturn data\",\n updateData: 'Remote update (updateData code)',\n updateDataHint:\n \"Params: row edited row · form data · id · version · axios. Return updated row or void.\\nExample:\\nconst { data } = await axios.put('/api/update', row)\\nreturn data\",\n deleteData: 'Remote delete (deleteData code)',\n deleteDataHint:\n \"Params: row row to delete · form data · id · version · axios.\\nExample:\\nawait axios.delete('/api/delete/' + row.id)\",\n allowAdd: 'Enable add',\n allowEdit: 'Enable edit',\n allowDelete: 'Enable delete',\n pageSize: 'Page size',\n scrollX: 'Scroll width (scrollX)',\n scrollXPlaceholder: 'e.g. 1200',\n modalWidth: 'Modal width (px)',\n modalWidthPlaceholder: 'e.g. 520',\n column: 'Column',\n columnKey: 'Field key',\n columnKeyPlaceholder: 'e.g. name',\n columnTitle: 'Column title',\n columnTitlePlaceholder: 'e.g. Name',\n columnWidth: 'Width (px)',\n columnWidthPlaceholder: 'Auto if empty',\n columnColspan: 'Add dialog column span (colspan)',\n columnColspanPlaceholder: '1-12, full row if empty',\n columnColspanFull: 'Full row (default)',\n columnAlign: 'Alignment',\n columnEllipsis: 'Ellipsis',\n columnSortable: 'Sortable',\n columnRender: 'Cell render',\n columnRenderPlaceholder: 'Plain text',\n columnElement: 'Source element',\n columnTab: 'Column',\n elementTab: 'Element',\n elementNone: 'This column has no source element',\n columnRenderProps: 'Render props',\n columnRenderPropsPlaceholder: '{ \"size\": \"small\", \"options\": [...] }',\n columnsError: 'Columns must be an array JSON',\n dataError: 'Fixed data must be an array JSON',\n basicGroup: 'Basic',\n columnsGroup: 'Columns',\n sourceGroup: 'Data source',\n operationsGroup: 'Data operations',\n paginationGroup: 'Pagination',\n searchGroup: 'Search area',\n advancedGroup: 'Advanced · JSON',\n sourceFixed: 'Fixed data',\n sourceRemote: 'Remote API',\n dataCount: '{count} rows total',\n editData: 'Edit data',\n codeConfigured: 'Configured',\n codeUnconfigured: 'Not configured',\n columnListEmpty: 'No columns yet, click the button below to add one',\n addColumn: 'Add column',\n searchFieldsHint: '{count} search conditions, drag onto the canvas or add one',\n columnEditorBack: 'Data table',\n columnEditorTitle: 'Column: {title}',\n columnEditorIndex: '{current} / {total}',\n columnEditorPrev: 'Previous column',\n columnEditorNext: 'Next column',\n },\n // A1: rich text field editor panel\n richText: {\n minHeightLabel: 'Min height (px)',\n maxLengthLabel: 'Max length',\n maxLengthPlaceholder: 'No limit',\n toolbarLabel: 'Toolbar',\n charCountWithMax: '{count}/{max} chars',\n linkPlaceholder: 'Paste or type a URL',\n toolbar: {\n bold: 'Bold',\n italic: 'Italic',\n underline: 'Underline',\n strike: 'Strikethrough',\n heading: 'Heading',\n headingH2: 'Heading 2',\n headingH3: 'Heading 3',\n headingNormal: 'Paragraph',\n bulletList: 'Bullet list',\n orderedList: 'Numbered list',\n blockquote: 'Blockquote',\n link: 'Insert link',\n clear: 'Clear formatting',\n undo: 'Undo',\n redo: 'Redo',\n },\n },\n // A2: signature field editor panel\n signature: {\n heightLabel: 'Height (px)',\n strokeColorLabel: 'Stroke color',\n strokeWidthLabel: 'Stroke width',\n undoLabel: 'Undo last stroke',\n clearLabel: 'Clear',\n emptyHint: 'Sign here',\n },\n // A3: collapse container editor panel\n collapse: {\n defaultExpandedLabel: 'Expanded by default',\n disableCollapseLabel: 'Disable collapsing (always expanded)',\n defaultCollapsedTag: 'Collapsed by default',\n },\n },\n fieldProps: {\n category: {\n fields: 'Fields',\n containers: 'Containers',\n layouts: 'Layouts',\n static: 'Static',\n },\n tooltip: {\n text: 'Allows user to enter text',\n email: 'Allows user to enter email',\n color: 'Allows user to select color',\n number: 'Allows user to enter number',\n checkbox: 'Allows user to select multiple options',\n date: 'Allows user to select date',\n datetimeLocal: 'Allows user to select date and time',\n dateTime: 'Allows user to select date and time',\n file: 'Allows user to upload file',\n password: 'Allows user to enter password',\n radio: 'Allows user to select single option',\n range: 'Allows user to select between a range of values',\n select: 'Allows user to select from a list of options',\n naiveCascader: 'Allows user to select from a cascader',\n naiveTreeSelect: 'Allows user to select from a tree',\n naiveTransfer: 'Allows user to transfer items between lists',\n naiveMention: 'Allows user to mention options',\n naiveAutoComplete: 'Allows user to type with auto-complete suggestions',\n naiveRate: 'Allows user to rate with stars',\n naiveSwitch: 'Allows user to toggle a boolean value',\n naiveAvatar: 'Avatar display',\n naiveImage: 'Image display',\n tel: 'Allows user to enter telephone number',\n textarea: 'Allows user to enter multiple lines of text',\n time: 'Allows user to select time',\n url: 'Allows user to enter url',\n submit: 'Allows user to submit form',\n reset: 'Allows user to reset form',\n naiveButton: 'Naive UI button',\n naiveText: 'Typography text',\n naiveP: 'Typography paragraph',\n naiveA: 'Typography link',\n naiveBlockquote: 'Typography blockquote',\n naiveH1: 'Typography H1',\n naiveH2: 'Typography H2',\n naiveH3: 'Typography H3',\n naiveH4: 'Typography H4',\n naiveH5: 'Typography H5',\n naiveH6: 'Typography H6',\n naiveUl: 'Typography unordered list',\n naiveOl: 'Typography ordered list',\n naiveLi: 'Typography list item',\n naiveDivider: 'Naive UI divider',\n naiveAlert: 'Naive UI alert',\n naiveBackTop: 'BackTop (floating button)',\n naiveQrCode: 'QR code display',\n naiveProgress: 'Progress bar (NProgress)',\n list: 'Allows user to group fields into an array',\n nestedList: 'Nested list (with built-in group)',\n card: 'Card container',\n inputGroup: 'Input group (NInputGroup)',\n buttonGroup: 'Button group (NButtonGroup)',\n badge: 'Badge (NBadge)',\n tabs: 'Tabs container',\n steps: 'Steps wizard (NSteps)',\n group: 'Nested object field group',\n dataTable: 'Data table',\n richText: 'Rich text editor',\n signature: 'Handwritten signature',\n collapse: 'Collapsible panel container',\n },\n },\n elements: {\n common: {\n help: 'This is help text',\n selectPlaceholder: 'Select...',\n loadError: 'Component failed to load',\n },\n text: {\n name: 'Text',\n label: 'Client Name',\n placeholder: 'Enter your name',\n description: 'Single line text field',\n },\n textarea: {\n name: 'Text Area',\n label: 'Client Address',\n placeholder: 'Enter your address',\n description: 'Multi-line text field',\n },\n email: {\n name: 'Email',\n label: 'Client Email',\n placeholder: 'Enter your email',\n description: 'Email field input',\n },\n number: {\n name: 'Number',\n label: 'Client Age',\n placeholder: 'Enter your age',\n description: 'Single number input',\n },\n url: {\n name: 'URL',\n label: 'URL Field',\n placeholder: 'https://www.example.com',\n description: 'URL field input',\n },\n checkbox: {\n name: 'Checkbox',\n label: 'Label For Checkbox',\n description: 'Multiple choice checkbox',\n },\n color: { name: 'Color', label: 'Color Field', description: 'Color picker' },\n date: { name: 'Date', label: 'Date Field', description: 'Date input picker' },\n time: { name: 'Time', label: 'Time Field', description: 'Time input picker' },\n datetimeLocal: {\n name: 'Date-Time',\n label: 'Date Time Local Field',\n description: 'Date and time input',\n },\n dateTime: { name: 'Date-Time', label: 'Date Time Field', description: 'Date and time input' },\n file: {\n name: 'File Picker',\n label: 'File Field',\n help: 'Accepts .pdf, .doc, .docx, .xml, .md, .csv, .jpg, .png, .webp',\n description: 'One or more file uploads',\n },\n password: {\n name: 'Password',\n label: 'Password Field',\n placeholder: 'Enter your password',\n description: 'Password masked field',\n },\n radio: { name: 'Radio', label: 'Radio Field', description: 'Single choice select' },\n range: { name: 'Range', label: 'Range Field', description: 'Slider field input' },\n select: { name: 'Dropdown Select', label: 'Select Field', description: 'Selection dropdown' },\n naiveCascader: {\n name: 'Naive Cascader',\n label: 'Cascader Field',\n description: 'Cascader selection',\n },\n naiveTreeSelect: {\n name: 'Naive Tree Select',\n label: 'Tree Select Field',\n description: 'Tree selection',\n },\n naiveTransfer: {\n name: 'Naive Transfer',\n label: 'Transfer Field',\n description: 'Transfer selection',\n },\n naiveMention: {\n name: 'Naive Mention',\n label: 'Mention Field',\n placeholder: 'Type @ to mention',\n description: 'Mention input',\n },\n naiveAutoComplete: {\n name: 'Naive Auto Complete',\n label: 'Auto Complete Field',\n placeholder: 'Type to search...',\n description: 'Input with auto-complete',\n },\n naiveRate: { name: 'Naive Rate', label: 'Rate Field', description: 'Rating input' },\n naiveSwitch: { name: 'Naive Switch', label: 'Switch Field', description: 'Boolean switch' },\n naiveAvatar: { name: 'Naive Avatar', label: 'Avatar', description: 'Avatar display' },\n naiveImage: { name: 'Naive Image', label: 'Image', description: 'Image display' },\n naiveText: { name: 'Text', description: 'Typography text' },\n naiveP: { name: 'Paragraph', description: 'Typography paragraph' },\n naiveA: { name: 'Link', description: 'Typography link' },\n naiveBlockquote: { name: 'Blockquote', description: 'Typography blockquote' },\n naiveH1: { name: 'Heading H1', description: 'Heading' },\n naiveH2: { name: 'Heading H2', description: 'Heading' },\n naiveH3: { name: 'Heading H3', description: 'Heading' },\n naiveH4: { name: 'Heading H4', description: 'Heading' },\n naiveH5: { name: 'Heading H5', description: 'Heading' },\n naiveH6: { name: 'Heading H6', description: 'Heading' },\n naiveUl: { name: 'Unordered List', description: 'Unordered list' },\n naiveOl: { name: 'Ordered List', description: 'Ordered list' },\n naiveLi: { name: 'List Item', description: 'List item' },\n naiveDivider: { name: 'Divider', description: 'Divider' },\n naiveAlert: { name: 'Alert', label: 'Alert', description: 'Alert' },\n naiveBackTop: {\n name: 'Back Top',\n description: 'Back-to-top button (can be used as a floating button)',\n },\n naiveQrCode: {\n name: 'QR Code',\n label: 'QR Code',\n description: 'QR code display',\n },\n naiveProgress: {\n name: 'Progress',\n label: 'Progress',\n description: 'Progress bar display (NProgress)',\n },\n tel: {\n name: 'Telephone Number',\n label: 'Tel Field',\n placeholder: '(+XX) XXXXXXXXXX',\n description: 'Telephone input field',\n },\n naiveButton: { name: 'Button', label: 'Button', description: 'Button' },\n submit: { name: 'Submit Button', label: 'Submit', description: 'Allows form submission' },\n reset: { name: 'Reset Button', label: 'Reset', description: 'Resets form values' },\n list: { name: 'List', label: 'List', description: 'Array grouping of fields' },\n nestedList: {\n name: 'Nested List',\n label: 'Nested List',\n description: 'List with built-in group: drop fields to produce an object array [{...}]',\n },\n card: { name: 'Card', label: 'Card', description: 'Card container with children' },\n inputGroup: {\n name: 'Input Group',\n label: 'Input Group',\n description: 'Input group container (horizontal only)',\n },\n buttonGroup: {\n name: 'Button Group',\n label: 'Button Group',\n description: 'Button group container (can be disabled as a whole)',\n },\n badge: {\n name: 'Badge',\n label: 'Badge',\n description: 'Badge container (accepts a single element, the dot overlays it)',\n },\n tabs: { name: 'Tabs', label: 'Tabs', description: 'Tabs container' },\n steps: {\n name: 'Steps wizard',\n label: 'Steps wizard',\n description: 'Steps wizard (root canvas only, single instance per form)',\n },\n group: {\n name: 'Group',\n label: 'Group',\n description: 'Nested object field group',\n },\n dataTable: {\n name: 'Data Table',\n label: 'Data Table',\n description: 'Data table (fixed / remote data, pagination support)',\n },\n richText: {\n name: 'Rich Text',\n label: 'Rich text field',\n placeholder: 'Enter content...',\n description: 'Rich text editor with basic formatting and links',\n },\n signature: {\n name: 'Signature',\n label: 'Signature',\n description: 'Handwritten signature, value is a PNG data URL',\n },\n collapse: {\n name: 'Collapse',\n label: 'Collapse',\n description: 'Collapsible section container; stack several for an accordion',\n },\n },\n // E2: header \"History\" panel\n history: {\n entry: 'History',\n empty: 'No history yet',\n current: 'Current',\n justNow: 'Just now',\n minutesAgo: '{n} min ago',\n hoursAgo: '{n} hr ago',\n daysAgo: '{n} day(s) ago',\n // reason -> action label; unregistered reasons fall back to default\n reasons: {\n default: 'Edited',\n initial: 'Initial state',\n cut: 'Cut element',\n reorder: 'Moved element',\n paste: 'Pasted element',\n wrap: 'Wrapped in container',\n convertType: 'Converted type',\n batchEdit: 'Batch edit',\n import: 'Imported',\n applyTemplate: 'Applied template',\n ai: 'Generated with AI',\n clear: 'Cleared canvas',\n delete: 'Deleted element',\n duplicate: 'Duplicated element',\n containerChildren: 'Updated container content',\n inlineEdit: 'Edited inline',\n fieldEdit: 'Edited field',\n resize: 'Resized column',\n deleteColumn: 'Deleted column',\n dnd: 'Reordered',\n rename: 'Renamed',\n formName: 'Changed form name',\n formId: 'Changed form ID',\n formVersion: 'Changed version',\n formLabelPosition: 'Changed label position',\n formLabelWidth: 'Changed label width',\n formSubmit: 'Changed submit logic',\n formSize: 'Changed control size',\n formDisabled: 'Changed disabled state',\n formReadonly: 'Changed readonly state',\n formSuccessMessage: 'Changed success message',\n formSuccessRedirect: 'Changed success redirect',\n formShowReset: 'Changed reset button visibility',\n formSubmitText: 'Changed submit button text',\n formResetText: 'Changed reset button text',\n },\n },\n // E1: structure tree node actions (delete button already lives in sidebar-left;\n // this only adds duplicate / rename)\n structure: {\n duplicateNode: 'Duplicate',\n renameHint: 'Double-click to rename',\n renamePlaceholder: 'Enter a name',\n },\n // H1: field rename syncing references (NameInput.vue toast)\n rename: {\n refsUpdated: 'Updated {count} reference(s)',\n },\n // H2: header \"check\" entry + issues panel\n issues: {\n entry: 'Check',\n empty: 'No issues found',\n groupError: 'Errors',\n groupWarning: 'Warnings',\n groupInfo: 'Info',\n // Location label for data-table column issues: {table} is the table element's\n // display name, {column} is the column title\n columnLocation: '{table} · column \"{column}\"',\n codes: {\n 'duplicate-name': 'Duplicate field name \"{name}\" ({count} occurrences in the same scope)',\n 'unknown-field-ref': 'References a field that does not exist: \"{field}\"',\n 'confirm-unknown-field': 'Confirm rule points to a field that does not exist: \"{field}\"',\n 'unparsed-expr': 'Expression could not be parsed, check the syntax',\n 'missing-options': 'No options set, and not a dynamic dictionary',\n 'missing-label': 'No label set',\n },\n },\n} as const\n","export default {\n common: {\n selectFieldToEdit: '请选择一个字段来编辑属性',\n cancel: '取消',\n confirm: '确认',\n save: '保存',\n edit: '编辑',\n /** 复制副本 label 追加的后缀(H6),前导空格是有意的(“文本 副本”) */\n copySuffix: ' 副本',\n },\n sidebar: {\n search: '搜索...',\n elements: '元素',\n structure: '结构',\n structureEmpty: '暂无结构,请先在画布中添加元素',\n // F:最近使用 / 搜索结果分类小标题 / 无结果提示\n recentlyUsed: '最近使用',\n clearRecent: '清除',\n noResults: '没有找到匹配的元素',\n clearSearch: '清空搜索',\n },\n builder: {\n clearForm: '清空表单',\n previewForm: '预览表单',\n undo: '撤销',\n redo: '重做',\n undoTooltip: '撤销(Ctrl/Cmd+Z)',\n redoTooltip: '重做(Ctrl/Cmd+Shift+Z 或 Ctrl/Cmd+Y)',\n deleteField: '删除字段',\n duplicateField: '复制字段',\n resizeFieldWidth: '调整字段宽度',\n // D:画布交互——浮动工具条 / 右键菜单 / 快捷键共用的命令文案\n commands: {\n more: '更多操作',\n copy: '复制',\n cut: '剪切',\n paste: '粘贴',\n duplicate: '复制一份',\n duplicateTooltip: '复制一份(Ctrl/Cmd+D)',\n moveUp: '上移',\n moveUpTooltip: '上移',\n moveDown: '下移',\n moveDownTooltip: '下移',\n deleteTooltip: '删除(Delete)',\n wrapIn: '包进容器',\n convertTo: '转换为',\n selectAllRoot: '全选根级元素',\n crossContainerNotice: '多选仅支持同一容器下的相邻元素,已切换为单选',\n batchSelected: '已选 {count} 个元素',\n batchHeader: '批量操作',\n batchDelete: '删除',\n batchDuplicate: '复制',\n batchWrap: '包进容器',\n batchWrapAs: '包进{name}',\n // I1:批量设置(多选批量改属性)\n batchSettingsTitle: '批量设置',\n batchColSpan: '占用列数',\n batchColSpanMixed: '混合',\n batchRequired: '必填',\n batchDisabled: '禁用',\n batchSize: '尺寸',\n batchSizeFollowForm: '跟随表单',\n batchOn: '开',\n batchOff: '关',\n batchMixed: '混合',\n batchApplyScope: '将作用于 {n} / {m} 个元素',\n },\n clearConfirm: '确定要清空吗?这会永久删除你创建的表单。',\n creatingForm: '正在生成新表单...',\n desktopView: '桌面视图',\n tabletView: '平板视图',\n mobileView: '手机视图',\n importExportSchema: '导入 / 导出 Schema',\n switchLanguage: '切换语言',\n previewTitle: '表单预览',\n previewDescription: '预览表单并测试其功能。',\n bindTitle: 'Bind',\n bindEvents: '事件',\n noEvents: '暂无事件',\n editEvent: '编辑事件',\n quickInsert: '快捷插入:',\n bindHint:\n '编写 JavaScript。可用参数:event(事件对象)、form(表单数据)、$form(表单元信息 {id,version,name})、$value(当前值)、$node(节点)、$name(字段名)、$get(name)(取字段值)、$slots(插槽)、attrs(节点配置)、ctx(全量)、axios(HTTP 请求)。点击上方快捷标签即可插入。',\n formDataTitle: '表单数据:',\n formSubmitted: '表单已提交!',\n listContainer: '列表容器',\n listAdd: '添加一项',\n listRemove: '删除容器',\n listDropHere: '拖拽字段到这里',\n addStep: '添加步骤',\n deleteStep: '删除步骤(默认保留第一个)',\n addTab: '新增标签',\n stepsConsolidateNotice: '已有内容已移入第 1 步',\n paneNameDuplicate: '名称「{name}」已被占用,请换一个',\n prevStep: '上一步',\n nextStep: '下一步',\n finish: '完成',\n dataTableFieldPicker: {\n search: '搜索字段类型',\n empty: '没有匹配的字段类型',\n },\n dataTableFixed: '固定数据',\n dataTableRemote: '远程数据',\n dataTableAddColumn: '新增一列',\n dataTableSearch: '搜索',\n dataTableAdd: '新增',\n dataTableRefresh: '刷新',\n dataTableAddRowTitle: '新增数据',\n dataTableEditRowTitle: '编辑数据',\n dataTableDeleteRowTitle: '删除数据',\n dataTableActions: '操作',\n dataTableReset: '重置',\n dataTableExpand: '展开',\n dataTableCollapse: '收起',\n dataTableSaveSuccess: '保存成功',\n dataTableSaveError: '保存失败',\n dataTableDeleteSuccess: '删除成功',\n dataTableDeleteError: '删除失败',\n // 数据表格画布(DataTableContainer)文案\n dataTableCanvas: {\n searchDragHint: '拖入字段,或',\n searchZoneLabel: '搜索区',\n addSearchCondition: '添加搜索条件',\n addConditionShort: '条件',\n columnMoveLeft: '左移',\n columnMoveRight: '右移',\n columnDuplicate: '复制列',\n columnDelete: '删除列',\n noColumns: '还没有列',\n addFirstColumn: '添加第一列',\n sampleDataLabel: '示例数据',\n remoteDataLabel: '远程数据 · 运行时由接口加载',\n remoteAddTooltip: '运行时由接口新增',\n totalCount: '共 {count} 条',\n perPage: '每页 {count} 条',\n pageSizeSuffix: '{count} 条/页',\n },\n // 数据表格固定数据编辑弹窗(DataTableDataGridModal)文案\n dataTableGrid: {\n title: '编辑数据',\n rowsCount: '{count} 行',\n addRow: '添加行',\n empty: '暂无数据',\n deleteRow: '删除行',\n },\n // B3:画布空状态引导卡片\n emptyCanvas: {\n title: '开始设计你的表单',\n dragTitle: '从左侧拖入元素',\n dragDescription: '在左侧面板选一个字段或容器,拖到这片区域即可开始',\n templateTitle: '从模板开始',\n templateDescription: '挑一个现成模板,快速搭好常见表单',\n aiTitle: '用 AI 生成',\n aiDescription: '在顶部输入需求,AI 帮你直接生成整份表单',\n },\n },\n // L:拖动元素到画布时的交互反馈(插入线宽度徽标 / 容器悬停标签 / 不可放置反馈)\n dnd: {\n insertBadge: {\n right: '放在右侧 · {width}/12',\n left: '放在左侧 · {width}/12',\n bottom: '放在下方 · {width}/12',\n top: '放在上方 · {width}/12',\n split: '拆分为 {a} + {b}',\n halve: '平分 {a} + {b}',\n },\n dropInto: '放入:{name}',\n reject: {\n notAllowed: '不能放在这里',\n },\n reason: {\n buttonGroupOnly: '按钮组只能放按钮',\n stepsExclusive: '已有步骤条,请拖入步骤内',\n noNestedSteps: '步骤内不能再放步骤向导',\n singleChildOnly: '该容器只能容纳一个元素',\n searchFieldsOnly: '搜索区只能放字段',\n },\n },\n importExport: {\n title: '导入 / 导出 Schema',\n tabDsl: 'DSL',\n tabFormkit: 'FormKit Schema',\n placeholder: '在这里粘贴表单 schema 的 JSON...',\n downloadJson: '下载 JSON',\n downloadJs: '下载 JS',\n saveAndImport: '保存并导入',\n schemaMustBeArray: 'Schema 必须是数组',\n importSuccess: 'Schema 导入成功',\n downloadedSuccess: 'Schema 下载成功',\n failedParseJson: '解析 JSON 失败:{message}',\n jsonInvalid: 'JSON 格式有误',\n jsonErrorLocation: '第 {line} 行第 {column} 列附近',\n failedGenerateDownload: '生成下载失败:JSON 无效',\n unknownError: '未知错误',\n },\n // B2:表单模板选择弹窗\n templates: {\n entry: '模板',\n modalTitle: '从模板开始',\n modalDescription: '选一个模板快速开始,之后仍可自由修改',\n fieldCount: '{count} 个字段',\n apply: '使用此模板',\n replaceConfirmTitle: '替换当前表单?',\n replaceConfirmContent: '应用模板会替换画布上的现有内容,此操作之后仍可撤销。',\n replaceConfirmOk: '替换',\n userRegistration: {\n name: '用户注册',\n description: '账号注册表单,包含用户名、密码、邮箱与条款确认',\n fieldUsername: '用户名',\n fieldUsernamePlaceholder: '请输入用户名',\n fieldPassword: '密码',\n fieldPasswordPlaceholder: '请输入密码',\n fieldEmail: '邮箱',\n fieldEmailPlaceholder: '请输入邮箱',\n fieldAgreement: '服务条款',\n fieldAgreementOption: '我已阅读并同意服务条款',\n },\n leaveApplication: {\n name: '请假申请',\n description: '员工请假申请,包含假期类型、起止日期与请假事由',\n fieldName: '姓名',\n fieldLeaveType: '请假类型',\n leaveTypeCasual: '事假',\n leaveTypeSick: '病假',\n leaveTypeAnnual: '年假',\n leaveTypeMarriage: '婚假',\n fieldStartDate: '开始日期',\n fieldEndDate: '结束日期',\n fieldReason: '请假原因',\n fieldReasonPlaceholder: '请简要说明请假原因',\n },\n satisfactionSurvey: {\n name: '满意度问卷',\n description: '服务满意度调研,包含评分题与单选题',\n fieldRating: '服务评分',\n fieldRecommend: '是否愿意推荐给他人',\n recommendYes: '愿意',\n recommendNo: '不愿意',\n fieldSuggestion: '其他建议',\n fieldSuggestionPlaceholder: '欢迎留下你的建议(选填)',\n },\n contactUs: {\n name: '联系我们',\n description: '访客留言表单,包含联系方式与多行留言内容',\n fieldName: '姓名',\n fieldEmail: '邮箱',\n fieldSubject: '主题',\n fieldMessage: '留言内容',\n fieldMessagePlaceholder: '请输入你想告诉我们的内容',\n },\n employeeRegistration: {\n name: '员工信息登记',\n description: '新员工档案登记,按卡片分组,包含日期与下拉选择',\n groupBasicInfo: '基本信息',\n groupWorkInfo: '工作信息',\n fieldName: '姓名',\n fieldGender: '性别',\n genderMale: '男',\n genderFemale: '女',\n fieldBirthDate: '出生日期',\n fieldDepartment: '部门',\n departmentTech: '技术部',\n departmentMarketing: '市场部',\n departmentHr: '人事部',\n departmentFinance: '财务部',\n fieldHireDate: '入职日期',\n fieldPosition: '职位',\n },\n },\n formSettings: {\n title: '表单设置',\n name: '表单名称',\n id: '表单 ID',\n version: '版本',\n labelPosition: 'Label 方向',\n labelWidth: 'Label 宽度',\n positionTop: '上方',\n positionLeft: '左侧',\n submit: '提交逻辑',\n editSubmit: '编辑提交逻辑',\n sections: {\n basic: '基本信息',\n layout: '布局',\n status: '状态',\n submit: '提交',\n },\n size: '控件尺寸',\n sizeDefault: '跟随字段自身',\n sizeSmall: '小',\n sizeMedium: '中',\n sizeLarge: '大',\n disabled: '整表禁用',\n readonly: '整表只读',\n successMessage: '成功提示',\n successMessagePlaceholder: '留空则不提示',\n successRedirect: '成功后跳转',\n successRedirectPlaceholder: '/thank-you 或 https://example.com',\n submitText: '提交按钮文字',\n resetText: '重置按钮文字',\n showReset: '显示重置按钮',\n },\n expression: {\n useExpressionValue: '使用表达式值',\n placeholder: '例如:$my_variable + 1',\n variablesNotFound: '未找到变量:{vars}',\n parseError:\n '无法解析这个表达式,运行时不会计算。字段写成 $字段名,字符串用英文或中文引号包裹,例如:$name + \"先生\"',\n },\n condition: {\n useIf: '条件渲染(if)',\n placeholder: '例如:$other == \"yes\" && $age >= 18',\n parseWarning:\n '内置语法无法解析这个条件,将原样交给 FormKit 求值;如果不是 FormKit 写法,请检查字段名、引号和括号',\n requiredIf: '条件必填',\n disabledIf: '条件禁用',\n readonlyIf: '条件只读',\n staticRequiredHint: '已设为必填,条件必填不生效',\n },\n ai: {\n tooltip: 'AI 助手',\n placeholder: 'AI 助手',\n promptPlaceholder: '让 AI 生成表单',\n emptyPrompt: '提示为空!',\n emptyPromptDescription: '请输入提示词以生成表单。',\n defaultInstructions: '根据用户描述生成 FormKit schema',\n requestFailed: 'AI 请求失败',\n parseFailed: '无法解析 AI 返回的表单 Schema,请重试或调整描述',\n },\n validation: {\n rulesTitle: '校验规则',\n bothValuesMustBeSet: '两个值都必须填写',\n accepted: { label: '已同意', tooltip: '必须勾选/同意(常用于复选框)' },\n required: { label: '必填', tooltip: '必须填写该字段才能提交' },\n email: { label: '邮箱', tooltip: '必须是合法的邮箱地址' },\n number: { label: '数字', tooltip: '必须是合法的数字' },\n lowercase: { label: '小写', tooltip: '必须全为小写字母' },\n uppercase: { label: '大写', tooltip: '必须全为大写字母' },\n url: { label: 'URL', tooltip: '必须是合法的 URL' },\n alpha: { label: '仅字母', tooltip: '只能包含字母' },\n alpha_spaces: { label: '字母空格', tooltip: '只能包含字母和空格' },\n alphanumeric: { label: '字母数字', tooltip: '只能包含字母和数字' },\n symbol: { label: '仅符号', tooltip: '只能包含符号' },\n contains_alpha: { label: '包含字母', tooltip: '必须包含一个字母' },\n contains_alphanumeric: { label: '包含字母数字', tooltip: '必须包含字母或数字' },\n contains_alpha_spaces: { label: '包含字母空格', tooltip: '必须包含字母或空格' },\n contains_symbol: { label: '包含符号', tooltip: '必须包含一个符号' },\n contains_uppercase: { label: '包含大写', tooltip: '必须包含一个大写字母' },\n contains_lowercase: { label: '包含小写', tooltip: '必须包含一个小写字母' },\n contains_numeric: { label: '包含数字', tooltip: '必须包含一个数字' },\n confirm: {\n label: '确认一致',\n tooltip: '必须与另一个字段的值一致',\n placeholder: 'other_field_name',\n },\n min: { label: '最小值', tooltip: '数字必须大于等于指定值', placeholder: '0' },\n max: { label: '最大值', tooltip: '数字必须小于等于指定值', placeholder: '10' },\n matches: {\n label: '匹配',\n tooltip: '输入必须匹配指定的值或正则;多个参数时将逐个尝试直到匹配',\n placeholder: '/[0-9]/',\n },\n matchesMessage: {\n label: '错误信息',\n tooltip: 'matches 规则的自定义错误提示',\n placeholder: '密码必须包含数字。',\n },\n starts_with: { label: '前缀', tooltip: '必须以指定字符串开头', placeholder: '值' },\n ends_with: { label: '后缀', tooltip: '必须以指定字符串结尾', placeholder: '值' },\n date_after: { label: '日期晚于', tooltip: '必须晚于指定日期', placeholder: 'YYYY-MM-DD' },\n date_before: { label: '日期早于', tooltip: '必须早于指定日期', placeholder: 'YYYY-MM-DD' },\n date_format: { label: '日期格式', tooltip: '必须符合指定日期格式', placeholder: 'YYYY-MM-DD' },\n date_between: { label: '日期区间', tooltip: '必须在指定日期区间内' },\n is: { label: '等于', tooltip: '必须等于指定值', placeholder: '值' },\n not: { label: '不等于', tooltip: '必须不等于指定值', placeholder: '值' },\n require_one: {\n label: '至少填一个',\n tooltip: '指定字段列表中至少有一个需要填写',\n placeholder: 'field_one,field_two',\n },\n length: { label: '长度区间', tooltip: '文本长度必须在最小值与最大值之间' },\n between: { label: '区间', tooltip: '数字必须在两个数值之间(包含边界)' },\n minLabel: '最小值',\n maxLabel: '最大值',\n },\n edits: {\n sections: {\n basic: '基础',\n options: '选项',\n appearance: '外观',\n behavior: '行为',\n logic: '逻辑',\n events: '事件',\n },\n content: {\n text: '内容',\n title: '标题',\n content: '内容',\n description: '描述',\n },\n inlineEditHint: '双击编辑内容',\n placeholder: {\n label: '请输入 Label',\n help: '请输入帮助文本',\n placeholder: '请输入占位文本',\n text: '请输入文本',\n dividerTitle: '请输入分割线标题',\n addItems: '添加条目...',\n fieldName: '字段名',\n prefix: '文字或 图标类名',\n suffix: '文字或 图标类名',\n },\n pair: {\n label: 'pair',\n separatorLabel: 'separator',\n separatorPlaceholder: '例如:-',\n },\n optionsSource: {\n title: '选项数据来源',\n labelList: 'Labels',\n addPairRow: '添加一行',\n pairLabelPlaceholder: 'label',\n pairValuePlaceholder: 'value',\n endpointPlaceholder: 'https://api.example.com/options',\n dictInputPlaceholder: '字典编码',\n dictBrowse: '查找',\n dictPickerTitle: '选择字典',\n dictCode: '编码',\n dictLabel: '名称',\n dictAction: '操作',\n dictChoose: '选择',\n dictCodePlaceholder: '按编码过滤',\n dictLabelPlaceholder: '按名称过滤',\n dictSearch: '查询',\n dictEmpty: '暂无数据',\n dictProviderMissing:\n '未配置字典方法,请在 BuilderProvider 的 config 中传入 fetchDictionary / fetchDictionaryPage',\n treeDictProviderMissing:\n '未配置树型字典方法,请在 BuilderProvider 的 config 中传入 fetchTreeDictionary / fetchTreeDictionaryPage',\n dictCancel: '取消',\n jsonParseError: 'JSON 格式错误',\n jsonArrayError: 'Options 必须是数组 JSON',\n tabs: {\n label: 'label',\n pair: '成对值',\n json: 'json',\n dynamicDict: '动态字典',\n dynamicTreeDict: '动态树字典',\n },\n },\n optionsLayout: {\n horizontal: '水平排列',\n },\n image: {\n sizeModeLabel: '尺寸模式',\n sizeModeRatio: '按比例',\n sizeModeFill: '填满所占行',\n sizeModeFixed: '固定尺寸',\n aspectRatioLabel: '比例(aspect-ratio)',\n aspectRatioOriginal: '原图比例',\n minHeightLabel: '最小高度(px)',\n minHeightPlaceholder: '120',\n fillRowSpanHint: '高度由下方「占用行数」撑开,同行没有更高的字段时用最小高度兜底',\n srcLabel: '图片地址(src)',\n srcPlaceholder: 'https://...',\n altLabel: '替代文本(alt)',\n altPlaceholder: '图片描述',\n widthLabel: '宽度(width)',\n widthPlaceholder: '240',\n heightLabel: '高度(height)',\n heightPlaceholder: '160',\n objectFitLabel: '填充方式(object-fit)',\n previewDisabledLabel: '禁用预览(preview-disabled)',\n lazyLabel: '懒加载(lazy)',\n },\n grid: {\n rowSpanLabel: '占用行数',\n colSpanLabel: '占用列数',\n },\n optionsLabel: '添加选项',\n label: '标签',\n helpText: '帮助文本',\n customAttrs: {\n title: '自定义属性',\n keyPlaceholder: '属性名(key)',\n valuePlaceholder: '属性值(value)',\n add: '添加属性',\n },\n name: '名称',\n placeholderLabel: '占位符',\n items: '条目',\n optionsJsonLabel: 'Options (JSON)',\n nameRequired: '字段名不能为空',\n nameFormat: '字段名只能包含字母/数字/下划线,且不能以数字开头',\n nameExists: '字段名已存在',\n nameReserved: '字段名不能以 {prefix} 开头(保留给条件表达式的内置函数使用)',\n button: {\n textPlaceholder: '按钮文本',\n },\n file: {\n numberOfFiles: '文件数量',\n multiple: '多个',\n single: '单个',\n },\n number: {\n decimal: '小数',\n integer: '整数',\n },\n props: {\n size: '尺寸',\n disabled: '禁用',\n clearable: '可清除',\n bordered: '边框',\n readonly: '只读',\n round: '圆角',\n autofocus: '自动聚焦',\n showCount: '显示字数',\n showPasswordOn: '显示密码方式',\n maxlength: '最大长度',\n minlength: '最小长度',\n type: '类型',\n theme: '主题',\n depth: '层级',\n align: '对齐',\n placement: '位置',\n block: '通栏',\n circle: '圆形',\n dashed: '虚线',\n focusable: '可聚焦',\n fullWidth: '全宽',\n ghost: '幽灵按钮',\n secondary: '次级按钮',\n embedded: '内嵌',\n hoverable: '悬停效果',\n filterable: '可搜索',\n multiple: '多选',\n vertical: '垂直排列',\n show: '显示',\n right: '右侧距离',\n bottom: '底部距离',\n visibilityHeight: '触发高度',\n animated: '动画',\n closable: '可关闭',\n strong: '加粗',\n italic: '斜体',\n underline: '下划线',\n delete: '删除线',\n code: '行内代码',\n target: '打开方式',\n href: '链接地址',\n src: '图片地址',\n count: '数量',\n allowHalf: '允许半选',\n titlePlacement: '标题位置',\n showIcon: '显示图标',\n text: '文本',\n fallbackText: '兜底文本',\n valueFormat: '值格式',\n prefix: '前缀',\n suffix: '后缀',\n value: '徽标值',\n max: '最大显示值',\n dot: '圆点模式',\n showZero: '显示 0',\n processing: '涟漪动画',\n color: '标记颜色',\n offsetX: '水平偏移',\n offsetY: '垂直偏移',\n padding: '内边距',\n errorCorrectionLevel: '纠错级别',\n backgroundColor: '背景色',\n percentage: '百分比',\n showIndicator: '显示进度文案',\n height: '高度',\n strokeWidth: '描边宽度',\n railColor: '轨道颜色',\n valuePlaceholder: '如:5 / NEW / $count',\n append: '选中后追加',\n status: '验证状态',\n getShow: '聚焦时是否显示菜单(getShow)',\n getShowHint:\n '根据输入值在聚焦的状态中决定是否显示菜单。可用参数:value(当前输入值),返回布尔值。示例:\\nvalue.length >= 2',\n },\n pickerType: {\n date: '日期',\n datetime: '日期时间',\n daterange: '日期范围',\n datetimerange: '日期时间范围',\n month: '月份',\n monthrange: '月份范围',\n year: '年份',\n yearrange: '年份范围',\n quarter: '季度',\n quarterrange: '季度范围',\n week: '周',\n },\n dataTable: {\n rowKey: '行主键(rowKey)',\n rowKeyPlaceholder: '如:id',\n columns: '列配置(columns)',\n columnsPlaceholder: '[{ \"key\": \"name\", \"title\": \"姓名\", \"width\": 140, \"render\": \"text\" }]',\n data: '固定数据(data)',\n dataPlaceholder: '[{ \"name\": \"张三\", \"id\": 1 }]',\n size: '尺寸',\n pagination: '启用分页',\n remote: '远程分页',\n searchExpandable: '搜索区可展开',\n bordered: '显示边框',\n getData: '远程数据获取(getData 代码)',\n getDataHint:\n \"可用参数:page · pageSize · form 表单数据 · id · version · axios。返回 { data, total } 或数组。示例:\\nconst { data, total } = await axios.get('/api/list', { params: { page, pageSize } })\\nreturn data\",\n createData: '远程新增(createData 代码)',\n createDataHint:\n \"可用参数:row 新增行数据 · form 表单数据 · id · version · axios。返回新增后的行或 void。示例:\\nconst { data } = await axios.post('/api/create', row)\\nreturn data\",\n updateData: '远程编辑(updateData 代码)',\n updateDataHint:\n \"可用参数:row 编辑后行数据 · form 表单数据 · id · version · axios。返回更新后的行或 void。示例:\\nconst { data } = await axios.put('/api/update', row)\\nreturn data\",\n deleteData: '远程删除(deleteData 代码)',\n deleteDataHint:\n \"可用参数:row 待删除行 · form 表单数据 · id · version · axios。示例:\\nawait axios.delete('/api/delete/' + row.id)\",\n allowAdd: '支持新增',\n allowEdit: '支持编辑',\n allowDelete: '支持删除',\n pageSize: '每页条数',\n scrollX: '固定列总宽(scrollX)',\n scrollXPlaceholder: '如:1200',\n modalWidth: '新增弹窗宽度(px)',\n modalWidthPlaceholder: '如:520',\n column: '列',\n columnKey: '字段名(key)',\n columnKeyPlaceholder: '如:name',\n columnTitle: '表头文案(title)',\n columnTitlePlaceholder: '如:姓名',\n columnWidth: '列宽(width,px)',\n columnWidthPlaceholder: '留空自动',\n columnColspan: '新增弹窗占用列数(colspan)',\n columnColspanPlaceholder: '1-12,留空整行',\n columnColspanFull: '整行(默认)',\n columnAlign: '对齐(align)',\n columnEllipsis: '过长省略(ellipsis)',\n columnSortable: '可排序(sortable)',\n columnRender: '单元格渲染(render)',\n columnRenderPlaceholder: '纯文本',\n columnElement: '来源元素',\n columnTab: '列属性',\n elementTab: '元素属性',\n elementNone: '该列未保存来源元素',\n columnRenderProps: '渲染配置(renderProps)',\n columnRenderPropsPlaceholder: '{ \"size\": \"small\", \"options\": [...] }',\n columnsError: '列配置必须是数组 JSON',\n dataError: '固定数据必须是数组 JSON',\n basicGroup: '基础',\n columnsGroup: '数据列',\n sourceGroup: '数据来源',\n operationsGroup: '数据操作',\n paginationGroup: '分页',\n searchGroup: '搜索区',\n advancedGroup: '高级 · JSON',\n sourceFixed: '固定数据',\n sourceRemote: '远程接口',\n dataCount: '共 {count} 条数据',\n editData: '编辑数据',\n codeConfigured: '已配置',\n codeUnconfigured: '未配置',\n columnListEmpty: '暂无列,点击下方按钮添加',\n addColumn: '添加列',\n searchFieldsHint: '{count} 个搜索条件,在画布上拖入或添加',\n columnEditorBack: '数据表格',\n columnEditorTitle: '列:{title}',\n columnEditorIndex: '{current} / {total}',\n columnEditorPrev: '上一列',\n columnEditorNext: '下一列',\n },\n // A1:富文本字段属性面板\n richText: {\n minHeightLabel: '最小高度(px)',\n maxLengthLabel: '最大字数',\n maxLengthPlaceholder: '不限制',\n toolbarLabel: '工具栏',\n charCountWithMax: '{count}/{max} 字',\n linkPlaceholder: '粘贴或输入链接地址',\n toolbar: {\n bold: '加粗',\n italic: '斜体',\n underline: '下划线',\n strike: '删除线',\n heading: '标题',\n headingH2: '标题 2',\n headingH3: '标题 3',\n headingNormal: '正文',\n bulletList: '无序列表',\n orderedList: '有序列表',\n blockquote: '引用',\n link: '插入链接',\n clear: '清除格式',\n undo: '撤销',\n redo: '重做',\n },\n },\n // A2:签名板字段属性面板\n signature: {\n heightLabel: '高度(px)',\n strokeColorLabel: '笔迹颜色',\n strokeWidthLabel: '笔迹粗细',\n undoLabel: '撤销一笔',\n clearLabel: '清除',\n emptyHint: '在此签名',\n },\n // A3:折叠面板容器属性面板\n collapse: {\n defaultExpandedLabel: '默认展开',\n disableCollapseLabel: '禁用折叠(始终展开)',\n defaultCollapsedTag: '默认收起',\n },\n },\n fieldProps: {\n category: {\n fields: '字段',\n containers: '容器',\n layouts: '布局',\n static: '静态',\n },\n tooltip: {\n text: '文本输入',\n email: '邮箱输入',\n color: '颜色选择',\n number: '数字输入',\n checkbox: '复选框',\n date: '日期',\n datetimeLocal: '日期时间',\n dateTime: '日期时间',\n file: '文件上传',\n password: '密码',\n radio: '单选',\n range: '范围选择',\n select: '下拉选择',\n naiveCascader: '级联选择',\n naiveTreeSelect: '树选择',\n naiveTransfer: '穿梭框',\n naiveMention: '提及',\n naiveAutoComplete: '自动完成',\n naiveRate: '评分',\n naiveSwitch: '开关',\n naiveAvatar: '头像',\n naiveImage: '图片',\n tel: '电话',\n textarea: '多行文本',\n time: '时间',\n url: '链接',\n submit: '提交按钮',\n reset: '重置按钮',\n naiveButton: '按钮(Naive)',\n naiveText: '文本(Typography)',\n naiveP: '段落(Typography)',\n naiveA: '链接(Typography)',\n naiveBlockquote: '引用(Typography)',\n naiveH1: '标题 H1',\n naiveH2: '标题 H2',\n naiveH3: '标题 H3',\n naiveH4: '标题 H4',\n naiveH5: '标题 H5',\n naiveH6: '标题 H6',\n naiveUl: '无序列表',\n naiveOl: '有序列表',\n naiveLi: '列表项',\n naiveDivider: '分割线(Naive)',\n naiveAlert: '提示(NAlert)',\n naiveBackTop: '浮动按钮(BackTop)',\n naiveQrCode: '二维码(QR Code)',\n naiveProgress: '进度条(NProgress)',\n list: '列表',\n nestedList: '嵌套列表(内置分组)',\n card: '卡片容器',\n inputGroup: '输入组(NInputGroup)',\n buttonGroup: '按钮组(NButtonGroup)',\n badge: '徽标(NBadge)',\n tabs: 'Tabs 容器',\n steps: '步骤向导(Steps)',\n group: '嵌套对象字段组',\n dataTable: '数据表格',\n richText: '富文本编辑',\n signature: '手写签名',\n collapse: '折叠面板容器',\n },\n },\n elements: {\n common: {\n help: '这是帮助文本',\n selectPlaceholder: '请选择...',\n // X:按需加载的字段/容器组件加载失败时的占位文案(不能让整个表单崩掉)\n loadError: '组件加载失败',\n },\n text: {\n name: '文本',\n label: '客户姓名',\n placeholder: '请输入姓名',\n description: '单行文本输入框',\n },\n textarea: {\n name: '文本域',\n label: '客户地址',\n placeholder: '请输入地址',\n description: '多行文本输入框',\n },\n email: {\n name: '邮箱',\n label: '客户邮箱',\n placeholder: '请输入邮箱',\n description: '邮箱输入框',\n },\n number: {\n name: '数字',\n label: '客户年龄',\n placeholder: '请输入年龄',\n description: '数字输入框',\n },\n url: {\n name: '链接',\n label: 'URL 字段',\n placeholder: 'https://www.example.com',\n description: 'URL 输入框',\n },\n checkbox: { name: '复选框', label: '复选框', description: '多选复选框' },\n color: { name: '颜色', label: '颜色字段', description: '颜色选择器' },\n date: { name: '日期', label: '日期字段', description: '日期选择器' },\n time: { name: '时间', label: '时间字段', description: '时间选择器' },\n datetimeLocal: {\n name: '日期时间(本地)',\n label: '日期时间字段',\n description: '日期与时间输入',\n },\n dateTime: { name: '日期时间', label: '日期时间字段', description: '日期与时间输入' },\n file: {\n name: '文件上传',\n label: '文件字段',\n help: '支持 .pdf, .doc, .docx, .xml, .md, .csv, .jpg, .png, .webp',\n description: '一个或多个文件上传',\n },\n password: {\n name: '密码',\n label: '密码字段',\n placeholder: '请输入密码',\n description: '密码输入框',\n },\n radio: { name: '单选', label: '单选字段', description: '单选选择' },\n range: { name: '滑块', label: '范围字段', description: '滑块输入' },\n select: { name: '下拉选择', label: '选择字段', description: '下拉选择框' },\n naiveCascader: { name: '级联选择', label: '级联字段', description: '级联选择' },\n naiveTreeSelect: { name: '树选择', label: '树选择字段', description: '树形选择' },\n naiveTransfer: { name: '穿梭框', label: '穿梭字段', description: '穿梭选择' },\n naiveMention: {\n name: '提及',\n label: '提及字段',\n placeholder: '输入 @ 提及',\n description: '提及输入',\n },\n naiveAutoComplete: {\n name: '自动完成',\n label: '自动完成字段',\n placeholder: '输入以搜索...',\n description: '带自动补全的输入框',\n },\n naiveRate: { name: '评分', label: '评分字段', description: '评分输入' },\n naiveSwitch: { name: '开关', label: '开关字段', description: '布尔开关' },\n naiveAvatar: { name: '头像', label: '头像', description: '头像展示' },\n naiveImage: { name: '图片', label: '图片', description: '图片展示' },\n naiveText: { name: '文本', description: '排版文本' },\n naiveP: { name: '段落', description: '排版段落' },\n naiveA: { name: '链接', description: '排版链接' },\n naiveBlockquote: { name: '引用', description: '排版引用' },\n naiveH1: { name: '标题 H1', description: '标题' },\n naiveH2: { name: '标题 H2', description: '标题' },\n naiveH3: { name: '标题 H3', description: '标题' },\n naiveH4: { name: '标题 H4', description: '标题' },\n naiveH5: { name: '标题 H5', description: '标题' },\n naiveH6: { name: '标题 H6', description: '标题' },\n naiveUl: { name: '无序列表', description: '无序列表' },\n naiveOl: { name: '有序列表', description: '有序列表' },\n naiveLi: { name: '列表项', description: '列表项' },\n naiveDivider: { name: '分割线', description: '分割线' },\n naiveAlert: { name: '提示', label: '提示', description: '提示' },\n naiveBackTop: {\n name: '返回顶部',\n description: '回到顶部按钮(可当浮动按钮使用)',\n },\n naiveQrCode: {\n name: '二维码',\n label: '二维码',\n description: '二维码展示',\n },\n naiveProgress: {\n name: '进度条',\n label: '进度条',\n description: '进度条展示(NProgress)',\n },\n tel: {\n name: '电话',\n label: '电话字段',\n placeholder: '(+XX) XXXXXXXXXX',\n description: '电话输入框',\n },\n naiveButton: { name: '按钮', label: '按钮', description: '按钮' },\n submit: { name: '提交按钮', label: '提交', description: '提交表单' },\n reset: { name: '重置按钮', label: '重置', description: '重置表单内容' },\n list: { name: '列表', label: '列表', description: '字段数组分组' },\n nestedList: {\n name: '嵌套列表',\n label: '嵌套列表',\n description: '内置分组的列表,拖入字段生成对象数组 [{...}]',\n },\n card: { name: '卡片容器', label: '卡片', description: '可包含子字段的卡片容器' },\n inputGroup: {\n name: '输入组',\n label: '输入组',\n description: '输入组容器(仅左右拖拽)',\n },\n buttonGroup: {\n name: '按钮组',\n label: '按钮组',\n description: '按钮组合容器(可整体禁用)',\n },\n badge: {\n name: '徽标',\n label: '徽标',\n description: '徽标容器(仅容纳一个元素,角标挂在子元素上)',\n },\n tabs: { name: '标签页', label: 'Tabs', description: '标签页容器' },\n steps: {\n name: '步骤向导',\n label: '步骤向导',\n description: '步骤向导(仅可放根画布,全局唯一)',\n },\n group: {\n name: '分组',\n label: '分组',\n description: '嵌套对象字段组',\n },\n dataTable: {\n name: '数据表格',\n label: '数据表格',\n description: '数据表格(支持固定 / 远程数据与分页)',\n },\n richText: {\n name: '富文本',\n label: '富文本字段',\n placeholder: '请输入内容...',\n description: '富文本编辑器,支持基础排版与链接',\n },\n signature: {\n name: '签名板',\n label: '签名',\n description: '手写签名,值为 PNG 图片(dataURL)',\n },\n collapse: {\n name: '折叠面板',\n label: '折叠面板',\n description: '可折叠的分区容器,多个上下排列即为手风琴',\n },\n },\n // E2:顶栏「历史」面板\n history: {\n entry: '历史',\n empty: '暂无历史记录',\n current: '当前',\n justNow: '刚刚',\n minutesAgo: '{n} 分钟前',\n hoursAgo: '{n} 小时前',\n daysAgo: '{n} 天前',\n // reason → 操作名文案;未登记的 reason 统一落到 default\n reasons: {\n default: '修改',\n initial: '初始状态',\n cut: '剪切元素',\n reorder: '移动元素',\n paste: '粘贴元素',\n wrap: '包进容器',\n convertType: '转换类型',\n batchEdit: '批量修改',\n import: '导入',\n applyTemplate: '应用模板',\n ai: 'AI 生成',\n clear: '清空画布',\n delete: '删除元素',\n duplicate: '复制元素',\n containerChildren: '调整容器内容',\n inlineEdit: '内联编辑',\n fieldEdit: '编辑字段',\n resize: '调整列宽',\n deleteColumn: '删除列',\n dnd: '拖拽排序',\n rename: '重命名',\n formName: '修改表单名称',\n formId: '修改表单 ID',\n formVersion: '修改版本号',\n formLabelPosition: '修改标签位置',\n formLabelWidth: '修改标签宽度',\n formSubmit: '修改提交逻辑',\n formSize: '修改控件尺寸',\n formDisabled: '修改禁用状态',\n formReadonly: '修改只读状态',\n formSuccessMessage: '修改成功提示',\n formSuccessRedirect: '修改成功跳转',\n formShowReset: '修改重置按钮显示',\n formSubmitText: '修改提交按钮文字',\n formResetText: '修改重置按钮文字',\n },\n },\n // E1:结构树节点操作(删除按钮已在 sidebar-left 里,这里只补复制 / 重命名)\n structure: {\n duplicateNode: '复制一份',\n renameHint: '双击重命名',\n renamePlaceholder: '输入名称',\n },\n // H1:字段改名同步更新引用(NameInput.vue 的提示)\n rename: {\n refsUpdated: '已同步更新 {count} 处引用',\n },\n // H2:顶栏「体检」入口 + 体检面板\n issues: {\n entry: '体检',\n empty: '没有发现问题',\n groupError: '错误',\n groupWarning: '警告',\n groupInfo: '提示',\n // 数据表格列问题的定位文案:{table} 是所属数据表格的元素名称,{column} 是列标题\n columnLocation: '{table} · 列「{column}」',\n codes: {\n 'duplicate-name': '字段名「{name}」重复(同一作用域内共 {count} 处)',\n 'unknown-field-ref': '引用了不存在的字段「{field}」',\n 'confirm-unknown-field': '一致性校验规则指向了不存在的字段「{field}」',\n 'unparsed-expr': '表达式无法解析,请检查语法',\n 'missing-options': '未设置选项,也不是动态字典',\n 'missing-label': '未设置标签',\n },\n },\n} as const\n","import en from './en'\nimport zh from './zh'\n\nexport default {\n 'zh-CN': zh,\n en,\n} as const\n","import { computed, inject, provide, type ComputedRef } from 'vue'\nimport defaultMessages from './messages'\n\ntype AnyMessages = Record<string, any>\n\ntype I18nContext = {\n locale: ComputedRef<string>\n localeFallback: ComputedRef<string>\n t: (key: string, params?: Record<string, string | number>) => string\n}\n\nconst I18N_KEY = Symbol('FormBuilderI18n')\n\nfunction isObject(item: any): boolean {\n return item !== null && typeof item === 'object' && !Array.isArray(item)\n}\n\n// 递归深合并(对齐 camunda7-ui 的国际化语义):\n// 后传的 messages 逐 key 覆写前面的,未覆写的沿用原值;数组整体替换。\nfunction deepMerge(target: any, ...sources: any[]): any {\n if (!sources.length) return target\n const source = sources.shift()\n if (isObject(target) && isObject(source)) {\n for (const key in source) {\n if (isObject(source[key]) && isObject(target[key])) {\n deepMerge(target[key], source[key])\n } else {\n target[key] = source[key]\n }\n }\n }\n return deepMerge(target, ...sources)\n}\n\nfunction mergeMessages(base: AnyMessages, overrides: AnyMessages) {\n const out: AnyMessages = {}\n for (const locale of Object.keys(base)) {\n out[locale] = deepMerge({}, base[locale])\n }\n for (const locale of Object.keys(overrides)) {\n out[locale] = deepMerge(out[locale] ?? {}, overrides[locale] ?? {})\n }\n return out\n}\n\nfunction getByPath(obj: AnyMessages, path: string) {\n const parts = path.split('.')\n let cur: any = obj\n for (const p of parts) {\n if (cur == null) return undefined\n cur = cur[p]\n }\n return cur\n}\n\nfunction formatMessage(template: string, params?: Record<string, string | number>) {\n if (!params) return template\n return template.replace(/\\{(\\w+)\\}/g, (_, k: string) => String(params[k] ?? `{${k}}`))\n}\n\nexport function provideFormBuilderI18n(options: {\n locale: ComputedRef<string | undefined>\n localeFallback?: ComputedRef<string | undefined>\n messages?: ComputedRef<AnyMessages | undefined>\n}) {\n const locale = computed(() => options.locale.value ?? options.localeFallback?.value ?? 'zh-CN')\n const localeFallback = computed(() => options.localeFallback?.value ?? 'zh-CN')\n const messages = computed(() => {\n const extra = options.messages?.value ?? {}\n return mergeMessages(defaultMessages as AnyMessages, extra)\n })\n\n const t: I18nContext['t'] = (key, params) => {\n const current = getByPath(messages.value[locale.value] ?? {}, key)\n const fallbackLocale = getByPath(messages.value[localeFallback.value] ?? {}, key)\n const fallbackEn = getByPath(messages.value.en ?? {}, key)\n const raw = (current ?? fallbackLocale ?? fallbackEn) as unknown\n if (typeof raw === 'string') return formatMessage(raw, params)\n return key\n }\n\n const ctx: I18nContext = { locale, localeFallback, t }\n provide(I18N_KEY, ctx)\n return ctx\n}\n\nexport function useFormBuilderI18n() {\n return inject<I18nContext>(I18N_KEY, {\n locale: computed(() => 'zh-CN'),\n localeFallback: computed(() => 'zh-CN'),\n // 无 provider(如 FormRenderer 单独使用未传 config、外层无 BuilderProvider)时,\n // 仍按内置默认文案(zh-CN → en)解析,而不是原样返回 key\n t: (key, params) => {\n const zh = getByPath(defaultMessages['zh-CN'] ?? {}, key)\n const en = getByPath(defaultMessages.en ?? {}, key)\n const raw = (zh ?? en) as unknown\n if (typeof raw === 'string') return formatMessage(raw, params)\n return key\n },\n })\n}\n"],"mappings":";;;AEGA,IAAA,IAAe;CACb,SDJa;EACb,QAAQ;GACN,mBAAmB;GACnB,QAAQ;GACR,SAAS;GACT,MAAM;GACN,MAAM;GAEN,YAAY;GACb;EACD,SAAS;GACP,QAAQ;GACR,UAAU;GACV,WAAW;GACX,gBAAgB;GAEhB,cAAc;GACd,aAAa;GACb,WAAW;GACX,aAAa;GACd;EACD,SAAS;GACP,WAAW;GACX,aAAa;GACb,MAAM;GACN,MAAM;GACN,aAAa;GACb,aAAa;GACb,aAAa;GACb,gBAAgB;GAChB,kBAAkB;GAElB,UAAU;IACR,MAAM;IACN,MAAM;IACN,KAAK;IACL,OAAO;IACP,WAAW;IACX,kBAAkB;IAClB,QAAQ;IACR,eAAe;IACf,UAAU;IACV,iBAAiB;IACjB,eAAe;IACf,QAAQ;IACR,WAAW;IACX,eAAe;IACf,sBAAsB;IACtB,eAAe;IACf,aAAa;IACb,aAAa;IACb,gBAAgB;IAChB,WAAW;IACX,aAAa;IAEb,oBAAoB;IACpB,cAAc;IACd,mBAAmB;IACnB,eAAe;IACf,eAAe;IACf,WAAW;IACX,q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EAAI,EACpD,IAAO,KAAW,KAAkB;AAE1C,UADI,OAAO,KAAQ,WAAiB,EAAc,GAAK,EAAO,GACvD;;EAG6C;AAEtD,QADA,EAAQ,GAAU,EAAI,EACf;;AAGT,SAAgB,IAAqB;AACnC,QAAO,EAAoB,GAAU;EACnC,QAAQ,QAAe,QAAQ;EAC/B,gBAAgB,QAAe,QAAQ;EAGvC,IAAI,GAAK,MAAW;GAClB,IAAM,IAAK,EAAU,EAAgB,YAAY,EAAE,EAAE,EAAI,EACnD,IAAK,EAAU,EAAgB,MAAM,EAAE,EAAE,EAAI,EAC7C,IAAO,KAAM;AAEnB,UADI,OAAO,KAAQ,WAAiB,EAAc,GAAK,EAAO,GACvD;;EAEV,CAAC"}
@@ -0,0 +1,358 @@
1
+ import { i as e, o as t, s as n, t as r, x as i, y as a } from "./schema-adapter-_sLPmdLy.js";
2
+ import { t as o } from "./form-layout-Dm4QeYrL.js";
3
+ import { t as s } from "./keys-D4DlFgJT.js";
4
+ import { computed as c, inject as l, provide as u, ref as d, shallowRef as f, toRaw as p, watch as m } from "vue";
5
+ //#region src/state/form-definition.ts
6
+ var h = [{
7
+ $formkit: "submit",
8
+ type: "submit",
9
+ name: "submit_button",
10
+ __key: "submit_default"
11
+ }], g = "form", _ = o;
12
+ function v(e, t, n) {
13
+ let r = t?.name ?? n?.name ?? g, i = t?.settings ?? n?.settings ?? _;
14
+ return [{
15
+ $formkit: "form",
16
+ name: r,
17
+ props: {
18
+ labelPosition: i.labelAlign === "left" ? "left" : "top",
19
+ labelWidth: i.labelWidth ?? 80
20
+ },
21
+ children: e
22
+ }];
23
+ }
24
+ function y(e) {
25
+ let i = f(n(e ? s(e) : t(v(h, {
26
+ name: g,
27
+ settings: _
28
+ })))), a = r();
29
+ return {
30
+ formDefinition: i,
31
+ formSchema: c(() => {
32
+ let e = a.toSchema(i.value)[0]?.children;
33
+ return Array.isArray(e) ? e : [];
34
+ }),
35
+ schemaProjector: a,
36
+ commitSchemaChildren: (e, n) => t(v(e, n, i.value), { id: i.value?.id })
37
+ };
38
+ }
39
+ //#endregion
40
+ //#region src/state/form-schema.ts
41
+ function b() {
42
+ let e = d(0), t = d(null), n = d([]), r = d("form"), i = d(null), a = d(null), o = d(null), s = !1;
43
+ m(t, (e) => {
44
+ s || (n.value = e ? [e] : []);
45
+ }, { flush: "sync" });
46
+ function c(e, r) {
47
+ s = !0, n.value = e, t.value = r, s = !1;
48
+ }
49
+ return {
50
+ selectedIndex: e,
51
+ selectedKey: t,
52
+ selectedKeys: n,
53
+ setMultiSelection: c,
54
+ selectedTarget: r,
55
+ selectedColumnIndex: i,
56
+ elementEditTarget: a,
57
+ elementEditCommit: o
58
+ };
59
+ }
60
+ //#endregion
61
+ //#region src/state/canvas-ui.ts
62
+ function x() {
63
+ return {
64
+ canvasView: d("desktop"),
65
+ isLoading: d(!1)
66
+ };
67
+ }
68
+ //#endregion
69
+ //#region src/utils/schema/dsl-tree.ts
70
+ function S(e) {
71
+ return e.category === "container" || e.category === "layout" ? e.children ?? [] : [];
72
+ }
73
+ function C(e, t) {
74
+ for (let n = 0; n < e.length; n++) {
75
+ let r = e[n];
76
+ if (!r) continue;
77
+ if (r.key === t || r.id === t) return {
78
+ node: r,
79
+ parent: null,
80
+ rootIndex: n,
81
+ index: n
82
+ };
83
+ let i = S(r);
84
+ if (i.length) {
85
+ let e = C(i, t);
86
+ if (e) return {
87
+ node: e.node,
88
+ parent: e.parent ?? r,
89
+ rootIndex: n,
90
+ index: e.index
91
+ };
92
+ }
93
+ }
94
+ return null;
95
+ }
96
+ function w(e, t, n) {
97
+ let r = !1;
98
+ return {
99
+ nodes: e.map((e) => {
100
+ if (!e) return e;
101
+ if (e.key === t || e.id === t) return r = !0, n;
102
+ let i = S(e);
103
+ if (i.length) {
104
+ let a = w(i, t, n);
105
+ if (a.found) return r = !0, {
106
+ ...e,
107
+ children: a.nodes
108
+ };
109
+ }
110
+ return e;
111
+ }),
112
+ found: r
113
+ };
114
+ }
115
+ function T(e, t) {
116
+ for (let n = 0; n < e.length; n++) {
117
+ let r = e[n];
118
+ if (!r) continue;
119
+ if (r.key === t || r.id === t) return {
120
+ node: r,
121
+ parent: null,
122
+ parentKey: null,
123
+ index: n
124
+ };
125
+ let i = S(r);
126
+ if (i.length) {
127
+ let e = T(i, t);
128
+ if (e) return {
129
+ ...e,
130
+ parent: e.parent ?? i,
131
+ parentKey: e.parentKey ?? r.key ?? r.id
132
+ };
133
+ }
134
+ }
135
+ return null;
136
+ }
137
+ function E(e, t) {
138
+ for (let n of e) {
139
+ if (!n) continue;
140
+ if (n.key === t || n.id === t) return !0;
141
+ let e = S(n);
142
+ if (e.length && E(e, t)) return !0;
143
+ }
144
+ return !1;
145
+ }
146
+ function D(e, t) {
147
+ let n = null;
148
+ return {
149
+ nodes: e.flatMap((e) => {
150
+ if (!e) return [e];
151
+ if (e.key === t || e.id === t) return n = e, [];
152
+ let r = S(e);
153
+ if (r.length) {
154
+ let i = D(r, t);
155
+ if (i.removed && !n && (n = i.removed), i.nodes !== r) return [{
156
+ ...e,
157
+ children: i.nodes
158
+ }];
159
+ }
160
+ return [e];
161
+ }),
162
+ removed: n
163
+ };
164
+ }
165
+ function O(e, t, n, r) {
166
+ return e.flatMap((e) => {
167
+ if (!e) return [e];
168
+ if (e.key === t || e.id === t) return n === "before" ? [r, e] : n === "after" ? [e, r] : [{
169
+ ...e,
170
+ children: [...S(e), r]
171
+ }];
172
+ let i = S(e);
173
+ if (i.length) {
174
+ let a = O(i, t, n, r);
175
+ if (a !== i) return [{
176
+ ...e,
177
+ children: a
178
+ }];
179
+ }
180
+ return [e];
181
+ });
182
+ }
183
+ function k(e, t, n, r) {
184
+ if (t === n) return null;
185
+ let i = T(e, t);
186
+ if (!i) return null;
187
+ let a = S(i.node);
188
+ if (a.length && E(a, n)) return null;
189
+ let o = D(e, t);
190
+ return o.removed ? O(o.nodes, n, r, o.removed) : null;
191
+ }
192
+ function A(e, t) {
193
+ return D(e, t).nodes;
194
+ }
195
+ //#endregion
196
+ //#region src/composables/schema-history.ts
197
+ var j = 100, M = 500;
198
+ function N(e) {
199
+ return Array.isArray(e?.root?.children) ? e.root.children : [];
200
+ }
201
+ function P(e) {
202
+ let t = !1, n = e.map((e) => {
203
+ if (!e || typeof e != "object") return e;
204
+ let n = p(e), r = i(n), o = r.length ? P(r) : r, s = o !== r, c = typeof n.__key != "string" || !n.__key;
205
+ if (!s && !c) return e;
206
+ t = !0;
207
+ let l = { ...n };
208
+ return s && (l.children = o), c && (l.__key = a()), l;
209
+ });
210
+ return t ? n : e;
211
+ }
212
+ function F(t) {
213
+ let { formDefinition: r, formSchema: i, schemaProjector: a, selectedIndex: o, selectedKey: l, commitSchemaChildren: u } = t, f = d([]), p = d([]), m = d({
214
+ def: r.value,
215
+ reason: void 0,
216
+ at: Date.now()
217
+ }), h = d(null), g = c(() => f.value.length > 0), _ = c(() => p.value.length > 0), v = c(() => [
218
+ ...f.value,
219
+ m.value,
220
+ ...p.value
221
+ ]), y = c(() => f.value.length);
222
+ function b(e) {
223
+ let t = N(e).length;
224
+ if (t <= 0) {
225
+ o.value = 0, l.value = null;
226
+ return;
227
+ }
228
+ o.value > t - 1 && (o.value = t - 1);
229
+ }
230
+ function x(e) {
231
+ let t = n(s(e)), i = l.value;
232
+ if (r.value = t, i) {
233
+ let e = C(N(t), i);
234
+ e ? (o.value = e.rootIndex, l.value = i) : l.value = null;
235
+ }
236
+ return b(t), t;
237
+ }
238
+ function S(e, t) {
239
+ let n = Date.now();
240
+ if (r.value === e) return;
241
+ let i = h.value;
242
+ t?.merge === !0 && i?.reason === t?.reason && i && n - i.at <= M && f.value.length > 0 || (f.value.push(m.value), f.value.length > j && f.value.splice(0, f.value.length - j)), p.value = [], h.value = {
243
+ at: n,
244
+ reason: t?.reason
245
+ }, m.value = {
246
+ def: x(e),
247
+ reason: t?.reason,
248
+ at: n
249
+ };
250
+ }
251
+ function w(e, t) {
252
+ S(u(P(e), t?.name || t?.settings ? {
253
+ name: t.name ?? r.value?.name ?? "form",
254
+ settings: t.settings ?? r.value?.settings
255
+ } : void 0), t);
256
+ }
257
+ function T(t, n) {
258
+ let o = P(t), s = r.value, c = (() => {
259
+ try {
260
+ return a.toSchema(s)[0]?.children ?? [];
261
+ } catch {
262
+ return i.value;
263
+ }
264
+ })(), l = e(N(s), c, o);
265
+ S({
266
+ ...s,
267
+ root: {
268
+ ...s.root,
269
+ children: l
270
+ }
271
+ }, n);
272
+ }
273
+ function E() {
274
+ let e = f.value.pop();
275
+ if (!e) return;
276
+ p.value.unshift(m.value), p.value.length > j && p.value.splice(j), h.value = null;
277
+ let t = x(e.def);
278
+ m.value = {
279
+ ...e,
280
+ def: t
281
+ };
282
+ }
283
+ function D() {
284
+ let e = p.value.shift();
285
+ if (!e) return;
286
+ f.value.push(m.value), f.value.length > j && f.value.splice(0, f.value.length - j), h.value = null;
287
+ let t = x(e.def);
288
+ m.value = {
289
+ ...e,
290
+ def: t
291
+ };
292
+ }
293
+ function O(e) {
294
+ let t = f.value.length + 1 + p.value.length;
295
+ if (!Number.isInteger(e) || e < 0 || e >= t) return;
296
+ let n = y.value;
297
+ if (e !== n) if (e < n) for (let t = 0; t < n - e; t++) E();
298
+ else for (let t = 0; t < e - n; t++) D();
299
+ }
300
+ function k() {
301
+ f.value = [], p.value = [], h.value = null;
302
+ }
303
+ function A(e, t) {
304
+ m.value = {
305
+ def: x(e),
306
+ reason: void 0,
307
+ at: Date.now()
308
+ }, t?.resetHistory !== !1 && k();
309
+ }
310
+ return {
311
+ canUndo: g,
312
+ canRedo: _,
313
+ historyEntries: v,
314
+ currentHistoryIndex: y,
315
+ commitFormDefinition: S,
316
+ commitSchema: w,
317
+ commitSchemaReconcile: T,
318
+ undo: E,
319
+ redo: D,
320
+ jumpTo: O,
321
+ resetHistory: k,
322
+ setFormDefinition: A
323
+ };
324
+ }
325
+ //#endregion
326
+ //#region src/state/create-form-builder-state.ts
327
+ function I() {
328
+ return `fbb-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
329
+ }
330
+ function L() {
331
+ let e = y(), t = b(), n = x(), r = F({
332
+ ...e,
333
+ ...t
334
+ });
335
+ return {
336
+ ...e,
337
+ ...t,
338
+ ...n,
339
+ ...r,
340
+ instanceId: I()
341
+ };
342
+ }
343
+ var R = Symbol("formBuilderState");
344
+ function z(e = L()) {
345
+ return u(R, e), e;
346
+ }
347
+ function B() {
348
+ let e = l(R, null);
349
+ if (!e) throw Error("[formkit-form-builder] useFormBuilderState() 必须在 FormBuilder(或 provideFormBuilderState)子树内调用:未找到实例状态。FormRenderer 子树请改用 useFormDefinition();独立使用的组件请改用 useOptionalFormBuilderState()。");
350
+ return e;
351
+ }
352
+ function V() {
353
+ return l(R, null);
354
+ }
355
+ //#endregion
356
+ export { S as a, A as c, V as i, w as l, z as n, C as o, B as r, k as s, L as t };
357
+
358
+ //# sourceMappingURL=create-form-builder-state-CoXaJhWO.js.map