@feedmepos/mf-hrm-portal 2.0.11-dev.3 → 2.0.11
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-E_BtUYs7.js → AuditLogList-B1WVHfHe.js} +5 -5
- package/dist/{EmployeeList-D758_PXx.js → EmployeeList-D8pV4P6r.js} +5 -5
- package/dist/{Main-Bqx0FFmH.js → Main-C-iGHHd0.js} +9 -9
- package/dist/{Main-eVW0teSe.js → Main-Dsuhh6Fk.js} +6 -6
- package/dist/{Main-DjCFRKkP.js → Main-SeHua_qu.js} +4 -4
- package/dist/{PermissionSetList-DL5AL3mB.js → PermissionSetList-BncaRNzo.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CMcQnqyK.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang--O2VRpc8.js} +964 -964
- package/dist/{RoleList-DuXjqXwQ.js → RoleList-C3R_DmG3.js} +7 -7
- package/dist/{TeamMemberList-BHpOC5vA.js → TeamMemberList-LkYfoLD1.js} +45 -45
- package/dist/{TimesheetList-Bz9ZMpHA.js → TimesheetList-B1-VPwJq.js} +7 -7
- package/dist/{app-BhCUAF8K.js → app-DpmQDU7C.js} +31 -31
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Cxe5QOx7.js → dayjs.min-BJfcKBYO.js} +1 -1
- package/dist/{employee--8czm9KP.js → employee-CtTZ2RR7.js} +4 -4
- package/dist/{index-GgFsP7rK.js → index-F3OZA8nn.js} +12 -12
- package/dist/{index-CyJwEUuG.js → index-UgV84dZR.js} +1 -1
- package/dist/{iteration-BljyZld9.js → iteration-CF55rP35.js} +2 -2
- package/dist/{lodash-D2-GJ54o.js → lodash-CFUqrzKZ.js} +1 -1
- package/dist/{team-C7-0IiCm.js → team-B-CRADxz.js} +1 -1
- package/dist/{timesheet-C_WtQDqh.js → timesheet-BEr75UJg.js} +3 -3
- package/dist/{useAppStore-B7R116Aw.js → useAppStore-qId__2vQ.js} +1 -1
- package/dist/{useLoading-CwSP2H00.js → useLoading-InEdxgzy.js} +1 -1
- package/dist/{useReportPermissions-DVOIk2oR.js → useReportPermissions-DOCdQzP7.js} +3 -3
- package/package.json +1 -1
|
@@ -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-CF55rP35.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-DpmQDU7C.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-F3OZA8nn.js";
|
|
8
|
+
import { u as Fe } from "./useAppStore-qId__2vQ.js";
|
|
9
|
+
import { u as xe } from "./useReportPermissions-DOCdQzP7.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-CFUqrzKZ.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-InEdxgzy.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 I, 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 Ie, createTextVNode as Ce, 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 { p as Se, f as qe,
|
|
5
|
+
import { p as Se, f as qe, k as Ke, _ as Ge } from "./app-DpmQDU7C.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-InEdxgzy.js";
|
|
9
|
+
import { g as Ue, d as Oe } from "./iteration-CF55rP35.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-F3OZA8nn.js";
|
|
11
|
+
import "./index-UgV84dZR.js";
|
|
12
|
+
import { u as Ee } from "./useAppStore-qId__2vQ.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--O2VRpc8.js";
|
|
15
|
+
import { u as lt } from "./team-B-CRADxz.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(), I(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(), I(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: Ie(["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(), I(u, {
|
|
75
75
|
key: 0,
|
|
76
76
|
name: o.icon
|
|
77
77
|
}, null, 8, ["name"])) : J("", !0),
|
|
78
|
-
|
|
78
|
+
Ce(" " + 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(), I(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(), I(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(), I(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(), I(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: Ie(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 }, It = /* @__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"), C = _("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(), I(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(), C
|
|
252
|
+
N.value === "email" ? (v(), I(C, {
|
|
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
|
+
}), Ct = /* @__PURE__ */ ze(It, [["__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 C = 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(), I(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: C.value,
|
|
456
|
+
"onUpdate:modelValue": n[6] || (n[6] = (c) => C.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)), C = 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(), I(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(), I(Ft, {
|
|
615
615
|
key: 1,
|
|
616
616
|
data: o.initialValue
|
|
617
|
-
}, null, 8, ["data"])) : (v(),
|
|
617
|
+
}, null, 8, ["data"])) : (v(), I(Ct, {
|
|
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(), I(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(), I(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: C.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, [Ce("- "), 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, C.value = H.UPDATE;
|
|
800
800
|
}
|
|
801
801
|
e == ie.Remove && Q(t);
|
|
802
|
-
}, X = Te(),
|
|
802
|
+
}, X = Te(), C = F(H.CLOSED), a = S(() => C.value !== H.CLOSED), n = S(() => C.value === H.ADD ? s("common.add") : s("common.update")), w = S(() => C.value === H.ADD ? s("team.actions.addMember") : s("team.actions.updateMember")), R = F();
|
|
803
803
|
function T(e) {
|
|
804
|
-
e || (
|
|
804
|
+
e || (C.value = H.CLOSED);
|
|
805
805
|
}
|
|
806
806
|
function $() {
|
|
807
|
-
|
|
807
|
+
C.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, C.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 = C.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
|
+
}), C.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(), I(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(), I(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-BJfcKBYO.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-DpmQDU7C.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-InEdxgzy.js";
|
|
8
|
+
import { c as Ce, s as Ve } from "./iteration-CF55rP35.js";
|
|
9
|
+
import { b as Fe } from "./index-F3OZA8nn.js";
|
|
10
|
+
import { u as Ye } from "./employee-CtTZ2RR7.js";
|
|
11
|
+
import { u as Le } from "./timesheet-BEr75UJg.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);
|
|
@@ -3171,32 +3171,32 @@ const Er = {
|
|
|
3171
3171
|
],
|
|
3172
3172
|
category: u.customReports,
|
|
3173
3173
|
isCategoryCover: !0
|
|
3174
|
-
},
|
|
3175
|
-
// MDM
|
|
3176
|
-
mdmDeviceManagement: {
|
|
3177
|
-
label: "Device Management",
|
|
3178
|
-
subject: a.mdm_deviceManagement,
|
|
3179
|
-
actions: [t.manage],
|
|
3180
|
-
category: u.settings
|
|
3181
|
-
},
|
|
3182
|
-
mdmCreateDevice: {
|
|
3183
|
-
label: "Create New Device",
|
|
3184
|
-
subject: a.mdm_createDevice,
|
|
3185
|
-
actions: [t.manage],
|
|
3186
|
-
category: u.settings
|
|
3187
|
-
},
|
|
3188
|
-
mdmDeviceBinding: {
|
|
3189
|
-
label: "Manage Device Binding",
|
|
3190
|
-
subject: a.mdm_deviceBinding,
|
|
3191
|
-
actions: [t.manage],
|
|
3192
|
-
category: u.settings
|
|
3193
|
-
},
|
|
3194
|
-
mdmCustomerDisplay: {
|
|
3195
|
-
label: "Manage Customer Display",
|
|
3196
|
-
subject: a.mdm_customerDisplay,
|
|
3197
|
-
actions: [t.manage, t.read, t.update],
|
|
3198
|
-
category: u.settings
|
|
3199
3174
|
}
|
|
3175
|
+
// MDM
|
|
3176
|
+
// mdmDeviceManagement: {
|
|
3177
|
+
// label: 'Device Management',
|
|
3178
|
+
// subject: PermissionSubjectBusinessNamespace.mdm_deviceManagement,
|
|
3179
|
+
// actions: [PermissionAction.manage],
|
|
3180
|
+
// category: PermissionCategory.settings,
|
|
3181
|
+
// },
|
|
3182
|
+
// mdmCreateDevice: {
|
|
3183
|
+
// label: 'Create New Device',
|
|
3184
|
+
// subject: PermissionSubjectBusinessNamespace.mdm_createDevice,
|
|
3185
|
+
// actions: [PermissionAction.manage],
|
|
3186
|
+
// category: PermissionCategory.settings,
|
|
3187
|
+
// },
|
|
3188
|
+
// mdmDeviceBinding: {
|
|
3189
|
+
// label: 'Manage Device Binding',
|
|
3190
|
+
// subject: PermissionSubjectBusinessNamespace.mdm_deviceBinding,
|
|
3191
|
+
// actions: [PermissionAction.manage],
|
|
3192
|
+
// category: PermissionCategory.settings,
|
|
3193
|
+
// },
|
|
3194
|
+
// mdmCustomerDisplay: {
|
|
3195
|
+
// label: 'Manage Customer Display',
|
|
3196
|
+
// subject: PermissionSubjectBusinessNamespace.mdm_customerDisplay,
|
|
3197
|
+
// actions: [PermissionAction.manage, PermissionAction.read, PermissionAction.update],
|
|
3198
|
+
// category: PermissionCategory.settings,
|
|
3199
|
+
// },
|
|
3200
3200
|
// E-invoice
|
|
3201
3201
|
// eInvoiceManagement: {
|
|
3202
3202
|
// label: 'E-invoice Management',
|
|
@@ -4495,10 +4495,10 @@ const ce = (e) => ({
|
|
|
4495
4495
|
}
|
|
4496
4496
|
]
|
|
4497
4497
|
}
|
|
4498
|
-
}), Br = re(O(() => import("./Main-
|
|
4499
|
-
O(() => import("./AuditLogList-
|
|
4500
|
-
), fr = re(O(() => import("./Main-
|
|
4501
|
-
() => import("./PermissionSetList-
|
|
4498
|
+
}), Br = re(O(() => import("./Main-C-iGHHd0.js"))), br = re(O(() => import("./Main-Dsuhh6Fk.js"))), pr = re(
|
|
4499
|
+
O(() => import("./AuditLogList-B1WVHfHe.js"))
|
|
4500
|
+
), fr = re(O(() => import("./Main-SeHua_qu.js"))), wr = O(() => import("./EmployeeList-D8pV4P6r.js")), Mr = O(() => import("./RoleList-C3R_DmG3.js")), yr = O(() => import("./TimesheetList-B1-VPwJq.js")), Dr = O(() => import("./TeamMemberList-LkYfoLD1.js")), vr = O(
|
|
4501
|
+
() => import("./PermissionSetList-BncaRNzo.js")
|
|
4502
4502
|
), Pr = [
|
|
4503
4503
|
{
|
|
4504
4504
|
path: "/",
|
|
@@ -4663,7 +4663,7 @@ const ce = (e) => ({
|
|
|
4663
4663
|
};
|
|
4664
4664
|
export {
|
|
4665
4665
|
Za as A,
|
|
4666
|
-
|
|
4666
|
+
xr as C,
|
|
4667
4667
|
qr as I,
|
|
4668
4668
|
V as R,
|
|
4669
4669
|
mr as _,
|
|
@@ -4674,7 +4674,7 @@ export {
|
|
|
4674
4674
|
Vr as f,
|
|
4675
4675
|
Qs as g,
|
|
4676
4676
|
Fr as i,
|
|
4677
|
-
|
|
4677
|
+
Er as k,
|
|
4678
4678
|
u as p,
|
|
4679
4679
|
Pr as r,
|
|
4680
4680
|
te as u
|
package/dist/app.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as T } from "./dayjs.min-
|
|
1
|
+
import { d as T } from "./dayjs.min-BJfcKBYO.js";
|
|
2
2
|
import { defineStore as _, storeToRefs as U } from "pinia";
|
|
3
3
|
import { ref as I } from "vue";
|
|
4
4
|
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
|
5
|
-
import { b as r, g as o, s as v } from "./iteration-
|
|
6
|
-
import { t as b, i as S } from "./index-
|
|
7
|
-
import { u as x } from "./useAppStore-
|
|
5
|
+
import { b as r, g as o, s as v } from "./iteration-CF55rP35.js";
|
|
6
|
+
import { t as b, i as S } from "./index-F3OZA8nn.js";
|
|
7
|
+
import { u as x } from "./useAppStore-qId__2vQ.js";
|
|
8
8
|
const n = {
|
|
9
9
|
async readEmployees() {
|
|
10
10
|
return o(await r().get("/pos-users"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-
|
|
2
|
-
import { u as J, b as R, A as F, p as D, e as S,
|
|
1
|
+
import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-CF55rP35.js";
|
|
2
|
+
import { u as J, b as R, A as F, p as D, e as S, k as Q } from "./app-DpmQDU7C.js";
|
|
3
3
|
import { defineStore as x, storeToRefs as k } from "pinia";
|
|
4
|
-
import { ref as h, computed as
|
|
4
|
+
import { ref as h, computed as N } from "vue";
|
|
5
5
|
import { useCoreStore as q } from "@feedmepos/mf-common";
|
|
6
6
|
const T = [
|
|
7
7
|
{
|
|
@@ -511,14 +511,14 @@ function W(e) {
|
|
|
511
511
|
o(n.inverted ? s : t, n, r);
|
|
512
512
|
return [...Array.from(t.values()), ...Array.from(s.values())];
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function C(e, t) {
|
|
515
515
|
return `${e}::${[...t].sort().join(",")}`;
|
|
516
516
|
}
|
|
517
517
|
function z(e, t) {
|
|
518
518
|
const s = [...e], o = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
519
519
|
for (const i of e) {
|
|
520
520
|
const c = R(i.subject);
|
|
521
|
-
o.add(
|
|
521
|
+
o.add(C(c, i.actions)), i.inverted && i.actions.includes("manage") && r.add(`set_${c}`), !i.inverted && i.actions.includes("manage") && n.add(c);
|
|
522
522
|
}
|
|
523
523
|
const a = [...e];
|
|
524
524
|
for (; a.length > 0; ) {
|
|
@@ -529,7 +529,7 @@ function z(e, t) {
|
|
|
529
529
|
i.source && !i.source.trace && (i.source = { ...i.source, trace: l });
|
|
530
530
|
const d = [...l, `${u.name} (system)`];
|
|
531
531
|
for (const p of u.permissions ?? []) {
|
|
532
|
-
const m = R(p.subject), f =
|
|
532
|
+
const m = R(p.subject), f = C(m, p.actions);
|
|
533
533
|
o.has(f) || n.has(m) || (o.add(f), s.push({
|
|
534
534
|
...p,
|
|
535
535
|
// FdoPermissionRule.fields is string[] | null; RawRule expects string[] | undefined
|
|
@@ -543,7 +543,7 @@ function z(e, t) {
|
|
|
543
543
|
}));
|
|
544
544
|
}
|
|
545
545
|
for (const p of u.permissionSets ?? []) {
|
|
546
|
-
const m = R(p), f =
|
|
546
|
+
const m = R(p), f = C(m, ["manage"]), v = {
|
|
547
547
|
subject: m,
|
|
548
548
|
actions: ["manage"],
|
|
549
549
|
source: {
|
|
@@ -860,7 +860,7 @@ function de() {
|
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
|
-
const s =
|
|
863
|
+
const s = N(() => O.value.map(
|
|
864
864
|
(o) => o.isDefault ? {
|
|
865
865
|
label: o.name,
|
|
866
866
|
subject: `business::report::reports::${o.permissionKey}`,
|
|
@@ -882,8 +882,8 @@ function de() {
|
|
|
882
882
|
return {
|
|
883
883
|
fetchCustomReportPermissions: t,
|
|
884
884
|
customReportPermissions: s,
|
|
885
|
-
isLoading:
|
|
886
|
-
isLoaded:
|
|
885
|
+
isLoading: N(() => w.value),
|
|
886
|
+
isLoaded: N(() => _.value)
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
889
|
function U(e) {
|
|
@@ -920,7 +920,7 @@ function U(e) {
|
|
|
920
920
|
}
|
|
921
921
|
const me = Object.freeze(
|
|
922
922
|
Object.values(Q)
|
|
923
|
-
),
|
|
923
|
+
), Ne = {
|
|
924
924
|
async readTeamMembers() {
|
|
925
925
|
return b(
|
|
926
926
|
await g().get("/portal-users")
|
|
@@ -965,7 +965,7 @@ export {
|
|
|
965
965
|
Ie as q,
|
|
966
966
|
E as r,
|
|
967
967
|
Oe as s,
|
|
968
|
-
|
|
968
|
+
Ne as t,
|
|
969
969
|
G as u,
|
|
970
970
|
ue as v,
|
|
971
971
|
ne as w,
|
|
@@ -2,7 +2,7 @@ var oe = Object.defineProperty;
|
|
|
2
2
|
var se = (_, h, y) => h in _ ? oe(_, h, { enumerable: !0, configurable: !0, writable: !0, value: y }) : _[h] = y;
|
|
3
3
|
var ot = (_, h, y) => se(_, typeof h != "symbol" ? h + "" : h, y);
|
|
4
4
|
import { readonly as Nt, ref as Rt } from "vue";
|
|
5
|
-
import { c as st } from "./app-
|
|
5
|
+
import { c as st } from "./app-DpmQDU7C.js";
|
|
6
6
|
var Pt = { exports: {} };
|
|
7
7
|
(function(_, h) {
|
|
8
8
|
(function(y, p) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as U } from "./app-
|
|
1
|
+
import { c as U } from "./app-DpmQDU7C.js";
|
|
2
2
|
import { useCoreStore as To, baseClientInstance as jr, FeedMeAuth as Zs } from "@feedmepos/mf-common";
|
|
3
3
|
var Ys = {}, _n = {}, _ = {}, zo = {}, $i = {}, eo = {}, ui = {};
|
|
4
4
|
(function(e) {
|
|
@@ -9456,7 +9456,7 @@ const cc = (e) => (n) => {
|
|
|
9456
9456
|
throw new Error("Invalid business");
|
|
9457
9457
|
}, Bc = () => {
|
|
9458
9458
|
var a;
|
|
9459
|
-
const n = (a = To().currentCountry.value) == null ? void 0 : a.toLowerCase(), i = "
|
|
9459
|
+
const n = (a = To().currentCountry.value) == null ? void 0 : a.toLowerCase(), i = "feedmeapi.com", o = !n || n === "my" ? `https://query-engine.${i}` : `https://query-engine.${n}.${i}`;
|
|
9460
9460
|
return cc(o)("");
|
|
9461
9461
|
}, Nc = () => jr("user/bypass/validate/");
|
|
9462
9462
|
function jc(e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as d } from "pinia";
|
|
2
2
|
import { ref as s, computed as o } from "vue";
|
|
3
|
-
import { t as f } from "./index-
|
|
3
|
+
import { t as f } from "./index-F3OZA8nn.js";
|
|
4
4
|
const I = d("team", () => {
|
|
5
5
|
const r = s([]), a = s(!1), m = o(
|
|
6
6
|
() => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.name]))
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-
|
|
1
|
+
import { d as i } from "./dayjs.min-BJfcKBYO.js";
|
|
2
2
|
import { defineStore as p, storeToRefs as T } from "pinia";
|
|
3
3
|
import { ref as l } from "vue";
|
|
4
|
-
import { b as c, g as y, s as S } from "./iteration-
|
|
5
|
-
import { i as u, b as g } from "./index-
|
|
4
|
+
import { b as c, g as y, s as S } from "./iteration-CF55rP35.js";
|
|
5
|
+
import { i as u, b as g } from "./index-F3OZA8nn.js";
|
|
6
6
|
const f = {
|
|
7
7
|
async readTimesheets(t, e) {
|
|
8
8
|
return y(await c().get(`timesheet?start=${t}&end=${e}`));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as f, storeToRefs as v } from "pinia";
|
|
2
2
|
import { ref as b } from "vue";
|
|
3
3
|
import { useCoreStore as I, baseClientInstance as w } from "@feedmepos/mf-common";
|
|
4
|
-
import { g as l, b as d, s as R } from "./iteration-
|
|
4
|
+
import { g as l, b as d, s as R } from "./iteration-CF55rP35.js";
|
|
5
5
|
const p = {
|
|
6
6
|
async readRoles() {
|
|
7
7
|
return l(await d().get("/pos-roles"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as I, isRef as L, watch as M } from "vue";
|
|
2
2
|
import { SnackbarPosition as y } from "@feedmepos/ui-library";
|
|
3
|
-
import { a as w, v } from "./useAppStore-
|
|
3
|
+
import { a as w, v } from "./useAppStore-qId__2vQ.js";
|
|
4
4
|
const E = (r) => {
|
|
5
5
|
async function d(u, e) {
|
|
6
6
|
var l, a;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed as u, ref as r } from "vue";
|
|
2
|
-
import { e as l } from "./iteration-
|
|
2
|
+
import { e as l } from "./iteration-CF55rP35.js";
|
|
3
3
|
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
4
|
-
import { e as R, R as h } from "./index-
|
|
5
|
-
import "./app-
|
|
4
|
+
import { e as R, R as h } from "./index-F3OZA8nn.js";
|
|
5
|
+
import "./app-DpmQDU7C.js";
|
|
6
6
|
const n = r([]), c = r(!1), t = r(!1), m = r(null);
|
|
7
7
|
function L() {
|
|
8
8
|
const d = y();
|