@oneclick.dev/cms-core-modules 0.0.52 → 0.0.54
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/CalendarDate-CRT2Viyt.mjs +830 -0
- package/dist/CalendarDate-CWtpXgpD.js +1 -0
- package/dist/Components-D9yIIosM.mjs +623 -0
- package/dist/Components-DXbx0RLV.js +1 -0
- package/dist/ContentEditor-DRJFQKCv.mjs +34915 -0
- package/dist/ContentEditor-DzTi8fSZ.js +290 -0
- package/dist/Create-BP8TX6rj.js +1 -0
- package/dist/Create-Bwf1RXdG.mjs +1248 -0
- package/dist/DateFormatter-BbcSwTs4.js +1 -0
- package/dist/DateFormatter-CbO0PVUK.mjs +99 -0
- package/dist/Detail-B-PnkcXD.mjs +3473 -0
- package/dist/Detail-BVlGSjOq.mjs +380 -0
- package/dist/Detail-C4E1T87K.mjs +26 -0
- package/dist/Detail-CNfTDUE5.js +1 -0
- package/dist/Detail-Cd5CBVN0.js +1 -0
- package/dist/Detail-CpfOQChd.mjs +585 -0
- package/dist/Detail-CwagT6gQ.mjs +650 -0
- package/dist/Detail-DUo6qKqO.js +1 -0
- package/dist/Detail-Dd_OkpcN.js +1 -0
- package/dist/Detail-mvSGbnFU.js +1 -0
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-BWuKVkvV.js +1 -0
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-D0-EcU0_.mjs +55 -0
- package/dist/Entries-DcpPvlYj.js +1 -0
- package/dist/Entries-QLMtTYLX.mjs +713 -0
- package/dist/Find-BPR0uU-Z.mjs +229 -0
- package/dist/Find-BidEQJxT.js +1 -0
- package/dist/GlobalStyling-CMzPRd18.js +17 -0
- package/dist/GlobalStyling-DoLHUJeV.mjs +988 -0
- package/dist/Overview-BDlBCUI_.js +1 -0
- package/dist/Overview-BH3NwvNX.mjs +26 -0
- package/dist/Overview-BLsZMHNW.mjs +178 -0
- package/dist/Overview-BNMZ9MUK.js +1 -0
- package/dist/Overview-BbvfH1u-.js +1 -0
- package/dist/Overview-CDN88OSM.mjs +190 -0
- package/dist/Overview-CEPodGCn.mjs +311 -0
- package/dist/Overview-CvquDPhB.js +1 -0
- package/dist/Overview-D54pjmI6.mjs +633 -0
- package/dist/Overview-D67UjG6n.mjs +947 -0
- package/dist/Overview-KT2Mgfh5.js +1 -0
- package/dist/Overview-T-lsy3UZ.js +1 -0
- package/dist/RegularSlotEditor.vue_vue_type_script_setup_true_lang-0xZSq0rx.js +1 -0
- package/dist/RegularSlotEditor.vue_vue_type_script_setup_true_lang-Bj_PVLLV.mjs +392 -0
- package/dist/TableView-CpO53xcX.js +111 -0
- package/dist/TableView-D9J5rUls.mjs +72921 -0
- package/dist/TemplateList.vue_vue_type_script_setup_true_lang-B_AtWnHa.js +1 -0
- package/dist/TemplateList.vue_vue_type_script_setup_true_lang-BiLAkhIA.mjs +40 -0
- package/dist/View-DlHBZbFu.js +1 -0
- package/dist/View-Dv5QMrSn.mjs +25 -0
- package/dist/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/agenda-B49oKGeh.mjs +706 -0
- package/dist/agenda-DipQ5IWP.js +1 -0
- package/dist/availability-C7q9tq6l.js +1 -0
- package/dist/availability-DeCkqiu8.mjs +613 -0
- package/dist/cms-core-modules.css +1 -1
- package/dist/countries-BTPvmrsb.mjs +4 -0
- package/dist/countries-CgZ081No.js +1 -0
- package/dist/exceptions-D3b18TiY.mjs +647 -0
- package/dist/exceptions-DJ9zWX3k.js +1 -0
- package/dist/floating-ui.dom-C82nbomj.js +1 -0
- package/dist/floating-ui.dom-ouSgPqty.mjs +1133 -0
- package/dist/google-CvtuJwgk.mjs +4 -0
- package/dist/google-D4N3gb01.js +1 -0
- package/dist/index--jjEzba7.mjs +24 -0
- package/dist/index-9HVlmvK3.js +1 -0
- package/dist/index-BEGU8Kme.mjs +12 -0
- package/dist/index-Bwi1mtkq.mjs +24 -0
- package/dist/index-BzuHN-r8.mjs +24 -0
- package/dist/index-CImCyE3L.mjs +24 -0
- package/dist/index-CKPshlZ8-BQiiP6r_.mjs +1264 -0
- package/dist/index-CKPshlZ8-CIz1tDwX.js +1 -0
- package/dist/index-CQiY-oTN.mjs +24 -0
- package/dist/index-CSxYBeVA.js +1 -0
- package/dist/index-CkiNvRzs.js +1 -0
- package/dist/index-Co4ON2Di.js +1 -0
- package/dist/index-CwqrAU-H.js +1 -0
- package/dist/index-Cz-baGax.js +1 -0
- package/dist/index-D2a6wEPh.js +1 -0
- package/dist/index-DFQGVHTs.js +1 -0
- package/dist/index-DI6mydpm.mjs +138 -0
- package/dist/index-DMoyoaks.mjs +22 -0
- package/dist/index-DT1wWnUk.mjs +24 -0
- package/dist/index-DUeFrD-B.js +1 -0
- package/dist/index-DsnoK4ia.mjs +579 -0
- package/dist/index-R2oUDsjx.js +1 -0
- package/dist/index-RLz1QPrf.mjs +203 -0
- package/dist/index-UtjLbLw-.js +1 -0
- package/dist/index-_mG-aU3Z.mjs +87 -0
- package/dist/index-_sQDF1pH.js +1 -0
- package/dist/index-ijdf0d9-.js +1 -0
- package/dist/index-klI238nT.mjs +24 -0
- package/dist/index.cjs.js +1 -357
- package/dist/index.mjs +287 -69281
- package/dist/interpolation-BNUjI7LH.js +1 -0
- package/dist/interpolation-BpGXqOz8.mjs +59 -0
- package/dist/payment-kTjsV0Jj.js +1 -0
- package/dist/payment-zpCM0LD-.mjs +981 -0
- package/dist/regular-C4_3YXqx.mjs +602 -0
- package/dist/regular-DFwPEbZO.js +1 -0
- package/dist/regular-slots-4ooEpICB.mjs +67 -0
- package/dist/regular-slots-BAVGbomI.js +1 -0
- package/dist/resources-MpQkSstv.mjs +563 -0
- package/dist/resources-iM28T3dD.js +1 -0
- package/dist/src/appointments/components/edit/PaymentAddons/Addon.vue.d.ts +12 -2
- package/dist/src/appointments/index.d.ts +4 -28
- package/dist/src/appointments/routes.d.ts +3 -9
- package/dist/src/content-manager/index.d.ts +5 -147
- package/dist/src/content-manager/routes.d.ts +4 -128
- package/dist/src/custom/index.d.ts +2 -2
- package/dist/src/custom/routes.d.ts +1 -1
- package/dist/src/lib/interpolation.d.ts +2 -2
- package/dist/src/mail-templates/index.d.ts +2 -30
- package/dist/src/mail-templates/routes.d.ts +1 -11
- package/dist/src/product-collections/index.d.ts +2 -30
- package/dist/src/product-collections/routes.d.ts +1 -11
- package/dist/src/products/index.d.ts +2 -30
- package/dist/src/products/routes.d.ts +1 -11
- package/dist/src/promo-codes/index.d.ts +2 -30
- package/dist/src/promo-codes/routes.d.ts +1 -11
- package/dist/src/shipping-options/index.d.ts +2 -30
- package/dist/src/shipping-options/routes.d.ts +1 -11
- package/dist/src/table/index.d.ts +2 -70
- package/dist/src/table/routes.d.ts +1 -51
- package/dist/utils-BVKy9S2J.mjs +29 -0
- package/dist/utils-D6CaKJbp.js +2 -0
- package/dist/vee-validate-zod-BPQyEfpF.js +1 -0
- package/dist/vee-validate-zod-IXkfh-6Q.mjs +4402 -0
- package/package.json +28 -29
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";let f=new Map;class l{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(e,r);if(r<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(r)}`}formatRangeToParts(e,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(e,r);if(r<e)throw new RangeError("End date must be >= start date");let u=this.formatter.formatToParts(e),t=this.formatter.formatToParts(r);return[...u.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...t.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return m()&&(this.resolvedHourCycle||(this.resolvedHourCycle=c(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),e.calendar==="ethiopic-amete-alem"&&(e.calendar="ethioaa"),e}constructor(e,r={}){this.formatter=h(e,r),this.options=r}}const i={true:{ja:"h11"},false:{}};function h(o,e={}){if(typeof e.hour12=="boolean"&&d()){e={...e};let t=i[String(e.hour12)][o.split("-")[0]],a=e.hour12?"h12":"h23";e.hourCycle=t??a,delete e.hour12}let r=o+(e?Object.entries(e).sort((t,a)=>t[0]<a[0]?-1:1).join():"");if(f.has(r))return f.get(r);let u=new Intl.DateTimeFormat(o,e);return f.set(r,u),u}let n=null;function d(){return n==null&&(n=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),n}let s=null;function m(){return s==null&&(s=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),s}function c(o,e){if(!e.timeStyle&&!e.hour)return;o=o.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),o+=(o.includes("-u-")?"":"-u")+"-nu-latn";let r=h(o,{...e,timeZone:void 0}),u=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),t=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(u===0&&t===23)return"h23";if(u===24&&t===23)return"h24";if(u===0&&t===11)return"h11";if(u===12&&t===11)return"h12";throw new Error("Unexpected hour cycle result")}exports.$fb18d541ea1ad717$export$ad991b66133851cf=l;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
let n = /* @__PURE__ */ new Map();
|
|
2
|
+
class c {
|
|
3
|
+
/** Formats a date as a string according to the locale and format options passed to the constructor. */
|
|
4
|
+
format(e) {
|
|
5
|
+
return this.formatter.format(e);
|
|
6
|
+
}
|
|
7
|
+
/** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */
|
|
8
|
+
formatToParts(e) {
|
|
9
|
+
return this.formatter.formatToParts(e);
|
|
10
|
+
}
|
|
11
|
+
/** Formats a date range as a string. */
|
|
12
|
+
formatRange(e, r) {
|
|
13
|
+
if (typeof this.formatter.formatRange == "function")
|
|
14
|
+
return this.formatter.formatRange(e, r);
|
|
15
|
+
if (r < e) throw new RangeError("End date must be >= start date");
|
|
16
|
+
return `${this.formatter.format(e)} – ${this.formatter.format(r)}`;
|
|
17
|
+
}
|
|
18
|
+
/** Formats a date range as an array of parts. */
|
|
19
|
+
formatRangeToParts(e, r) {
|
|
20
|
+
if (typeof this.formatter.formatRangeToParts == "function")
|
|
21
|
+
return this.formatter.formatRangeToParts(e, r);
|
|
22
|
+
if (r < e) throw new RangeError("End date must be >= start date");
|
|
23
|
+
let u = this.formatter.formatToParts(e), t = this.formatter.formatToParts(r);
|
|
24
|
+
return [
|
|
25
|
+
...u.map((a) => ({
|
|
26
|
+
...a,
|
|
27
|
+
source: "startRange"
|
|
28
|
+
})),
|
|
29
|
+
{
|
|
30
|
+
type: "literal",
|
|
31
|
+
value: " – ",
|
|
32
|
+
source: "shared"
|
|
33
|
+
},
|
|
34
|
+
...t.map((a) => ({
|
|
35
|
+
...a,
|
|
36
|
+
source: "endRange"
|
|
37
|
+
}))
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
/** Returns the resolved formatting options based on the values passed to the constructor. */
|
|
41
|
+
resolvedOptions() {
|
|
42
|
+
let e = this.formatter.resolvedOptions();
|
|
43
|
+
return m() && (this.resolvedHourCycle || (this.resolvedHourCycle = d(e.locale, this.options)), e.hourCycle = this.resolvedHourCycle, e.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12"), e.calendar === "ethiopic-amete-alem" && (e.calendar = "ethioaa"), e;
|
|
44
|
+
}
|
|
45
|
+
constructor(e, r = {}) {
|
|
46
|
+
this.formatter = h(e, r), this.options = r;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const l = {
|
|
50
|
+
true: {
|
|
51
|
+
// Only Japanese uses the h11 style for 12 hour time. All others use h12.
|
|
52
|
+
ja: "h11"
|
|
53
|
+
},
|
|
54
|
+
false: {}
|
|
55
|
+
};
|
|
56
|
+
function h(o, e = {}) {
|
|
57
|
+
if (typeof e.hour12 == "boolean" && i()) {
|
|
58
|
+
e = {
|
|
59
|
+
...e
|
|
60
|
+
};
|
|
61
|
+
let t = l[String(e.hour12)][o.split("-")[0]], a = e.hour12 ? "h12" : "h23";
|
|
62
|
+
e.hourCycle = t ?? a, delete e.hour12;
|
|
63
|
+
}
|
|
64
|
+
let r = o + (e ? Object.entries(e).sort((t, a) => t[0] < a[0] ? -1 : 1).join() : "");
|
|
65
|
+
if (n.has(r)) return n.get(r);
|
|
66
|
+
let u = new Intl.DateTimeFormat(o, e);
|
|
67
|
+
return n.set(r, u), u;
|
|
68
|
+
}
|
|
69
|
+
let f = null;
|
|
70
|
+
function i() {
|
|
71
|
+
return f == null && (f = new Intl.DateTimeFormat("en-US", {
|
|
72
|
+
hour: "numeric",
|
|
73
|
+
hour12: !1
|
|
74
|
+
}).format(new Date(2020, 2, 3, 0)) === "24"), f;
|
|
75
|
+
}
|
|
76
|
+
let s = null;
|
|
77
|
+
function m() {
|
|
78
|
+
return s == null && (s = new Intl.DateTimeFormat("fr", {
|
|
79
|
+
hour: "numeric",
|
|
80
|
+
hour12: !1
|
|
81
|
+
}).resolvedOptions().hourCycle === "h12"), s;
|
|
82
|
+
}
|
|
83
|
+
function d(o, e) {
|
|
84
|
+
if (!e.timeStyle && !e.hour) return;
|
|
85
|
+
o = o.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, ""), o += (o.includes("-u-") ? "" : "-u") + "-nu-latn";
|
|
86
|
+
let r = h(o, {
|
|
87
|
+
...e,
|
|
88
|
+
timeZone: void 0
|
|
89
|
+
// use local timezone
|
|
90
|
+
}), u = parseInt(r.formatToParts(new Date(2020, 2, 3, 0)).find((a) => a.type === "hour").value, 10), t = parseInt(r.formatToParts(new Date(2020, 2, 3, 23)).find((a) => a.type === "hour").value, 10);
|
|
91
|
+
if (u === 0 && t === 23) return "h23";
|
|
92
|
+
if (u === 24 && t === 23) return "h24";
|
|
93
|
+
if (u === 0 && t === 11) return "h11";
|
|
94
|
+
if (u === 12 && t === 11) return "h12";
|
|
95
|
+
throw new Error("Unexpected hour cycle result");
|
|
96
|
+
}
|
|
97
|
+
export {
|
|
98
|
+
c as $
|
|
99
|
+
};
|