@zeng-alt/formkit-form-builder 1.3.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 +7916 -42625
  5. package/dist/builder.es.js.map +1 -0
  6. package/dist/builder.umd.js +61 -90
  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 +244 -1079
  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 +39 -24
@@ -0,0 +1,184 @@
1
+ import { n as e } from "./context-4zkSHwVA.js";
2
+ import { t } from "./form-fields-DjLk8iH2.js";
3
+ import { t as n } from "./EditorSection-BR3qdK2c.js";
4
+ import { t as r } from "./TextInput-D1EMeBPf.js";
5
+ import { t as i } from "./SelectInput-DY4Oi2Lp.js";
6
+ import { t as a } from "./SwitchInput-DQrSTyW0.js";
7
+ import { t as o } from "./NumberInput-DU-FiLxW.js";
8
+ import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, defineComponent as f, openBlock as p, unref as m, withCtx as h } from "vue";
9
+ //#endregion
10
+ //#region src/components/sidebar-right/edits/common/NaiveBasicSection.vue
11
+ var g = /* @__PURE__ */ f({
12
+ __name: "NaiveBasicSection",
13
+ props: {
14
+ size: { type: Boolean },
15
+ disabled: { type: Boolean },
16
+ clearable: { type: Boolean },
17
+ bordered: { type: Boolean },
18
+ readonly: { type: Boolean },
19
+ round: { type: Boolean },
20
+ autofocus: { type: Boolean },
21
+ showCount: { type: Boolean },
22
+ showPasswordOn: { type: Boolean },
23
+ maxlength: { type: Boolean },
24
+ minlength: { type: Boolean },
25
+ filterable: { type: Boolean },
26
+ multiple: { type: Boolean },
27
+ prefix: { type: Boolean },
28
+ suffix: { type: Boolean },
29
+ sizeOptions: { default: () => [
30
+ {
31
+ label: "tiny",
32
+ value: "tiny"
33
+ },
34
+ {
35
+ label: "small",
36
+ value: "small"
37
+ },
38
+ {
39
+ label: "medium",
40
+ value: "medium"
41
+ },
42
+ {
43
+ label: "large",
44
+ value: "large"
45
+ }
46
+ ] }
47
+ },
48
+ setup(f) {
49
+ let g = f, { createPropsProp: _, createDisabledProp: v } = t(), { t: y } = e(), b = _("prefix", ""), x = _("suffix", ""), S = _("size", "medium"), C = v(), w = _("clearable", !0), T = _("bordered", !0), E = _("readonly", !1), D = _("round", !1), O = _("autofocus", !1), k = _("showCount", !1), A = _("showPasswordOn", "click"), j = _("maxlength", null), M = _("minlength", null), N = _("filterable", !1), P = _("multiple", !1), F = c(() => !!g.prefix || !!g.suffix || !!g.size || !!g.bordered || !!g.round), I = c(() => !!g.disabled || !!g.clearable || !!g.readonly || !!g.filterable || !!g.multiple || !!g.autofocus || !!g.showCount || !!g.showPasswordOn || !!g.maxlength || !!g.minlength);
50
+ return (e, t) => (p(), d(s, null, [F.value ? (p(), l(n, {
51
+ key: 0,
52
+ title: m(y)("edits.sections.appearance")
53
+ }, {
54
+ default: h(() => [
55
+ g.prefix ? (p(), l(r, {
56
+ key: 0,
57
+ label: m(y)("edits.props.prefix"),
58
+ placeholder: m(y)("edits.placeholder.prefix"),
59
+ value: m(b),
60
+ "onUpdate:value": t[0] ||= (e) => b.value = e
61
+ }, null, 8, [
62
+ "label",
63
+ "placeholder",
64
+ "value"
65
+ ])) : u("", !0),
66
+ g.suffix ? (p(), l(r, {
67
+ key: 1,
68
+ label: m(y)("edits.props.suffix"),
69
+ placeholder: m(y)("edits.placeholder.suffix"),
70
+ value: m(x),
71
+ "onUpdate:value": t[1] ||= (e) => x.value = e
72
+ }, null, 8, [
73
+ "label",
74
+ "placeholder",
75
+ "value"
76
+ ])) : u("", !0),
77
+ g.size ? (p(), l(i, {
78
+ key: 2,
79
+ label: m(y)("edits.props.size"),
80
+ value: m(S),
81
+ options: g.sizeOptions,
82
+ "onUpdate:value": t[2] ||= (e) => S.value = e
83
+ }, null, 8, [
84
+ "label",
85
+ "value",
86
+ "options"
87
+ ])) : u("", !0),
88
+ g.bordered ? (p(), l(a, {
89
+ key: 3,
90
+ label: m(y)("edits.props.bordered"),
91
+ value: m(T),
92
+ "onUpdate:value": t[3] ||= (e) => T.value = e
93
+ }, null, 8, ["label", "value"])) : u("", !0),
94
+ g.round ? (p(), l(a, {
95
+ key: 4,
96
+ label: m(y)("edits.props.round"),
97
+ value: m(D),
98
+ "onUpdate:value": t[4] ||= (e) => D.value = e
99
+ }, null, 8, ["label", "value"])) : u("", !0)
100
+ ]),
101
+ _: 1
102
+ }, 8, ["title"])) : u("", !0), I.value ? (p(), l(n, {
103
+ key: 1,
104
+ title: m(y)("edits.sections.behavior")
105
+ }, {
106
+ default: h(() => [
107
+ g.disabled ? (p(), l(a, {
108
+ key: 0,
109
+ label: m(y)("edits.props.disabled"),
110
+ value: m(C),
111
+ "onUpdate:value": t[5] ||= (e) => C.value = e
112
+ }, null, 8, ["label", "value"])) : u("", !0),
113
+ g.clearable ? (p(), l(a, {
114
+ key: 1,
115
+ label: m(y)("edits.props.clearable"),
116
+ value: m(w),
117
+ "onUpdate:value": t[6] ||= (e) => w.value = e
118
+ }, null, 8, ["label", "value"])) : u("", !0),
119
+ g.readonly ? (p(), l(a, {
120
+ key: 2,
121
+ label: m(y)("edits.props.readonly"),
122
+ value: m(E),
123
+ "onUpdate:value": t[7] ||= (e) => E.value = e
124
+ }, null, 8, ["label", "value"])) : u("", !0),
125
+ g.filterable ? (p(), l(a, {
126
+ key: 3,
127
+ label: m(y)("edits.props.filterable"),
128
+ value: m(N),
129
+ "onUpdate:value": t[8] ||= (e) => N.value = e
130
+ }, null, 8, ["label", "value"])) : u("", !0),
131
+ g.multiple ? (p(), l(a, {
132
+ key: 4,
133
+ label: m(y)("edits.props.multiple"),
134
+ value: m(P),
135
+ "onUpdate:value": t[9] ||= (e) => P.value = e
136
+ }, null, 8, ["label", "value"])) : u("", !0),
137
+ g.autofocus ? (p(), l(a, {
138
+ key: 5,
139
+ label: m(y)("edits.props.autofocus"),
140
+ value: m(O),
141
+ "onUpdate:value": t[10] ||= (e) => O.value = e
142
+ }, null, 8, ["label", "value"])) : u("", !0),
143
+ g.showCount ? (p(), l(a, {
144
+ key: 6,
145
+ label: m(y)("edits.props.showCount"),
146
+ value: m(k),
147
+ "onUpdate:value": t[11] ||= (e) => k.value = e
148
+ }, null, 8, ["label", "value"])) : u("", !0),
149
+ g.showPasswordOn ? (p(), l(i, {
150
+ key: 7,
151
+ label: m(y)("edits.props.showPasswordOn"),
152
+ value: m(A),
153
+ options: [{
154
+ label: "click",
155
+ value: "click"
156
+ }, {
157
+ label: "mousedown",
158
+ value: "mousedown"
159
+ }],
160
+ "onUpdate:value": t[12] ||= (e) => A.value = e
161
+ }, null, 8, ["label", "value"])) : u("", !0),
162
+ g.maxlength ? (p(), l(o, {
163
+ key: 8,
164
+ label: m(y)("edits.props.maxlength"),
165
+ placeholder: "null",
166
+ value: m(j),
167
+ "onUpdate:value": t[13] ||= (e) => j.value = e
168
+ }, null, 8, ["label", "value"])) : u("", !0),
169
+ g.minlength ? (p(), l(o, {
170
+ key: 9,
171
+ label: m(y)("edits.props.minlength"),
172
+ placeholder: "null",
173
+ value: m(M),
174
+ "onUpdate:value": t[14] ||= (e) => M.value = e
175
+ }, null, 8, ["label", "value"])) : u("", !0)
176
+ ]),
177
+ _: 1
178
+ }, 8, ["title"])) : u("", !0)], 64));
179
+ }
180
+ });
181
+ //#endregion
182
+ export { g as t };
183
+
184
+ //# sourceMappingURL=NaiveBasicSection-wNyhGLou.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NaiveBasicSection-wNyhGLou.js","names":[],"sources":["../../src/components/sidebar-right/edits/common/NaiveBasicSection.vue","../../src/components/sidebar-right/edits/common/NaiveBasicSection.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport { useFormField } from '../../../../composables/form-fields'\nimport { useFormBuilderI18n } from '../../../../i18n/context'\nimport EditorSection from './EditorSection.vue'\nimport NumberInput from './NumberInput.vue'\nimport SelectInput from './SelectInput.vue'\nimport SwitchInput from './SwitchInput.vue'\nimport TextInput from './TextInput.vue'\n\n// 各类 naive-ui 字段共用的通用开关集合:右侧面板按「外观 / 行为」两组渲染\n// (见任务 C 的分组约定),哪些开关出现由父编辑器按控件实际支持的 prop 传入。\nconst props = withDefaults(\n defineProps<{\n size?: boolean\n disabled?: boolean\n clearable?: boolean\n bordered?: boolean\n readonly?: boolean\n round?: boolean\n autofocus?: boolean\n showCount?: boolean\n showPasswordOn?: boolean\n maxlength?: boolean\n minlength?: boolean\n /** 选项类字段(下拉/级联/树选择)的可搜索开关 */\n filterable?: boolean\n /** 选项类字段的多选开关 */\n multiple?: boolean\n /** 文本类字段的前缀(原 PrefixSuffixSection,并入同一个「外观」分组,避免相邻\n * 两个\"外观\"标题重复出现) */\n prefix?: boolean\n /** 同上,后缀 */\n suffix?: boolean\n sizeOptions?: Array<{ label: string; value: string }>\n }>(),\n {\n sizeOptions: () => [\n { label: 'tiny', value: 'tiny' },\n { label: 'small', value: 'small' },\n { label: 'medium', value: 'medium' },\n { label: 'large', value: 'large' },\n ],\n },\n)\n\nconst { createPropsProp, createDisabledProp } = useFormField()\nconst { t } = useFormBuilderI18n()\n\nconst naivePrefix = createPropsProp<string>('prefix', '')\nconst naiveSuffix = createPropsProp<string>('suffix', '')\nconst naiveSize = createPropsProp<string>('size', 'medium')\n// disabled 关闭时必须删键而非写 false,否则该字段会锁死、不再响应整表单/分组级联\n// 禁用——见 form-fields.ts 的 createDisabledProp 注释\nconst naiveDisabled = createDisabledProp()\nconst naiveClearable = createPropsProp<boolean>('clearable', true)\nconst naiveBordered = createPropsProp<boolean>('bordered', true)\nconst naiveReadonly = createPropsProp<boolean>('readonly', false)\nconst naiveRound = createPropsProp<boolean>('round', false)\nconst naiveAutofocus = createPropsProp<boolean>('autofocus', false)\nconst naiveShowCount = createPropsProp<boolean>('showCount', false)\nconst naiveShowPasswordOn = createPropsProp<string>('showPasswordOn', 'click')\nconst naiveMaxlength = createPropsProp<number | null>('maxlength', null)\nconst naiveMinlength = createPropsProp<number | null>('minlength', null)\nconst naiveFilterable = createPropsProp<boolean>('filterable', false)\nconst naiveMultiple = createPropsProp<boolean>('multiple', false)\n\nconst hasAppearance = computed(\n () =>\n Boolean(props.prefix) ||\n Boolean(props.suffix) ||\n Boolean(props.size) ||\n Boolean(props.bordered) ||\n Boolean(props.round),\n)\nconst hasBehavior = computed(\n () =>\n Boolean(props.disabled) ||\n Boolean(props.clearable) ||\n Boolean(props.readonly) ||\n Boolean(props.filterable) ||\n Boolean(props.multiple) ||\n Boolean(props.autofocus) ||\n Boolean(props.showCount) ||\n Boolean(props.showPasswordOn) ||\n Boolean(props.maxlength) ||\n Boolean(props.minlength),\n)\n</script>\n\n<template>\n <EditorSection v-if=\"hasAppearance\" :title=\"t('edits.sections.appearance')\">\n <TextInput\n v-if=\"props.prefix\"\n :label=\"t('edits.props.prefix')\"\n :placeholder=\"t('edits.placeholder.prefix')\"\n :value=\"naivePrefix\"\n @update:value=\"(v) => (naivePrefix = v)\"\n />\n <TextInput\n v-if=\"props.suffix\"\n :label=\"t('edits.props.suffix')\"\n :placeholder=\"t('edits.placeholder.suffix')\"\n :value=\"naiveSuffix\"\n @update:value=\"(v) => (naiveSuffix = v)\"\n />\n <SelectInput\n v-if=\"props.size\"\n :label=\"t('edits.props.size')\"\n :value=\"naiveSize\"\n :options=\"props.sizeOptions\"\n @update:value=\"(v) => (naiveSize = v)\"\n />\n <SwitchInput\n v-if=\"props.bordered\"\n :label=\"t('edits.props.bordered')\"\n :value=\"naiveBordered\"\n @update:value=\"(v) => (naiveBordered = v)\"\n />\n <SwitchInput\n v-if=\"props.round\"\n :label=\"t('edits.props.round')\"\n :value=\"naiveRound\"\n @update:value=\"(v) => (naiveRound = v)\"\n />\n </EditorSection>\n\n <EditorSection v-if=\"hasBehavior\" :title=\"t('edits.sections.behavior')\">\n <SwitchInput\n v-if=\"props.disabled\"\n :label=\"t('edits.props.disabled')\"\n :value=\"naiveDisabled\"\n @update:value=\"(v) => (naiveDisabled = v)\"\n />\n <SwitchInput\n v-if=\"props.clearable\"\n :label=\"t('edits.props.clearable')\"\n :value=\"naiveClearable\"\n @update:value=\"(v) => (naiveClearable = v)\"\n />\n <SwitchInput\n v-if=\"props.readonly\"\n :label=\"t('edits.props.readonly')\"\n :value=\"naiveReadonly\"\n @update:value=\"(v) => (naiveReadonly = v)\"\n />\n <SwitchInput\n v-if=\"props.filterable\"\n :label=\"t('edits.props.filterable')\"\n :value=\"naiveFilterable\"\n @update:value=\"(v) => (naiveFilterable = v)\"\n />\n <SwitchInput\n v-if=\"props.multiple\"\n :label=\"t('edits.props.multiple')\"\n :value=\"naiveMultiple\"\n @update:value=\"(v) => (naiveMultiple = v)\"\n />\n <SwitchInput\n v-if=\"props.autofocus\"\n :label=\"t('edits.props.autofocus')\"\n :value=\"naiveAutofocus\"\n @update:value=\"(v) => (naiveAutofocus = v)\"\n />\n <SwitchInput\n v-if=\"props.showCount\"\n :label=\"t('edits.props.showCount')\"\n :value=\"naiveShowCount\"\n @update:value=\"(v) => (naiveShowCount = v)\"\n />\n <SelectInput\n v-if=\"props.showPasswordOn\"\n :label=\"t('edits.props.showPasswordOn')\"\n :value=\"naiveShowPasswordOn\"\n :options=\"[\n { label: 'click', value: 'click' },\n { label: 'mousedown', value: 'mousedown' },\n ]\"\n @update:value=\"(v) => (naiveShowPasswordOn = v)\"\n />\n <NumberInput\n v-if=\"props.maxlength\"\n :label=\"t('edits.props.maxlength')\"\n placeholder=\"null\"\n :value=\"naiveMaxlength\"\n @update:value=\"(v) => (naiveMaxlength = v)\"\n />\n <NumberInput\n v-if=\"props.minlength\"\n :label=\"t('edits.props.minlength')\"\n placeholder=\"null\"\n :value=\"naiveMinlength\"\n @update:value=\"(v) => (naiveMinlength = v)\"\n />\n </EditorSection>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport { useFormField } from '../../../../composables/form-fields'\nimport { useFormBuilderI18n } from '../../../../i18n/context'\nimport EditorSection from './EditorSection.vue'\nimport NumberInput from './NumberInput.vue'\nimport SelectInput from './SelectInput.vue'\nimport SwitchInput from './SwitchInput.vue'\nimport TextInput from './TextInput.vue'\n\n// 各类 naive-ui 字段共用的通用开关集合:右侧面板按「外观 / 行为」两组渲染\n// (见任务 C 的分组约定),哪些开关出现由父编辑器按控件实际支持的 prop 传入。\nconst props = withDefaults(\n defineProps<{\n size?: boolean\n disabled?: boolean\n clearable?: boolean\n bordered?: boolean\n readonly?: boolean\n round?: boolean\n autofocus?: boolean\n showCount?: boolean\n showPasswordOn?: boolean\n maxlength?: boolean\n minlength?: boolean\n /** 选项类字段(下拉/级联/树选择)的可搜索开关 */\n filterable?: boolean\n /** 选项类字段的多选开关 */\n multiple?: boolean\n /** 文本类字段的前缀(原 PrefixSuffixSection,并入同一个「外观」分组,避免相邻\n * 两个\"外观\"标题重复出现) */\n prefix?: boolean\n /** 同上,后缀 */\n suffix?: boolean\n sizeOptions?: Array<{ label: string; value: string }>\n }>(),\n {\n sizeOptions: () => [\n { label: 'tiny', value: 'tiny' },\n { label: 'small', value: 'small' },\n { label: 'medium', value: 'medium' },\n { label: 'large', value: 'large' },\n ],\n },\n)\n\nconst { createPropsProp, createDisabledProp } = useFormField()\nconst { t } = useFormBuilderI18n()\n\nconst naivePrefix = createPropsProp<string>('prefix', '')\nconst naiveSuffix = createPropsProp<string>('suffix', '')\nconst naiveSize = createPropsProp<string>('size', 'medium')\n// disabled 关闭时必须删键而非写 false,否则该字段会锁死、不再响应整表单/分组级联\n// 禁用——见 form-fields.ts 的 createDisabledProp 注释\nconst naiveDisabled = createDisabledProp()\nconst naiveClearable = createPropsProp<boolean>('clearable', true)\nconst naiveBordered = createPropsProp<boolean>('bordered', true)\nconst naiveReadonly = createPropsProp<boolean>('readonly', false)\nconst naiveRound = createPropsProp<boolean>('round', false)\nconst naiveAutofocus = createPropsProp<boolean>('autofocus', false)\nconst naiveShowCount = createPropsProp<boolean>('showCount', false)\nconst naiveShowPasswordOn = createPropsProp<string>('showPasswordOn', 'click')\nconst naiveMaxlength = createPropsProp<number | null>('maxlength', null)\nconst naiveMinlength = createPropsProp<number | null>('minlength', null)\nconst naiveFilterable = createPropsProp<boolean>('filterable', false)\nconst naiveMultiple = createPropsProp<boolean>('multiple', false)\n\nconst hasAppearance = computed(\n () =>\n Boolean(props.prefix) ||\n Boolean(props.suffix) ||\n Boolean(props.size) ||\n Boolean(props.bordered) ||\n Boolean(props.round),\n)\nconst hasBehavior = computed(\n () =>\n Boolean(props.disabled) ||\n Boolean(props.clearable) ||\n Boolean(props.readonly) ||\n Boolean(props.filterable) ||\n Boolean(props.multiple) ||\n Boolean(props.autofocus) ||\n Boolean(props.showCount) ||\n Boolean(props.showPasswordOn) ||\n Boolean(props.maxlength) ||\n Boolean(props.minlength),\n)\n</script>\n\n<template>\n <EditorSection v-if=\"hasAppearance\" :title=\"t('edits.sections.appearance')\">\n <TextInput\n v-if=\"props.prefix\"\n :label=\"t('edits.props.prefix')\"\n :placeholder=\"t('edits.placeholder.prefix')\"\n :value=\"naivePrefix\"\n @update:value=\"(v) => (naivePrefix = v)\"\n />\n <TextInput\n v-if=\"props.suffix\"\n :label=\"t('edits.props.suffix')\"\n :placeholder=\"t('edits.placeholder.suffix')\"\n :value=\"naiveSuffix\"\n @update:value=\"(v) => (naiveSuffix = v)\"\n />\n <SelectInput\n v-if=\"props.size\"\n :label=\"t('edits.props.size')\"\n :value=\"naiveSize\"\n :options=\"props.sizeOptions\"\n @update:value=\"(v) => (naiveSize = v)\"\n />\n <SwitchInput\n v-if=\"props.bordered\"\n :label=\"t('edits.props.bordered')\"\n :value=\"naiveBordered\"\n @update:value=\"(v) => (naiveBordered = v)\"\n />\n <SwitchInput\n v-if=\"props.round\"\n :label=\"t('edits.props.round')\"\n :value=\"naiveRound\"\n @update:value=\"(v) => (naiveRound = v)\"\n />\n </EditorSection>\n\n <EditorSection v-if=\"hasBehavior\" :title=\"t('edits.sections.behavior')\">\n <SwitchInput\n v-if=\"props.disabled\"\n :label=\"t('edits.props.disabled')\"\n :value=\"naiveDisabled\"\n @update:value=\"(v) => (naiveDisabled = v)\"\n />\n <SwitchInput\n v-if=\"props.clearable\"\n :label=\"t('edits.props.clearable')\"\n :value=\"naiveClearable\"\n @update:value=\"(v) => (naiveClearable = v)\"\n />\n <SwitchInput\n v-if=\"props.readonly\"\n :label=\"t('edits.props.readonly')\"\n :value=\"naiveReadonly\"\n @update:value=\"(v) => (naiveReadonly = v)\"\n />\n <SwitchInput\n v-if=\"props.filterable\"\n :label=\"t('edits.props.filterable')\"\n :value=\"naiveFilterable\"\n @update:value=\"(v) => (naiveFilterable = v)\"\n />\n <SwitchInput\n v-if=\"props.multiple\"\n :label=\"t('edits.props.multiple')\"\n :value=\"naiveMultiple\"\n @update:value=\"(v) => (naiveMultiple = v)\"\n />\n <SwitchInput\n v-if=\"props.autofocus\"\n :label=\"t('edits.props.autofocus')\"\n :value=\"naiveAutofocus\"\n @update:value=\"(v) => (naiveAutofocus = v)\"\n />\n <SwitchInput\n v-if=\"props.showCount\"\n :label=\"t('edits.props.showCount')\"\n :value=\"naiveShowCount\"\n @update:value=\"(v) => (naiveShowCount = v)\"\n />\n <SelectInput\n v-if=\"props.showPasswordOn\"\n :label=\"t('edits.props.showPasswordOn')\"\n :value=\"naiveShowPasswordOn\"\n :options=\"[\n { label: 'click', value: 'click' },\n { label: 'mousedown', value: 'mousedown' },\n ]\"\n @update:value=\"(v) => (naiveShowPasswordOn = v)\"\n />\n <NumberInput\n v-if=\"props.maxlength\"\n :label=\"t('edits.props.maxlength')\"\n placeholder=\"null\"\n :value=\"naiveMaxlength\"\n @update:value=\"(v) => (naiveMaxlength = v)\"\n />\n <NumberInput\n v-if=\"props.minlength\"\n :label=\"t('edits.props.minlength')\"\n placeholder=\"null\"\n :value=\"naiveMinlength\"\n @update:value=\"(v) => (naiveMinlength = v)\"\n />\n </EditorSection>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;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ADd,EAKE,GAAA;;KAHC,OAAO,EAAA,EAAC,CAAA,yBAAA;KACR,OAAO,EAAA,EAAe;KACtB,kBAAY,AAAA,EAAA,QAAG,MAAO,EAAA,QAAkB;;IAGnC,EAAM,YAAA,GAAA,EADd,EAKE,GAAA;;KAHC,OAAO,EAAA,EAAC,CAAA,uBAAA;KACR,OAAO,EAAA,EAAa;KACpB,kBAAY,AAAA,EAAA,QAAG,MAAO,EAAA,QAAgB;;IAGjC,EAAM,aAAA,GAAA,EADd,EAKE,GAAA;;KAHC,OAAO,EAAA,EAAC,CAAA,wBAAA;KACR,OAAO,EAAA,EAAc;KACrB,kBAAY,AAAA,EAAA,SAAG,MAAO,EAAA,QAAiB;;IAGlC,EAAM,aAAA,GAAA,EADd,EAKE,GAAA;;KAHC,OAAO,EAAA,EAAC,CAAA,wBAAA;KACR,OAAO,EAAA,EAAc;KACrB,kBAAY,AAAA,EAAA,SAAG,MAAO,EAAA,QAAiB;;IAGlC,EAAM,kBAAA,GAAA,EADd,EASE,GAAA;;KAPC,OAAO,EAAA,EAAC,CAAA,6BAAA;KACR,OAAO,EAAA,EAAmB;KAC1B,SAAS,CAAA;;;;;;OAGT;KACA,kBAAY,AAAA,EAAA,SAAG,MAAO,EAAA,QAAsB;;IAGvC,EAAM,aAAA,GAAA,EADd,EAME,GAAA;;KAJC,OAAO,EAAA,EAAC,CAAA,wBAAA;KACT,aAAY;KACX,OAAO,EAAA,EAAc;KACrB,kBAAY,AAAA,EAAA,SAAG,MAAO,EAAA,QAAiB;;IAGlC,EAAM,aAAA,GAAA,EADd,EAME,GAAA;;KAJC,OAAO,EAAA,EAAC,CAAA,wBAAA;KACT,aAAY;KACX,OAAO,EAAA,EAAc;KACrB,kBAAY,AAAA,EAAA,SAAG,MAAO,EAAA,QAAiB"}
@@ -0,0 +1,13 @@
1
+ import { createElementBlock as e, defineComponent as t, openBlock as n } from "vue";
2
+ //#endregion
3
+ //#region src/components/sidebar-right/edits/editors/NaiveBlockquoteEditor.vue
4
+ var r = /* @__PURE__ */ t({
5
+ __name: "NaiveBlockquoteEditor",
6
+ setup(t) {
7
+ return (t, r) => (n(), e("div"));
8
+ }
9
+ });
10
+ //#endregion
11
+ export { r as default };
12
+
13
+ //# sourceMappingURL=NaiveBlockquoteEditor-BfqWqKwF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NaiveBlockquoteEditor-BfqWqKwF.js","names":[],"sources":["../../src/components/sidebar-right/edits/editors/NaiveBlockquoteEditor.vue","../../src/components/sidebar-right/edits/editors/NaiveBlockquoteEditor.vue"],"sourcesContent":["<script setup lang=\"ts\">\n// 内容由统一\"内容\"编辑区块(StaticContentSection)编辑;本类型无其它可配置项。\n</script>\n\n<template>\n <div></div>\n</template>\n","<script setup lang=\"ts\">\n// 内容由统一\"内容\"编辑区块(StaticContentSection)编辑;本类型无其它可配置项。\n</script>\n\n<template>\n <div></div>\n</template>\n"],"mappings":";;;;;;yBAKE,EAAW,MAAA"}
@@ -0,0 +1,168 @@
1
+ import { n as e } from "./context-4zkSHwVA.js";
2
+ import { t } from "./form-fields-DjLk8iH2.js";
3
+ import { t as n } from "./EditorSection-BR3qdK2c.js";
4
+ import { t as r } from "./TextInput-D1EMeBPf.js";
5
+ import { t as i } from "./SelectInput-DY4Oi2Lp.js";
6
+ import { t as a } from "./SwitchInput-DQrSTyW0.js";
7
+ import { Fragment as o, createElementBlock as s, createVNode as c, defineComponent as l, openBlock as u, unref as d, withCtx as f } from "vue";
8
+ //#endregion
9
+ //#region src/components/sidebar-right/edits/editors/NaiveButtonEditor.vue
10
+ var p = /* @__PURE__ */ l({
11
+ __name: "NaiveButtonEditor",
12
+ setup(l) {
13
+ let { createButtonProp: p, buttonText: m } = t(), { t: h } = e(), g = p("block", !1), _ = p("bordered", !0), v = p("circle", !1), y = p("dashed", !1), b = p("disabled", !1), x = p("focusable", !0), S = p("fullWidth", !1), C = p("align", "left"), w = p("ghost", !1), T = p("round", !1), E = p("secondary", !1), D = p("size", "medium"), O = p("buttonType", "default");
14
+ return (e, t) => (u(), s(o, null, [
15
+ c(r, {
16
+ label: d(h)("edits.props.text"),
17
+ placeholder: d(h)("edits.button.textPlaceholder"),
18
+ value: d(m),
19
+ "onUpdate:value": t[0] ||= (e) => m.value = e
20
+ }, null, 8, [
21
+ "label",
22
+ "placeholder",
23
+ "value"
24
+ ]),
25
+ c(n, { title: d(h)("edits.sections.appearance") }, {
26
+ default: f(() => [
27
+ c(i, {
28
+ label: d(h)("edits.props.align"),
29
+ value: d(C),
30
+ options: [
31
+ {
32
+ label: "left",
33
+ value: "left"
34
+ },
35
+ {
36
+ label: "center",
37
+ value: "center"
38
+ },
39
+ {
40
+ label: "right",
41
+ value: "right"
42
+ }
43
+ ],
44
+ "onUpdate:value": t[1] ||= (e) => C.value = e
45
+ }, null, 8, ["label", "value"]),
46
+ c(i, {
47
+ label: d(h)("edits.props.size"),
48
+ value: d(D),
49
+ options: [
50
+ {
51
+ label: "tiny",
52
+ value: "tiny"
53
+ },
54
+ {
55
+ label: "small",
56
+ value: "small"
57
+ },
58
+ {
59
+ label: "medium",
60
+ value: "medium"
61
+ },
62
+ {
63
+ label: "large",
64
+ value: "large"
65
+ }
66
+ ],
67
+ "onUpdate:value": t[2] ||= (e) => D.value = e
68
+ }, null, 8, ["label", "value"]),
69
+ c(i, {
70
+ label: d(h)("edits.props.type"),
71
+ value: d(O),
72
+ options: [
73
+ {
74
+ label: "default",
75
+ value: "default"
76
+ },
77
+ {
78
+ label: "tertiary",
79
+ value: "tertiary"
80
+ },
81
+ {
82
+ label: "primary",
83
+ value: "primary"
84
+ },
85
+ {
86
+ label: "success",
87
+ value: "success"
88
+ },
89
+ {
90
+ label: "info",
91
+ value: "info"
92
+ },
93
+ {
94
+ label: "warning",
95
+ value: "warning"
96
+ },
97
+ {
98
+ label: "error",
99
+ value: "error"
100
+ }
101
+ ],
102
+ "onUpdate:value": t[3] ||= (e) => O.value = e
103
+ }, null, 8, ["label", "value"]),
104
+ c(a, {
105
+ label: d(h)("edits.props.block"),
106
+ value: d(g),
107
+ "onUpdate:value": t[4] ||= (e) => g.value = e
108
+ }, null, 8, ["label", "value"]),
109
+ c(a, {
110
+ label: d(h)("edits.props.bordered"),
111
+ value: d(_),
112
+ "onUpdate:value": t[5] ||= (e) => _.value = e
113
+ }, null, 8, ["label", "value"]),
114
+ c(a, {
115
+ label: d(h)("edits.props.circle"),
116
+ value: d(v),
117
+ "onUpdate:value": t[6] ||= (e) => v.value = e
118
+ }, null, 8, ["label", "value"]),
119
+ c(a, {
120
+ label: d(h)("edits.props.dashed"),
121
+ value: d(y),
122
+ "onUpdate:value": t[7] ||= (e) => y.value = e
123
+ }, null, 8, ["label", "value"]),
124
+ c(a, {
125
+ label: d(h)("edits.props.ghost"),
126
+ value: d(w),
127
+ "onUpdate:value": t[8] ||= (e) => w.value = e
128
+ }, null, 8, ["label", "value"]),
129
+ c(a, {
130
+ label: d(h)("edits.props.round"),
131
+ value: d(T),
132
+ "onUpdate:value": t[9] ||= (e) => T.value = e
133
+ }, null, 8, ["label", "value"]),
134
+ c(a, {
135
+ label: d(h)("edits.props.secondary"),
136
+ value: d(E),
137
+ "onUpdate:value": t[10] ||= (e) => E.value = e
138
+ }, null, 8, ["label", "value"])
139
+ ]),
140
+ _: 1
141
+ }, 8, ["title"]),
142
+ c(n, { title: d(h)("edits.sections.behavior") }, {
143
+ default: f(() => [
144
+ c(a, {
145
+ label: d(h)("edits.props.disabled"),
146
+ value: d(b),
147
+ "onUpdate:value": t[11] ||= (e) => b.value = e
148
+ }, null, 8, ["label", "value"]),
149
+ c(a, {
150
+ label: d(h)("edits.props.focusable"),
151
+ value: d(x),
152
+ "onUpdate:value": t[12] ||= (e) => x.value = e
153
+ }, null, 8, ["label", "value"]),
154
+ c(a, {
155
+ label: d(h)("edits.props.fullWidth"),
156
+ value: d(S),
157
+ "onUpdate:value": t[13] ||= (e) => S.value = e
158
+ }, null, 8, ["label", "value"])
159
+ ]),
160
+ _: 1
161
+ }, 8, ["title"])
162
+ ], 64));
163
+ }
164
+ });
165
+ //#endregion
166
+ export { p as default };
167
+
168
+ //# sourceMappingURL=NaiveButtonEditor-B4Rp2T7n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NaiveButtonEditor-B4Rp2T7n.js","names":[],"sources":["../../src/components/sidebar-right/edits/editors/NaiveButtonEditor.vue","../../src/components/sidebar-right/edits/editors/NaiveButtonEditor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useFormField } from '../../../../composables/form-fields'\nimport { useFormBuilderI18n } from '../../../../i18n/context'\nimport EditorSection from '../common/EditorSection.vue'\nimport SelectInput from '../common/SelectInput.vue'\nimport SwitchInput from '../common/SwitchInput.vue'\nimport TextInput from '../common/TextInput.vue'\n\nconst { createButtonProp, buttonText } = useFormField()\nconst { t } = useFormBuilderI18n()\n\nconst buttonBlock = createButtonProp<boolean>('block', false)\nconst buttonBordered = createButtonProp<boolean>('bordered', true)\nconst buttonCircle = createButtonProp<boolean>('circle', false)\nconst buttonDashed = createButtonProp<boolean>('dashed', false)\nconst buttonDisabled = createButtonProp<boolean>('disabled', false)\nconst buttonFocusable = createButtonProp<boolean>('focusable', true)\nconst buttonFullWidth = createButtonProp<boolean>('fullWidth', false)\nconst buttonAlign = createButtonProp<string>('align', 'left')\nconst buttonGhost = createButtonProp<boolean>('ghost', false)\nconst buttonRound = createButtonProp<boolean>('round', false)\nconst buttonSecondary = createButtonProp<boolean>('secondary', false)\nconst buttonSize = createButtonProp<string>('size', 'medium')\nconst buttonType = createButtonProp<string>('buttonType', 'default')\n</script>\n\n<template>\n <TextInput\n :label=\"t('edits.props.text')\"\n :placeholder=\"t('edits.button.textPlaceholder')\"\n :value=\"buttonText\"\n @update:value=\"(v) => (buttonText = v)\"\n />\n <EditorSection :title=\"t('edits.sections.appearance')\">\n <SelectInput\n :label=\"t('edits.props.align')\"\n :value=\"buttonAlign\"\n :options=\"[\n { label: 'left', value: 'left' },\n { label: 'center', value: 'center' },\n { label: 'right', value: 'right' },\n ]\"\n @update:value=\"(v) => (buttonAlign = v)\"\n />\n <SelectInput\n :label=\"t('edits.props.size')\"\n :value=\"buttonSize\"\n :options=\"[\n { label: 'tiny', value: 'tiny' },\n { label: 'small', value: 'small' },\n { label: 'medium', value: 'medium' },\n { label: 'large', value: 'large' },\n ]\"\n @update:value=\"(v) => (buttonSize = v)\"\n />\n <SelectInput\n :label=\"t('edits.props.type')\"\n :value=\"buttonType\"\n :options=\"[\n { label: 'default', value: 'default' },\n { label: 'tertiary', value: 'tertiary' },\n { label: 'primary', value: 'primary' },\n { label: 'success', value: 'success' },\n { label: 'info', value: 'info' },\n { label: 'warning', value: 'warning' },\n { label: 'error', value: 'error' },\n ]\"\n @update:value=\"(v) => (buttonType = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.block')\"\n :value=\"buttonBlock\"\n @update:value=\"(v) => (buttonBlock = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.bordered')\"\n :value=\"buttonBordered\"\n @update:value=\"(v) => (buttonBordered = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.circle')\"\n :value=\"buttonCircle\"\n @update:value=\"(v) => (buttonCircle = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.dashed')\"\n :value=\"buttonDashed\"\n @update:value=\"(v) => (buttonDashed = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.ghost')\"\n :value=\"buttonGhost\"\n @update:value=\"(v) => (buttonGhost = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.round')\"\n :value=\"buttonRound\"\n @update:value=\"(v) => (buttonRound = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.secondary')\"\n :value=\"buttonSecondary\"\n @update:value=\"(v) => (buttonSecondary = v)\"\n />\n </EditorSection>\n <EditorSection :title=\"t('edits.sections.behavior')\">\n <SwitchInput\n :label=\"t('edits.props.disabled')\"\n :value=\"buttonDisabled\"\n @update:value=\"(v) => (buttonDisabled = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.focusable')\"\n :value=\"buttonFocusable\"\n @update:value=\"(v) => (buttonFocusable = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.fullWidth')\"\n :value=\"buttonFullWidth\"\n @update:value=\"(v) => (buttonFullWidth = v)\"\n />\n </EditorSection>\n</template>\n","<script setup lang=\"ts\">\nimport { useFormField } from '../../../../composables/form-fields'\nimport { useFormBuilderI18n } from '../../../../i18n/context'\nimport EditorSection from '../common/EditorSection.vue'\nimport SelectInput from '../common/SelectInput.vue'\nimport SwitchInput from '../common/SwitchInput.vue'\nimport TextInput from '../common/TextInput.vue'\n\nconst { createButtonProp, buttonText } = useFormField()\nconst { t } = useFormBuilderI18n()\n\nconst buttonBlock = createButtonProp<boolean>('block', false)\nconst buttonBordered = createButtonProp<boolean>('bordered', true)\nconst buttonCircle = createButtonProp<boolean>('circle', false)\nconst buttonDashed = createButtonProp<boolean>('dashed', false)\nconst buttonDisabled = createButtonProp<boolean>('disabled', false)\nconst buttonFocusable = createButtonProp<boolean>('focusable', true)\nconst buttonFullWidth = createButtonProp<boolean>('fullWidth', false)\nconst buttonAlign = createButtonProp<string>('align', 'left')\nconst buttonGhost = createButtonProp<boolean>('ghost', false)\nconst buttonRound = createButtonProp<boolean>('round', false)\nconst buttonSecondary = createButtonProp<boolean>('secondary', false)\nconst buttonSize = createButtonProp<string>('size', 'medium')\nconst buttonType = createButtonProp<string>('buttonType', 'default')\n</script>\n\n<template>\n <TextInput\n :label=\"t('edits.props.text')\"\n :placeholder=\"t('edits.button.textPlaceholder')\"\n :value=\"buttonText\"\n @update:value=\"(v) => (buttonText = v)\"\n />\n <EditorSection :title=\"t('edits.sections.appearance')\">\n <SelectInput\n :label=\"t('edits.props.align')\"\n :value=\"buttonAlign\"\n :options=\"[\n { label: 'left', value: 'left' },\n { label: 'center', value: 'center' },\n { label: 'right', value: 'right' },\n ]\"\n @update:value=\"(v) => (buttonAlign = v)\"\n />\n <SelectInput\n :label=\"t('edits.props.size')\"\n :value=\"buttonSize\"\n :options=\"[\n { label: 'tiny', value: 'tiny' },\n { label: 'small', value: 'small' },\n { label: 'medium', value: 'medium' },\n { label: 'large', value: 'large' },\n ]\"\n @update:value=\"(v) => (buttonSize = v)\"\n />\n <SelectInput\n :label=\"t('edits.props.type')\"\n :value=\"buttonType\"\n :options=\"[\n { label: 'default', value: 'default' },\n { label: 'tertiary', value: 'tertiary' },\n { label: 'primary', value: 'primary' },\n { label: 'success', value: 'success' },\n { label: 'info', value: 'info' },\n { label: 'warning', value: 'warning' },\n { label: 'error', value: 'error' },\n ]\"\n @update:value=\"(v) => (buttonType = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.block')\"\n :value=\"buttonBlock\"\n @update:value=\"(v) => (buttonBlock = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.bordered')\"\n :value=\"buttonBordered\"\n @update:value=\"(v) => (buttonBordered = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.circle')\"\n :value=\"buttonCircle\"\n @update:value=\"(v) => (buttonCircle = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.dashed')\"\n :value=\"buttonDashed\"\n @update:value=\"(v) => (buttonDashed = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.ghost')\"\n :value=\"buttonGhost\"\n @update:value=\"(v) => (buttonGhost = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.round')\"\n :value=\"buttonRound\"\n @update:value=\"(v) => (buttonRound = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.secondary')\"\n :value=\"buttonSecondary\"\n @update:value=\"(v) => (buttonSecondary = v)\"\n />\n </EditorSection>\n <EditorSection :title=\"t('edits.sections.behavior')\">\n <SwitchInput\n :label=\"t('edits.props.disabled')\"\n :value=\"buttonDisabled\"\n @update:value=\"(v) => (buttonDisabled = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.focusable')\"\n :value=\"buttonFocusable\"\n @update:value=\"(v) => (buttonFocusable = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.fullWidth')\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;KAE1C,EAIE,GAAA;MAHC,OAAO,EAAA,EAAC,CAAA,wBAAA;MACR,OAAO,EAAA,EAAe;MACtB,kBAAY,AAAA,EAAA,SAAG,MAAO,EAAA,QAAkB;;KAE3C,EAIE,GAAA;MAHC,OAAO,EAAA,EAAC,CAAA,wBAAA;MACR,OAAO,EAAA,EAAe;MACtB,kBAAY,AAAA,EAAA,SAAG,MAAO,EAAA,QAAkB"}
@@ -0,0 +1,26 @@
1
+ import { t as e } from "./OptionsSourceTabs-3fsum0OI.js";
2
+ import { t } from "./NaiveBasicSection-wNyhGLou.js";
3
+ import { t as n } from "./PlaceholderSection-BKOS-7Qu.js";
4
+ import { Fragment as r, createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s } from "vue";
5
+ //#endregion
6
+ //#region src/components/sidebar-right/edits/editors/NaiveCascaderEditor.vue
7
+ var c = /* @__PURE__ */ o({
8
+ __name: "NaiveCascaderEditor",
9
+ setup(o) {
10
+ return (o, c) => (s(), i(r, null, [
11
+ a(n),
12
+ a(e, { mode: "tree" }),
13
+ a(t, {
14
+ size: !0,
15
+ disabled: !0,
16
+ clearable: !0,
17
+ filterable: !0,
18
+ multiple: !0
19
+ })
20
+ ], 64));
21
+ }
22
+ });
23
+ //#endregion
24
+ export { c as default };
25
+
26
+ //# sourceMappingURL=NaiveCascaderEditor-BtD6KRXl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NaiveCascaderEditor-BtD6KRXl.js","names":[],"sources":["../../src/components/sidebar-right/edits/editors/NaiveCascaderEditor.vue","../../src/components/sidebar-right/edits/editors/NaiveCascaderEditor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport PlaceholderSection from '../common/PlaceholderSection.vue'\nimport OptionsSourceTabs from '../common/OptionsSourceTabs.vue'\nimport NaiveBasicSection from '../common/NaiveBasicSection.vue'\n</script>\n\n<template>\n <PlaceholderSection />\n <OptionsSourceTabs mode=\"tree\" />\n <NaiveBasicSection\n :size=\"true\"\n :disabled=\"true\"\n :clearable=\"true\"\n :filterable=\"true\"\n :multiple=\"true\"\n />\n</template>\n","<script setup lang=\"ts\">\nimport PlaceholderSection from '../common/PlaceholderSection.vue'\nimport OptionsSourceTabs from '../common/OptionsSourceTabs.vue'\nimport NaiveBasicSection from '../common/NaiveBasicSection.vue'\n</script>\n\n<template>\n <PlaceholderSection />\n <OptionsSourceTabs mode=\"tree\" />\n <NaiveBasicSection\n :size=\"true\"\n :disabled=\"true\"\n :clearable=\"true\"\n :filterable=\"true\"\n :multiple=\"true\"\n />\n</template>\n"],"mappings":";;;;;;;;;;GAOE,EAAsB,EAAA;GACtB,EAAiC,GAAA,EAAd,MAAK,QAAM,CAAA;GAC9B,EAME,GAAA;IALC,MAAM;IACN,UAAU;IACV,WAAW;IACX,YAAY;IACZ,UAAU"}
@@ -0,0 +1,52 @@
1
+ import { n as e } from "./context-4zkSHwVA.js";
2
+ import { t } from "./form-fields-DjLk8iH2.js";
3
+ import { t as n } from "./EditorSection-BR3qdK2c.js";
4
+ import { t as r } from "./SelectInput-DY4Oi2Lp.js";
5
+ import { t as i } from "./SwitchInput-DQrSTyW0.js";
6
+ import { createBlock as a, createVNode as o, defineComponent as s, openBlock as c, unref as l, withCtx as u } from "vue";
7
+ //#endregion
8
+ //#region src/components/sidebar-right/edits/editors/NaiveDividerEditor.vue
9
+ var d = /* @__PURE__ */ s({
10
+ __name: "NaiveDividerEditor",
11
+ setup(s) {
12
+ let { createPropsProp: d } = t(), { t: f } = e(), p = d("titlePlacement", "center"), m = d("dashed", !1), h = d("vertical", !1);
13
+ return (e, t) => (c(), a(n, { title: l(f)("edits.sections.appearance") }, {
14
+ default: u(() => [
15
+ o(r, {
16
+ label: l(f)("edits.props.titlePlacement"),
17
+ value: l(p),
18
+ options: [
19
+ {
20
+ label: "left",
21
+ value: "left"
22
+ },
23
+ {
24
+ label: "center",
25
+ value: "center"
26
+ },
27
+ {
28
+ label: "right",
29
+ value: "right"
30
+ }
31
+ ],
32
+ "onUpdate:value": t[0] ||= (e) => p.value = e
33
+ }, null, 8, ["label", "value"]),
34
+ o(i, {
35
+ label: l(f)("edits.props.dashed"),
36
+ value: l(m),
37
+ "onUpdate:value": t[1] ||= (e) => m.value = e
38
+ }, null, 8, ["label", "value"]),
39
+ o(i, {
40
+ label: l(f)("edits.props.vertical"),
41
+ value: l(h),
42
+ "onUpdate:value": t[2] ||= (e) => h.value = e
43
+ }, null, 8, ["label", "value"])
44
+ ]),
45
+ _: 1
46
+ }, 8, ["title"]));
47
+ }
48
+ });
49
+ //#endregion
50
+ export { d as default };
51
+
52
+ //# sourceMappingURL=NaiveDividerEditor-B1dPteDV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NaiveDividerEditor-B1dPteDV.js","names":[],"sources":["../../src/components/sidebar-right/edits/editors/NaiveDividerEditor.vue","../../src/components/sidebar-right/edits/editors/NaiveDividerEditor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useFormField } from '../../../../composables/form-fields'\nimport { useFormBuilderI18n } from '../../../../i18n/context'\nimport EditorSection from '../common/EditorSection.vue'\nimport SelectInput from '../common/SelectInput.vue'\nimport SwitchInput from '../common/SwitchInput.vue'\n\nconst { createPropsProp } = useFormField()\nconst { t } = useFormBuilderI18n()\n\nconst dividerTitlePlacement = createPropsProp<string>('titlePlacement', 'center')\nconst dividerDashed = createPropsProp<boolean>('dashed', false)\nconst dividerVertical = createPropsProp<boolean>('vertical', false)\n</script>\n\n<template>\n <EditorSection :title=\"t('edits.sections.appearance')\">\n <SelectInput\n :label=\"t('edits.props.titlePlacement')\"\n :value=\"dividerTitlePlacement\"\n :options=\"[\n { label: 'left', value: 'left' },\n { label: 'center', value: 'center' },\n { label: 'right', value: 'right' },\n ]\"\n @update:value=\"(v) => (dividerTitlePlacement = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.dashed')\"\n :value=\"dividerDashed\"\n @update:value=\"(v) => (dividerDashed = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.vertical')\"\n :value=\"dividerVertical\"\n @update:value=\"(v) => (dividerVertical = v)\"\n />\n </EditorSection>\n</template>\n","<script setup lang=\"ts\">\nimport { useFormField } from '../../../../composables/form-fields'\nimport { useFormBuilderI18n } from '../../../../i18n/context'\nimport EditorSection from '../common/EditorSection.vue'\nimport SelectInput from '../common/SelectInput.vue'\nimport SwitchInput from '../common/SwitchInput.vue'\n\nconst { createPropsProp } = useFormField()\nconst { t } = useFormBuilderI18n()\n\nconst dividerTitlePlacement = createPropsProp<string>('titlePlacement', 'center')\nconst dividerDashed = createPropsProp<boolean>('dashed', false)\nconst dividerVertical = createPropsProp<boolean>('vertical', false)\n</script>\n\n<template>\n <EditorSection :title=\"t('edits.sections.appearance')\">\n <SelectInput\n :label=\"t('edits.props.titlePlacement')\"\n :value=\"dividerTitlePlacement\"\n :options=\"[\n { label: 'left', value: 'left' },\n { label: 'center', value: 'center' },\n { label: 'right', value: 'right' },\n ]\"\n @update:value=\"(v) => (dividerTitlePlacement = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.dashed')\"\n :value=\"dividerDashed\"\n @update:value=\"(v) => (dividerDashed = v)\"\n />\n <SwitchInput\n :label=\"t('edits.props.vertical')\"\n :value=\"dividerVertical\"\n @update:value=\"(v) => (dividerVertical = v)\"\n />\n </EditorSection>\n</template>\n"],"mappings":";;;;;;;;;;;EAOA,IAAM,EAAE,uBAAoB,GAAa,EACnC,EAAE,SAAM,GAAmB,EAE3B,IAAwB,EAAwB,kBAAkB,SAAQ,EAC1E,IAAgB,EAAyB,UAAU,GAAK,EACxD,IAAkB,EAAyB,YAAY,GAAK;yBAIhE,EAqBgB,GAAA,EArBA,OAAO,EAAA,EAAC,CAAA,4BAAA,EAAA,EAAA;oBAUpB;IATF,EASE,GAAA;KARC,OAAO,EAAA,EAAC,CAAA,6BAAA;KACR,OAAO,EAAA,EAAqB;KAC5B,SAAS;;;;;;;;;;;;;MAIT;KACA,kBAAY,AAAA,EAAA,QAAG,MAAO,EAAA,QAAwB;;IAEjD,EAIE,GAAA;KAHC,OAAO,EAAA,EAAC,CAAA,qBAAA;KACR,OAAO,EAAA,EAAa;KACpB,kBAAY,AAAA,EAAA,QAAG,MAAO,EAAA,QAAgB;;IAEzC,EAIE,GAAA;KAHC,OAAO,EAAA,EAAC,CAAA,uBAAA;KACR,OAAO,EAAA,EAAe;KACtB,kBAAY,AAAA,EAAA,QAAG,MAAO,EAAA,QAAkB"}
@@ -0,0 +1,14 @@
1
+ import { t as e } from "./NaiveHeaderEditor-Cy02AmLI.js";
2
+ import { createBlock as t, defineComponent as n, openBlock as r } from "vue";
3
+ //#endregion
4
+ //#region src/components/sidebar-right/edits/editors/NaiveH1Editor.vue
5
+ var i = /* @__PURE__ */ n({
6
+ __name: "NaiveH1Editor",
7
+ setup(n) {
8
+ return (n, i) => (r(), t(e));
9
+ }
10
+ });
11
+ //#endregion
12
+ export { i as default };
13
+
14
+ //# sourceMappingURL=NaiveH1Editor-Can7c9mh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NaiveH1Editor-Can7c9mh.js","names":[],"sources":["../../src/components/sidebar-right/edits/editors/NaiveH1Editor.vue","../../src/components/sidebar-right/edits/editors/NaiveH1Editor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport NaiveHeaderEditor from './NaiveHeaderEditor.vue'\n</script>\n\n<template>\n <NaiveHeaderEditor />\n</template>\n","<script setup lang=\"ts\">\nimport NaiveHeaderEditor from './NaiveHeaderEditor.vue'\n</script>\n\n<template>\n <NaiveHeaderEditor />\n</template>\n"],"mappings":";;;;;;;yBAKE,EAAqB,EAAA"}
@@ -0,0 +1,14 @@
1
+ import { t as e } from "./NaiveHeaderEditor-Cy02AmLI.js";
2
+ import { createBlock as t, defineComponent as n, openBlock as r } from "vue";
3
+ //#endregion
4
+ //#region src/components/sidebar-right/edits/editors/NaiveH2Editor.vue
5
+ var i = /* @__PURE__ */ n({
6
+ __name: "NaiveH2Editor",
7
+ setup(n) {
8
+ return (n, i) => (r(), t(e));
9
+ }
10
+ });
11
+ //#endregion
12
+ export { i as default };
13
+
14
+ //# sourceMappingURL=NaiveH2Editor-BRKeEVf4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NaiveH2Editor-BRKeEVf4.js","names":[],"sources":["../../src/components/sidebar-right/edits/editors/NaiveH2Editor.vue","../../src/components/sidebar-right/edits/editors/NaiveH2Editor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport NaiveHeaderEditor from './NaiveHeaderEditor.vue'\n</script>\n\n<template>\n <NaiveHeaderEditor />\n</template>\n","<script setup lang=\"ts\">\nimport NaiveHeaderEditor from './NaiveHeaderEditor.vue'\n</script>\n\n<template>\n <NaiveHeaderEditor />\n</template>\n"],"mappings":";;;;;;;yBAKE,EAAqB,EAAA"}
@@ -0,0 +1,14 @@
1
+ import { t as e } from "./NaiveHeaderEditor-Cy02AmLI.js";
2
+ import { createBlock as t, defineComponent as n, openBlock as r } from "vue";
3
+ //#endregion
4
+ //#region src/components/sidebar-right/edits/editors/NaiveH3Editor.vue
5
+ var i = /* @__PURE__ */ n({
6
+ __name: "NaiveH3Editor",
7
+ setup(n) {
8
+ return (n, i) => (r(), t(e));
9
+ }
10
+ });
11
+ //#endregion
12
+ export { i as default };
13
+
14
+ //# sourceMappingURL=NaiveH3Editor-DCdyd3-n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NaiveH3Editor-DCdyd3-n.js","names":[],"sources":["../../src/components/sidebar-right/edits/editors/NaiveH3Editor.vue","../../src/components/sidebar-right/edits/editors/NaiveH3Editor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport NaiveHeaderEditor from './NaiveHeaderEditor.vue'\n</script>\n\n<template>\n <NaiveHeaderEditor />\n</template>\n","<script setup lang=\"ts\">\nimport NaiveHeaderEditor from './NaiveHeaderEditor.vue'\n</script>\n\n<template>\n <NaiveHeaderEditor />\n</template>\n"],"mappings":";;;;;;;yBAKE,EAAqB,EAAA"}
@@ -0,0 +1,14 @@
1
+ import { t as e } from "./NaiveHeaderEditor-Cy02AmLI.js";
2
+ import { createBlock as t, defineComponent as n, openBlock as r } from "vue";
3
+ //#endregion
4
+ //#region src/components/sidebar-right/edits/editors/NaiveH4Editor.vue
5
+ var i = /* @__PURE__ */ n({
6
+ __name: "NaiveH4Editor",
7
+ setup(n) {
8
+ return (n, i) => (r(), t(e));
9
+ }
10
+ });
11
+ //#endregion
12
+ export { i as default };
13
+
14
+ //# sourceMappingURL=NaiveH4Editor-COFS6udv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NaiveH4Editor-COFS6udv.js","names":[],"sources":["../../src/components/sidebar-right/edits/editors/NaiveH4Editor.vue","../../src/components/sidebar-right/edits/editors/NaiveH4Editor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport NaiveHeaderEditor from './NaiveHeaderEditor.vue'\n</script>\n\n<template>\n <NaiveHeaderEditor />\n</template>\n","<script setup lang=\"ts\">\nimport NaiveHeaderEditor from './NaiveHeaderEditor.vue'\n</script>\n\n<template>\n <NaiveHeaderEditor />\n</template>\n"],"mappings":";;;;;;;yBAKE,EAAqB,EAAA"}
@@ -0,0 +1,14 @@
1
+ import { t as e } from "./NaiveHeaderEditor-Cy02AmLI.js";
2
+ import { createBlock as t, defineComponent as n, openBlock as r } from "vue";
3
+ //#endregion
4
+ //#region src/components/sidebar-right/edits/editors/NaiveH5Editor.vue
5
+ var i = /* @__PURE__ */ n({
6
+ __name: "NaiveH5Editor",
7
+ setup(n) {
8
+ return (n, i) => (r(), t(e));
9
+ }
10
+ });
11
+ //#endregion
12
+ export { i as default };
13
+
14
+ //# sourceMappingURL=NaiveH5Editor-CQEe6s1O.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NaiveH5Editor-CQEe6s1O.js","names":[],"sources":["../../src/components/sidebar-right/edits/editors/NaiveH5Editor.vue","../../src/components/sidebar-right/edits/editors/NaiveH5Editor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport NaiveHeaderEditor from './NaiveHeaderEditor.vue'\n</script>\n\n<template>\n <NaiveHeaderEditor />\n</template>\n","<script setup lang=\"ts\">\nimport NaiveHeaderEditor from './NaiveHeaderEditor.vue'\n</script>\n\n<template>\n <NaiveHeaderEditor />\n</template>\n"],"mappings":";;;;;;;yBAKE,EAAqB,EAAA"}