@feedmepos/mf-menu-portal 1.0.4-dev.2 → 1.0.4-dev.4
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-DtX4DyDA.js → App-CrpoLCjA.js} +3 -3
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js} +1 -1
- package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-BJN8ajuD.js → BindingTable.vue_vue_type_script_setup_true_lang-D3CmOOPY.js} +1 -1
- package/dist/{Catalog-Dly_r1yA.js → Catalog-VU3HhNro.js} +4 -4
- package/dist/{CatalogBinding-CNG4YcVq.js → CatalogBinding-BNATtZEY.js} +3 -3
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-Cy2culdR.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-BmG-xpW4.js} +3 -3
- package/dist/CatalogEditor.vue_vue_type_script_setup_true_lang-BFsRDFpj.js +784 -0
- package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-4EZ4yM_N.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Bk4FqVmx.js} +14 -14
- package/dist/{Category-Dz1yFYyY.js → Category-DMoXTsfG.js} +5 -5
- package/dist/{Category-BS-vFDYy.js → Category-DxjdQ-NN.js} +2 -2
- package/dist/CategoryList.vue_vue_type_script_setup_true_lang-B3Ts1O-9.js +847 -0
- package/dist/{CookingGuide-CmbvWFgp.js → CookingGuide-DiZZDYD-.js} +5 -5
- package/dist/{Group-B7s-vPXb.js → Group-DFR8q-tt.js} +5 -5
- package/dist/{Group-BRmWZnHh.js → Group-rzfh_o6r.js} +2 -2
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-DiN-wQXX.js +1807 -0
- package/dist/Ingredient-DpjGIuH9.js +505 -0
- package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CnI80Ojd.js +782 -0
- package/dist/{MenuSetting-Ci7V_Jxn.js → MenuSetting-DR-pDSF_.js} +4 -4
- package/dist/OrderPacing-JcTuweqF.js +769 -0
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-NCH-SrZU.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-HwwJ2mGv.js} +2 -2
- package/dist/{Preview-BBGNaj1F.js → Preview-BZyun5lZ.js} +1 -1
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-BXJDpDCm.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-DquqNbE1.js} +1 -1
- package/dist/PrintRoute-CzEx2dCt.js +518 -0
- package/dist/{Product-DqN0NFUU.js → Product-CQb0n06E.js} +4 -4
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +7931 -0
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-Fkiw4lZp.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-CBlDEjqF.js} +9 -9
- package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-D8NQTCLx.js +2011 -0
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CNWCT1OB.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-cG47Pu-6.js} +1 -1
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BoQ9mVPY.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-0UwUcA2L.js} +800 -749
- package/dist/{ProductInternalTools-CC3SWSlT.js → ProductInternalTools-QrBR1nFp.js} +2 -2
- package/dist/{ProductInventoryDialog-SAhsVekx.js → ProductInventoryDialog-fV38GO1a.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-BB8UIIsW.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Bzb3RrMg.js} +1 -1
- package/dist/ProductList.vue_vue_type_script_setup_true_lang-BwKQESr3.js +2765 -0
- package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BMDSkfcn.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-CDYcHXo1.js} +1 -1
- package/dist/{Products-Cn6j1DOQ.js → Products-B8tysOAL.js} +3 -3
- package/dist/Publish-DTvOvFNa.js +1337 -0
- package/dist/Recipe-Ddx31csF.js +388 -0
- package/dist/{Scheduler-DlaSVACJ.js → Scheduler-CST5L_cw.js} +314 -254
- package/dist/ServingSequence-DYyEZI2S.js +374 -0
- package/dist/{Setting-CyCp2uw4.js → Setting-Ip0pGjks.js} +6 -6
- package/dist/Subcategory-BIgjzVta.js +459 -0
- package/dist/{Takeaway-sVVykWDg.js → Takeaway-CekhGM-m.js} +2 -2
- package/dist/{Takeaway-tYHCAXYU.js → Takeaway-aXsPg4JT.js} +5 -5
- package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-CV24v8Zg.js → TakeawayList.vue_vue_type_script_setup_true_lang-CaRR4_j3.js} +4 -4
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CshqYpc9.js +1291 -0
- package/dist/Unit-BMW8u0Us.js +424 -0
- package/dist/{Variant-BNnR5rLv.js → Variant-CZsrYRMU.js} +5 -5
- package/dist/{_id_-a9ZtdjtT.js → _id_-D4swrvNa.js} +3 -3
- package/dist/{app-CmElp8cO.js → app-BWwwHsWi.js} +337 -337
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +80 -0
- package/dist/apps/mf-menu/src/components/PriceTier/LinkPriceTierSection.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/Product/BulkCategorySelect.vue.d.ts +37 -0
- package/dist/apps/mf-menu/src/components/Product/ProductAttributeFilter.vue.d.ts +11 -1
- package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +2 -2
- package/dist/apps/mf-menu/src/components/feature/NestedGroupManager/NestedGroupOverrideSheets.vue.d.ts +27 -0
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesFilter.vue.d.ts +20 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{menu-compute-B_wpWLAj.js → menu-compute-D7TdiHt4.js} +4 -4
- package/dist/assets/{validate-menu-DjxNxUxH.js → validate-menu-DXppWUVq.js} +2 -2
- package/dist/mf-menu-portal.css +1 -1
- package/dist/{provide-BJRbSauL.js → provide-CDmXzkhz.js} +67539 -65978
- package/dist/{useActionFeedback-89GwO41T.js → useActionFeedback-Dm2HDa_2.js} +1 -1
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js → vuedraggable-CBtQLb_S.js} +140 -139
- package/package.json +2 -2
- package/dist/CatalogEditor.vue_vue_type_script_setup_true_lang-Byp1db9_.js +0 -484
- package/dist/CategoryList.vue_vue_type_script_setup_true_lang-CrHYjrTn.js +0 -797
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-CWr52_a-.js +0 -2183
- package/dist/Ingredient-BMAlctE4.js +0 -463
- package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CR99740r.js +0 -709
- package/dist/OrderPacing-Bz5kn6DY.js +0 -698
- package/dist/PrintRoute-BnARWdR2.js +0 -473
- package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D8DygCBl.js +0 -110
- package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-DryxrG-x.js +0 -1257
- package/dist/ProductList.vue_vue_type_script_setup_true_lang-BDnTs366.js +0 -10353
- package/dist/Publish-BPJhG39B.js +0 -1261
- package/dist/Recipe-mt1vec5-.js +0 -350
- package/dist/ServingSequence-Cr1REWZP.js +0 -336
- package/dist/Subcategory-kuB7gYvc.js +0 -412
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dz-Chgek.js +0 -1213
- package/dist/Unit-BSOvZxRy.js +0 -385
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/RestaurantAttributesFilter.vue.d.ts +0 -2
|
@@ -1,73 +1,79 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { b as
|
|
11
|
-
const
|
|
1
|
+
import { defineComponent as ie, 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 h, createElementBlock as c, 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
|
+
import { useI18n as Ie, formatTimeOfDay as ue } from "@feedmepos/mf-common";
|
|
3
|
+
import { useDialog as Me, useBreakpoints as De, components as de, FmButtonVariant as Ee } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as Ae } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
5
|
+
import { _ as ze } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CnI80Ojd.js";
|
|
6
|
+
import { _ as T } from "./vuedraggable-CBtQLb_S.js";
|
|
7
|
+
import { _ as Be } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
8
|
+
import { u as Re } from "./useActionFeedback-Dm2HDa_2.js";
|
|
9
|
+
import { u as je } from "./useEditorValidation-Ctef5Bxt.js";
|
|
10
|
+
import { b as Ne, u as Ge, a as Oe } from "./provide-CDmXzkhz.js";
|
|
11
|
+
const He = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "flex flex-1 justify-end"
|
|
14
|
-
},
|
|
14
|
+
}, Ke = {
|
|
15
15
|
key: 0,
|
|
16
16
|
role: "alert",
|
|
17
17
|
class: "text-fm-color-typo-secondary"
|
|
18
|
-
},
|
|
18
|
+
}, qe = { class: "flex justify-end" }, Qe = { class: "w-[320px] xs:w-full xs:px-16 xs:mt-8" }, We = { class: "min-w-0 grow space-y-4" }, Je = { class: "fm-typo-en-body-lg-600 break-words" }, Xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, Ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, Ze = {
|
|
19
|
+
key: 0,
|
|
20
|
+
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
|
+
}, ll = { class: "space-y-0 py-8" }, al = {
|
|
19
25
|
key: 0,
|
|
20
26
|
class: "grid grid-cols-4 gap-8 pl-32 pt-4"
|
|
21
|
-
},
|
|
27
|
+
}, tl = {
|
|
22
28
|
key: 0,
|
|
23
29
|
class: "flex flex-col items-start gap-16 pl-32 pt-12"
|
|
24
|
-
},
|
|
30
|
+
}, sl = {
|
|
25
31
|
key: 0,
|
|
26
32
|
class: "-mt-16 space-y-16"
|
|
27
|
-
},
|
|
33
|
+
}, ol = {
|
|
28
34
|
key: 0,
|
|
29
35
|
class: "flex items-center"
|
|
30
|
-
},
|
|
36
|
+
}, nl = {
|
|
31
37
|
key: 1,
|
|
32
38
|
class: "text-fm-color-typo-secondary"
|
|
33
|
-
},
|
|
39
|
+
}, ul = { class: "flex flex-1 flex-wrap items-center gap-4" }, dl = { class: "sr-only" }, il = { class: "-mt-14" }, rl = {
|
|
34
40
|
key: 0,
|
|
35
41
|
class: "space-y-8"
|
|
36
|
-
},
|
|
42
|
+
}, cl = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, ml = { class: "flex gap-8" }, pl = /* @__PURE__ */ ie({
|
|
37
43
|
__name: "SchedulerList",
|
|
38
44
|
props: {
|
|
39
45
|
sdk: {}
|
|
40
46
|
},
|
|
41
|
-
setup(
|
|
42
|
-
const w =
|
|
43
|
-
() =>
|
|
44
|
-
),
|
|
47
|
+
setup(N) {
|
|
48
|
+
const w = N, { locale: C, t: e } = Ie(), A = Ne(), re = Me(), { run: G } = Re(), P = Ge(w.sdk.scheduler.list), _ = x(
|
|
49
|
+
() => P.value.status === "ready" ? P.value.value : null
|
|
50
|
+
), ce = x(() => {
|
|
45
51
|
var a;
|
|
46
|
-
return ((a =
|
|
47
|
-
}),
|
|
52
|
+
return ((a = _.value) == null ? void 0 : a.query) ?? "";
|
|
53
|
+
}), { breakpoints: me } = De(), z = x(() => me.value.xs), pe = x(() => {
|
|
48
54
|
var a;
|
|
49
|
-
return [...((a =
|
|
50
|
-
}),
|
|
55
|
+
return [...((a = _.value) == null ? void 0 : a.rows) ?? []];
|
|
56
|
+
}), L = se(!1), I = se(!1), u = oe(
|
|
51
57
|
w.sdk.scheduler.editor()
|
|
52
|
-
),
|
|
58
|
+
), U = oe(
|
|
53
59
|
u.value.get()
|
|
54
60
|
);
|
|
55
|
-
let
|
|
61
|
+
let B = u.value.subscribe(
|
|
56
62
|
(a) => {
|
|
57
|
-
|
|
63
|
+
U.value = a;
|
|
58
64
|
}
|
|
59
65
|
);
|
|
60
|
-
const
|
|
61
|
-
() =>
|
|
62
|
-
),
|
|
63
|
-
() =>
|
|
64
|
-
),
|
|
65
|
-
() =>
|
|
66
|
-
),
|
|
66
|
+
const n = x(
|
|
67
|
+
() => U.value.status === "ready" ? U.value.value : null
|
|
68
|
+
), M = je(() => u.value), O = x(
|
|
69
|
+
() => n.value ? M.issue(n.value.fieldIssues, "name") ?? n.value.nameIssue : null
|
|
70
|
+
), H = x(
|
|
71
|
+
() => n.value ? M.issue(n.value.fieldIssues, "periods") ?? n.value.periodIssue : null
|
|
72
|
+
), ve = (a) => j(
|
|
67
73
|
"div",
|
|
68
74
|
{ class: "relative -top-[2px] fm-typo-en-body-lg-400 tracking-normal" },
|
|
69
|
-
|
|
70
|
-
),
|
|
75
|
+
j("span", a.message)
|
|
76
|
+
), be = [
|
|
71
77
|
"monday",
|
|
72
78
|
"tuesday",
|
|
73
79
|
"wednesday",
|
|
@@ -76,7 +82,7 @@ const Be = {
|
|
|
76
82
|
"saturday",
|
|
77
83
|
"sunday"
|
|
78
84
|
];
|
|
79
|
-
function
|
|
85
|
+
function $(a) {
|
|
80
86
|
return {
|
|
81
87
|
monday: e("menu.scheduler.days.monday"),
|
|
82
88
|
tuesday: e("menu.scheduler.days.tuesday"),
|
|
@@ -87,34 +93,34 @@ const Be = {
|
|
|
87
93
|
sunday: e("menu.scheduler.days.sunday")
|
|
88
94
|
}[a];
|
|
89
95
|
}
|
|
90
|
-
function
|
|
91
|
-
|
|
96
|
+
function K(a) {
|
|
97
|
+
B(), u.value.dispose(), u.value = w.sdk.scheduler.editor(a), U.value = u.value.get(), B = u.value.subscribe(
|
|
92
98
|
(t) => {
|
|
93
|
-
|
|
99
|
+
U.value = t;
|
|
94
100
|
}
|
|
95
101
|
);
|
|
96
102
|
}
|
|
97
|
-
function
|
|
103
|
+
function R() {
|
|
98
104
|
var a;
|
|
99
|
-
((a =
|
|
105
|
+
((a = _.value) == null ? void 0 : a.create.state) === "allowed" && (K(), L.value = !0);
|
|
100
106
|
}
|
|
101
|
-
function
|
|
102
|
-
|
|
107
|
+
function q(a) {
|
|
108
|
+
K(a.id), L.value = !0;
|
|
103
109
|
}
|
|
104
|
-
function
|
|
110
|
+
function Q(a) {
|
|
105
111
|
return a.periods.length ? a.periods.map(
|
|
106
112
|
(t) => e("menu.scheduler.table.period_range", {
|
|
107
|
-
start:
|
|
113
|
+
start: ue(
|
|
108
114
|
t.start,
|
|
109
115
|
C.value
|
|
110
116
|
).toLocaleLowerCase(C.value),
|
|
111
|
-
end:
|
|
117
|
+
end: ue(t.end, C.value).toLocaleLowerCase(
|
|
112
118
|
C.value
|
|
113
119
|
)
|
|
114
120
|
})
|
|
115
121
|
).join(e("menu.scheduler.table.list_separator")) : e("menu.scheduler.dialog.sections.period.all_day");
|
|
116
122
|
}
|
|
117
|
-
function
|
|
123
|
+
function W(a) {
|
|
118
124
|
const t = a.repeatPresentation;
|
|
119
125
|
switch (t.kind) {
|
|
120
126
|
case "daily":
|
|
@@ -125,39 +131,39 @@ const Be = {
|
|
|
125
131
|
return e("menu.scheduler.repeat.weekends");
|
|
126
132
|
case "except":
|
|
127
133
|
return e("menu.scheduler.repeat.except", {
|
|
128
|
-
day:
|
|
134
|
+
day: $(t.day)
|
|
129
135
|
});
|
|
130
136
|
case "range":
|
|
131
137
|
return e("menu.scheduler.repeat.range", {
|
|
132
|
-
start:
|
|
133
|
-
end:
|
|
138
|
+
start: $(t.start),
|
|
139
|
+
end: $(t.end)
|
|
134
140
|
});
|
|
135
141
|
case "days":
|
|
136
|
-
return t.days.map(
|
|
142
|
+
return t.days.map($).join(e("menu.scheduler.repeat.list_separator"));
|
|
137
143
|
}
|
|
138
144
|
}
|
|
139
|
-
function
|
|
140
|
-
u.value.setLinkedProductIds(a),
|
|
145
|
+
function ye(a) {
|
|
146
|
+
u.value.setLinkedProductIds(a), I.value = !1;
|
|
141
147
|
}
|
|
142
|
-
async function
|
|
148
|
+
async function he() {
|
|
143
149
|
var t;
|
|
144
|
-
(await
|
|
145
|
-
() =>
|
|
150
|
+
(await G(
|
|
151
|
+
() => M.submit(() => u.value.submit()),
|
|
146
152
|
{
|
|
147
153
|
showLoading: () => {
|
|
148
|
-
var
|
|
149
|
-
return ((
|
|
154
|
+
var k;
|
|
155
|
+
return ((k = n.value) == null ? void 0 : k.status) === "submitting";
|
|
150
156
|
},
|
|
151
157
|
successMessage: e("menu.scheduler.actions.saved", {
|
|
152
|
-
name: ((t =
|
|
158
|
+
name: ((t = n.value) == null ? void 0 : t.name.trim()) ?? ""
|
|
153
159
|
})
|
|
154
160
|
}
|
|
155
|
-
)).kind === "success" && (
|
|
161
|
+
)).kind === "success" && (L.value = !1);
|
|
156
162
|
}
|
|
157
|
-
function
|
|
158
|
-
a.remove.state === "allowed" &&
|
|
163
|
+
function J(a) {
|
|
164
|
+
a.remove.state === "allowed" && re.open({
|
|
159
165
|
title: e("menu.scheduler.dialogs.remove.title"),
|
|
160
|
-
contentComponent:
|
|
166
|
+
contentComponent: ve,
|
|
161
167
|
contentComponentProps: {
|
|
162
168
|
message: e("menu.scheduler.dialogs.remove.message", {
|
|
163
169
|
name: a.name
|
|
@@ -168,21 +174,21 @@ const Be = {
|
|
|
168
174
|
primaryActions: {
|
|
169
175
|
text: e("menu.common.actions.remove"),
|
|
170
176
|
close: !0,
|
|
171
|
-
variant:
|
|
177
|
+
variant: Ee.Destructive
|
|
172
178
|
},
|
|
173
179
|
secondaryActions: {
|
|
174
180
|
text: e("menu.common.actions.cancel"),
|
|
175
181
|
close: !0
|
|
176
182
|
}
|
|
177
183
|
}).onPrimary(async () => {
|
|
178
|
-
await
|
|
184
|
+
await G(() => w.sdk.scheduler.remove(a.id), {
|
|
179
185
|
successMessage: e("menu.scheduler.actions.removed", {
|
|
180
186
|
name: a.name
|
|
181
187
|
})
|
|
182
188
|
});
|
|
183
189
|
});
|
|
184
190
|
}
|
|
185
|
-
const
|
|
191
|
+
const ke = x(() => [
|
|
186
192
|
{
|
|
187
193
|
accessorKey: "name",
|
|
188
194
|
header: () => e("menu.scheduler.table.columns.name"),
|
|
@@ -191,13 +197,13 @@ const Be = {
|
|
|
191
197
|
{
|
|
192
198
|
id: "repeat",
|
|
193
199
|
header: () => e("menu.scheduler.table.columns.repeat"),
|
|
194
|
-
cell: (a) =>
|
|
200
|
+
cell: (a) => W(a.row.original),
|
|
195
201
|
enableSorting: !1
|
|
196
202
|
},
|
|
197
203
|
{
|
|
198
204
|
id: "period",
|
|
199
205
|
header: () => e("menu.scheduler.table.columns.period"),
|
|
200
|
-
cell: (a) =>
|
|
206
|
+
cell: (a) => Q(a.row.original),
|
|
201
207
|
enableSorting: !1
|
|
202
208
|
},
|
|
203
209
|
{
|
|
@@ -213,7 +219,7 @@ const Be = {
|
|
|
213
219
|
id: "actions",
|
|
214
220
|
size: 52,
|
|
215
221
|
header: "",
|
|
216
|
-
cell: (a) =>
|
|
222
|
+
cell: (a) => j(de.FmButton, {
|
|
217
223
|
icon: "delete",
|
|
218
224
|
variant: "tertiary",
|
|
219
225
|
textColor: "neutral-gray-400",
|
|
@@ -221,250 +227,304 @@ const Be = {
|
|
|
221
227
|
"aria-label": e("menu.scheduler.table.delete.accessibility_label", {
|
|
222
228
|
name: a.row.original.name
|
|
223
229
|
}),
|
|
224
|
-
onClick:
|
|
225
|
-
() =>
|
|
230
|
+
onClick: ne(
|
|
231
|
+
() => J(a.row.original),
|
|
226
232
|
["stop", "prevent"]
|
|
227
233
|
)
|
|
228
234
|
})
|
|
229
235
|
}
|
|
230
236
|
]);
|
|
231
|
-
return
|
|
232
|
-
|
|
237
|
+
return Ue(() => {
|
|
238
|
+
B(), u.value.dispose(), w.sdk.scheduler.search("");
|
|
233
239
|
}), (a, t) => {
|
|
234
|
-
const
|
|
235
|
-
return
|
|
240
|
+
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(Be, {
|
|
236
242
|
"data-visual-root": "scheduler",
|
|
237
243
|
heading: l(e)("menu.scheduler.title")
|
|
238
244
|
}, {
|
|
239
|
-
"append-heading":
|
|
240
|
-
|
|
241
|
-
|
|
245
|
+
"append-heading": h(() => [
|
|
246
|
+
_.value ? (s(), c("div", He, [
|
|
247
|
+
_.value.totalCount > 0 && !z.value ? (s(), g(k, {
|
|
242
248
|
key: 0,
|
|
243
|
-
disabled:
|
|
249
|
+
disabled: _.value.create.state !== "allowed",
|
|
244
250
|
label: l(e)("menu.scheduler.empty.action"),
|
|
245
251
|
"prepend-icon": "add",
|
|
246
|
-
onClick:
|
|
247
|
-
}, null, 8, ["disabled", "label"])) :
|
|
248
|
-
])) :
|
|
252
|
+
onClick: R
|
|
253
|
+
}, null, 8, ["disabled", "label"])) : F("", !0)
|
|
254
|
+
])) : F("", !0)
|
|
249
255
|
]),
|
|
250
|
-
default:
|
|
251
|
-
var
|
|
256
|
+
default: h(() => {
|
|
257
|
+
var le, ae, te;
|
|
252
258
|
return [
|
|
253
|
-
l(
|
|
259
|
+
l(P).status === "error" ? (s(), c("p", Ke, f(l(A)(l(P).error.message)), 1)) : l(P).status === "loading" ? (s(), g(_e, { key: 1 })) : _.value && _.value.totalCount === 0 ? (s(), g(l(Ae), {
|
|
254
260
|
key: 2,
|
|
255
|
-
action: { text: l(e)("menu.scheduler.empty.action"), callback:
|
|
261
|
+
action: { text: l(e)("menu.scheduler.empty.action"), callback: R },
|
|
256
262
|
title: l(e)("menu.scheduler.empty.title"),
|
|
257
263
|
subtitle: l(e)("menu.scheduler.empty.subtitle")
|
|
258
|
-
}, null, 8, ["action", "title", "subtitle"])) :
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
264
|
+
}, null, 8, ["action", "title", "subtitle"])) : _.value ? (s(), c(V, { key: 3 }, [
|
|
265
|
+
p("div", qe, [
|
|
266
|
+
p("div", Qe, [
|
|
267
|
+
o(fe, {
|
|
262
268
|
autofocus: "",
|
|
263
269
|
"aria-label": l(e)("menu.scheduler.accessibility.search"),
|
|
264
270
|
class: "mb-8",
|
|
265
|
-
"model-value":
|
|
271
|
+
"model-value": ce.value,
|
|
266
272
|
placeholder: l(e)("menu.scheduler.table.search.placeholder"),
|
|
267
273
|
"onUpdate:modelValue": w.sdk.scheduler.search
|
|
268
274
|
}, null, 8, ["aria-label", "model-value", "placeholder", "onUpdate:modelValue"])
|
|
269
275
|
])
|
|
270
276
|
]),
|
|
271
|
-
s(
|
|
272
|
-
|
|
277
|
+
z.value ? (s(), g(we, {
|
|
278
|
+
key: 1,
|
|
279
|
+
class: "w-full px-16 flex-1 min-h-0 overflow-scroll pb-64",
|
|
280
|
+
separator: ""
|
|
281
|
+
}, {
|
|
282
|
+
default: h(() => [
|
|
283
|
+
(s(!0), c(V, null, S(_.value.rows, (i) => (s(), g(Fe, {
|
|
284
|
+
key: i.id,
|
|
285
|
+
class: "!py-12 !px-0",
|
|
286
|
+
onClick: (m) => q(i)
|
|
287
|
+
}, {
|
|
288
|
+
default: h(() => [
|
|
289
|
+
p("div", We, [
|
|
290
|
+
p("div", Je, f(i.name), 1),
|
|
291
|
+
p("div", null, [
|
|
292
|
+
p("div", Xe, f(l(e)("menu.common.labels.products_linked", {
|
|
293
|
+
count: i.linkedProductCount
|
|
294
|
+
})), 1),
|
|
295
|
+
p("div", Ye, f(l(e)("menu.common.labels.a11y_labelled_name", {
|
|
296
|
+
label: l(e)("menu.scheduler.table.columns.repeat"),
|
|
297
|
+
name: W(i)
|
|
298
|
+
})), 1),
|
|
299
|
+
i.periods.length > 0 ? (s(), c("div", Ze, f(l(e)("menu.common.labels.a11y_labelled_name", {
|
|
300
|
+
label: l(e)("menu.scheduler.table.columns.period"),
|
|
301
|
+
name: Q(i)
|
|
302
|
+
})), 1)) : F("", !0)
|
|
303
|
+
])
|
|
304
|
+
]),
|
|
305
|
+
o(k, {
|
|
306
|
+
class: "shrink-0",
|
|
307
|
+
"aria-label": l(e)("menu.scheduler.table.delete.accessibility_label", {
|
|
308
|
+
name: i.name
|
|
309
|
+
}),
|
|
310
|
+
disabled: i.remove.state !== "allowed",
|
|
311
|
+
icon: "delete",
|
|
312
|
+
"text-color": "neutral-gray-400",
|
|
313
|
+
variant: "tertiary",
|
|
314
|
+
onClick: ne((m) => J(i), ["stop"])
|
|
315
|
+
}, null, 8, ["aria-label", "disabled", "onClick"])
|
|
316
|
+
]),
|
|
317
|
+
_: 2
|
|
318
|
+
}, 1032, ["onClick"]))), 128))
|
|
319
|
+
]),
|
|
320
|
+
_: 1
|
|
321
|
+
})) : (s(), g(ge, {
|
|
322
|
+
key: 0,
|
|
323
|
+
"column-defs": ke.value,
|
|
273
324
|
"hide-footer": "",
|
|
274
|
-
"page-size": Math.max(
|
|
325
|
+
"page-size": Math.max(_.value.rows.length, 1),
|
|
275
326
|
"pin-header-row": "",
|
|
276
|
-
"row-data":
|
|
327
|
+
"row-data": pe.value,
|
|
277
328
|
"shrink-at": !1,
|
|
278
|
-
onRowClick: t[0] || (t[0] = (
|
|
279
|
-
}, null, 8, ["column-defs", "page-size", "row-data"])
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
329
|
+
onRowClick: t[0] || (t[0] = (i) => q(i.original))
|
|
330
|
+
}, null, 8, ["column-defs", "page-size", "row-data"])),
|
|
331
|
+
_.value.totalCount > 0 && z.value ? (s(), c("div", el, [
|
|
332
|
+
o(k, {
|
|
333
|
+
disabled: _.value.create.state !== "allowed",
|
|
334
|
+
label: l(e)("menu.scheduler.empty.action"),
|
|
335
|
+
"prepend-icon": "add",
|
|
336
|
+
variant: "fab",
|
|
337
|
+
onClick: R
|
|
338
|
+
}, null, 8, ["disabled", "label"])
|
|
339
|
+
])) : F("", !0)
|
|
340
|
+
], 64)) : F("", !0),
|
|
341
|
+
o(Pe, {
|
|
342
|
+
modelValue: L.value,
|
|
343
|
+
"onUpdate:modelValue": t[9] || (t[9] = (i) => L.value = i),
|
|
344
|
+
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
|
+
"is-container": l(de).FmForm,
|
|
346
|
+
"is-container-props": { onValidationSuccess: he },
|
|
287
347
|
"max-width": 560
|
|
288
348
|
}, {
|
|
289
|
-
"side-sheet-footer":
|
|
290
|
-
var
|
|
349
|
+
"side-sheet-footer": h(() => {
|
|
350
|
+
var i, m;
|
|
291
351
|
return [
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
disabled: ((
|
|
295
|
-
label: ((
|
|
352
|
+
p("div", ml, [
|
|
353
|
+
o(k, {
|
|
354
|
+
disabled: ((i = n.value) == null ? void 0 : i.submit.state) !== "allowed",
|
|
355
|
+
label: ((m = n.value) == null ? void 0 : m.mode) === "update" ? l(e)("menu.scheduler.dialog.update.action") : l(e)("menu.scheduler.dialog.add.action"),
|
|
296
356
|
size: "lg",
|
|
297
357
|
type: "submit",
|
|
298
358
|
variant: "primary"
|
|
299
359
|
}, null, 8, ["disabled", "label"]),
|
|
300
|
-
|
|
360
|
+
o(k, {
|
|
301
361
|
label: l(e)("menu.scheduler.dialog.actions.cancel"),
|
|
302
362
|
size: "lg",
|
|
303
363
|
variant: "tertiary",
|
|
304
|
-
onClick: t[8] || (t[8] = (
|
|
364
|
+
onClick: t[8] || (t[8] = (v) => L.value = !1)
|
|
305
365
|
}, null, 8, ["label"])
|
|
306
366
|
])
|
|
307
367
|
];
|
|
308
368
|
}),
|
|
309
|
-
default:
|
|
310
|
-
var
|
|
369
|
+
default: h(() => {
|
|
370
|
+
var i;
|
|
311
371
|
return [
|
|
312
|
-
|
|
313
|
-
|
|
372
|
+
p("div", ll, [
|
|
373
|
+
o(T, {
|
|
314
374
|
title: l(e)("menu.scheduler.dialog.sections.detail.title")
|
|
315
375
|
}, {
|
|
316
|
-
default:
|
|
317
|
-
var
|
|
376
|
+
default: h(() => {
|
|
377
|
+
var m;
|
|
318
378
|
return [
|
|
319
|
-
|
|
320
|
-
"error-messages":
|
|
379
|
+
o(X, $e({
|
|
380
|
+
"error-messages": O.value ? [l(A)(O.value)] : [],
|
|
321
381
|
label: l(e)("menu.scheduler.dialog.sections.detail.name.label"),
|
|
322
|
-
"model-value": ((
|
|
382
|
+
"model-value": ((m = n.value) == null ? void 0 : m.name) ?? "",
|
|
323
383
|
placeholder: l(e)("menu.scheduler.dialog.sections.detail.name.placeholder")
|
|
324
|
-
}, l(
|
|
384
|
+
}, l(M).field("name", u.value.setName)), null, 16, ["error-messages", "label", "model-value", "placeholder"])
|
|
325
385
|
];
|
|
326
386
|
}),
|
|
327
387
|
_: 1
|
|
328
388
|
}, 8, ["title"]),
|
|
329
|
-
|
|
389
|
+
o(T, {
|
|
330
390
|
class: "mb-8",
|
|
331
391
|
title: l(e)("menu.scheduler.dialog.sections.availability.title")
|
|
332
392
|
}, {
|
|
333
|
-
default:
|
|
334
|
-
var
|
|
393
|
+
default: h(() => {
|
|
394
|
+
var m, v;
|
|
335
395
|
return [
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
"model-value": ((
|
|
339
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
396
|
+
p("div", null, [
|
|
397
|
+
o(Y, {
|
|
398
|
+
"model-value": ((m = n.value) == null ? void 0 : m.repeat) ?? "daily",
|
|
399
|
+
"onUpdate:modelValue": t[1] || (t[1] = (d) => u.value.setRepeat(d))
|
|
340
400
|
}, {
|
|
341
|
-
default:
|
|
342
|
-
|
|
401
|
+
default: h(() => [
|
|
402
|
+
o(D, {
|
|
343
403
|
value: "daily",
|
|
344
404
|
label: l(e)("menu.scheduler.dialog.sections.availability.daily")
|
|
345
405
|
}, null, 8, ["label"]),
|
|
346
|
-
|
|
406
|
+
o(D, {
|
|
347
407
|
value: "weekly",
|
|
348
408
|
label: l(e)("menu.scheduler.dialog.sections.availability.weekly")
|
|
349
409
|
}, null, 8, ["label"])
|
|
350
410
|
]),
|
|
351
411
|
_: 1
|
|
352
412
|
}, 8, ["model-value"]),
|
|
353
|
-
((
|
|
354
|
-
(
|
|
355
|
-
var
|
|
356
|
-
return
|
|
357
|
-
key:
|
|
358
|
-
"model-value": [...((
|
|
359
|
-
value:
|
|
360
|
-
label:
|
|
361
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
413
|
+
((v = n.value) == null ? void 0 : v.repeat) === "weekly" ? (s(), c("div", al, [
|
|
414
|
+
(s(), c(V, null, S(be, (d) => {
|
|
415
|
+
var y;
|
|
416
|
+
return o(xe, {
|
|
417
|
+
key: d,
|
|
418
|
+
"model-value": [...((y = n.value) == null ? void 0 : y.weekDays) ?? []],
|
|
419
|
+
value: d,
|
|
420
|
+
label: $(d),
|
|
421
|
+
"onUpdate:modelValue": t[2] || (t[2] = (r) => u.value.setWeekDays(r))
|
|
362
422
|
}, null, 8, ["model-value", "value", "label"]);
|
|
363
423
|
}), 64))
|
|
364
|
-
])) :
|
|
424
|
+
])) : F("", !0)
|
|
365
425
|
])
|
|
366
426
|
];
|
|
367
427
|
}),
|
|
368
428
|
_: 1
|
|
369
429
|
}, 8, ["title"]),
|
|
370
|
-
|
|
430
|
+
o(T, {
|
|
371
431
|
class: "-mt-4",
|
|
372
432
|
title: l(e)("menu.scheduler.dialog.sections.period.title")
|
|
373
433
|
}, {
|
|
374
|
-
default:
|
|
375
|
-
var
|
|
434
|
+
default: h(() => {
|
|
435
|
+
var m, v, d;
|
|
376
436
|
return [
|
|
377
|
-
|
|
378
|
-
"model-value": ((
|
|
379
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
437
|
+
o(Y, {
|
|
438
|
+
"model-value": ((m = n.value) == null ? void 0 : m.periodMode) ?? "all",
|
|
439
|
+
"onUpdate:modelValue": t[3] || (t[3] = (y) => u.value.setPeriodMode(y))
|
|
380
440
|
}, {
|
|
381
|
-
default:
|
|
382
|
-
|
|
441
|
+
default: h(() => [
|
|
442
|
+
o(D, {
|
|
383
443
|
label: l(e)("menu.scheduler.dialog.sections.period.all_day"),
|
|
384
444
|
value: "all"
|
|
385
445
|
}, null, 8, ["label"]),
|
|
386
|
-
|
|
446
|
+
o(D, {
|
|
387
447
|
label: l(e)("menu.scheduler.dialog.sections.period.custom"),
|
|
388
448
|
value: "custom"
|
|
389
449
|
}, null, 8, ["label"])
|
|
390
450
|
]),
|
|
391
451
|
_: 1
|
|
392
452
|
}, 8, ["model-value"]),
|
|
393
|
-
((
|
|
394
|
-
|
|
453
|
+
((v = n.value) == null ? void 0 : v.periodMode) === "custom" ? (s(), c("div", tl, [
|
|
454
|
+
H.value ? (s(), g(Ce, {
|
|
395
455
|
key: 0,
|
|
396
456
|
class: "text-red-500 text-sm leading-5 tracking-normal",
|
|
397
457
|
role: "alert",
|
|
398
458
|
state: "none",
|
|
399
|
-
text: l(A)(
|
|
400
|
-
}, null, 8, ["text"])) :
|
|
401
|
-
(
|
|
402
|
-
key:
|
|
459
|
+
text: l(A)(H.value)
|
|
460
|
+
}, null, 8, ["text"])) : F("", !0),
|
|
461
|
+
(s(!0), c(V, null, S(((d = n.value) == null ? void 0 : d.periods) ?? [], (y, r) => (s(), c("div", {
|
|
462
|
+
key: r,
|
|
403
463
|
class: "flex w-full items-center gap-8"
|
|
404
464
|
}, [
|
|
405
|
-
|
|
465
|
+
o(Z, {
|
|
406
466
|
class: "flex-1",
|
|
407
467
|
"aria-label": l(e)("menu.scheduler.accessibility.period_start", {
|
|
408
|
-
number:
|
|
468
|
+
number: r + 1
|
|
409
469
|
}),
|
|
410
470
|
locale: l(C),
|
|
411
|
-
"model-value":
|
|
412
|
-
"onUpdate:modelValue": (
|
|
471
|
+
"model-value": y.start,
|
|
472
|
+
"onUpdate:modelValue": (E) => u.value.updatePeriod(r, "start", E)
|
|
413
473
|
}, null, 8, ["aria-label", "locale", "model-value", "onUpdate:modelValue"]),
|
|
414
|
-
|
|
415
|
-
|
|
474
|
+
p("span", null, f(l(e)("menu.scheduler.dialog.sections.period.separator")), 1),
|
|
475
|
+
o(Z, {
|
|
416
476
|
class: "flex-1",
|
|
417
477
|
"aria-label": l(e)("menu.scheduler.accessibility.period_end", {
|
|
418
|
-
number:
|
|
478
|
+
number: r + 1
|
|
419
479
|
}),
|
|
420
480
|
locale: l(C),
|
|
421
|
-
"model-value":
|
|
422
|
-
"onUpdate:modelValue": (
|
|
481
|
+
"model-value": y.end,
|
|
482
|
+
"onUpdate:modelValue": (E) => u.value.updatePeriod(r, "end", E)
|
|
423
483
|
}, null, 8, ["aria-label", "locale", "model-value", "onUpdate:modelValue"]),
|
|
424
|
-
|
|
484
|
+
o(k, {
|
|
425
485
|
"aria-label": l(e)("menu.scheduler.accessibility.remove_period", {
|
|
426
|
-
number:
|
|
486
|
+
number: r + 1
|
|
427
487
|
}),
|
|
428
488
|
icon: "close",
|
|
429
489
|
variant: "tertiary",
|
|
430
|
-
onClick: (
|
|
490
|
+
onClick: (E) => u.value.removePeriod(r)
|
|
431
491
|
}, null, 8, ["aria-label", "onClick"])
|
|
432
492
|
]))), 128)),
|
|
433
|
-
|
|
493
|
+
o(k, {
|
|
434
494
|
label: l(e)("menu.scheduler.dialog.sections.period.add"),
|
|
435
495
|
"prepend-icon": "add",
|
|
436
496
|
variant: "secondary",
|
|
437
|
-
onClick: t[4] || (t[4] = (
|
|
497
|
+
onClick: t[4] || (t[4] = (y) => u.value.addPeriod())
|
|
438
498
|
}, null, 8, ["label"])
|
|
439
|
-
])) :
|
|
499
|
+
])) : F("", !0)
|
|
440
500
|
];
|
|
441
501
|
}),
|
|
442
502
|
_: 1
|
|
443
503
|
}, 8, ["title"]),
|
|
444
|
-
((
|
|
504
|
+
((i = n.value) == null ? void 0 : i.autoLink.state) === "allowed" ? (s(), g(T, {
|
|
445
505
|
key: 0,
|
|
446
506
|
title: l(e)("menu.scheduler.dialog.sections.autolink.title")
|
|
447
507
|
}, {
|
|
448
|
-
default:
|
|
449
|
-
var
|
|
508
|
+
default: h(() => {
|
|
509
|
+
var m;
|
|
450
510
|
return [
|
|
451
|
-
|
|
511
|
+
o(Ve, {
|
|
452
512
|
label: l(e)("menu.scheduler.dialog.sections.autolink.label"),
|
|
453
513
|
"label-placement": "right",
|
|
454
|
-
"model-value":
|
|
514
|
+
"model-value": n.value.autoLinkEnabled,
|
|
455
515
|
sublabel: l(e)("menu.scheduler.dialog.sections.autolink.sublabel"),
|
|
456
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
516
|
+
"onUpdate:modelValue": t[5] || (t[5] = (v) => u.value.setAutoLinkEnabled(v))
|
|
457
517
|
}, null, 8, ["label", "model-value", "sublabel"]),
|
|
458
|
-
|
|
459
|
-
(
|
|
460
|
-
|
|
461
|
-
|
|
518
|
+
n.value.autoLinkEnabled ? (s(), c("div", sl, [
|
|
519
|
+
(m = n.value.autoLinkFilters) != null && m.length ? (s(), c("div", ol, [
|
|
520
|
+
p("span", null, f(l(e)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
|
|
521
|
+
o(Se, {
|
|
462
522
|
content: l(e)("menu.scheduler.dialog.sections.autolink.tooltip"),
|
|
463
523
|
variant: "plain",
|
|
464
524
|
"z-index": 999
|
|
465
525
|
}, {
|
|
466
|
-
default:
|
|
467
|
-
|
|
526
|
+
default: h(() => [
|
|
527
|
+
o(Le, {
|
|
468
528
|
name: "help",
|
|
469
529
|
outline: "",
|
|
470
530
|
class: "ml-4"
|
|
@@ -472,17 +532,17 @@ const Be = {
|
|
|
472
532
|
]),
|
|
473
533
|
_: 1
|
|
474
534
|
}, 8, ["content"])
|
|
475
|
-
])) : (
|
|
476
|
-
(
|
|
477
|
-
var
|
|
478
|
-
return
|
|
479
|
-
key:
|
|
535
|
+
])) : (s(), c("p", nl, f(l(e)("menu.scheduler.dialog.sections.autolink.all_items")), 1)),
|
|
536
|
+
(s(!0), c(V, null, S(n.value.autoLinkFilters ?? [], (v, d) => {
|
|
537
|
+
var y;
|
|
538
|
+
return s(), c("div", {
|
|
539
|
+
key: d,
|
|
480
540
|
class: "flex w-full items-center gap-8"
|
|
481
541
|
}, [
|
|
482
|
-
|
|
483
|
-
|
|
542
|
+
p("div", ul, [
|
|
543
|
+
o(ee, {
|
|
484
544
|
"aria-label": l(e)("menu.scheduler.accessibility.filter_type", {
|
|
485
|
-
number:
|
|
545
|
+
number: d + 1
|
|
486
546
|
}),
|
|
487
547
|
items: [
|
|
488
548
|
{
|
|
@@ -498,109 +558,109 @@ const Be = {
|
|
|
498
558
|
value: "category"
|
|
499
559
|
}
|
|
500
560
|
],
|
|
501
|
-
"model-value":
|
|
502
|
-
"onUpdate:modelValue": (
|
|
503
|
-
|
|
504
|
-
|
|
561
|
+
"model-value": v.type,
|
|
562
|
+
"onUpdate:modelValue": (r) => u.value.setAutoLinkFilterType(
|
|
563
|
+
d,
|
|
564
|
+
r
|
|
505
565
|
)
|
|
506
566
|
}, null, 8, ["aria-label", "items", "model-value", "onUpdate:modelValue"]),
|
|
507
|
-
|
|
508
|
-
|
|
567
|
+
p("span", null, f(l(e)("menu.scheduler.dialog.sections.filter.matches")), 1),
|
|
568
|
+
v.type === "category" ? (s(), g(ee, {
|
|
509
569
|
key: 0,
|
|
510
570
|
"aria-label": l(e)("menu.scheduler.accessibility.filter_category", {
|
|
511
|
-
number:
|
|
571
|
+
number: d + 1
|
|
512
572
|
}),
|
|
513
|
-
items: (((
|
|
514
|
-
(
|
|
515
|
-
label:
|
|
516
|
-
value:
|
|
573
|
+
items: (((y = n.value) == null ? void 0 : y.autoLinkCategoryOptions) ?? []).map(
|
|
574
|
+
(r) => ({
|
|
575
|
+
label: r.kind === "addon" ? l(e)("menu.tree_editor.labels.addon") : r.name,
|
|
576
|
+
value: r.id
|
|
517
577
|
})
|
|
518
578
|
),
|
|
519
|
-
"model-value": [...
|
|
579
|
+
"model-value": [...v.values],
|
|
520
580
|
multiselect: "",
|
|
521
581
|
placeholder: l(e)(
|
|
522
582
|
"menu.scheduler.dialog.sections.filter.placeholder.category"
|
|
523
583
|
),
|
|
524
|
-
"onUpdate:modelValue": (
|
|
525
|
-
|
|
526
|
-
|
|
584
|
+
"onUpdate:modelValue": (r) => u.value.setAutoLinkFilterValues(
|
|
585
|
+
d,
|
|
586
|
+
r ?? []
|
|
527
587
|
)
|
|
528
|
-
}, null, 8, ["aria-label", "items", "model-value", "placeholder", "onUpdate:modelValue"])) : (
|
|
588
|
+
}, null, 8, ["aria-label", "items", "model-value", "placeholder", "onUpdate:modelValue"])) : (s(), g(X, {
|
|
529
589
|
key: 1,
|
|
530
590
|
class: "flex-1",
|
|
531
|
-
"model-value":
|
|
532
|
-
"onUpdate:modelValue": (
|
|
591
|
+
"model-value": v.values.join(", "),
|
|
592
|
+
"onUpdate:modelValue": (r) => u.value.setAutoLinkCodeFilterInput(d, r)
|
|
533
593
|
}, {
|
|
534
|
-
label:
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
number:
|
|
594
|
+
label: h(() => [
|
|
595
|
+
Te(f(l(e)("menu.scheduler.dialog.sections.filter.types.code")) + " ", 1),
|
|
596
|
+
p("span", dl, f(l(e)("menu.scheduler.accessibility.filter_code", {
|
|
597
|
+
number: d + 1
|
|
538
598
|
})), 1)
|
|
539
599
|
]),
|
|
540
600
|
_: 2
|
|
541
601
|
}, 1032, ["model-value", "onUpdate:modelValue"]))
|
|
542
602
|
]),
|
|
543
|
-
|
|
603
|
+
o(k, {
|
|
544
604
|
"aria-label": l(e)("menu.scheduler.accessibility.remove_filter", {
|
|
545
|
-
number:
|
|
605
|
+
number: d + 1
|
|
546
606
|
}),
|
|
547
607
|
icon: "delete",
|
|
548
608
|
variant: "secondary",
|
|
549
|
-
onClick: (
|
|
609
|
+
onClick: (r) => u.value.removeAutoLinkFilter(d)
|
|
550
610
|
}, null, 8, ["aria-label", "onClick"])
|
|
551
611
|
]);
|
|
552
612
|
}), 128)),
|
|
553
|
-
|
|
613
|
+
o(k, {
|
|
554
614
|
label: l(e)("menu.scheduler.dialog.sections.filter.add"),
|
|
555
615
|
"prepend-icon": "add",
|
|
556
616
|
variant: "secondary",
|
|
557
|
-
onClick: t[6] || (t[6] = (
|
|
617
|
+
onClick: t[6] || (t[6] = (v) => u.value.addAutoLinkFilter())
|
|
558
618
|
}, null, 8, ["label"])
|
|
559
|
-
])) :
|
|
619
|
+
])) : F("", !0)
|
|
560
620
|
];
|
|
561
621
|
}),
|
|
562
622
|
_: 1
|
|
563
|
-
}, 8, ["title"])) :
|
|
564
|
-
|
|
565
|
-
|
|
623
|
+
}, 8, ["title"])) : F("", !0),
|
|
624
|
+
p("div", il, [
|
|
625
|
+
o(T, {
|
|
566
626
|
title: l(e)("menu.scheduler.dialog.sections.products.title")
|
|
567
627
|
}, {
|
|
568
|
-
"append-title":
|
|
569
|
-
|
|
628
|
+
"append-title": h(() => [
|
|
629
|
+
o(k, {
|
|
570
630
|
"border-color": "primary",
|
|
571
631
|
label: l(e)("menu.scheduler.dialog.sections.products.link"),
|
|
572
632
|
"prepend-icon": "link",
|
|
573
633
|
size: "md",
|
|
574
634
|
"text-color": "primary",
|
|
575
635
|
variant: "secondary",
|
|
576
|
-
onClick: t[7] || (t[7] = (
|
|
636
|
+
onClick: t[7] || (t[7] = (m) => I.value = !0)
|
|
577
637
|
}, null, 8, ["label"])
|
|
578
638
|
]),
|
|
579
|
-
default:
|
|
580
|
-
var
|
|
639
|
+
default: h(() => {
|
|
640
|
+
var m, v;
|
|
581
641
|
return [
|
|
582
|
-
(
|
|
583
|
-
(
|
|
584
|
-
key:
|
|
642
|
+
(m = n.value) != null && m.linkedProductGroups.length ? (s(), c("div", rl, [
|
|
643
|
+
(s(!0), c(V, null, S(((v = n.value) == null ? void 0 : v.linkedProductGroups) ?? [], (d) => (s(), c("div", {
|
|
644
|
+
key: d.id ?? "uncategorised"
|
|
585
645
|
}, [
|
|
586
|
-
|
|
587
|
-
(
|
|
588
|
-
key:
|
|
646
|
+
p("p", cl, f(d.isSynthetic ? l(e)("menu.tree_editor.labels.addon") : d.name), 1),
|
|
647
|
+
(s(!0), c(V, null, S(d.products, (y) => (s(), c("div", {
|
|
648
|
+
key: y.id,
|
|
589
649
|
class: "flex items-center justify-between border-b border-fm-color-neutral-gray-200 px-16 py-12"
|
|
590
650
|
}, [
|
|
591
|
-
|
|
592
|
-
|
|
651
|
+
p("span", null, f(y.name), 1),
|
|
652
|
+
o(k, {
|
|
593
653
|
"aria-label": l(e)("menu.scheduler.accessibility.remove_product", {
|
|
594
|
-
name:
|
|
654
|
+
name: y.name
|
|
595
655
|
}),
|
|
596
656
|
icon: "delete",
|
|
597
657
|
"text-color": "neutral-gray-400",
|
|
598
658
|
variant: "tertiary",
|
|
599
|
-
onClick: (
|
|
659
|
+
onClick: (r) => u.value.unlinkProduct(y.id)
|
|
600
660
|
}, null, 8, ["aria-label", "onClick"])
|
|
601
661
|
]))), 128))
|
|
602
662
|
]))), 128))
|
|
603
|
-
])) :
|
|
663
|
+
])) : F("", !0)
|
|
604
664
|
];
|
|
605
665
|
}),
|
|
606
666
|
_: 1
|
|
@@ -611,13 +671,13 @@ const Be = {
|
|
|
611
671
|
}),
|
|
612
672
|
_: 1
|
|
613
673
|
}, 8, ["modelValue", "header", "is-container", "is-container-props"]),
|
|
614
|
-
|
|
615
|
-
modelValue:
|
|
616
|
-
"onUpdate:modelValue": t[10] || (t[10] = (
|
|
617
|
-
catalogue: ((
|
|
618
|
-
"selected-product-ids": ((
|
|
674
|
+
o(ze, {
|
|
675
|
+
modelValue: I.value,
|
|
676
|
+
"onUpdate:modelValue": t[10] || (t[10] = (i) => I.value = i),
|
|
677
|
+
catalogue: ((ae = n.value) == null ? void 0 : ae.productCatalogue) ?? null,
|
|
678
|
+
"selected-product-ids": ((te = n.value) == null ? void 0 : te.linkedProductIds) ?? [],
|
|
619
679
|
title: l(e)("menu.scheduler.dialog.sections.products.link"),
|
|
620
|
-
onSubmit:
|
|
680
|
+
onSubmit: ye
|
|
621
681
|
}, null, 8, ["modelValue", "catalogue", "selected-product-ids", "title"])
|
|
622
682
|
];
|
|
623
683
|
}),
|
|
@@ -625,13 +685,13 @@ const Be = {
|
|
|
625
685
|
}, 8, ["heading"]);
|
|
626
686
|
};
|
|
627
687
|
}
|
|
628
|
-
}),
|
|
688
|
+
}), xl = /* @__PURE__ */ ie({
|
|
629
689
|
__name: "Scheduler",
|
|
630
|
-
setup(
|
|
631
|
-
const w =
|
|
632
|
-
return (C, e) => (
|
|
690
|
+
setup(N) {
|
|
691
|
+
const w = Oe();
|
|
692
|
+
return (C, e) => (s(), g(pl, { sdk: l(w) }, null, 8, ["sdk"]));
|
|
633
693
|
}
|
|
634
694
|
});
|
|
635
695
|
export {
|
|
636
|
-
|
|
696
|
+
xl as default
|
|
637
697
|
};
|