@feedmepos/mf-hrm-portal 2.3.0-dev.2 → 2.3.0-dev.20
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-CJaNPHZC.js → ApprovalCodeList-ChZm8Cqn.js} +7 -7
- package/dist/{AuditLogList-CHA98ZqW.js → AuditLogList-DNb_HY2b.js} +18 -19
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C7rvthEI.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C1FZLRtw.js} +2 -2
- package/dist/{EmployeeList-CVmMKt71.js → EmployeeList-D0_eAXnx.js} +255 -266
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js → FormItem.vue_vue_type_script_setup_true_lang-DZEUOnX-.js} +6 -6
- package/dist/{GrantUserList-MYjgt5-F.js → GrantUserList-HHl1a4dz.js} +8 -8
- package/dist/{Main-BgB9lD4K.js → Main-B35_MSKW.js} +11 -11
- package/dist/{Main-C0cnqQ3B.js → Main-DFk9nc3J.js} +8 -8
- package/dist/{Main-hlcHtrsc.js → Main-DMsmgQyL.js} +5 -5
- package/dist/{PermissionSetList-5f1WIaVa.js → PermissionSetList-CglEdefD.js} +19 -18
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CFoTAGIX.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-9tG8k0mR.js} +1011 -1011
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fe-Rdwn4.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js} +1 -1
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
- package/dist/{RoleList-DNR4miXr.js → RoleList-_UsStsN7.js} +21 -20
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DYhMssqd.js +530 -0
- package/dist/ScheduleGeneralPage-CP3Vb4XJ.js +776 -0
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-B_OqKDw_.js +2439 -0
- package/dist/SchedulePage-5cbZyAow.js +19250 -0
- package/dist/{SchedulePositionPage-DyRckyUx.js → SchedulePositionPage-DwgNOVe8.js} +78 -80
- package/dist/{SelectFilter-CG13h83-.js → SelectFilter-BWM2fbe4.js} +1 -1
- package/dist/{TeamMemberList-mw5OveZG.js → TeamMemberList-CiYROtup.js} +27 -27
- package/dist/{TimesheetList-BzXarZbM.js → TimesheetList-ohxQpGBt.js} +52 -53
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dq5i4poN.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CHgKOFjZ.js} +3 -3
- package/dist/{app-DSsdRLHg.js → app-hqb3iLmH.js} +2891 -2474
- package/dist/app.js +1 -1
- package/dist/{approval-code-C9DmR4Md.js → approval-code-BXUiojPH.js} +1 -1
- package/dist/{dayjs.min-B6xBXQtU.js → dayjs.min-jdSYngTL.js} +1 -1
- package/dist/{employee-hMhzuqk1.js → employee-DQksdva7.js} +4 -4
- package/dist/{grant-user-Bv-pJ9Wt.js → grant-user-CBJ3gEgW.js} +1 -1
- package/dist/{iteration-B34AvpNC.js → iteration-Ws9RBh0x.js} +1 -1
- package/dist/{lodash-1Vyuy7Mu.js → lodash-Db0CBH2I.js} +1 -1
- package/dist/object-Dwyg2LgX.js +16 -0
- package/dist/{restaurant-D7PEQjPY.js → restaurant-D2mfKHaH.js} +48 -48
- package/dist/{role-DKOrgO6f.js → role-C5BIFEPz.js} +2 -2
- package/dist/{rule-CBzQ3GeV.js → rule-CU0v7pCG.js} +3 -3
- package/dist/src/api/schedule/index.d.ts +9 -1
- package/dist/src/components/layout/SchedulePromoBanner.vue.d.ts +2 -0
- package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
- package/dist/src/types/schedule.d.ts +3 -4
- package/dist/src/views/audit-log/locales/index.d.ts +252 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +4 -8
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +1 -4
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +0 -7
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +5 -0
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +1 -0
- package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +0 -1
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +4 -1
- package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +1 -5
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +5 -0
- package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +0 -1
- package/dist/src/views/scheduling/components/{ScheduleAssignEmployeePopover.vue.d.ts → ScheduleOnboardingAssignPositionModal.vue.d.ts} +2 -2
- package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +0 -10
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +2 -1
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +4 -2
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +12 -8
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +4 -0
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +1 -3
- package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +13 -1
- package/dist/src/views/scheduling/composables/schedule-error.d.ts +3 -0
- package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +22 -0
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +3 -0
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +6 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +29 -11
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +3 -11
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +2 -9
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +11 -3
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +84 -11
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +3 -10
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +13 -1
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -1
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +16 -5
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +3 -5
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +13 -3
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +20 -7
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +5 -1
- package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +5 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +2 -2
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +47 -3
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +406 -29
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +11 -8
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +0 -4
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +7 -1
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +70 -4
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +7 -2
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +2 -2
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +41 -3
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +47 -6
- package/dist/src/views/scheduling/country-rules/index.d.ts +9 -4
- package/dist/src/views/scheduling/data.d.ts +22 -1
- package/dist/src/views/scheduling/locales/index.d.ts +28 -0
- package/dist/src/views/scheduling/schedule-state.d.ts +272 -208
- package/dist/src/views/scheduling/schedule-store.d.ts +36 -11
- package/dist/src/views/scheduling/types.d.ts +29 -5
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-d_nHyK5u.js → useAppStore-DZCdxlCd.js} +1 -1
- package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
- package/dist/{useLoading-JFoghhRz.js → useLoading-Nygx2zn8.js} +1 -1
- package/dist/{useReportPermissions-B2ev0j4w.js → useReportPermissions-DeJMpuw7.js} +3 -3
- package/package.json +1 -1
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B4VUyKW3.js +0 -470
- package/dist/ScheduleGeneralPage-Cd5AlY4z.js +0 -666
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-Cf0l2MRg.js +0 -2188
- package/dist/SchedulePage-C8m0-m3l.js +0 -18257
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +0 -22
- package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +0 -14
- package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +0 -77
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +0 -124
- package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +0 -23
- package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createElementBlock as r, openBlock as c, createElementVNode as o, ref as m, computed as f, defineComponent as p, renderSlot as
|
|
2
|
-
import {
|
|
1
|
+
import { createElementBlock as r, openBlock as c, createElementVNode as o, ref as m, computed as f, defineComponent as p, renderSlot as l, createCommentVNode as _, toDisplayString as i } from "vue";
|
|
2
|
+
import { a as y } from "./app-hqb3iLmH.js";
|
|
3
3
|
const h = {};
|
|
4
4
|
function v(t, e) {
|
|
5
5
|
return c(), r("div", null, [...e[0] || (e[0] = [
|
|
@@ -11,9 +11,9 @@ const C = /* @__PURE__ */ y(h, [["render", v]]), V = (t) => {
|
|
|
11
11
|
function s(n) {
|
|
12
12
|
return `${n}`.trim().toLowerCase();
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const a = f(() => s(e.value));
|
|
15
15
|
function d(n) {
|
|
16
|
-
return
|
|
16
|
+
return a.value ? n.some((u) => s(u).includes(a.value)) : !0;
|
|
17
17
|
}
|
|
18
18
|
return { searchKey: e, filter: d };
|
|
19
19
|
}, b = { class: "space-y-8" }, x = { class: "flex items-center justify-between" }, S = { class: "space-y-8" }, g = { class: "fm-typo-en-body-lg-600" }, $ = {
|
|
@@ -32,9 +32,9 @@ const C = /* @__PURE__ */ y(h, [["render", v]]), V = (t) => {
|
|
|
32
32
|
o("p", g, i(t.label), 1),
|
|
33
33
|
t.description ? (c(), r("p", $, i(t.description), 1)) : _("", !0)
|
|
34
34
|
]),
|
|
35
|
-
|
|
35
|
+
l(e.$slots, "append")
|
|
36
36
|
]),
|
|
37
|
-
|
|
37
|
+
l(e.$slots, "default")
|
|
38
38
|
]));
|
|
39
39
|
}
|
|
40
40
|
});
|
|
@@ -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-jdSYngTL.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
|
-
import { S as A } from "./SelectFilter-
|
|
6
|
-
import { _ as he } from "./app-
|
|
7
|
-
import { _ as Q, u as Ue, H as xe } from "./FormItem.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { S as A } from "./SelectFilter-BWM2fbe4.js";
|
|
6
|
+
import { _ as he } from "./app-hqb3iLmH.js";
|
|
7
|
+
import { _ as Q, u as Ue, H as xe } from "./FormItem.vue_vue_type_script_setup_true_lang-DZEUOnX-.js";
|
|
8
8
|
import { _ as be } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
|
-
import { u as te } from "./useLoading-
|
|
10
|
-
import { u as ae } from "./grant-user-
|
|
11
|
-
import { u as se } from "./restaurant-
|
|
12
|
-
import { u as re } from "./role-
|
|
9
|
+
import { u as te } from "./useLoading-Nygx2zn8.js";
|
|
10
|
+
import { u as ae } from "./grant-user-CBJ3gEgW.js";
|
|
11
|
+
import { u as se } from "./restaurant-D2mfKHaH.js";
|
|
12
|
+
import { u as re } from "./role-C5BIFEPz.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",
|
|
@@ -4,19 +4,19 @@ import { useCoreStore as uf, useI18n as vf } from "@feedmepos/mf-common";
|
|
|
4
4
|
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
|
-
import { u as gf } from "./restaurant-
|
|
8
|
-
import { u as _f } from "./role-
|
|
7
|
+
import { u as gf } from "./restaurant-D2mfKHaH.js";
|
|
8
|
+
import { u as _f } from "./role-C5BIFEPz.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import "./employee-
|
|
11
|
-
import "./lodash-
|
|
12
|
-
import "./useAppStore-
|
|
13
|
-
import "./iteration-
|
|
10
|
+
import "./employee-DQksdva7.js";
|
|
11
|
+
import "./lodash-Db0CBH2I.js";
|
|
12
|
+
import "./useAppStore-DZCdxlCd.js";
|
|
13
|
+
import "./iteration-Ws9RBh0x.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-hqb3iLmH.js";
|
|
16
|
+
import "./rule-CU0v7pCG.js";
|
|
17
|
+
import "./useReportPermissions-DeJMpuw7.js";
|
|
18
|
+
import "./dayjs.min-jdSYngTL.js";
|
|
19
|
+
import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CHgKOFjZ.js";
|
|
20
20
|
var Nn = {};
|
|
21
21
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
22
22
|
var qt = {};
|
|
@@ -3,16 +3,16 @@ import { useRouter as N, useRoute as h } from "vue-router";
|
|
|
3
3
|
import { useI18n as k } from "@feedmepos/mf-common";
|
|
4
4
|
import { _ as x } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
5
5
|
import { _ as F } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
|
-
import { u as w } from "./restaurant-
|
|
6
|
+
import { u as w } from "./restaurant-D2mfKHaH.js";
|
|
7
7
|
import "@feedmepos/ui-library";
|
|
8
|
-
import "./rule-
|
|
9
|
-
import "./lodash-
|
|
10
|
-
import "./iteration-
|
|
11
|
-
import "./useAppStore-
|
|
12
|
-
import { R as v } from "./app-
|
|
13
|
-
import "./role-
|
|
8
|
+
import "./rule-CU0v7pCG.js";
|
|
9
|
+
import "./lodash-Db0CBH2I.js";
|
|
10
|
+
import "./iteration-Ws9RBh0x.js";
|
|
11
|
+
import "./useAppStore-DZCdxlCd.js";
|
|
12
|
+
import { R as v } from "./app-hqb3iLmH.js";
|
|
13
|
+
import "./role-C5BIFEPz.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-
|
|
15
|
+
import "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js";
|
|
16
16
|
const $ = { class: "space-y-24" }, Z = /* @__PURE__ */ M({
|
|
17
17
|
__name: "Main",
|
|
18
18
|
setup(q) {
|
|
@@ -4,11 +4,11 @@ import { useI18n as E, useCoreStore as $ } from "@feedmepos/mf-common";
|
|
|
4
4
|
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
|
-
import { u as j } from "./restaurant-
|
|
8
|
-
import { u as H } from "./role-
|
|
9
|
-
import { u as J } from "./grant-user-
|
|
10
|
-
import { u as K } from "./approval-code-
|
|
11
|
-
import { R as n } from "./app-
|
|
7
|
+
import { u as j } from "./restaurant-D2mfKHaH.js";
|
|
8
|
+
import { u as H } from "./role-C5BIFEPz.js";
|
|
9
|
+
import { u as J } from "./grant-user-CBJ3gEgW.js";
|
|
10
|
+
import { u as K } from "./approval-code-BXUiojPH.js";
|
|
11
|
+
import { R as n } from "./app-hqb3iLmH.js";
|
|
12
12
|
const Q = { class: "space-y-24" }, ue = /* @__PURE__ */ D({
|
|
13
13
|
__name: "Main",
|
|
14
14
|
setup(W) {
|
|
@@ -1,15 +1,16 @@
|
|
|
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-hqb3iLmH.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
|
|
10
|
-
import { u as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
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-CU0v7pCG.js";
|
|
8
|
+
import { l as T } from "./lodash-Db0CBH2I.js";
|
|
9
|
+
import { c as Ie } from "./iteration-Ws9RBh0x.js";
|
|
10
|
+
import { u as Ve } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
11
|
+
import { u as Re } from "./useLoading-Nygx2zn8.js";
|
|
12
|
+
import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-9tG8k0mR.js";
|
|
13
|
+
import { A as je } from "./restaurant-D2mfKHaH.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",
|
|
15
16
|
props: {
|
|
@@ -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
|
};
|