@oneclick.dev/cms-core-modules 0.0.102 → 0.0.103
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/AgendaOpeningHoursCard-B7ROIPWw.js +1 -0
- package/dist/AgendaOpeningHoursCard-Cp4wxUeK.mjs +172 -0
- package/dist/AppointmentListTable-DZJNmTMb.mjs +177 -0
- package/dist/AppointmentListTable-Dieu9US_.js +1 -0
- package/dist/{ContentEditor-Cjqgb64R.mjs → ContentEditor-B1nfKG_5.mjs} +706 -677
- package/dist/{ContentEditor-YgOS3kxS.js → ContentEditor-DdFU8piH.js} +15 -16
- package/dist/{Create-6uT9HWar.mjs → Create-BRBh0xjM.mjs} +2 -2
- package/dist/{Create-DuZ5nZrX.js → Create-qPeQxkdl.js} +1 -1
- package/dist/{DateFormatter-2B0R-DY4.mjs → DateFormatter-Bw-87W31.mjs} +212 -227
- package/dist/DateFormatter-CYAD4GBN.js +1 -0
- package/dist/{Detail-BZ-iE9vf.js → Detail-C857g62L.js} +1 -1
- package/dist/{Detail-CJVMJDP7.mjs → Detail-CujdFApD.mjs} +2 -2
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +76 -0
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +1 -0
- package/dist/{Entries-DkRhOt95.js → Entries-BaS6H6ak.js} +1 -1
- package/dist/{Entries-dLlCrXXe.mjs → Entries-C8UJkrVC.mjs} +1 -1
- package/dist/{Find-Bd1uLqSa.mjs → Find-B24ZEhYM.mjs} +1 -1
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-Bc946oSc.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-9Q7TMm4u.mjs} +37 -37
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-CqERfyYb.js → NewReservationDialog.vue_vue_type_script_setup_true_lang-DiNzGl-q.js} +1 -1
- package/dist/{Overview-DoOASlNz.mjs → Overview-3HWhsqaz.mjs} +2 -2
- package/dist/{Overview-37nilXzE.js → Overview-CpHhuiaV.js} +1 -1
- package/dist/{Overview-DeQQ0FY3.js → Overview-DAxCu9XC.js} +1 -1
- package/dist/{Overview-C--dq51X.mjs → Overview-D_T3K6aq.mjs} +1 -1
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Cz_22Oce.mjs +2927 -0
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-DPPNc-Z5.js +349 -0
- package/dist/TableView-CPAw3h8g.js +4 -0
- package/dist/TableView-DXmEF6pY.mjs +6143 -0
- package/dist/agenda-BNG05SAq.js +1 -0
- package/dist/agenda-D1RxMxBS.mjs +1152 -0
- package/dist/availability-CMrRa5y2.mjs +269 -0
- package/dist/availability-Cf2YfMwM.js +1 -0
- package/dist/booking-data-DgJd0BcM.mjs +889 -0
- package/dist/booking-data-Di5GmH_8.js +1 -0
- package/dist/cms-core-modules.css +1 -1
- package/dist/{exceptions-Bp5BSvxO.js → exceptions-CI0B4xVj.js} +1 -1
- package/dist/{exceptions-C97cNZYl.mjs → exceptions-vo8SA5SE.mjs} +68 -68
- package/dist/index-BtujSJeg.js +35 -0
- package/dist/{index-CrGjxSwa.mjs → index-CrgzoTyR.mjs} +1 -1
- package/dist/{index-D2a6wEPh.js → index-DPd3waTN.js} +1 -1
- package/dist/{index-CABh6Qn6.mjs → index-DrXxXB2F.mjs} +15 -15
- package/dist/{index-B-lVEpFX.mjs → index-MYWjg0zi.mjs} +3 -3
- package/dist/index-dOdMm1pV.mjs +1105 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +196 -143
- package/dist/interpolation-DEDSLETn.mjs +128 -0
- package/dist/interpolation-DERg6Lwt.js +1 -0
- package/dist/orders-CzzcFQha.mjs +559 -0
- package/dist/orders-ETtbA4aQ.js +1 -0
- package/dist/{payment-Bosr0m3u.mjs → payment-C3ohkehF.mjs} +1 -1
- package/dist/{payment-DDnC03jb.js → payment-Dfr-Ro-a.js} +1 -1
- package/dist/{resources-BtF5RUUq.js → resources-CxeFd57z.js} +1 -1
- package/dist/{resources-B7qDBC91.mjs → resources-WI_4SO6T.mjs} +2 -2
- package/dist/server-handlers.cjs.js +1 -1
- package/dist/server-handlers.mjs +457 -387
- package/dist/src/appointments/chat-components/AgendaOpeningHoursCard.vue.d.ts +15 -0
- package/dist/src/appointments/components/edit/CustomerInformationFieldEditorDialog.vue.d.ts +17 -5
- package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +8 -3
- package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +1 -0
- package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +6 -3
- package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +3 -0
- package/dist/src/appointments/components/edit/EventView.vue.d.ts +6 -1
- package/dist/src/appointments/components/edit/MetadataSchemaEditorDialog.vue.d.ts +12 -0
- package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +21 -0
- package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +8 -3
- package/dist/src/appointments/index.d.ts +53 -0
- package/dist/src/appointments/pages/edit/agenda.vue.d.ts +3 -1
- package/dist/src/appointments/pages/edit/availability.vue.d.ts +1 -26
- package/dist/src/appointments/pages/edit/booking-data.vue.d.ts +65 -0
- package/dist/src/appointments/pages/edit/orders.vue.d.ts +7 -3
- package/dist/src/appointments/tools.d.ts +52 -0
- package/dist/src/appointments/types.d.ts +12 -0
- package/dist/src/table/config.d.ts +200 -0
- package/dist/src/table/get_data_flow-DEFAULT.json.d.ts +129 -0
- package/dist/src/table/index.d.ts +200 -0
- package/dist/utils-CanmrIWO.mjs +47 -0
- package/dist/utils-Yd6F5mea.js +3 -0
- package/package.json +2 -2
- package/src/appointments/tools.ts +38 -0
- package/dist/AppointmentListTable-CQ0WIXtj.js +0 -1
- package/dist/AppointmentListTable-aV_UJd6j.mjs +0 -159
- package/dist/DateFormatter-DbtOLV0L.js +0 -1
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DXa-Xxue.mjs +0 -74
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-ozYrxb2g.js +0 -1
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CL5kbDII.mjs +0 -2782
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-DcyyNvf6.js +0 -349
- package/dist/TableView-CIJs118q.mjs +0 -5929
- package/dist/TableView-DzZYf34i.js +0 -4
- package/dist/agenda-CCOjPiwP.mjs +0 -1133
- package/dist/agenda-CNPQfaIQ.js +0 -1
- package/dist/availability-B1D4Fyzi.mjs +0 -629
- package/dist/availability-DxrUcYbW.js +0 -1
- package/dist/index-BOnqrBfY.js +0 -35
- package/dist/index-Bj0qaL1N.mjs +0 -1091
- package/dist/interpolation-BBwG_ON6.mjs +0 -65
- package/dist/interpolation-CsOrww73.js +0 -1
- package/dist/orders-BJV5vRQr.mjs +0 -397
- package/dist/orders-C1C5IEIP.js +0 -1
- package/dist/regular-slots-Cc1jmKuC.mjs +0 -222
- package/dist/regular-slots-DBs1XVeN.js +0 -1
- package/dist/src/appointments/pages/edit/regular-slots.vue.d.ts +0 -2
- package/dist/utils-BVKy9S2J.mjs +0 -29
- package/dist/utils-D6CaKJbp.js +0 -2
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
function d(n, i) {
|
|
2
|
+
if (!n) return "";
|
|
3
|
+
const r = i?.reduce((t, o) => (t[o.name] = o.value, t), {}) ?? {};
|
|
4
|
+
return c(n, f(r));
|
|
5
|
+
}
|
|
6
|
+
function c(n, i, r = "text") {
|
|
7
|
+
const t = n.match(/^\s*\{\{\s*([\s\S]+?)\s*\}\}\s*$/);
|
|
8
|
+
return t && !t[1].includes("{{") && !t[1].includes("}}") ? u(t[1].trim(), i) : n.replace(/\{\{\s*([\s\S]+?)\s*\}\}/g, (o, s) => {
|
|
9
|
+
const e = u(String(s).trim(), i);
|
|
10
|
+
if (r === "js") {
|
|
11
|
+
if (e == null) return "null";
|
|
12
|
+
if (typeof e == "string") return JSON.stringify(e);
|
|
13
|
+
if (typeof e == "number" || typeof e == "boolean") return String(e);
|
|
14
|
+
try {
|
|
15
|
+
return JSON.stringify(e);
|
|
16
|
+
} catch {
|
|
17
|
+
return "null";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
if (e == null) return "";
|
|
21
|
+
if (typeof e == "string") return e;
|
|
22
|
+
if (typeof e == "number" || typeof e == "boolean") return String(e);
|
|
23
|
+
try {
|
|
24
|
+
return JSON.stringify(e);
|
|
25
|
+
} catch {
|
|
26
|
+
return String(e);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function u(n, i) {
|
|
31
|
+
if (!n) return "";
|
|
32
|
+
const r = y(n), t = { ...i };
|
|
33
|
+
for (const e of r)
|
|
34
|
+
e in t || (t[e] = void 0);
|
|
35
|
+
const o = Object.keys(t), s = Object.values(t);
|
|
36
|
+
try {
|
|
37
|
+
return new Function(...o, `'use strict'; return (${n})`)(...s);
|
|
38
|
+
} catch (e) {
|
|
39
|
+
console.warn(`Interpolation failed for expression: "${n}"`, e);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function a(n) {
|
|
44
|
+
return /^[$A-Z_][0-9A-Z_$]*$/i.test(n);
|
|
45
|
+
}
|
|
46
|
+
function f(n) {
|
|
47
|
+
const i = ["__proto__", "constructor", "prototype"], r = (t) => {
|
|
48
|
+
if (Array.isArray(t)) return t.map(r);
|
|
49
|
+
if (t && typeof t == "object") {
|
|
50
|
+
const o = {};
|
|
51
|
+
for (const s in t)
|
|
52
|
+
!i.includes(s) && a(s) && (o[s] = r(t[s]));
|
|
53
|
+
return o;
|
|
54
|
+
}
|
|
55
|
+
return t;
|
|
56
|
+
};
|
|
57
|
+
return r(n);
|
|
58
|
+
}
|
|
59
|
+
const l = /* @__PURE__ */ new Set([
|
|
60
|
+
"Number",
|
|
61
|
+
"String",
|
|
62
|
+
"Boolean",
|
|
63
|
+
"Array",
|
|
64
|
+
"Object",
|
|
65
|
+
"JSON",
|
|
66
|
+
"Math",
|
|
67
|
+
"Date",
|
|
68
|
+
"RegExp",
|
|
69
|
+
"parseInt",
|
|
70
|
+
"parseFloat",
|
|
71
|
+
"isNaN",
|
|
72
|
+
"isFinite",
|
|
73
|
+
"encodeURIComponent",
|
|
74
|
+
"decodeURIComponent",
|
|
75
|
+
"encodeURI",
|
|
76
|
+
"decodeURI",
|
|
77
|
+
"NaN",
|
|
78
|
+
"Infinity",
|
|
79
|
+
"Intl"
|
|
80
|
+
]);
|
|
81
|
+
function y(n) {
|
|
82
|
+
const i = n.match(/\b[a-zA-Z_][a-zA-Z0-9_]*\b/g) || [], r = /* @__PURE__ */ new Set([
|
|
83
|
+
"true",
|
|
84
|
+
"false",
|
|
85
|
+
"null",
|
|
86
|
+
"undefined",
|
|
87
|
+
"return",
|
|
88
|
+
"if",
|
|
89
|
+
"else",
|
|
90
|
+
"try",
|
|
91
|
+
"catch",
|
|
92
|
+
"typeof",
|
|
93
|
+
"new",
|
|
94
|
+
"delete",
|
|
95
|
+
"void",
|
|
96
|
+
"throw",
|
|
97
|
+
"in",
|
|
98
|
+
"instanceof",
|
|
99
|
+
"var",
|
|
100
|
+
"let",
|
|
101
|
+
"const",
|
|
102
|
+
"function",
|
|
103
|
+
"class",
|
|
104
|
+
"this",
|
|
105
|
+
"super",
|
|
106
|
+
"switch",
|
|
107
|
+
"case",
|
|
108
|
+
"break",
|
|
109
|
+
"continue",
|
|
110
|
+
"default",
|
|
111
|
+
"for",
|
|
112
|
+
"while",
|
|
113
|
+
"do",
|
|
114
|
+
"of",
|
|
115
|
+
"with",
|
|
116
|
+
"yield",
|
|
117
|
+
"await",
|
|
118
|
+
"async",
|
|
119
|
+
"import",
|
|
120
|
+
"export",
|
|
121
|
+
"from",
|
|
122
|
+
"debugger"
|
|
123
|
+
]);
|
|
124
|
+
return [...new Set(i.filter((t) => !r.has(t) && !l.has(t)))];
|
|
125
|
+
}
|
|
126
|
+
export {
|
|
127
|
+
d as i
|
|
128
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function c(n,i){if(!n)return"";const r=i?.reduce((t,o)=>(t[o.name]=o.value,t),{})??{};return a(n,l(r))}function a(n,i,r="text"){const t=n.match(/^\s*\{\{\s*([\s\S]+?)\s*\}\}\s*$/);return t&&!t[1].includes("{{")&&!t[1].includes("}}")?u(t[1].trim(),i):n.replace(/\{\{\s*([\s\S]+?)\s*\}\}/g,(o,s)=>{const e=u(String(s).trim(),i);if(r==="js"){if(e==null)return"null";if(typeof e=="string")return JSON.stringify(e);if(typeof e=="number"||typeof e=="boolean")return String(e);try{return JSON.stringify(e)}catch{return"null"}}if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);try{return JSON.stringify(e)}catch{return String(e)}})}function u(n,i){if(!n)return"";const r=d(n),t={...i};for(const e of r)e in t||(t[e]=void 0);const o=Object.keys(t),s=Object.values(t);try{return new Function(...o,`'use strict'; return (${n})`)(...s)}catch(e){console.warn(`Interpolation failed for expression: "${n}"`,e);return}}function f(n){return/^[$A-Z_][0-9A-Z_$]*$/i.test(n)}function l(n){const i=["__proto__","constructor","prototype"],r=t=>{if(Array.isArray(t))return t.map(r);if(t&&typeof t=="object"){const o={};for(const s in t)!i.includes(s)&&f(s)&&(o[s]=r(t[s]));return o}return t};return r(n)}const y=new Set(["Number","String","Boolean","Array","Object","JSON","Math","Date","RegExp","parseInt","parseFloat","isNaN","isFinite","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","NaN","Infinity","Intl"]);function d(n){const i=n.match(/\b[a-zA-Z_][a-zA-Z0-9_]*\b/g)||[],r=new Set(["true","false","null","undefined","return","if","else","try","catch","typeof","new","delete","void","throw","in","instanceof","var","let","const","function","class","this","super","switch","case","break","continue","default","for","while","do","of","with","yield","await","async","import","export","from","debugger"]);return[...new Set(i.filter(t=>!r.has(t)&&!y.has(t)))]}exports.interpolateTemplateFromVariableContext=c;
|