@feedmepos/mf-menu 0.32.61-dev.3 → 0.32.63-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-TgWTfhbY.js → App-DhfTGlgM.js} +466 -461
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BeW-aCRL.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-C8il14gy.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js} +8 -8
- package/dist/{Catalog-hnhpn9Of.js → Catalog-WuZJfM6l.js} +78 -78
- package/dist/{Category-DIubPG8Y.js → Category-BeIo7XWY.js} +20 -20
- package/dist/{Category-wXfspM5v.js → Category-D-cQQCPS.js} +19 -19
- package/dist/{CookingGuide-CR1cBZ3S.js → CookingGuide-B-yvD9ZA.js} +88 -88
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DlpZfbx-.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js} +1 -1
- package/dist/{Group-DbG3cLfp.js → Group-13i5igrS.js} +5 -5
- package/dist/{Group-DTzbprcr.js → Group-CY8lUzQG.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CMEdW613.js → Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js} +95 -94
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-aLcNgJLb.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js} +13 -13
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CnChdePY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js} +219 -220
- package/dist/{Ingredient-BBGzGfS2.js → Ingredient-vrUOW6gk.js} +49 -49
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B9CfZ7oA.js → InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js} +2 -2
- package/dist/{LinkProductSideSheet-CLd4LEy4.js → LinkProductSideSheet-DMbJG6wf.js} +8 -8
- package/dist/{MenuSetting-BuS9_e0y.js → MenuSetting-Di2xwm00.js} +10 -10
- package/dist/{OrderPacing-2QPouAql.js → OrderPacing-CCe-IcGO.js} +28 -28
- package/dist/{PrintRoute-D-SiyoaP.js → PrintRoute-CcfObcHY.js} +27 -27
- package/dist/{Product-nmlc3rrr.js → Product-ChUVnMgG.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DYn_bqcn.js → Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js} +153 -152
- package/dist/{ProductInternalTools-BgDSe1XP.js → ProductInternalTools-D9HXhgo5.js} +80 -79
- package/dist/{Products-BPa6wC-o.js → Products-Bly2ktEC.js} +82 -81
- package/dist/{Publish-DbI1wemN.js → Publish-C8ubb8Qf.js} +113 -113
- package/dist/{Recipe-CAgscHCL.js → Recipe-BpMRLsyO.js} +32 -32
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DNG5WX4W.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DNk48PUl.js → RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js} +313 -312
- package/dist/{Scheduler-C8TXHcb2.js → Scheduler-CiB4b2Fn.js} +9 -9
- package/dist/{ServingSequence-CQzQWvUA.js → ServingSequence-BlcyW-dv.js} +18 -18
- package/dist/{Setting-gun4ZUQ4.js → Setting-DqkL6YYU.js} +31 -31
- package/dist/{Subcategory-CqcWpp94.js → Subcategory-B4Jg_wtT.js} +43 -43
- package/dist/{Takeaway-DV_ND3Ts.js → Takeaway-5G3f7jWT.js} +1 -1
- package/dist/{Takeaway-DsRU9wBO.js → Takeaway-5rFPYYNA.js} +16 -16
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-GMA7-Hrb.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js} +23 -23
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-DAwsbPs4.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DYVBVDBy.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js} +8 -9
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +5836 -0
- package/dist/{Unit-BcPn6opY.js → Unit-CAkdmQLg.js} +2 -2
- package/dist/{Variant-Wkd9mHWk.js → Variant-BbLQqbAK.js} +13 -13
- package/dist/{_id_-CuOgqnZ3.js → _id_-Dzacr40I.js} +13 -13
- package/dist/{app-BsNMWUZ9.js → app-4yWs09Fr.js} +495 -495
- package/dist/{app-kS8tUq_w.js → app-Deov1985.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/media.d.ts +161 -0
- package/dist/apps/mf-menu/src/app.d.ts +340 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +150 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/CustomDimensionDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +16 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +42 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +75 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +3 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
- package/dist/apps/mf-menu/src/composable/remyImageTarget.d.ts +5 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +14 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
- package/dist/apps/mf-menu/src/types/rule.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +3 -2
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +8 -8
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-CHvHJGH9.js → linked-status-B2WLhKkV.js} +4 -4
- package/dist/assets/{menu-export-Bd2A9o3e.js → menu-export-Dcw5a_dN.js} +3 -3
- package/dist/assets/{override-menu-cifFGmrk.js → override-menu-cBe2aMY6.js} +4 -4
- package/dist/assets/{validate-menu-B8cp1kCt.js → validate-menu-BM-5GK85.js} +3 -3
- package/dist/{catalog-BxfmkFrE.js → catalog-DKygS2Cs.js} +6 -6
- package/dist/{catalogSetting-ebS4mr1i.js → catalogSetting-Bn2TplvM.js} +1 -1
- package/dist/currency-DXgNHtK8.js +7 -0
- package/dist/dayjs.min-DpX65tgj.js +7 -0
- package/dist/discardConfirm-DZwzKO-Q.js +3704 -0
- package/dist/{index-CUrfs4iN.js → index-B48KLyqg.js} +61 -61
- package/dist/{index-BxvnAb0l.js → index-BEocaqRK.js} +30 -30
- package/dist/index-K-MBqJJo.js +222 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-C3c2B-qJ.js → index.vue_vue_type_script_setup_true_lang-Nl505vPi.js} +44918 -51563
- package/dist/item-Da3ArD-G.js +13213 -0
- package/dist/{jszip.min-DccvCJln.js → jszip.min-Cc2eR4Cq.js} +52 -52
- package/dist/linkProducts-GNuUxFEE.js +331 -0
- package/dist/{memberPricing-FatZi_6k.js → memberPricing-T-jr7tn1.js} +1 -1
- package/dist/{menu-DcPMF0nf.js → menu-DSDRAil-.js} +1 -1
- package/dist/{menuV2-CVo-19H-.js → menuV2-fTlJdjxi.js} +89 -87
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-CWDYwJcW.js → order_pacing-Dgo1fySS.js} +17 -17
- package/dist/packages/shared/src/helpers/agentCode.d.ts +9 -0
- package/dist/{priceTier-C58Ixr5m.js → priceTier-aT_gIfrN.js} +3 -3
- package/dist/{rules-DwomOoC9.js → rules-Cx2hkV20.js} +8 -8
- package/dist/{scheduler-CJcxPgeF.js → scheduler-Bd-q7yF8.js} +62 -62
- package/dist/{toExcel-DjWt9SEm.js → toExcel-qfjR83qT.js} +2 -2
- package/dist/{unit-KhTILQfe.js → unit-n1T9grbM.js} +64 -64
- package/package.json +3 -3
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-C5hn1NYM.js +0 -399
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BFUOqfDO.js +0 -6058
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/thumbnailUpload.d.ts +0 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +0 -38
- package/dist/currency-BM5m7MDE.js +0 -7
- package/dist/dayjs.min-X4vHGjJn.js +0 -7
- package/dist/discardConfirm-BHni0LNu.js +0 -28
- package/dist/index-CisutoS9.js +0 -156
- package/dist/item-26-Gw7Ug.js +0 -9098
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
|
|
2
2
|
import { useI18n as m } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as k,
|
|
5
|
-
const
|
|
4
|
+
import { u as k, b as M } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
5
|
+
const b = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
8
8
|
const { t: e } = m(), o = g(""), { emitData: t } = w();
|
|
@@ -22,7 +22,7 @@ const v = /* @__PURE__ */ d({
|
|
|
22
22
|
function i() {
|
|
23
23
|
o.open({
|
|
24
24
|
title: e("menu.price_tier.add_price_group"),
|
|
25
|
-
contentComponent:
|
|
25
|
+
contentComponent: b,
|
|
26
26
|
primaryActions: {
|
|
27
27
|
text: e("menu.category.manager.dialog.add.action"),
|
|
28
28
|
close: !1
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as I, watch as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as I, watch as P, ref as E, computed as w, resolveComponent as _, createElementBlock as h, openBlock as F, Fragment as M, createVNode as f, unref as g, withCtx as b, createElementVNode as O, renderList as q, toDisplayString as S } from "vue";
|
|
2
|
+
import { g as v, h as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
3
3
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as k } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as R } from "./menuV2-
|
|
6
|
-
import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as R } from "./menuV2-fTlJdjxi.js";
|
|
6
|
+
import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js";
|
|
7
7
|
import { g as N } from "./translation-fNx6yEpy.js";
|
|
8
8
|
const B = { class: "py-12 px-16 space-y-4" }, U = /* @__PURE__ */ I({
|
|
9
9
|
__name: "AddSubcategoryDialogContentComponent",
|
|
@@ -12,7 +12,7 @@ const B = { class: "py-12 px-16 space-y-4" }, U = /* @__PURE__ */ I({
|
|
|
12
12
|
},
|
|
13
13
|
setup(t) {
|
|
14
14
|
const r = t, { t: m } = D();
|
|
15
|
-
|
|
15
|
+
P(
|
|
16
16
|
() => r.initialValue,
|
|
17
17
|
(l) => {
|
|
18
18
|
n.value = l ?? "";
|
|
@@ -39,7 +39,7 @@ const B = { class: "py-12 px-16 space-y-4" }, U = /* @__PURE__ */ I({
|
|
|
39
39
|
function p(l) {
|
|
40
40
|
n.value = l;
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return P(
|
|
43
43
|
[n, s],
|
|
44
44
|
([l, o]) => {
|
|
45
45
|
V({ name: l, name_locale: o });
|
|
@@ -49,7 +49,7 @@ const B = { class: "py-12 px-16 space-y-4" }, U = /* @__PURE__ */ I({
|
|
|
49
49
|
}
|
|
50
50
|
), (l, o) => {
|
|
51
51
|
const T = _("fm-button"), y = _("FmTooltip"), d = _("fm-text-field"), c = _("FmForm");
|
|
52
|
-
return
|
|
52
|
+
return F(), h(M, null, [
|
|
53
53
|
f(c, {
|
|
54
54
|
onValidationSuccess: o[2] || (o[2] = (i) => g(x)("primary"))
|
|
55
55
|
}, {
|
|
@@ -70,7 +70,7 @@ const B = { class: "py-12 px-16 space-y-4" }, U = /* @__PURE__ */ I({
|
|
|
70
70
|
}, {
|
|
71
71
|
content: b(() => [
|
|
72
72
|
O("div", B, [
|
|
73
|
-
(
|
|
73
|
+
(F(!0), h(M, null, q(a.value, (i) => (F(), h("div", {
|
|
74
74
|
key: i.locale
|
|
75
75
|
}, S(i.name) + " (" + S(i.localeDisplay) + ") ", 1))), 128))
|
|
76
76
|
])
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as re, computed as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as re, computed as M, resolveComponent as v, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as V, unref as n, toDisplayString as O, createElementVNode as _, withCtx as p, Fragment as R, renderList as N, createBlock as q, ref as B, Transition as de, createTextVNode as fe } from "vue";
|
|
2
|
+
import { u as ye, l as _e } from "./discardConfirm-DZwzKO-Q.js";
|
|
3
|
+
import { d as w, v as $, u as he, F as ge, x as L, g as se, h as ie, M as ce } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
3
4
|
import { useI18n as me } from "@feedmepos/mf-common";
|
|
4
|
-
import { components as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import { L as Fe } from "./LinkProductSideSheet-CLd4LEy4.js";
|
|
5
|
+
import { components as Ve } from "@feedmepos/ui-library";
|
|
6
|
+
import { _ as ke } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
7
|
+
import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js";
|
|
8
|
+
import { u as Fe } from "./menu-DSDRAil-.js";
|
|
9
|
+
import { L as be } from "./LinkProductSideSheet-DMbJG6wf.js";
|
|
10
10
|
const xe = { class: "space-y-8" }, Ce = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "space-y-16"
|
|
@@ -19,8 +19,8 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
19
19
|
modelValue: {}
|
|
20
20
|
},
|
|
21
21
|
emits: ["update:modelValue"],
|
|
22
|
-
setup(g, { emit:
|
|
23
|
-
const f = g, e =
|
|
22
|
+
setup(g, { emit: J }) {
|
|
23
|
+
const f = g, e = J, { categories: W } = Fe(), X = M(() => W.value.map((s) => s.id === null ? { label: s.name, value: "" } : {
|
|
24
24
|
label: s.name,
|
|
25
25
|
value: s.id
|
|
26
26
|
})), Z = (s) => {
|
|
@@ -45,13 +45,13 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
45
45
|
}, te = (s, r) => {
|
|
46
46
|
const c = w(f.modelValue || []);
|
|
47
47
|
c[s].value = r, e("update:modelValue", c);
|
|
48
|
-
},
|
|
48
|
+
}, I = (s, r, c) => {
|
|
49
49
|
const E = w(f.modelValue || []);
|
|
50
50
|
E[s].value[r] = c, e("update:modelValue", E);
|
|
51
51
|
};
|
|
52
52
|
return (s, r) => {
|
|
53
|
-
var z,
|
|
54
|
-
const c = v("FmSwitch"), E = v("FmIcon"), ae = v("FmTooltip"), K = v("FmSelect"), U = v("FmButton"),
|
|
53
|
+
var z, G;
|
|
54
|
+
const c = v("FmSwitch"), E = v("FmIcon"), ae = v("FmTooltip"), K = v("FmSelect"), U = v("FmButton"), j = v("FmTextField");
|
|
55
55
|
return u(), d("div", xe, [
|
|
56
56
|
t(c, {
|
|
57
57
|
"model-value": !!f.modelValue,
|
|
@@ -63,7 +63,7 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
63
63
|
}, null, 8, ["model-value", "label", "sublabel"]),
|
|
64
64
|
f.modelValue ? (u(), d("div", Ce, [
|
|
65
65
|
((z = f.modelValue) == null ? void 0 : z.length) === 0 ? (u(), d("div", Se, O(n(m)("menu.scheduler.dialog.sections.autolink.all_items")), 1)) : V("", !0),
|
|
66
|
-
((
|
|
66
|
+
((G = f.modelValue) == null ? void 0 : G.length) > 0 ? (u(), d("div", we, [
|
|
67
67
|
_("div", null, O(n(m)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
|
|
68
68
|
t(ae, {
|
|
69
69
|
content: n(m)("menu.scheduler.dialog.sections.autolink.tooltip"),
|
|
@@ -80,38 +80,38 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
80
80
|
_: 1
|
|
81
81
|
}, 8, ["content"])
|
|
82
82
|
])) : V("", !0),
|
|
83
|
-
(u(!0), d(R, null,
|
|
83
|
+
(u(!0), d(R, null, N(f.modelValue || [], (T, k) => (u(), d("div", { key: k }, [
|
|
84
84
|
_("div", Pe, [
|
|
85
85
|
_("div", Ee, [
|
|
86
86
|
t(K, {
|
|
87
87
|
"model-value": T.type,
|
|
88
88
|
items: ee,
|
|
89
|
-
"onUpdate:modelValue": (
|
|
89
|
+
"onUpdate:modelValue": (F) => Y(k, F)
|
|
90
90
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
91
91
|
_("div", null, O(n(m)("menu.scheduler.dialog.sections.filter.matches")), 1),
|
|
92
92
|
T.type === "category" ? (u(), q(K, {
|
|
93
93
|
key: 0,
|
|
94
94
|
"model-value": T.value,
|
|
95
|
-
"onUpdate:modelValue": (
|
|
95
|
+
"onUpdate:modelValue": (F) => te(k, F),
|
|
96
96
|
items: X.value || [],
|
|
97
97
|
multiselect: "",
|
|
98
98
|
placeholder: n(m)("menu.scheduler.dialog.sections.filter.placeholder.category")
|
|
99
99
|
}, null, 8, ["model-value", "onUpdate:modelValue", "items", "placeholder"])) : (u(), d(R, { key: 1 }, [
|
|
100
|
-
(u(!0), d(R, null,
|
|
100
|
+
(u(!0), d(R, null, N(T.value, (F, C) => (u(), d("div", {
|
|
101
101
|
class: "flex items-center gap-4",
|
|
102
102
|
key: C
|
|
103
103
|
}, [
|
|
104
104
|
C > 0 ? (u(), d("div", Ue, O(n(m)("menu.scheduler.dialog.sections.filter.or")), 1)) : V("", !0),
|
|
105
105
|
_("div", Te, [
|
|
106
|
-
t(
|
|
107
|
-
"model-value":
|
|
108
|
-
"onUpdate:modelValue": (
|
|
106
|
+
t(j, {
|
|
107
|
+
"model-value": F,
|
|
108
|
+
"onUpdate:modelValue": (H) => I(k, C, H)
|
|
109
109
|
}, {
|
|
110
110
|
append: p(() => [
|
|
111
111
|
T.value.length > 1 ? (u(), q(U, {
|
|
112
112
|
key: 0,
|
|
113
113
|
icon: "close",
|
|
114
|
-
onClick: (
|
|
114
|
+
onClick: (H) => P(k, C),
|
|
115
115
|
variant: "tertiary"
|
|
116
116
|
}, null, 8, ["onClick"])) : V("", !0)
|
|
117
117
|
]),
|
|
@@ -121,7 +121,7 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
121
121
|
]))), 128)),
|
|
122
122
|
t(U, {
|
|
123
123
|
icon: "add",
|
|
124
|
-
onClick: (
|
|
124
|
+
onClick: (F) => a(k),
|
|
125
125
|
variant: "tertiary"
|
|
126
126
|
}, null, 8, ["onClick"])
|
|
127
127
|
], 64))
|
|
@@ -129,7 +129,7 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
129
129
|
t(U, {
|
|
130
130
|
variant: "secondary",
|
|
131
131
|
icon: "delete",
|
|
132
|
-
onClick: (
|
|
132
|
+
onClick: (F) => x(k)
|
|
133
133
|
}, null, 8, ["onClick"])
|
|
134
134
|
])
|
|
135
135
|
]))), 128)),
|
|
@@ -148,10 +148,10 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
148
148
|
}, Re = { class: "flex flex-wrap gap-8" }, Ae = {
|
|
149
149
|
key: 0,
|
|
150
150
|
class: "pl-32 flex flex-col items-start gap-16"
|
|
151
|
-
},
|
|
151
|
+
}, Me = { class: "w-full" }, Ne = {
|
|
152
152
|
key: 0,
|
|
153
153
|
class: "mt-8"
|
|
154
|
-
},
|
|
154
|
+
}, Ie = { class: "text-red-500 text-sm" }, ze = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Be = { class: "px-16 py-8 flex-1" }, Le = { class: "px-16 py-8" }, qe = { class: "flex gap-8 items-center justify-start" }, Ze = /* @__PURE__ */ re({
|
|
155
155
|
__name: "SchedulerDialog",
|
|
156
156
|
props: {
|
|
157
157
|
categorizedItems: {
|
|
@@ -164,11 +164,11 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
emits: ["onComplete"],
|
|
167
|
-
setup(g, { expose:
|
|
167
|
+
setup(g, { expose: J, emit: f }) {
|
|
168
168
|
const { t: e } = me(), W = g;
|
|
169
|
-
|
|
169
|
+
J({
|
|
170
170
|
show: te,
|
|
171
|
-
hide:
|
|
171
|
+
hide: I
|
|
172
172
|
});
|
|
173
173
|
const X = {
|
|
174
174
|
[$.enum.monday]: e("menu.scheduler.days.monday"),
|
|
@@ -190,11 +190,11 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
190
190
|
weekDay: []
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
const ee =
|
|
193
|
+
const ee = he(), le = M(() => ee.version === ge.enum.v4), x = B("all"), Y = B(m()), a = B(m()), P = B(!1);
|
|
194
194
|
function te(i) {
|
|
195
195
|
a.value = i ? w(i) : m(), Y.value = w(a.value), x.value = a.value.timePeriod.length === 0 ? "all" : "custom", P.value = !0;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function I() {
|
|
198
198
|
P.value = !1;
|
|
199
199
|
}
|
|
200
200
|
function s() {
|
|
@@ -226,16 +226,16 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
226
226
|
if (i.length <= 1) return null;
|
|
227
227
|
for (let l = 0; l < i.length; l++)
|
|
228
228
|
for (let y = l + 1; y < i.length; y++) {
|
|
229
|
-
const h = i[l], D = i[y], oe = E(h.start, h.end),
|
|
229
|
+
const h = i[l], D = i[y], oe = E(h.start, h.end), Q = E(D.start, D.end);
|
|
230
230
|
for (const S of oe)
|
|
231
|
-
for (const ne of
|
|
231
|
+
for (const ne of Q)
|
|
232
232
|
if (ae(S, ne))
|
|
233
233
|
return e("menu.scheduler.dialog.sections.period.overlap");
|
|
234
234
|
}
|
|
235
235
|
return null;
|
|
236
236
|
}
|
|
237
237
|
const U = B();
|
|
238
|
-
function
|
|
238
|
+
function j() {
|
|
239
239
|
return {
|
|
240
240
|
...a.value,
|
|
241
241
|
timePeriod: x.value === "all" ? [] : a.value.timePeriod,
|
|
@@ -243,37 +243,37 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
245
|
async function z() {
|
|
246
|
-
C.value || (Z("onComplete",
|
|
246
|
+
C.value || (Z("onComplete", j()), I());
|
|
247
247
|
}
|
|
248
|
-
const
|
|
248
|
+
const G = M(() => a.value._id ? e("menu.scheduler.dialog.update.title") : e("menu.scheduler.dialog.add.title")), T = M(() => a.value._id ? e("menu.scheduler.dialog.update.action") : e("menu.scheduler.dialog.add.action"));
|
|
249
249
|
function k(i) {
|
|
250
250
|
a.value.items = a.value.items.filter((l) => l._id !== i);
|
|
251
251
|
}
|
|
252
|
-
const
|
|
252
|
+
const F = M(() => W.categorizedItems.reduce((i, l) => {
|
|
253
253
|
const y = l.items.filter(
|
|
254
254
|
(h) => a.value.items.some(({ _id: D }) => h._id === D)
|
|
255
255
|
);
|
|
256
256
|
return y.length && i.push({ ...l, items: y }), i;
|
|
257
|
-
}, [])), C =
|
|
258
|
-
() => !
|
|
257
|
+
}, [])), C = M(() => x.value === "custom" && a.value.timePeriod.length > 0 ? K(a.value.timePeriod) : null), H = ye(
|
|
258
|
+
() => !_e.isEqual(Y.value, j()),
|
|
259
259
|
() => {
|
|
260
260
|
P.value = !1;
|
|
261
261
|
}
|
|
262
262
|
);
|
|
263
263
|
return (i, l) => {
|
|
264
|
-
const y = v("FmTextField"), h = v("FmRadio"), D = v("FmRadioGroup"), oe = v("FmCheckbox"),
|
|
264
|
+
const y = v("FmTextField"), h = v("FmRadio"), D = v("FmRadioGroup"), oe = v("FmCheckbox"), Q = v("FmTimePicker"), S = v("FmButton"), ne = v("FmSpacer"), pe = v("FmForm"), ve = v("FmSideSheet");
|
|
265
265
|
return u(), q(ve, {
|
|
266
266
|
modelValue: P.value,
|
|
267
267
|
"onUpdate:modelValue": l[7] || (l[7] = (o) => P.value = o),
|
|
268
|
-
header:
|
|
268
|
+
header: G.value,
|
|
269
269
|
"max-width": 560,
|
|
270
|
-
"is-container": n(
|
|
270
|
+
"is-container": n(Ve).FmForm,
|
|
271
271
|
"is-container-props": {
|
|
272
272
|
onValidationSuccess: z,
|
|
273
273
|
blameFormChildOnValidationFailed: !0,
|
|
274
274
|
class: "flex flex-col h-full"
|
|
275
275
|
},
|
|
276
|
-
"onOn:clickedAway": n(
|
|
276
|
+
"onOn:clickedAway": n(H)
|
|
277
277
|
}, {
|
|
278
278
|
"side-sheet-footer": p(() => [
|
|
279
279
|
_("div", qe, [
|
|
@@ -290,7 +290,7 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
290
290
|
label: n(e)("menu.scheduler.dialog.actions.cancel"),
|
|
291
291
|
size: "lg",
|
|
292
292
|
variant: "tertiary",
|
|
293
|
-
onClick:
|
|
293
|
+
onClick: I
|
|
294
294
|
}, null, 8, ["label"])
|
|
295
295
|
])
|
|
296
296
|
]),
|
|
@@ -342,12 +342,12 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
342
342
|
default: p(() => [
|
|
343
343
|
a.value.repeat === n(L).enum.weekly ? (u(), d("div", Oe, [
|
|
344
344
|
_("div", Re, [
|
|
345
|
-
(u(), d(R, null,
|
|
346
|
-
key:
|
|
345
|
+
(u(), d(R, null, N(X, (o, b) => t(oe, {
|
|
346
|
+
key: b,
|
|
347
347
|
modelValue: a.value.weekDay,
|
|
348
348
|
"onUpdate:modelValue": l[2] || (l[2] = (A) => a.value.weekDay = A),
|
|
349
349
|
label: o,
|
|
350
|
-
value:
|
|
350
|
+
value: b
|
|
351
351
|
}, null, 8, ["modelValue", "label", "value"])), 64))
|
|
352
352
|
])
|
|
353
353
|
])) : V("", !0)
|
|
@@ -376,18 +376,18 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
376
376
|
t(de, { name: "expand" }, {
|
|
377
377
|
default: p(() => [
|
|
378
378
|
x.value === "custom" ? (u(), d("div", Ae, [
|
|
379
|
-
_("div",
|
|
380
|
-
(u(!0), d(R, null,
|
|
381
|
-
key:
|
|
379
|
+
_("div", Me, [
|
|
380
|
+
(u(!0), d(R, null, N(a.value.timePeriod, (o, b) => (u(), d("div", {
|
|
381
|
+
key: b,
|
|
382
382
|
class: "w-full flex gap-8 items-center"
|
|
383
383
|
}, [
|
|
384
|
-
t(
|
|
384
|
+
t(Q, {
|
|
385
385
|
modelValue: o.start,
|
|
386
386
|
"onUpdate:modelValue": (A) => o.start = A,
|
|
387
387
|
class: "flex-1"
|
|
388
388
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
389
389
|
l[8] || (l[8] = fe(" - ")),
|
|
390
|
-
t(
|
|
390
|
+
t(Q, {
|
|
391
391
|
modelValue: o.end,
|
|
392
392
|
"onUpdate:modelValue": (A) => o.end = A,
|
|
393
393
|
class: "flex-1"
|
|
@@ -395,11 +395,11 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
395
395
|
t(S, {
|
|
396
396
|
icon: "close",
|
|
397
397
|
variant: "tertiary",
|
|
398
|
-
onClick: (A) => r(
|
|
398
|
+
onClick: (A) => r(b)
|
|
399
399
|
}, null, 8, ["onClick"])
|
|
400
400
|
]))), 128)),
|
|
401
|
-
C.value ? (u(), d("div",
|
|
402
|
-
_("div",
|
|
401
|
+
C.value ? (u(), d("div", Ne, [
|
|
402
|
+
_("div", Ie, O(C.value), 1)
|
|
403
403
|
])) : V("", !0)
|
|
404
404
|
]),
|
|
405
405
|
t(S, {
|
|
@@ -415,7 +415,7 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
415
415
|
_: 1
|
|
416
416
|
})
|
|
417
417
|
]),
|
|
418
|
-
le.value ? (u(), q(
|
|
418
|
+
le.value ? (u(), q(ke, {
|
|
419
419
|
key: 0,
|
|
420
420
|
label: n(e)("menu.scheduler.dialog.sections.autolink.title")
|
|
421
421
|
}, {
|
|
@@ -436,7 +436,7 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
436
436
|
}, {
|
|
437
437
|
"append-title": p(() => [
|
|
438
438
|
t(ne),
|
|
439
|
-
t(
|
|
439
|
+
t(be, {
|
|
440
440
|
"categorized-items": g.categorizedItems,
|
|
441
441
|
"initial-value": a.value.items,
|
|
442
442
|
onSubmit: l[5] || (l[5] = ({ items: o }) => a.value.items = o)
|
|
@@ -455,21 +455,21 @@ const xe = { class: "space-y-8" }, Ce = {
|
|
|
455
455
|
}, 8, ["categorized-items", "initial-value"])
|
|
456
456
|
]),
|
|
457
457
|
default: p(() => [
|
|
458
|
-
(u(!0), d(R, null,
|
|
458
|
+
(u(!0), d(R, null, N(F.value, (o) => (u(), d("div", {
|
|
459
459
|
key: o.id
|
|
460
460
|
}, [
|
|
461
461
|
_("div", ze, O(o.name), 1),
|
|
462
|
-
(u(!0), d(R, null,
|
|
463
|
-
key:
|
|
462
|
+
(u(!0), d(R, null, N(o.items, (b) => (u(), d("div", {
|
|
463
|
+
key: b._id,
|
|
464
464
|
class: "flex border-b border-b-gray-100 items-center"
|
|
465
465
|
}, [
|
|
466
|
-
_("div", Be, O(
|
|
466
|
+
_("div", Be, O(b.name), 1),
|
|
467
467
|
_("div", Le, [
|
|
468
468
|
t(S, {
|
|
469
469
|
icon: "delete",
|
|
470
470
|
variant: "tertiary",
|
|
471
471
|
"text-color": "neutral-gray-400",
|
|
472
|
-
onClick: () => k(
|
|
472
|
+
onClick: () => k(b._id)
|
|
473
473
|
}, null, 8, ["onClick"])
|
|
474
474
|
])
|
|
475
475
|
]))), 128))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js";
|
|
2
|
+
import "./discardConfirm-DZwzKO-Q.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|