@feedmepos/mf-menu-portal 1.0.4-dev.4 → 1.0.5-dev.1
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/{App-CrpoLCjA.js → App-B2xq1U4S.js} +699 -687
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CPh1GBw9.js} +11 -10
- package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-D3CmOOPY.js → BindingTable.vue_vue_type_script_setup_true_lang-DCgMQJE-.js} +50 -46
- package/dist/Catalog-BEI73S_k.js +433 -0
- package/dist/{CatalogBinding-BNATtZEY.js → CatalogBinding-3rhuTWDD.js} +30 -29
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-BmG-xpW4.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js} +30 -29
- package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BFsRDFpj.js → CatalogEditor.vue_vue_type_script_setup_true_lang-Dc72SNpI.js} +314 -304
- package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CMyubLvP.js +127 -0
- package/dist/{Category-DMoXTsfG.js → Category-BVCdkA5K.js} +14 -13
- package/dist/{Category-DxjdQ-NN.js → Category-P5DYjIeF.js} +2 -2
- package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-B3Ts1O-9.js → CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js} +274 -262
- package/dist/{CookingGuide-DiZZDYD-.js → CookingGuide-Y-c1NLP5.js} +144 -140
- package/dist/{Group-rzfh_o6r.js → Group-D6wA3jCF.js} +2 -2
- package/dist/{Group-DFR8q-tt.js → Group-qqr5SUIc.js} +17 -15
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-DNTVfY2d.js +1996 -0
- package/dist/{Ingredient-DpjGIuH9.js → Ingredient-CJHkJZ0y.js} +94 -93
- package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CnI80Ojd.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js} +1 -1
- package/dist/{MenuSetting-DR-pDSF_.js → MenuSetting-YcEGo51l.js} +462 -446
- package/dist/{OrderPacing-JcTuweqF.js → OrderPacing-DwQU7c0Y.js} +207 -204
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-HwwJ2mGv.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-2Cdz70u-.js} +1 -2
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js +44 -0
- package/dist/PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js +12 -0
- package/dist/{Preview-BZyun5lZ.js → Preview-DLeXy5V-.js} +2 -2
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-DquqNbE1.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-D_OV9Z_4.js} +1 -1
- package/dist/{PrintRoute-CzEx2dCt.js → PrintRoute-R38w0-U2.js} +151 -150
- package/dist/{Product-CQb0n06E.js → Product-sbMCaVhM.js} +8 -7
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-DoHQeOHy.js +7826 -0
- package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D9v88xZs.js +111 -0
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-CBlDEjqF.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-DsIGLKNS.js} +17 -17
- package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-D8NQTCLx.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CEliG36Z.js} +726 -726
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-cG47Pu-6.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B3bShTjM.js} +127 -124
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-0UwUcA2L.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BzctosMW.js} +820 -807
- package/dist/{ProductInternalTools-QrBR1nFp.js → ProductInternalTools-jE3Ovo4l.js} +3 -3
- package/dist/{ProductInventoryDialog-fV38GO1a.js → ProductInventoryDialog-EDlrXupB.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Bzb3RrMg.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-LOwSpoiA.js} +1 -1
- package/dist/{ProductList.vue_vue_type_script_setup_true_lang-BwKQESr3.js → ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js} +1135 -1098
- package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-CDYcHXo1.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-C4iK-sAd.js} +1 -1
- package/dist/{Products-B8tysOAL.js → Products-DUE10OyS.js} +51 -49
- package/dist/Publish-BlMxKniP.js +1300 -0
- package/dist/{Recipe-Ddx31csF.js → Recipe-BhjPAidT.js} +83 -82
- package/dist/{Scheduler-CST5L_cw.js → Scheduler-wKG3_D1f.js} +137 -136
- package/dist/{ServingSequence-DYyEZI2S.js → ServingSequence-B26BETQs.js} +63 -61
- package/dist/Setting-DBdNl3WL.js +185 -0
- package/dist/{Subcategory-BIgjzVta.js → Subcategory-B06yMcuE.js} +147 -144
- package/dist/{Takeaway-CekhGM-m.js → Takeaway-CFATfy-6.js} +2 -2
- package/dist/{Takeaway-aXsPg4JT.js → Takeaway-DFqOtls7.js} +17 -16
- package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CUHB-g9I.js +616 -0
- package/dist/TextChip.vue_vue_type_script_setup_true_lang-YkUjMTXo.js +32 -0
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CshqYpc9.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoS4Btzj.js} +281 -308
- package/dist/{Unit-BMW8u0Us.js → Unit-B5wKBmIT.js} +90 -89
- package/dist/{Variant-CZsrYRMU.js → Variant-C5ePu0za.js} +167 -174
- package/dist/{_id_-D4swrvNa.js → _id_-HRDqt6oD.js} +3 -3
- package/dist/{app-BWwwHsWi.js → app-CxJjx2ma.js} +39 -39
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +35 -0
- package/dist/apps/mf-menu/src/components/GroupList.vue.d.ts +8 -0
- package/dist/apps/mf-menu/src/components/Product/OrderFromChip.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/Product/ProductThumbnail.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +4 -2
- package/dist/apps/mf-menu/src/components/PublishList.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/layout/MobileXScrollable.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +7 -0
- package/dist/apps/mf-menu/src/components/layout/PhoneFab.vue.d.ts +9 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{menu-compute-D7TdiHt4.js → menu-compute-CQdeCEBO.js} +19 -19
- package/dist/assets/{validate-menu-DXppWUVq.js → validate-menu-BVo4fNWG.js} +14 -14
- package/dist/mf-menu-portal.css +1 -1
- package/dist/{provide-CDmXzkhz.js → provide-BGLSDsuJ.js} +99816 -99564
- package/dist/{useActionFeedback-Dm2HDa_2.js → useActionFeedback-CElXij1W.js} +1 -1
- package/package.json +1 -1
- package/dist/Catalog-VU3HhNro.js +0 -374
- package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Bk4FqVmx.js +0 -117
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-DiN-wQXX.js +0 -1807
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js +0 -41
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +0 -7931
- package/dist/Publish-DTvOvFNa.js +0 -1337
- package/dist/Setting-Ip0pGjks.js +0 -179
- package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CaRR4_j3.js +0 -554
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as re, computed as x, ref as se, shallowRef as oe, h as j, withModifiers as ne, onUnmounted as Ue, resolveComponent as b, openBlock as s, createBlock as g, unref as l, withCtx as y, createElementBlock as m, toDisplayString as f, Fragment as V, createElementVNode as p, createVNode as o, renderList as S, createCommentVNode as F, mergeProps as $e, createTextVNode as Te } from "vue";
|
|
2
2
|
import { useI18n as Ie, formatTimeOfDay as ue } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as Me, useBreakpoints as De, components as de, FmButtonVariant as Ee } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as Ae } from "./
|
|
5
|
-
import { _ as
|
|
4
|
+
import { _ as Ae } from "./PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js";
|
|
5
|
+
import { _ as Be } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
6
|
+
import { _ as Re } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js";
|
|
6
7
|
import { _ as T } from "./vuedraggable-CBtQLb_S.js";
|
|
7
|
-
import { _ as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { b as
|
|
11
|
-
const
|
|
8
|
+
import { _ as ze } from "./PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js";
|
|
9
|
+
import { u as je } from "./useActionFeedback-CElXij1W.js";
|
|
10
|
+
import { u as Ne } from "./useEditorValidation-Ctef5Bxt.js";
|
|
11
|
+
import { b as Ge, u as Oe, a as He } from "./provide-BGLSDsuJ.js";
|
|
12
|
+
const Ke = {
|
|
12
13
|
key: 0,
|
|
13
14
|
class: "flex flex-1 justify-end"
|
|
14
|
-
},
|
|
15
|
+
}, qe = {
|
|
15
16
|
key: 0,
|
|
16
17
|
role: "alert",
|
|
17
18
|
class: "text-fm-color-typo-secondary"
|
|
18
|
-
},
|
|
19
|
+
}, Qe = { class: "flex justify-end" }, We = { class: "w-[320px] xs:w-full xs:px-16 xs:mt-8" }, Je = { class: "min-w-0 grow space-y-4" }, Xe = { class: "fm-typo-en-body-lg-600 break-words" }, Ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, Ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, el = {
|
|
19
20
|
key: 0,
|
|
20
21
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words"
|
|
21
|
-
}, el = {
|
|
22
|
-
key: 2,
|
|
23
|
-
class: "fixed right-16 bottom-[72px] z-[100]"
|
|
24
22
|
}, ll = { class: "space-y-0 py-8" }, al = {
|
|
25
23
|
key: 0,
|
|
26
|
-
class: "
|
|
24
|
+
class: "flex flex-wrap gap-8 pl-32 pt-4"
|
|
27
25
|
}, tl = {
|
|
28
26
|
key: 0,
|
|
29
27
|
class: "flex flex-col items-start gap-16 pl-32 pt-12"
|
|
@@ -36,21 +34,21 @@ const He = {
|
|
|
36
34
|
}, nl = {
|
|
37
35
|
key: 1,
|
|
38
36
|
class: "text-fm-color-typo-secondary"
|
|
39
|
-
}, ul = { class: "flex flex-1 flex-wrap items-center gap-4" }, dl = { class: "sr-only" },
|
|
37
|
+
}, ul = { class: "flex flex-1 flex-wrap items-center gap-4" }, dl = { class: "sr-only" }, rl = { class: "-mt-14" }, il = {
|
|
40
38
|
key: 0,
|
|
41
39
|
class: "space-y-8"
|
|
42
|
-
}, cl = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, ml = { class: "flex gap-8" }, pl = /* @__PURE__ */
|
|
40
|
+
}, cl = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, ml = { class: "flex gap-8" }, pl = /* @__PURE__ */ re({
|
|
43
41
|
__name: "SchedulerList",
|
|
44
42
|
props: {
|
|
45
43
|
sdk: {}
|
|
46
44
|
},
|
|
47
45
|
setup(N) {
|
|
48
|
-
const w = N, { locale: C, t: e } = Ie(), A =
|
|
46
|
+
const w = N, { locale: C, t: e } = Ie(), A = Ge(), ie = Me(), { run: G } = je(), P = Oe(w.sdk.scheduler.list), _ = x(
|
|
49
47
|
() => P.value.status === "ready" ? P.value.value : null
|
|
50
48
|
), ce = x(() => {
|
|
51
49
|
var a;
|
|
52
50
|
return ((a = _.value) == null ? void 0 : a.query) ?? "";
|
|
53
|
-
}), { breakpoints: me } = De(),
|
|
51
|
+
}), { breakpoints: me } = De(), B = x(() => me.value.xs), pe = x(() => {
|
|
54
52
|
var a;
|
|
55
53
|
return [...((a = _.value) == null ? void 0 : a.rows) ?? []];
|
|
56
54
|
}), L = se(!1), I = se(!1), u = oe(
|
|
@@ -58,14 +56,14 @@ const He = {
|
|
|
58
56
|
), U = oe(
|
|
59
57
|
u.value.get()
|
|
60
58
|
);
|
|
61
|
-
let
|
|
59
|
+
let R = u.value.subscribe(
|
|
62
60
|
(a) => {
|
|
63
61
|
U.value = a;
|
|
64
62
|
}
|
|
65
63
|
);
|
|
66
64
|
const n = x(
|
|
67
65
|
() => U.value.status === "ready" ? U.value.value : null
|
|
68
|
-
), M =
|
|
66
|
+
), M = Ne(() => u.value), O = x(
|
|
69
67
|
() => n.value ? M.issue(n.value.fieldIssues, "name") ?? n.value.nameIssue : null
|
|
70
68
|
), H = x(
|
|
71
69
|
() => n.value ? M.issue(n.value.fieldIssues, "periods") ?? n.value.periodIssue : null
|
|
@@ -94,13 +92,13 @@ const He = {
|
|
|
94
92
|
}[a];
|
|
95
93
|
}
|
|
96
94
|
function K(a) {
|
|
97
|
-
|
|
95
|
+
R(), u.value.dispose(), u.value = w.sdk.scheduler.editor(a), U.value = u.value.get(), R = u.value.subscribe(
|
|
98
96
|
(t) => {
|
|
99
97
|
U.value = t;
|
|
100
98
|
}
|
|
101
99
|
);
|
|
102
100
|
}
|
|
103
|
-
function
|
|
101
|
+
function z() {
|
|
104
102
|
var a;
|
|
105
103
|
((a = _.value) == null ? void 0 : a.create.state) === "allowed" && (K(), L.value = !0);
|
|
106
104
|
}
|
|
@@ -161,7 +159,7 @@ const He = {
|
|
|
161
159
|
)).kind === "success" && (L.value = !1);
|
|
162
160
|
}
|
|
163
161
|
function J(a) {
|
|
164
|
-
a.remove.state === "allowed" &&
|
|
162
|
+
a.remove.state === "allowed" && ie.open({
|
|
165
163
|
title: e("menu.scheduler.dialogs.remove.title"),
|
|
166
164
|
contentComponent: ve,
|
|
167
165
|
contentComponentProps: {
|
|
@@ -235,35 +233,35 @@ const He = {
|
|
|
235
233
|
}
|
|
236
234
|
]);
|
|
237
235
|
return Ue(() => {
|
|
238
|
-
|
|
236
|
+
R(), u.value.dispose(), w.sdk.scheduler.search("");
|
|
239
237
|
}), (a, t) => {
|
|
240
238
|
const k = b("FmButton"), _e = b("FmCircularProgress"), fe = b("FmSearch"), ge = b("FmTable"), Fe = b("FmListItem"), we = b("FmList"), X = b("FmTextField"), D = b("FmRadio"), Y = b("FmRadioGroup"), xe = b("FmCheckbox"), Ce = b("FmHelperText"), Z = b("FmTimePicker"), Ve = b("FmSwitch"), Le = b("FmIcon"), Se = b("FmTooltip"), ee = b("FmSelect"), Pe = b("FmSideSheet");
|
|
241
|
-
return s(), g(
|
|
239
|
+
return s(), g(ze, {
|
|
242
240
|
"data-visual-root": "scheduler",
|
|
243
241
|
heading: l(e)("menu.scheduler.title")
|
|
244
242
|
}, {
|
|
245
|
-
"append-heading":
|
|
246
|
-
_.value ? (s(),
|
|
247
|
-
_.value.totalCount > 0 && !
|
|
243
|
+
"append-heading": y(() => [
|
|
244
|
+
_.value ? (s(), m("div", Ke, [
|
|
245
|
+
_.value.totalCount > 0 && !B.value ? (s(), g(k, {
|
|
248
246
|
key: 0,
|
|
249
247
|
disabled: _.value.create.state !== "allowed",
|
|
250
248
|
label: l(e)("menu.scheduler.empty.action"),
|
|
251
249
|
"prepend-icon": "add",
|
|
252
|
-
onClick:
|
|
250
|
+
onClick: z
|
|
253
251
|
}, null, 8, ["disabled", "label"])) : F("", !0)
|
|
254
252
|
])) : F("", !0)
|
|
255
253
|
]),
|
|
256
|
-
default:
|
|
254
|
+
default: y(() => {
|
|
257
255
|
var le, ae, te;
|
|
258
256
|
return [
|
|
259
|
-
l(P).status === "error" ? (s(),
|
|
257
|
+
l(P).status === "error" ? (s(), m("p", qe, f(l(A)(l(P).error.message)), 1)) : l(P).status === "loading" ? (s(), g(_e, { key: 1 })) : _.value && _.value.totalCount === 0 ? (s(), g(l(Be), {
|
|
260
258
|
key: 2,
|
|
261
|
-
action: { text: l(e)("menu.scheduler.empty.action"), callback:
|
|
259
|
+
action: { text: l(e)("menu.scheduler.empty.action"), callback: z },
|
|
262
260
|
title: l(e)("menu.scheduler.empty.title"),
|
|
263
261
|
subtitle: l(e)("menu.scheduler.empty.subtitle")
|
|
264
|
-
}, null, 8, ["action", "title", "subtitle"])) : _.value ? (s(),
|
|
265
|
-
p("div",
|
|
266
|
-
p("div",
|
|
262
|
+
}, null, 8, ["action", "title", "subtitle"])) : _.value ? (s(), m(V, { key: 3 }, [
|
|
263
|
+
p("div", Qe, [
|
|
264
|
+
p("div", We, [
|
|
267
265
|
o(fe, {
|
|
268
266
|
autofocus: "",
|
|
269
267
|
"aria-label": l(e)("menu.scheduler.accessibility.search"),
|
|
@@ -274,44 +272,44 @@ const He = {
|
|
|
274
272
|
}, null, 8, ["aria-label", "model-value", "placeholder", "onUpdate:modelValue"])
|
|
275
273
|
])
|
|
276
274
|
]),
|
|
277
|
-
|
|
275
|
+
B.value ? (s(), g(we, {
|
|
278
276
|
key: 1,
|
|
279
277
|
class: "w-full px-16 flex-1 min-h-0 overflow-scroll pb-64",
|
|
280
278
|
separator: ""
|
|
281
279
|
}, {
|
|
282
|
-
default:
|
|
283
|
-
(s(!0),
|
|
284
|
-
key:
|
|
280
|
+
default: y(() => [
|
|
281
|
+
(s(!0), m(V, null, S(_.value.rows, (r) => (s(), g(Fe, {
|
|
282
|
+
key: r.id,
|
|
285
283
|
class: "!py-12 !px-0",
|
|
286
|
-
onClick: (
|
|
284
|
+
onClick: (c) => q(r)
|
|
287
285
|
}, {
|
|
288
|
-
default:
|
|
289
|
-
p("div",
|
|
290
|
-
p("div",
|
|
286
|
+
default: y(() => [
|
|
287
|
+
p("div", Je, [
|
|
288
|
+
p("div", Xe, f(r.name), 1),
|
|
291
289
|
p("div", null, [
|
|
292
|
-
p("div",
|
|
293
|
-
count:
|
|
290
|
+
p("div", Ye, f(l(e)("menu.common.labels.products_linked", {
|
|
291
|
+
count: r.linkedProductCount
|
|
294
292
|
})), 1),
|
|
295
|
-
p("div",
|
|
293
|
+
p("div", Ze, f(l(e)("menu.common.labels.a11y_labelled_name", {
|
|
296
294
|
label: l(e)("menu.scheduler.table.columns.repeat"),
|
|
297
|
-
name: W(
|
|
295
|
+
name: W(r)
|
|
298
296
|
})), 1),
|
|
299
|
-
|
|
297
|
+
r.periods.length > 0 ? (s(), m("div", el, f(l(e)("menu.common.labels.a11y_labelled_name", {
|
|
300
298
|
label: l(e)("menu.scheduler.table.columns.period"),
|
|
301
|
-
name: Q(
|
|
299
|
+
name: Q(r)
|
|
302
300
|
})), 1)) : F("", !0)
|
|
303
301
|
])
|
|
304
302
|
]),
|
|
305
303
|
o(k, {
|
|
306
304
|
class: "shrink-0",
|
|
307
305
|
"aria-label": l(e)("menu.scheduler.table.delete.accessibility_label", {
|
|
308
|
-
name:
|
|
306
|
+
name: r.name
|
|
309
307
|
}),
|
|
310
|
-
disabled:
|
|
308
|
+
disabled: r.remove.state !== "allowed",
|
|
311
309
|
icon: "delete",
|
|
312
310
|
"text-color": "neutral-gray-400",
|
|
313
311
|
variant: "tertiary",
|
|
314
|
-
onClick: ne((
|
|
312
|
+
onClick: ne((c) => J(r), ["stop"])
|
|
315
313
|
}, null, 8, ["aria-label", "disabled", "onClick"])
|
|
316
314
|
]),
|
|
317
315
|
_: 2
|
|
@@ -326,33 +324,36 @@ const He = {
|
|
|
326
324
|
"pin-header-row": "",
|
|
327
325
|
"row-data": pe.value,
|
|
328
326
|
"shrink-at": !1,
|
|
329
|
-
onRowClick: t[0] || (t[0] = (
|
|
327
|
+
onRowClick: t[0] || (t[0] = (r) => q(r.original))
|
|
330
328
|
}, null, 8, ["column-defs", "page-size", "row-data"])),
|
|
331
|
-
_.value.totalCount > 0 &&
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
329
|
+
_.value.totalCount > 0 && B.value ? (s(), g(Ae, { key: 2 }, {
|
|
330
|
+
default: y(() => [
|
|
331
|
+
o(k, {
|
|
332
|
+
disabled: _.value.create.state !== "allowed",
|
|
333
|
+
label: l(e)("menu.scheduler.empty.action"),
|
|
334
|
+
"prepend-icon": "add",
|
|
335
|
+
variant: "fab",
|
|
336
|
+
onClick: z
|
|
337
|
+
}, null, 8, ["disabled", "label"])
|
|
338
|
+
]),
|
|
339
|
+
_: 1
|
|
340
|
+
})) : F("", !0)
|
|
340
341
|
], 64)) : F("", !0),
|
|
341
342
|
o(Pe, {
|
|
342
343
|
modelValue: L.value,
|
|
343
|
-
"onUpdate:modelValue": t[9] || (t[9] = (
|
|
344
|
+
"onUpdate:modelValue": t[9] || (t[9] = (r) => L.value = r),
|
|
344
345
|
header: ((le = n.value) == null ? void 0 : le.mode) === "update" ? l(e)("menu.scheduler.dialog.update.title") : l(e)("menu.scheduler.dialog.add.title"),
|
|
345
346
|
"is-container": l(de).FmForm,
|
|
346
347
|
"is-container-props": { onValidationSuccess: he },
|
|
347
348
|
"max-width": 560
|
|
348
349
|
}, {
|
|
349
|
-
"side-sheet-footer":
|
|
350
|
-
var
|
|
350
|
+
"side-sheet-footer": y(() => {
|
|
351
|
+
var r, c;
|
|
351
352
|
return [
|
|
352
353
|
p("div", ml, [
|
|
353
354
|
o(k, {
|
|
354
|
-
disabled: ((
|
|
355
|
-
label: ((
|
|
355
|
+
disabled: ((r = n.value) == null ? void 0 : r.submit.state) !== "allowed",
|
|
356
|
+
label: ((c = n.value) == null ? void 0 : c.mode) === "update" ? l(e)("menu.scheduler.dialog.update.action") : l(e)("menu.scheduler.dialog.add.action"),
|
|
356
357
|
size: "lg",
|
|
357
358
|
type: "submit",
|
|
358
359
|
variant: "primary"
|
|
@@ -366,20 +367,20 @@ const He = {
|
|
|
366
367
|
])
|
|
367
368
|
];
|
|
368
369
|
}),
|
|
369
|
-
default:
|
|
370
|
-
var
|
|
370
|
+
default: y(() => {
|
|
371
|
+
var r;
|
|
371
372
|
return [
|
|
372
373
|
p("div", ll, [
|
|
373
374
|
o(T, {
|
|
374
375
|
title: l(e)("menu.scheduler.dialog.sections.detail.title")
|
|
375
376
|
}, {
|
|
376
|
-
default:
|
|
377
|
-
var
|
|
377
|
+
default: y(() => {
|
|
378
|
+
var c;
|
|
378
379
|
return [
|
|
379
380
|
o(X, $e({
|
|
380
381
|
"error-messages": O.value ? [l(A)(O.value)] : [],
|
|
381
382
|
label: l(e)("menu.scheduler.dialog.sections.detail.name.label"),
|
|
382
|
-
"model-value": ((
|
|
383
|
+
"model-value": ((c = n.value) == null ? void 0 : c.name) ?? "",
|
|
383
384
|
placeholder: l(e)("menu.scheduler.dialog.sections.detail.name.placeholder")
|
|
384
385
|
}, l(M).field("name", u.value.setName)), null, 16, ["error-messages", "label", "model-value", "placeholder"])
|
|
385
386
|
];
|
|
@@ -390,15 +391,15 @@ const He = {
|
|
|
390
391
|
class: "mb-8",
|
|
391
392
|
title: l(e)("menu.scheduler.dialog.sections.availability.title")
|
|
392
393
|
}, {
|
|
393
|
-
default:
|
|
394
|
-
var
|
|
394
|
+
default: y(() => {
|
|
395
|
+
var c, v;
|
|
395
396
|
return [
|
|
396
397
|
p("div", null, [
|
|
397
398
|
o(Y, {
|
|
398
|
-
"model-value": ((
|
|
399
|
+
"model-value": ((c = n.value) == null ? void 0 : c.repeat) ?? "daily",
|
|
399
400
|
"onUpdate:modelValue": t[1] || (t[1] = (d) => u.value.setRepeat(d))
|
|
400
401
|
}, {
|
|
401
|
-
default:
|
|
402
|
+
default: y(() => [
|
|
402
403
|
o(D, {
|
|
403
404
|
value: "daily",
|
|
404
405
|
label: l(e)("menu.scheduler.dialog.sections.availability.daily")
|
|
@@ -410,15 +411,15 @@ const He = {
|
|
|
410
411
|
]),
|
|
411
412
|
_: 1
|
|
412
413
|
}, 8, ["model-value"]),
|
|
413
|
-
((v = n.value) == null ? void 0 : v.repeat) === "weekly" ? (s(),
|
|
414
|
-
(s(),
|
|
415
|
-
var
|
|
414
|
+
((v = n.value) == null ? void 0 : v.repeat) === "weekly" ? (s(), m("div", al, [
|
|
415
|
+
(s(), m(V, null, S(be, (d) => {
|
|
416
|
+
var h;
|
|
416
417
|
return o(xe, {
|
|
417
418
|
key: d,
|
|
418
|
-
"model-value": [...((
|
|
419
|
+
"model-value": [...((h = n.value) == null ? void 0 : h.weekDays) ?? []],
|
|
419
420
|
value: d,
|
|
420
421
|
label: $(d),
|
|
421
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
422
|
+
"onUpdate:modelValue": t[2] || (t[2] = (i) => u.value.setWeekDays(i))
|
|
422
423
|
}, null, 8, ["model-value", "value", "label"]);
|
|
423
424
|
}), 64))
|
|
424
425
|
])) : F("", !0)
|
|
@@ -431,14 +432,14 @@ const He = {
|
|
|
431
432
|
class: "-mt-4",
|
|
432
433
|
title: l(e)("menu.scheduler.dialog.sections.period.title")
|
|
433
434
|
}, {
|
|
434
|
-
default:
|
|
435
|
-
var
|
|
435
|
+
default: y(() => {
|
|
436
|
+
var c, v, d;
|
|
436
437
|
return [
|
|
437
438
|
o(Y, {
|
|
438
|
-
"model-value": ((
|
|
439
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
439
|
+
"model-value": ((c = n.value) == null ? void 0 : c.periodMode) ?? "all",
|
|
440
|
+
"onUpdate:modelValue": t[3] || (t[3] = (h) => u.value.setPeriodMode(h))
|
|
440
441
|
}, {
|
|
441
|
-
default:
|
|
442
|
+
default: y(() => [
|
|
442
443
|
o(D, {
|
|
443
444
|
label: l(e)("menu.scheduler.dialog.sections.period.all_day"),
|
|
444
445
|
value: "all"
|
|
@@ -450,7 +451,7 @@ const He = {
|
|
|
450
451
|
]),
|
|
451
452
|
_: 1
|
|
452
453
|
}, 8, ["model-value"]),
|
|
453
|
-
((v = n.value) == null ? void 0 : v.periodMode) === "custom" ? (s(),
|
|
454
|
+
((v = n.value) == null ? void 0 : v.periodMode) === "custom" ? (s(), m("div", tl, [
|
|
454
455
|
H.value ? (s(), g(Ce, {
|
|
455
456
|
key: 0,
|
|
456
457
|
class: "text-red-500 text-sm leading-5 tracking-normal",
|
|
@@ -458,55 +459,55 @@ const He = {
|
|
|
458
459
|
state: "none",
|
|
459
460
|
text: l(A)(H.value)
|
|
460
461
|
}, null, 8, ["text"])) : F("", !0),
|
|
461
|
-
(s(!0),
|
|
462
|
-
key:
|
|
462
|
+
(s(!0), m(V, null, S(((d = n.value) == null ? void 0 : d.periods) ?? [], (h, i) => (s(), m("div", {
|
|
463
|
+
key: i,
|
|
463
464
|
class: "flex w-full items-center gap-8"
|
|
464
465
|
}, [
|
|
465
466
|
o(Z, {
|
|
466
467
|
class: "flex-1",
|
|
467
468
|
"aria-label": l(e)("menu.scheduler.accessibility.period_start", {
|
|
468
|
-
number:
|
|
469
|
+
number: i + 1
|
|
469
470
|
}),
|
|
470
471
|
locale: l(C),
|
|
471
|
-
"model-value":
|
|
472
|
-
"onUpdate:modelValue": (E) => u.value.updatePeriod(
|
|
472
|
+
"model-value": h.start,
|
|
473
|
+
"onUpdate:modelValue": (E) => u.value.updatePeriod(i, "start", E)
|
|
473
474
|
}, null, 8, ["aria-label", "locale", "model-value", "onUpdate:modelValue"]),
|
|
474
475
|
p("span", null, f(l(e)("menu.scheduler.dialog.sections.period.separator")), 1),
|
|
475
476
|
o(Z, {
|
|
476
477
|
class: "flex-1",
|
|
477
478
|
"aria-label": l(e)("menu.scheduler.accessibility.period_end", {
|
|
478
|
-
number:
|
|
479
|
+
number: i + 1
|
|
479
480
|
}),
|
|
480
481
|
locale: l(C),
|
|
481
|
-
"model-value":
|
|
482
|
-
"onUpdate:modelValue": (E) => u.value.updatePeriod(
|
|
482
|
+
"model-value": h.end,
|
|
483
|
+
"onUpdate:modelValue": (E) => u.value.updatePeriod(i, "end", E)
|
|
483
484
|
}, null, 8, ["aria-label", "locale", "model-value", "onUpdate:modelValue"]),
|
|
484
485
|
o(k, {
|
|
485
486
|
"aria-label": l(e)("menu.scheduler.accessibility.remove_period", {
|
|
486
|
-
number:
|
|
487
|
+
number: i + 1
|
|
487
488
|
}),
|
|
488
489
|
icon: "close",
|
|
489
490
|
variant: "tertiary",
|
|
490
|
-
onClick: (E) => u.value.removePeriod(
|
|
491
|
+
onClick: (E) => u.value.removePeriod(i)
|
|
491
492
|
}, null, 8, ["aria-label", "onClick"])
|
|
492
493
|
]))), 128)),
|
|
493
494
|
o(k, {
|
|
494
495
|
label: l(e)("menu.scheduler.dialog.sections.period.add"),
|
|
495
496
|
"prepend-icon": "add",
|
|
496
497
|
variant: "secondary",
|
|
497
|
-
onClick: t[4] || (t[4] = (
|
|
498
|
+
onClick: t[4] || (t[4] = (h) => u.value.addPeriod())
|
|
498
499
|
}, null, 8, ["label"])
|
|
499
500
|
])) : F("", !0)
|
|
500
501
|
];
|
|
501
502
|
}),
|
|
502
503
|
_: 1
|
|
503
504
|
}, 8, ["title"]),
|
|
504
|
-
((
|
|
505
|
+
((r = n.value) == null ? void 0 : r.autoLink.state) === "allowed" ? (s(), g(T, {
|
|
505
506
|
key: 0,
|
|
506
507
|
title: l(e)("menu.scheduler.dialog.sections.autolink.title")
|
|
507
508
|
}, {
|
|
508
|
-
default:
|
|
509
|
-
var
|
|
509
|
+
default: y(() => {
|
|
510
|
+
var c;
|
|
510
511
|
return [
|
|
511
512
|
o(Ve, {
|
|
512
513
|
label: l(e)("menu.scheduler.dialog.sections.autolink.label"),
|
|
@@ -515,15 +516,15 @@ const He = {
|
|
|
515
516
|
sublabel: l(e)("menu.scheduler.dialog.sections.autolink.sublabel"),
|
|
516
517
|
"onUpdate:modelValue": t[5] || (t[5] = (v) => u.value.setAutoLinkEnabled(v))
|
|
517
518
|
}, null, 8, ["label", "model-value", "sublabel"]),
|
|
518
|
-
n.value.autoLinkEnabled ? (s(),
|
|
519
|
-
(
|
|
519
|
+
n.value.autoLinkEnabled ? (s(), m("div", sl, [
|
|
520
|
+
(c = n.value.autoLinkFilters) != null && c.length ? (s(), m("div", ol, [
|
|
520
521
|
p("span", null, f(l(e)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
|
|
521
522
|
o(Se, {
|
|
522
523
|
content: l(e)("menu.scheduler.dialog.sections.autolink.tooltip"),
|
|
523
524
|
variant: "plain",
|
|
524
525
|
"z-index": 999
|
|
525
526
|
}, {
|
|
526
|
-
default:
|
|
527
|
+
default: y(() => [
|
|
527
528
|
o(Le, {
|
|
528
529
|
name: "help",
|
|
529
530
|
outline: "",
|
|
@@ -532,10 +533,10 @@ const He = {
|
|
|
532
533
|
]),
|
|
533
534
|
_: 1
|
|
534
535
|
}, 8, ["content"])
|
|
535
|
-
])) : (s(),
|
|
536
|
-
(s(!0),
|
|
537
|
-
var
|
|
538
|
-
return s(),
|
|
536
|
+
])) : (s(), m("p", nl, f(l(e)("menu.scheduler.dialog.sections.autolink.all_items")), 1)),
|
|
537
|
+
(s(!0), m(V, null, S(n.value.autoLinkFilters ?? [], (v, d) => {
|
|
538
|
+
var h;
|
|
539
|
+
return s(), m("div", {
|
|
539
540
|
key: d,
|
|
540
541
|
class: "flex w-full items-center gap-8"
|
|
541
542
|
}, [
|
|
@@ -559,9 +560,9 @@ const He = {
|
|
|
559
560
|
}
|
|
560
561
|
],
|
|
561
562
|
"model-value": v.type,
|
|
562
|
-
"onUpdate:modelValue": (
|
|
563
|
+
"onUpdate:modelValue": (i) => u.value.setAutoLinkFilterType(
|
|
563
564
|
d,
|
|
564
|
-
|
|
565
|
+
i
|
|
565
566
|
)
|
|
566
567
|
}, null, 8, ["aria-label", "items", "model-value", "onUpdate:modelValue"]),
|
|
567
568
|
p("span", null, f(l(e)("menu.scheduler.dialog.sections.filter.matches")), 1),
|
|
@@ -570,10 +571,10 @@ const He = {
|
|
|
570
571
|
"aria-label": l(e)("menu.scheduler.accessibility.filter_category", {
|
|
571
572
|
number: d + 1
|
|
572
573
|
}),
|
|
573
|
-
items: (((
|
|
574
|
-
(
|
|
575
|
-
label:
|
|
576
|
-
value:
|
|
574
|
+
items: (((h = n.value) == null ? void 0 : h.autoLinkCategoryOptions) ?? []).map(
|
|
575
|
+
(i) => ({
|
|
576
|
+
label: i.kind === "addon" ? l(e)("menu.tree_editor.labels.addon") : i.name,
|
|
577
|
+
value: i.id
|
|
577
578
|
})
|
|
578
579
|
),
|
|
579
580
|
"model-value": [...v.values],
|
|
@@ -581,17 +582,17 @@ const He = {
|
|
|
581
582
|
placeholder: l(e)(
|
|
582
583
|
"menu.scheduler.dialog.sections.filter.placeholder.category"
|
|
583
584
|
),
|
|
584
|
-
"onUpdate:modelValue": (
|
|
585
|
+
"onUpdate:modelValue": (i) => u.value.setAutoLinkFilterValues(
|
|
585
586
|
d,
|
|
586
|
-
|
|
587
|
+
i ?? []
|
|
587
588
|
)
|
|
588
589
|
}, null, 8, ["aria-label", "items", "model-value", "placeholder", "onUpdate:modelValue"])) : (s(), g(X, {
|
|
589
590
|
key: 1,
|
|
590
591
|
class: "flex-1",
|
|
591
592
|
"model-value": v.values.join(", "),
|
|
592
|
-
"onUpdate:modelValue": (
|
|
593
|
+
"onUpdate:modelValue": (i) => u.value.setAutoLinkCodeFilterInput(d, i)
|
|
593
594
|
}, {
|
|
594
|
-
label:
|
|
595
|
+
label: y(() => [
|
|
595
596
|
Te(f(l(e)("menu.scheduler.dialog.sections.filter.types.code")) + " ", 1),
|
|
596
597
|
p("span", dl, f(l(e)("menu.scheduler.accessibility.filter_code", {
|
|
597
598
|
number: d + 1
|
|
@@ -606,7 +607,7 @@ const He = {
|
|
|
606
607
|
}),
|
|
607
608
|
icon: "delete",
|
|
608
609
|
variant: "secondary",
|
|
609
|
-
onClick: (
|
|
610
|
+
onClick: (i) => u.value.removeAutoLinkFilter(d)
|
|
610
611
|
}, null, 8, ["aria-label", "onClick"])
|
|
611
612
|
]);
|
|
612
613
|
}), 128)),
|
|
@@ -621,11 +622,11 @@ const He = {
|
|
|
621
622
|
}),
|
|
622
623
|
_: 1
|
|
623
624
|
}, 8, ["title"])) : F("", !0),
|
|
624
|
-
p("div",
|
|
625
|
+
p("div", rl, [
|
|
625
626
|
o(T, {
|
|
626
627
|
title: l(e)("menu.scheduler.dialog.sections.products.title")
|
|
627
628
|
}, {
|
|
628
|
-
"append-title":
|
|
629
|
+
"append-title": y(() => [
|
|
629
630
|
o(k, {
|
|
630
631
|
"border-color": "primary",
|
|
631
632
|
label: l(e)("menu.scheduler.dialog.sections.products.link"),
|
|
@@ -633,30 +634,30 @@ const He = {
|
|
|
633
634
|
size: "md",
|
|
634
635
|
"text-color": "primary",
|
|
635
636
|
variant: "secondary",
|
|
636
|
-
onClick: t[7] || (t[7] = (
|
|
637
|
+
onClick: t[7] || (t[7] = (c) => I.value = !0)
|
|
637
638
|
}, null, 8, ["label"])
|
|
638
639
|
]),
|
|
639
|
-
default:
|
|
640
|
-
var
|
|
640
|
+
default: y(() => {
|
|
641
|
+
var c, v;
|
|
641
642
|
return [
|
|
642
|
-
(
|
|
643
|
-
(s(!0),
|
|
643
|
+
(c = n.value) != null && c.linkedProductGroups.length ? (s(), m("div", il, [
|
|
644
|
+
(s(!0), m(V, null, S(((v = n.value) == null ? void 0 : v.linkedProductGroups) ?? [], (d) => (s(), m("div", {
|
|
644
645
|
key: d.id ?? "uncategorised"
|
|
645
646
|
}, [
|
|
646
647
|
p("p", cl, f(d.isSynthetic ? l(e)("menu.tree_editor.labels.addon") : d.name), 1),
|
|
647
|
-
(s(!0),
|
|
648
|
-
key:
|
|
648
|
+
(s(!0), m(V, null, S(d.products, (h) => (s(), m("div", {
|
|
649
|
+
key: h.id,
|
|
649
650
|
class: "flex items-center justify-between border-b border-fm-color-neutral-gray-200 px-16 py-12"
|
|
650
651
|
}, [
|
|
651
|
-
p("span", null, f(
|
|
652
|
+
p("span", null, f(h.name), 1),
|
|
652
653
|
o(k, {
|
|
653
654
|
"aria-label": l(e)("menu.scheduler.accessibility.remove_product", {
|
|
654
|
-
name:
|
|
655
|
+
name: h.name
|
|
655
656
|
}),
|
|
656
657
|
icon: "delete",
|
|
657
658
|
"text-color": "neutral-gray-400",
|
|
658
659
|
variant: "tertiary",
|
|
659
|
-
onClick: (
|
|
660
|
+
onClick: (i) => u.value.unlinkProduct(h.id)
|
|
660
661
|
}, null, 8, ["aria-label", "onClick"])
|
|
661
662
|
]))), 128))
|
|
662
663
|
]))), 128))
|
|
@@ -671,9 +672,9 @@ const He = {
|
|
|
671
672
|
}),
|
|
672
673
|
_: 1
|
|
673
674
|
}, 8, ["modelValue", "header", "is-container", "is-container-props"]),
|
|
674
|
-
o(
|
|
675
|
+
o(Re, {
|
|
675
676
|
modelValue: I.value,
|
|
676
|
-
"onUpdate:modelValue": t[10] || (t[10] = (
|
|
677
|
+
"onUpdate:modelValue": t[10] || (t[10] = (r) => I.value = r),
|
|
677
678
|
catalogue: ((ae = n.value) == null ? void 0 : ae.productCatalogue) ?? null,
|
|
678
679
|
"selected-product-ids": ((te = n.value) == null ? void 0 : te.linkedProductIds) ?? [],
|
|
679
680
|
title: l(e)("menu.scheduler.dialog.sections.products.link"),
|
|
@@ -685,13 +686,13 @@ const He = {
|
|
|
685
686
|
}, 8, ["heading"]);
|
|
686
687
|
};
|
|
687
688
|
}
|
|
688
|
-
}),
|
|
689
|
+
}), Cl = /* @__PURE__ */ re({
|
|
689
690
|
__name: "Scheduler",
|
|
690
691
|
setup(N) {
|
|
691
|
-
const w =
|
|
692
|
+
const w = He();
|
|
692
693
|
return (C, e) => (s(), g(pl, { sdk: l(w) }, null, 8, ["sdk"]));
|
|
693
694
|
}
|
|
694
695
|
});
|
|
695
696
|
export {
|
|
696
|
-
|
|
697
|
+
Cl as default
|
|
697
698
|
};
|