@feedmepos/mf-hrm-portal 2.3.0-dev.10 → 2.3.0-dev.12
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-BLA2rhLB.js → ApprovalCodeList--NA0toYU.js} +2 -2
- package/dist/{AuditLogList-DBYdZhZl.js → AuditLogList-B-NaB6OX.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CtCEzPbE.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-AEr2bDPY.js} +2 -2
- package/dist/{EmployeeList-CA7DWLmy.js → EmployeeList-idO38m7y.js} +23 -22
- package/dist/{GrantUserList-BYnegeEr.js → GrantUserList-B1S7yDKu.js} +3 -3
- package/dist/{Main-NDK7LUmm.js → Main-D5cWrqP3.js} +9 -9
- package/dist/{Main-Dh-gZSaa.js → Main-cdf9NV8P.js} +2 -2
- package/dist/{Main-BeXx0hAc.js → Main-mcCvBPvJ.js} +5 -5
- package/dist/{PermissionSetList-DDIacDpQ.js → PermissionSetList-3_f6sJpK.js} +17 -16
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ONMn3v_f.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cmin3rlY.js} +873 -873
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
- package/dist/{RoleList-B30FHIzu.js → RoleList-ByQelhuG.js} +19 -18
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CRRguWTG.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-e4YOu59G.js} +1 -1
- package/dist/{ScheduleGeneralPage-8gEeZbFR.js → ScheduleGeneralPage-TKWgkAoE.js} +130 -128
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-TfxTAjO8.js → ScheduleModal.vue_vue_type_script_setup_true_lang-6bTAsmpp.js} +527 -491
- package/dist/SchedulePage-BpvgQYqL.js +17985 -0
- package/dist/{SchedulePositionPage-oGIDGneA.js → SchedulePositionPage-BjvKTHyY.js} +3 -3
- package/dist/{TeamMemberList-Drj6R4Y3.js → TeamMemberList-CJzF0wNK.js} +20 -19
- package/dist/{TimesheetList-CDQfN5LE.js → TimesheetList-CJcSs_B1.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Bx-6hjs7.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-zttvxhi-.js} +2 -2
- package/dist/{app-DWe_4-ct.js → app-DLiYhsK2.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-QSwC9dtX.js → dayjs.min-ar-wg1yi.js} +1 -1
- package/dist/{employee-Bb2b3dP6.js → employee-CmUfaF0i.js} +3 -3
- package/dist/{iteration-TDU7bFxZ.js → iteration-uWvyRKkX.js} +1 -1
- package/dist/{lodash-D3Ns5VMN.js → lodash-BzVEbSHJ.js} +1 -1
- package/dist/{role-D57Le_-U.js → role-R2KDFlIY.js} +1 -1
- package/dist/{rule-DzesUEX7.js → rule-C6ELRd3E.js} +2 -2
- package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +2 -1
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +0 -3
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +7 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +2 -2
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +7 -0
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +10 -8
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +6 -1
- package/dist/src/views/scheduling/schedule-store.d.ts +13 -0
- package/dist/src/views/scheduling/types.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
- package/dist/{useReportPermissions-Cmuead1K.js → useReportPermissions-B2U347Ey.js} +3 -3
- package/package.json +3 -3
- package/dist/SchedulePage-DQ0VXWWi.js +0 -17832
- package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as re, ref as K, computed as g, resolveComponent as b, createBlock as O, openBlock as _, withCtx as $, createElementVNode as s, createElementBlock as S, createCommentVNode as Y, toDisplayString as C, unref as a, Fragment as H, renderList as te, createVNode as c, renderSlot as xe, isRef as ue, withModifiers as de, createTextVNode as be, normalizeClass as ke, h as x } from "vue";
|
|
2
|
-
import { d as Ve } from "./dayjs.min-
|
|
2
|
+
import { d as Ve } from "./dayjs.min-ar-wg1yi.js";
|
|
3
3
|
import { useI18n as ne } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as ie, components as z, useDialog as we, useBreakpoints as Fe, FmButtonVariant as se } from "@feedmepos/ui-library";
|
|
5
5
|
import { S as q } from "./SelectFilter-CG13h83-.js";
|
|
6
|
-
import { _ as $e } from "./app-
|
|
6
|
+
import { _ as $e } from "./app-DLiYhsK2.js";
|
|
7
7
|
import { _ as pe, u as Se, H as Ae } from "./FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js";
|
|
8
8
|
import { _ as Pe } from "./index.vue_vue_type_script_setup_true_lang-BVVwfd7B.js";
|
|
9
9
|
import { u as ve } from "./useLoading-Ch1AUYT1.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as Mt, ref as S, computed as A, onMounted as Ao, onBeforeUnmount as Fo, watch as de, resolveComponent as N, createElementBlock as b, openBlock as v, createBlock as we, createCommentVNode as j, createElementVNode as a, Fragment as q, renderList as ae, withCtx as B, createVNode as m, toDisplayString as l, unref as c, nextTick as Mo, onUnmounted as Oo, createTextVNode as Ve, normalizeClass as Do } from "vue";
|
|
2
|
-
import { d as D } from "./dayjs.min-
|
|
2
|
+
import { d as D } from "./dayjs.min-ar-wg1yi.js";
|
|
3
3
|
import { useI18n as Ot, useCoreStore as jo } from "@feedmepos/mf-common";
|
|
4
|
-
import { B as St, _ as Co } from "./app-
|
|
4
|
+
import { B as St, _ as Co } from "./app-DLiYhsK2.js";
|
|
5
5
|
import { components as ue } from "@feedmepos/ui-library";
|
|
6
6
|
import { g as Ze, b as et } from "./restaurant-BbYRA_IT.js";
|
|
7
7
|
import { S as Pe } from "./SelectFilter-CG13h83-.js";
|
|
8
8
|
import { _ as To } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
9
9
|
import { _ as Vo } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
10
|
-
import { t as Po, p as kt } from "./rule-
|
|
10
|
+
import { t as Po, p as kt } from "./rule-C6ELRd3E.js";
|
|
11
11
|
import { defineStore as Eo } from "pinia";
|
|
12
12
|
import { u as $o } from "./useDebounce-B8ZPVS5C.js";
|
|
13
13
|
import { n as No } from "./string-VNuQNweN.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as M, ref as S, onMounted as ae, nextTick as le, onUnmounted as ue, resolveComponent as F, createElementBlock as p, openBlock as s, Fragment as C, createElementVNode as U, renderSlot as _, createCommentVNode as w, toDisplayString as J, createVNode as E, normalizeStyle as re, watch as X, defineAsyncComponent as se, computed as z, renderList as T, createBlock as h, withCtx as H, unref as x, resolveDynamicComponent as ie, normalizeClass as de } from "vue";
|
|
2
2
|
import { useI18n as q, useCoreStore as me } from "@feedmepos/mf-common";
|
|
3
|
-
import { d as j, G as ce, U as L } from "./app-
|
|
4
|
-
import { l as fe } from "./lodash-
|
|
3
|
+
import { d as j, G as ce, U as L } from "./app-DLiYhsK2.js";
|
|
4
|
+
import { l as fe } from "./lodash-BzVEbSHJ.js";
|
|
5
5
|
const ye = { class: "flex items-center" }, be = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "ml-8 fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
@@ -2,19 +2,20 @@ import { toRaw as Ke, defineComponent as Fe, ref as v, computed as h, watch as X
|
|
|
2
2
|
import { useI18n as Re, useCoreStore as He } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Me, components as $e, useDialog as Je, useBreakpoints as We } from "@feedmepos/ui-library";
|
|
4
4
|
import { S as ue } from "./SelectFilter-CG13h83-.js";
|
|
5
|
-
import { _ as Qe, a as Ye } from "./app-
|
|
5
|
+
import { _ as Qe, a as Ye } from "./app-DLiYhsK2.js";
|
|
6
6
|
import { _ as xe, u as Ze, H as Xe } from "./FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js";
|
|
7
|
-
import {
|
|
8
|
-
import { _ as
|
|
9
|
-
import { s as
|
|
10
|
-
import { u as
|
|
11
|
-
import { n as
|
|
12
|
-
import { u as Le, E as
|
|
7
|
+
import { _ as ea } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
8
|
+
import { _ as aa } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
|
+
import { s as la, _ as sa, a as ta, b as oa, c as Ee } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js";
|
|
10
|
+
import { u as ra } from "./useDebounce-B8ZPVS5C.js";
|
|
11
|
+
import { n as na } from "./string-VNuQNweN.js";
|
|
12
|
+
import { u as Le, E as ia } from "./employee-CmUfaF0i.js";
|
|
13
13
|
import { u as Pe } from "./restaurant-BbYRA_IT.js";
|
|
14
|
-
import { l as
|
|
14
|
+
import { l as ua } from "./lodash-BzVEbSHJ.js";
|
|
15
15
|
import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
16
|
+
import { u as ca } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
16
17
|
import { u as De } from "./useLoading-Ch1AUYT1.js";
|
|
17
|
-
import { u as he } from "./role-
|
|
18
|
+
import { u as he } from "./role-R2KDFlIY.js";
|
|
18
19
|
/* empty css */
|
|
19
20
|
import { _ as ma } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
20
21
|
function Se($) {
|
|
@@ -73,7 +74,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
|
|
|
73
74
|
};
|
|
74
75
|
}
|
|
75
76
|
const T = h(() => R.value ? c("hr.employee.form.add") : c("hr.employee.form.update")), H = h(() => R.value ? c("common.create") : c("common.update")), b = v(_()), s = v(_()), J = v(void 0), L = h(
|
|
76
|
-
() =>
|
|
77
|
+
() => la(s.value.restaurants)
|
|
77
78
|
);
|
|
78
79
|
function le(u) {
|
|
79
80
|
var o;
|
|
@@ -87,7 +88,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
|
|
|
87
88
|
if (te.value)
|
|
88
89
|
try {
|
|
89
90
|
const u = await U.custom(
|
|
90
|
-
() =>
|
|
91
|
+
() => ia.generateEmployeePasscode({
|
|
91
92
|
restaurantIds: L.value,
|
|
92
93
|
excludePosUserId: J.value
|
|
93
94
|
}),
|
|
@@ -97,8 +98,8 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
|
|
|
97
98
|
} catch {
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
|
-
const K =
|
|
101
|
-
() => !
|
|
101
|
+
const K = ca(
|
|
102
|
+
() => !ua.isEqual(s.value, b.value),
|
|
102
103
|
() => {
|
|
103
104
|
V.value = !1;
|
|
104
105
|
}
|
|
@@ -266,7 +267,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
|
|
|
266
267
|
]
|
|
267
268
|
}, {
|
|
268
269
|
default: y(() => [
|
|
269
|
-
i(
|
|
270
|
+
i(sa, {
|
|
270
271
|
modelValue: F.value,
|
|
271
272
|
"onUpdate:modelValue": o[3] || (o[3] = (t) => F.value = t),
|
|
272
273
|
masked: P.value,
|
|
@@ -278,7 +279,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
|
|
|
278
279
|
]),
|
|
279
280
|
_: 1
|
|
280
281
|
}, 8, ["modelValue", "rules"]),
|
|
281
|
-
i(
|
|
282
|
+
i(ta, {
|
|
282
283
|
label: l(c)("hr.employee.form.passcodeGenerate"),
|
|
283
284
|
hint: l(c)("hr.employee.form.passcodeSelectOutletFirst"),
|
|
284
285
|
loading: W.value,
|
|
@@ -304,7 +305,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
|
|
|
304
305
|
]
|
|
305
306
|
}, {
|
|
306
307
|
default: y(() => [
|
|
307
|
-
i(
|
|
308
|
+
i(oa, {
|
|
308
309
|
modelValue: s.value.restaurants,
|
|
309
310
|
"onUpdate:modelValue": o[7] || (o[7] = (t) => s.value.restaurants = t),
|
|
310
311
|
restaurants: l(d).restaurants.value,
|
|
@@ -438,7 +439,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
|
|
|
438
439
|
onClick: (r) => {
|
|
439
440
|
r.stopPropagation();
|
|
440
441
|
}
|
|
441
|
-
}, [i(
|
|
442
|
+
}, [i(ea, {
|
|
442
443
|
items: P(e)
|
|
443
444
|
}, null)]), W = [{
|
|
444
445
|
accessorKey: "code",
|
|
@@ -454,7 +455,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
|
|
|
454
455
|
class: "flex items-center gap-8"
|
|
455
456
|
}, [i($e.FmAvatar, {
|
|
456
457
|
name: a.name,
|
|
457
|
-
initials:
|
|
458
|
+
initials: na(a.name),
|
|
458
459
|
size: "sm",
|
|
459
460
|
class: "shrink-0"
|
|
460
461
|
}, null), i("span", {
|
|
@@ -618,7 +619,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
|
|
|
618
619
|
roleIds: (a = t.value) != null && a.length ? t.value : void 0
|
|
619
620
|
}, b.value);
|
|
620
621
|
}
|
|
621
|
-
const Ae =
|
|
622
|
+
const Ae = ra(_, () => {
|
|
622
623
|
T.value = _.value;
|
|
623
624
|
}, 300);
|
|
624
625
|
Be(Ae);
|
|
@@ -721,7 +722,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
|
|
|
721
722
|
}, {
|
|
722
723
|
default: y(() => [f("div", Sa, [!L.value && l(d).isLoading.value ? (g(), I(Ye, {
|
|
723
724
|
key: 0
|
|
724
|
-
})) : j("", !0), L.value ? (g(), I(
|
|
725
|
+
})) : j("", !0), L.value ? (g(), I(aa, {
|
|
725
726
|
key: 1,
|
|
726
727
|
"is-loading": l(d).isLoading.value,
|
|
727
728
|
"is-empty": b.value === 0,
|
|
@@ -781,7 +782,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
|
|
|
781
782
|
})) : j("", !0)])], 64);
|
|
782
783
|
};
|
|
783
784
|
}
|
|
784
|
-
}),
|
|
785
|
+
}), el = /* @__PURE__ */ ma($a, [["__scopeId", "data-v-5aed0d1c"]]);
|
|
785
786
|
export {
|
|
786
|
-
|
|
787
|
+
el as default
|
|
787
788
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as X, ref as S, computed as f, watch as ue, resolveComponent as v, createElementBlock as D, openBlock as w, Fragment as E, renderSlot as de, createVNode as l, unref as s, withCtx as g, createElementVNode as o, toDisplayString as _, isRef as H, renderList as me, createBlock as pe, createCommentVNode as fe, withModifiers as W, createTextVNode as J, normalizeClass as ve, h as p } from "vue";
|
|
2
|
-
import { d as ge } from "./dayjs.min-
|
|
2
|
+
import { d as ge } from "./dayjs.min-ar-wg1yi.js";
|
|
3
3
|
import { useI18n as Z } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as ee, components as K, useDialog as _e, useBreakpoints as ye, FmButtonVariant as O } from "@feedmepos/ui-library";
|
|
5
5
|
import { S as A } from "./SelectFilter-CG13h83-.js";
|
|
6
|
-
import { _ as he } from "./app-
|
|
6
|
+
import { _ as he } from "./app-DLiYhsK2.js";
|
|
7
7
|
import { _ as Q, u as Ue, H as xe } from "./FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js";
|
|
8
8
|
import { _ as be } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
9
|
import { u as te } from "./useLoading-Ch1AUYT1.js";
|
|
10
10
|
import { u as ae } from "./grant-user-qzKHFTro.js";
|
|
11
11
|
import { u as se } from "./restaurant-BbYRA_IT.js";
|
|
12
|
-
import { u as re } from "./role-
|
|
12
|
+
import { u as re } from "./role-R2KDFlIY.js";
|
|
13
13
|
import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
14
14
|
const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, we = { class: "flex gap-8 items-center justify-start" }, Se = /* @__PURE__ */ X({
|
|
15
15
|
__name: "GrantUserForm",
|
|
@@ -5,18 +5,18 @@ import { useSnackbar as pf } from "@feedmepos/ui-library";
|
|
|
5
5
|
import { _ as df } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
6
6
|
import { _ as mf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
7
|
import { u as gf } from "./restaurant-BbYRA_IT.js";
|
|
8
|
-
import { u as _f } from "./role-
|
|
8
|
+
import { u as _f } from "./role-R2KDFlIY.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import "./employee-
|
|
11
|
-
import "./lodash-
|
|
10
|
+
import "./employee-CmUfaF0i.js";
|
|
11
|
+
import "./lodash-BzVEbSHJ.js";
|
|
12
12
|
import "./useAppStore-BoLkvkE2.js";
|
|
13
|
-
import "./iteration-
|
|
13
|
+
import "./iteration-uWvyRKkX.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { R as pt } from "./app-
|
|
16
|
-
import "./rule-
|
|
17
|
-
import "./useReportPermissions-
|
|
18
|
-
import "./dayjs.min-
|
|
19
|
-
import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-
|
|
15
|
+
import { R as pt } from "./app-DLiYhsK2.js";
|
|
16
|
+
import "./rule-C6ELRd3E.js";
|
|
17
|
+
import "./useReportPermissions-B2U347Ey.js";
|
|
18
|
+
import "./dayjs.min-ar-wg1yi.js";
|
|
19
|
+
import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-zttvxhi-.js";
|
|
20
20
|
var Nn = {};
|
|
21
21
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
22
22
|
var qt = {};
|
|
@@ -5,10 +5,10 @@ import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
|
5
5
|
import { _ as z } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
6
6
|
import { _ as M } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
7
|
import { u as j } from "./restaurant-BbYRA_IT.js";
|
|
8
|
-
import { u as H } from "./role-
|
|
8
|
+
import { u as H } from "./role-R2KDFlIY.js";
|
|
9
9
|
import { u as J } from "./grant-user-qzKHFTro.js";
|
|
10
10
|
import { u as K } from "./approval-code-DHsUgc4K.js";
|
|
11
|
-
import { R as n } from "./app-
|
|
11
|
+
import { R as n } from "./app-DLiYhsK2.js";
|
|
12
12
|
const Q = { class: "space-y-24" }, ue = /* @__PURE__ */ D({
|
|
13
13
|
__name: "Main",
|
|
14
14
|
setup(W) {
|
|
@@ -5,12 +5,12 @@ import { _ as x } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lan
|
|
|
5
5
|
import { _ as F } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
6
|
import { u as w } from "./restaurant-BbYRA_IT.js";
|
|
7
7
|
import "@feedmepos/ui-library";
|
|
8
|
-
import "./rule-
|
|
9
|
-
import "./lodash-
|
|
10
|
-
import "./iteration-
|
|
8
|
+
import "./rule-C6ELRd3E.js";
|
|
9
|
+
import "./lodash-BzVEbSHJ.js";
|
|
10
|
+
import "./iteration-uWvyRKkX.js";
|
|
11
11
|
import "./useAppStore-BoLkvkE2.js";
|
|
12
|
-
import { R as v } from "./app-
|
|
13
|
-
import "./role-
|
|
12
|
+
import { R as v } from "./app-DLiYhsK2.js";
|
|
13
|
+
import "./role-R2KDFlIY.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
import "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js";
|
|
16
16
|
const $ = { class: "space-y-24" }, Z = /* @__PURE__ */ M({
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as v, computed as b, watch as ue, resolveComponent as h, createBlock as de, openBlock as ee, unref as r, withCtx as C, createVNode as m, createElementVNode as y, toDisplayString as G, nextTick as pe, onMounted as fe, createElementBlock as ve, Fragment as Se, h as S } from "vue";
|
|
2
2
|
import { useI18n as se, useCoreStore as be } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as H } from "@feedmepos/ui-library";
|
|
4
|
-
import { v as Q, _ as he } from "./app-
|
|
4
|
+
import { v as Q, _ as he } from "./app-DLiYhsK2.js";
|
|
5
5
|
import { _ as _e } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
6
|
-
import {
|
|
7
|
-
import { u as ie, c as M, d as ae, p as Y, i as
|
|
8
|
-
import { l as T } from "./lodash-
|
|
9
|
-
import { c as
|
|
6
|
+
import { _ as ge } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
7
|
+
import { u as ie, c as M, d as ae, p as Y, i as Pe, b as ye, m as A, n as we, o as xe, k as Fe, l as ke, v as Ce } from "./rule-C6ELRd3E.js";
|
|
8
|
+
import { l as T } from "./lodash-BzVEbSHJ.js";
|
|
9
|
+
import { c as Ie } from "./iteration-uWvyRKkX.js";
|
|
10
|
+
import { u as Ve } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
10
11
|
import { u as Re } from "./useLoading-Ch1AUYT1.js";
|
|
11
|
-
import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cmin3rlY.js";
|
|
12
13
|
import { A as je } from "./restaurant-BbYRA_IT.js";
|
|
13
14
|
const Te = { class: "flex w-full items-center justify-between" }, $e = { class: "fm-typo-en-title-md-600" }, Be = { class: "fm-typo-en-title-sm-600 mt-24" }, Le = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
|
|
14
15
|
__name: "PermissionSetForm",
|
|
@@ -37,7 +38,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
37
38
|
customReportPermissions: t,
|
|
38
39
|
isLoaded: c
|
|
39
40
|
} = ae(), _ = new Set(
|
|
40
|
-
Y.filter((e) => e.subject.startsWith(
|
|
41
|
+
Y.filter((e) => e.subject.startsWith(Pe)).map((e) => e.subject)
|
|
41
42
|
), g = b(() => {
|
|
42
43
|
const e = new Set(_);
|
|
43
44
|
for (const s of t.value) e.add(s.subject);
|
|
@@ -54,27 +55,27 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
54
55
|
var s, u;
|
|
55
56
|
await pe(), f.value = !f.value, d.value = { ...o.modelValue }, a.value = ((s = o.modelValue) == null ? void 0 : s.permissionSetIds) ?? [];
|
|
56
57
|
const e = ((u = o.modelValue) == null ? void 0 : u.permissions) ?? [];
|
|
57
|
-
p.value =
|
|
58
|
+
p.value = ye(
|
|
58
59
|
A(E.value),
|
|
59
60
|
e
|
|
60
61
|
), P.value = {
|
|
61
62
|
name: d.value.name ?? "",
|
|
62
63
|
permissionSetIds: [...a.value],
|
|
63
|
-
userPermissions:
|
|
64
|
+
userPermissions: Ie(p.value)
|
|
64
65
|
};
|
|
65
66
|
}
|
|
66
67
|
ue(f, async (e) => {
|
|
67
68
|
e && await n();
|
|
68
69
|
});
|
|
69
|
-
const W =
|
|
70
|
+
const W = Ve(
|
|
70
71
|
() => !T.isEqual(d.value.name ?? "", P.value.name) || !T.isEqual(a.value, P.value.permissionSetIds) || !T.isEqual(p.value, P.value.userPermissions),
|
|
71
72
|
() => {
|
|
72
73
|
f.value = !1;
|
|
73
74
|
}
|
|
74
75
|
);
|
|
75
76
|
function re() {
|
|
76
|
-
const e = A(E.value), s = c.value ? g.value : _, u =
|
|
77
|
-
return
|
|
77
|
+
const e = A(E.value), s = c.value ? g.value : _, u = we(p.value, s), x = xe(u, z.value), F = Fe(x);
|
|
78
|
+
return ke(e, F);
|
|
78
79
|
}
|
|
79
80
|
function J(e) {
|
|
80
81
|
return A(
|
|
@@ -215,7 +216,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
215
216
|
}, 8, ["modelValue", "onOn:clickedAway"]);
|
|
216
217
|
};
|
|
217
218
|
}
|
|
218
|
-
}), De = { class: "space-y-8" }, Ne = { class: "flex justify-end xs:px-16" }, Oe = { class: "flex flex-col h-full overflow-auto" },
|
|
219
|
+
}), De = { class: "space-y-8" }, Ne = { class: "flex justify-end xs:px-16" }, Oe = { class: "flex flex-col h-full overflow-auto" }, es = /* @__PURE__ */ Z({
|
|
219
220
|
__name: "PermissionSetList",
|
|
220
221
|
setup(K, { expose: D }) {
|
|
221
222
|
const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), I = te(), { breakpoints: N } = ne(), w = v(""), V = b(() => {
|
|
@@ -247,7 +248,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
247
248
|
const t = n.row.original, c = M(
|
|
248
249
|
[t.id],
|
|
249
250
|
l.permissionSets.value
|
|
250
|
-
), _ = A(c), g = _.length, z =
|
|
251
|
+
), _ = A(c), g = _.length, z = Ce(
|
|
251
252
|
_,
|
|
252
253
|
i.value
|
|
253
254
|
);
|
|
@@ -288,7 +289,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
288
289
|
onClick: (c) => c.stopPropagation()
|
|
289
290
|
},
|
|
290
291
|
[
|
|
291
|
-
S(
|
|
292
|
+
S(ge, {
|
|
292
293
|
items: [
|
|
293
294
|
{ label: o("common.update"), onClick: () => B(t) },
|
|
294
295
|
{
|
|
@@ -390,5 +391,5 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
390
391
|
}
|
|
391
392
|
});
|
|
392
393
|
export {
|
|
393
|
-
|
|
394
|
+
es as default
|
|
394
395
|
};
|