@feedmepos/mf-hrm-portal 2.2.5-dev → 2.2.5-dev.10
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-DgcWZ3SZ.js → ApprovalCodeList-BsDMMSIz.js} +4 -4
- package/dist/{AuditLogList-vWKMMGvd.js → AuditLogList-CGNZdtmn.js} +18 -17
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DuhXogXK.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C6MoToqi.js} +2 -2
- package/dist/EmployeeList-B_OuDWWQ.js +787 -0
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js → FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js} +1 -1
- package/dist/{GrantUserList-BAW0C1bA.js → GrantUserList-Bd0lXmFo.js} +5 -5
- package/dist/{Main-NzpdRNB3.js → Main-B66lSeOv.js} +5 -5
- package/dist/{Main-Wr6cTqfM.js → Main-CzHSNHsH.js} +2 -2
- package/dist/{Main-B7Nn8CLQ.js → Main-njRQ1tFk.js} +9 -9
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
- package/dist/{PermissionSetList-D6AFOleD.js → PermissionSetList-GTI6Cwj5.js} +18 -18
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bzq2_BMn.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C-QEQ-js.js} +1052 -1052
- package/dist/{RoleList-BuqpmXn_.js → RoleList-CmHgtM0m.js} +7 -7
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-SFqxftRx.js +426 -0
- package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-CrWfo-zF.js +690 -0
- package/dist/ScheduleGeneralPage-DxFxJN5j.js +320 -0
- package/dist/SchedulePage-cJDI3-E7.js +14647 -0
- package/dist/SchedulePositionPage-n1wUShIM.js +293 -0
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-B8W4sTsA.js +242 -0
- package/dist/SelectFilter-CG13h83-.js +264 -0
- package/dist/TeamMemberList-ByZt3VqN.js +1154 -0
- package/dist/{TimesheetList-B5FyVyCz.js → TimesheetList-Dv0-W--W.js} +54 -53
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C99Jr6Ax.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DIo6h5-a.js} +2 -2
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/{app-8samJY5z.js → app-SCXGJ95F.js} +3146 -2553
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Ba4X_9nY.js → dayjs.min-DqMLPYv-.js} +1 -1
- package/dist/{employee-BcFgm8Rt.js → employee-DT_xYQkz.js} +3 -3
- package/dist/{iteration-Dhdew1jW.js → iteration-B5dB9ecy.js} +1 -1
- package/dist/{lodash-CJ3mHku0.js → lodash-CRHFapxI.js} +1 -1
- package/dist/{role-BViYS7RK.js → role-CJm8pXaw.js} +1 -1
- package/dist/{rule-Dxt1ZSQS.js → rule-AJm-eVzJ.js} +276 -272
- package/dist/src/api/schedule/index.d.ts +41 -0
- package/dist/src/components/form/OutletRoleAssignment.vue.d.ts +16 -0
- package/dist/src/components/layout/AppSidebar.vue.d.ts +2 -0
- package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
- package/dist/src/components/layout/withShell.d.ts +14 -0
- package/dist/src/helpers/outlet-role-assignment.d.ts +40 -0
- package/dist/src/helpers/rule.d.ts +15 -0
- package/dist/src/router/shared.d.ts +4 -1
- package/dist/src/types/schedule.d.ts +232 -0
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +22 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +34 -0
- package/dist/src/views/scheduling/components/ScheduleAssignEmployeePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +23 -0
- package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +24 -0
- package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +23 -0
- package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeMenu.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleLegendBar.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +9 -0
- package/dist/src/views/scheduling/components/ScheduleOpenShiftCardMenu.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/SchedulePdfPreview.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +54 -0
- package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftCardMenu.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +35 -0
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +16 -0
- package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +25 -0
- package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +60 -0
- package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +20 -0
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +72 -0
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +38 -0
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +29 -0
- package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +7 -0
- package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -0
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +14 -0
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +10 -0
- package/dist/src/views/scheduling/composables/scheduleAutoSolver.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +98 -0
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +73 -0
- package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +77 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +50 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +122 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +143 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +426 -0
- package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +19 -0
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +43 -0
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +48 -0
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +77 -0
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +76 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +45 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +145 -0
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +41 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +35 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +16 -0
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +26 -0
- package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +14 -0
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +82 -0
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +70 -0
- package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +15 -0
- package/dist/src/views/scheduling/composables/useScheduleLegendBar.d.ts +35 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1316 -0
- package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +23 -0
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +20 -0
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +50 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +32 -0
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +93 -0
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +189 -0
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +54 -0
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +163 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +181 -0
- package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +23 -0
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +25 -0
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +49 -0
- package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +10 -0
- package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +9 -0
- package/dist/src/views/scheduling/data.d.ts +110 -0
- package/dist/src/views/scheduling/locales/index.d.ts +496 -0
- package/dist/src/views/scheduling/schedule-store.d.ts +151 -0
- package/dist/src/views/scheduling/types.d.ts +324 -0
- package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
- package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +12 -3
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-BiyAfGvZ.js → useReportPermissions-Cg3lV70m.js} +3 -3
- package/package.json +1 -1
- package/dist/EmployeeList-Cu4RxVQX.js +0 -889
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-BUI0Xsgc.js +0 -85
- package/dist/SelectFilter-ATOm0hdn.js +0 -269
- package/dist/TeamMemberList-M6HA9BWu.js +0 -1248
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as r, openBlock as c, createElementVNode as o, ref as m, computed as f, defineComponent as p, renderSlot as a, createCommentVNode as _, toDisplayString as i } from "vue";
|
|
2
|
-
import { _ as y } from "./
|
|
2
|
+
import { _ as y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
const h = {};
|
|
4
4
|
function v(t, e) {
|
|
5
5
|
return c(), r("div", null, [...e[0] || (e[0] = [
|
|
@@ -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-DqMLPYv-.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-CG13h83-.js";
|
|
6
|
+
import { _ as he } from "./app-SCXGJ95F.js";
|
|
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-CXzTpIVv.js";
|
|
10
10
|
import { u as ae } from "./grant-user-SNiDV22U.js";
|
|
11
11
|
import { u as se } from "./restaurant-BTpBmfBV.js";
|
|
12
|
-
import { u as re } from "./role-
|
|
12
|
+
import { u as re } from "./role-CJm8pXaw.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,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-BTpBmfBV.js";
|
|
7
7
|
import "@feedmepos/ui-library";
|
|
8
|
-
import "./rule-
|
|
9
|
-
import "./lodash-
|
|
10
|
-
import "./iteration-
|
|
8
|
+
import "./rule-AJm-eVzJ.js";
|
|
9
|
+
import "./lodash-CRHFapxI.js";
|
|
10
|
+
import "./iteration-B5dB9ecy.js";
|
|
11
11
|
import "./useAppStore-DCwd8GWN.js";
|
|
12
|
-
import { R as v } from "./app-
|
|
13
|
-
import "./role-
|
|
12
|
+
import { R as v } from "./app-SCXGJ95F.js";
|
|
13
|
+
import "./role-CJm8pXaw.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
import "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js";
|
|
16
16
|
const $ = { class: "space-y-24" }, Z = /* @__PURE__ */ M({
|
|
@@ -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-BTpBmfBV.js";
|
|
8
|
-
import { u as H } from "./role-
|
|
8
|
+
import { u as H } from "./role-CJm8pXaw.js";
|
|
9
9
|
import { u as J } from "./grant-user-SNiDV22U.js";
|
|
10
10
|
import { u as K } from "./approval-code-jIjkeVEb.js";
|
|
11
|
-
import { R as n } from "./app-
|
|
11
|
+
import { R as n } from "./app-SCXGJ95F.js";
|
|
12
12
|
const Q = { class: "space-y-24" }, ue = /* @__PURE__ */ D({
|
|
13
13
|
__name: "Main",
|
|
14
14
|
setup(W) {
|
|
@@ -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-BTpBmfBV.js";
|
|
8
|
-
import { u as _f } from "./role-
|
|
8
|
+
import { u as _f } from "./role-CJm8pXaw.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import "./employee-
|
|
11
|
-
import "./lodash-
|
|
10
|
+
import "./employee-DT_xYQkz.js";
|
|
11
|
+
import "./lodash-CRHFapxI.js";
|
|
12
12
|
import "./useAppStore-DCwd8GWN.js";
|
|
13
|
-
import "./iteration-
|
|
13
|
+
import "./iteration-B5dB9ecy.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-SCXGJ95F.js";
|
|
16
|
+
import "./rule-AJm-eVzJ.js";
|
|
17
|
+
import "./useReportPermissions-Cg3lV70m.js";
|
|
18
|
+
import "./dayjs.min-DqMLPYv-.js";
|
|
19
|
+
import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DIo6h5-a.js";
|
|
20
20
|
var Nn = {};
|
|
21
21
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
22
22
|
var qt = {};
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { defineComponent as I, createElementBlock as u, openBlock as m, normalizeStyle as P, computed as x, resolveComponent as k, createElementVNode as r, createVNode as p, toDisplayString as _, Fragment as L, renderList as S, createCommentVNode as $, withKeys as F, withModifiers as V, normalizeClass as j } from "vue";
|
|
2
|
+
const ee = /* @__PURE__ */ I({
|
|
3
|
+
__name: "Skeleton",
|
|
4
|
+
props: {
|
|
5
|
+
width: { default: "160px" }
|
|
6
|
+
},
|
|
7
|
+
setup(e) {
|
|
8
|
+
return (a, t) => (m(), u("div", {
|
|
9
|
+
class: "h-16 animate-pulse rounded bg-fm-color-neutral-gray-200",
|
|
10
|
+
style: P({ width: e.width })
|
|
11
|
+
}, null, 4));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
function B(e) {
|
|
15
|
+
return e.map((a) => a.restaurantId).filter(Boolean);
|
|
16
|
+
}
|
|
17
|
+
function w(e, a, t) {
|
|
18
|
+
const o = B(a);
|
|
19
|
+
return e.filter((l) => l.managable || l._id === t).map((l) => ({
|
|
20
|
+
label: `${l.profile.code ? `${l.profile.code} - ` : ""}${l.profile.name}`,
|
|
21
|
+
value: l._id,
|
|
22
|
+
disabled: o.includes(l._id) && l._id !== t
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
function C(e, a, t, o) {
|
|
26
|
+
return a ? e.filter((l) => l.restaurants.some((s) => s.id == a)).map((l) => ({
|
|
27
|
+
label: l.name,
|
|
28
|
+
value: l._id,
|
|
29
|
+
disabled: !o.isRoleUsable(l, a) && l._id !== t
|
|
30
|
+
})) : [];
|
|
31
|
+
}
|
|
32
|
+
function K(e, a, t, o) {
|
|
33
|
+
var s, c;
|
|
34
|
+
const l = C(e, a, t, o);
|
|
35
|
+
return ((s = l.find((n) => n.value === t && !n.disabled)) == null ? void 0 : s.value) ?? ((c = l.find((n) => !n.disabled)) == null ? void 0 : c.value) ?? "";
|
|
36
|
+
}
|
|
37
|
+
function N(e, a) {
|
|
38
|
+
const t = B(a), o = e.some(
|
|
39
|
+
(s) => s.managable && !t.includes(s._id)
|
|
40
|
+
), l = a.every((s) => s.restaurantId && s.roleId);
|
|
41
|
+
return o && l;
|
|
42
|
+
}
|
|
43
|
+
function E(e, a, t, o) {
|
|
44
|
+
var s;
|
|
45
|
+
const l = ((s = e[a]) == null ? void 0 : s.restaurantId) ?? "";
|
|
46
|
+
return o.isRestaurantLocked(l) ? e : e.length === 1 ? [t()] : e.filter((c, n) => n !== a);
|
|
47
|
+
}
|
|
48
|
+
const M = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 space-y-16" }, D = { class: "fm-typo-en-title-sm-600" }, G = { class: "space-y-16" }, q = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, H = { class: "text-sm font-semibold text-fm-color-typo-primary" }, J = { class: "text-sm font-semibold text-fm-color-typo-primary" }, Q = { class: "flex justify-self-end" }, T = ["tabindex", "aria-disabled", "aria-label", "onClick", "onKeydown"], te = /* @__PURE__ */ I({
|
|
49
|
+
__name: "OutletRoleAssignment",
|
|
50
|
+
props: {
|
|
51
|
+
modelValue: {},
|
|
52
|
+
restaurants: {},
|
|
53
|
+
roles: {},
|
|
54
|
+
isRoleUsable: {},
|
|
55
|
+
isRestaurantLocked: { type: Function, default: () => !1 },
|
|
56
|
+
createRow: {},
|
|
57
|
+
title: {},
|
|
58
|
+
restaurantLabel: {},
|
|
59
|
+
roleLabel: {},
|
|
60
|
+
addLabel: {},
|
|
61
|
+
removeLabel: {}
|
|
62
|
+
},
|
|
63
|
+
emits: ["update:modelValue"],
|
|
64
|
+
setup(e, { emit: a }) {
|
|
65
|
+
const t = e, o = a, l = x(() => ({
|
|
66
|
+
isRoleUsable: t.isRoleUsable,
|
|
67
|
+
isRestaurantLocked: t.isRestaurantLocked
|
|
68
|
+
}));
|
|
69
|
+
function s(d) {
|
|
70
|
+
return w(t.restaurants, t.modelValue, d);
|
|
71
|
+
}
|
|
72
|
+
function c(d) {
|
|
73
|
+
return C(t.roles, d.restaurantId, d.roleId, l.value);
|
|
74
|
+
}
|
|
75
|
+
function n(d) {
|
|
76
|
+
return t.isRestaurantLocked(d);
|
|
77
|
+
}
|
|
78
|
+
function U(d, f) {
|
|
79
|
+
const b = t.modelValue[d], v = K(t.roles, f, b.roleId, l.value), h = [...t.modelValue];
|
|
80
|
+
h[d] = { ...b, restaurantId: f, roleId: v }, o("update:modelValue", h);
|
|
81
|
+
}
|
|
82
|
+
function z(d, f) {
|
|
83
|
+
const b = t.modelValue[d], v = [...t.modelValue];
|
|
84
|
+
v[d] = { ...b, roleId: f }, o("update:modelValue", v);
|
|
85
|
+
}
|
|
86
|
+
function O() {
|
|
87
|
+
o("update:modelValue", [...t.modelValue, t.createRow()]);
|
|
88
|
+
}
|
|
89
|
+
function R(d) {
|
|
90
|
+
o(
|
|
91
|
+
"update:modelValue",
|
|
92
|
+
E(t.modelValue, d, t.createRow, l.value)
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
const A = x(() => N(t.restaurants, t.modelValue));
|
|
96
|
+
return (d, f) => {
|
|
97
|
+
const b = k("FmSelect"), v = k("FmIcon"), h = k("FmButton");
|
|
98
|
+
return m(), u("div", M, [
|
|
99
|
+
r("div", D, _(e.title), 1),
|
|
100
|
+
r("div", G, [
|
|
101
|
+
r("div", q, [
|
|
102
|
+
r("div", H, _(e.restaurantLabel), 1),
|
|
103
|
+
r("div", J, _(e.roleLabel), 1),
|
|
104
|
+
f[0] || (f[0] = r("div", null, null, -1))
|
|
105
|
+
]),
|
|
106
|
+
(m(!0), u(L, null, S(e.modelValue, (i, y) => (m(), u("div", {
|
|
107
|
+
key: `${i.restaurantId || "new"}-${y}`,
|
|
108
|
+
class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] items-center gap-16"
|
|
109
|
+
}, [
|
|
110
|
+
p(b, {
|
|
111
|
+
class: "min-w-0",
|
|
112
|
+
"model-value": i.restaurantId,
|
|
113
|
+
items: s(i.restaurantId),
|
|
114
|
+
multiselect: !1,
|
|
115
|
+
searchable: "",
|
|
116
|
+
"search-debounce": 300,
|
|
117
|
+
placeholder: e.restaurantLabel,
|
|
118
|
+
disabled: n(i.restaurantId),
|
|
119
|
+
"onUpdate:modelValue": (g) => U(y, g)
|
|
120
|
+
}, null, 8, ["model-value", "items", "placeholder", "disabled", "onUpdate:modelValue"]),
|
|
121
|
+
p(b, {
|
|
122
|
+
class: "min-w-0",
|
|
123
|
+
"model-value": i.roleId,
|
|
124
|
+
items: c(i),
|
|
125
|
+
multiselect: !1,
|
|
126
|
+
placeholder: e.roleLabel,
|
|
127
|
+
disabled: !i.restaurantId || n(i.restaurantId),
|
|
128
|
+
"onUpdate:modelValue": (g) => z(y, g)
|
|
129
|
+
}, null, 8, ["model-value", "items", "placeholder", "disabled", "onUpdate:modelValue"]),
|
|
130
|
+
r("div", Q, [
|
|
131
|
+
e.modelValue.length > 1 ? (m(), u("div", {
|
|
132
|
+
key: 0,
|
|
133
|
+
role: "button",
|
|
134
|
+
tabindex: n(i.restaurantId) ? -1 : 0,
|
|
135
|
+
"aria-disabled": n(i.restaurantId),
|
|
136
|
+
class: j(["inline-flex h-40 w-40 shrink-0 items-center justify-center rounded-lg text-fm-color-neutral-gray-400 transition-colors hover:bg-fm-color-neutral-gray-100 focus:outline-none focus:ring-2 focus:ring-fm-color-primary disabled:cursor-not-allowed disabled:text-fm-color-neutral-gray-200 disabled:hover:bg-transparent", {
|
|
137
|
+
"cursor-pointer": !n(i.restaurantId),
|
|
138
|
+
"pointer-events-none": n(i.restaurantId)
|
|
139
|
+
}]),
|
|
140
|
+
"aria-label": e.removeLabel,
|
|
141
|
+
onClick: V((g) => R(y), ["stop"]),
|
|
142
|
+
onKeydown: [
|
|
143
|
+
F(V((g) => R(y), ["prevent", "stop"]), ["enter"]),
|
|
144
|
+
F(V((g) => R(y), ["prevent", "stop"]), ["space"])
|
|
145
|
+
]
|
|
146
|
+
}, [
|
|
147
|
+
p(v, {
|
|
148
|
+
name: "delete",
|
|
149
|
+
size: "md"
|
|
150
|
+
})
|
|
151
|
+
], 42, T)) : $("", !0)
|
|
152
|
+
])
|
|
153
|
+
]))), 128))
|
|
154
|
+
]),
|
|
155
|
+
p(h, {
|
|
156
|
+
type: "button",
|
|
157
|
+
variant: "secondary",
|
|
158
|
+
"text-color": "primary",
|
|
159
|
+
"border-color": "primary",
|
|
160
|
+
"prepend-icon": "add",
|
|
161
|
+
label: e.addLabel,
|
|
162
|
+
size: "md",
|
|
163
|
+
disabled: !A.value,
|
|
164
|
+
onClick: V(O, ["stop"])
|
|
165
|
+
}, null, 8, ["label", "disabled"])
|
|
166
|
+
]);
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}), W = {
|
|
170
|
+
key: 0,
|
|
171
|
+
class: "fm-typo-body-sm-400 text-fm-color-typo-secondary"
|
|
172
|
+
}, le = /* @__PURE__ */ I({
|
|
173
|
+
__name: "PasscodeGenerateButton",
|
|
174
|
+
props: {
|
|
175
|
+
label: {},
|
|
176
|
+
hint: {},
|
|
177
|
+
disabled: { type: Boolean, default: !1 },
|
|
178
|
+
loading: { type: Boolean, default: !1 }
|
|
179
|
+
},
|
|
180
|
+
emits: ["click"],
|
|
181
|
+
setup(e) {
|
|
182
|
+
return (a, t) => {
|
|
183
|
+
const o = k("FmButton");
|
|
184
|
+
return m(), u(L, null, [
|
|
185
|
+
p(o, {
|
|
186
|
+
variant: "secondary",
|
|
187
|
+
"text-color": "primary",
|
|
188
|
+
"border-color": "primary",
|
|
189
|
+
label: e.label,
|
|
190
|
+
size: "md",
|
|
191
|
+
loading: e.loading,
|
|
192
|
+
disabled: e.disabled,
|
|
193
|
+
onClick: t[0] || (t[0] = (l) => a.$emit("click"))
|
|
194
|
+
}, null, 8, ["label", "loading", "disabled"]),
|
|
195
|
+
e.disabled ? (m(), u("div", W, _(e.hint), 1)) : $("", !0)
|
|
196
|
+
], 64);
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
}), X = { class: "flex items-center gap-8" }, Y = ["aria-label"], ae = /* @__PURE__ */ I({
|
|
200
|
+
__name: "PasscodePinField",
|
|
201
|
+
props: {
|
|
202
|
+
modelValue: {},
|
|
203
|
+
masked: { type: Boolean },
|
|
204
|
+
length: { default: 4 },
|
|
205
|
+
toggleLabel: {}
|
|
206
|
+
},
|
|
207
|
+
emits: ["update:modelValue", "update:masked", "complete"],
|
|
208
|
+
setup(e, { emit: a }) {
|
|
209
|
+
const t = a;
|
|
210
|
+
return (o, l) => {
|
|
211
|
+
const s = k("FmPinField"), c = k("FmIcon");
|
|
212
|
+
return m(), u("div", X, [
|
|
213
|
+
p(s, {
|
|
214
|
+
"model-value": e.modelValue,
|
|
215
|
+
length: e.length,
|
|
216
|
+
masked: e.masked,
|
|
217
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => t("update:modelValue", n)),
|
|
218
|
+
onComplete: l[1] || (l[1] = (n) => t("complete", n)),
|
|
219
|
+
onFocus: l[2] || (l[2] = (n) => t("update:masked", !1))
|
|
220
|
+
}, null, 8, ["model-value", "length", "masked"]),
|
|
221
|
+
r("button", {
|
|
222
|
+
type: "button",
|
|
223
|
+
class: "flex items-center justify-center rounded-full p-4 hover:bg-fm-color-neutral-gray-100",
|
|
224
|
+
"aria-label": e.toggleLabel,
|
|
225
|
+
onClick: l[3] || (l[3] = (n) => t("update:masked", !e.masked))
|
|
226
|
+
}, [
|
|
227
|
+
p(c, {
|
|
228
|
+
name: e.masked ? "visibility" : "visibility_off",
|
|
229
|
+
size: "md",
|
|
230
|
+
class: "text-fm-color-neutral-gray-300"
|
|
231
|
+
}, null, 8, ["name"])
|
|
232
|
+
], 8, Y)
|
|
233
|
+
]);
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
export {
|
|
238
|
+
ae as _,
|
|
239
|
+
le as a,
|
|
240
|
+
te as b,
|
|
241
|
+
ee as c,
|
|
242
|
+
B as s
|
|
243
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
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 {
|
|
4
|
+
import { v as Q, _ as he } from "./app-SCXGJ95F.js";
|
|
5
5
|
import { _ as _e } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
6
6
|
import { u as ge, _ as Pe } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
7
|
-
import { u as ie, c as M, d as ae, p as Y, i as ye, b as we, m as A,
|
|
8
|
-
import { l as T } from "./lodash-
|
|
9
|
-
import { c as Ve } from "./iteration-
|
|
7
|
+
import { u as ie, c as M, d as ae, p as Y, i as ye, b as we, m as A, n as xe, o as Fe, k as ke, l as Ce, v as Ie } from "./rule-AJm-eVzJ.js";
|
|
8
|
+
import { l as T } from "./lodash-CRHFapxI.js";
|
|
9
|
+
import { c as Ve } from "./iteration-B5dB9ecy.js";
|
|
10
10
|
import { u as Re } from "./useLoading-CXzTpIVv.js";
|
|
11
|
-
import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C-QEQ-js.js";
|
|
12
12
|
import { A as je } from "./restaurant-BTpBmfBV.js";
|
|
13
13
|
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
14
|
__name: "PermissionSetForm",
|
|
@@ -22,10 +22,10 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
22
22
|
const o = K, { t: i } = se(), f = v(!1), $ = b(() => {
|
|
23
23
|
var e;
|
|
24
24
|
return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.title") : i("permissionSet.form.create.title");
|
|
25
|
-
}), I = v(),
|
|
25
|
+
}), I = v(), N = oe(), w = te(), { breakpoints: V } = ne(), R = Re(N), l = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), B = [(e) => !!e || i("permissionSet.form.nameRequired")], O = b(() => {
|
|
26
26
|
var e;
|
|
27
27
|
return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.confirmButtonLabel") : i("permissionSet.form.create.confirmButtonLabel");
|
|
28
|
-
}),
|
|
28
|
+
}), q = b(
|
|
29
29
|
() => l.permissionSets.value.filter((e) => {
|
|
30
30
|
var s;
|
|
31
31
|
return e.id !== ((s = o.modelValue) == null ? void 0 : s.id);
|
|
@@ -162,7 +162,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
162
162
|
"side-sheet-footer": C(() => [
|
|
163
163
|
y("div", Le, [
|
|
164
164
|
m(k, {
|
|
165
|
-
label:
|
|
165
|
+
label: O.value,
|
|
166
166
|
size: "md",
|
|
167
167
|
variant: "primary",
|
|
168
168
|
type: "submit",
|
|
@@ -194,7 +194,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
194
194
|
multiselect: "",
|
|
195
195
|
searchable: "",
|
|
196
196
|
"search-debounce": 300,
|
|
197
|
-
items:
|
|
197
|
+
items: q.value,
|
|
198
198
|
label: r(i)("permissionSet.form.includedSets"),
|
|
199
199
|
placeholder: r(i)("permissionSet.form.includedSetsPlaceholder"),
|
|
200
200
|
class: "mt-16",
|
|
@@ -215,10 +215,10 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
215
215
|
}, 8, ["modelValue", "onOn:clickedAway"]);
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
}), De = { class: "space-y-8" },
|
|
218
|
+
}), De = { class: "space-y-8" }, Ne = { class: "flex justify-end xs:px-16" }, Oe = { class: "flex flex-col h-full overflow-auto" }, Ze = /* @__PURE__ */ Z({
|
|
219
219
|
__name: "PermissionSetList",
|
|
220
220
|
setup(K, { expose: D }) {
|
|
221
|
-
const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), I = te(), { breakpoints:
|
|
221
|
+
const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), I = te(), { breakpoints: N } = ne(), w = v(""), V = b(() => {
|
|
222
222
|
var n;
|
|
223
223
|
return (n = d.value) == null ? void 0 : n.filter((t) => {
|
|
224
224
|
const c = w.value.toLowerCase();
|
|
@@ -234,7 +234,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
234
234
|
var t;
|
|
235
235
|
a.value = n, (t = R.value) == null || t.trigger();
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const O = [
|
|
238
238
|
{
|
|
239
239
|
accessorKey: "name",
|
|
240
240
|
header: () => o("permissionSet.table.columns.name")
|
|
@@ -304,7 +304,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
304
304
|
enableSorting: !1
|
|
305
305
|
}
|
|
306
306
|
];
|
|
307
|
-
function
|
|
307
|
+
function q() {
|
|
308
308
|
var n;
|
|
309
309
|
a.value = void 0, (n = R.value) == null || n.trigger();
|
|
310
310
|
}
|
|
@@ -312,7 +312,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
312
312
|
I.open({
|
|
313
313
|
title: o("permissionSet.form.delete.title"),
|
|
314
314
|
message: o("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
|
|
315
|
-
minWidth:
|
|
315
|
+
minWidth: N.value.lg ? 588 : 0,
|
|
316
316
|
primaryActions: {
|
|
317
317
|
text: o("common.remove"),
|
|
318
318
|
close: !1,
|
|
@@ -337,7 +337,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
337
337
|
return fe(() => {
|
|
338
338
|
p(), f();
|
|
339
339
|
}), D({
|
|
340
|
-
create:
|
|
340
|
+
create: q
|
|
341
341
|
}), (n, t) => {
|
|
342
342
|
const c = h("FmSearch"), _ = h("FmTable");
|
|
343
343
|
return ee(), ve(Se, null, [
|
|
@@ -347,7 +347,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
347
347
|
"model-value": a.value
|
|
348
348
|
}, null, 8, ["model-value"]),
|
|
349
349
|
y("div", De, [
|
|
350
|
-
y("div",
|
|
350
|
+
y("div", Ne, [
|
|
351
351
|
m(c, {
|
|
352
352
|
modelValue: w.value,
|
|
353
353
|
"onUpdate:modelValue": t[0] || (t[0] = (g) => w.value = g),
|
|
@@ -358,7 +358,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
358
358
|
]),
|
|
359
359
|
m(he, null, {
|
|
360
360
|
default: C(() => [
|
|
361
|
-
y("div",
|
|
361
|
+
y("div", Oe, [
|
|
362
362
|
m(_e, {
|
|
363
363
|
"is-loading": r(l).isLoading.value,
|
|
364
364
|
"is-empty": V.value.length === 0,
|
|
@@ -368,7 +368,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
368
368
|
}, {
|
|
369
369
|
default: C(() => [
|
|
370
370
|
m(_, {
|
|
371
|
-
"column-defs":
|
|
371
|
+
"column-defs": O,
|
|
372
372
|
"row-data": V.value,
|
|
373
373
|
"page-size": V.value.length,
|
|
374
374
|
loading: r(l).isLoading.value,
|