@feedmepos/mf-hrm-portal 2.0.24-dev.9 → 2.0.25-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-NOjQWc0n.js +1145 -0
- package/dist/{EmployeeList-CYOUXmdo.js → EmployeeList-CLAEc_Dl.js} +8 -8
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-S4Mh4MvG.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +1 -1
- package/dist/{Main-DR0uJn8p.js → Main-CnLbqtUE.js} +1142 -1138
- package/dist/{Main-9hhLn78R.js → Main-DaG5Gqo3.js} +6 -6
- package/dist/Main-zga1U6eC.js +94 -0
- package/dist/{PermissionSetList-CPzhnAsF.js → PermissionSetList-4T-K3P1Y.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DwVt6Zov.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-SBojB1i0.js} +741 -741
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-B3wDoRUf.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-Sn93AcEd.js} +1 -1
- package/dist/{RoleList-DQEogUW9.js → RoleList-Dz7Vwovj.js} +51 -49
- package/dist/{SelectFilter-C61IZSID.js → SelectFilter-ATOm0hdn.js} +37 -37
- package/dist/{TeamMemberList-BjZhJqoO.js → TeamMemberList-DYGEd5pe.js} +57 -57
- package/dist/{TimesheetList-FsSNYSN_.js → TimesheetList-nAeY6i18.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-DcyltQoo.js → TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-Bd74jnJu.js} +2 -2
- package/dist/{app-D9NotBhb.js → app-DhjOMwb9.js} +778 -732
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DtwtoL_z.js → dayjs.min-Bd3JE67B.js} +1 -1
- package/dist/{employee-F_qzDON_.js → employee-B3aJC3BG.js} +3 -3
- package/dist/{iteration-BQBKoufN.js → iteration-gb-z-6D3.js} +1 -1
- package/dist/{lodash-gOdQI_3W.js → lodash-BOwvb210.js} +1 -1
- package/dist/{rule-BR05-rZt.js → rule-CkP2wcOa.js} +25 -25
- package/dist/src/api/audit-log/index.d.ts +17 -0
- package/dist/src/views/hr/locales/index.d.ts +4 -0
- package/dist/src/views/team/locales/index.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CAmajyh0.js → useAppStore-ByWfAgOH.js} +1 -1
- package/dist/{useLoading-D7Nr5flX.js → useLoading-cyuvXo-X.js} +1 -1
- package/dist/{useReportPermissions-DRSVPDf-.js → useReportPermissions-Blkuv4SJ.js} +3 -3
- package/package.json +2 -2
- package/dist/AuditLogList-Cc0vtZTU.js +0 -1054
- package/dist/Main-DHNuxBWB.js +0 -90
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as $, computed as v, defineComponent as X, watch as Y, nextTick as Z, resolveComponent as A, createElementBlock as d, openBlock as c, createElementVNode as _, createVNode as
|
|
1
|
+
import { ref as $, computed as v, defineComponent as X, watch as Y, nextTick as Z, resolveComponent as A, createElementBlock as d, openBlock as c, createElementVNode as _, createVNode as k, renderSlot as z, withCtx as H, createCommentVNode as S, normalizeStyle as ee, Fragment as w, createBlock as T, unref as C, renderList as R, toDisplayString as N, normalizeClass as le, withModifiers as te } from "vue";
|
|
2
2
|
import "@feedmepos/ui-library";
|
|
3
3
|
/* empty css */
|
|
4
4
|
function ae(u, n, h = u) {
|
|
@@ -99,12 +99,12 @@ const ue = { class: "w-full flex flex-col gap-8" }, ne = { class: "flex items-ce
|
|
|
99
99
|
set(e, a, s) {
|
|
100
100
|
return a === "value" ? (t.value = s, !0) : (L[a] = s, !0);
|
|
101
101
|
}
|
|
102
|
-
}), { allSelected: O, toggleAll: q, toggleOption:
|
|
102
|
+
}), { allSelected: O, toggleAll: q, toggleOption: E, indeterminate: J } = ae(
|
|
103
103
|
f,
|
|
104
104
|
j,
|
|
105
105
|
r
|
|
106
106
|
);
|
|
107
|
-
function
|
|
107
|
+
function G(e) {
|
|
108
108
|
var a;
|
|
109
109
|
l.multiple || (t.value = e, (a = M.value) == null || a.toggleMenu(!1));
|
|
110
110
|
}
|
|
@@ -136,7 +136,7 @@ const ue = { class: "w-full flex flex-col gap-8" }, ne = { class: "flex items-ce
|
|
|
136
136
|
const s = A("FmIcon"), F = A("FmChip"), x = A("FmSearch"), P = A("FmMenuItem"), W = A("FmMenu");
|
|
137
137
|
return c(), d("div", ue, [
|
|
138
138
|
_("div", ne, [
|
|
139
|
-
|
|
139
|
+
k(W, {
|
|
140
140
|
ref_key: "menuRef",
|
|
141
141
|
ref: M,
|
|
142
142
|
"close-on-click": !1,
|
|
@@ -147,9 +147,9 @@ const ue = { class: "w-full flex flex-col gap-8" }, ne = { class: "flex items-ce
|
|
|
147
147
|
"menu-button": H(() => [
|
|
148
148
|
z(e.$slots, "menu-button", {}, () => [
|
|
149
149
|
_("div", re, [
|
|
150
|
-
|
|
150
|
+
k(F, { disabled: u.disabled }, {
|
|
151
151
|
default: H(() => [
|
|
152
|
-
|
|
152
|
+
k(s, {
|
|
153
153
|
color: I.value,
|
|
154
154
|
name: u.chipIcon,
|
|
155
155
|
outline: "",
|
|
@@ -161,8 +161,8 @@ const ue = { class: "w-full flex flex-col gap-8" }, ne = { class: "flex items-ce
|
|
|
161
161
|
"fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap",
|
|
162
162
|
U.value
|
|
163
163
|
])
|
|
164
|
-
},
|
|
165
|
-
|
|
164
|
+
}, N(m.value), 3)) : S("", !0),
|
|
165
|
+
k(s, {
|
|
166
166
|
color: I.value,
|
|
167
167
|
name: "keyboard_arrow_down",
|
|
168
168
|
size: "sm"
|
|
@@ -174,12 +174,12 @@ const ue = { class: "w-full flex flex-col gap-8" }, ne = { class: "flex items-ce
|
|
|
174
174
|
"aria-label": "Clear selection",
|
|
175
175
|
onClick: te(Q, ["stop"])
|
|
176
176
|
}, [
|
|
177
|
-
|
|
177
|
+
k(s, {
|
|
178
178
|
name: "close",
|
|
179
179
|
size: "sm",
|
|
180
180
|
color: I.value
|
|
181
181
|
}, null, 8, ["color"])
|
|
182
|
-
])) :
|
|
182
|
+
])) : S("", !0)
|
|
183
183
|
]),
|
|
184
184
|
_: 1
|
|
185
185
|
}, 8, ["disabled"])
|
|
@@ -190,62 +190,62 @@ const ue = { class: "w-full flex flex-col gap-8" }, ne = { class: "flex items-ce
|
|
|
190
190
|
_("div", oe, [
|
|
191
191
|
u.searchable ? (c(), d("div", se, [
|
|
192
192
|
_("div", ie, [
|
|
193
|
-
|
|
193
|
+
k(x, {
|
|
194
194
|
modelValue: V.value,
|
|
195
195
|
"onUpdate:modelValue": a[0] || (a[0] = (i) => V.value = i),
|
|
196
196
|
placeholder: u.searchPlaceholder
|
|
197
197
|
}, null, 8, ["modelValue", "placeholder"])
|
|
198
198
|
])
|
|
199
|
-
])) :
|
|
199
|
+
])) : S("", !0),
|
|
200
200
|
_("div", {
|
|
201
201
|
class: "flex-1 overflow-y-auto min-h-0",
|
|
202
202
|
style: ee({ maxHeight: typeof u.maxHeight == "number" ? u.maxHeight + "px" : u.maxHeight })
|
|
203
203
|
}, [
|
|
204
204
|
u.multiple ? (c(), d(w, { key: 0 }, [
|
|
205
|
-
u.showSelectAll ? (c(),
|
|
205
|
+
u.showSelectAll ? (c(), T(P, {
|
|
206
206
|
key: 0,
|
|
207
207
|
label: "All",
|
|
208
208
|
"has-checkbox": "",
|
|
209
|
-
"model-value":
|
|
210
|
-
indeterminate:
|
|
211
|
-
onClick:
|
|
212
|
-
}, null, 8, ["model-value", "indeterminate", "onClick"])) :
|
|
213
|
-
r.value.length ? (c(!0), d(w, { key: 1 },
|
|
209
|
+
"model-value": C(O),
|
|
210
|
+
indeterminate: C(J),
|
|
211
|
+
onClick: C(q)
|
|
212
|
+
}, null, 8, ["model-value", "indeterminate", "onClick"])) : S("", !0),
|
|
213
|
+
r.value.length ? (c(!0), d(w, { key: 1 }, R(y.value, (i) => (c(), d(w, {
|
|
214
214
|
key: i.group
|
|
215
215
|
}, [
|
|
216
|
-
i.group ? (c(), d("div", ce,
|
|
217
|
-
(c(!0), d(w, null,
|
|
218
|
-
var
|
|
216
|
+
i.group ? (c(), d("div", ce, N(i.group) + " (" + N(i.options.length) + ") ", 1)) : S("", !0),
|
|
217
|
+
(c(!0), d(w, null, R(i.options, (g) => {
|
|
218
|
+
var K;
|
|
219
219
|
return z(e.$slots, "option", {
|
|
220
|
+
key: g.value,
|
|
220
221
|
option: g,
|
|
221
|
-
selected:
|
|
222
|
-
toggle: () =>
|
|
222
|
+
selected: C(O) || Array.isArray(t.value) && ((K = t.value) == null ? void 0 : K.includes(g.value)),
|
|
223
|
+
toggle: () => C(E)(g.value)
|
|
223
224
|
}, () => {
|
|
224
|
-
var
|
|
225
|
+
var D;
|
|
225
226
|
return [
|
|
226
|
-
(
|
|
227
|
-
key: g.value,
|
|
227
|
+
k(P, {
|
|
228
228
|
label: g.label,
|
|
229
229
|
"has-checkbox": "",
|
|
230
|
-
"model-value":
|
|
231
|
-
onClick: (fe) =>
|
|
232
|
-
}, null, 8, ["label", "model-value", "onClick"])
|
|
230
|
+
"model-value": C(O) || Array.isArray(t.value) && ((D = t.value) == null ? void 0 : D.includes(g.value)),
|
|
231
|
+
onClick: (fe) => C(E)(g.value)
|
|
232
|
+
}, null, 8, ["label", "model-value", "onClick"])
|
|
233
233
|
];
|
|
234
234
|
}, !0);
|
|
235
|
-
}),
|
|
236
|
-
], 64))), 128)) :
|
|
235
|
+
}), 128))
|
|
236
|
+
], 64))), 128)) : S("", !0)
|
|
237
237
|
], 64)) : (c(), d(w, { key: 1 }, [
|
|
238
|
-
r.value.length ? (c(!0), d(w, { key: 0 },
|
|
238
|
+
r.value.length ? (c(!0), d(w, { key: 0 }, R(r.value, (i) => z(e.$slots, "option", {
|
|
239
239
|
option: i,
|
|
240
240
|
selected: t.value === i.value,
|
|
241
|
-
toggle: () =>
|
|
241
|
+
toggle: () => G(i.value)
|
|
242
242
|
}, () => [
|
|
243
|
-
(c(),
|
|
243
|
+
(c(), T(P, {
|
|
244
244
|
key: i.value,
|
|
245
245
|
label: i.label,
|
|
246
|
-
onClick: (g) =>
|
|
246
|
+
onClick: (g) => G(i.value)
|
|
247
247
|
}, null, 8, ["label", "onClick"]))
|
|
248
|
-
], !0)), 256)) :
|
|
248
|
+
], !0)), 256)) : S("", !0)
|
|
249
249
|
], 64))
|
|
250
250
|
], 4)
|
|
251
251
|
])
|
|
@@ -262,7 +262,7 @@ const ue = { class: "w-full flex flex-col gap-8" }, ne = { class: "flex items-ce
|
|
|
262
262
|
for (const [l, p] of n)
|
|
263
263
|
h[l] = p;
|
|
264
264
|
return h;
|
|
265
|
-
}, pe = /* @__PURE__ */ de(ve, [["__scopeId", "data-v-
|
|
265
|
+
}, pe = /* @__PURE__ */ de(ve, [["__scopeId", "data-v-81cde2b9"]]);
|
|
266
266
|
export {
|
|
267
267
|
pe as S,
|
|
268
268
|
de as _
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as Se, resolveComponent as V, createElementBlock as D, openBlock as y, createElementVNode as r, createVNode as u, toDisplayString as
|
|
1
|
+
import { defineComponent as Se, resolveComponent as V, createElementBlock as D, openBlock as y, createElementVNode as r, createVNode as u, toDisplayString as k, unref as o, ref as f, computed as P, createCommentVNode as T, withCtx as ue, createBlock as q, watch as me, Fragment as Ie, renderList as ls, withKeys as Be, withModifiers as Fe, nextTick as os, onUnmounted as ns, h as rs, createTextVNode as is } from "vue";
|
|
2
2
|
import { useI18n as Ve, useCoreStore as Ae, baseClientInstance as je } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Je, useDialog as us, useBreakpoints as ms, components as Me } from "@feedmepos/ui-library";
|
|
4
4
|
import { u as ds, _ as cs } from "./useDebounce-CWb5QR9G.js";
|
|
5
|
-
import { _ as ps, S as be } from "./SelectFilter-
|
|
6
|
-
import { b as Ee, m as vs,
|
|
5
|
+
import { _ as ps, S as be } from "./SelectFilter-ATOm0hdn.js";
|
|
6
|
+
import { b as Ee, m as vs, k as fs, _ as bs, a as ys } from "./app-DhjOMwb9.js";
|
|
7
7
|
import { u as _s, _ as hs } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
8
8
|
import { _ as gs } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
9
|
-
import { u as xs } from "./useLoading-
|
|
10
|
-
import { l as Ne } from "./lodash-
|
|
11
|
-
import { g as Le, d as pe, u as Xe } from "./iteration-
|
|
12
|
-
import { u as Ze, c as Te, b as qe, m as
|
|
13
|
-
import { u as Ye } from "./useAppStore-
|
|
14
|
-
import { u as He } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-
|
|
15
|
-
import { _ as
|
|
9
|
+
import { u as xs } from "./useLoading-cyuvXo-X.js";
|
|
10
|
+
import { l as Ne } from "./lodash-BOwvb210.js";
|
|
11
|
+
import { g as Le, d as pe, u as Xe } from "./iteration-gb-z-6D3.js";
|
|
12
|
+
import { u as Ze, c as Te, b as qe, m as ke, d as Qe, p as Ke, i as Us, j as ze, k as Ge, l as Fs, n as Ss, s as Vs, o as ws, q as Ps, t as Ue } from "./rule-CkP2wcOa.js";
|
|
13
|
+
import { u as Ye } from "./useAppStore-ByWfAgOH.js";
|
|
14
|
+
import { u as He } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-Sn93AcEd.js";
|
|
15
|
+
import { _ as ks } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-SBojB1i0.js";
|
|
16
16
|
var _e = /* @__PURE__ */ ((m) => (m.Update = "Update", m.Remove = "Remove", m))(_e || {});
|
|
17
|
-
const
|
|
17
|
+
const Is = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-center gap-16" }, Rs = { class: "space-y-4 min-w-0 flex-1" }, Cs = { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400" }, Ms = { class: "fm-typo-en-body-lg-600 truncate" }, Ns = { class: "w-full flex gap-16 items-center" }, Ds = { class: "flex-1 flex flex-col gap-4 min-w-0" }, As = { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400" }, Os = { class: "fm-typo-en-body-lg-600 truncate" }, Bs = { class: "flex-1 flex flex-col gap-4 min-w-0" }, js = { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400" }, Es = { class: "fm-typo-en-body-lg-600 truncate" }, Ls = /* @__PURE__ */ Se({
|
|
18
18
|
__name: "MemberInfo",
|
|
19
19
|
props: {
|
|
20
20
|
data: {}
|
|
@@ -23,25 +23,25 @@ const ks = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-c
|
|
|
23
23
|
const { t: A } = Ve();
|
|
24
24
|
return (n, a) => {
|
|
25
25
|
const d = V("FmAvatar");
|
|
26
|
-
return y(), D("div",
|
|
26
|
+
return y(), D("div", Is, [
|
|
27
27
|
r("div", $s, [
|
|
28
28
|
u(d, {
|
|
29
29
|
size: "xl",
|
|
30
30
|
name: m.data.name
|
|
31
31
|
}, null, 8, ["name"]),
|
|
32
32
|
r("div", Rs, [
|
|
33
|
-
r("p", Cs,
|
|
34
|
-
r("p", Ms,
|
|
33
|
+
r("p", Cs, k(o(A)("team.memberForm.memberInfo.memberName")), 1),
|
|
34
|
+
r("p", Ms, k(m.data.name || "--"), 1)
|
|
35
35
|
])
|
|
36
36
|
]),
|
|
37
37
|
r("div", Ns, [
|
|
38
38
|
r("div", Ds, [
|
|
39
|
-
r("p", As,
|
|
40
|
-
r("p", Os,
|
|
39
|
+
r("p", As, k(o(A)("team.memberForm.memberInfo.mobileNumber")), 1),
|
|
40
|
+
r("p", Os, k(m.data.phoneNumber || "--"), 1)
|
|
41
41
|
]),
|
|
42
42
|
r("div", Bs, [
|
|
43
|
-
r("p", js,
|
|
44
|
-
r("p", Es,
|
|
43
|
+
r("p", js, k(o(A)("team.memberForm.memberInfo.emailAddress")), 1),
|
|
44
|
+
r("p", Es, k(m.data.email || "--"), 1)
|
|
45
45
|
])
|
|
46
46
|
])
|
|
47
47
|
]);
|
|
@@ -146,11 +146,11 @@ const ks = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-c
|
|
|
146
146
|
class: "profile-menu--profile cursor-pointer hover:bg-fm-color-opacity-sm",
|
|
147
147
|
onClick: S[3] || (S[3] = (w) => K(p.value))
|
|
148
148
|
}, [
|
|
149
|
-
r("div", Ks,
|
|
149
|
+
r("div", Ks, k(X.value), 1),
|
|
150
150
|
r("div", zs, [
|
|
151
|
-
r("p", Gs,
|
|
152
|
-
r("p", Ws,
|
|
153
|
-
r("p", Js,
|
|
151
|
+
r("p", Gs, k((Q = p.value) == null ? void 0 : Q.displayName), 1),
|
|
152
|
+
r("p", Ws, k((Y = p.value) == null ? void 0 : Y.email), 1),
|
|
153
|
+
r("p", Js, k((B = p.value) == null ? void 0 : B.phoneNumber), 1)
|
|
154
154
|
])
|
|
155
155
|
])) : T("", !0),
|
|
156
156
|
Z.value ? (y(), D("div", Xs, [
|
|
@@ -296,8 +296,8 @@ const ks = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-c
|
|
|
296
296
|
return y(), D("div", Ys, [
|
|
297
297
|
r("div", Hs, [
|
|
298
298
|
r("div", et, [
|
|
299
|
-
r("div", st,
|
|
300
|
-
r("div", tt,
|
|
299
|
+
r("div", st, k(o(d)("team.memberForm.masterUser.title")), 1),
|
|
300
|
+
r("div", tt, k(o(d)("team.memberForm.masterUser.sublabel")), 1)
|
|
301
301
|
]),
|
|
302
302
|
r("div", null, [
|
|
303
303
|
u(x, {
|
|
@@ -307,7 +307,7 @@ const ks = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-c
|
|
|
307
307
|
}, null, 8, ["model-value"])
|
|
308
308
|
])
|
|
309
309
|
]),
|
|
310
|
-
m.modelValue ? (y(), D(
|
|
310
|
+
m.modelValue ? (y(), D(Ie, { key: 0 }, [
|
|
311
311
|
r("div", at, [
|
|
312
312
|
u(M, {
|
|
313
313
|
"model-value": m.modelValue.code,
|
|
@@ -323,7 +323,7 @@ const ks = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-c
|
|
|
323
323
|
}, null, 8, ["model-value", "label", "rules"])
|
|
324
324
|
]),
|
|
325
325
|
r("div", lt, [
|
|
326
|
-
r("div", ot,
|
|
326
|
+
r("div", ot, k(o(d)("team.memberForm.masterUser.passcode")), 1),
|
|
327
327
|
u(Y, {
|
|
328
328
|
modelValue: j.value,
|
|
329
329
|
"onUpdate:modelValue": l[4] || (l[4] = (c) => j.value = c),
|
|
@@ -355,14 +355,14 @@ const ks = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-c
|
|
|
355
355
|
}, {
|
|
356
356
|
default: ue(() => [
|
|
357
357
|
r("div", nt, [
|
|
358
|
-
r("div", rt,
|
|
358
|
+
r("div", rt, k(o(d)("team.memberForm.masterUser.assignmentSection")), 1),
|
|
359
359
|
r("div", it, [
|
|
360
360
|
r("div", ut, [
|
|
361
|
-
r("div", mt,
|
|
362
|
-
r("div", dt,
|
|
361
|
+
r("div", mt, k(o(d)("team.table.columns.restaurant")), 1),
|
|
362
|
+
r("div", dt, k(o(d)("team.memberForm.masterUser.role")), 1),
|
|
363
363
|
l[6] || (l[6] = r("div", null, null, -1))
|
|
364
364
|
]),
|
|
365
|
-
(y(!0), D(
|
|
365
|
+
(y(!0), D(Ie, null, ls(m.modelValue.roles, (c, h) => (y(), D("div", {
|
|
366
366
|
key: `${c.restaurantId || "new"}-${h}`,
|
|
367
367
|
class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] items-center gap-16"
|
|
368
368
|
}, [
|
|
@@ -455,7 +455,7 @@ const ks = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-c
|
|
|
455
455
|
() => Te(_.value, C.permissionSets.value)
|
|
456
456
|
), v = f((he = n.initialValue) == null ? void 0 : he.posUser), p = f(
|
|
457
457
|
qe(
|
|
458
|
-
|
|
458
|
+
ke(O.value),
|
|
459
459
|
((ge = n.initialValue) == null ? void 0 : ge.permissions) || []
|
|
460
460
|
)
|
|
461
461
|
), { customReportPermissions: te, isLoaded: X } = Qe(), Z = new Set(
|
|
@@ -486,7 +486,7 @@ const ks = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-c
|
|
|
486
486
|
}), l = f({ permissionSetIds: [], userPermissions: [], posUser: void 0 });
|
|
487
487
|
function x(t) {
|
|
488
488
|
d.value = void 0, _.value = [...(t == null ? void 0 : t.permissionSetIds) ?? []], p.value = qe(
|
|
489
|
-
|
|
489
|
+
ke(
|
|
490
490
|
Te(
|
|
491
491
|
_.value,
|
|
492
492
|
C.permissionSets.value
|
|
@@ -509,14 +509,14 @@ const ks = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-c
|
|
|
509
509
|
v.value = h(v.value, t);
|
|
510
510
|
}
|
|
511
511
|
function B() {
|
|
512
|
-
const t =
|
|
512
|
+
const t = ke(O.value), b = X.value ? K.value : Z, I = Fs(p.value, b), $ = Ss(I, z.value), R = Vs($);
|
|
513
513
|
return ws(t, R);
|
|
514
514
|
}
|
|
515
515
|
function w() {
|
|
516
|
-
var
|
|
516
|
+
var I, $, R, H, re, ie, de, ae, ee, ce;
|
|
517
517
|
const t = B(), b = p.value.filter((se) => !se.inverted);
|
|
518
518
|
return {
|
|
519
|
-
email: ((
|
|
519
|
+
email: ((I = d.value) == null ? void 0 : I.email) ?? void 0,
|
|
520
520
|
phoneNumber: (($ = d.value) == null ? void 0 : $.phoneNumber) ?? void 0,
|
|
521
521
|
customPermissions: t,
|
|
522
522
|
permissions: b.map((se) => ({
|
|
@@ -536,15 +536,15 @@ const ks = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-c
|
|
|
536
536
|
}
|
|
537
537
|
const W = f();
|
|
538
538
|
function c() {
|
|
539
|
-
p.value =
|
|
539
|
+
p.value = ke(O.value);
|
|
540
540
|
}
|
|
541
541
|
function h(t, b) {
|
|
542
542
|
if (!t) return t;
|
|
543
|
-
const
|
|
544
|
-
if (
|
|
543
|
+
const I = ze(b), $ = Ge(b);
|
|
544
|
+
if (I === null && $ === null) return t;
|
|
545
545
|
const R = pe(t);
|
|
546
546
|
return R.roles = R.roles.filter(
|
|
547
|
-
(H) => (
|
|
547
|
+
(H) => (I === null || I.includes(H.roleId)) && ($ === null || $.includes(H.restaurantId))
|
|
548
548
|
), R;
|
|
549
549
|
}
|
|
550
550
|
const L = f(!!v.value), ve = f(!1);
|
|
@@ -585,7 +585,7 @@ const ks = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-c
|
|
|
585
585
|
validate: we,
|
|
586
586
|
isModified: M
|
|
587
587
|
}), (t, b) => {
|
|
588
|
-
const
|
|
588
|
+
const I = V("FmSelect"), $ = V("FmCircularProgress"), R = V("FmForm");
|
|
589
589
|
return y(), q(R, {
|
|
590
590
|
ref_key: "formRef",
|
|
591
591
|
ref: ne,
|
|
@@ -604,11 +604,11 @@ const ks = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-c
|
|
|
604
604
|
onInvite: b[0] || (b[0] = (ee) => Q(ee))
|
|
605
605
|
}))
|
|
606
606
|
]),
|
|
607
|
-
d.value || m.initialValue ? (y(), D(
|
|
607
|
+
d.value || m.initialValue ? (y(), D(Ie, { key: 0 }, [
|
|
608
608
|
(H = m.initialValue) != null && H.isOwner ? T("", !0) : (y(), D("div", yt, [
|
|
609
609
|
r("div", _t, [
|
|
610
|
-
r("div", ht,
|
|
611
|
-
u(
|
|
610
|
+
r("div", ht, k(o(a)("team.memberForm.permissionSet.title")), 1),
|
|
611
|
+
u(I, {
|
|
612
612
|
modelValue: _.value,
|
|
613
613
|
"onUpdate:modelValue": [
|
|
614
614
|
b[1] || (b[1] = (ee) => _.value = ee),
|
|
@@ -622,8 +622,8 @@ const ks = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-c
|
|
|
622
622
|
}, null, 8, ["modelValue", "items", "placeholder"])
|
|
623
623
|
]),
|
|
624
624
|
r("div", gt, [
|
|
625
|
-
r("div", xt,
|
|
626
|
-
u(
|
|
625
|
+
r("div", xt, k(o(a)("team.memberForm.permissions.title")), 1),
|
|
626
|
+
u(ks, {
|
|
627
627
|
modelValue: p.value,
|
|
628
628
|
"onUpdate:modelValue": b[2] || (b[2] = (ee) => p.value = ee),
|
|
629
629
|
"inherit-permissions": O.value,
|
|
@@ -661,10 +661,10 @@ const ks = { class: "w-full flex flex-col gap-16" }, $s = { class: "flex items-c
|
|
|
661
661
|
class: "flex w-full items-start justify-between px-16"
|
|
662
662
|
}, Pt = {
|
|
663
663
|
class: "flex items-start gap-8"
|
|
664
|
-
},
|
|
664
|
+
}, kt = {
|
|
665
665
|
key: 1,
|
|
666
666
|
class: "space-y-4 px-16"
|
|
667
|
-
},
|
|
667
|
+
}, It = {
|
|
668
668
|
class: "flex items-start gap-8"
|
|
669
669
|
}, $t = {
|
|
670
670
|
class: "flex h-full flex-col"
|
|
@@ -896,12 +896,12 @@ const Xt = /* @__PURE__ */ Se({
|
|
|
896
896
|
});
|
|
897
897
|
}, b = () => {
|
|
898
898
|
ne.value = null, h.value = le.ADD;
|
|
899
|
-
},
|
|
899
|
+
}, I = f(), $ = f(), R = f(), H = P(() => {
|
|
900
900
|
var e;
|
|
901
901
|
return JSON.stringify({
|
|
902
902
|
businessId: ((e = d.currentBusiness.value) == null ? void 0 : e._id) ?? "",
|
|
903
903
|
search: E.value.trim(),
|
|
904
|
-
restaurantIds: [...
|
|
904
|
+
restaurantIds: [...I.value ?? []].sort(),
|
|
905
905
|
permissionSubjects: [...$.value ?? []].sort(),
|
|
906
906
|
permissionSetIds: [...R.value ?? []].sort()
|
|
907
907
|
});
|
|
@@ -923,7 +923,7 @@ const Xt = /* @__PURE__ */ Se({
|
|
|
923
923
|
limit: ye,
|
|
924
924
|
offset: (e - 1) * ye,
|
|
925
925
|
search: E.value.trim() || void 0,
|
|
926
|
-
restaurantIds: (s =
|
|
926
|
+
restaurantIds: (s = I.value) != null && s.length ? I.value : void 0,
|
|
927
927
|
permissionSubjects: (U = $.value) != null && U.length ? $.value : void 0,
|
|
928
928
|
permissionSetIds: (F = R.value) != null && F.length ? R.value : void 0
|
|
929
929
|
});
|
|
@@ -1002,14 +1002,14 @@ const Xt = /* @__PURE__ */ Se({
|
|
|
1002
1002
|
}), (e, s) => {
|
|
1003
1003
|
var xe;
|
|
1004
1004
|
const U = V("FmSearch"), F = V("FmTable"), J = V("FmIcon"), oe = V("FmButton"), Pe = V("FmSideSheet");
|
|
1005
|
-
return y(), D(
|
|
1005
|
+
return y(), D(Ie, null, [r("div", St, [r("div", Vt, [o(ge).xs ? (y(), D("div", kt, [u(U, {
|
|
1006
1006
|
modelValue: S.value,
|
|
1007
1007
|
"onUpdate:modelValue": s[4] || (s[4] = (N) => S.value = N),
|
|
1008
1008
|
class: "w-[320px] xs:w-full xs:mt-8",
|
|
1009
1009
|
placeholder: o(a)("team.search.placeholder")
|
|
1010
|
-
}, null, 8, ["modelValue", "placeholder"]), r("div",
|
|
1011
|
-
modelValue:
|
|
1012
|
-
"onUpdate:modelValue": s[5] || (s[5] = (N) =>
|
|
1010
|
+
}, null, 8, ["modelValue", "placeholder"]), r("div", It, [u(be, {
|
|
1011
|
+
modelValue: I.value,
|
|
1012
|
+
"onUpdate:modelValue": s[5] || (s[5] = (N) => I.value = N),
|
|
1013
1013
|
multiple: "",
|
|
1014
1014
|
items: G.value,
|
|
1015
1015
|
variant: "dark",
|
|
@@ -1033,8 +1033,8 @@ const Xt = /* @__PURE__ */ Se({
|
|
|
1033
1033
|
"selected-prefix": o(a)("team.filter.selected_assigned_role_prefix"),
|
|
1034
1034
|
placeholder: o(a)("team.filter.assigned_role_placeholder")
|
|
1035
1035
|
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])])) : (y(), D("div", wt, [r("div", Pt, [u(be, {
|
|
1036
|
-
modelValue:
|
|
1037
|
-
"onUpdate:modelValue": s[0] || (s[0] = (N) =>
|
|
1036
|
+
modelValue: I.value,
|
|
1037
|
+
"onUpdate:modelValue": s[0] || (s[0] = (N) => I.value = N),
|
|
1038
1038
|
multiple: "",
|
|
1039
1039
|
items: G.value,
|
|
1040
1040
|
variant: "dark",
|
|
@@ -1092,7 +1092,7 @@ const Xt = /* @__PURE__ */ Se({
|
|
|
1092
1092
|
"close-button": !1,
|
|
1093
1093
|
"onOn:clickedAway": o(fe)
|
|
1094
1094
|
}, {
|
|
1095
|
-
"side-sheet-header": ue(() => [r("div", Rt, [r("p", Ct,
|
|
1095
|
+
"side-sheet-header": ue(() => [r("div", Rt, [r("p", Ct, k($e.value), 1), u(J, {
|
|
1096
1096
|
name: "close",
|
|
1097
1097
|
size: "md",
|
|
1098
1098
|
class: "cursor-pointer",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ref as d, computed as g, defineComponent as pe, onMounted as ve, watch as ee, resolveComponent as u, createElementBlock as P, openBlock as _, Fragment as te, createVNode as l, createElementVNode as i, unref as r, withCtx as Y, createCommentVNode as fe, toDisplayString as O, createTextVNode as he, createBlock as z, isRef as ge, renderList as we, nextTick as ye } from "vue";
|
|
2
|
-
import { d as v } from "./dayjs.min-
|
|
2
|
+
import { d as v } from "./dayjs.min-Bd3JE67B.js";
|
|
3
3
|
import { useI18n as be } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as _e, components as xe } from "@feedmepos/ui-library";
|
|
5
|
-
import { S as De, _ as Se } from "./SelectFilter-
|
|
6
|
-
import { _ as ke } from "./app-
|
|
5
|
+
import { S as De, _ as Se } from "./SelectFilter-ATOm0hdn.js";
|
|
6
|
+
import { _ as ke } from "./app-DhjOMwb9.js";
|
|
7
7
|
import { _ as Ve } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
8
|
-
import { u as Ce } from "./useLoading-
|
|
9
|
-
import { u as Fe, c as Ye, s as Le } from "./iteration-
|
|
8
|
+
import { u as Ce } from "./useLoading-cyuvXo-X.js";
|
|
9
|
+
import { u as Fe, c as Ye, s as Le } from "./iteration-gb-z-6D3.js";
|
|
10
10
|
import { f as Me } from "./utils-BZkjJbju.js";
|
|
11
|
-
import { u as Te } from "./employee-
|
|
12
|
-
import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-
|
|
11
|
+
import { u as Te } from "./employee-B3aJC3BG.js";
|
|
12
|
+
import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-Bd74jnJu.js";
|
|
13
13
|
function Ie(x, a) {
|
|
14
14
|
return ["years", "months"].find((S) => {
|
|
15
15
|
const k = x.startOf(S), f = x.endOf(S);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-
|
|
1
|
+
import { d as i } from "./dayjs.min-Bd3JE67B.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-
|
|
4
|
+
import { b as c, g as y, s as S } from "./iteration-gb-z-6D3.js";
|
|
5
5
|
import { i as f, f as g } from "./utils-BZkjJbju.js";
|
|
6
6
|
const u = {
|
|
7
7
|
async readTimesheets(t, e) {
|