@oneclick.dev/cms-core-modules 0.0.106 → 0.0.108
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.
- package/dist/Acquisition-DypEyPSO.js +1 -0
- package/dist/Acquisition-TCNX-th6.mjs +308 -0
- package/dist/AgendaOpeningHoursCard-BIhm0vpV.js +1 -0
- package/dist/AgendaOpeningHoursCard-BKUdJxRI.mjs +133 -0
- package/dist/AppointmentDetailsCard-C5rQ5jsW.js +1 -0
- package/dist/AppointmentDetailsCard-NRHeNP2L.mjs +111 -0
- package/dist/AppointmentEditor-BcF8CiD-.mjs +150 -0
- package/dist/AppointmentEditor-BlhFtoCm.js +1 -0
- package/dist/AppointmentListTable-B-ReBVtV.js +1 -0
- package/dist/AppointmentListTable-DHmy-iid.mjs +129 -0
- package/dist/Audience-CfWHjjg8.mjs +394 -0
- package/dist/Audience-Cj4TyauW.js +1 -0
- package/dist/Components-BehelN4r.js +1 -0
- package/dist/Components-CR6zukUU.mjs +468 -0
- package/dist/Content-C5Iye3t0.mjs +257 -0
- package/dist/Content-eOfBx52Y.js +1 -0
- package/dist/ContentEditor-BgL4qEeg.mjs +26835 -0
- package/dist/ContentEditor-Tlu3w0Hu.js +462 -0
- package/dist/CountryBreakdownCard-CWVyB8be.mjs +151 -0
- package/dist/CountryBreakdownCard-Db-pMiNe.js +1 -0
- package/dist/Create-B1it8S4m.js +1 -0
- package/dist/Create-DbYi0FAI.mjs +907 -0
- package/dist/DateFormatter-DLrDYkby.mjs +630 -0
- package/dist/DateFormatter-Dni0Oq8r.js +1 -0
- package/dist/Detail-D-eahJGO.mjs +21 -0
- package/dist/Detail-D0kdPPIm.mjs +2757 -0
- package/dist/Detail-DAafePYi.mjs +485 -0
- package/dist/Detail-DYpv4fYg.js +1 -0
- package/dist/Detail-Dc_ui4LM.js +1 -0
- package/dist/Detail-DccUekl_.js +1 -0
- package/dist/Detail-Dhz0V0Vf.js +1 -0
- package/dist/Detail-DjnGY0F8.mjs +282 -0
- package/dist/Detail-DplAitHg.mjs +447 -0
- package/dist/Detail-SugyeSxb.js +1 -0
- package/dist/DeviceBreakdownCard-CzxZT6To.js +1 -0
- package/dist/DeviceBreakdownCard-eEwPjzKl.mjs +115 -0
- package/dist/EditLayout-Bnz9q_jd.js +1 -0
- package/dist/EditLayout-J_DGXb8v.mjs +99 -0
- package/dist/Entries-CgpWg6fE.js +1 -0
- package/dist/Entries-CkGTXcAq.mjs +575 -0
- package/dist/Find-Bz0TNJzk.mjs +164 -0
- package/dist/Find-D-ItTXaZ.js +1 -0
- package/dist/GlobalStyling-CSQPF7o_.mjs +1162 -0
- package/dist/GlobalStyling-DabldMZh.js +15 -0
- package/dist/NewReservationDialog-BhIiY2B9.js +1 -0
- package/dist/NewReservationDialog-CN49aGcM.mjs +1002 -0
- package/dist/OrderDetailDialog-BJ01DZFe.js +1 -0
- package/dist/OrderDetailDialog-CoVQ_rzs.mjs +215 -0
- package/dist/Overview-9FMgn5hT.mjs +492 -0
- package/dist/Overview-BOOwMQ-c.mjs +636 -0
- package/dist/Overview-Biz3h60w.js +1 -0
- package/dist/Overview-C2K2ofdS.js +1 -0
- package/dist/Overview-CFHOXP9N.mjs +123 -0
- package/dist/Overview-CTJe7J5_.js +1 -0
- package/dist/Overview-Cvj2i9eW.js +1 -0
- package/dist/Overview-D2I1F8Dm.mjs +21 -0
- package/dist/Overview-DFOc9emt.mjs +345 -0
- package/dist/Overview-Dmhfb94Y.js +1 -0
- package/dist/Overview-PPzv7weG.mjs +450 -0
- package/dist/Overview-qFKcXHVF.js +1 -0
- package/dist/Overview-xkmYYTae.mjs +133 -0
- package/dist/Overview-yPsLvR2c.js +1 -0
- package/dist/PeakHoursCard-CtgEP-ez.mjs +157 -0
- package/dist/PeakHoursCard-DPeoMyhu.js +1 -0
- package/dist/ProductDetailsCard-B0WhmzO-.mjs +98 -0
- package/dist/ProductDetailsCard-C1ROuH6l.js +1 -0
- package/dist/RealtimeCard-DQno-Okz.js +1 -0
- package/dist/RealtimeCard-dR-g1iDo.mjs +92 -0
- package/dist/ReservationDetailDialog-Cdo6h0RD.mjs +2163 -0
- package/dist/ReservationDetailDialog-DZTFD2xI.js +349 -0
- package/dist/SearchTermsCard-BXJSXz_k.js +1 -0
- package/dist/SearchTermsCard-DsaxLKwP.mjs +146 -0
- package/dist/SendPush-Bssi-OZD.mjs +150 -0
- package/dist/SendPush-BuaYboRH.js +1 -0
- package/dist/SeoHealth-CP-kL0us.js +1 -0
- package/dist/SeoHealth-Cxp_Gb3Y.mjs +459 -0
- package/dist/TableView-7iwBkQ_k.mjs +4757 -0
- package/dist/TableView-BB_oIYYZ.js +4 -0
- package/dist/TemplateList-CNcM_Kgq.mjs +56 -0
- package/dist/TemplateList-VuPcBUJO.js +1 -0
- package/dist/TopPagesCard-CvDECn3_.mjs +117 -0
- package/dist/TopPagesCard-DNdATXJE.js +1 -0
- package/dist/TrafficSourcesCard-BLpBr7u0.mjs +151 -0
- package/dist/TrafficSourcesCard-_3gRUCw3.js +1 -0
- package/dist/View-DSnUHI7h.mjs +30 -0
- package/dist/View-Dbcfpdqh.js +1 -0
- package/dist/VisitorStatsCard-CFEnXSjF.mjs +185 -0
- package/dist/VisitorStatsCard-C_jhQxDW.js +1 -0
- package/dist/_plugin-vue_export-helper-5u7tqpWC.js +1 -0
- package/dist/_plugin-vue_export-helper-BJQSo0im.mjs +8 -0
- package/dist/agenda-CzMRcQTA.mjs +989 -0
- package/dist/agenda-D4zWRYSQ.js +1 -0
- package/dist/appointments-9syR5TZE.js +1 -0
- package/dist/appointments-BBmOJMhM.mjs +23 -0
- package/dist/array-BH1uH7XT.js +1 -0
- package/dist/array-DnDL9cFz.mjs +98 -0
- package/dist/availability-CAXB7Yd6.js +1 -0
- package/dist/availability-Dp7eF-ZK.mjs +215 -0
- package/dist/booking-data-Bysf6e5x.mjs +724 -0
- package/dist/booking-data-C6SGjC2X.js +1 -0
- package/dist/chunk-DQi1bQcV.js +1 -0
- package/dist/cms-core-modules.css +2 -1
- package/dist/contentManager-D7JxXCwE.js +1 -0
- package/dist/contentManager-tfy0x1LD.mjs +22 -0
- package/dist/context-AQKfnJ4t.mjs +3809 -0
- package/dist/context-ubyMq9Xe.js +54 -0
- package/dist/core-Dhgr4ctC.mjs +202 -0
- package/dist/core-_HKfBlaZ.js +1 -0
- package/dist/countries-MXLT3mVe.mjs +4 -0
- package/dist/countries-OCd5qPxG.js +1 -0
- package/dist/create-BfNc2C7N.js +1 -0
- package/dist/create-C7JlIlIh.mjs +95 -0
- package/dist/custom-BwN9-6Mb.js +1 -0
- package/dist/custom-INNwaWla.mjs +13 -0
- package/dist/dist-BCVg7FKM.js +1 -0
- package/dist/dist-DIhK9VWh.mjs +3045 -0
- package/dist/edit-BiI2VG60.js +35 -0
- package/dist/edit-DD3iFBEh.mjs +1097 -0
- package/dist/exceptions-DICMaDcH.mjs +462 -0
- package/dist/exceptions-DpWqMNuG.js +1 -0
- package/dist/google-Bcc4XZnV.mjs +4 -0
- package/dist/google-DTSRmJ51.js +1 -0
- package/dist/googleAnalytics-BSaqRR_L.js +1 -0
- package/dist/googleAnalytics-Cg-iWblZ.mjs +47 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +1095 -806
- package/dist/interpolation-B8OzkMyi.mjs +131 -0
- package/dist/interpolation-DpAqtGOW.js +1 -0
- package/dist/lib-4wSi00Vr.js +1 -0
- package/dist/lib-BZgXUui5.mjs +198 -0
- package/dist/line-DJdnFNI7.js +75 -0
- package/dist/line-tYLnEDGV.mjs +1500 -0
- package/dist/mailTemplates-BNk8fhVS.mjs +23 -0
- package/dist/mailTemplates-DswHzyQe.js +1 -0
- package/dist/orders-CIc0JlKX.mjs +512 -0
- package/dist/orders-DwPSi_pD.js +1 -0
- package/dist/payment-BsNWFaDm.js +1 -0
- package/dist/payment-Ced5_dpa.mjs +718 -0
- package/dist/productCollections-Cuvw_8zC.js +1 -0
- package/dist/productCollections-D0AxRlzr.mjs +23 -0
- package/dist/products-DUD-ZMkR.mjs +22 -0
- package/dist/products-DvX9B-Ul.js +1 -0
- package/dist/promoCodes-BCWqN6w4.mjs +23 -0
- package/dist/promoCodes-CEZ4LYot.js +1 -0
- package/dist/push-notifications-BGp4XWo9.js +1 -0
- package/dist/push-notifications-C7W7KuzR.mjs +23 -0
- package/dist/regular-BCFrS6lK.mjs +908 -0
- package/dist/regular-DBqPgT8C.js +1 -0
- package/dist/resources-DwsMmWgm.mjs +669 -0
- package/dist/resources-Dz81GkHe.js +1 -0
- package/dist/server-handlers.cjs.js +1 -1
- package/dist/server-handlers.mjs +1049 -996
- package/dist/shippingOptions-C3NEJff1.mjs +23 -0
- package/dist/shippingOptions-Cy040ZW1.js +1 -0
- package/dist/single-container-BJmmqq65.mjs +468 -0
- package/dist/single-container-Xoo0Xzxv.js +58 -0
- package/dist/src/appointments/index.d.ts +9 -12
- package/dist/src/appointments/metadata.d.ts +1 -1
- package/dist/src/appointments/routes.d.ts +3 -6
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/LockBlocks.d.ts +15 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/TrailingNodeInContainers.d.ts +4 -1
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +12 -132
- package/dist/src/contentManager/index.d.ts +5 -14
- package/dist/src/contentManager/metadata.d.ts +1 -1
- package/dist/src/contentManager/routes.d.ts +3 -12
- package/dist/src/custom/index.d.ts +2 -2
- package/dist/src/custom/routes.d.ts +1 -1
- package/dist/src/googleAnalytics/index.d.ts +10 -10
- package/dist/src/googleAnalytics/routes.d.ts +1 -1
- package/dist/src/mailTemplates/index.d.ts +3 -3
- package/dist/src/mailTemplates/metadata.d.ts +1 -1
- package/dist/src/mailTemplates/routes.d.ts +1 -1
- package/dist/src/productCollections/index.d.ts +3 -3
- package/dist/src/productCollections/metadata.d.ts +1 -1
- package/dist/src/productCollections/routes.d.ts +1 -1
- package/dist/src/products/index.d.ts +4 -4
- package/dist/src/products/metadata.d.ts +1 -1
- package/dist/src/products/routes.d.ts +1 -1
- package/dist/src/promoCodes/index.d.ts +3 -3
- package/dist/src/promoCodes/metadata.d.ts +1 -1
- package/dist/src/promoCodes/routes.d.ts +1 -1
- package/dist/src/push-notifications/index.d.ts +3 -3
- package/dist/src/push-notifications/metadata.d.ts +1 -1
- package/dist/src/push-notifications/routes.d.ts +1 -1
- package/dist/src/shippingOptions/index.d.ts +3 -3
- package/dist/src/shippingOptions/metadata.d.ts +1 -1
- package/dist/src/shippingOptions/routes.d.ts +1 -1
- package/dist/src/table/flow-builder-extensions/row-item.d.ts +3 -17
- package/dist/src/table/index.d.ts +2 -2
- package/dist/src/table/routes.d.ts +1 -1
- package/dist/src/types/index.d.ts +6 -0
- package/dist/src/vue-shim.d.ts +7 -0
- package/dist/table-DWw0fs3S.js +1 -0
- package/dist/table-LXt5DQOL.mjs +23 -0
- package/dist/utils-CVIHqQsU.js +3 -0
- package/dist/utils-h3owcMtS.mjs +37 -0
- package/dist/vee-validate-zod-BmXMJo8W.js +1 -0
- package/dist/vee-validate-zod-D9dZzbWZ.mjs +4985 -0
- package/dist/xy-container-CuQSwrtB.mjs +3180 -0
- package/dist/xy-container-_6YpscZh.js +158 -0
- package/package.json +55 -55
- package/dist/Acquisition-B2pM5vSp.mjs +0 -400
- package/dist/Acquisition-Dt2rREU8.js +0 -1
- package/dist/AgendaOpeningHoursCard-B7ROIPWw.js +0 -1
- package/dist/AgendaOpeningHoursCard-Cp4wxUeK.mjs +0 -172
- package/dist/AppointmentDetailsCard-33WpATpV.mjs +0 -161
- package/dist/AppointmentDetailsCard-DpLM5IrB.js +0 -1
- package/dist/AppointmentEditor-BeOtYV6u.mjs +0 -196
- package/dist/AppointmentEditor-CaTfbkIf.js +0 -1
- package/dist/AppointmentListTable-DZJNmTMb.mjs +0 -177
- package/dist/AppointmentListTable-Dieu9US_.js +0 -1
- package/dist/Audience-Bs7b0TNm.js +0 -1
- package/dist/Audience-VLnUsQvW.mjs +0 -489
- package/dist/Components-C83O-xlF.mjs +0 -623
- package/dist/Components-DXbx0RLV.js +0 -1
- package/dist/Content-BHr_rPVY.js +0 -1
- package/dist/Content-CYOZKvWK.mjs +0 -358
- package/dist/ContentEditor-BNLEv-qJ.mjs +0 -30697
- package/dist/ContentEditor-BUvvqfG1.js +0 -462
- package/dist/CountryBreakdownCard-D7BK3nRD.js +0 -1
- package/dist/CountryBreakdownCard-DVxNz2DJ.mjs +0 -196
- package/dist/Create-89z41K73.js +0 -1
- package/dist/Create-Cn_Eufga.mjs +0 -1251
- package/dist/DateFormatter-Bw-87W31.mjs +0 -734
- package/dist/DateFormatter-CYAD4GBN.js +0 -1
- package/dist/Detail-Byk781b4.mjs +0 -26
- package/dist/Detail-C1Blq61w.mjs +0 -585
- package/dist/Detail-C857g62L.js +0 -1
- package/dist/Detail-C8wQiDcv.js +0 -1
- package/dist/Detail-CPqug27l.js +0 -1
- package/dist/Detail-CjuhjPby.js +0 -1
- package/dist/Detail-CtItxMX4.mjs +0 -649
- package/dist/Detail-CujdFApD.mjs +0 -379
- package/dist/Detail-Dnpnmy4-.mjs +0 -3477
- package/dist/Detail-mvSGbnFU.js +0 -1
- package/dist/DeviceBreakdownCard-DRhQ9ufG.js +0 -1
- package/dist/DeviceBreakdownCard-W1frLe0L.mjs +0 -159
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +0 -76
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +0 -1
- package/dist/Entries-BdhUyJR5.mjs +0 -728
- package/dist/Entries-CEXM_SkO.js +0 -1
- package/dist/Find-B24ZEhYM.mjs +0 -229
- package/dist/Find-D4Qa45qC.js +0 -1
- package/dist/GlobalStyling-C9VthHWK.mjs +0 -1588
- package/dist/GlobalStyling-CnSlXkZc.js +0 -25
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +0 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-DMGcRmm-.mjs +0 -1255
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +0 -1
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +0 -330
- package/dist/Overview-3HWhsqaz.mjs +0 -860
- package/dist/Overview-BCpJNiEB.mjs +0 -190
- package/dist/Overview-BDlBCUI_.js +0 -1
- package/dist/Overview-BbvfH1u-.js +0 -1
- package/dist/Overview-Bn1Xx3_j.js +0 -1
- package/dist/Overview-CIa1E-HH.mjs +0 -178
- package/dist/Overview-DAxCu9XC.js +0 -1
- package/dist/Overview-DC9io1bk.js +0 -1
- package/dist/Overview-Di84CsR5.mjs +0 -476
- package/dist/Overview-Su8ZUbMs.mjs +0 -26
- package/dist/Overview-T-lsy3UZ.js +0 -1
- package/dist/Overview-UoZHUMUz.js +0 -1
- package/dist/Overview-ejh4vUMT.mjs +0 -567
- package/dist/Overview-lWAyyenp.mjs +0 -632
- package/dist/PeakHoursCard-9-EZFZLR.mjs +0 -182
- package/dist/PeakHoursCard-BR5zmta4.js +0 -1
- package/dist/ProductDetailsCard-6nHikw4V.mjs +0 -121
- package/dist/ProductDetailsCard-Bn7qrgmc.js +0 -1
- package/dist/RealtimeCard--APfRNc8.js +0 -1
- package/dist/RealtimeCard-fvQlJcM7.mjs +0 -126
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +0 -349
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +0 -3077
- package/dist/SearchTermsCard-BsB-63aH.js +0 -1
- package/dist/SearchTermsCard-BzVrHKqQ.mjs +0 -201
- package/dist/SendPush-COns44j7.js +0 -1
- package/dist/SendPush-CPIOjVX4.mjs +0 -184
- package/dist/SeoHealth-DsbVdd2l.mjs +0 -615
- package/dist/SeoHealth-az1YuNF2.js +0 -1
- package/dist/TableView-Bm6HaRHm.mjs +0 -6143
- package/dist/TableView-DQW0A1oG.js +0 -4
- package/dist/TemplateList.vue_vue_type_script_setup_true_lang-B_AtWnHa.js +0 -1
- package/dist/TemplateList.vue_vue_type_script_setup_true_lang-Cmovy7kk.mjs +0 -40
- package/dist/TopPagesCard-BDeA997A.js +0 -1
- package/dist/TopPagesCard-CTozhOr_.mjs +0 -159
- package/dist/TrafficSourcesCard-BxtCKsqx.mjs +0 -197
- package/dist/TrafficSourcesCard-C3ziDTUL.js +0 -1
- package/dist/View-CsudjxCE.mjs +0 -30
- package/dist/View-Dw_wA6kK.js +0 -1
- package/dist/VisitorStatsCard-BmByE_Hi.js +0 -1
- package/dist/VisitorStatsCard-CXizEbVK.mjs +0 -174
- package/dist/_plugin-vue_export-helper-BHFhmbuH.js +0 -1
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +0 -9
- package/dist/agenda-IOqtALWf.js +0 -1
- package/dist/agenda-neyeLWv-.mjs +0 -1165
- package/dist/array-CbATeQbk.js +0 -1
- package/dist/array-CvmZXzxF.mjs +0 -108
- package/dist/availability-CMrRa5y2.mjs +0 -269
- package/dist/availability-Cf2YfMwM.js +0 -1
- package/dist/booking-data-DgJd0BcM.mjs +0 -889
- package/dist/booking-data-Di5GmH_8.js +0 -1
- package/dist/countries-BTPvmrsb.mjs +0 -4
- package/dist/countries-CgZ081No.js +0 -1
- package/dist/exceptions-CI0B4xVj.js +0 -1
- package/dist/exceptions-vo8SA5SE.mjs +0 -646
- package/dist/google-CvtuJwgk.mjs +0 -4
- package/dist/google-D4N3gb01.js +0 -1
- package/dist/index-4tjmIans.js +0 -1
- package/dist/index-9HVlmvK3.js +0 -1
- package/dist/index-A2kp8Isi.js +0 -75
- package/dist/index-B5aBwdxY.js +0 -54
- package/dist/index-BRdCrvcz.mjs +0 -1443
- package/dist/index-BWDwEd8D.mjs +0 -24
- package/dist/index-BfBBm9uY.mjs +0 -24
- package/dist/index-BiT55eU0.js +0 -58
- package/dist/index-Bkq58CeQ.mjs +0 -22
- package/dist/index-Bvxc5xv_.mjs +0 -3843
- package/dist/index-CJQQBRLY.js +0 -1
- package/dist/index-CQkOH2_3.mjs +0 -24
- package/dist/index-CSxYBeVA.js +0 -1
- package/dist/index-CU-tbS5W.mjs +0 -24
- package/dist/index-CZn2nDLv.mjs +0 -34
- package/dist/index-CkiNvRzs.js +0 -1
- package/dist/index-Co4ON2Di.js +0 -1
- package/dist/index-Cpnn_Pxd.mjs +0 -24
- package/dist/index-CrgzoTyR.mjs +0 -110
- package/dist/index-CsVeM3PA.mjs +0 -24
- package/dist/index-CwqrAU-H.js +0 -1
- package/dist/index-CxETuRsG.js +0 -1
- package/dist/index-Cz-baGax.js +0 -1
- package/dist/index-DFQGVHTs.js +0 -1
- package/dist/index-DPd3waTN.js +0 -1
- package/dist/index-DRqJOqUR.mjs +0 -3484
- package/dist/index-DjWuIBxh.js +0 -1
- package/dist/index-Dnn2SCSl.js +0 -1
- package/dist/index-Dpl9sU6a.mjs +0 -12
- package/dist/index-DrXxXB2F.mjs +0 -138
- package/dist/index-G7cIlnGN.js +0 -158
- package/dist/index-MYWjg0zi.mjs +0 -176
- package/dist/index-R2oUDsjx.js +0 -1
- package/dist/index-RLz1QPrf.mjs +0 -203
- package/dist/index-UtjLbLw-.js +0 -1
- package/dist/index-X6LV64jK.mjs +0 -442
- package/dist/index-cOnxXTbF.mjs +0 -24
- package/dist/index-hlylYYgy.mjs +0 -24
- package/dist/index-ijdf0d9-.js +0 -1
- package/dist/index-uOkqO74I.mjs +0 -2940
- package/dist/index-unsDfNYv.mjs +0 -1187
- package/dist/index-vHmvbEwa.js +0 -35
- package/dist/interpolation-CHn59tIC.js +0 -1
- package/dist/interpolation-w7IRDJwK.mjs +0 -180
- package/dist/orders-C65SlpJy.mjs +0 -618
- package/dist/orders-XVzWAgG1.js +0 -1
- package/dist/payment-C3ohkehF.mjs +0 -1080
- package/dist/payment-Dfr-Ro-a.js +0 -1
- package/dist/regular-1LXNPviB.js +0 -1
- package/dist/regular-_05oq5Tx.mjs +0 -1101
- package/dist/resources-CxeFd57z.js +0 -1
- package/dist/resources-WI_4SO6T.mjs +0 -811
- package/dist/src/appointments/chat-components/AgendaOpeningHoursCard.vue.d.ts +0 -15
- package/dist/src/appointments/chat-components/AppointmentDetailsCard.vue.d.ts +0 -14
- package/dist/src/appointments/chat-components/AppointmentEditor.vue.d.ts +0 -14
- package/dist/src/appointments/chat-components/AppointmentListTable.vue.d.ts +0 -14
- package/dist/src/appointments/components/create/StepNavigation.vue.d.ts +0 -32
- package/dist/src/appointments/components/create/regular/Step1.vue.d.ts +0 -2
- package/dist/src/appointments/components/create/regular/Step2.vue.d.ts +0 -2
- package/dist/src/appointments/components/create/regular/Step3.vue.d.ts +0 -2
- package/dist/src/appointments/components/create/regular/Step4.vue.d.ts +0 -2
- package/dist/src/appointments/components/edit/CustomerInformationFieldEditorDialog.vue.d.ts +0 -24
- package/dist/src/appointments/components/edit/EditLayout.vue.d.ts +0 -17
- package/dist/src/appointments/components/edit/Event24hSidebar.vue.d.ts +0 -2
- package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +0 -8
- package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +0 -136
- package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +0 -8
- package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +0 -11
- package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +0 -55
- package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +0 -8
- package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +0 -87
- package/dist/src/appointments/components/edit/EventDialog/TimelineChart.vue.d.ts +0 -24
- package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +0 -4
- package/dist/src/appointments/components/edit/EventTimeIndicator.vue.d.ts +0 -12
- package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +0 -48
- package/dist/src/appointments/components/edit/EventView.vue.d.ts +0 -9
- package/dist/src/appointments/components/edit/ExceptionDialog.vue.d.ts +0 -29
- package/dist/src/appointments/components/edit/MetadataSchemaEditorDialog.vue.d.ts +0 -12
- package/dist/src/appointments/components/edit/NewReservationDialog/CustomerInformation.vue.d.ts +0 -10
- package/dist/src/appointments/components/edit/NewReservationDialog/NewReservationDialog.vue.d.ts +0 -26
- package/dist/src/appointments/components/edit/NewReservationDialog/QuickReservationAdder.vue.d.ts +0 -26
- package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +0 -31
- package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +0 -21
- package/dist/src/appointments/components/edit/PaymentAddons/Addon.vue.d.ts +0 -22
- package/dist/src/appointments/components/edit/PaymentAddons/AddonList.vue.d.ts +0 -5
- package/dist/src/appointments/components/edit/PaymentAddons/index.vue.d.ts +0 -15
- package/dist/src/appointments/components/edit/ResourceEditorDialog.vue.d.ts +0 -13
- package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +0 -36
- package/dist/src/appointments/components/edit/dashboard/timeline/ResourceSelector.vue.d.ts +0 -50
- package/dist/src/appointments/index.vue.d.ts +0 -22
- package/dist/src/appointments/pages/Overview.vue.d.ts +0 -4
- package/dist/src/appointments/pages/create/index.vue.d.ts +0 -2
- package/dist/src/appointments/pages/create/regular.vue.d.ts +0 -6
- package/dist/src/appointments/pages/edit/agenda.vue.d.ts +0 -4
- package/dist/src/appointments/pages/edit/availability.vue.d.ts +0 -2
- package/dist/src/appointments/pages/edit/booking-data.vue.d.ts +0 -65
- package/dist/src/appointments/pages/edit/index.vue.d.ts +0 -2
- package/dist/src/appointments/pages/edit/payment.vue.d.ts +0 -2
- package/dist/src/appointments/pages/edit/resources.vue.d.ts +0 -28
- package/dist/src/contentManager/components/components/ComponentDialog.vue.d.ts +0 -12
- package/dist/src/contentManager/components/components/ComponentGridItem.vue.d.ts +0 -16
- package/dist/src/contentManager/components/content-editor/ApiDocs.vue.d.ts +0 -2
- package/dist/src/contentManager/components/content-editor/ContentLayout.vue.d.ts +0 -49
- package/dist/src/contentManager/components/content-editor/ContentSettings.vue.d.ts +0 -24
- package/dist/src/contentManager/components/content-editor/ContentStructuredContentSections.vue.d.ts +0 -4
- package/dist/src/contentManager/components/content-editor/Header.vue.d.ts +0 -64
- package/dist/src/contentManager/components/content-editor/LivePreviewWrapper.vue.d.ts +0 -53
- package/dist/src/contentManager/components/content-editor/Locales.vue.d.ts +0 -44
- package/dist/src/contentManager/components/content-editor/NewSectionDialog.vue.d.ts +0 -21
- package/dist/src/contentManager/components/content-editor/PageSettings.vue.d.ts +0 -2
- package/dist/src/contentManager/components/content-editor/SEO.vue.d.ts +0 -14
- package/dist/src/contentManager/components/content-editor/SidebarSectionWrapper.vue.d.ts +0 -39
- package/dist/src/contentManager/components/content-editor/Status.vue.d.ts +0 -2
- package/dist/src/contentManager/components/content-editor/Versions.vue.d.ts +0 -63
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Button.vue.d.ts +0 -94
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Card.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Column.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Container.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Divider.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/EmptySpace.vue.d.ts +0 -94
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Heading.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Image.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Map.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Paragraph.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Row.vue.d.ts +0 -115
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Stack.vue.d.ts +0 -115
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Video.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/extension-details/DetailsNodeView.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/NodeLabel.vue.d.ts +0 -108
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/ResizeHandlers.vue.d.ts +0 -20
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/TopMarginDragger.vue.d.ts +0 -104
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuClassBuilder.vue.d.ts +0 -19
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuLinkBuilder.vue.d.ts +0 -19
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuToggleButton.vue.d.ts +0 -29
- package/dist/src/contentManager/components/content-editor/tiptap-menus/DefaultBubbleMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +0 -19
- package/dist/src/contentManager/components/content-editor/tiptap-menus/EmojiMenu.vue.d.ts +0 -8
- package/dist/src/contentManager/components/content-editor/tiptap-menus/NewNodeView.vue.d.ts +0 -47
- package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenu.vue.d.ts +0 -6
- package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenuButton.vue.d.ts +0 -17
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ButtonMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/CardMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ColumnMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/DividerMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/EmptySpaceMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/HeadingMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ImageMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/MapMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/RowMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/StackMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TextMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/VideoMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/overview/CollectionDialog.vue.d.ts +0 -30
- package/dist/src/contentManager/components/overview/CollectionsGridView.vue.d.ts +0 -18
- package/dist/src/contentManager/components/overview/ContentEntryContextMenu.vue.d.ts +0 -27
- package/dist/src/contentManager/components/overview/FilterPopover.vue.d.ts +0 -2
- package/dist/src/contentManager/components/overview/ListView.vue.d.ts +0 -12
- package/dist/src/contentManager/components/styling/ButtonStyleDialog.vue.d.ts +0 -24
- package/dist/src/contentManager/components/styling/CardStyleDialog.vue.d.ts +0 -24
- package/dist/src/contentManager/components/styling/SectionStyleDialog.vue.d.ts +0 -24
- package/dist/src/contentManager/index.vue.d.ts +0 -22
- package/dist/src/contentManager/pages/Components.vue.d.ts +0 -27
- package/dist/src/contentManager/pages/ContentEditor.vue.d.ts +0 -14
- package/dist/src/contentManager/pages/Entries.vue.d.ts +0 -16
- package/dist/src/contentManager/pages/GlobalStyling.vue.d.ts +0 -117
- package/dist/src/contentManager/pages/Overview.vue.d.ts +0 -57
- package/dist/src/custom/index.vue.d.ts +0 -2
- package/dist/src/custom/pages/View.vue.d.ts +0 -2
- package/dist/src/googleAnalytics/chat-components/CountryBreakdownCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/chat-components/DeviceBreakdownCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/chat-components/PeakHoursCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/chat-components/RealtimeCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/chat-components/SearchTermsCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/chat-components/TopPagesCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/chat-components/TrafficSourcesCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/chat-components/VisitorStatsCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/components/seo-health/SeoClicksChart.vue.d.ts +0 -5
- package/dist/src/googleAnalytics/components/seo-health/SeoImpressionsChart.vue.d.ts +0 -5
- package/dist/src/googleAnalytics/components/seo-health/SeoKeywordsTab.vue.d.ts +0 -5
- package/dist/src/googleAnalytics/components/seo-health/SeoKpiCards.vue.d.ts +0 -10
- package/dist/src/googleAnalytics/components/seo-health/SeoMappingTab.vue.d.ts +0 -5
- package/dist/src/googleAnalytics/components/seo-health/SeoPagesTab.vue.d.ts +0 -5
- package/dist/src/googleAnalytics/components/seo-health/SeoRankingDistribution.vue.d.ts +0 -5
- package/dist/src/googleAnalytics/index.vue.d.ts +0 -2
- package/dist/src/googleAnalytics/pages/Acquisition.vue.d.ts +0 -2
- package/dist/src/googleAnalytics/pages/Audience.vue.d.ts +0 -2
- package/dist/src/googleAnalytics/pages/Content.vue.d.ts +0 -2
- package/dist/src/googleAnalytics/pages/Overview.vue.d.ts +0 -2
- package/dist/src/googleAnalytics/pages/SeoHealth.vue.d.ts +0 -2
- package/dist/src/mailTemplates/components/TemplateList.vue.d.ts +0 -2
- package/dist/src/mailTemplates/index.vue.d.ts +0 -22
- package/dist/src/mailTemplates/pages/Detail.vue.d.ts +0 -14
- package/dist/src/mailTemplates/pages/Overview.vue.d.ts +0 -14
- package/dist/src/productCollections/components/detail/Main.vue.d.ts +0 -2
- package/dist/src/productCollections/components/detail/SEO.vue.d.ts +0 -2
- package/dist/src/productCollections/components/detail/Status.vue.d.ts +0 -2
- package/dist/src/productCollections/components/overview/ListView.vue.d.ts +0 -12
- package/dist/src/productCollections/index.vue.d.ts +0 -22
- package/dist/src/productCollections/pages/Detail.vue.d.ts +0 -14
- package/dist/src/productCollections/pages/Overview.vue.d.ts +0 -16
- package/dist/src/products/chat-components/ProductDetailsCard.vue.d.ts +0 -14
- package/dist/src/products/components/detail/Collections.vue.d.ts +0 -14
- package/dist/src/products/components/detail/Inventory.vue.d.ts +0 -2
- package/dist/src/products/components/detail/Main.vue.d.ts +0 -2
- package/dist/src/products/components/detail/NewSection.vue.d.ts +0 -2
- package/dist/src/products/components/detail/Price.vue.d.ts +0 -2
- package/dist/src/products/components/detail/SEO.vue.d.ts +0 -2
- package/dist/src/products/components/detail/Shipping.vue.d.ts +0 -2
- package/dist/src/products/components/detail/Status.vue.d.ts +0 -2
- package/dist/src/products/components/detail/price/UnitPriceDialog.vue.d.ts +0 -17
- package/dist/src/products/components/detail/variants/Option.vue.d.ts +0 -33
- package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +0 -38
- package/dist/src/products/components/overview/FilterPopover.vue.d.ts +0 -2
- package/dist/src/products/components/overview/GridView.vue.d.ts +0 -12
- package/dist/src/products/components/overview/ListView.vue.d.ts +0 -12
- package/dist/src/products/components/overview/ProductContextMenu.vue.d.ts +0 -27
- package/dist/src/products/index.vue.d.ts +0 -22
- package/dist/src/products/pages/Detail.vue.d.ts +0 -14
- package/dist/src/products/pages/Overview.vue.d.ts +0 -16
- package/dist/src/promoCodes/components/create/DateRange.vue.d.ts +0 -2
- package/dist/src/promoCodes/components/create/MultiCodes.vue.d.ts +0 -2
- package/dist/src/promoCodes/components/create/Note.vue.d.ts +0 -2
- package/dist/src/promoCodes/components/create/SingleCode.vue.d.ts +0 -2
- package/dist/src/promoCodes/components/create/TypeAndValue/TypeDetailDialog.vue.d.ts +0 -6
- package/dist/src/promoCodes/components/create/TypeAndValue/TypeManageDialog.vue.d.ts +0 -18
- package/dist/src/promoCodes/components/create/TypeAndValue/index.vue.d.ts +0 -2
- package/dist/src/promoCodes/index.vue.d.ts +0 -22
- package/dist/src/promoCodes/pages/Create.vue.d.ts +0 -16
- package/dist/src/promoCodes/pages/Detail.vue.d.ts +0 -14
- package/dist/src/promoCodes/pages/Find.vue.d.ts +0 -16
- package/dist/src/push-notifications/components/PreviewAndroid.vue.d.ts +0 -28
- package/dist/src/push-notifications/components/PreviewIPhone.vue.d.ts +0 -28
- package/dist/src/push-notifications/components/PushPreview.vue.d.ts +0 -28
- package/dist/src/push-notifications/index.vue.d.ts +0 -22
- package/dist/src/push-notifications/pages/SendPush.vue.d.ts +0 -14
- package/dist/src/shared/BrandLogo.vue.d.ts +0 -12
- package/dist/src/shared/DrawerToggle.vue.d.ts +0 -60
- package/dist/src/shared/VerticalToggle.vue.d.ts +0 -60
- package/dist/src/shippingOptions/components/detail/Condition.vue.d.ts +0 -2
- package/dist/src/shippingOptions/components/detail/Countries.vue.d.ts +0 -2
- package/dist/src/shippingOptions/components/detail/Example.vue.d.ts +0 -2
- package/dist/src/shippingOptions/components/detail/Main.vue.d.ts +0 -2
- package/dist/src/shippingOptions/components/overview/ListView.vue.d.ts +0 -12
- package/dist/src/shippingOptions/index.vue.d.ts +0 -22
- package/dist/src/shippingOptions/pages/Detail.vue.d.ts +0 -14
- package/dist/src/shippingOptions/pages/Overview.vue.d.ts +0 -16
- package/dist/src/table/components/DataTable.vue.d.ts +0 -18
- package/dist/src/table/components/DataTableAction.vue.d.ts +0 -14
- package/dist/src/table/components/DataTableMobileRowActionDrawer.vue.d.ts +0 -4
- package/dist/src/table/components/DataTablePagination.vue.d.ts +0 -6
- package/dist/src/table/components/actions/ActionDialog.vue.d.ts +0 -19
- package/dist/src/table/components/actions/CtaActionDialog.vue.d.ts +0 -4
- package/dist/src/table/components/columns/ColumnDropdown.vue.d.ts +0 -2
- package/dist/src/table/components/columns/ColumnEditorDialog.vue.d.ts +0 -34
- package/dist/src/table/components/columns/DialogTableColumnItem.vue.d.ts +0 -12
- package/dist/src/table/components/date-range-filter/DateRangeFilter.vue.d.ts +0 -2
- package/dist/src/table/components/date-range-filter/DateRangeSettingsDialog.vue.d.ts +0 -27
- package/dist/src/table/components/filters/FilterDialog.vue.d.ts +0 -12
- package/dist/src/table/components/filters/Filters.vue.d.ts +0 -27
- package/dist/src/table/components/search/Search.vue.d.ts +0 -2
- package/dist/src/table/components/sort/SortMode.vue.d.ts +0 -2
- package/dist/src/table/components/sort/SortModeSettingsDialog.vue.d.ts +0 -18
- package/dist/src/table/components/stats/StatDialog.vue.d.ts +0 -12
- package/dist/src/table/components/stats/Stats.vue.d.ts +0 -27
- package/dist/src/table/flow-builder-extensions/TableRowEditor.vue.d.ts +0 -16
- package/dist/src/table/index.vue.d.ts +0 -22
- package/dist/src/table/pages/TableView.vue.d.ts +0 -54
- package/dist/utils-CanmrIWO.mjs +0 -47
- package/dist/utils-Yd6F5mea.js +0 -3
- package/dist/vee-validate-zod-ByykgYKJ.js +0 -1
- package/dist/vee-validate-zod-CcOwoF6y.mjs +0 -4402
|
@@ -0,0 +1,1162 @@
|
|
|
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 };
|