@feedmepos/mf-hrm-portal 2.0.14 → 2.0.15-dev
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-n6b4-GzJ.js → AuditLogList-DBIsI4YF.js} +4 -4
- package/dist/{EmployeeList-B7cemoN0.js → EmployeeList-BOSxLZbY.js} +5 -5
- package/dist/{Main-Dn71WvVQ.js → Main-B3YiMuFq.js} +9 -9
- package/dist/{Main-79eUPL7p.js → Main-BAZAQTWi.js} +4 -4
- package/dist/{Main-Cw4gYTr3.js → Main-D7yzD5SW.js} +5 -5
- package/dist/{PermissionSetList-BNNwLjXj.js → PermissionSetList-DBT9LtfT.js} +15 -15
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BYyT6oya.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BfqnjeTK.js} +793 -793
- package/dist/{RoleList-DY8Za0dd.js → RoleList-DeE5tN-5.js} +7 -7
- package/dist/{TeamMemberList-DSHrsX5J.js → TeamMemberList-BCv5Vixx.js} +65 -65
- package/dist/{TimesheetList-CXPqOjdC.js → TimesheetList-DpMBgVtY.js} +7 -7
- package/dist/{app-DPZbZJCq.js → app-pvHHFjbx.js} +283 -242
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-DW1WmkoA.js → dayjs.min-BK_bM9xY.js} +1 -1
- package/dist/{employee-Kw8TDet-.js → employee-DhkixwiI.js} +4 -4
- package/dist/{index-nwRgIeL9.js → index-Bckj5jnu.js} +17 -17
- package/dist/{index-CQ9ZArJF.js → index-DK4fVbTF.js} +1 -1
- package/dist/{iteration-BFQu0b3r.js → iteration-Bk3cnP07.js} +2 -2
- package/dist/{lodash-Dsav6UyM.js → lodash-TrOlqj07.js} +1 -1
- package/dist/{timesheet-ZmSkwQIE.js → timesheet-DSQeCVfL.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CKbtSJIP.js → useAppStore-DwfwjZpc.js} +1 -1
- package/dist/{useLoading-C0ICgchk.js → useLoading-fEAOlgoV.js} +1 -1
- package/dist/{useReportPermissions-lRru0ii7.js → useReportPermissions-CkOk_2tl.js} +3 -3
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as _e, ref as P, computed as g, watch as re, onMounted as ge, resolveComponent as b, createBlock as U, openBlock as c, unref as o, withCtx as F, createElementVNode as h, createVNode as p, createElementBlock as w, Fragment as A, createCommentVNode as de, renderList as ee, toDisplayString as M, h as V, createTextVNode as ce, resolveDynamicComponent as pe, withModifiers as Le, nextTick as ve } from "vue";
|
|
2
|
-
import { e as L } from "./iteration-
|
|
2
|
+
import { e as L } from "./iteration-Bk3cnP07.js";
|
|
3
3
|
import { useI18n as be, useCoreStore as ye } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as Fe, components as se, useDialog as Ue, useBreakpoints as Ie, FmButtonColorThemeVariant as fe, FmButtonVariant as Ee } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as Se } from "./app-
|
|
5
|
+
import { _ as Se } from "./app-pvHHFjbx.js";
|
|
6
6
|
import { _ as Pe } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
|
-
import { e as $e, r as W, h as ie, f as Te, g as he, a as Y } from "./index-
|
|
8
|
-
import { u as xe } from "./useAppStore-
|
|
9
|
-
import { u as Ce } from "./useReportPermissions-
|
|
7
|
+
import { e as $e, r as W, h as ie, f as Te, g as he, a as Y } from "./index-Bckj5jnu.js";
|
|
8
|
+
import { u as xe } from "./useAppStore-DwfwjZpc.js";
|
|
9
|
+
import { u as Ce } from "./useReportPermissions-CkOk_2tl.js";
|
|
10
10
|
import { u as Be, a as De } from "./useRestaurantMap-e9fQJiLC.js";
|
|
11
|
-
import { l as Z } from "./lodash-
|
|
11
|
+
import { l as Z } from "./lodash-TrOlqj07.js";
|
|
12
12
|
import { _ as ne, a as Ae } from "./FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js";
|
|
13
|
-
import { u as Me } from "./useLoading-
|
|
13
|
+
import { u as Me } from "./useLoading-fEAOlgoV.js";
|
|
14
14
|
const Ne = { class: "fm-typo-en-title-md-600" }, Oe = { class: "space-y-40" }, Je = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "flex justify-center py-16"
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as me, ref as
|
|
1
|
+
import { defineComponent as me, ref as f, resolveComponent as F, createBlock as k, openBlock as v, withCtx as j, createElementVNode as c, renderSlot as ke, createCommentVNode as O, withModifiers as Ee, nextTick as Ae, createElementBlock as E, normalizeClass as Te, createTextVNode as qe, toDisplayString as B, computed as I, Fragment as he, renderList as Re, createVNode as p, unref as m, watch as ye, isRef as ss, createSlots as ts, onUnmounted as as } from "vue";
|
|
2
2
|
import { u as ls } from "./useDebounce-B8ZPVS5C.js";
|
|
3
3
|
import { useI18n as ge, useCoreStore as _e, baseClientInstance as Ie, RestaurantSelector as Me } from "@feedmepos/mf-common";
|
|
4
4
|
import { useBreakpoints as Ke, useSnackbar as ze, useDialog as os, components as Ce } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as Ge, S as De } from "./SelectFilter-DUj7GBtT.js";
|
|
6
|
-
import {
|
|
6
|
+
import { d as Ne, b as ns, C as rs, _ as is, a as us } from "./app-pvHHFjbx.js";
|
|
7
7
|
import { _ as ms } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
8
|
-
import { u as cs } from "./useLoading-
|
|
9
|
-
import { g as Be, d as We } from "./iteration-
|
|
10
|
-
import { u as Je, c as ds, d as we, m as
|
|
11
|
-
import "./index-
|
|
12
|
-
import { u as Ze } from "./useAppStore-
|
|
8
|
+
import { u as cs } from "./useLoading-fEAOlgoV.js";
|
|
9
|
+
import { g as Be, d as We } from "./iteration-Bk3cnP07.js";
|
|
10
|
+
import { u as Je, c as ds, d as we, m as fe, j as Xe, p as Oe, k as ps, l as Le, n as vs, o as fs, s as bs, q as ys, v as hs, t as be } from "./index-Bckj5jnu.js";
|
|
11
|
+
import "./index-DK4fVbTF.js";
|
|
12
|
+
import { u as Ze } from "./useAppStore-DwfwjZpc.js";
|
|
13
13
|
/* empty css */
|
|
14
|
-
import { _ as _s, a as gs } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { _ as _s, a as gs } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BfqnjeTK.js";
|
|
15
15
|
import { u as xs } from "./useSearch-B6WK1LBB.js";
|
|
16
16
|
const Fs = /* @__PURE__ */ me({
|
|
17
17
|
__name: "BottomSheetMenu",
|
|
18
18
|
setup(a) {
|
|
19
|
-
const y =
|
|
19
|
+
const y = f(!1);
|
|
20
20
|
async function r() {
|
|
21
21
|
await Ae(), y.value = !y.value;
|
|
22
22
|
}
|
|
23
23
|
return (t, n) => {
|
|
24
24
|
const L = F("FmButton"), M = F("FmBottomSheet");
|
|
25
|
-
return
|
|
25
|
+
return v(), k(M, {
|
|
26
26
|
modelValue: y.value,
|
|
27
27
|
"onUpdate:modelValue": n[1] || (n[1] = (g) => y.value = g),
|
|
28
28
|
"dismiss-away": "",
|
|
@@ -30,7 +30,7 @@ const Fs = /* @__PURE__ */ me({
|
|
|
30
30
|
"z-index": 110
|
|
31
31
|
}, {
|
|
32
32
|
"bottom-sheet-button": j(() => [
|
|
33
|
-
t.$slots.button ? O("", !0) : (
|
|
33
|
+
t.$slots.button ? O("", !0) : (v(), k(L, {
|
|
34
34
|
key: 0,
|
|
35
35
|
icon: "more_vert",
|
|
36
36
|
variant: "tertiary",
|
|
@@ -61,8 +61,8 @@ const Fs = /* @__PURE__ */ me({
|
|
|
61
61
|
const y = a;
|
|
62
62
|
return (r, t) => {
|
|
63
63
|
const n = F("FmIcon");
|
|
64
|
-
return
|
|
65
|
-
r.$slots.content ? O("", !0) : (
|
|
64
|
+
return v(), E("div", Us, [
|
|
65
|
+
r.$slots.content ? O("", !0) : (v(), E("div", {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: Te(["flex items-center", {
|
|
68
68
|
"text-fm-color-typo-disabled": y.disabled,
|
|
@@ -71,7 +71,7 @@ const Fs = /* @__PURE__ */ me({
|
|
|
71
71
|
[y.itemClass || ""]: y.itemClass && !y.disabled
|
|
72
72
|
}])
|
|
73
73
|
}, [
|
|
74
|
-
a.icon ? (
|
|
74
|
+
a.icon ? (v(), k(n, {
|
|
75
75
|
key: 0,
|
|
76
76
|
name: a.icon
|
|
77
77
|
}, null, 8, ["name"])) : O("", !0),
|
|
@@ -90,9 +90,9 @@ const Fs = /* @__PURE__ */ me({
|
|
|
90
90
|
const y = Ke(), r = I(() => y.breakpoints.value.xs);
|
|
91
91
|
return (t, n) => {
|
|
92
92
|
const L = F("FmButton"), M = F("FmMenuItem"), g = F("FmMenu");
|
|
93
|
-
return r.value ? (
|
|
93
|
+
return r.value ? (v(), k(Fs, { key: 0 }, {
|
|
94
94
|
default: j(() => [
|
|
95
|
-
(
|
|
95
|
+
(v(!0), E(he, null, Re(a.items, ({ icon: _, label: u, disabled: V, itemClass: U, onClick: S }) => (v(), k(Ss, {
|
|
96
96
|
key: u,
|
|
97
97
|
icon: _,
|
|
98
98
|
label: u,
|
|
@@ -104,7 +104,7 @@ const Fs = /* @__PURE__ */ me({
|
|
|
104
104
|
}, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
|
|
105
105
|
]),
|
|
106
106
|
_: 1
|
|
107
|
-
})) : (
|
|
107
|
+
})) : (v(), k(g, {
|
|
108
108
|
key: 1,
|
|
109
109
|
"stop-click-propagation": "",
|
|
110
110
|
shift: !0
|
|
@@ -119,7 +119,7 @@ const Fs = /* @__PURE__ */ me({
|
|
|
119
119
|
})
|
|
120
120
|
]),
|
|
121
121
|
default: j(() => [
|
|
122
|
-
(
|
|
122
|
+
(v(!0), E(he, null, Re(a.items, ({ label: _, disabled: u, itemClass: V, onClick: U }) => (v(), k(M, {
|
|
123
123
|
key: _,
|
|
124
124
|
disabled: u,
|
|
125
125
|
label: _,
|
|
@@ -150,7 +150,7 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
150
150
|
const { t: y } = ge();
|
|
151
151
|
return (r, t) => {
|
|
152
152
|
const n = F("FmAvatar");
|
|
153
|
-
return
|
|
153
|
+
return v(), E("div", ws, [
|
|
154
154
|
c("div", Ps, [
|
|
155
155
|
p(n, {
|
|
156
156
|
size: "xl",
|
|
@@ -196,7 +196,7 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
196
196
|
__name: "PortalUserSearcher",
|
|
197
197
|
emits: ["invite"],
|
|
198
198
|
setup(a, { emit: y }) {
|
|
199
|
-
const r = y, { t } = ge(), n = ze(), L = _e(), M =
|
|
199
|
+
const r = y, { t } = ge(), n = ze(), L = _e(), M = f("phone"), g = f(""), _ = f(""), u = f();
|
|
200
200
|
async function V() {
|
|
201
201
|
if (!g.value && !_.value) {
|
|
202
202
|
n.open({
|
|
@@ -217,7 +217,7 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
217
217
|
h || (h = "Feed Me");
|
|
218
218
|
const [w, A] = h.split(" ");
|
|
219
219
|
return A ? `${w[0]}${A[0]}` : w.slice(0, 2);
|
|
220
|
-
}), S =
|
|
220
|
+
}), S = f(!1);
|
|
221
221
|
function ee(h) {
|
|
222
222
|
r("invite", h), S.value = !0;
|
|
223
223
|
}
|
|
@@ -227,8 +227,8 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
227
227
|
return (h, w) => {
|
|
228
228
|
var R, T, Z;
|
|
229
229
|
const A = F("FmRadio"), se = F("FmPhoneNumber"), oe = F("FmTextField"), o = F("FmRadioGroup"), i = F("FmButton");
|
|
230
|
-
return
|
|
231
|
-
S.value ? O("", !0) : (
|
|
230
|
+
return v(), E("div", js, [
|
|
231
|
+
S.value ? O("", !0) : (v(), E("div", Es, [
|
|
232
232
|
p(o, {
|
|
233
233
|
modelValue: M.value,
|
|
234
234
|
"onUpdate:modelValue": w[2] || (w[2] = (P) => M.value = P)
|
|
@@ -238,7 +238,7 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
238
238
|
value: "phone",
|
|
239
239
|
label: m(t)("team.memberForm.searchUser.phoneNumber")
|
|
240
240
|
}, null, 8, ["label"]),
|
|
241
|
-
M.value === "phone" ? (
|
|
241
|
+
M.value === "phone" ? (v(), k(se, {
|
|
242
242
|
key: 0,
|
|
243
243
|
modelValue: g.value,
|
|
244
244
|
"onUpdate:modelValue": w[0] || (w[0] = (P) => g.value = P),
|
|
@@ -249,7 +249,7 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
249
249
|
value: "email",
|
|
250
250
|
label: m(t)("team.memberForm.searchUser.email")
|
|
251
251
|
}, null, 8, ["label"]),
|
|
252
|
-
M.value === "email" ? (
|
|
252
|
+
M.value === "email" ? (v(), k(oe, {
|
|
253
253
|
key: 1,
|
|
254
254
|
modelValue: _.value,
|
|
255
255
|
"onUpdate:modelValue": w[1] || (w[1] = (P) => _.value = P),
|
|
@@ -265,7 +265,7 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
265
265
|
onClick: V
|
|
266
266
|
}, null, 8, ["label"])
|
|
267
267
|
])),
|
|
268
|
-
u.value ? (
|
|
268
|
+
u.value ? (v(), E("div", {
|
|
269
269
|
key: 1,
|
|
270
270
|
class: "profile-menu--profile cursor-pointer hover:bg-fm-color-opacity-sm",
|
|
271
271
|
onClick: w[3] || (w[3] = (P) => ee(u.value))
|
|
@@ -277,7 +277,7 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
277
277
|
c("p", zs, B((Z = u.value) == null ? void 0 : Z.phoneNumber), 1)
|
|
278
278
|
])
|
|
279
279
|
])) : O("", !0),
|
|
280
|
-
S.value ? (
|
|
280
|
+
S.value ? (v(), E("div", Gs, [
|
|
281
281
|
p(i, {
|
|
282
282
|
label: m(t)("team.memberForm.searchUser.changeUser"),
|
|
283
283
|
variant: "secondary",
|
|
@@ -313,7 +313,7 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
313
313
|
},
|
|
314
314
|
emits: ["update:model-value"],
|
|
315
315
|
setup(a, { emit: y }) {
|
|
316
|
-
const r = a, t = y, { t: n } = ge(), { searchKey: L, filter: M } = xs(""), g =
|
|
316
|
+
const r = a, t = y, { t: n } = ge(), { searchKey: L, filter: M } = xs(""), g = f(!0), _ = f([]), u = I(() => {
|
|
317
317
|
const o = {};
|
|
318
318
|
return r.roles.forEach((i) => {
|
|
319
319
|
o[i.value] = i.label;
|
|
@@ -399,7 +399,7 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
399
399
|
});
|
|
400
400
|
return (o, i) => {
|
|
401
401
|
const R = F("FmSwitch"), T = F("FmTextField"), Z = F("FmPinField"), P = F("FmFormGroup"), D = F("FmSearch"), q = F("FmSelect");
|
|
402
|
-
return
|
|
402
|
+
return v(), E("div", Xs, [
|
|
403
403
|
c("div", Zs, [
|
|
404
404
|
c("div", Qs, [
|
|
405
405
|
c("div", Ys, B(m(n)("team.memberForm.masterUser.title")), 1),
|
|
@@ -413,7 +413,7 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
413
413
|
}, null, 8, ["model-value"])
|
|
414
414
|
])
|
|
415
415
|
]),
|
|
416
|
-
a.modelValue ? (
|
|
416
|
+
a.modelValue ? (v(), E(he, { key: 0 }, [
|
|
417
417
|
c("div", et, [
|
|
418
418
|
p(T, {
|
|
419
419
|
"model-value": a.modelValue.code,
|
|
@@ -438,7 +438,7 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
438
438
|
]
|
|
439
439
|
}, {
|
|
440
440
|
default: j(() => [
|
|
441
|
-
(
|
|
441
|
+
(v(), k(Z, {
|
|
442
442
|
key: `pin-field-${g.value}`,
|
|
443
443
|
modelValue: _.value,
|
|
444
444
|
"onUpdate:modelValue": i[2] || (i[2] = (d) => _.value = d),
|
|
@@ -517,16 +517,16 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
517
517
|
},
|
|
518
518
|
setup(a, { expose: y }) {
|
|
519
519
|
var xe, Fe, Ue;
|
|
520
|
-
const r = a, { t } = ge(), n =
|
|
520
|
+
const r = a, { t } = ge(), n = f(), L = Je(), M = I(
|
|
521
521
|
() => L.permissionSets.value.map((l) => ({
|
|
522
522
|
label: l.name,
|
|
523
523
|
value: l.id
|
|
524
524
|
}))
|
|
525
|
-
), g =
|
|
525
|
+
), g = f(((xe = r.initialValue) == null ? void 0 : xe.permissionSetIds) || []), _ = I(
|
|
526
526
|
() => ds(g.value, L.permissionSets.value)
|
|
527
|
-
), u =
|
|
527
|
+
), u = f((Fe = r.initialValue) == null ? void 0 : Fe.posUser), V = f(!1), U = f(!1), S = f(
|
|
528
528
|
we(
|
|
529
|
-
|
|
529
|
+
fe(_.value),
|
|
530
530
|
((Ue = r.initialValue) == null ? void 0 : Ue.permissions) || []
|
|
531
531
|
)
|
|
532
532
|
), { customReportPermissions: ee, isLoaded: W } = Xe(), h = new Set(
|
|
@@ -561,7 +561,7 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
561
561
|
b !== u.value && (V.value = !0), u.value = b;
|
|
562
562
|
}
|
|
563
563
|
function Z() {
|
|
564
|
-
const l =
|
|
564
|
+
const l = fe(_.value), b = W.value ? w.value : h, K = vs(S.value, b), X = fs(K, A.value), Y = bs(X);
|
|
565
565
|
return ys(l, Y);
|
|
566
566
|
}
|
|
567
567
|
function P() {
|
|
@@ -588,12 +588,12 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
588
588
|
// update mode, POS not touched → signal no change to backend
|
|
589
589
|
};
|
|
590
590
|
}
|
|
591
|
-
const D =
|
|
591
|
+
const D = f();
|
|
592
592
|
ye(
|
|
593
593
|
() => r.initialValue,
|
|
594
594
|
(l) => {
|
|
595
595
|
if (!l) {
|
|
596
|
-
g.value = [], u.value = void 0, V.value = !1, U.value = !1, S.value = we(
|
|
596
|
+
g.value = [], u.value = void 0, V.value = !1, U.value = !1, S.value = we(fe([]), []);
|
|
597
597
|
return;
|
|
598
598
|
}
|
|
599
599
|
if (U.value) {
|
|
@@ -601,14 +601,14 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
601
601
|
return;
|
|
602
602
|
}
|
|
603
603
|
g.value = l.permissionSetIds || [], (!V.value || l.posUser !== void 0) && (u.value = l.posUser), S.value = we(
|
|
604
|
-
|
|
604
|
+
fe(_.value),
|
|
605
605
|
l.permissions || []
|
|
606
606
|
), V.value = !1;
|
|
607
607
|
},
|
|
608
608
|
{ immediate: !0 }
|
|
609
609
|
);
|
|
610
610
|
function q() {
|
|
611
|
-
S.value =
|
|
611
|
+
S.value = fe(_.value), U.value = !0;
|
|
612
612
|
const l = d(u.value, S.value);
|
|
613
613
|
l !== u.value && (V.value = !0), u.value = l;
|
|
614
614
|
}
|
|
@@ -622,7 +622,7 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
622
622
|
async function J() {
|
|
623
623
|
await Ae(), D.value && D.value.$el.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
624
624
|
}
|
|
625
|
-
const te =
|
|
625
|
+
const te = f();
|
|
626
626
|
async function Q() {
|
|
627
627
|
return (await te.value.validateInputsWithoutSubmit()).length ? null : P();
|
|
628
628
|
}
|
|
@@ -631,7 +631,7 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
631
631
|
validate: Q
|
|
632
632
|
}), (l, b) => {
|
|
633
633
|
const K = F("FmSelect"), X = F("FmCircularProgress"), Y = F("FmForm");
|
|
634
|
-
return
|
|
634
|
+
return v(), k(Y, {
|
|
635
635
|
ref_key: "formRef",
|
|
636
636
|
ref: te,
|
|
637
637
|
class: "mx-4"
|
|
@@ -641,16 +641,16 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
641
641
|
return [
|
|
642
642
|
c("div", ot, [
|
|
643
643
|
c("div", nt, [
|
|
644
|
-
a.initialValue ? (
|
|
644
|
+
a.initialValue ? (v(), k(Ls, {
|
|
645
645
|
key: 1,
|
|
646
646
|
data: a.initialValue
|
|
647
|
-
}, null, 8, ["data"])) : (
|
|
647
|
+
}, null, 8, ["data"])) : (v(), k(Js, {
|
|
648
648
|
key: 0,
|
|
649
649
|
onInvite: b[0] || (b[0] = (N) => R(N))
|
|
650
650
|
}))
|
|
651
651
|
]),
|
|
652
|
-
n.value || a.initialValue ? (
|
|
653
|
-
(ae = a.initialValue) != null && ae.isOwner ? O("", !0) : (
|
|
652
|
+
n.value || a.initialValue ? (v(), E(he, { key: 0 }, [
|
|
653
|
+
(ae = a.initialValue) != null && ae.isOwner ? O("", !0) : (v(), k(K, {
|
|
654
654
|
key: 0,
|
|
655
655
|
modelValue: g.value,
|
|
656
656
|
"onUpdate:modelValue": [
|
|
@@ -664,16 +664,16 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
664
664
|
label: m(t)("team.memberForm.permissionSet.title"),
|
|
665
665
|
placeholder: m(t)("team.memberForm.permissionSet.selectPlaceholder")
|
|
666
666
|
}, null, 8, ["modelValue", "items", "label", "placeholder"])),
|
|
667
|
-
(z = a.initialValue) != null && z.isOwner ? O("", !0) : (
|
|
667
|
+
(z = a.initialValue) != null && z.isOwner ? O("", !0) : (v(), k(gs, {
|
|
668
668
|
key: 1,
|
|
669
669
|
modelValue: S.value,
|
|
670
670
|
"onUpdate:modelValue": b[2] || (b[2] = (N) => S.value = N),
|
|
671
671
|
"inherit-permissions": _.value,
|
|
672
672
|
onPermissionChanged: T
|
|
673
673
|
}, null, 8, ["modelValue", "inherit-permissions"])),
|
|
674
|
-
a.isLoadingMasterUser ? (
|
|
674
|
+
a.isLoadingMasterUser ? (v(), E("div", rt, [
|
|
675
675
|
p(X)
|
|
676
|
-
])) : (
|
|
676
|
+
])) : (v(), k(lt, {
|
|
677
677
|
key: 3,
|
|
678
678
|
ref_key: "masterUserContentRef",
|
|
679
679
|
ref: D,
|
|
@@ -704,9 +704,9 @@ const ws = { class: "w-full flex flex-col gap-16" }, Ps = { class: "flex items-c
|
|
|
704
704
|
class: "flex items-start gap-8"
|
|
705
705
|
}, pt = {
|
|
706
706
|
class: "space-y-4 sm:hidden md:hidden lg:hidden px-16"
|
|
707
|
-
}, ft = {
|
|
708
|
-
class: "flex items-start gap-8"
|
|
709
707
|
}, vt = {
|
|
708
|
+
class: "flex items-start gap-8"
|
|
709
|
+
}, ft = {
|
|
710
710
|
class: "flex h-full flex-col"
|
|
711
711
|
}, bt = {
|
|
712
712
|
class: "flex items-center justify-start gap-8"
|
|
@@ -723,7 +723,7 @@ const yt = /* @__PURE__ */ me({
|
|
|
723
723
|
fetchCustomReportPermissions: r
|
|
724
724
|
} = Xe(), {
|
|
725
725
|
t
|
|
726
|
-
} = ge(), n = _e(), L = Ze(), M = ze(), g = cs(M), _ = Je(), u = hs(), V =
|
|
726
|
+
} = ge(), n = _e(), L = Ze(), M = ze(), g = cs(M), _ = Je(), u = hs(), V = f(!0), U = f(!1), S = f(n.restaurants.value.length === 0), ee = f([]), W = f(0), h = f(1), w = f(""), A = f(""), se = ye(n.restaurants, (e) => {
|
|
727
727
|
e.length > 0 && (S.value = !1, se());
|
|
728
728
|
}), oe = ({
|
|
729
729
|
member: e,
|
|
@@ -816,7 +816,7 @@ const yt = /* @__PURE__ */ me({
|
|
|
816
816
|
})]), e.permissionLabels.length > 0 && s]);
|
|
817
817
|
}
|
|
818
818
|
function T(e) {
|
|
819
|
-
var ie, ue,
|
|
819
|
+
var ie, ue, ve, $;
|
|
820
820
|
const s = u.getPermissionAssignmentByUserId(e.id), x = (s == null ? void 0 : s.customPermissions) || e.permissions || [], C = (s == null ? void 0 : s.permissionSetIds) || [];
|
|
821
821
|
return {
|
|
822
822
|
id: e.id,
|
|
@@ -829,7 +829,7 @@ const yt = /* @__PURE__ */ me({
|
|
|
829
829
|
posUser: e.doc.posUser ? {
|
|
830
830
|
code: ((ie = e.doc.posUser) == null ? void 0 : ie.code) ?? "",
|
|
831
831
|
name: ((ue = e.doc.posUser) == null ? void 0 : ue.name) ?? e.name,
|
|
832
|
-
passcode: ((
|
|
832
|
+
passcode: ((ve = e.doc.posUser) == null ? void 0 : ve.passcode) ?? "",
|
|
833
833
|
roles: (($ = e.doc.posUser) == null ? void 0 : $.roles) ?? []
|
|
834
834
|
} : void 0
|
|
835
835
|
};
|
|
@@ -847,7 +847,7 @@ const yt = /* @__PURE__ */ me({
|
|
|
847
847
|
posUser: void 0
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
|
-
const P =
|
|
850
|
+
const P = f(!1);
|
|
851
851
|
let D = 0;
|
|
852
852
|
const q = async (e, s) => {
|
|
853
853
|
if (e == pe.Update) {
|
|
@@ -868,7 +868,7 @@ const yt = /* @__PURE__ */ me({
|
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
e == pe.Remove && Y(s);
|
|
871
|
-
}, d = os(), J =
|
|
871
|
+
}, d = os(), J = f(!1), te = f(!1), Q = f(H.CLOSED), xe = I(() => Q.value !== H.CLOSED), Fe = I(() => Q.value === H.ADD ? t("common.add") : t("common.update")), Ue = I(() => Q.value === H.ADD ? t("team.actions.addMember") : t("team.actions.updateMember")), l = f();
|
|
872
872
|
function b(e) {
|
|
873
873
|
e || (D++, P.value = !1, Q.value = H.CLOSED);
|
|
874
874
|
}
|
|
@@ -907,7 +907,7 @@ const yt = /* @__PURE__ */ me({
|
|
|
907
907
|
});
|
|
908
908
|
}, ae = () => {
|
|
909
909
|
l.value = null, Q.value = H.ADD;
|
|
910
|
-
}, z =
|
|
910
|
+
}, z = f(), G = f(), ne = I(() => {
|
|
911
911
|
var e;
|
|
912
912
|
return JSON.stringify({
|
|
913
913
|
businessId: ((e = n.currentBusiness.value) == null ? void 0 : e._id) ?? "",
|
|
@@ -945,7 +945,7 @@ const yt = /* @__PURE__ */ me({
|
|
|
945
945
|
const e = Math.max(1, Math.ceil(W.value / de));
|
|
946
946
|
h.value > e && (h.value = e, await N(h.value));
|
|
947
947
|
}
|
|
948
|
-
const Se =
|
|
948
|
+
const Se = f();
|
|
949
949
|
async function Qe() {
|
|
950
950
|
if (!Se.value) return;
|
|
951
951
|
const e = await Se.value.validate();
|
|
@@ -998,9 +998,9 @@ const yt = /* @__PURE__ */ me({
|
|
|
998
998
|
}), y({
|
|
999
999
|
create: ae
|
|
1000
1000
|
}), (e, s) => {
|
|
1001
|
-
var
|
|
1001
|
+
var ve;
|
|
1002
1002
|
const x = F("FmSearch"), C = F("FmTable"), ie = F("FmButton"), ue = F("FmSideSheet");
|
|
1003
|
-
return
|
|
1003
|
+
return v(), E(he, null, [c("div", ut, [c("div", mt, [c("div", ct, [c("div", dt, [p(m(Me), {
|
|
1004
1004
|
modelValue: z.value,
|
|
1005
1005
|
"onUpdate:modelValue": s[0] || (s[0] = ($) => z.value = $),
|
|
1006
1006
|
"managable-only": !1,
|
|
@@ -1027,7 +1027,7 @@ const yt = /* @__PURE__ */ me({
|
|
|
1027
1027
|
class: "w-[320px] xs:w-full xs:mt-8",
|
|
1028
1028
|
autofocus: "",
|
|
1029
1029
|
placeholder: m(t)("team.search.placeholder")
|
|
1030
|
-
}, null, 8, ["modelValue", "placeholder"]), c("div",
|
|
1030
|
+
}, null, 8, ["modelValue", "placeholder"]), c("div", vt, [p(m(Me), {
|
|
1031
1031
|
modelValue: z.value,
|
|
1032
1032
|
"onUpdate:modelValue": s[4] || (s[4] = ($) => z.value = $),
|
|
1033
1033
|
"managable-only": !1,
|
|
@@ -1042,16 +1042,16 @@ const yt = /* @__PURE__ */ me({
|
|
|
1042
1042
|
items: re.value,
|
|
1043
1043
|
"selected-prefix": m(t)("team.filter.selected_permission_prefix"),
|
|
1044
1044
|
placeholder: m(t)("team.filter.permission_placeholder")
|
|
1045
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])]), (
|
|
1045
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])]), (ve = m(n).currentBusiness.value) != null && ve._id ? (v(), k(is, {
|
|
1046
1046
|
key: 0
|
|
1047
1047
|
}, {
|
|
1048
|
-
default: j(() => [c("div",
|
|
1048
|
+
default: j(() => [c("div", ft, [!U.value && V.value ? (v(), k(us, {
|
|
1049
1049
|
key: 0
|
|
1050
|
-
})) : !U.value || W.value === 0 ? (
|
|
1050
|
+
})) : !U.value || W.value === 0 ? (v(), k(m(ms), {
|
|
1051
1051
|
key: 1,
|
|
1052
1052
|
title: m(t)("team.emptyState.title"),
|
|
1053
1053
|
subtitle: m(t)("team.emptyState.description")
|
|
1054
|
-
}, null, 8, ["title", "subtitle"])) : O("", !0), U.value ? (
|
|
1054
|
+
}, null, 8, ["title", "subtitle"])) : O("", !0), U.value ? (v(), k(C, {
|
|
1055
1055
|
key: ne.value,
|
|
1056
1056
|
"column-defs": i,
|
|
1057
1057
|
"row-data": ee.value,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ref as d, computed as b, defineComponent as ce, onMounted as me, watch as X, resolveComponent as u, createElementBlock as B, openBlock as D, Fragment as Z, createVNode as l, createElementVNode as i, unref as n, withCtx as V, 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-BK_bM9xY.js";
|
|
3
3
|
import { useI18n as ye, useCoreStore as we, 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-pvHHFjbx.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-fEAOlgoV.js";
|
|
8
|
+
import { c as Ce, s as Ve } from "./iteration-Bk3cnP07.js";
|
|
9
|
+
import { b as Fe } from "./index-Bckj5jnu.js";
|
|
10
|
+
import { u as Ye } from "./employee-DhkixwiI.js";
|
|
11
|
+
import { u as Le } from "./timesheet-DSQeCVfL.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);
|