@feedmepos/mf-hrm-portal 2.0.8-dev.19 → 2.0.8-dev.20
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/{AuditLogList-BwXO87D4.js → AuditLogList-BfcV3GuV.js} +209 -199
- package/dist/{EmployeeList-memPGU-S.js → EmployeeList-CSGpTtj-.js} +5 -5
- package/dist/{Main-DSMAqUau.js → Main-5iSh8AOp.js} +9 -9
- package/dist/{Main-N6Q7Gmy_.js → Main-BttHvrfX.js} +4 -4
- package/dist/{Main-q_gT3UIr.js → Main-C6_hymuD.js} +6 -6
- package/dist/{PermissionSetList-Bh0FqlHT.js → PermissionSetList-D-qEchys.js} +33 -33
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B3f06Kpx.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JoFnQhkL.js} +765 -765
- package/dist/{RoleList-FhNAXjI9.js → RoleList-DMC1MFbx.js} +7 -7
- package/dist/{TeamMemberList-kQy-NgkT.js → TeamMemberList-CFGAYF8K.js} +45 -45
- package/dist/{TimesheetList-BrQUH58D.js → TimesheetList-BYT7Nmjf.js} +7 -7
- package/dist/{app-DG3qS1TM.js → app-D8vTftyA.js} +1962 -1232
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-IQNr_jJN.js → dayjs.min-B5H5x-Tu.js} +1 -1
- package/dist/{employee-AAKiSW7R.js → employee-BE5Sm7cX.js} +4 -4
- package/dist/{index-FoKQ8_0w.js → index-D0zaceK9.js} +12 -12
- package/dist/{index-CRKGw084.js → index-DNLkGHeZ.js} +1 -1
- package/dist/{iteration-D1Az4IpE.js → iteration-AxipbNoR.js} +1 -1
- package/dist/{lodash-BPJz-8Ja.js → lodash-B4DK5U2H.js} +1 -1
- package/dist/src/views/audit-log/constants.d.ts +30 -0
- package/dist/{team-BNIF9jOa.js → team-BY_49uIG.js} +1 -1
- package/dist/{timesheet-eFbQwdWG.js → timesheet-Bq9nINdL.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-Bepv1nhX.js → useAppStore-ByKKnIVk.js} +1 -1
- package/dist/{useLoading-C7ZhUGJ-.js → useLoading-pWhsmlRR.js} +1 -1
- package/dist/{useReportPermissions-ia-Cp_6x.js → useReportPermissions-CIMFHvmS.js} +3 -3
- package/package.json +3 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as he, ref as T, computed as _, onMounted as _e, watch as ue, resolveComponent as y, createBlock as k, openBlock as v, unref as t, withCtx as b, createElementVNode as h, createVNode as p, createCommentVNode as me, createElementBlock as P, Fragment as W, renderList as ae, toDisplayString as M, h as V, createTextVNode as de, resolveDynamicComponent as ce, withModifiers as we, nextTick as pe } from "vue";
|
|
2
|
-
import { e as w } from "./iteration-
|
|
2
|
+
import { e as w } from "./iteration-AxipbNoR.js";
|
|
3
3
|
import { useI18n as ge, useCoreStore as be } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as ye, components as se, useDialog as ke, useBreakpoints as Ue, FmButtonColorThemeVariant as ve, FmButtonVariant as Le } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as Ie } from "./app-
|
|
5
|
+
import { _ as Ie } from "./app-D8vTftyA.js";
|
|
6
6
|
import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
|
-
import { e as Se, r as K, h as re, f as Pe, g as fe, a as Z } from "./index-
|
|
8
|
-
import { u as Fe } from "./useAppStore-
|
|
9
|
-
import { u as xe } from "./useReportPermissions-
|
|
7
|
+
import { e as Se, r as K, h as re, f as Pe, g as fe, a as Z } from "./index-D0zaceK9.js";
|
|
8
|
+
import { u as Fe } from "./useAppStore-ByKKnIVk.js";
|
|
9
|
+
import { u as xe } from "./useReportPermissions-CIMFHvmS.js";
|
|
10
10
|
import { u as $e, a as Te } from "./useRestaurantMap-e9fQJiLC.js";
|
|
11
|
-
import { l as ee } from "./lodash-
|
|
11
|
+
import { l as ee } from "./lodash-B4DK5U2H.js";
|
|
12
12
|
import { _ as oe, a as Be } from "./FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js";
|
|
13
|
-
import { u as De } from "./useLoading-
|
|
13
|
+
import { u as De } from "./useLoading-pWhsmlRR.js";
|
|
14
14
|
const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, Ne = { class: "space-y-8" }, Oe = { class: "space-y-8" }, Je = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "w-50 ml-5 flex flex-row items-start"
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as F, resolveComponent as _, createBlock as
|
|
1
|
+
import { defineComponent as ae, ref as F, resolveComponent as _, createBlock as C, openBlock as v, withCtx as E, createElementVNode as m, renderSlot as be, createCommentVNode as J, withModifiers as Re, nextTick as $e, createElementBlock as q, normalizeClass as Ce, createTextVNode as Ie, toDisplayString as B, computed as S, Fragment as ue, renderList as ye, createVNode as d, unref as r, watch as Me, isRef as he, createSlots as Le } from "vue";
|
|
2
2
|
import { useI18n as de, useCoreStore as ce, baseClientInstance as ge, RestaurantSelector as Ve } from "@feedmepos/mf-common";
|
|
3
3
|
import { useBreakpoints as Ne, useSnackbar as Be, useDialog as Te, components as Fe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ze, S as xe } from "./SelectFilter-DUj7GBtT.js";
|
|
5
|
-
import {
|
|
5
|
+
import { p as Se, i as qe, C as Ke, _ as Ge } from "./app-D8vTftyA.js";
|
|
6
6
|
import { _ as We } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
7
|
import { u as De } from "./useSearch-B6WK1LBB.js";
|
|
8
|
-
import { u as Je } from "./useLoading-
|
|
9
|
-
import { g as Ue, d as Oe } from "./iteration-
|
|
10
|
-
import { u as je, c as Xe, d as Qe, m as pe, j as Ae, p as we, k as Ye, l as Pe, n as Ze, o as He, s as et, q as tt, v as st, t as fe } from "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import { u as Ee } from "./useAppStore-
|
|
8
|
+
import { u as Je } from "./useLoading-pWhsmlRR.js";
|
|
9
|
+
import { g as Ue, d as Oe } from "./iteration-AxipbNoR.js";
|
|
10
|
+
import { u as je, c as Xe, d as Qe, m as pe, j as Ae, p as we, k as Ye, l as Pe, n as Ze, o as He, s as et, q as tt, v as st, t as fe } from "./index-D0zaceK9.js";
|
|
11
|
+
import "./index-DNLkGHeZ.js";
|
|
12
|
+
import { u as Ee } from "./useAppStore-ByKKnIVk.js";
|
|
13
13
|
/* empty css */
|
|
14
|
-
import { _ as ot, a as at } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { u as lt } from "./team-
|
|
14
|
+
import { _ as ot, a as at } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JoFnQhkL.js";
|
|
15
|
+
import { u as lt } from "./team-BY_49uIG.js";
|
|
16
16
|
const nt = /* @__PURE__ */ ae({
|
|
17
17
|
__name: "BottomSheetMenu",
|
|
18
18
|
setup(o) {
|
|
@@ -22,7 +22,7 @@ const nt = /* @__PURE__ */ ae({
|
|
|
22
22
|
}
|
|
23
23
|
return (s, u) => {
|
|
24
24
|
const D = _("FmButton"), N = _("FmBottomSheet");
|
|
25
|
-
return v(),
|
|
25
|
+
return v(), C(N, {
|
|
26
26
|
modelValue: f.value,
|
|
27
27
|
"onUpdate:modelValue": u[1] || (u[1] = (h) => f.value = h),
|
|
28
28
|
"dismiss-away": "",
|
|
@@ -30,7 +30,7 @@ const nt = /* @__PURE__ */ ae({
|
|
|
30
30
|
"z-index": 110
|
|
31
31
|
}, {
|
|
32
32
|
"bottom-sheet-button": E(() => [
|
|
33
|
-
s.$slots.button ? J("", !0) : (v(),
|
|
33
|
+
s.$slots.button ? J("", !0) : (v(), C(D, {
|
|
34
34
|
key: 0,
|
|
35
35
|
icon: "more_vert",
|
|
36
36
|
variant: "tertiary",
|
|
@@ -64,18 +64,18 @@ const nt = /* @__PURE__ */ ae({
|
|
|
64
64
|
return v(), q("div", rt, [
|
|
65
65
|
l.$slots.content ? J("", !0) : (v(), q("div", {
|
|
66
66
|
key: 0,
|
|
67
|
-
class:
|
|
67
|
+
class: Ce(["flex items-center", {
|
|
68
68
|
"text-fm-color-typo-disabled": f.disabled,
|
|
69
69
|
"cursor-pointer": !f.disabled,
|
|
70
70
|
"cursor-not-allowed": f.disabled,
|
|
71
71
|
[f.itemClass || ""]: f.itemClass && !f.disabled
|
|
72
72
|
}])
|
|
73
73
|
}, [
|
|
74
|
-
o.icon ? (v(),
|
|
74
|
+
o.icon ? (v(), C(u, {
|
|
75
75
|
key: 0,
|
|
76
76
|
name: o.icon
|
|
77
77
|
}, null, 8, ["name"])) : J("", !0),
|
|
78
|
-
|
|
78
|
+
Ie(" " + B(o.label), 1)
|
|
79
79
|
], 2)),
|
|
80
80
|
be(l.$slots, "content")
|
|
81
81
|
]);
|
|
@@ -90,9 +90,9 @@ const nt = /* @__PURE__ */ ae({
|
|
|
90
90
|
const f = Ne(), l = S(() => f.breakpoints.value.xs);
|
|
91
91
|
return (s, u) => {
|
|
92
92
|
const D = _("FmButton"), N = _("FmMenuItem"), h = _("FmMenu");
|
|
93
|
-
return l.value ? (v(),
|
|
93
|
+
return l.value ? (v(), C(nt, { key: 0 }, {
|
|
94
94
|
default: E(() => [
|
|
95
|
-
(v(!0), q(ue, null, ye(o.items, ({ icon: y, label: p, disabled: U, itemClass: x, onClick: O }) => (v(),
|
|
95
|
+
(v(!0), q(ue, null, ye(o.items, ({ icon: y, label: p, disabled: U, itemClass: x, onClick: O }) => (v(), C(it, {
|
|
96
96
|
key: p,
|
|
97
97
|
icon: y,
|
|
98
98
|
label: p,
|
|
@@ -104,7 +104,7 @@ const nt = /* @__PURE__ */ ae({
|
|
|
104
104
|
}, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
|
|
105
105
|
]),
|
|
106
106
|
_: 1
|
|
107
|
-
})) : (v(),
|
|
107
|
+
})) : (v(), C(h, {
|
|
108
108
|
key: 1,
|
|
109
109
|
"stop-click-propagation": "",
|
|
110
110
|
shift: !0
|
|
@@ -119,7 +119,7 @@ const nt = /* @__PURE__ */ ae({
|
|
|
119
119
|
})
|
|
120
120
|
]),
|
|
121
121
|
default: E(() => [
|
|
122
|
-
(v(!0), q(ue, null, ye(o.items, ({ label: y, disabled: p, itemClass: U, onClick: x }) => (v(),
|
|
122
|
+
(v(!0), q(ue, null, ye(o.items, ({ label: y, disabled: p, itemClass: U, onClick: x }) => (v(), C(N, {
|
|
123
123
|
key: y,
|
|
124
124
|
disabled: p,
|
|
125
125
|
label: y,
|
|
@@ -129,7 +129,7 @@ const nt = /* @__PURE__ */ ae({
|
|
|
129
129
|
}, {
|
|
130
130
|
label: E(() => [
|
|
131
131
|
m("span", {
|
|
132
|
-
class:
|
|
132
|
+
class: Ce(p ? "text-fm-color-typo-disabled" : U)
|
|
133
133
|
}, B(y), 3)
|
|
134
134
|
]),
|
|
135
135
|
_: 2
|
|
@@ -192,7 +192,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
|
|
|
192
192
|
}, xt = { class: "flex flex-col gap-24 w-full" }, St = {
|
|
193
193
|
key: 0,
|
|
194
194
|
class: "flex flex-col gap-8"
|
|
195
|
-
}, Ut = { class: "user-info-icon user-info-icon--lg" }, wt = { class: "flex-1 overflow-hidden" }, Pt = { class: "profile-displayName" }, kt = { class: "profile-email" }, Rt = { class: "profile-phone" }, $t = { key: 2 },
|
|
195
|
+
}, Ut = { class: "user-info-icon user-info-icon--lg" }, wt = { class: "flex-1 overflow-hidden" }, Pt = { class: "profile-displayName" }, kt = { class: "profile-email" }, Rt = { class: "profile-phone" }, $t = { key: 2 }, Ct = /* @__PURE__ */ ae({
|
|
196
196
|
__name: "PortalUserSearcher",
|
|
197
197
|
emits: ["invite"],
|
|
198
198
|
setup(o, { emit: f }) {
|
|
@@ -226,7 +226,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
|
|
|
226
226
|
}
|
|
227
227
|
return (g, k) => {
|
|
228
228
|
var w, R, T;
|
|
229
|
-
const L = _("FmRadio"), X = _("FmPhoneNumber"),
|
|
229
|
+
const L = _("FmRadio"), X = _("FmPhoneNumber"), I = _("FmTextField"), a = _("FmRadioGroup"), n = _("FmButton");
|
|
230
230
|
return v(), q("div", xt, [
|
|
231
231
|
O.value ? J("", !0) : (v(), q("div", St, [
|
|
232
232
|
d(a, {
|
|
@@ -238,7 +238,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
|
|
|
238
238
|
value: "phone",
|
|
239
239
|
label: r(s)("team.memberForm.searchUser.phoneNumber")
|
|
240
240
|
}, null, 8, ["label"]),
|
|
241
|
-
N.value === "phone" ? (v(),
|
|
241
|
+
N.value === "phone" ? (v(), C(X, {
|
|
242
242
|
key: 0,
|
|
243
243
|
modelValue: h.value,
|
|
244
244
|
"onUpdate:modelValue": k[0] || (k[0] = ($) => h.value = $),
|
|
@@ -249,7 +249,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
|
|
|
249
249
|
value: "email",
|
|
250
250
|
label: r(s)("team.memberForm.searchUser.email")
|
|
251
251
|
}, null, 8, ["label"]),
|
|
252
|
-
N.value === "email" ? (v(), I
|
|
252
|
+
N.value === "email" ? (v(), C(I, {
|
|
253
253
|
key: 1,
|
|
254
254
|
modelValue: y.value,
|
|
255
255
|
"onUpdate:modelValue": k[1] || (k[1] = ($) => y.value = $),
|
|
@@ -287,7 +287,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
|
|
|
287
287
|
]);
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
}),
|
|
290
|
+
}), It = /* @__PURE__ */ ze(Ct, [["__scopeId", "data-v-c2c7ed35"]]), Mt = { class: "flex flex-col gap-40" }, Nt = { class: "flex items-center" }, Bt = { class: "flex-1 flex flex-col" }, Dt = { class: "fm-typo-en-title-sm-600" }, Ot = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, jt = { class: "flex flex-row gap-16" }, At = { class: "flex flex-col gap-8" }, Et = { class: "fm-typo-en-body-lg-400" }, Lt = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ve = 4, Tt = /* @__PURE__ */ ae({
|
|
291
291
|
__name: "TeamMemberMasterUser",
|
|
292
292
|
props: {
|
|
293
293
|
modelValue: {
|
|
@@ -389,7 +389,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
|
|
|
389
389
|
},
|
|
390
390
|
{ immediate: !0 }
|
|
391
391
|
);
|
|
392
|
-
const
|
|
392
|
+
const I = S({
|
|
393
393
|
get: () => {
|
|
394
394
|
var a;
|
|
395
395
|
return ((a = l.modelValue) == null ? void 0 : a.roles) ?? [];
|
|
@@ -438,7 +438,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
|
|
|
438
438
|
]
|
|
439
439
|
}, {
|
|
440
440
|
default: E(() => [
|
|
441
|
-
(v(),
|
|
441
|
+
(v(), C(T, {
|
|
442
442
|
key: `pin-field-${h.value}`,
|
|
443
443
|
modelValue: y.value,
|
|
444
444
|
"onUpdate:modelValue": n[2] || (n[2] = (c) => y.value = c),
|
|
@@ -452,8 +452,8 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
|
|
|
452
452
|
}, 8, ["modelValue", "rules"])
|
|
453
453
|
]),
|
|
454
454
|
d($, {
|
|
455
|
-
modelValue:
|
|
456
|
-
"onUpdate:modelValue": n[6] || (n[6] = (c) =>
|
|
455
|
+
modelValue: I.value,
|
|
456
|
+
"onUpdate:modelValue": n[6] || (n[6] = (c) => I.value = c),
|
|
457
457
|
rules: [
|
|
458
458
|
(c) => !c || c.length === 0 ? r(u)("team.memberForm.masterUser.restaurantRequired") : c.some((Y) => !Y.roleId) ? r(u)("team.memberForm.masterUser.roleRequired") : !0
|
|
459
459
|
]
|
|
@@ -535,7 +535,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
|
|
|
535
535
|
for (const b of x.value)
|
|
536
536
|
b.category === Se.reports && i.add(b.subject);
|
|
537
537
|
return i;
|
|
538
|
-
}), { restaurants: k } = ce(), L = Ee().roles, X = S(() => Pe(U.value)),
|
|
538
|
+
}), { restaurants: k } = ce(), L = Ee().roles, X = S(() => Pe(U.value)), I = S(() => {
|
|
539
539
|
const i = X.value;
|
|
540
540
|
return L.value.map(
|
|
541
541
|
(b) => ({
|
|
@@ -601,7 +601,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
|
|
|
601
601
|
validate: Y
|
|
602
602
|
}), (i, b) => {
|
|
603
603
|
const K = _("FmSelect"), G = _("FmForm");
|
|
604
|
-
return v(),
|
|
604
|
+
return v(), C(G, {
|
|
605
605
|
ref_key: "formRef",
|
|
606
606
|
ref: c,
|
|
607
607
|
class: "mx-4"
|
|
@@ -611,16 +611,16 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
|
|
|
611
611
|
return [
|
|
612
612
|
m("div", zt, [
|
|
613
613
|
m("div", qt, [
|
|
614
|
-
o.initialValue ? (v(),
|
|
614
|
+
o.initialValue ? (v(), C(Ft, {
|
|
615
615
|
key: 1,
|
|
616
616
|
data: o.initialValue
|
|
617
|
-
}, null, 8, ["data"])) : (v(),
|
|
617
|
+
}, null, 8, ["data"])) : (v(), C(It, {
|
|
618
618
|
key: 0,
|
|
619
619
|
onInvite: b[0] || (b[0] = (t) => a(t))
|
|
620
620
|
}))
|
|
621
621
|
]),
|
|
622
622
|
u.value || o.initialValue ? (v(), q(ue, { key: 0 }, [
|
|
623
|
-
(j = o.initialValue) != null && j.isOwner ? J("", !0) : (v(),
|
|
623
|
+
(j = o.initialValue) != null && j.isOwner ? J("", !0) : (v(), C(K, {
|
|
624
624
|
key: 0,
|
|
625
625
|
modelValue: h.value,
|
|
626
626
|
"onUpdate:modelValue": [
|
|
@@ -634,7 +634,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
|
|
|
634
634
|
label: r(s)("team.memberForm.permissionSet.title"),
|
|
635
635
|
placeholder: r(s)("team.memberForm.permissionSet.selectPlaceholder")
|
|
636
636
|
}, null, 8, ["modelValue", "items", "label", "placeholder"])),
|
|
637
|
-
(W = o.initialValue) != null && W.isOwner ? J("", !0) : (v(),
|
|
637
|
+
(W = o.initialValue) != null && W.isOwner ? J("", !0) : (v(), C(at, {
|
|
638
638
|
key: 1,
|
|
639
639
|
modelValue: U.value,
|
|
640
640
|
"onUpdate:modelValue": b[2] || (b[2] = (t) => U.value = t),
|
|
@@ -651,7 +651,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
|
|
|
651
651
|
],
|
|
652
652
|
"fallback-name": ((ne = o.initialValue) == null ? void 0 : ne.name) || ((re = u.value) == null ? void 0 : re.displayName) || "",
|
|
653
653
|
"fallback-passcode": (e = (oe = o.initialValue) == null ? void 0 : oe.posUser) == null ? void 0 : e.passcode,
|
|
654
|
-
roles:
|
|
654
|
+
roles: I.value,
|
|
655
655
|
restaurants: r(k)
|
|
656
656
|
}, null, 8, ["modelValue", "fallback-name", "fallback-passcode", "roles", "restaurants"])
|
|
657
657
|
], 64)) : J("", !0)
|
|
@@ -766,7 +766,7 @@ const fs = /* @__PURE__ */ ae({
|
|
|
766
766
|
name: "info",
|
|
767
767
|
class: "cursor-pointer text-fm-color-neutral-gray-300"
|
|
768
768
|
}, null),
|
|
769
|
-
content: () => d("div", null, [s("team.labels.permission"), e.permissionLabels.map((V) => d("div", null, [
|
|
769
|
+
content: () => d("div", null, [s("team.labels.permission"), e.permissionLabels.map((V) => d("div", null, [Ie("- "), V]))])
|
|
770
770
|
});
|
|
771
771
|
return d("div", {
|
|
772
772
|
class: "flex flex-row items-center gap-8"
|
|
@@ -796,15 +796,15 @@ const fs = /* @__PURE__ */ ae({
|
|
|
796
796
|
const L = (e, t) => {
|
|
797
797
|
if (e == ie.Update) {
|
|
798
798
|
const V = k(t);
|
|
799
|
-
R.value = V,
|
|
799
|
+
R.value = V, I.value = H.UPDATE;
|
|
800
800
|
}
|
|
801
801
|
e == ie.Remove && Q(t);
|
|
802
|
-
}, X = Te(),
|
|
802
|
+
}, X = Te(), I = F(H.CLOSED), a = S(() => I.value !== H.CLOSED), n = S(() => I.value === H.ADD ? s("common.add") : s("common.update")), w = S(() => I.value === H.ADD ? s("team.actions.addMember") : s("team.actions.updateMember")), R = F();
|
|
803
803
|
function T(e) {
|
|
804
|
-
e || (
|
|
804
|
+
e || (I.value = H.CLOSED);
|
|
805
805
|
}
|
|
806
806
|
function $() {
|
|
807
|
-
|
|
807
|
+
I.value = H.CLOSED;
|
|
808
808
|
}
|
|
809
809
|
const {
|
|
810
810
|
breakpoints: se
|
|
@@ -836,7 +836,7 @@ const fs = /* @__PURE__ */ ae({
|
|
|
836
836
|
}), X.close();
|
|
837
837
|
});
|
|
838
838
|
}, c = () => {
|
|
839
|
-
R.value = null,
|
|
839
|
+
R.value = null, I.value = H.ADD;
|
|
840
840
|
}, Y = S(() => U.members), z = F(), te = F(), me = S(() => Object.values(Ke).map((e) => ({
|
|
841
841
|
label: e.label,
|
|
842
842
|
value: e.subject
|
|
@@ -868,7 +868,7 @@ const fs = /* @__PURE__ */ ae({
|
|
|
868
868
|
if (!W.value) return;
|
|
869
869
|
const e = await W.value.validate();
|
|
870
870
|
if (!e) return;
|
|
871
|
-
const t =
|
|
871
|
+
const t = I.value === H.ADD;
|
|
872
872
|
await h.minor(async () => {
|
|
873
873
|
await (t ? fe.createTeamMember(e) : fe.updateTeamMember(R.value.id, e)), $(), await oe(), await j({
|
|
874
874
|
force: !0
|
|
@@ -879,7 +879,7 @@ const fs = /* @__PURE__ */ ae({
|
|
|
879
879
|
}) : s("team.updateMember.successMessage", {
|
|
880
880
|
memberName: e.name
|
|
881
881
|
})
|
|
882
|
-
}),
|
|
882
|
+
}), I.value = H.CLOSED;
|
|
883
883
|
}
|
|
884
884
|
async function re() {
|
|
885
885
|
await y.readPermissionSets();
|
|
@@ -938,11 +938,11 @@ const fs = /* @__PURE__ */ ae({
|
|
|
938
938
|
items: me.value,
|
|
939
939
|
"selected-prefix": r(s)("team.filter.selected_permission_prefix"),
|
|
940
940
|
placeholder: r(s)("team.filter.permission_placeholder")
|
|
941
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])]), Y.value.length === 0 && !x.value ? (v(),
|
|
941
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])]), Y.value.length === 0 && !x.value ? (v(), C(r(We), {
|
|
942
942
|
key: 0,
|
|
943
943
|
title: r(s)("team.emptyState.title"),
|
|
944
944
|
subtitle: r(s)("team.emptyState.description")
|
|
945
|
-
}, null, 8, ["title", "subtitle"])) : (v(),
|
|
945
|
+
}, null, 8, ["title", "subtitle"])) : (v(), C(Ge, {
|
|
946
946
|
key: 1
|
|
947
947
|
}, {
|
|
948
948
|
default: E(() => [d(M, {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ref as d, computed as b, defineComponent as ce, onMounted as me, watch as X, resolveComponent as i, createElementBlock as B, openBlock as D, Fragment as Z, createVNode as l, createElementVNode as u, unref as n, withCtx as C, createCommentVNode as pe, toDisplayString as $, createTextVNode as ve, createBlock as z, isRef as fe, renderList as he, nextTick as ge } from "vue";
|
|
2
|
-
import { d as v } from "./dayjs.min-
|
|
2
|
+
import { d as v } from "./dayjs.min-B5H5x-Tu.js";
|
|
3
3
|
import { useI18n as we, useCoreStore as ye, RestaurantSelector as be } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as _e, components as De } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as xe } from "./app-
|
|
5
|
+
import { _ as xe } from "./app-D8vTftyA.js";
|
|
6
6
|
import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
|
-
import { u as ke } from "./useLoading-
|
|
8
|
-
import { c as Ce, s as Ve } from "./iteration-
|
|
9
|
-
import { b as Fe } from "./index-
|
|
10
|
-
import { u as Ye } from "./employee-
|
|
11
|
-
import { u as Le } from "./timesheet-
|
|
7
|
+
import { u as ke } from "./useLoading-pWhsmlRR.js";
|
|
8
|
+
import { c as Ce, s as Ve } from "./iteration-AxipbNoR.js";
|
|
9
|
+
import { b as Fe } from "./index-D0zaceK9.js";
|
|
10
|
+
import { u as Ye } from "./employee-BE5Sm7cX.js";
|
|
11
|
+
import { u as Le } from "./timesheet-Bq9nINdL.js";
|
|
12
12
|
function Me(x, a) {
|
|
13
13
|
return ["years", "months"].find((S) => {
|
|
14
14
|
const k = x.startOf(S), f = x.endOf(S);
|