@oneclick.dev/cms-core-modules 0.0.109 → 0.0.110

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 (576) hide show
  1. package/dist/Acquisition-DNCy8nQz.mjs +400 -0
  2. package/dist/Acquisition-Dt2rREU8.js +1 -0
  3. package/dist/AgendaOpeningHoursCard-B7ROIPWw.js +1 -0
  4. package/dist/AgendaOpeningHoursCard-Cp4wxUeK.mjs +172 -0
  5. package/dist/AppointmentDetailsCard-33WpATpV.mjs +161 -0
  6. package/dist/AppointmentDetailsCard-DpLM5IrB.js +1 -0
  7. package/dist/AppointmentEditor-BeOtYV6u.mjs +196 -0
  8. package/dist/AppointmentEditor-CaTfbkIf.js +1 -0
  9. package/dist/AppointmentListTable-DZJNmTMb.mjs +177 -0
  10. package/dist/AppointmentListTable-Dieu9US_.js +1 -0
  11. package/dist/Audience-Bs7b0TNm.js +1 -0
  12. package/dist/Audience-CUeMVYRy.mjs +489 -0
  13. package/dist/Components-C83O-xlF.mjs +623 -0
  14. package/dist/Components-DXbx0RLV.js +1 -0
  15. package/dist/Content-BHr_rPVY.js +1 -0
  16. package/dist/Content-CYOZKvWK.mjs +358 -0
  17. package/dist/ContentEditor-BprPiHMJ.js +462 -0
  18. package/dist/ContentEditor-D9-1SJ5F.mjs +30700 -0
  19. package/dist/CountryBreakdownCard-D7BK3nRD.js +1 -0
  20. package/dist/CountryBreakdownCard-DVxNz2DJ.mjs +196 -0
  21. package/dist/Create-89z41K73.js +1 -0
  22. package/dist/Create-BCklc_T1.mjs +1251 -0
  23. package/dist/DateFormatter-CYAD4GBN.js +1 -0
  24. package/dist/DateFormatter-DUxlo8X8.mjs +734 -0
  25. package/dist/Detail-BCOcP2ql.mjs +585 -0
  26. package/dist/Detail-Btzwo0Y3.mjs +3477 -0
  27. package/dist/Detail-Byk781b4.mjs +26 -0
  28. package/dist/Detail-C857g62L.js +1 -0
  29. package/dist/Detail-C8wQiDcv.js +1 -0
  30. package/dist/Detail-CNlljBfH.mjs +379 -0
  31. package/dist/Detail-CPqug27l.js +1 -0
  32. package/dist/Detail-CjuhjPby.js +1 -0
  33. package/dist/Detail-DnX7tsqN.mjs +649 -0
  34. package/dist/Detail-mvSGbnFU.js +1 -0
  35. package/dist/DeviceBreakdownCard-DRhQ9ufG.js +1 -0
  36. package/dist/DeviceBreakdownCard-W1frLe0L.mjs +159 -0
  37. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +76 -0
  38. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +1 -0
  39. package/dist/Entries-BdhUyJR5.mjs +728 -0
  40. package/dist/Entries-CEXM_SkO.js +1 -0
  41. package/dist/Find-D4Qa45qC.js +1 -0
  42. package/dist/Find-DIISO5GO.mjs +229 -0
  43. package/dist/GlobalStyling-C9VthHWK.mjs +1588 -0
  44. package/dist/GlobalStyling-CnSlXkZc.js +25 -0
  45. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +1 -0
  46. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dh9jzvE0.mjs +1255 -0
  47. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +1 -0
  48. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +330 -0
  49. package/dist/Overview-BCpJNiEB.mjs +190 -0
  50. package/dist/Overview-BDlBCUI_.js +1 -0
  51. package/dist/Overview-BKAti8nc.mjs +567 -0
  52. package/dist/Overview-BbvfH1u-.js +1 -0
  53. package/dist/Overview-Bn1Xx3_j.js +1 -0
  54. package/dist/Overview-C-Jb_BxY.mjs +860 -0
  55. package/dist/Overview-CIa1E-HH.mjs +178 -0
  56. package/dist/Overview-DAxCu9XC.js +1 -0
  57. package/dist/Overview-DC9io1bk.js +1 -0
  58. package/dist/Overview-Di84CsR5.mjs +476 -0
  59. package/dist/Overview-Su8ZUbMs.mjs +26 -0
  60. package/dist/Overview-T-lsy3UZ.js +1 -0
  61. package/dist/Overview-UoZHUMUz.js +1 -0
  62. package/dist/Overview-lWAyyenp.mjs +632 -0
  63. package/dist/PeakHoursCard-9-EZFZLR.mjs +182 -0
  64. package/dist/PeakHoursCard-BR5zmta4.js +1 -0
  65. package/dist/ProductDetailsCard-6nHikw4V.mjs +121 -0
  66. package/dist/ProductDetailsCard-Bn7qrgmc.js +1 -0
  67. package/dist/RealtimeCard--APfRNc8.js +1 -0
  68. package/dist/RealtimeCard-fvQlJcM7.mjs +126 -0
  69. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +349 -0
  70. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +3077 -0
  71. package/dist/SearchTermsCard-BsB-63aH.js +1 -0
  72. package/dist/SearchTermsCard-BzVrHKqQ.mjs +201 -0
  73. package/dist/SendPush-COns44j7.js +1 -0
  74. package/dist/SendPush-CPIOjVX4.mjs +184 -0
  75. package/dist/SeoHealth-MC3lSCOY.mjs +615 -0
  76. package/dist/SeoHealth-az1YuNF2.js +1 -0
  77. package/dist/TableView-DQW0A1oG.js +4 -0
  78. package/dist/TableView-DXHhJ-jm.mjs +6143 -0
  79. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-B_AtWnHa.js +1 -0
  80. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-Cmovy7kk.mjs +40 -0
  81. package/dist/TopPagesCard-BDeA997A.js +1 -0
  82. package/dist/TopPagesCard-CTozhOr_.mjs +159 -0
  83. package/dist/TrafficSourcesCard-BxtCKsqx.mjs +197 -0
  84. package/dist/TrafficSourcesCard-C3ziDTUL.js +1 -0
  85. package/dist/View-CsudjxCE.mjs +30 -0
  86. package/dist/View-Dw_wA6kK.js +1 -0
  87. package/dist/VisitorStatsCard-BmByE_Hi.js +1 -0
  88. package/dist/VisitorStatsCard-CXizEbVK.mjs +174 -0
  89. package/dist/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
  90. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  91. package/dist/agenda-DcatSSYQ.mjs +1165 -0
  92. package/dist/agenda-IOqtALWf.js +1 -0
  93. package/dist/array-CbATeQbk.js +1 -0
  94. package/dist/array-DT5pE8Gm.mjs +108 -0
  95. package/dist/availability-CMrRa5y2.mjs +269 -0
  96. package/dist/availability-Cf2YfMwM.js +1 -0
  97. package/dist/booking-data-DgJd0BcM.mjs +889 -0
  98. package/dist/booking-data-Di5GmH_8.js +1 -0
  99. package/dist/cms-core-modules.css +1 -2
  100. package/dist/countries-BTPvmrsb.mjs +4 -0
  101. package/dist/countries-CgZ081No.js +1 -0
  102. package/dist/exceptions-CI0B4xVj.js +1 -0
  103. package/dist/exceptions-YCQkHa6a.mjs +646 -0
  104. package/dist/google-CvtuJwgk.mjs +4 -0
  105. package/dist/google-D4N3gb01.js +1 -0
  106. package/dist/index-4tjmIans.js +1 -0
  107. package/dist/index-9HVlmvK3.js +1 -0
  108. package/dist/index-A2kp8Isi.js +75 -0
  109. package/dist/index-B5aBwdxY.js +54 -0
  110. package/dist/index-BFLV54kw.mjs +3843 -0
  111. package/dist/index-BWDwEd8D.mjs +24 -0
  112. package/dist/index-BfBBm9uY.mjs +24 -0
  113. package/dist/index-BhWvXMOp.mjs +176 -0
  114. package/dist/index-BiT55eU0.js +58 -0
  115. package/dist/index-Bkq58CeQ.mjs +22 -0
  116. package/dist/index-BzWmWCo5.mjs +1187 -0
  117. package/dist/index-CJQQBRLY.js +1 -0
  118. package/dist/index-CQkOH2_3.mjs +24 -0
  119. package/dist/index-CSxYBeVA.js +1 -0
  120. package/dist/index-CU-tbS5W.mjs +24 -0
  121. package/dist/index-CZn2nDLv.mjs +34 -0
  122. package/dist/index-CkiNvRzs.js +1 -0
  123. package/dist/index-Co4ON2Di.js +1 -0
  124. package/dist/index-Cpnn_Pxd.mjs +24 -0
  125. package/dist/index-CpzDEMeC.mjs +1443 -0
  126. package/dist/index-CsVeM3PA.mjs +24 -0
  127. package/dist/index-CwqrAU-H.js +1 -0
  128. package/dist/index-CxETuRsG.js +1 -0
  129. package/dist/index-Cz-baGax.js +1 -0
  130. package/dist/index-D30apIn-.mjs +110 -0
  131. package/dist/index-DFQGVHTs.js +1 -0
  132. package/dist/index-DPd3waTN.js +1 -0
  133. package/dist/index-DRqJOqUR.mjs +3484 -0
  134. package/dist/index-DjWuIBxh.js +1 -0
  135. package/dist/index-Dnn2SCSl.js +1 -0
  136. package/dist/index-Dpl9sU6a.mjs +12 -0
  137. package/dist/index-DrXxXB2F.mjs +138 -0
  138. package/dist/index-G7cIlnGN.js +158 -0
  139. package/dist/index-R2oUDsjx.js +1 -0
  140. package/dist/index-RLz1QPrf.mjs +203 -0
  141. package/dist/index-UtjLbLw-.js +1 -0
  142. package/dist/index-V78huaSJ.mjs +442 -0
  143. package/dist/index-cOnxXTbF.mjs +24 -0
  144. package/dist/index-hlylYYgy.mjs +24 -0
  145. package/dist/index-ijdf0d9-.js +1 -0
  146. package/dist/index-vHmvbEwa.js +35 -0
  147. package/dist/index-wjkEPsNx.mjs +2940 -0
  148. package/dist/index.cjs.js +1 -1
  149. package/dist/index.mjs +806 -1095
  150. package/dist/interpolation-CHn59tIC.js +1 -0
  151. package/dist/interpolation-w7IRDJwK.mjs +180 -0
  152. package/dist/orders-C65SlpJy.mjs +618 -0
  153. package/dist/orders-XVzWAgG1.js +1 -0
  154. package/dist/payment-C3ohkehF.mjs +1080 -0
  155. package/dist/payment-Dfr-Ro-a.js +1 -0
  156. package/dist/regular-1LXNPviB.js +1 -0
  157. package/dist/regular-_05oq5Tx.mjs +1101 -0
  158. package/dist/resources-CYOb5Bl6.mjs +811 -0
  159. package/dist/resources-CxeFd57z.js +1 -0
  160. package/dist/server-handlers.cjs.js +1 -1
  161. package/dist/server-handlers.mjs +996 -1049
  162. package/dist/src/appointments/chat-components/AgendaOpeningHoursCard.vue.d.ts +15 -0
  163. package/dist/src/appointments/chat-components/AppointmentDetailsCard.vue.d.ts +14 -0
  164. package/dist/src/appointments/chat-components/AppointmentEditor.vue.d.ts +14 -0
  165. package/dist/src/appointments/chat-components/AppointmentListTable.vue.d.ts +14 -0
  166. package/dist/src/appointments/components/create/StepNavigation.vue.d.ts +32 -0
  167. package/dist/src/appointments/components/create/regular/Step1.vue.d.ts +2 -0
  168. package/dist/src/appointments/components/create/regular/Step2.vue.d.ts +2 -0
  169. package/dist/src/appointments/components/create/regular/Step3.vue.d.ts +2 -0
  170. package/dist/src/appointments/components/create/regular/Step4.vue.d.ts +2 -0
  171. package/dist/src/appointments/components/edit/CustomerInformationFieldEditorDialog.vue.d.ts +24 -0
  172. package/dist/src/appointments/components/edit/EditLayout.vue.d.ts +17 -0
  173. package/dist/src/appointments/components/edit/Event24hSidebar.vue.d.ts +2 -0
  174. package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +8 -0
  175. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +136 -0
  176. package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +8 -0
  177. package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +11 -0
  178. package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +55 -0
  179. package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +8 -0
  180. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +87 -0
  181. package/dist/src/appointments/components/edit/EventDialog/TimelineChart.vue.d.ts +24 -0
  182. package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +4 -0
  183. package/dist/src/appointments/components/edit/EventTimeIndicator.vue.d.ts +12 -0
  184. package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +48 -0
  185. package/dist/src/appointments/components/edit/EventView.vue.d.ts +9 -0
  186. package/dist/src/appointments/components/edit/ExceptionDialog.vue.d.ts +29 -0
  187. package/dist/src/appointments/components/edit/MetadataSchemaEditorDialog.vue.d.ts +12 -0
  188. package/dist/src/appointments/components/edit/NewReservationDialog/CustomerInformation.vue.d.ts +10 -0
  189. package/dist/src/appointments/components/edit/NewReservationDialog/NewReservationDialog.vue.d.ts +26 -0
  190. package/dist/src/appointments/components/edit/NewReservationDialog/QuickReservationAdder.vue.d.ts +26 -0
  191. package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +31 -0
  192. package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +21 -0
  193. package/dist/src/appointments/components/edit/PaymentAddons/Addon.vue.d.ts +22 -0
  194. package/dist/src/appointments/components/edit/PaymentAddons/AddonList.vue.d.ts +5 -0
  195. package/dist/src/appointments/components/edit/PaymentAddons/index.vue.d.ts +15 -0
  196. package/dist/src/appointments/components/edit/ResourceEditorDialog.vue.d.ts +13 -0
  197. package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +36 -0
  198. package/dist/src/appointments/components/edit/dashboard/timeline/ResourceSelector.vue.d.ts +50 -0
  199. package/dist/src/appointments/index.d.ts +12 -9
  200. package/dist/src/appointments/index.vue.d.ts +22 -0
  201. package/dist/src/appointments/metadata.d.ts +1 -1
  202. package/dist/src/appointments/pages/Overview.vue.d.ts +4 -0
  203. package/dist/src/appointments/pages/create/index.vue.d.ts +2 -0
  204. package/dist/src/appointments/pages/create/regular.vue.d.ts +6 -0
  205. package/dist/src/appointments/pages/edit/agenda.vue.d.ts +4 -0
  206. package/dist/src/appointments/pages/edit/availability.vue.d.ts +2 -0
  207. package/dist/src/appointments/pages/edit/booking-data.vue.d.ts +65 -0
  208. package/dist/src/appointments/pages/edit/index.vue.d.ts +2 -0
  209. package/dist/src/appointments/pages/edit/payment.vue.d.ts +2 -0
  210. package/dist/src/appointments/pages/edit/resources.vue.d.ts +28 -0
  211. package/dist/src/appointments/routes.d.ts +6 -3
  212. package/dist/src/contentManager/components/components/ComponentDialog.vue.d.ts +12 -0
  213. package/dist/src/contentManager/components/components/ComponentGridItem.vue.d.ts +16 -0
  214. package/dist/src/contentManager/components/content-editor/ApiDocs.vue.d.ts +2 -0
  215. package/dist/src/contentManager/components/content-editor/ContentLayout.vue.d.ts +49 -0
  216. package/dist/src/contentManager/components/content-editor/ContentSettings.vue.d.ts +24 -0
  217. package/dist/src/contentManager/components/content-editor/ContentStructuredContentSections.vue.d.ts +4 -0
  218. package/dist/src/contentManager/components/content-editor/Header.vue.d.ts +64 -0
  219. package/dist/src/contentManager/components/content-editor/LivePreviewWrapper.vue.d.ts +53 -0
  220. package/dist/src/contentManager/components/content-editor/Locales.vue.d.ts +44 -0
  221. package/dist/src/contentManager/components/content-editor/NewSectionDialog.vue.d.ts +21 -0
  222. package/dist/src/contentManager/components/content-editor/PageSettings.vue.d.ts +2 -0
  223. package/dist/src/contentManager/components/content-editor/SEO.vue.d.ts +14 -0
  224. package/dist/src/contentManager/components/content-editor/SidebarSectionWrapper.vue.d.ts +39 -0
  225. package/dist/src/contentManager/components/content-editor/Status.vue.d.ts +2 -0
  226. package/dist/src/contentManager/components/content-editor/Versions.vue.d.ts +63 -0
  227. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Button.vue.d.ts +94 -0
  228. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Card.vue.d.ts +92 -0
  229. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Column.vue.d.ts +92 -0
  230. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Container.vue.d.ts +92 -0
  231. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Divider.vue.d.ts +92 -0
  232. package/dist/src/contentManager/components/content-editor/tiptap-extensions/EmptySpace.vue.d.ts +94 -0
  233. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Heading.vue.d.ts +92 -0
  234. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Image.vue.d.ts +92 -0
  235. package/dist/src/contentManager/components/content-editor/tiptap-extensions/LockBlocks.d.ts +0 -15
  236. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Map.vue.d.ts +92 -0
  237. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Paragraph.vue.d.ts +92 -0
  238. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Row.vue.d.ts +115 -0
  239. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Stack.vue.d.ts +115 -0
  240. package/dist/src/contentManager/components/content-editor/tiptap-extensions/TrailingNodeInContainers.d.ts +1 -4
  241. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Video.vue.d.ts +92 -0
  242. package/dist/src/contentManager/components/content-editor/tiptap-extensions/extension-details/DetailsNodeView.vue.d.ts +92 -0
  243. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/NodeLabel.vue.d.ts +108 -0
  244. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/ResizeHandlers.vue.d.ts +20 -0
  245. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/TopMarginDragger.vue.d.ts +104 -0
  246. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuClassBuilder.vue.d.ts +19 -0
  247. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuLinkBuilder.vue.d.ts +19 -0
  248. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuToggleButton.vue.d.ts +29 -0
  249. package/dist/src/contentManager/components/content-editor/tiptap-menus/DefaultBubbleMenu.vue.d.ts +13 -0
  250. package/dist/src/contentManager/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +19 -0
  251. package/dist/src/contentManager/components/content-editor/tiptap-menus/EmojiMenu.vue.d.ts +8 -0
  252. package/dist/src/contentManager/components/content-editor/tiptap-menus/NewNodeView.vue.d.ts +47 -0
  253. package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenu.vue.d.ts +6 -0
  254. package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenuButton.vue.d.ts +17 -0
  255. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ButtonMenu.vue.d.ts +13 -0
  256. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/CardMenu.vue.d.ts +13 -0
  257. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ColumnMenu.vue.d.ts +13 -0
  258. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/DividerMenu.vue.d.ts +13 -0
  259. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/EmptySpaceMenu.vue.d.ts +13 -0
  260. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/HeadingMenu.vue.d.ts +13 -0
  261. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ImageMenu.vue.d.ts +13 -0
  262. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/MapMenu.vue.d.ts +13 -0
  263. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/RowMenu.vue.d.ts +13 -0
  264. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/StackMenu.vue.d.ts +13 -0
  265. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TextMenu.vue.d.ts +13 -0
  266. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/VideoMenu.vue.d.ts +13 -0
  267. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +132 -12
  268. package/dist/src/contentManager/components/overview/CollectionDialog.vue.d.ts +30 -0
  269. package/dist/src/contentManager/components/overview/CollectionsGridView.vue.d.ts +18 -0
  270. package/dist/src/contentManager/components/overview/ContentEntryContextMenu.vue.d.ts +27 -0
  271. package/dist/src/contentManager/components/overview/FilterPopover.vue.d.ts +2 -0
  272. package/dist/src/contentManager/components/overview/ListView.vue.d.ts +12 -0
  273. package/dist/src/contentManager/components/styling/ButtonStyleDialog.vue.d.ts +24 -0
  274. package/dist/src/contentManager/components/styling/CardStyleDialog.vue.d.ts +24 -0
  275. package/dist/src/contentManager/components/styling/SectionStyleDialog.vue.d.ts +24 -0
  276. package/dist/src/contentManager/index.d.ts +14 -5
  277. package/dist/src/contentManager/index.vue.d.ts +22 -0
  278. package/dist/src/contentManager/metadata.d.ts +1 -1
  279. package/dist/src/contentManager/pages/Components.vue.d.ts +27 -0
  280. package/dist/src/contentManager/pages/ContentEditor.vue.d.ts +14 -0
  281. package/dist/src/contentManager/pages/Entries.vue.d.ts +16 -0
  282. package/dist/src/contentManager/pages/GlobalStyling.vue.d.ts +117 -0
  283. package/dist/src/contentManager/pages/Overview.vue.d.ts +57 -0
  284. package/dist/src/contentManager/routes.d.ts +12 -3
  285. package/dist/src/custom/index.d.ts +2 -2
  286. package/dist/src/custom/index.vue.d.ts +2 -0
  287. package/dist/src/custom/pages/View.vue.d.ts +2 -0
  288. package/dist/src/custom/routes.d.ts +1 -1
  289. package/dist/src/googleAnalytics/chat-components/CountryBreakdownCard.vue.d.ts +14 -0
  290. package/dist/src/googleAnalytics/chat-components/DeviceBreakdownCard.vue.d.ts +14 -0
  291. package/dist/src/googleAnalytics/chat-components/PeakHoursCard.vue.d.ts +14 -0
  292. package/dist/src/googleAnalytics/chat-components/RealtimeCard.vue.d.ts +14 -0
  293. package/dist/src/googleAnalytics/chat-components/SearchTermsCard.vue.d.ts +14 -0
  294. package/dist/src/googleAnalytics/chat-components/TopPagesCard.vue.d.ts +14 -0
  295. package/dist/src/googleAnalytics/chat-components/TrafficSourcesCard.vue.d.ts +14 -0
  296. package/dist/src/googleAnalytics/chat-components/VisitorStatsCard.vue.d.ts +14 -0
  297. package/dist/src/googleAnalytics/components/seo-health/SeoClicksChart.vue.d.ts +5 -0
  298. package/dist/src/googleAnalytics/components/seo-health/SeoImpressionsChart.vue.d.ts +5 -0
  299. package/dist/src/googleAnalytics/components/seo-health/SeoKeywordsTab.vue.d.ts +5 -0
  300. package/dist/src/googleAnalytics/components/seo-health/SeoKpiCards.vue.d.ts +10 -0
  301. package/dist/src/googleAnalytics/components/seo-health/SeoMappingTab.vue.d.ts +5 -0
  302. package/dist/src/googleAnalytics/components/seo-health/SeoPagesTab.vue.d.ts +5 -0
  303. package/dist/src/googleAnalytics/components/seo-health/SeoRankingDistribution.vue.d.ts +5 -0
  304. package/dist/src/googleAnalytics/index.d.ts +10 -10
  305. package/dist/src/googleAnalytics/index.vue.d.ts +2 -0
  306. package/dist/src/googleAnalytics/pages/Acquisition.vue.d.ts +2 -0
  307. package/dist/src/googleAnalytics/pages/Audience.vue.d.ts +2 -0
  308. package/dist/src/googleAnalytics/pages/Content.vue.d.ts +2 -0
  309. package/dist/src/googleAnalytics/pages/Overview.vue.d.ts +2 -0
  310. package/dist/src/googleAnalytics/pages/SeoHealth.vue.d.ts +2 -0
  311. package/dist/src/googleAnalytics/routes.d.ts +1 -1
  312. package/dist/src/mailTemplates/components/TemplateList.vue.d.ts +2 -0
  313. package/dist/src/mailTemplates/index.d.ts +3 -3
  314. package/dist/src/mailTemplates/index.vue.d.ts +22 -0
  315. package/dist/src/mailTemplates/metadata.d.ts +1 -1
  316. package/dist/src/mailTemplates/pages/Detail.vue.d.ts +14 -0
  317. package/dist/src/mailTemplates/pages/Overview.vue.d.ts +14 -0
  318. package/dist/src/mailTemplates/routes.d.ts +1 -1
  319. package/dist/src/productCollections/components/detail/Main.vue.d.ts +2 -0
  320. package/dist/src/productCollections/components/detail/SEO.vue.d.ts +2 -0
  321. package/dist/src/productCollections/components/detail/Status.vue.d.ts +2 -0
  322. package/dist/src/productCollections/components/overview/ListView.vue.d.ts +12 -0
  323. package/dist/src/productCollections/index.d.ts +3 -3
  324. package/dist/src/productCollections/index.vue.d.ts +22 -0
  325. package/dist/src/productCollections/metadata.d.ts +1 -1
  326. package/dist/src/productCollections/pages/Detail.vue.d.ts +14 -0
  327. package/dist/src/productCollections/pages/Overview.vue.d.ts +16 -0
  328. package/dist/src/productCollections/routes.d.ts +1 -1
  329. package/dist/src/products/chat-components/ProductDetailsCard.vue.d.ts +14 -0
  330. package/dist/src/products/components/detail/Collections.vue.d.ts +14 -0
  331. package/dist/src/products/components/detail/Inventory.vue.d.ts +2 -0
  332. package/dist/src/products/components/detail/Main.vue.d.ts +2 -0
  333. package/dist/src/products/components/detail/NewSection.vue.d.ts +2 -0
  334. package/dist/src/products/components/detail/Price.vue.d.ts +2 -0
  335. package/dist/src/products/components/detail/SEO.vue.d.ts +2 -0
  336. package/dist/src/products/components/detail/Shipping.vue.d.ts +2 -0
  337. package/dist/src/products/components/detail/Status.vue.d.ts +2 -0
  338. package/dist/src/products/components/detail/price/UnitPriceDialog.vue.d.ts +17 -0
  339. package/dist/src/products/components/detail/variants/Option.vue.d.ts +33 -0
  340. package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +38 -0
  341. package/dist/src/products/components/overview/FilterPopover.vue.d.ts +2 -0
  342. package/dist/src/products/components/overview/GridView.vue.d.ts +12 -0
  343. package/dist/src/products/components/overview/ListView.vue.d.ts +12 -0
  344. package/dist/src/products/components/overview/ProductContextMenu.vue.d.ts +27 -0
  345. package/dist/src/products/index.d.ts +4 -4
  346. package/dist/src/products/index.vue.d.ts +22 -0
  347. package/dist/src/products/metadata.d.ts +1 -1
  348. package/dist/src/products/pages/Detail.vue.d.ts +14 -0
  349. package/dist/src/products/pages/Overview.vue.d.ts +16 -0
  350. package/dist/src/products/routes.d.ts +1 -1
  351. package/dist/src/promoCodes/components/create/DateRange.vue.d.ts +2 -0
  352. package/dist/src/promoCodes/components/create/MultiCodes.vue.d.ts +2 -0
  353. package/dist/src/promoCodes/components/create/Note.vue.d.ts +2 -0
  354. package/dist/src/promoCodes/components/create/SingleCode.vue.d.ts +2 -0
  355. package/dist/src/promoCodes/components/create/TypeAndValue/TypeDetailDialog.vue.d.ts +6 -0
  356. package/dist/src/promoCodes/components/create/TypeAndValue/TypeManageDialog.vue.d.ts +18 -0
  357. package/dist/src/promoCodes/components/create/TypeAndValue/index.vue.d.ts +2 -0
  358. package/dist/src/promoCodes/index.d.ts +3 -3
  359. package/dist/src/promoCodes/index.vue.d.ts +22 -0
  360. package/dist/src/promoCodes/metadata.d.ts +1 -1
  361. package/dist/src/promoCodes/pages/Create.vue.d.ts +16 -0
  362. package/dist/src/promoCodes/pages/Detail.vue.d.ts +14 -0
  363. package/dist/src/promoCodes/pages/Find.vue.d.ts +16 -0
  364. package/dist/src/promoCodes/routes.d.ts +1 -1
  365. package/dist/src/push-notifications/components/PreviewAndroid.vue.d.ts +28 -0
  366. package/dist/src/push-notifications/components/PreviewIPhone.vue.d.ts +28 -0
  367. package/dist/src/push-notifications/components/PushPreview.vue.d.ts +28 -0
  368. package/dist/src/push-notifications/index.d.ts +3 -3
  369. package/dist/src/push-notifications/index.vue.d.ts +22 -0
  370. package/dist/src/push-notifications/metadata.d.ts +1 -1
  371. package/dist/src/push-notifications/pages/SendPush.vue.d.ts +14 -0
  372. package/dist/src/push-notifications/routes.d.ts +1 -1
  373. package/dist/src/shared/BrandLogo.vue.d.ts +12 -0
  374. package/dist/src/shared/DrawerToggle.vue.d.ts +60 -0
  375. package/dist/src/shared/VerticalToggle.vue.d.ts +60 -0
  376. package/dist/src/shippingOptions/components/detail/Condition.vue.d.ts +2 -0
  377. package/dist/src/shippingOptions/components/detail/Countries.vue.d.ts +2 -0
  378. package/dist/src/shippingOptions/components/detail/Example.vue.d.ts +2 -0
  379. package/dist/src/shippingOptions/components/detail/Main.vue.d.ts +2 -0
  380. package/dist/src/shippingOptions/components/overview/ListView.vue.d.ts +12 -0
  381. package/dist/src/shippingOptions/index.d.ts +3 -3
  382. package/dist/src/shippingOptions/index.vue.d.ts +22 -0
  383. package/dist/src/shippingOptions/metadata.d.ts +1 -1
  384. package/dist/src/shippingOptions/pages/Detail.vue.d.ts +14 -0
  385. package/dist/src/shippingOptions/pages/Overview.vue.d.ts +16 -0
  386. package/dist/src/shippingOptions/routes.d.ts +1 -1
  387. package/dist/src/table/components/DataTable.vue.d.ts +18 -0
  388. package/dist/src/table/components/DataTableAction.vue.d.ts +14 -0
  389. package/dist/src/table/components/DataTableMobileRowActionDrawer.vue.d.ts +4 -0
  390. package/dist/src/table/components/DataTablePagination.vue.d.ts +6 -0
  391. package/dist/src/table/components/actions/ActionDialog.vue.d.ts +19 -0
  392. package/dist/src/table/components/actions/CtaActionDialog.vue.d.ts +4 -0
  393. package/dist/src/table/components/columns/ColumnDropdown.vue.d.ts +2 -0
  394. package/dist/src/table/components/columns/ColumnEditorDialog.vue.d.ts +34 -0
  395. package/dist/src/table/components/columns/DialogTableColumnItem.vue.d.ts +12 -0
  396. package/dist/src/table/components/date-range-filter/DateRangeFilter.vue.d.ts +2 -0
  397. package/dist/src/table/components/date-range-filter/DateRangeSettingsDialog.vue.d.ts +27 -0
  398. package/dist/src/table/components/filters/FilterDialog.vue.d.ts +12 -0
  399. package/dist/src/table/components/filters/Filters.vue.d.ts +27 -0
  400. package/dist/src/table/components/search/Search.vue.d.ts +2 -0
  401. package/dist/src/table/components/sort/SortMode.vue.d.ts +2 -0
  402. package/dist/src/table/components/sort/SortModeSettingsDialog.vue.d.ts +18 -0
  403. package/dist/src/table/components/stats/StatDialog.vue.d.ts +12 -0
  404. package/dist/src/table/components/stats/Stats.vue.d.ts +27 -0
  405. package/dist/src/table/flow-builder-extensions/TableRowEditor.vue.d.ts +16 -0
  406. package/dist/src/table/flow-builder-extensions/row-item.d.ts +17 -3
  407. package/dist/src/table/index.d.ts +2 -2
  408. package/dist/src/table/index.vue.d.ts +22 -0
  409. package/dist/src/table/pages/TableView.vue.d.ts +54 -0
  410. package/dist/src/table/routes.d.ts +1 -1
  411. package/dist/src/types/index.d.ts +0 -6
  412. package/dist/utils-CanmrIWO.mjs +47 -0
  413. package/dist/utils-Yd6F5mea.js +3 -0
  414. package/dist/vee-validate-zod-ByykgYKJ.js +1 -0
  415. package/dist/vee-validate-zod-DNjTLCgh.mjs +4402 -0
  416. package/package.json +56 -55
  417. package/dist/Acquisition-DypEyPSO.js +0 -1
  418. package/dist/Acquisition-TCNX-th6.mjs +0 -308
  419. package/dist/AgendaOpeningHoursCard-BIhm0vpV.js +0 -1
  420. package/dist/AgendaOpeningHoursCard-BKUdJxRI.mjs +0 -133
  421. package/dist/AppointmentDetailsCard-C5rQ5jsW.js +0 -1
  422. package/dist/AppointmentDetailsCard-NRHeNP2L.mjs +0 -111
  423. package/dist/AppointmentEditor-BcF8CiD-.mjs +0 -150
  424. package/dist/AppointmentEditor-BlhFtoCm.js +0 -1
  425. package/dist/AppointmentListTable-B-ReBVtV.js +0 -1
  426. package/dist/AppointmentListTable-DHmy-iid.mjs +0 -129
  427. package/dist/Audience-CfWHjjg8.mjs +0 -394
  428. package/dist/Audience-Cj4TyauW.js +0 -1
  429. package/dist/Components-BehelN4r.js +0 -1
  430. package/dist/Components-CR6zukUU.mjs +0 -468
  431. package/dist/Content-C5Iye3t0.mjs +0 -257
  432. package/dist/Content-eOfBx52Y.js +0 -1
  433. package/dist/ContentEditor-BgL4qEeg.mjs +0 -26835
  434. package/dist/ContentEditor-Tlu3w0Hu.js +0 -462
  435. package/dist/CountryBreakdownCard-CWVyB8be.mjs +0 -151
  436. package/dist/CountryBreakdownCard-Db-pMiNe.js +0 -1
  437. package/dist/Create-B1it8S4m.js +0 -1
  438. package/dist/Create-DbYi0FAI.mjs +0 -907
  439. package/dist/DateFormatter-DLrDYkby.mjs +0 -630
  440. package/dist/DateFormatter-Dni0Oq8r.js +0 -1
  441. package/dist/Detail-D-eahJGO.mjs +0 -21
  442. package/dist/Detail-D0kdPPIm.mjs +0 -2757
  443. package/dist/Detail-DAafePYi.mjs +0 -485
  444. package/dist/Detail-DYpv4fYg.js +0 -1
  445. package/dist/Detail-Dc_ui4LM.js +0 -1
  446. package/dist/Detail-DccUekl_.js +0 -1
  447. package/dist/Detail-Dhz0V0Vf.js +0 -1
  448. package/dist/Detail-DjnGY0F8.mjs +0 -282
  449. package/dist/Detail-DplAitHg.mjs +0 -447
  450. package/dist/Detail-SugyeSxb.js +0 -1
  451. package/dist/DeviceBreakdownCard-CzxZT6To.js +0 -1
  452. package/dist/DeviceBreakdownCard-eEwPjzKl.mjs +0 -115
  453. package/dist/EditLayout-Bnz9q_jd.js +0 -1
  454. package/dist/EditLayout-J_DGXb8v.mjs +0 -99
  455. package/dist/Entries-CgpWg6fE.js +0 -1
  456. package/dist/Entries-CkGTXcAq.mjs +0 -575
  457. package/dist/Find-Bz0TNJzk.mjs +0 -164
  458. package/dist/Find-D-ItTXaZ.js +0 -1
  459. package/dist/GlobalStyling-CSQPF7o_.mjs +0 -1162
  460. package/dist/GlobalStyling-DabldMZh.js +0 -15
  461. package/dist/NewReservationDialog-BhIiY2B9.js +0 -1
  462. package/dist/NewReservationDialog-CN49aGcM.mjs +0 -1002
  463. package/dist/OrderDetailDialog-BJ01DZFe.js +0 -1
  464. package/dist/OrderDetailDialog-CoVQ_rzs.mjs +0 -215
  465. package/dist/Overview-9FMgn5hT.mjs +0 -492
  466. package/dist/Overview-BOOwMQ-c.mjs +0 -636
  467. package/dist/Overview-Biz3h60w.js +0 -1
  468. package/dist/Overview-C2K2ofdS.js +0 -1
  469. package/dist/Overview-CFHOXP9N.mjs +0 -123
  470. package/dist/Overview-CTJe7J5_.js +0 -1
  471. package/dist/Overview-Cvj2i9eW.js +0 -1
  472. package/dist/Overview-D2I1F8Dm.mjs +0 -21
  473. package/dist/Overview-DFOc9emt.mjs +0 -345
  474. package/dist/Overview-Dmhfb94Y.js +0 -1
  475. package/dist/Overview-PPzv7weG.mjs +0 -450
  476. package/dist/Overview-qFKcXHVF.js +0 -1
  477. package/dist/Overview-xkmYYTae.mjs +0 -133
  478. package/dist/Overview-yPsLvR2c.js +0 -1
  479. package/dist/PeakHoursCard-CtgEP-ez.mjs +0 -157
  480. package/dist/PeakHoursCard-DPeoMyhu.js +0 -1
  481. package/dist/ProductDetailsCard-B0WhmzO-.mjs +0 -98
  482. package/dist/ProductDetailsCard-C1ROuH6l.js +0 -1
  483. package/dist/RealtimeCard-DQno-Okz.js +0 -1
  484. package/dist/RealtimeCard-dR-g1iDo.mjs +0 -92
  485. package/dist/ReservationDetailDialog-Cdo6h0RD.mjs +0 -2163
  486. package/dist/ReservationDetailDialog-DZTFD2xI.js +0 -349
  487. package/dist/SearchTermsCard-BXJSXz_k.js +0 -1
  488. package/dist/SearchTermsCard-DsaxLKwP.mjs +0 -146
  489. package/dist/SendPush-Bssi-OZD.mjs +0 -150
  490. package/dist/SendPush-BuaYboRH.js +0 -1
  491. package/dist/SeoHealth-CP-kL0us.js +0 -1
  492. package/dist/SeoHealth-Cxp_Gb3Y.mjs +0 -459
  493. package/dist/TableView-7iwBkQ_k.mjs +0 -4757
  494. package/dist/TableView-BB_oIYYZ.js +0 -4
  495. package/dist/TemplateList-CNcM_Kgq.mjs +0 -56
  496. package/dist/TemplateList-VuPcBUJO.js +0 -1
  497. package/dist/TopPagesCard-CvDECn3_.mjs +0 -117
  498. package/dist/TopPagesCard-DNdATXJE.js +0 -1
  499. package/dist/TrafficSourcesCard-BLpBr7u0.mjs +0 -151
  500. package/dist/TrafficSourcesCard-_3gRUCw3.js +0 -1
  501. package/dist/View-DSnUHI7h.mjs +0 -30
  502. package/dist/View-Dbcfpdqh.js +0 -1
  503. package/dist/VisitorStatsCard-CFEnXSjF.mjs +0 -185
  504. package/dist/VisitorStatsCard-C_jhQxDW.js +0 -1
  505. package/dist/_plugin-vue_export-helper-5u7tqpWC.js +0 -1
  506. package/dist/_plugin-vue_export-helper-BJQSo0im.mjs +0 -8
  507. package/dist/agenda-CzMRcQTA.mjs +0 -989
  508. package/dist/agenda-D4zWRYSQ.js +0 -1
  509. package/dist/appointments-9syR5TZE.js +0 -1
  510. package/dist/appointments-BBmOJMhM.mjs +0 -23
  511. package/dist/array-BH1uH7XT.js +0 -1
  512. package/dist/array-DnDL9cFz.mjs +0 -98
  513. package/dist/availability-CAXB7Yd6.js +0 -1
  514. package/dist/availability-Dp7eF-ZK.mjs +0 -215
  515. package/dist/booking-data-Bysf6e5x.mjs +0 -724
  516. package/dist/booking-data-C6SGjC2X.js +0 -1
  517. package/dist/chunk-DQi1bQcV.js +0 -1
  518. package/dist/contentManager-D7JxXCwE.js +0 -1
  519. package/dist/contentManager-tfy0x1LD.mjs +0 -22
  520. package/dist/context-AQKfnJ4t.mjs +0 -3809
  521. package/dist/context-ubyMq9Xe.js +0 -54
  522. package/dist/core-Dhgr4ctC.mjs +0 -202
  523. package/dist/core-_HKfBlaZ.js +0 -1
  524. package/dist/countries-MXLT3mVe.mjs +0 -4
  525. package/dist/countries-OCd5qPxG.js +0 -1
  526. package/dist/create-BfNc2C7N.js +0 -1
  527. package/dist/create-C7JlIlIh.mjs +0 -95
  528. package/dist/custom-BwN9-6Mb.js +0 -1
  529. package/dist/custom-INNwaWla.mjs +0 -13
  530. package/dist/dist-BCVg7FKM.js +0 -1
  531. package/dist/dist-DIhK9VWh.mjs +0 -3045
  532. package/dist/edit-BiI2VG60.js +0 -35
  533. package/dist/edit-DD3iFBEh.mjs +0 -1097
  534. package/dist/exceptions-DICMaDcH.mjs +0 -462
  535. package/dist/exceptions-DpWqMNuG.js +0 -1
  536. package/dist/google-Bcc4XZnV.mjs +0 -4
  537. package/dist/google-DTSRmJ51.js +0 -1
  538. package/dist/googleAnalytics-BSaqRR_L.js +0 -1
  539. package/dist/googleAnalytics-Cg-iWblZ.mjs +0 -47
  540. package/dist/interpolation-B8OzkMyi.mjs +0 -131
  541. package/dist/interpolation-DpAqtGOW.js +0 -1
  542. package/dist/lib-4wSi00Vr.js +0 -1
  543. package/dist/lib-BZgXUui5.mjs +0 -198
  544. package/dist/line-DJdnFNI7.js +0 -75
  545. package/dist/line-tYLnEDGV.mjs +0 -1500
  546. package/dist/mailTemplates-BNk8fhVS.mjs +0 -23
  547. package/dist/mailTemplates-DswHzyQe.js +0 -1
  548. package/dist/orders-CIc0JlKX.mjs +0 -512
  549. package/dist/orders-DwPSi_pD.js +0 -1
  550. package/dist/payment-BsNWFaDm.js +0 -1
  551. package/dist/payment-Ced5_dpa.mjs +0 -718
  552. package/dist/productCollections-Cuvw_8zC.js +0 -1
  553. package/dist/productCollections-D0AxRlzr.mjs +0 -23
  554. package/dist/products-DUD-ZMkR.mjs +0 -22
  555. package/dist/products-DvX9B-Ul.js +0 -1
  556. package/dist/promoCodes-BCWqN6w4.mjs +0 -23
  557. package/dist/promoCodes-CEZ4LYot.js +0 -1
  558. package/dist/push-notifications-BGp4XWo9.js +0 -1
  559. package/dist/push-notifications-C7W7KuzR.mjs +0 -23
  560. package/dist/regular-BCFrS6lK.mjs +0 -908
  561. package/dist/regular-DBqPgT8C.js +0 -1
  562. package/dist/resources-DwsMmWgm.mjs +0 -669
  563. package/dist/resources-Dz81GkHe.js +0 -1
  564. package/dist/shippingOptions-C3NEJff1.mjs +0 -23
  565. package/dist/shippingOptions-Cy040ZW1.js +0 -1
  566. package/dist/single-container-BJmmqq65.mjs +0 -468
  567. package/dist/single-container-Xoo0Xzxv.js +0 -58
  568. package/dist/src/vue-shim.d.ts +0 -7
  569. package/dist/table-DWw0fs3S.js +0 -1
  570. package/dist/table-LXt5DQOL.mjs +0 -23
  571. package/dist/utils-CVIHqQsU.js +0 -3
  572. package/dist/utils-h3owcMtS.mjs +0 -37
  573. package/dist/vee-validate-zod-BmXMJo8W.js +0 -1
  574. package/dist/vee-validate-zod-D9dZzbWZ.mjs +0 -4985
  575. package/dist/xy-container-CuQSwrtB.mjs +0 -3180
  576. package/dist/xy-container-_6YpscZh.js +0 -158
@@ -1,1162 +0,0 @@
1
- import { useConfirmation as e, useModuleBreadcrumbs as t, useModuleRoute as n, useModuleStorage as r } from "@oneclick.dev/cms-kit";
2
- import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeStyle as p, onMounted as m, openBlock as h, reactive as g, ref as _, renderList as v, resolveComponent as y, toDisplayString as b, unref as x, vModelText as S, withCtx as C, withDirectives as w } from "vue";
3
- import { ChevronLeft as T, Circle as E, CircleCheckBig as D, Plus as O } from "@lucide/vue";
4
- //#region src/contentManager/components/styling/SectionStyleDialog.vue?vue&type=script&setup=true&lang.ts
5
- var k = { class: "grid py-4" }, A = { class: "grid grid-cols-2 gap-2 mb-6" }, j = { class: "relative" }, M = { class: "grid grid-cols-3 gap-2 mb-6" }, N = { class: "relative" }, P = { class: "relative" }, F = { class: "relative" }, I = { class: "grid grid-cols-1 gap-2 mb-6" }, L = { class: "relative" }, R = { class: "flex items-center space-x-2" }, z = { class: "flex items-center space-x-2" }, B = { class: "grid grid-cols-2 gap-2 mb-6" }, V = { key: 0 }, H = { class: "relative" }, U = { key: 1 }, W = { class: "relative" }, G = {
6
- key: 0,
7
- class: "bg-muted px-4 py-2 rounded-md text-sm"
8
- }, K = /* @__PURE__ */ f({
9
- __name: "SectionStyleDialog",
10
- props: { buttons: {
11
- type: Array,
12
- default: () => []
13
- } },
14
- emits: [
15
- "add",
16
- "edit",
17
- "delete"
18
- ],
19
- setup(t, { expose: n, emit: r }) {
20
- let { confirm: i } = e(), a = r, f = _(!1), p = _("create"), m = _(null), v = _(!1), x = g({
21
- name: "",
22
- rendering: "class",
23
- className: "",
24
- componentName: "",
25
- styles: {
26
- backgroundColor: "#FFFFFF",
27
- titleColor: "#000000",
28
- textColor: "#000000"
29
- }
30
- }), T = (e) => {
31
- e ? (p.value = "edit", m.value = e.id, v.value = e.id === "DEFAULT", x.name = e.name || "", x.rendering = e.rendering || "class", x.className = e.className || "", x.componentName = e.componentName || "", x.styles.backgroundColor = e.styles.backgroundColor || "#FFFFFF", x.styles.titleColor = e.styles.titleColor || "#000000", x.styles.textColor = e.styles.textColor || "#000000") : (p.value = "create", m.value = null, v.value = !1, x.name = "", x.rendering = "class", x.className = "", x.componentName = "", x.styles.backgroundColor = "#FFFFFF", x.styles.titleColor = "#000000", x.styles.textColor = "#000000"), f.value = !0;
32
- }, E = () => {
33
- a("add", x), f.value = !1;
34
- }, D = () => {
35
- v.value && (x.name = "Default"), a("edit", {
36
- id: m.value,
37
- ...x
38
- }), f.value = !1;
39
- }, O = async () => {
40
- v.value || await i("Are you sure you want to delete this theme? This action cannot be undone.", "Delete Theme", "Delete") && (a("delete", m.value), f.value = !1);
41
- }, K = () => {
42
- x.styles.backgroundColor = "#FFFFFF", x.styles.titleColor = "#000000", x.styles.textColor = "#000000";
43
- };
44
- return n({ openDialog: T }), (e, t) => {
45
- let n = y("DialogTitle"), r = y("DialogDescription"), i = y("DialogHeader"), a = y("Label"), m = y("Input"), g = y("RadioGroupItem"), _ = y("RadioGroup"), T = y("Button"), q = y("DialogFooter"), J = y("DialogScrollContent"), Y = y("Dialog");
46
- return h(), o(Y, {
47
- open: f.value,
48
- "onUpdate:open": t[10] ||= (e) => f.value = e
49
- }, {
50
- default: C(() => [d(J, { class: "sm:max-w-2xl" }, {
51
- default: C(() => [
52
- d(i, null, {
53
- default: C(() => [d(n, null, {
54
- default: C(() => [u(b(p.value === "create" ? "Add New Section Style" : "Edit Section Style"), 1)]),
55
- _: 1
56
- }), d(r, null, {
57
- default: C(() => [...t[11] ||= [u(" These settings change how this section looks in the editor. To style your live site, add matching CSS or use a custom component. ", -1)]]),
58
- _: 1
59
- })]),
60
- _: 1
61
- }),
62
- l("div", k, [
63
- l("div", A, [l("div", null, [d(a, {
64
- class: "mb-2",
65
- for: "collection-theme-dialog-theme-name"
66
- }, {
67
- default: C(() => [...t[12] ||= [u("Display name", -1)]]),
68
- _: 1
69
- }), l("div", j, [d(m, {
70
- modelValue: x.name,
71
- "onUpdate:modelValue": t[0] ||= (e) => x.name = e,
72
- id: "collection-theme-dialog-theme-name",
73
- disabled: v.value
74
- }, null, 8, ["modelValue", "disabled"])])])]),
75
- t[21] ||= l("h2", { class: "font-semibold mb-4" }, "Style Settings", -1),
76
- l("div", M, [
77
- l("div", null, [d(a, {
78
- class: "mb-2",
79
- for: "collection-theme-dialog-background-color"
80
- }, {
81
- default: C(() => [...t[13] ||= [u("Background color", -1)]]),
82
- _: 1
83
- }), l("div", N, [w(l("input", {
84
- "onUpdate:modelValue": t[1] ||= (e) => x.styles.backgroundColor = e,
85
- type: "color",
86
- label: "Primary Color",
87
- class: "absolute top-0.5 left-1 size-8"
88
- }, null, 512), [[S, x.styles.backgroundColor]]), d(m, {
89
- modelValue: x.styles.backgroundColor,
90
- "onUpdate:modelValue": t[2] ||= (e) => x.styles.backgroundColor = e,
91
- class: "pl-12",
92
- id: "collection-theme-dialog-background-color"
93
- }, null, 8, ["modelValue"])])]),
94
- l("div", null, [d(a, {
95
- class: "mb-2",
96
- for: "collection-theme-dialog-title-color"
97
- }, {
98
- default: C(() => [...t[14] ||= [u("Heading color", -1)]]),
99
- _: 1
100
- }), l("div", P, [w(l("input", {
101
- "onUpdate:modelValue": t[3] ||= (e) => x.styles.titleColor = e,
102
- type: "color",
103
- label: "Primary Color",
104
- class: "absolute top-0.5 left-1 size-8"
105
- }, null, 512), [[S, x.styles.titleColor]]), d(m, {
106
- modelValue: x.styles.titleColor,
107
- "onUpdate:modelValue": t[4] ||= (e) => x.styles.titleColor = e,
108
- class: "pl-12",
109
- id: "collection-theme-dialog-title-color"
110
- }, null, 8, ["modelValue"])])]),
111
- l("div", null, [d(a, {
112
- class: "mb-2",
113
- for: "collection-theme-dialog-text-color"
114
- }, {
115
- default: C(() => [...t[15] ||= [u("Body text color", -1)]]),
116
- _: 1
117
- }), l("div", F, [w(l("input", {
118
- "onUpdate:modelValue": t[5] ||= (e) => x.styles.textColor = e,
119
- type: "color",
120
- label: "Primary Color",
121
- class: "absolute top-0.5 left-1 size-8"
122
- }, null, 512), [[S, x.styles.textColor]]), d(m, {
123
- modelValue: x.styles.textColor,
124
- "onUpdate:modelValue": t[6] ||= (e) => x.styles.textColor = e,
125
- class: "pl-12",
126
- id: "collection-theme-dialog-text-color"
127
- }, null, 8, ["modelValue"])])])
128
- ]),
129
- t[22] ||= l("h2", { class: "font-semibold mb-4" }, "Rendering Method", -1),
130
- l("div", I, [l("div", null, [l("div", L, [d(a, { class: "mb-4 text-muted-foreground" }, {
131
- default: C(() => [...t[16] ||= [u("Choose how this section should be styled on your site:", -1)]]),
132
- _: 1
133
- }), d(_, {
134
- modelValue: x.rendering,
135
- "onUpdate:modelValue": t[7] ||= (e) => x.rendering = e,
136
- "default-value": "class"
137
- }, {
138
- default: C(() => [l("div", R, [d(g, {
139
- id: "collection-theme-dialog-render-class",
140
- value: "class"
141
- }), d(a, { for: "collection-theme-dialog-render-class" }, {
142
- default: C(() => [...t[17] ||= [u("Use a CSS class", -1)]]),
143
- _: 1
144
- })]), l("div", z, [d(g, {
145
- id: "collection-theme-dialog-render-component",
146
- value: "component"
147
- }), d(a, { for: "collection-theme-dialog-render-component" }, {
148
- default: C(() => [...t[18] ||= [u("Custom component", -1)]]),
149
- _: 1
150
- })])]),
151
- _: 1
152
- }, 8, ["modelValue"])])])]),
153
- l("div", B, [x.rendering === "class" ? (h(), c("div", V, [d(a, {
154
- class: "mb-2",
155
- for: "collection-theme-dialog-class-name"
156
- }, {
157
- default: C(() => [...t[19] ||= [u("Class name", -1)]]),
158
- _: 1
159
- }), l("div", H, [d(m, {
160
- modelValue: x.className,
161
- "onUpdate:modelValue": t[8] ||= (e) => x.className = e,
162
- id: "collection-theme-dialog-class-name"
163
- }, null, 8, ["modelValue"])])])) : (h(), c("div", U, [d(a, {
164
- class: "mb-2",
165
- for: "collection-theme-dialog-component-name"
166
- }, {
167
- default: C(() => [...t[20] ||= [u("Component name", -1)]]),
168
- _: 1
169
- }), l("div", W, [d(m, {
170
- modelValue: x.componentName,
171
- "onUpdate:modelValue": t[9] ||= (e) => x.componentName = e,
172
- id: "collection-theme-dialog-component-name"
173
- }, null, 8, ["modelValue"])])]))]),
174
- x.rendering === "class" ? (h(), c("pre", G, "." + b(x.className) + " {\n background-color: " + b(x.styles.backgroundColor) + ";\n color: " + b(x.styles.textColor) + ";\n\n h1, h2, h3, h4, h5, h6 {\n color: " + b(x.styles.titleColor) + ";\n }\n}\n", 1)) : s("", !0)
175
- ]),
176
- d(q, null, {
177
- default: C(() => [
178
- p.value === "edit" && !v.value ? (h(), o(T, {
179
- key: 0,
180
- variant: "destructive",
181
- class: "mr-auto",
182
- onClick: O
183
- }, {
184
- default: C(() => [...t[23] ||= [u(" Delete Style ", -1)]]),
185
- _: 1
186
- })) : s("", !0),
187
- p.value === "edit" && v.value ? (h(), o(T, {
188
- key: 1,
189
- variant: "outline",
190
- class: "mr-auto",
191
- onClick: K
192
- }, {
193
- default: C(() => [...t[24] ||= [u(" Reset to Default ", -1)]]),
194
- _: 1
195
- })) : s("", !0),
196
- p.value === "create" ? (h(), o(T, {
197
- key: 2,
198
- type: "submit",
199
- onClick: E
200
- }, {
201
- default: C(() => [...t[25] ||= [u(" Add Style ", -1)]]),
202
- _: 1
203
- })) : (h(), o(T, {
204
- key: 3,
205
- type: "submit",
206
- onClick: D
207
- }, {
208
- default: C(() => [...t[26] ||= [u(" Save Changes ", -1)]]),
209
- _: 1
210
- }))
211
- ]),
212
- _: 1
213
- })
214
- ]),
215
- _: 1
216
- })]),
217
- _: 1
218
- }, 8, ["open"]);
219
- };
220
- }
221
- }), q = { class: "grid py-4" }, J = { class: "grid grid-cols-2 gap-2 mb-6" }, Y = { class: "relative" }, ee = { class: "grid grid-cols-3 gap-2 mb-6" }, te = { class: "relative" }, X = { class: "relative" }, Z = { class: "relative" }, Q = { class: "grid grid-cols-1 gap-2 mb-6" }, ne = { class: "relative" }, re = { class: "flex items-center space-x-2" }, ie = { class: "flex items-center space-x-2" }, ae = { class: "grid grid-cols-2 gap-2 mb-6" }, oe = { key: 0 }, se = { class: "relative" }, ce = { key: 1 }, le = { class: "relative" }, ue = {
222
- key: 0,
223
- class: "bg-muted px-4 py-2 rounded-md text-sm"
224
- }, de = /* @__PURE__ */ f({
225
- __name: "ButtonStyleDialog",
226
- props: { defaultBackground: {
227
- type: String,
228
- default: "#FFFFFF"
229
- } },
230
- emits: [
231
- "add",
232
- "edit",
233
- "delete"
234
- ],
235
- setup(t, { expose: n, emit: r }) {
236
- let { confirm: i } = e(), f = r, m = _(!1), v = _("create"), T = _(null), O = _(!1), k = g({
237
- name: "",
238
- rendering: "class",
239
- className: "",
240
- componentName: "",
241
- styles: {
242
- backgroundColor: "#FFFFFF",
243
- textColor: "#000000",
244
- borderColor: "#000000",
245
- buttonRoundness: "none",
246
- buttonStyle: "default"
247
- }
248
- }), A = (e) => {
249
- e ? (v.value = "edit", T.value = e.id, O.value = e.id === "DEFAULT", k.name = e.name || "", k.rendering = e.rendering || "class", k.className = e.className || "", k.componentName = e.componentName || "", k.styles.backgroundColor = e.styles.backgroundColor || "#FFFFFF", k.styles.textColor = e.styles.textColor || "#000000", k.styles.borderColor = e.styles.borderColor || "#000000", k.styles.buttonRoundness = e.styles.buttonRoundness || "none", k.styles.buttonStyle = e.styles.buttonStyle || "default") : (v.value = "create", T.value = null, O.value = !1, k.name = "", k.rendering = "class", k.className = "", k.componentName = "", k.styles.backgroundColor = "#FFFFFF", k.styles.textColor = "#000000", k.styles.borderColor = "#000000", k.styles.buttonRoundness = "none", k.styles.buttonStyle = "default"), m.value = !0;
250
- }, j = () => {
251
- f("add", k), m.value = !1;
252
- }, M = () => {
253
- O.value && (k.name = "Default"), f("edit", {
254
- id: T.value,
255
- ...k
256
- }), m.value = !1;
257
- }, N = async () => {
258
- O.value || await i("Are you sure you want to delete this theme? This action cannot be undone.", "Delete Theme", "Delete") && (f("delete", T.value), m.value = !1);
259
- }, P = () => {
260
- k.styles.backgroundColor = "#FFFFFF", k.styles.textColor = "#000000", k.styles.borderColor = "#000000", k.styles.buttonRoundness = "none", k.styles.buttonStyle = "default";
261
- }, F = (e) => {
262
- switch (e) {
263
- case "none": return 0;
264
- case "small": return 8;
265
- case "medium": return 12;
266
- case "pill": return 99;
267
- default: return 0;
268
- }
269
- }, I = a(() => {
270
- let e = "." + k.className + " {\n";
271
- return e += ` background-color: ${k.styles.backgroundColor};\n`, e += ` color: ${k.styles.textColor};\n`, k.styles.buttonStyle === "outline" ? e += ` border: 1px solid ${k.styles.borderColor};\n` : k.styles.buttonStyle === "shadow" ? e += " box-shadow: 0 3px 6px #ccc;\n" : k.styles.buttonStyle === "retro" && (e += ` box-shadow: inset 0 0 0 2px ${k.styles.borderColor}, 2px 2px 0 ${k.styles.borderColor};\n`), k.styles.buttonRoundness !== "none" && (e += ` border-radius: ${F(k.styles.buttonRoundness)}px;\n`), e += "}\n", e;
272
- });
273
- return n({ openDialog: A }), (e, n) => {
274
- let r = y("DialogTitle"), i = y("DialogDescription"), a = y("DialogHeader"), f = y("Label"), g = y("Input"), _ = y("RadioGroupItem"), T = y("RadioGroup"), A = y("Button"), L = y("DialogFooter"), R = y("DialogScrollContent"), z = y("Dialog");
275
- return h(), o(z, {
276
- open: m.value,
277
- "onUpdate:open": n[18] ||= (e) => m.value = e
278
- }, {
279
- default: C(() => [d(R, { class: "sm:max-w-2xl" }, {
280
- default: C(() => [
281
- d(a, null, {
282
- default: C(() => [d(r, null, {
283
- default: C(() => [u(b(v.value === "create" ? "Add New Button Style" : "Edit Button Style"), 1)]),
284
- _: 1
285
- }), d(i, null, {
286
- default: C(() => [...n[19] ||= [u(" These settings change how this section looks in the editor. To style your live site, add matching CSS or use a custom component. ", -1)]]),
287
- _: 1
288
- })]),
289
- _: 1
290
- }),
291
- l("div", q, [
292
- l("div", J, [l("div", null, [d(f, {
293
- class: "mb-2",
294
- for: "collection-theme-dialog-theme-name"
295
- }, {
296
- default: C(() => [...n[20] ||= [u("Display name", -1)]]),
297
- _: 1
298
- }), l("div", Y, [d(g, {
299
- modelValue: k.name,
300
- "onUpdate:modelValue": n[0] ||= (e) => k.name = e,
301
- id: "collection-theme-dialog-theme-name",
302
- disabled: O.value
303
- }, null, 8, ["modelValue", "disabled"])])])]),
304
- n[38] ||= l("h2", { class: "font-semibold mb-4" }, "Style Settings", -1),
305
- l("div", ee, [
306
- l("div", null, [d(f, {
307
- class: "mb-2",
308
- for: "collection-theme-dialog-background-color"
309
- }, {
310
- default: C(() => [...n[21] ||= [u("Background color", -1)]]),
311
- _: 1
312
- }), l("div", te, [w(l("input", {
313
- "onUpdate:modelValue": n[1] ||= (e) => k.styles.backgroundColor = e,
314
- type: "color",
315
- label: "Primary Color",
316
- class: "absolute top-0.5 left-1 size-8"
317
- }, null, 512), [[S, k.styles.backgroundColor]]), d(g, {
318
- modelValue: k.styles.backgroundColor,
319
- "onUpdate:modelValue": n[2] ||= (e) => k.styles.backgroundColor = e,
320
- class: "pl-12",
321
- id: "collection-theme-dialog-background-color"
322
- }, null, 8, ["modelValue"])])]),
323
- l("div", null, [d(f, {
324
- class: "mb-2",
325
- for: "collection-theme-dialog-text-color"
326
- }, {
327
- default: C(() => [...n[22] ||= [u("Text color", -1)]]),
328
- _: 1
329
- }), l("div", X, [w(l("input", {
330
- "onUpdate:modelValue": n[3] ||= (e) => k.styles.textColor = e,
331
- type: "color",
332
- label: "Primary Color",
333
- class: "absolute top-0.5 left-1 size-8"
334
- }, null, 512), [[S, k.styles.textColor]]), d(g, {
335
- modelValue: k.styles.textColor,
336
- "onUpdate:modelValue": n[4] ||= (e) => k.styles.textColor = e,
337
- class: "pl-12",
338
- id: "collection-theme-dialog-text-color"
339
- }, null, 8, ["modelValue"])])]),
340
- l("div", null, [d(f, {
341
- class: "mb-2",
342
- for: "collection-theme-dialog-border-color"
343
- }, {
344
- default: C(() => [...n[23] ||= [u("Border color", -1)]]),
345
- _: 1
346
- }), l("div", Z, [w(l("input", {
347
- "onUpdate:modelValue": n[5] ||= (e) => k.styles.borderColor = e,
348
- type: "color",
349
- label: "Primary Color",
350
- class: "absolute top-0.5 left-1 size-8"
351
- }, null, 512), [[S, k.styles.borderColor]]), d(g, {
352
- modelValue: k.styles.borderColor,
353
- "onUpdate:modelValue": n[6] ||= (e) => k.styles.borderColor = e,
354
- class: "pl-12",
355
- id: "collection-theme-dialog-border-color"
356
- }, null, 8, ["modelValue"])])])
357
- ]),
358
- l("div", { style: p(`--button-background-color: ${k.styles.backgroundColor}; --button-text-color: ${k.styles.textColor}`) }, [
359
- d(f, { class: "mb-4" }, {
360
- default: C(() => [...n[24] ||= [u("Shape", -1)]]),
361
- _: 1
362
- }),
363
- l("div", {
364
- class: "grid grid-cols-4 gap-4 mb-6 p-2 rounded",
365
- style: p({ backgroundColor: t.defaultBackground })
366
- }, [
367
- l("div", {
368
- class: "flex flex-col gap-2 items-center cursor-pointer",
369
- onClick: n[7] ||= (e) => k.styles.buttonRoundness = "none"
370
- }, [n[25] ||= l("div", { class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)]" }, "Button", -1), k.styles.buttonRoundness === "none" ? (h(), o(x(D), {
371
- key: 1,
372
- class: "size-4 text-black"
373
- })) : (h(), o(x(E), {
374
- key: 0,
375
- class: "size-4 text-black/30"
376
- }))]),
377
- l("div", {
378
- class: "flex flex-col gap-2 items-center cursor-pointer",
379
- onClick: n[8] ||= (e) => k.styles.buttonRoundness = "small"
380
- }, [n[26] ||= l("div", { class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)] rounded-[8px]" }, "Button", -1), k.styles.buttonRoundness === "small" ? (h(), o(x(D), {
381
- key: 1,
382
- class: "size-4 text-black"
383
- })) : (h(), o(x(E), {
384
- key: 0,
385
- class: "size-4 text-black/30"
386
- }))]),
387
- l("div", {
388
- class: "flex flex-col gap-2 items-center cursor-pointer",
389
- onClick: n[9] ||= (e) => k.styles.buttonRoundness = "medium"
390
- }, [n[27] ||= l("div", { class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)] rounded-[12px]" }, "Button", -1), k.styles.buttonRoundness === "medium" ? (h(), o(x(D), {
391
- key: 1,
392
- class: "size-4 text-black"
393
- })) : (h(), o(x(E), {
394
- key: 0,
395
- class: "size-4 text-black/30"
396
- }))]),
397
- l("div", {
398
- class: "flex flex-col gap-2 items-center cursor-pointer",
399
- onClick: n[10] ||= (e) => k.styles.buttonRoundness = "pill"
400
- }, [n[28] ||= l("div", { class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)] rounded-[99px]" }, "Button", -1), k.styles.buttonRoundness === "pill" ? (h(), o(x(D), {
401
- key: 1,
402
- class: "size-4 text-black"
403
- })) : (h(), o(x(E), {
404
- key: 0,
405
- class: "size-4 text-black/30"
406
- }))])
407
- ], 4),
408
- d(f, { class: "mb-4" }, {
409
- default: C(() => [...n[29] ||= [u("Style", -1)]]),
410
- _: 1
411
- }),
412
- l("div", {
413
- class: "grid grid-cols-4 gap-4 mb-6 p-2 rounded",
414
- style: p(`--button-border-radius: ${F(k.styles.buttonRoundness)}px; --button-border-color: ${k.styles.borderColor}; background-color: ${t.defaultBackground}`)
415
- }, [
416
- l("div", {
417
- class: "flex flex-col gap-2 items-center cursor-pointer",
418
- onClick: n[11] ||= (e) => k.styles.buttonStyle = "default"
419
- }, [n[30] ||= l("div", { class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)] rounded-[var(--button-border-radius)]" }, "Button", -1), k.styles.buttonStyle === "default" ? (h(), o(x(D), {
420
- key: 1,
421
- class: "size-4 text-black"
422
- })) : (h(), o(x(E), {
423
- key: 0,
424
- class: "size-4 text-black/30"
425
- }))]),
426
- l("div", {
427
- class: "flex flex-col gap-2 items-center cursor-pointer",
428
- onClick: n[12] ||= (e) => k.styles.buttonStyle = "outline"
429
- }, [n[31] ||= l("div", { class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)] rounded-[var(--button-border-radius)] border border-[var(--button-border-color)]" }, " Button ", -1), k.styles.buttonStyle === "outline" ? (h(), o(x(D), {
430
- key: 1,
431
- class: "size-4 text-black"
432
- })) : (h(), o(x(E), {
433
- key: 0,
434
- class: "size-4 text-black/30"
435
- }))]),
436
- l("div", {
437
- class: "flex flex-col gap-2 items-center cursor-pointer",
438
- onClick: n[13] ||= (e) => k.styles.buttonStyle = "shadow"
439
- }, [n[32] ||= l("div", {
440
- class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)] rounded-[var(--button-border-radius)]",
441
- style: { "box-shadow": "0 3px 6px #ccc" }
442
- }, " Button ", -1), k.styles.buttonStyle === "shadow" ? (h(), o(x(D), {
443
- key: 1,
444
- class: "size-4 text-black"
445
- })) : (h(), o(x(E), {
446
- key: 0,
447
- class: "size-4 text-black/30"
448
- }))]),
449
- l("div", {
450
- class: "flex flex-col gap-2 items-center cursor-pointer",
451
- onClick: n[14] ||= (e) => k.styles.buttonStyle = "retro"
452
- }, [l("div", {
453
- class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)] rounded-[var(--button-border-radius)]",
454
- style: p(`box-shadow: inset 0 0 0 2px ${k.styles.borderColor}, 2px 2px 0 ${k.styles.borderColor};`)
455
- }, " Button ", 4), k.styles.buttonStyle === "retro" ? (h(), o(x(D), {
456
- key: 1,
457
- class: "size-4 text-black"
458
- })) : (h(), o(x(E), {
459
- key: 0,
460
- class: "size-4 text-black/30"
461
- }))])
462
- ], 4)
463
- ], 4),
464
- n[39] ||= l("h2", { class: "font-semibold mb-4" }, "Rendering Method", -1),
465
- l("div", Q, [l("div", null, [l("div", ne, [d(f, { class: "mb-4 text-muted-foreground" }, {
466
- default: C(() => [...n[33] ||= [u("Choose how this section should be styled on your site:", -1)]]),
467
- _: 1
468
- }), d(T, {
469
- modelValue: k.rendering,
470
- "onUpdate:modelValue": n[15] ||= (e) => k.rendering = e,
471
- "default-value": "class"
472
- }, {
473
- default: C(() => [l("div", re, [d(_, {
474
- id: "collection-theme-dialog-render-class",
475
- value: "class"
476
- }), d(f, { for: "collection-theme-dialog-render-class" }, {
477
- default: C(() => [...n[34] ||= [u("Use a CSS class", -1)]]),
478
- _: 1
479
- })]), l("div", ie, [d(_, {
480
- id: "collection-theme-dialog-render-component",
481
- value: "component"
482
- }), d(f, { for: "collection-theme-dialog-render-component" }, {
483
- default: C(() => [...n[35] ||= [u("Custom component", -1)]]),
484
- _: 1
485
- })])]),
486
- _: 1
487
- }, 8, ["modelValue"])])])]),
488
- l("div", ae, [k.rendering === "class" ? (h(), c("div", oe, [d(f, {
489
- class: "mb-2",
490
- for: "collection-theme-dialog-class-name"
491
- }, {
492
- default: C(() => [...n[36] ||= [u("Class name", -1)]]),
493
- _: 1
494
- }), l("div", se, [d(g, {
495
- modelValue: k.className,
496
- "onUpdate:modelValue": n[16] ||= (e) => k.className = e,
497
- id: "collection-theme-dialog-class-name"
498
- }, null, 8, ["modelValue"])])])) : (h(), c("div", ce, [d(f, {
499
- class: "mb-2",
500
- for: "collection-theme-dialog-component-name"
501
- }, {
502
- default: C(() => [...n[37] ||= [u("Component name", -1)]]),
503
- _: 1
504
- }), l("div", le, [d(g, {
505
- modelValue: k.componentName,
506
- "onUpdate:modelValue": n[17] ||= (e) => k.componentName = e,
507
- id: "collection-theme-dialog-component-name"
508
- }, null, 8, ["modelValue"])])]))]),
509
- k.rendering === "class" ? (h(), c("pre", ue, b(I.value), 1)) : s("", !0)
510
- ]),
511
- d(L, null, {
512
- default: C(() => [
513
- v.value === "edit" && !O.value ? (h(), o(A, {
514
- key: 0,
515
- variant: "destructive",
516
- class: "mr-auto",
517
- onClick: N
518
- }, {
519
- default: C(() => [...n[40] ||= [u(" Delete Style ", -1)]]),
520
- _: 1
521
- })) : s("", !0),
522
- v.value === "edit" && O.value ? (h(), o(A, {
523
- key: 1,
524
- variant: "outline",
525
- class: "mr-auto",
526
- onClick: P
527
- }, {
528
- default: C(() => [...n[41] ||= [u(" Reset to Default ", -1)]]),
529
- _: 1
530
- })) : s("", !0),
531
- v.value === "create" ? (h(), o(A, {
532
- key: 2,
533
- type: "submit",
534
- onClick: j
535
- }, {
536
- default: C(() => [...n[42] ||= [u(" Add Style ", -1)]]),
537
- _: 1
538
- })) : (h(), o(A, {
539
- key: 3,
540
- type: "submit",
541
- onClick: M
542
- }, {
543
- default: C(() => [...n[43] ||= [u(" Save Changes ", -1)]]),
544
- _: 1
545
- }))
546
- ]),
547
- _: 1
548
- })
549
- ]),
550
- _: 1
551
- })]),
552
- _: 1
553
- }, 8, ["open"]);
554
- };
555
- }
556
- }), fe = { class: "grid py-4" }, pe = { class: "grid grid-cols-2 gap-2 mb-6" }, me = { class: "relative" }, he = { class: "grid grid-cols-4 gap-2 mb-6" }, ge = { class: "relative" }, _e = { class: "relative" }, ve = { class: "relative" }, ye = { class: "relative" }, be = { class: "grid grid-cols-1 gap-2 mb-6" }, xe = { class: "relative" }, Se = { class: "flex items-center space-x-2" }, Ce = { class: "flex items-center space-x-2" }, we = { class: "grid grid-cols-2 gap-2 mb-6" }, Te = { key: 0 }, Ee = { class: "relative" }, De = { key: 1 }, Oe = { class: "relative" }, ke = {
557
- key: 0,
558
- class: "bg-muted px-4 py-2 rounded-md text-sm"
559
- }, Ae = /* @__PURE__ */ f({
560
- __name: "CardStyleDialog",
561
- props: { defaultBackground: {
562
- type: String,
563
- default: "#FFFFFF"
564
- } },
565
- emits: [
566
- "add",
567
- "edit",
568
- "delete"
569
- ],
570
- setup(t, { expose: n, emit: r }) {
571
- let { confirm: i } = e(), f = r, m = _(!1), v = _("create"), T = _(null), O = _(!1), k = g({
572
- name: "",
573
- rendering: "class",
574
- className: "",
575
- componentName: "",
576
- styles: {
577
- backgroundColor: "#FFFFFF",
578
- titleColor: "#000000",
579
- textColor: "#000000",
580
- borderColor: "#000000",
581
- roundness: "none",
582
- style: "default"
583
- }
584
- }), A = (e) => {
585
- e ? (v.value = "edit", T.value = e.id, O.value = e.id === "DEFAULT", k.name = e.name || "", k.rendering = e.rendering || "class", k.className = e.className || "", k.componentName = e.componentName || "", k.styles.backgroundColor = e.styles.backgroundColor || "#FFFFFF", k.styles.titleColor = e.styles.titleColor || "#000000", k.styles.textColor = e.styles.textColor || "#000000", k.styles.borderColor = e.styles.borderColor || "#000000", k.styles.roundness = e.styles.roundness || "none", k.styles.style = e.styles.style || "default") : (v.value = "create", T.value = null, O.value = !1, k.name = "", k.rendering = "class", k.className = "", k.componentName = "", k.styles.backgroundColor = "#FFFFFF", k.styles.titleColor = "#000000", k.styles.textColor = "#000000", k.styles.borderColor = "#000000", k.styles.roundness = "none", k.styles.style = "default"), m.value = !0;
586
- }, j = () => {
587
- f("add", k), m.value = !1;
588
- }, M = () => {
589
- O.value && (k.name = "Default"), f("edit", {
590
- id: T.value,
591
- ...k
592
- }), m.value = !1;
593
- }, N = async () => {
594
- O.value || await i("Are you sure you want to delete this theme? This action cannot be undone.", "Delete Theme", "Delete") && (f("delete", T.value), m.value = !1);
595
- }, P = () => {
596
- k.styles.backgroundColor = "#FFFFFF", k.styles.titleColor = "#000000", k.styles.textColor = "#000000", k.styles.borderColor = "#000000", k.styles.roundness = "none", k.styles.style = "default";
597
- }, F = (e) => {
598
- switch (e) {
599
- case "none": return 0;
600
- case "small": return 8;
601
- case "medium": return 12;
602
- default: return 0;
603
- }
604
- }, I = a(() => {
605
- let e = "." + k.className + " {\n";
606
- return e += ` background-color: ${k.styles.backgroundColor};\n`, e += ` color: ${k.styles.textColor};\n`, k.styles.style === "outline" ? e += ` border: 1px solid ${k.styles.borderColor};\n` : k.styles.style === "shadow" ? e += " box-shadow: 0 3px 6px #ccc;\n" : k.styles.style === "retro" && (e += ` box-shadow: inset 0 0 0 2px ${k.styles.borderColor}, 2px 2px 0 ${k.styles.borderColor};\n`), k.styles.roundness !== "none" && (e += ` border-radius: ${F(k.styles.roundness)}px;\n`), e += "}\n", e;
607
- });
608
- return n({ openDialog: A }), (e, n) => {
609
- let r = y("DialogTitle"), i = y("DialogDescription"), a = y("DialogHeader"), f = y("Label"), g = y("Input"), _ = y("RadioGroupItem"), T = y("RadioGroup"), A = y("Button"), L = y("DialogFooter"), R = y("DialogScrollContent"), z = y("Dialog");
610
- return h(), o(z, {
611
- open: m.value,
612
- "onUpdate:open": n[19] ||= (e) => m.value = e
613
- }, {
614
- default: C(() => [d(R, { class: "sm:max-w-2xl" }, {
615
- default: C(() => [
616
- d(a, null, {
617
- default: C(() => [d(r, null, {
618
- default: C(() => [u(b(v.value === "create" ? "Add New Card Style" : "Edit Card Style"), 1)]),
619
- _: 1
620
- }), d(i, null, {
621
- default: C(() => [...n[20] ||= [u(" These settings change how this section looks in the editor. To style your live site, add matching CSS or use a custom component. ", -1)]]),
622
- _: 1
623
- })]),
624
- _: 1
625
- }),
626
- l("div", fe, [
627
- l("div", pe, [l("div", null, [d(f, {
628
- class: "mb-2",
629
- for: "collection-theme-dialog-theme-name"
630
- }, {
631
- default: C(() => [...n[21] ||= [u("Display name", -1)]]),
632
- _: 1
633
- }), l("div", me, [d(g, {
634
- modelValue: k.name,
635
- "onUpdate:modelValue": n[0] ||= (e) => k.name = e,
636
- id: "collection-theme-dialog-theme-name",
637
- disabled: O.value
638
- }, null, 8, ["modelValue", "disabled"])])])]),
639
- n[40] ||= l("h2", { class: "font-semibold mb-4" }, "Style Settings", -1),
640
- l("div", he, [
641
- l("div", null, [d(f, {
642
- class: "mb-2",
643
- for: "collection-theme-dialog-background-color"
644
- }, {
645
- default: C(() => [...n[22] ||= [u("Background color", -1)]]),
646
- _: 1
647
- }), l("div", ge, [w(l("input", {
648
- "onUpdate:modelValue": n[1] ||= (e) => k.styles.backgroundColor = e,
649
- type: "color",
650
- label: "Background color",
651
- class: "absolute top-0.5 left-1 size-8"
652
- }, null, 512), [[S, k.styles.backgroundColor]]), d(g, {
653
- modelValue: k.styles.backgroundColor,
654
- "onUpdate:modelValue": n[2] ||= (e) => k.styles.backgroundColor = e,
655
- class: "pl-12",
656
- id: "collection-theme-dialog-background-color"
657
- }, null, 8, ["modelValue"])])]),
658
- l("div", null, [d(f, {
659
- class: "mb-2",
660
- for: "collection-theme-dialog-title-color"
661
- }, {
662
- default: C(() => [...n[23] ||= [u("Heading color", -1)]]),
663
- _: 1
664
- }), l("div", _e, [w(l("input", {
665
- "onUpdate:modelValue": n[3] ||= (e) => k.styles.titleColor = e,
666
- type: "color",
667
- label: "Heading color",
668
- class: "absolute top-0.5 left-1 size-8"
669
- }, null, 512), [[S, k.styles.titleColor]]), d(g, {
670
- modelValue: k.styles.titleColor,
671
- "onUpdate:modelValue": n[4] ||= (e) => k.styles.titleColor = e,
672
- class: "pl-12",
673
- id: "collection-theme-dialog-title-color"
674
- }, null, 8, ["modelValue"])])]),
675
- l("div", null, [d(f, {
676
- class: "mb-2",
677
- for: "collection-theme-dialog-text-color"
678
- }, {
679
- default: C(() => [...n[24] ||= [u("Text color", -1)]]),
680
- _: 1
681
- }), l("div", ve, [w(l("input", {
682
- "onUpdate:modelValue": n[5] ||= (e) => k.styles.textColor = e,
683
- type: "color",
684
- label: "Text color",
685
- class: "absolute top-0.5 left-1 size-8"
686
- }, null, 512), [[S, k.styles.textColor]]), d(g, {
687
- modelValue: k.styles.textColor,
688
- "onUpdate:modelValue": n[6] ||= (e) => k.styles.textColor = e,
689
- class: "pl-12",
690
- id: "collection-theme-dialog-text-color"
691
- }, null, 8, ["modelValue"])])]),
692
- l("div", null, [d(f, {
693
- class: "mb-2",
694
- for: "collection-theme-dialog-border-color"
695
- }, {
696
- default: C(() => [...n[25] ||= [u("Border color", -1)]]),
697
- _: 1
698
- }), l("div", ye, [w(l("input", {
699
- "onUpdate:modelValue": n[7] ||= (e) => k.styles.borderColor = e,
700
- type: "color",
701
- label: "Border color",
702
- class: "absolute top-0.5 left-1 size-8"
703
- }, null, 512), [[S, k.styles.borderColor]]), d(g, {
704
- modelValue: k.styles.borderColor,
705
- "onUpdate:modelValue": n[8] ||= (e) => k.styles.borderColor = e,
706
- class: "pl-12",
707
- id: "collection-theme-dialog-border-color"
708
- }, null, 8, ["modelValue"])])])
709
- ]),
710
- l("div", { style: p(`--card-background-color: ${k.styles.backgroundColor}; --card-title-color: ${k.styles.titleColor}; --card-text-color: ${k.styles.textColor}`) }, [
711
- d(f, { class: "mb-4" }, {
712
- default: C(() => [...n[26] ||= [u("Shape", -1)]]),
713
- _: 1
714
- }),
715
- l("div", {
716
- class: "grid grid-cols-3 gap-4 mb-6 p-2 rounded",
717
- style: p({ backgroundColor: t.defaultBackground })
718
- }, [
719
- l("div", {
720
- class: "flex flex-col gap-2 items-center cursor-pointer",
721
- onClick: n[9] ||= (e) => k.styles.roundness = "none"
722
- }, [n[27] ||= l("div", { class: "text-center px-8 py-4 bg-[var(--card-background-color)]" }, [l("strong", { class: "text-2xl text-[var(--card-title-color)]" }, "Card"), l("p", { class: "text-[var(--card-text-color)]" }, "Lorem ipsum dolor sit amet.")], -1), k.styles.roundness === "none" ? (h(), o(x(D), {
723
- key: 1,
724
- class: "size-4 text-black"
725
- })) : (h(), o(x(E), {
726
- key: 0,
727
- class: "size-4 text-black/30"
728
- }))]),
729
- l("div", {
730
- class: "flex flex-col gap-2 items-center cursor-pointer",
731
- onClick: n[10] ||= (e) => k.styles.roundness = "small"
732
- }, [n[28] ||= l("div", { class: "text-center px-8 py-4 bg-[var(--card-background-color)] rounded-[8px]" }, [l("strong", { class: "text-2xl text-[var(--card-title-color)]" }, "Card"), l("p", { class: "text-[var(--card-text-color)]" }, "Lorem ipsum dolor sit amet.")], -1), k.styles.roundness === "small" ? (h(), o(x(D), {
733
- key: 1,
734
- class: "size-4 text-black"
735
- })) : (h(), o(x(E), {
736
- key: 0,
737
- class: "size-4 text-black/30"
738
- }))]),
739
- l("div", {
740
- class: "flex flex-col gap-2 items-center cursor-pointer",
741
- onClick: n[11] ||= (e) => k.styles.roundness = "medium"
742
- }, [n[29] ||= l("div", { class: "text-center px-8 py-4 bg-[var(--card-background-color)] rounded-[12px]" }, [l("strong", { class: "text-2xl text-[var(--card-title-color)]" }, "Card"), l("p", { class: "text-[var(--card-text-color)]" }, "Lorem ipsum dolor sit amet.")], -1), k.styles.roundness === "medium" ? (h(), o(x(D), {
743
- key: 1,
744
- class: "size-4 text-black"
745
- })) : (h(), o(x(E), {
746
- key: 0,
747
- class: "size-4 text-black/30"
748
- }))])
749
- ], 4),
750
- d(f, { class: "mb-4" }, {
751
- default: C(() => [...n[30] ||= [u("Style", -1)]]),
752
- _: 1
753
- }),
754
- l("div", {
755
- class: "grid grid-cols-4 gap-4 mb-6 p-2 rounded",
756
- style: p(`--card-border-radius: ${F(k.styles.roundness)}px; --card-border-color: ${k.styles.borderColor}; background-color: ${t.defaultBackground}`)
757
- }, [
758
- l("div", {
759
- class: "flex flex-col gap-2 items-center cursor-pointer",
760
- onClick: n[12] ||= (e) => k.styles.style = "default"
761
- }, [n[31] ||= l("div", { class: "text-center px-8 py-4 bg-[var(--card-background-color)] rounded-[var(--card-border-radius)]" }, [l("strong", { class: "text-2xl text-[var(--card-title-color)]" }, "Card"), l("p", { class: "text-[var(--card-text-color)]" }, "Lorem ipsum dolor sit amet.")], -1), k.styles.style === "default" ? (h(), o(x(D), {
762
- key: 1,
763
- class: "size-4 text-black"
764
- })) : (h(), o(x(E), {
765
- key: 0,
766
- class: "size-4 text-black/30"
767
- }))]),
768
- l("div", {
769
- class: "flex flex-col gap-2 items-center cursor-pointer",
770
- onClick: n[13] ||= (e) => k.styles.style = "outline"
771
- }, [n[32] ||= l("div", { class: "text-center px-8 py-4 bg-[var(--card-background-color)] rounded-[var(--card-border-radius)] border border-[var(--card-border-color)]" }, [l("strong", { class: "text-2xl text-[var(--card-title-color)]" }, "Card"), l("p", { class: "text-[var(--card-text-color)]" }, "Lorem ipsum dolor sit amet.")], -1), k.styles.style === "outline" ? (h(), o(x(D), {
772
- key: 1,
773
- class: "size-4 text-black"
774
- })) : (h(), o(x(E), {
775
- key: 0,
776
- class: "size-4 text-black/30"
777
- }))]),
778
- l("div", {
779
- class: "flex flex-col gap-2 items-center cursor-pointer",
780
- onClick: n[14] ||= (e) => k.styles.style = "shadow"
781
- }, [n[33] ||= l("div", {
782
- class: "text-center px-8 py-4 bg-[var(--card-background-color)] rounded-[var(--card-border-radius)]",
783
- style: { "box-shadow": "0 3px 6px #ccc" }
784
- }, [l("strong", { class: "text-2xl text-[var(--card-title-color)]" }, "Card"), l("p", { class: "text-[var(--card-text-color)]" }, "Lorem ipsum dolor sit amet.")], -1), k.styles.style === "shadow" ? (h(), o(x(D), {
785
- key: 1,
786
- class: "size-4 text-black"
787
- })) : (h(), o(x(E), {
788
- key: 0,
789
- class: "size-4 text-black/30"
790
- }))]),
791
- l("div", {
792
- class: "flex flex-col gap-2 items-center cursor-pointer",
793
- onClick: n[15] ||= (e) => k.styles.style = "retro"
794
- }, [l("div", {
795
- class: "text-center px-8 py-4 bg-[var(--card-background-color)] rounded-[var(--card-border-radius)]",
796
- style: p(`box-shadow: inset 0 0 0 2px ${k.styles.borderColor}, 2px 2px 0 ${k.styles.borderColor};`)
797
- }, [...n[34] ||= [l("strong", { class: "text-2xl text-[var(--card-title-color)]" }, "Card", -1), l("p", { class: "text-[var(--card-text-color)]" }, "Lorem ipsum dolor sit amet.", -1)]], 4), k.styles.style === "retro" ? (h(), o(x(D), {
798
- key: 1,
799
- class: "size-4 text-black"
800
- })) : (h(), o(x(E), {
801
- key: 0,
802
- class: "size-4 text-black/30"
803
- }))])
804
- ], 4)
805
- ], 4),
806
- n[41] ||= l("h2", { class: "font-semibold mb-4" }, "Rendering Method", -1),
807
- l("div", be, [l("div", null, [l("div", xe, [d(f, { class: "mb-4 text-muted-foreground" }, {
808
- default: C(() => [...n[35] ||= [u("Choose how this section should be styled on your site:", -1)]]),
809
- _: 1
810
- }), d(T, {
811
- modelValue: k.rendering,
812
- "onUpdate:modelValue": n[16] ||= (e) => k.rendering = e,
813
- "default-value": "class"
814
- }, {
815
- default: C(() => [l("div", Se, [d(_, {
816
- id: "collection-theme-dialog-render-class",
817
- value: "class"
818
- }), d(f, { for: "collection-theme-dialog-render-class" }, {
819
- default: C(() => [...n[36] ||= [u("Use a CSS class", -1)]]),
820
- _: 1
821
- })]), l("div", Ce, [d(_, {
822
- id: "collection-theme-dialog-render-component",
823
- value: "component"
824
- }), d(f, { for: "collection-theme-dialog-render-component" }, {
825
- default: C(() => [...n[37] ||= [u("Custom component", -1)]]),
826
- _: 1
827
- })])]),
828
- _: 1
829
- }, 8, ["modelValue"])])])]),
830
- l("div", we, [k.rendering === "class" ? (h(), c("div", Te, [d(f, {
831
- class: "mb-2",
832
- for: "collection-theme-dialog-class-name"
833
- }, {
834
- default: C(() => [...n[38] ||= [u("Class name", -1)]]),
835
- _: 1
836
- }), l("div", Ee, [d(g, {
837
- modelValue: k.className,
838
- "onUpdate:modelValue": n[17] ||= (e) => k.className = e,
839
- id: "collection-theme-dialog-class-name"
840
- }, null, 8, ["modelValue"])])])) : (h(), c("div", De, [d(f, {
841
- class: "mb-2",
842
- for: "collection-theme-dialog-component-name"
843
- }, {
844
- default: C(() => [...n[39] ||= [u("Component name", -1)]]),
845
- _: 1
846
- }), l("div", Oe, [d(g, {
847
- modelValue: k.componentName,
848
- "onUpdate:modelValue": n[18] ||= (e) => k.componentName = e,
849
- id: "collection-theme-dialog-component-name"
850
- }, null, 8, ["modelValue"])])]))]),
851
- k.rendering === "class" ? (h(), c("pre", ke, b(I.value), 1)) : s("", !0)
852
- ]),
853
- d(L, null, {
854
- default: C(() => [
855
- v.value === "edit" && !O.value ? (h(), o(A, {
856
- key: 0,
857
- variant: "destructive",
858
- class: "mr-auto",
859
- onClick: N
860
- }, {
861
- default: C(() => [...n[42] ||= [u(" Delete Style ", -1)]]),
862
- _: 1
863
- })) : s("", !0),
864
- v.value === "edit" && O.value ? (h(), o(A, {
865
- key: 1,
866
- variant: "outline",
867
- class: "mr-auto",
868
- onClick: P
869
- }, {
870
- default: C(() => [...n[43] ||= [u(" Reset to Default ", -1)]]),
871
- _: 1
872
- })) : s("", !0),
873
- v.value === "create" ? (h(), o(A, {
874
- key: 2,
875
- type: "submit",
876
- onClick: j
877
- }, {
878
- default: C(() => [...n[44] ||= [u(" Add Style ", -1)]]),
879
- _: 1
880
- })) : (h(), o(A, {
881
- key: 3,
882
- type: "submit",
883
- onClick: M
884
- }, {
885
- default: C(() => [...n[45] ||= [u(" Save Changes ", -1)]]),
886
- _: 1
887
- }))
888
- ]),
889
- _: 1
890
- })
891
- ]),
892
- _: 1
893
- })]),
894
- _: 1
895
- }, 8, ["open"]);
896
- };
897
- }
898
- }), je = { class: "w-full" }, Me = { class: "flex items-center justify-between gap-4 w-full my-4" }, Ne = {
899
- key: 0,
900
- class: "flex gap-4 flex-wrap mb-8"
901
- }, Pe = ["onClick"], $ = { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, Fe = {
902
- key: 1,
903
- class: "flex gap-4 flex-wrap mb-8"
904
- }, Ie = {
905
- key: 2,
906
- class: "flex gap-4 flex-wrap mb-8"
907
- }, Le = ["onClick"], Re = { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, ze = {
908
- key: 3,
909
- class: "flex gap-4 flex-wrap mb-8"
910
- }, Be = {
911
- key: 4,
912
- class: "flex gap-4 flex-wrap mb-8"
913
- }, Ve = ["onClick"], He = { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, Ue = {
914
- key: 5,
915
- class: "flex gap-4 flex-wrap mb-8"
916
- }, We = /* @__PURE__ */ f({
917
- __name: "GlobalStyling",
918
- setup(e) {
919
- let { navigateTo: o } = n(), { getModuleData: f, setModuleData: g } = r();
920
- t(() => [{ text: "Global Styling" }]);
921
- let S = _(""), w = _(""), E = _(""), D = _(null), k = _(null), A = _(null), j = a(() => D.value === null ? null : D.value && D.value.find((e) => e.id === "DEFAULT") ? D.value : [{
922
- id: "DEFAULT",
923
- name: "Default",
924
- className: "",
925
- styles: {
926
- backgroundColor: "#FFFFFF",
927
- textColor: "#000000"
928
- }
929
- }, ...D.value]), M = a(() => j.value?.find((e) => e.id === "DEFAULT")?.styles.backgroundColor ?? "#FFFFFF"), N = a(() => k.value === null ? null : k.value && k.value.find((e) => e.id === "DEFAULT") ? k.value : [{
930
- id: "DEFAULT",
931
- name: "Default",
932
- className: "",
933
- styles: {
934
- backgroundColor: "#FFFFFF",
935
- textColor: "#000000"
936
- }
937
- }, ...k.value]), P = a(() => A.value === null ? null : A.value && A.value.find((e) => e.id === "DEFAULT") ? A.value : [{
938
- id: "DEFAULT",
939
- name: "Default",
940
- className: "",
941
- styles: {
942
- backgroundColor: "#FFFFFF",
943
- textColor: "#000000"
944
- }
945
- }, ...A.value]);
946
- async function F(e) {
947
- let t = JSON.parse(JSON.stringify(e));
948
- t.id = crypto.randomUUID(), D.value.push(t), D.value = await f("sectionThemes") || [], D.value.push(t), g("sectionThemes", D.value);
949
- }
950
- async function I(e) {
951
- let t = JSON.parse(JSON.stringify(e)), n = D.value.findIndex((e) => e.id === t.id);
952
- n === -1 ? t.id === "DEFAULT" && (Array.isArray(D.value) || (D.value = []), D.value = [{
953
- id: "DEFAULT",
954
- name: "Default",
955
- styles: t.styles
956
- }, ...D.value]) : D.value[n] = t, D.value = await f("sectionThemes") || [], n = D.value.findIndex((e) => e.id === t.id), n === -1 ? t.id === "DEFAULT" && (Array.isArray(D.value) || (D.value = []), D.value = [{
957
- id: "DEFAULT",
958
- name: "Default",
959
- styles: t.styles
960
- }, ...D.value], g("sectionThemes", D.value)) : (D.value[n] = t, g("sectionThemes", D.value));
961
- }
962
- async function L(e) {
963
- D.value = D.value.filter((t) => t.id !== e), D.value = await f("sectionThemes") || [], D.value = D.value.filter((t) => t.id !== e), g("sectionThemes", D.value);
964
- }
965
- async function R(e) {
966
- let t = JSON.parse(JSON.stringify(e));
967
- t.id = crypto.randomUUID(), k.value.push(t), k.value = await f("buttonThemes") || [], k.value.push(t), g("buttonThemes", k.value);
968
- }
969
- async function z(e) {
970
- let t = JSON.parse(JSON.stringify(e)), n = k.value.findIndex((e) => e.id === t.id);
971
- n === -1 ? t.id === "DEFAULT" && (Array.isArray(k.value) || (k.value = []), k.value = [{
972
- id: "DEFAULT",
973
- name: "Default",
974
- styles: t.styles
975
- }, ...k.value]) : k.value[n] = t, k.value = await f("buttonThemes") || [], n = k.value.findIndex((e) => e.id === t.id), n === -1 ? t.id === "DEFAULT" && (Array.isArray(k.value) || (k.value = []), k.value = [{
976
- id: "DEFAULT",
977
- name: "Default",
978
- styles: t.styles
979
- }, ...k.value], g("buttonThemes", k.value)) : (k.value[n] = t, g("buttonThemes", k.value));
980
- }
981
- async function B(e) {
982
- k.value = k.value.filter((t) => t.id !== e), k.value = await f("buttonThemes") || [], k.value = k.value.filter((t) => t.id !== e), g("buttonThemes", k.value);
983
- }
984
- let V = function(e) {
985
- let t = {};
986
- if (t.backgroundColor = e.styles.backgroundColor, t.color = e.styles.textColor, e.styles.buttonStyle === "outline" ? t.border = `1px solid ${e.styles.borderColor}` : e.styles.buttonStyle === "shadow" ? t.boxShadow = "0 3px 6px #ccc" : e.styles.buttonStyle === "retro" && (t.boxShadow = `inset 0 0 0 2px ${e.styles.borderColor}, 2px 2px 0 ${e.styles.borderColor}`), e.styles.buttonRoundness !== "none") {
987
- let n = 0;
988
- e.styles.buttonRoundness === "small" ? n = 4 : e.styles.buttonRoundness === "medium" ? n = 8 : e.styles.buttonRoundness === "pill" && (n = 9999), t.borderRadius = `${n}px`;
989
- }
990
- return t;
991
- };
992
- async function H(e) {
993
- let t = JSON.parse(JSON.stringify(e));
994
- t.id = crypto.randomUUID(), A.value.push(t), A.value = await f("cardThemes") || [], A.value.push(t), g("cardThemes", A.value);
995
- }
996
- async function U(e) {
997
- let t = JSON.parse(JSON.stringify(e)), n = A.value.findIndex((e) => e.id === t.id);
998
- n === -1 ? t.id === "DEFAULT" && (Array.isArray(A.value) || (A.value = []), A.value = [{
999
- id: "DEFAULT",
1000
- name: "Default",
1001
- styles: t.styles
1002
- }, ...A.value]) : A.value[n] = t, A.value = await f("cardThemes") || [], n = A.value.findIndex((e) => e.id === t.id), n === -1 ? t.id === "DEFAULT" && (Array.isArray(A.value) || (A.value = []), A.value = [{
1003
- id: "DEFAULT",
1004
- name: "Default",
1005
- styles: t.styles
1006
- }, ...A.value], g("cardThemes", A.value)) : (A.value[n] = t, g("cardThemes", A.value));
1007
- }
1008
- async function W(e) {
1009
- A.value = A.value.filter((t) => t.id !== e), A.value = await f("cardThemes") || [], A.value = A.value.filter((t) => t.id !== e), g("cardThemes", A.value);
1010
- }
1011
- let G = function(e) {
1012
- let t = {};
1013
- if (t.backgroundColor = e.styles.backgroundColor, t.color = e.styles.textColor, e.styles.style === "outline" ? t.border = `1px solid ${e.styles.borderColor}` : e.styles.style === "shadow" ? t.boxShadow = "0 3px 6px #ccc" : e.styles.style === "retro" && (t.boxShadow = `inset 0 0 0 2px ${e.styles.borderColor}, 2px 2px 0 ${e.styles.borderColor}`), e.styles.roundness !== "none") {
1014
- let n = 0;
1015
- e.styles.roundness === "small" ? n = 4 : e.styles.roundness === "medium" && (n = 8), t.borderRadius = `${n}px`;
1016
- }
1017
- return t;
1018
- };
1019
- return m(() => {
1020
- f("sectionThemes").then((e) => {
1021
- D.value = e || [];
1022
- }), f("buttonThemes").then((e) => {
1023
- k.value = e || [];
1024
- }), f("cardThemes").then((e) => {
1025
- A.value = e || [];
1026
- });
1027
- }), (e, t) => {
1028
- let n = y("Button"), r = y("Skeleton");
1029
- return h(), c(i, null, [
1030
- l("div", je, [
1031
- l("div", Me, [d(n, {
1032
- onClick: t[0] ||= (e) => x(o)("/"),
1033
- variant: "link",
1034
- class: "!pl-0"
1035
- }, {
1036
- default: C(() => [d(x(T), { class: "size-4" }), t[4] ||= u(" Collections ", -1)]),
1037
- _: 1
1038
- })]),
1039
- t[10] ||= l("h1", { class: "text-3xl mb-8" }, "Global Styling", -1),
1040
- t[11] ||= l("h3", { class: "text-2xl mb-2" }, "Section Variants", -1),
1041
- t[12] ||= l("p", { class: "mb-6 max-w-3xl text-muted-foreground" }, " Set up the default design variants for your sections. These styles will be available across all collections by default, but you can choose to disable them within individual collections if needed. ", -1),
1042
- j.value === null ? (h(), c("div", Fe, [d(r, { class: "size-44 rounded-md" }), d(r, { class: "size-44 rounded-md" })])) : (h(), c("div", Ne, [l("div", {
1043
- class: "group/item flex flex-col gap-2 items-center",
1044
- onClick: t[1] ||= (e) => S.value.openDialog()
1045
- }, [d(n, {
1046
- variant: "outline",
1047
- class: "size-44 border-dotted",
1048
- tabindex: "-1"
1049
- }, {
1050
- default: C(() => [d(x(O), { class: "size-14" })]),
1051
- _: 1
1052
- }), t[5] ||= l("p", { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, "New Style", -1)]), (h(!0), c(i, null, v(j.value, (e) => (h(), c("div", {
1053
- class: "group/item flex flex-col gap-2 text-black items-center cursor-pointer hover:brightness-105 transition-all duration-300",
1054
- key: e.id,
1055
- onClick: (t) => S.value.openDialog(e)
1056
- }, [l("div", {
1057
- class: "flex flex-col items-start rounded-md p-4 size-44",
1058
- style: p({
1059
- backgroundColor: e.styles.backgroundColor,
1060
- border: "1px solid #E5E7EB"
1061
- })
1062
- }, [
1063
- l("strong", {
1064
- class: "text-2xl",
1065
- style: p({ color: e.styles.titleColor })
1066
- }, "Title", 4),
1067
- l("p", {
1068
- class: "mb-1",
1069
- style: p({ color: e.styles.textColor })
1070
- }, [...t[6] ||= [
1071
- u("Lorem ipsum dolor", -1),
1072
- l("br", null, null, -1),
1073
- u("sit amet.", -1)
1074
- ]], 4),
1075
- e.className ? (h(), c("p", {
1076
- key: 0,
1077
- class: "px-3 py-1.5 rounded-[99px]",
1078
- style: p({
1079
- backgroundColor: e.styles.textColor,
1080
- color: e.styles.backgroundColor
1081
- })
1082
- }, "." + b(e.className), 5)) : s("", !0)
1083
- ], 4), l("p", $, b(e.name), 1)], 8, Pe))), 128))])),
1084
- t[13] ||= l("h3", { class: "text-2xl mb-2" }, "Button Variants", -1),
1085
- t[14] ||= l("p", { class: "mb-6 max-w-3xl text-muted-foreground" }, " Define your standard button styles here. Collections can inherit these defaults or customize their own variants for more tailored experiences. ", -1),
1086
- N.value === null ? (h(), c("div", ze, [d(r, { class: "size-44 rounded-md" }), d(r, { class: "size-44 rounded-md" })])) : (h(), c("div", Ie, [l("div", {
1087
- class: "group/item flex flex-col gap-2 items-center",
1088
- onClick: t[2] ||= (e) => w.value.openDialog()
1089
- }, [d(n, {
1090
- variant: "outline",
1091
- class: "size-44 border-dotted",
1092
- tabindex: "-1"
1093
- }, {
1094
- default: C(() => [d(x(O), { class: "size-14" })]),
1095
- _: 1
1096
- }), t[7] ||= l("p", { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, "New Style", -1)]), (h(!0), c(i, null, v(N.value, (e) => (h(), c("div", {
1097
- class: "group/item flex flex-col gap-2 text-black items-center cursor-pointer hover:brightness-105 transition-all duration-300",
1098
- key: e.id,
1099
- onClick: (t) => w.value.openDialog(e)
1100
- }, [l("div", {
1101
- class: "flex flex-col items-center justify-center rounded-md p-4 size-44",
1102
- style: p({ backgroundColor: M.value })
1103
- }, [l("div", {
1104
- style: p(V(e)),
1105
- class: "px-4 py-2"
1106
- }, " Button ", 4)], 4), l("p", Re, b(e.name), 1)], 8, Le))), 128))])),
1107
- t[15] ||= l("h3", { class: "text-2xl mb-2" }, "Card Variants", -1),
1108
- t[16] ||= l("p", { class: "mb-6 max-w-3xl text-muted-foreground" }, " Define your standard card styles here. Collections can inherit these defaults or customize their own variants for more tailored experiences. ", -1),
1109
- P.value === null ? (h(), c("div", Ue, [d(r, { class: "size-44 rounded-md" }), d(r, { class: "size-44 rounded-md" })])) : (h(), c("div", Be, [l("div", {
1110
- class: "group/item flex flex-col gap-2 items-center",
1111
- onClick: t[3] ||= (e) => E.value.openDialog()
1112
- }, [d(n, {
1113
- variant: "outline",
1114
- class: "size-44 border-dotted",
1115
- tabindex: "-1"
1116
- }, {
1117
- default: C(() => [d(x(O), { class: "size-14" })]),
1118
- _: 1
1119
- }), t[8] ||= l("p", { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, "New Style", -1)]), (h(!0), c(i, null, v(P.value, (e) => (h(), c("div", {
1120
- class: "group/item flex flex-col gap-2 text-black items-center cursor-pointer hover:brightness-105 transition-all duration-300",
1121
- key: e.id,
1122
- onClick: (t) => E.value.openDialog(e)
1123
- }, [l("div", {
1124
- class: "flex flex-col items-center justify-center rounded-md p-4 size-44",
1125
- style: p({ backgroundColor: M.value })
1126
- }, [l("div", {
1127
- style: p(G(e)),
1128
- class: "p-4"
1129
- }, [l("strong", {
1130
- class: "text-2xl",
1131
- style: p({ color: e.styles.titleColor })
1132
- }, "Card", 4), t[9] ||= l("p", null, "Lorem ipsum dolor sit amet.", -1)], 4)], 4), l("p", He, b(e.name), 1)], 8, Ve))), 128))]))
1133
- ]),
1134
- d(K, {
1135
- ref_key: "sectionStyleDialog",
1136
- ref: S,
1137
- onAdd: F,
1138
- onEdit: I,
1139
- onDelete: L
1140
- }, null, 512),
1141
- d(de, {
1142
- ref_key: "buttonStyleDialog",
1143
- ref: w,
1144
- defaultBackground: M.value,
1145
- onAdd: R,
1146
- onEdit: z,
1147
- onDelete: B
1148
- }, null, 8, ["defaultBackground"]),
1149
- d(Ae, {
1150
- ref_key: "cardStyleDialog",
1151
- ref: E,
1152
- defaultBackground: M.value,
1153
- onAdd: H,
1154
- onEdit: U,
1155
- onDelete: W
1156
- }, null, 8, ["defaultBackground"])
1157
- ], 64);
1158
- };
1159
- }
1160
- });
1161
- //#endregion
1162
- export { We as default };