@feedmepos/mf-hrm-portal 2.2.2 → 2.2.3
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/{ApprovalCodeList-Dpg-lwZA.js → ApprovalCodeList-BnG3T_Lk.js} +2 -2
- package/dist/AuditLogList-CpK9-YkB.js +1776 -0
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Di-1ZwEW.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CzKzq19d.js} +2 -2
- package/dist/{EmployeeList-ByeniR1c.js → EmployeeList-CUsRanu7.js} +8 -7
- package/dist/{GrantUserList-D0YIdpMH.js → GrantUserList-BJoj3ZcO.js} +3 -3
- package/dist/{Main-Bg0Najd8.js → Main-5QLhf80L.js} +5 -5
- package/dist/{Main-CTsTrR0m.js → Main-BEUu3Hba.js} +2 -2
- package/dist/{Main-C9-EztWV.js → Main-FPpK9B70.js} +9 -9
- package/dist/{PermissionSetList-CqVP3iB8.js → PermissionSetList-DZGZ0Pm_.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXNhJDfA.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BHEW1_dv.js} +1122 -1122
- package/dist/{RoleList-CQuV9O_f.js → RoleList-D5yToard.js} +41 -41
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +16 -0
- package/dist/{TeamMemberList-DNitiMN5.js → TeamMemberList-C4-AHxO4.js} +22 -21
- package/dist/{TimesheetList-DYJsjODe.js → TimesheetList-DMo8KXoU.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-DWKJIq76.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-2KHu-f8U.js} +2 -2
- package/dist/{app-BJKd6Faz.js → app-DlSD8S9A.js} +3032 -2324
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-D8ClaZcZ.js → dayjs.min-DcI2auGP.js} +1 -1
- package/dist/{employee-C9VVckRM.js → employee-C_cvCoHM.js} +3 -3
- package/dist/{iteration-CMXHdaKL.js → iteration-DSzPQ0fZ.js} +1 -1
- package/dist/{lodash-0-Y1xSyQ.js → lodash-Ce0IJ8Y3.js} +1 -1
- package/dist/{role-B-Y4JezP.js → role-DkTkfUgR.js} +1 -1
- package/dist/rule-B-REsmVM.js +771 -0
- package/dist/src/api/audit-log/index.d.ts +6 -0
- package/dist/src/types/audit-log.d.ts +1 -1
- package/dist/src/views/audit-log/change-nodes.d.ts +14 -0
- package/dist/src/views/audit-log/event-line.d.ts +13 -0
- package/dist/src/views/audit-log/export-lines.d.ts +8 -0
- package/dist/src/views/audit-log/locales/index.d.ts +356 -0
- package/dist/src/views/audit-log/operation-status.d.ts +2 -0
- package/dist/src/views/audit-log/snapshot-diff.d.ts +11 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/useDebounce-B8ZPVS5C.js +15 -0
- package/dist/{useReportPermissions-C5_EivtU.js → useReportPermissions-VCzAQXKz.js} +5 -5
- package/package.json +2 -2
- package/dist/AuditLogList-B8lU5FU1.js +0 -1149
- package/dist/rule-raGIIqlH.js +0 -1121
- package/dist/useDebounce-CWb5QR9G.js +0 -28
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { computed as y, defineComponent as Pe, ref as V, watch as le, onMounted as Me, resolveComponent as F, createBlock as M, openBlock as v, unref as o, withCtx as g, createElementVNode as u, createVNode as c, createElementBlock as R, Fragment as P, createCommentVNode as _e, renderList as ne, normalizeClass as Ue, toDisplayString as
|
|
2
|
-
import { e as
|
|
1
|
+
import { computed as y, defineComponent as Pe, ref as V, watch as le, onMounted as Me, resolveComponent as F, createBlock as M, openBlock as v, unref as o, withCtx as g, createElementVNode as u, createVNode as c, createElementBlock as R, Fragment as P, createCommentVNode as _e, renderList as ne, normalizeClass as Ue, toDisplayString as $, h as A, createTextVNode as ge, resolveDynamicComponent as Ee, withModifiers as Ze, nextTick as De } from "vue";
|
|
2
|
+
import { e as D } from "./iteration-DSzPQ0fZ.js";
|
|
3
3
|
import { useI18n as Te } from "@feedmepos/mf-common";
|
|
4
4
|
import { useBreakpoints as Be, useSnackbar as je, components as ye, useDialog as es, FmButtonColorThemeVariant as ss } from "@feedmepos/ui-library";
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import { _ as
|
|
8
|
-
import {
|
|
5
|
+
import { D as ts, k as as, A as ls, S as os, _ as rs } from "./app-DlSD8S9A.js";
|
|
6
|
+
import { u as ns, _ as $e } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
7
|
+
import { _ as is } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
|
+
import { r as ie, h as Ae, f as us, s as cs, g as Ie, e as ms, a as oe } from "./rule-B-REsmVM.js";
|
|
9
9
|
import { u as xe } from "./restaurant-DiYb0pCm.js";
|
|
10
|
-
import { u as Oe } from "./role-
|
|
11
|
-
import { u as Ne } from "./useReportPermissions-
|
|
12
|
-
import { l as re } from "./lodash-
|
|
13
|
-
import { u as ds, _ as ps, a as Le } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { u as Oe } from "./role-DkTkfUgR.js";
|
|
11
|
+
import { u as Ne } from "./useReportPermissions-VCzAQXKz.js";
|
|
12
|
+
import { l as re } from "./lodash-Ce0IJ8Y3.js";
|
|
13
|
+
import { u as ds, _ as ps, a as Le } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CzKzq19d.js";
|
|
14
14
|
import { _ as be } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
15
15
|
import { u as fs } from "./useLoading-CvgqVDbF.js";
|
|
16
16
|
function vs() {
|
|
17
17
|
const se = xe();
|
|
18
18
|
return y(() => {
|
|
19
19
|
const t = {};
|
|
20
|
-
return se.restaurants.value.forEach((
|
|
21
|
-
t[
|
|
20
|
+
return se.restaurants.value.forEach((I) => {
|
|
21
|
+
t[I._id] = I;
|
|
22
22
|
}), t;
|
|
23
23
|
});
|
|
24
24
|
}
|
|
@@ -37,7 +37,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
setup(se, { expose: te }) {
|
|
40
|
-
const { t } = Te(), { breakpoints:
|
|
40
|
+
const { t } = Te(), { breakpoints: I } = Be(), ue = y(() => I.value.xs || I.value.sm), z = xe(), T = V(""), U = y(() => z.restaurants.value.filter(({ profile: e }) => {
|
|
41
41
|
const s = `${e.code ? e.code + "-" : ""}${e.legalName}`;
|
|
42
42
|
return !T.value || s.toLowerCase().includes(T.value.toLowerCase());
|
|
43
43
|
})), Y = V(z.restaurants.value.length === 0);
|
|
@@ -56,8 +56,8 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
56
56
|
} = Ne(), W = se, C = V(!1), pe = () => {
|
|
57
57
|
C.value = !C.value, C.value && Re();
|
|
58
58
|
}, fe = y(() => W.id ? t("hr.role.form.update") : t("hr.role.form.add")), Z = y(() => W.id ? t("common.update") : t("common.add")), O = y(() => {
|
|
59
|
-
const e =
|
|
60
|
-
(r) => r.subject !==
|
|
59
|
+
const e = ts.filter(
|
|
60
|
+
(r) => r.subject !== D.F_RULE_SUBJECT.enum.report
|
|
61
61
|
).map((r) => ie(r)), s = B.value.map((r) => ie(r));
|
|
62
62
|
return [...e, ...s];
|
|
63
63
|
}), h = y(() => K.roles.value.find((e) => e._id == W.id)), N = () => ({
|
|
@@ -65,7 +65,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
65
65
|
restaurantIds: [],
|
|
66
66
|
permissions: [],
|
|
67
67
|
maxDiscountPercentage: 100
|
|
68
|
-
}), l = V(N()), a = V([]), n = V([]), i = V(/* @__PURE__ */ new Map()), m = ds(i), b =
|
|
68
|
+
}), l = V(N()), a = V([]), n = V([]), i = V(/* @__PURE__ */ new Map()), m = ds(i), b = as("report");
|
|
69
69
|
function w(e) {
|
|
70
70
|
const s = i.value.get(e);
|
|
71
71
|
return !!s && Object.keys(s).length > 0;
|
|
@@ -73,7 +73,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
73
73
|
function _(e, s) {
|
|
74
74
|
const r = m.getDraft({ subject: e, builderKey: s.builderKey });
|
|
75
75
|
return r ? r.formValue : s.fromCondition(
|
|
76
|
-
|
|
76
|
+
ls(i.value.get(e), s)
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
79
|
function j(e, s, r) {
|
|
@@ -94,7 +94,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
94
94
|
s == null || s();
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
|
-
const H = i.value.get(e), S =
|
|
97
|
+
const H = i.value.get(e), S = os(
|
|
98
98
|
H,
|
|
99
99
|
x.map(({ builder: L, form: Q }) => ({ builder: L, formValue: Q }))
|
|
100
100
|
), E = new Map(i.value);
|
|
@@ -131,7 +131,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
131
131
|
}))), k = y(() => {
|
|
132
132
|
var e;
|
|
133
133
|
return Ae(((e = h.value) == null ? void 0 : e.permissions) || []);
|
|
134
|
-
}), ee = `${
|
|
134
|
+
}), ee = `${D.F_RULE_SUBJECT.enum.report}:`;
|
|
135
135
|
function ve(e) {
|
|
136
136
|
return q.value ? e.filter(
|
|
137
137
|
(s) => !s.startsWith(ee) || ae.value.has(s.slice(ee.length))
|
|
@@ -147,7 +147,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
147
147
|
h.value.permissions,
|
|
148
148
|
s
|
|
149
149
|
);
|
|
150
|
-
a.value = x, H.length > 0 && console.warn("Dropping corrupted role permissions (repaired on save):", H), l.value.permissions = ve(r), l.value.maxDiscountPercentage =
|
|
150
|
+
a.value = x, H.length > 0 && console.warn("Dropping corrupted role permissions (repaired on save):", H), l.value.permissions = ve(r), l.value.maxDiscountPercentage = Ie(
|
|
151
151
|
h.value.permissions
|
|
152
152
|
);
|
|
153
153
|
for (const S of h.value.permissions) {
|
|
@@ -210,7 +210,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
210
210
|
e.length > 0 && (Ke.value = "");
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
|
-
const he =
|
|
213
|
+
const he = ns(
|
|
214
214
|
() => {
|
|
215
215
|
var e, s, r;
|
|
216
216
|
return !re.isEqual(l.value.name, ((e = h.value) == null ? void 0 : e.name) || N().name) || !re.isEqual(
|
|
@@ -218,7 +218,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
218
218
|
((s = h.value) == null ? void 0 : s.restaurants.map((x) => x.id)) || N().restaurantIds
|
|
219
219
|
) || !re.isEqual(l.value.permissions, n.value) || !re.isEqual(
|
|
220
220
|
l.value.maxDiscountPercentage,
|
|
221
|
-
h.value ?
|
|
221
|
+
h.value ? Ie((r = h.value) == null ? void 0 : r.permissions) : N().maxDiscountPercentage
|
|
222
222
|
);
|
|
223
223
|
},
|
|
224
224
|
() => {
|
|
@@ -245,7 +245,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
245
245
|
}, {
|
|
246
246
|
"side-sheet-header": g(() => [
|
|
247
247
|
u("div", hs, [
|
|
248
|
-
u("p", _s,
|
|
248
|
+
u("p", _s, $(fe.value), 1),
|
|
249
249
|
c(r, {
|
|
250
250
|
name: "close",
|
|
251
251
|
size: "md",
|
|
@@ -348,7 +348,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
348
348
|
default: g(() => [
|
|
349
349
|
c(ps, null, {
|
|
350
350
|
title: g(() => [
|
|
351
|
-
u("p", xs,
|
|
351
|
+
u("p", xs, $(p.title), 1)
|
|
352
352
|
]),
|
|
353
353
|
default: g(() => [
|
|
354
354
|
u("div", Fs, [
|
|
@@ -453,7 +453,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
453
453
|
], 64)) : _e("", !0)
|
|
454
454
|
]),
|
|
455
455
|
d.value === "order:discount" && l.value.permissions.includes(d.value) ? (v(), R("div", ks, [
|
|
456
|
-
u("div", Vs,
|
|
456
|
+
u("div", Vs, $(o(t)("hr.role.form.maxDiscountPercentage")), 1),
|
|
457
457
|
c(x, {
|
|
458
458
|
modelValue: l.value.maxDiscountPercentage,
|
|
459
459
|
"onUpdate:modelValue": s[5] || (s[5] = (f) => l.value.maxDiscountPercentage = f),
|
|
@@ -484,11 +484,11 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
484
484
|
}, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"]);
|
|
485
485
|
};
|
|
486
486
|
}
|
|
487
|
-
}),
|
|
487
|
+
}), Ds = {
|
|
488
488
|
class: "space-y-8"
|
|
489
|
-
},
|
|
489
|
+
}, $s = {
|
|
490
490
|
class: "flex justify-end xs:px-16"
|
|
491
|
-
},
|
|
491
|
+
}, Is = {
|
|
492
492
|
class: "flex flex-col h-full overflow-auto"
|
|
493
493
|
}, Ls = {
|
|
494
494
|
class: "pb-64 sm:hidden md:hidden lg:hidden"
|
|
@@ -522,10 +522,10 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
522
522
|
const {
|
|
523
523
|
t
|
|
524
524
|
} = Te(), {
|
|
525
|
-
allReportPermissions:
|
|
525
|
+
allReportPermissions: I
|
|
526
526
|
} = Ne(), ue = xe(), z = y(() => ue.restaurants.value), T = y(() => z.value.map((a) => a._id));
|
|
527
527
|
function U(a, n) {
|
|
528
|
-
const i = n ===
|
|
528
|
+
const i = n === D.F_RULE_SUBJECT.enum.report ? I.value : void 0, m = oe(a, n, i);
|
|
529
529
|
return ["-", "All"].includes(m) ? () => null : () => A(ye.FmTooltip, {
|
|
530
530
|
"z-index": "999",
|
|
531
531
|
placement: "top",
|
|
@@ -539,7 +539,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
539
539
|
});
|
|
540
540
|
}
|
|
541
541
|
function Y(a, n) {
|
|
542
|
-
const i = n ===
|
|
542
|
+
const i = n === D.F_RULE_SUBJECT.enum.report ? I.value : void 0, m = oe(a, n, i);
|
|
543
543
|
return () => m === "All" ? m : A("div", {
|
|
544
544
|
class: "flex items-center"
|
|
545
545
|
}, [m, U(a, n)()]);
|
|
@@ -563,7 +563,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
563
563
|
onClick: (i) => {
|
|
564
564
|
i.stopPropagation();
|
|
565
565
|
}
|
|
566
|
-
}, [c(
|
|
566
|
+
}, [c($e, {
|
|
567
567
|
items: K(a)
|
|
568
568
|
}, null)]), me = [{
|
|
569
569
|
accessorKey: "name",
|
|
@@ -572,12 +572,12 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
572
572
|
}, {
|
|
573
573
|
accessorKey: "operation",
|
|
574
574
|
header: () => t("hr.role.columns.operation"),
|
|
575
|
-
cell: (a) => A(Y(a.row.original.permissions,
|
|
575
|
+
cell: (a) => A(Y(a.row.original.permissions, D.F_RULE_SUBJECT.enum.order)),
|
|
576
576
|
enableSorting: !1
|
|
577
577
|
}, {
|
|
578
578
|
accessorKey: "report",
|
|
579
579
|
header: () => t("hr.role.columns.report"),
|
|
580
|
-
cell: (a) => A(Y(a.row.original.permissions,
|
|
580
|
+
cell: (a) => A(Y(a.row.original.permissions, D.F_RULE_SUBJECT.enum.report)),
|
|
581
581
|
enableSorting: !1
|
|
582
582
|
}, {
|
|
583
583
|
accessorKey: "restaurants",
|
|
@@ -601,7 +601,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
601
601
|
})
|
|
602
602
|
}], J = async (a) => {
|
|
603
603
|
var n;
|
|
604
|
-
h.value = a._id, await
|
|
604
|
+
h.value = a._id, await De(), (n = O.value) == null || n.trigger();
|
|
605
605
|
}, B = Oe(), ae = vs(), de = y(() => {
|
|
606
606
|
const a = B.roles.value || [];
|
|
607
607
|
return (T.value.length === 0 ? a : a.filter((i) => i.restaurants.some((m) => T.value.includes(m.id)))).map((i) => {
|
|
@@ -661,7 +661,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
661
661
|
}, Z = V(""), O = V(), h = V(void 0);
|
|
662
662
|
async function N() {
|
|
663
663
|
var a;
|
|
664
|
-
h.value = void 0, await
|
|
664
|
+
h.value = void 0, await De(), (a = O.value) == null || a.trigger();
|
|
665
665
|
}
|
|
666
666
|
async function l() {
|
|
667
667
|
if (B.roles.value.length === 0)
|
|
@@ -685,14 +685,14 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
685
685
|
key: h.value,
|
|
686
686
|
ref_key: "roleFormRef",
|
|
687
687
|
ref: O
|
|
688
|
-
}, null, 8, ["id"])), u("div",
|
|
688
|
+
}, null, 8, ["id"])), u("div", Ds, [u("div", $s, [c(i, {
|
|
689
689
|
modelValue: Z.value,
|
|
690
690
|
"onUpdate:modelValue": n[0] || (n[0] = (_) => Z.value = _),
|
|
691
691
|
class: "w-[320px] xs:w-full",
|
|
692
692
|
autofocus: "",
|
|
693
693
|
placeholder: o(t)("hr.role.search.placeholder") + " / " + o(t)("hr.restaurant.search.placeholder")
|
|
694
|
-
}, null, 8, ["modelValue", "placeholder"])]), c(
|
|
695
|
-
default: g(() => [u("div",
|
|
694
|
+
}, null, 8, ["modelValue", "placeholder"])]), c(rs, null, {
|
|
695
|
+
default: g(() => [u("div", Is, [c(is, {
|
|
696
696
|
"is-loading": o(B).isLoading.value,
|
|
697
697
|
"is-empty": q.value.length === 0,
|
|
698
698
|
"collapse-at": "xs",
|
|
@@ -719,10 +719,10 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
|
|
|
719
719
|
class: "py-12 px-16 items-center justify-between",
|
|
720
720
|
onClick: (j) => J(_)
|
|
721
721
|
}, {
|
|
722
|
-
default: g(() => [u("div", Ps, [u("p", Ms,
|
|
722
|
+
default: g(() => [u("div", Ps, [u("p", Ms, $(_.name), 1), u("div", Ts, [u("p", Bs, [u("span", js, $(o(t)("hr.role.labels.restaurant")) + ":", 1), ge(" " + $(_.restaurants.map((j) => j.name).join(", ")), 1)]), u("p", As, [u("span", Os, [u("span", Ns, $(o(t)("hr.role.labels.operation")) + ":", 1), ge(" " + $(o(oe)(_.permissions, o(D.F_RULE_SUBJECT).enum.order)), 1)]), (v(), M(Ee(U(_.permissions, o(D.F_RULE_SUBJECT).enum.order))))]), u("p", zs, [u("span", Ks, [u("span", Js, $(o(t)("hr.role.labels.report")) + ":", 1), ge(" " + $(o(oe)(_.permissions, o(D.F_RULE_SUBJECT).enum.report, o(I))), 1)]), (v(), M(Ee(U(_.permissions, o(D.F_RULE_SUBJECT).enum.report))))])])]), u("div", {
|
|
723
723
|
onClick: n[2] || (n[2] = Ze(() => {
|
|
724
724
|
}, ["stop"]))
|
|
725
|
-
}, [c(
|
|
725
|
+
}, [c($e, {
|
|
726
726
|
items: K(_)
|
|
727
727
|
}, null, 8, ["items"])])]),
|
|
728
728
|
_: 2
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent as t, createElementBlock as n, openBlock as o, normalizeStyle as l } from "vue";
|
|
2
|
+
const i = /* @__PURE__ */ t({
|
|
3
|
+
__name: "Skeleton",
|
|
4
|
+
props: {
|
|
5
|
+
width: { default: "160px" }
|
|
6
|
+
},
|
|
7
|
+
setup(e) {
|
|
8
|
+
return (r, a) => (o(), n("div", {
|
|
9
|
+
class: "h-16 animate-pulse rounded bg-fm-color-neutral-gray-200",
|
|
10
|
+
style: l({ width: e.width })
|
|
11
|
+
}, null, 4));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
i as _
|
|
16
|
+
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { defineComponent as we, resolveComponent as F, createElementBlock as M, openBlock as y, createElementVNode as i, createVNode as d, toDisplayString as k, unref as r, computed as w, ref as b, createCommentVNode as K, withCtx as ue, createBlock as z, watch as fe, Fragment as Ne, renderList as us, withKeys as Te, withModifiers as Ve, nextTick as ms, onUnmounted as ds, h as cs, createTextVNode as ps } from "vue";
|
|
2
2
|
import { useI18n as Pe, useCoreStore as Ye } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as He, useDialog as es, useBreakpoints as ss, components as Be } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as fs
|
|
5
|
-
import { _ as
|
|
6
|
-
import { b as qe, m as
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as
|
|
4
|
+
import { u as fs } from "./useDebounce-B8ZPVS5C.js";
|
|
5
|
+
import { _ as vs, S as ye } from "./SelectFilter-ATOm0hdn.js";
|
|
6
|
+
import { b as qe, m as bs, O as hs, _ as ys, a as _s } from "./app-DlSD8S9A.js";
|
|
7
|
+
import { u as gs, _ as Us } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
8
|
+
import { _ as xs } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
|
+
import { _ as Ss } from "./Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js";
|
|
9
10
|
import { u as Fs } from "./useLoading-CvgqVDbF.js";
|
|
10
|
-
import { l as Se } from "./lodash-
|
|
11
|
-
import { c as he } from "./iteration-
|
|
12
|
-
import { u as ts, c as je,
|
|
13
|
-
import { u as ls } from "./role-
|
|
11
|
+
import { l as Se } from "./lodash-Ce0IJ8Y3.js";
|
|
12
|
+
import { c as he } from "./iteration-DSzPQ0fZ.js";
|
|
13
|
+
import { u as ts, c as je, b as Ke, m as Me, d as as, p as ze, i as Vs, j as Ge, k as We, l as Is, n as ws, o as Ps, q as ks, v as Rs, t as Fe } from "./rule-B-REsmVM.js";
|
|
14
|
+
import { u as ls } from "./role-DkTkfUgR.js";
|
|
14
15
|
import { u as os, i as $s } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-Z-DH7ouY.js";
|
|
15
16
|
import { g as Je, b as Xe, u as rs } from "./restaurant-DiYb0pCm.js";
|
|
16
|
-
import { _ as Cs } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
17
|
+
import { _ as Cs } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BHEW1_dv.js";
|
|
17
18
|
var ge = /* @__PURE__ */ ((n) => (n.Update = "Update", n.Remove = "Remove", n))(ge || {});
|
|
18
19
|
const Ie = "__unassigned__";
|
|
19
20
|
function Ze(n) {
|
|
@@ -200,7 +201,7 @@ const Ms = { class: "w-full flex flex-col gap-16" }, Ns = { class: "flex items-c
|
|
|
200
201
|
]);
|
|
201
202
|
};
|
|
202
203
|
}
|
|
203
|
-
}), st = /* @__PURE__ */
|
|
204
|
+
}), st = /* @__PURE__ */ vs(et, [["__scopeId", "data-v-827dfd60"]]), tt = { class: "flex flex-col gap-40" }, at = { class: "flex items-center" }, lt = { class: "flex-1 flex flex-col" }, ot = { class: "fm-typo-en-title-sm-600" }, rt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, nt = { class: "flex flex-row gap-16" }, it = { class: "flex flex-col gap-8" }, ut = { class: "fm-typo-en-body-lg-400" }, mt = { class: "space-y-16 rounded-lg border border-fm-color-neutral-gray-200 p-16" }, dt = { class: "fm-typo-en-title-sm-600" }, ct = { class: "space-y-16" }, pt = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, ft = { class: "text-sm font-semibold text-fm-color-typo-primary" }, vt = { class: "text-sm font-semibold text-fm-color-typo-primary" }, bt = { class: "flex justify-self-end" }, ht = ["aria-label", "onClick", "onKeydown"], Le = 4, yt = /* @__PURE__ */ we({
|
|
204
205
|
__name: "TeamMemberMasterUser",
|
|
205
206
|
props: {
|
|
206
207
|
modelValue: {
|
|
@@ -597,7 +598,7 @@ const Ms = { class: "w-full flex flex-col gap-16" }, Ns = { class: "flex items-c
|
|
|
597
598
|
customPermissions: s,
|
|
598
599
|
permissions: c.map((re) => ({
|
|
599
600
|
...re,
|
|
600
|
-
subject:
|
|
601
|
+
subject: bs(re.subject)
|
|
601
602
|
})),
|
|
602
603
|
permissionSetIds: g.value,
|
|
603
604
|
name: ((Q = V.value) == null ? void 0 : Q.displayName) || ((q = u.initialValue) == null ? void 0 : q.name) || "",
|
|
@@ -748,7 +749,7 @@ const Ms = { class: "w-full flex flex-col gap-16" }, Ns = { class: "flex items-c
|
|
|
748
749
|
var ee = /* @__PURE__ */ function(n) {
|
|
749
750
|
return n[n.ADD = 0] = "ADD", n[n.UPDATE = 1] = "UPDATE", n[n.CLOSED = 2] = "CLOSED", n;
|
|
750
751
|
}(ee || {});
|
|
751
|
-
const
|
|
752
|
+
const sa = /* @__PURE__ */ we({
|
|
752
753
|
__name: "TeamMemberList",
|
|
753
754
|
setup(n, {
|
|
754
755
|
expose: D
|
|
@@ -787,7 +788,7 @@ const ea = /* @__PURE__ */ we({
|
|
|
787
788
|
onClick: () => B(ge.Remove, e),
|
|
788
789
|
itemClass: "text-fm-color-typo-error"
|
|
789
790
|
}, ne = e.doc.isOwner ? [x] : [x, P];
|
|
790
|
-
return d(
|
|
791
|
+
return d(Us, {
|
|
791
792
|
class: t,
|
|
792
793
|
items: ne
|
|
793
794
|
}, null);
|
|
@@ -817,7 +818,7 @@ const ea = /* @__PURE__ */ we({
|
|
|
817
818
|
enableSorting: !1,
|
|
818
819
|
cell(e) {
|
|
819
820
|
if (me.value)
|
|
820
|
-
return cs(
|
|
821
|
+
return cs(Ss);
|
|
821
822
|
const t = e.row.original;
|
|
822
823
|
return l(t);
|
|
823
824
|
}
|
|
@@ -931,7 +932,7 @@ const ea = /* @__PURE__ */ we({
|
|
|
931
932
|
function ve() {
|
|
932
933
|
E++, O.value = !1, _.value = ee.CLOSED;
|
|
933
934
|
}
|
|
934
|
-
const be =
|
|
935
|
+
const be = gs(() => {
|
|
935
936
|
var e;
|
|
936
937
|
return ((e = Y.value) == null ? void 0 : e.isModified()) ?? !1;
|
|
937
938
|
}, ve);
|
|
@@ -981,7 +982,7 @@ const ea = /* @__PURE__ */ we({
|
|
|
981
982
|
permissionSubjects: [...Z.value ?? []].sort(),
|
|
982
983
|
permissionSetIds: [...s.value ?? []].sort()
|
|
983
984
|
});
|
|
984
|
-
}), T = w(() => Object.values(
|
|
985
|
+
}), T = w(() => Object.values(hs).map((e) => ({
|
|
985
986
|
label: e.label,
|
|
986
987
|
value: e.subject
|
|
987
988
|
}))), G = w(() => [{
|
|
@@ -1142,12 +1143,12 @@ const ea = /* @__PURE__ */ we({
|
|
|
1142
1143
|
class: "w-[320px] xs:w-full xs:mt-8",
|
|
1143
1144
|
autofocus: "",
|
|
1144
1145
|
placeholder: r(a)("team.search.placeholder")
|
|
1145
|
-
}, null, 8, ["modelValue", "placeholder"])])), (xe = r(f).currentBusiness.value) != null && xe._id ? (y(), z(
|
|
1146
|
+
}, null, 8, ["modelValue", "placeholder"])])), (xe = r(f).currentBusiness.value) != null && xe._id ? (y(), z(ys, {
|
|
1146
1147
|
key: 2
|
|
1147
1148
|
}, {
|
|
1148
|
-
default: ue(() => [i("div", Nt, [h.value ? K("", !0) : (y(), z(
|
|
1149
|
+
default: ue(() => [i("div", Nt, [h.value ? K("", !0) : (y(), z(_s, {
|
|
1149
1150
|
key: 0
|
|
1150
|
-
})), h.value ? (y(), z(
|
|
1151
|
+
})), h.value ? (y(), z(xs, {
|
|
1151
1152
|
key: 1,
|
|
1152
1153
|
"is-loading": p.value,
|
|
1153
1154
|
"is-empty": L.value === 0,
|
|
@@ -1211,5 +1212,5 @@ const ea = /* @__PURE__ */ we({
|
|
|
1211
1212
|
}
|
|
1212
1213
|
});
|
|
1213
1214
|
export {
|
|
1214
|
-
|
|
1215
|
+
sa as default
|
|
1215
1216
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref as d, computed as g, defineComponent as pe, onMounted as fe, watch as Z, resolveComponent as u, createElementBlock as P, openBlock as E, Fragment as ee, createVNode as l, createElementVNode as i, unref as r, withCtx as b, createCommentVNode as ve, toDisplayString as O, createTextVNode as he, isRef as ge, renderList as we, createBlock as te, nextTick as ye } from "vue";
|
|
2
|
-
import { d as v } from "./dayjs.min-
|
|
2
|
+
import { d as v } from "./dayjs.min-DcI2auGP.js";
|
|
3
3
|
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as be, components as xe } from "@feedmepos/ui-library";
|
|
5
5
|
import { S as De, _ as Se } from "./SelectFilter-ATOm0hdn.js";
|
|
6
|
-
import { _ as Ve } from "./app-
|
|
6
|
+
import { _ as Ve } from "./app-DlSD8S9A.js";
|
|
7
7
|
import { _ as ke } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
8
|
import { u as Ce } from "./useLoading-CvgqVDbF.js";
|
|
9
|
-
import { g as Fe, s as Ye } from "./iteration-
|
|
9
|
+
import { g as Fe, s as Ye } from "./iteration-DSzPQ0fZ.js";
|
|
10
10
|
import { f as Le } from "./utils-BZkjJbju.js";
|
|
11
|
-
import { u as Me } from "./employee-
|
|
11
|
+
import { u as Me } from "./employee-C_cvCoHM.js";
|
|
12
12
|
import { u as Te } from "./restaurant-DiYb0pCm.js";
|
|
13
|
-
import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-
|
|
13
|
+
import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-2KHu-f8U.js";
|
|
14
14
|
function Ie(x, a) {
|
|
15
15
|
return ["years", "months"].find((S) => {
|
|
16
16
|
const V = x.startOf(S), m = x.endOf(S);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-
|
|
1
|
+
import { d as i } from "./dayjs.min-DcI2auGP.js";
|
|
2
2
|
import { defineStore as p, storeToRefs as T } from "pinia";
|
|
3
3
|
import { ref as l } from "vue";
|
|
4
4
|
import { b as c, g as y } from "./restaurant-DiYb0pCm.js";
|
|
5
|
-
import { s as S } from "./iteration-
|
|
5
|
+
import { s as S } from "./iteration-DSzPQ0fZ.js";
|
|
6
6
|
import { i as f, f as g } from "./utils-BZkjJbju.js";
|
|
7
7
|
const u = {
|
|
8
8
|
async readTimesheets(t, e) {
|