@feedmepos/mf-hrm-portal 2.3.0-dev.19 → 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-INrLNl4W.js → ApprovalCodeList-ChZm8Cqn.js} +7 -7
- package/dist/{AuditLogList-BDgSBAPi.js → AuditLogList-DNb_HY2b.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BQS6Y708.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C1FZLRtw.js} +2 -2
- package/dist/{EmployeeList-DsuNI7P7.js → EmployeeList-D0_eAXnx.js} +254 -264
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js → FormItem.vue_vue_type_script_setup_true_lang-DZEUOnX-.js} +6 -6
- package/dist/{GrantUserList-Bmgie1HE.js → GrantUserList-HHl1a4dz.js} +8 -8
- package/dist/{Main-B1e9eyqv.js → Main-B35_MSKW.js} +11 -11
- package/dist/{Main-BKt8r7Ut.js → Main-DFk9nc3J.js} +8 -8
- package/dist/{Main-SBhiLPdR.js → Main-DMsmgQyL.js} +5 -5
- package/dist/{PermissionSetList-CMOKTS_m.js → PermissionSetList-CglEdefD.js} +19 -18
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-K1Ad4e-f.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-9tG8k0mR.js} +807 -807
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.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-DcbQo51I.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-DwgNOVe8.js +262 -0
- package/dist/SelectFilter-BWM2fbe4.js +264 -0
- package/dist/{TeamMemberList-Bvjq14lE.js → TeamMemberList-CiYROtup.js} +25 -24
- package/dist/{TimesheetList-CybTPHdT.js → TimesheetList-ohxQpGBt.js} +10 -10
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CGmVMnqS.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CHgKOFjZ.js} +3 -3
- package/dist/{app-CEcv-vMB.js → app-hqb3iLmH.js} +4164 -2970
- package/dist/app.js +1 -1
- package/dist/{approval-code-jIjkeVEb.js → approval-code-BXUiojPH.js} +1 -1
- package/dist/{dayjs.min-yw8fgQPr.js → dayjs.min-jdSYngTL.js} +1 -1
- package/dist/{employee-ByRgP_2p.js → employee-DQksdva7.js} +29 -28
- package/dist/{grant-user-SNiDV22U.js → grant-user-CBJ3gEgW.js} +1 -1
- package/dist/{iteration-B3Z1Ojal.js → iteration-Ws9RBh0x.js} +1 -1
- package/dist/{lodash-D2BUlQJ1.js → lodash-Db0CBH2I.js} +1 -1
- package/dist/object-Dwyg2LgX.js +16 -0
- package/dist/{restaurant-BTpBmfBV.js → restaurant-D2mfKHaH.js} +230 -224
- package/dist/{role-_BDO50Cj.js → role-C5BIFEPz.js} +2 -2
- package/dist/{rule-FuP71XrW.js → rule-CU0v7pCG.js} +36 -36
- package/dist/src/api/restaurant/index.d.ts +2 -0
- package/dist/src/api/schedule/index.d.ts +63 -0
- package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
- package/dist/src/components/layout/SchedulePromoBanner.vue.d.ts +2 -0
- package/dist/src/components/layout/withScheduleShell.d.ts +10 -0
- package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
- package/dist/src/composables/useMessage.d.ts +8 -2
- package/dist/src/router/shared.d.ts +4 -1
- package/dist/src/types/employee.d.ts +1 -0
- package/dist/src/types/schedule.d.ts +23 -0
- package/dist/src/views/audit-log/locales/index.d.ts +252 -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 +12 -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/ScheduleAreaRows.vue.d.ts +41 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +25 -0
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +31 -0
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +29 -0
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +32 -0
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +26 -0
- package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +38 -0
- package/dist/src/views/scheduling/components/ScheduleBoardUtilityOverlays.vue.d.ts +22 -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/ScheduleCloneOutletModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleCoach.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleCompletionDialog.vue.d.ts +15 -0
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +35 -0
- package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleCostRailEmptyArt.vue.d.ts +2 -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 +17 -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/ScheduleExportPreview.vue.d.ts +7 -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 +6 -0
- package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +9 -0
- package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +26 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingAssignPositionModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingClosedDayConfirm.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandDays.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandFooter.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandHeader.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingDoneArt.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingHoursProfileNotice.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingPositions.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingReview.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +11 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +9 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizardFooter.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizardHeader.vue.d.ts +11 -0
- package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +70 -0
- package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleSetupBanner.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 +8 -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/ScheduleStaffRail.vue.d.ts +16 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +50 -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/auto-schedule-mapping.d.ts +33 -0
- package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +5 -0
- package/dist/src/views/scheduling/composables/onboarding-hours.d.ts +7 -0
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +51 -0
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +15 -0
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +82 -0
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +63 -0
- package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +9 -0
- package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +7 -0
- package/dist/src/views/scheduling/composables/schedule-cost.d.ts +19 -0
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +21 -0
- package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +23 -0
- package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +7 -0
- package/dist/src/views/scheduling/composables/schedule-error.d.ts +3 -0
- package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +14 -0
- package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -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 +29 -0
- package/dist/src/views/scheduling/composables/schedule-time.d.ts +8 -0
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +7 -0
- package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +16 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +120 -0
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +73 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +50 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +297 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +612 -0
- package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +28 -0
- package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useScheduleCoach.d.ts +80 -0
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +12 -0
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +60 -0
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +44 -0
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +111 -0
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +59 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +47 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +166 -0
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +55 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +24 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +30 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +7 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeForm.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +50 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +38 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +30 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +16 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +51 -0
- package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +14 -0
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +79 -0
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +59 -0
- package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +15 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +58 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +45 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +231 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingFlow.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingHours.d.ts +15 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingNavigation.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingPersistence.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1522 -0
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +25 -0
- package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useSchedulePageBootstrap.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useSchedulePageCellActions.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +20 -0
- package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +19 -0
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +55 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +35 -0
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +126 -0
- package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +313 -0
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +40 -0
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +17 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +245 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +63 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +17 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +255 -0
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +49 -0
- package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +95 -0
- package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +9 -0
- package/dist/src/views/scheduling/country-rules/index.d.ts +29 -0
- package/dist/src/views/scheduling/data.d.ts +123 -0
- package/dist/src/views/scheduling/locales/index.d.ts +716 -0
- package/dist/src/views/scheduling/schedule-constants.d.ts +7 -0
- package/dist/src/views/scheduling/schedule-state.d.ts +767 -0
- package/dist/src/views/scheduling/schedule-store.d.ts +135 -0
- package/dist/src/views/scheduling/types.d.ts +380 -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/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DCwd8GWN.js → useAppStore-DZCdxlCd.js} +1 -1
- package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
- package/dist/{useLoading-CXzTpIVv.js → useLoading-Nygx2zn8.js} +1 -1
- package/dist/{useReportPermissions-5AYWAQ8e.js → useReportPermissions-DeJMpuw7.js} +3 -3
- package/package.json +4 -2
- package/dist/SelectFilter-ATOm0hdn.js +0 -269
- package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { defineComponent as M, ref as A, onMounted as F, computed as S, createElementBlock as i, openBlock as l, createElementVNode as o, createVNode as n, createStaticVNode as x, withCtx as d, unref as s, toDisplayString as c, createTextVNode as r, normalizeClass as h, createCommentVNode as z, withDirectives as E, withKeys as k, vModelText as P, Fragment as C, renderList as V, withModifiers as g } from "vue";
|
|
2
|
+
import { useRouter as B } from "vue-router";
|
|
3
|
+
import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
4
|
+
import { R as L, a as O } from "./app-hqb3iLmH.js";
|
|
5
|
+
import { av as R, aw as K, ag as T, ar as u, as as U } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-B_OqKDw_.js";
|
|
6
|
+
import { u as W, a as j, _ as q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DYhMssqd.js";
|
|
7
|
+
const H = { class: "main" }, G = {
|
|
8
|
+
id: "viewPositions",
|
|
9
|
+
class: "view"
|
|
10
|
+
}, J = { class: "sp-head" }, Q = { class: "outlet-bar" }, X = { class: "sp-body" }, Y = { class: "sp-content" }, Z = { class: "sp-panel" }, ee = { class: "cfg-head" }, se = { class: "cfg-count" }, te = { id: "skList" }, oe = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "cfg-empty"
|
|
13
|
+
}, ae = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "cfg-list"
|
|
16
|
+
}, ne = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "cfg-row"
|
|
19
|
+
}, ie = { class: "cfg-main" }, le = ["onClick"], de = { class: "cfg-main" }, re = { class: "cfg-name" }, ue = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "cfg-confirm"
|
|
22
|
+
}, ce = { class: "q" }, ve = /* @__PURE__ */ M({
|
|
23
|
+
__name: "SchedulePositionPage",
|
|
24
|
+
setup(fe) {
|
|
25
|
+
const y = A(null);
|
|
26
|
+
R(y);
|
|
27
|
+
const w = B(), _ = I(), b = (m, e = "info") => _.open({ message: m, type: e }), t = W({ notify: b }), v = K(), f = j(void 0, { notify: b });
|
|
28
|
+
F(async () => {
|
|
29
|
+
await v.resolve() && await T(/* @__PURE__ */ new Date());
|
|
30
|
+
});
|
|
31
|
+
const $ = S(
|
|
32
|
+
() => v.options.value.length ? v.options.value : [{ value: "", label: "No outlet selected", disabled: !0 }]
|
|
33
|
+
);
|
|
34
|
+
function D(m) {
|
|
35
|
+
v.switchTo(m, /* @__PURE__ */ new Date());
|
|
36
|
+
}
|
|
37
|
+
function N() {
|
|
38
|
+
w.push({ name: L.SCHEDULE });
|
|
39
|
+
}
|
|
40
|
+
return (m, e) => (l(), i("div", {
|
|
41
|
+
ref_key: "rootEl",
|
|
42
|
+
ref: y,
|
|
43
|
+
class: "sch"
|
|
44
|
+
}, [
|
|
45
|
+
o("div", H, [
|
|
46
|
+
o("div", G, [
|
|
47
|
+
o("div", J, [
|
|
48
|
+
n(u, {
|
|
49
|
+
hierarchy: "ghost",
|
|
50
|
+
size: "sm",
|
|
51
|
+
class: "sp-back",
|
|
52
|
+
type: "button",
|
|
53
|
+
onClick: N
|
|
54
|
+
}, {
|
|
55
|
+
default: d(() => [...e[7] || (e[7] = [
|
|
56
|
+
o("svg", {
|
|
57
|
+
width: "12",
|
|
58
|
+
height: "12",
|
|
59
|
+
viewBox: "0 0 16 16",
|
|
60
|
+
fill: "none",
|
|
61
|
+
"aria-hidden": "true"
|
|
62
|
+
}, [
|
|
63
|
+
o("path", {
|
|
64
|
+
d: "M10 3.5L5.5 8l4.5 4.5",
|
|
65
|
+
stroke: "currentColor",
|
|
66
|
+
"stroke-width": "1.7",
|
|
67
|
+
"stroke-linecap": "round",
|
|
68
|
+
"stroke-linejoin": "round"
|
|
69
|
+
})
|
|
70
|
+
], -1),
|
|
71
|
+
o("span", null, "Back to schedule", -1)
|
|
72
|
+
])]),
|
|
73
|
+
_: 1
|
|
74
|
+
}),
|
|
75
|
+
e[9] || (e[9] = x('<div class="sp-title-row" data-v-77f876af><div class="sp-title" data-v-77f876af>Position</div><span class="page-tags" data-v-77f876af><span class="sch-badge page-tag-premium" data-color="brand" data-v-77f876af>Premium</span><span class="sch-badge" data-color="info" data-v-77f876af>Free until 31 Dec 2026</span></span></div><div class="sp-sub" data-v-77f876af>What your employees can do — the same catalogue across every outlet.</div>', 2)),
|
|
76
|
+
o("div", Q, [
|
|
77
|
+
e[8] || (e[8] = o("span", { class: "outlet-bar-lbl" }, "Outlet", -1)),
|
|
78
|
+
n(U, {
|
|
79
|
+
class: "outlet-sel",
|
|
80
|
+
"aria-label": "Outlet being configured",
|
|
81
|
+
searchable: "",
|
|
82
|
+
title: "Which outlet's roster the staff counts below are read from",
|
|
83
|
+
"model-value": s(v).outletId.value,
|
|
84
|
+
options: $.value,
|
|
85
|
+
"onUpdate:modelValue": D
|
|
86
|
+
}, null, 8, ["model-value", "options"])
|
|
87
|
+
])
|
|
88
|
+
]),
|
|
89
|
+
o("div", X, [
|
|
90
|
+
o("div", Y, [
|
|
91
|
+
o("div", Z, [
|
|
92
|
+
o("div", ee, [
|
|
93
|
+
e[11] || (e[11] = o("div", { class: "cfg-title" }, "Configured positions", -1)),
|
|
94
|
+
o("span", se, c(s(t).count.value), 1),
|
|
95
|
+
e[12] || (e[12] = o("span", { class: "cfg-spacer" }, null, -1)),
|
|
96
|
+
n(u, {
|
|
97
|
+
hierarchy: "primary",
|
|
98
|
+
size: "sm",
|
|
99
|
+
class: "am-btn am-btn-primary",
|
|
100
|
+
type: "button",
|
|
101
|
+
onClick: e[0] || (e[0] = (a) => s(f).openNew())
|
|
102
|
+
}, {
|
|
103
|
+
default: d(() => [...e[10] || (e[10] = [
|
|
104
|
+
r(" + Add position ", -1)
|
|
105
|
+
])]),
|
|
106
|
+
_: 1
|
|
107
|
+
})
|
|
108
|
+
]),
|
|
109
|
+
o("div", {
|
|
110
|
+
class: h(["ce-err", { show: s(t).error.value }])
|
|
111
|
+
}, c(s(t).error.value), 3),
|
|
112
|
+
o("div", te, [
|
|
113
|
+
!s(t).positions.value.length && !s(t).isAdding.value ? (l(), i("div", oe, [...e[13] || (e[13] = [
|
|
114
|
+
r(" No positions yet.", -1),
|
|
115
|
+
o("br", null, null, -1),
|
|
116
|
+
r(" Add one and it becomes assignable on every employee. ", -1)
|
|
117
|
+
])])) : (l(), i("div", ae, [
|
|
118
|
+
s(t).isAdding.value ? (l(), i("div", ne, [
|
|
119
|
+
o("div", ie, [
|
|
120
|
+
E(o("input", {
|
|
121
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => s(t).newName.value = a),
|
|
122
|
+
type: "text",
|
|
123
|
+
class: "cfg-name-input",
|
|
124
|
+
placeholder: "New position name",
|
|
125
|
+
autofocus: "",
|
|
126
|
+
onKeyup: [
|
|
127
|
+
e[2] || (e[2] = k((a) => s(t).confirmAdd(), ["enter"])),
|
|
128
|
+
e[3] || (e[3] = k((a) => s(t).cancelAdd(), ["esc"]))
|
|
129
|
+
]
|
|
130
|
+
}, null, 544), [
|
|
131
|
+
[P, s(t).newName.value]
|
|
132
|
+
])
|
|
133
|
+
]),
|
|
134
|
+
n(u, {
|
|
135
|
+
hierarchy: "secondary",
|
|
136
|
+
size: "sm",
|
|
137
|
+
class: "cfg-btn",
|
|
138
|
+
type: "button",
|
|
139
|
+
disabled: !s(t).newName.value.trim() || s(t).saving.value,
|
|
140
|
+
onClick: e[4] || (e[4] = (a) => s(t).confirmAdd())
|
|
141
|
+
}, {
|
|
142
|
+
default: d(() => [
|
|
143
|
+
r(c(s(t).saving.value ? "Adding…" : "Add"), 1)
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}, 8, ["disabled"]),
|
|
147
|
+
n(u, {
|
|
148
|
+
hierarchy: "secondary",
|
|
149
|
+
size: "sm",
|
|
150
|
+
class: "cfg-btn",
|
|
151
|
+
type: "button",
|
|
152
|
+
disabled: s(t).saving.value,
|
|
153
|
+
onClick: e[5] || (e[5] = (a) => s(t).cancelAdd())
|
|
154
|
+
}, {
|
|
155
|
+
default: d(() => [...e[14] || (e[14] = [
|
|
156
|
+
r(" Cancel ", -1)
|
|
157
|
+
])]),
|
|
158
|
+
_: 1
|
|
159
|
+
}, 8, ["disabled"])
|
|
160
|
+
])) : z("", !0),
|
|
161
|
+
(l(!0), i(C, null, V(s(t).positions.value, (a) => (l(), i("div", {
|
|
162
|
+
key: a.id,
|
|
163
|
+
class: h(["cfg-row", { "is-clickable": s(t).pendingDeleteId.value !== a.id }]),
|
|
164
|
+
onClick: (p) => s(t).pendingDeleteId.value !== a.id && s(f).openEdit(a.id, a.name)
|
|
165
|
+
}, [
|
|
166
|
+
o("div", de, [
|
|
167
|
+
o("div", re, c(a.name), 1)
|
|
168
|
+
]),
|
|
169
|
+
s(t).pendingDeleteId.value === a.id ? (l(), i("div", ue, [
|
|
170
|
+
o("span", ce, c(s(t).usageCountFor(a.id) ? `Remove from ${s(t).usageCountFor(a.id)} employee${s(t).usageCountFor(a.id) === 1 ? "" : "s"}?` : "Delete?"), 1),
|
|
171
|
+
n(u, {
|
|
172
|
+
hierarchy: "danger",
|
|
173
|
+
size: "sm",
|
|
174
|
+
class: "cfg-yes",
|
|
175
|
+
type: "button",
|
|
176
|
+
disabled: s(t).saving.value,
|
|
177
|
+
onClick: g((p) => s(t).confirmDelete(a.id), ["stop"])
|
|
178
|
+
}, {
|
|
179
|
+
default: d(() => [
|
|
180
|
+
r(c(s(t).saving.value ? "Deleting…" : "Delete"), 1)
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
}, 8, ["disabled", "onClick"]),
|
|
184
|
+
n(u, {
|
|
185
|
+
hierarchy: "secondary",
|
|
186
|
+
size: "sm",
|
|
187
|
+
class: "cfg-no",
|
|
188
|
+
type: "button",
|
|
189
|
+
disabled: s(t).saving.value,
|
|
190
|
+
onClick: e[6] || (e[6] = g((p) => s(t).cancelDelete(), ["stop"]))
|
|
191
|
+
}, {
|
|
192
|
+
default: d(() => [...e[15] || (e[15] = [
|
|
193
|
+
r(" Keep ", -1)
|
|
194
|
+
])]),
|
|
195
|
+
_: 1
|
|
196
|
+
}, 8, ["disabled"])
|
|
197
|
+
])) : (l(), i(C, { key: 1 }, [
|
|
198
|
+
o("span", {
|
|
199
|
+
class: h(["cfg-used", { none: !s(t).usageCountFor(a.id) }])
|
|
200
|
+
}, c(s(t).usageCountFor(a.id) ? `${s(t).usageCountFor(a.id)} employee${s(t).usageCountFor(a.id) === 1 ? "" : "s"}` : "unused"), 3),
|
|
201
|
+
n(u, {
|
|
202
|
+
hierarchy: "secondary",
|
|
203
|
+
size: "sm",
|
|
204
|
+
class: "cfg-btn",
|
|
205
|
+
type: "button",
|
|
206
|
+
onClick: g((p) => s(f).openEdit(a.id, a.name), ["stop"])
|
|
207
|
+
}, {
|
|
208
|
+
default: d(() => [...e[16] || (e[16] = [
|
|
209
|
+
r(" Edit ", -1)
|
|
210
|
+
])]),
|
|
211
|
+
_: 1
|
|
212
|
+
}, 8, ["onClick"]),
|
|
213
|
+
n(u, {
|
|
214
|
+
hierarchy: "ghost",
|
|
215
|
+
size: "sm",
|
|
216
|
+
"icon-only": "",
|
|
217
|
+
class: "cfg-del",
|
|
218
|
+
type: "button",
|
|
219
|
+
"aria-label": `Delete ${a.name}`,
|
|
220
|
+
onClick: g((p) => s(t).askDelete(a.id), ["stop"])
|
|
221
|
+
}, {
|
|
222
|
+
default: d(() => [...e[17] || (e[17] = [
|
|
223
|
+
o("svg", {
|
|
224
|
+
width: "14",
|
|
225
|
+
height: "14",
|
|
226
|
+
viewBox: "0 0 16 16",
|
|
227
|
+
fill: "none",
|
|
228
|
+
"aria-hidden": "true"
|
|
229
|
+
}, [
|
|
230
|
+
o("path", {
|
|
231
|
+
d: "M2.5 4.5h11M6 4.5V3a.8.8 0 0 1 .8-.8h2.4a.8.8 0 0 1 .8.8v1.5M4 4.5l.6 8.2a1 1 0 0 0 1 .93h4.8a1 1 0 0 0 1-.93l.6-8.2",
|
|
232
|
+
stroke: "currentColor",
|
|
233
|
+
"stroke-width": "1.4",
|
|
234
|
+
"stroke-linecap": "round",
|
|
235
|
+
"stroke-linejoin": "round"
|
|
236
|
+
}),
|
|
237
|
+
o("path", {
|
|
238
|
+
d: "M6.6 7v4M9.4 7v4",
|
|
239
|
+
stroke: "currentColor",
|
|
240
|
+
"stroke-width": "1.3",
|
|
241
|
+
"stroke-linecap": "round"
|
|
242
|
+
})
|
|
243
|
+
], -1)
|
|
244
|
+
])]),
|
|
245
|
+
_: 1
|
|
246
|
+
}, 8, ["aria-label", "onClick"])
|
|
247
|
+
], 64))
|
|
248
|
+
], 10, le))), 128))
|
|
249
|
+
]))
|
|
250
|
+
])
|
|
251
|
+
])
|
|
252
|
+
])
|
|
253
|
+
])
|
|
254
|
+
])
|
|
255
|
+
]),
|
|
256
|
+
n(q, { modal: s(f) }, null, 8, ["modal"])
|
|
257
|
+
], 512));
|
|
258
|
+
}
|
|
259
|
+
}), ke = /* @__PURE__ */ O(ve, [["__scopeId", "data-v-77f876af"]]);
|
|
260
|
+
export {
|
|
261
|
+
ke as default
|
|
262
|
+
};
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { ref as $, computed as v, defineComponent as X, watch as Y, nextTick as Z, resolveComponent as F, createElementBlock as d, openBlock as c, createElementVNode as A, createVNode as b, renderSlot as z, withCtx as O, createCommentVNode as x, normalizeStyle as ee, Fragment as S, createBlock as T, unref as k, renderList as R, toDisplayString as N, normalizeClass as le, withModifiers as te } from "vue";
|
|
2
|
+
import "@feedmepos/ui-library";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { a as ae } from "./app-hqb3iLmH.js";
|
|
5
|
+
function ue(r, u, _ = r) {
|
|
6
|
+
const t = $(!0), C = v(() => {
|
|
7
|
+
if (!t.value && !u.value)
|
|
8
|
+
return !0;
|
|
9
|
+
if (u.value && u.value.length > 0) {
|
|
10
|
+
const n = _.value.map((o) => o.value);
|
|
11
|
+
return u.value.length === n.length && u.value.every((o) => n.includes(o));
|
|
12
|
+
}
|
|
13
|
+
return !1;
|
|
14
|
+
}), l = v(() => {
|
|
15
|
+
var n, o, h, p;
|
|
16
|
+
return !!((n = u.value) != null && n.length && ((o = u.value) == null ? void 0 : o.length) > 0 && ((h = u.value) == null ? void 0 : h.length) < ((p = r.value) == null ? void 0 : p.length));
|
|
17
|
+
});
|
|
18
|
+
return { allCleared: t, allSelected: C, indeterminate: l, toggleAll: () => {
|
|
19
|
+
if (C.value) {
|
|
20
|
+
u.value = void 0, t.value = !0;
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const n = _.value.map((o) => o.value);
|
|
24
|
+
n.length === r.value.length ? (u.value = void 0, t.value = !1) : (u.value = n, t.value = !1);
|
|
25
|
+
}, toggleOption: (n) => {
|
|
26
|
+
var h, p, B;
|
|
27
|
+
let o;
|
|
28
|
+
u.value === void 0 && t.value ? o = [n] : u.value === void 0 && !t.value ? o = (h = r.value.map((m) => m.value)) == null ? void 0 : h.filter((m) => m !== n) : (p = u.value) != null && p.includes(n) ? o = (B = u.value) == null ? void 0 : B.filter((m) => m !== n) : o = [...u.value || [], n], o.length === 0 ? (u.value = void 0, t.value = !0) : o.length === r.value.length ? (u.value = void 0, t.value = !1) : u.value = o;
|
|
29
|
+
} };
|
|
30
|
+
}
|
|
31
|
+
const ne = { class: "w-full flex flex-col gap-8" }, re = { class: "flex items-center gap-8" }, oe = { class: "inline-flex items-center" }, se = { class: "flex flex-col w-[360px] min-h-0 gap-8" }, ie = {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: "flex gap-4 px-[6px] pt-4"
|
|
34
|
+
}, ce = { class: "flex-1" }, ve = {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: "px-12 pt-8 pb-4 text-xs font-semibold text-fm-color-typo-secondary select-none"
|
|
37
|
+
}, de = /* @__PURE__ */ X({
|
|
38
|
+
__name: "SelectFilter",
|
|
39
|
+
props: {
|
|
40
|
+
items: { default: () => [] },
|
|
41
|
+
modelValue: {},
|
|
42
|
+
multiple: { type: Boolean, default: !1 },
|
|
43
|
+
placeholder: { default: "Select..." },
|
|
44
|
+
searchPlaceholder: { default: "Search" },
|
|
45
|
+
disabled: { type: Boolean, default: !1 },
|
|
46
|
+
variant: { default: "default" },
|
|
47
|
+
clearable: { type: Boolean, default: !1 },
|
|
48
|
+
searchable: { type: Boolean, default: !0 },
|
|
49
|
+
autoSelectFirst: { type: Boolean, default: !1 },
|
|
50
|
+
chipIcon: { default: "filter_list" },
|
|
51
|
+
showSelectAll: { type: Boolean, default: !0 },
|
|
52
|
+
maxHeight: { default: 300 },
|
|
53
|
+
selectedPrefix: { default: "Selected: " },
|
|
54
|
+
filterFn: {}
|
|
55
|
+
},
|
|
56
|
+
emits: ["update:modelValue", "change"],
|
|
57
|
+
setup(r, { expose: u, emit: _ }) {
|
|
58
|
+
const t = r, C = _, l = v({
|
|
59
|
+
get: () => t.modelValue,
|
|
60
|
+
set: (e) => {
|
|
61
|
+
C("update:modelValue", e), C("change", e);
|
|
62
|
+
}
|
|
63
|
+
}), V = $(""), f = v(() => t.items), n = v(() => {
|
|
64
|
+
const e = V.value.trim();
|
|
65
|
+
if (!t.searchable || !e) return f.value;
|
|
66
|
+
if (t.filterFn)
|
|
67
|
+
return f.value.filter((s) => t.filterFn(s, e));
|
|
68
|
+
const a = e.toLowerCase();
|
|
69
|
+
return f.value.filter((s) => s.label.toLowerCase().includes(a));
|
|
70
|
+
}), o = v(() => f.value.some((e) => !!e.group)), h = v(() => {
|
|
71
|
+
if (!o.value)
|
|
72
|
+
return [{ group: "", options: n.value }];
|
|
73
|
+
const e = [], a = /* @__PURE__ */ new Map();
|
|
74
|
+
for (const s of n.value) {
|
|
75
|
+
const w = s.group ?? "";
|
|
76
|
+
let y = a.get(w);
|
|
77
|
+
y || (y = [], a.set(w, y), e.push({ group: w, options: y })), y.push(s);
|
|
78
|
+
}
|
|
79
|
+
return e;
|
|
80
|
+
}), p = v(() => {
|
|
81
|
+
if (!l.value || Array.isArray(l.value) && l.value.length === 0)
|
|
82
|
+
return t.placeholder;
|
|
83
|
+
if (Array.isArray(l.value) && l.value.length === 1) {
|
|
84
|
+
const a = f.value.find((s) => s.value === l.value[0]);
|
|
85
|
+
return (a == null ? void 0 : a.label) || t.placeholder;
|
|
86
|
+
}
|
|
87
|
+
const e = Array.isArray(l.value) ? l.value.length : 0;
|
|
88
|
+
return `${t.selectedPrefix}${e}`;
|
|
89
|
+
}), B = v(() => {
|
|
90
|
+
if (l.value === void 0 || l.value === null || l.value === "")
|
|
91
|
+
return t.placeholder;
|
|
92
|
+
const e = f.value.find((a) => a.value === l.value);
|
|
93
|
+
return (e == null ? void 0 : e.label) || t.placeholder;
|
|
94
|
+
}), m = v(
|
|
95
|
+
() => t.multiple ? p.value : B.value
|
|
96
|
+
), I = v(() => t.disabled ? "neutral-gray-200" : t.variant === "dark" ? "neutral-black" : "neutral-gray-400"), U = v(() => t.disabled ? "text-fm-color-neutral-gray-200" : t.variant === "dark" ? "text-fm-color-neutral-black" : "text-fm-color-neutral-gray-400"), L = $(void 0), j = new Proxy(L, {
|
|
97
|
+
get(e, a) {
|
|
98
|
+
return a === "value" ? Array.isArray(l.value) ? l.value : l.value === void 0 ? void 0 : [l.value] : L[a];
|
|
99
|
+
},
|
|
100
|
+
set(e, a, s) {
|
|
101
|
+
return a === "value" ? (l.value = s, !0) : (L[a] = s, !0);
|
|
102
|
+
}
|
|
103
|
+
}), { allSelected: P, toggleAll: q, toggleOption: E, indeterminate: J } = ue(
|
|
104
|
+
f,
|
|
105
|
+
j,
|
|
106
|
+
n
|
|
107
|
+
);
|
|
108
|
+
function G(e) {
|
|
109
|
+
var a;
|
|
110
|
+
t.multiple || (l.value = e, (a = M.value) == null || a.toggleMenu(!1));
|
|
111
|
+
}
|
|
112
|
+
function Q(e) {
|
|
113
|
+
e.stopPropagation(), !t.disabled && (l.value = null);
|
|
114
|
+
}
|
|
115
|
+
Y(
|
|
116
|
+
() => t.autoSelectFirst,
|
|
117
|
+
async (e) => {
|
|
118
|
+
if (e && !t.multiple && (l.value === void 0 || l.value === null)) {
|
|
119
|
+
await Z();
|
|
120
|
+
const a = f.value[0];
|
|
121
|
+
a && (l.value = a.value);
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{ immediate: !0 }
|
|
125
|
+
);
|
|
126
|
+
const M = $(null);
|
|
127
|
+
return u({
|
|
128
|
+
open: () => {
|
|
129
|
+
var e;
|
|
130
|
+
return (e = M.value) == null ? void 0 : e.toggleMenu(!0);
|
|
131
|
+
},
|
|
132
|
+
close: () => {
|
|
133
|
+
var e;
|
|
134
|
+
return (e = M.value) == null ? void 0 : e.toggleMenu(!1);
|
|
135
|
+
}
|
|
136
|
+
}), (e, a) => {
|
|
137
|
+
const s = F("FmIcon"), w = F("FmChip"), y = F("FmSearch"), H = F("FmMenuItem"), W = F("FmMenu");
|
|
138
|
+
return c(), d("div", ne, [
|
|
139
|
+
A("div", re, [
|
|
140
|
+
b(W, {
|
|
141
|
+
ref_key: "menuRef",
|
|
142
|
+
ref: M,
|
|
143
|
+
"close-on-click": !1,
|
|
144
|
+
disabled: r.disabled,
|
|
145
|
+
"z-index": 50,
|
|
146
|
+
"selector-for-dismiss-away-event-exclusion": ".fm-dialog, .fm-select__menu__wrapper"
|
|
147
|
+
}, {
|
|
148
|
+
"menu-button": O(() => [
|
|
149
|
+
z(e.$slots, "menu-button", {}, () => [
|
|
150
|
+
A("div", oe, [
|
|
151
|
+
b(w, { disabled: r.disabled }, {
|
|
152
|
+
default: O(() => [
|
|
153
|
+
b(s, {
|
|
154
|
+
color: I.value,
|
|
155
|
+
name: r.chipIcon,
|
|
156
|
+
outline: "",
|
|
157
|
+
size: "sm"
|
|
158
|
+
}, null, 8, ["color", "name"]),
|
|
159
|
+
m.value ? (c(), d("div", {
|
|
160
|
+
key: 0,
|
|
161
|
+
class: le([
|
|
162
|
+
"fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap",
|
|
163
|
+
U.value
|
|
164
|
+
])
|
|
165
|
+
}, N(m.value), 3)) : x("", !0),
|
|
166
|
+
b(s, {
|
|
167
|
+
color: I.value,
|
|
168
|
+
name: "keyboard_arrow_down",
|
|
169
|
+
size: "sm"
|
|
170
|
+
}, null, 8, ["color"]),
|
|
171
|
+
r.clearable && !r.multiple && l.value != null && l.value !== "" && !r.disabled ? (c(), d("button", {
|
|
172
|
+
key: 1,
|
|
173
|
+
class: "ml-4 focus:outline-none",
|
|
174
|
+
type: "button",
|
|
175
|
+
"aria-label": "Clear selection",
|
|
176
|
+
onClick: te(Q, ["stop"])
|
|
177
|
+
}, [
|
|
178
|
+
b(s, {
|
|
179
|
+
name: "close",
|
|
180
|
+
size: "sm",
|
|
181
|
+
color: I.value
|
|
182
|
+
}, null, 8, ["color"])
|
|
183
|
+
])) : x("", !0)
|
|
184
|
+
]),
|
|
185
|
+
_: 1
|
|
186
|
+
}, 8, ["disabled"])
|
|
187
|
+
])
|
|
188
|
+
], !0)
|
|
189
|
+
]),
|
|
190
|
+
default: O(() => [
|
|
191
|
+
A("div", se, [
|
|
192
|
+
r.searchable ? (c(), d("div", ie, [
|
|
193
|
+
A("div", ce, [
|
|
194
|
+
b(y, {
|
|
195
|
+
modelValue: V.value,
|
|
196
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => V.value = i),
|
|
197
|
+
placeholder: r.searchPlaceholder
|
|
198
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
199
|
+
])
|
|
200
|
+
])) : x("", !0),
|
|
201
|
+
A("div", {
|
|
202
|
+
class: "flex-1 overflow-y-auto min-h-0",
|
|
203
|
+
style: ee({ maxHeight: typeof r.maxHeight == "number" ? r.maxHeight + "px" : r.maxHeight })
|
|
204
|
+
}, [
|
|
205
|
+
r.multiple ? (c(), d(S, { key: 0 }, [
|
|
206
|
+
r.showSelectAll ? (c(), T(H, {
|
|
207
|
+
key: 0,
|
|
208
|
+
label: "All",
|
|
209
|
+
"has-checkbox": "",
|
|
210
|
+
"model-value": k(P),
|
|
211
|
+
indeterminate: k(J),
|
|
212
|
+
onClick: k(q)
|
|
213
|
+
}, null, 8, ["model-value", "indeterminate", "onClick"])) : x("", !0),
|
|
214
|
+
n.value.length ? (c(!0), d(S, { key: 1 }, R(h.value, (i) => (c(), d(S, {
|
|
215
|
+
key: i.group
|
|
216
|
+
}, [
|
|
217
|
+
i.group ? (c(), d("div", ve, N(i.group) + " (" + N(i.options.length) + ") ", 1)) : x("", !0),
|
|
218
|
+
(c(!0), d(S, null, R(i.options, (g) => {
|
|
219
|
+
var K;
|
|
220
|
+
return z(e.$slots, "option", {
|
|
221
|
+
key: g.value,
|
|
222
|
+
option: g,
|
|
223
|
+
selected: k(P) || Array.isArray(l.value) && ((K = l.value) == null ? void 0 : K.includes(g.value)),
|
|
224
|
+
toggle: () => k(E)(g.value)
|
|
225
|
+
}, () => {
|
|
226
|
+
var D;
|
|
227
|
+
return [
|
|
228
|
+
b(H, {
|
|
229
|
+
label: g.label,
|
|
230
|
+
"has-checkbox": "",
|
|
231
|
+
"model-value": k(P) || Array.isArray(l.value) && ((D = l.value) == null ? void 0 : D.includes(g.value)),
|
|
232
|
+
onClick: (fe) => k(E)(g.value)
|
|
233
|
+
}, null, 8, ["label", "model-value", "onClick"])
|
|
234
|
+
];
|
|
235
|
+
}, !0);
|
|
236
|
+
}), 128))
|
|
237
|
+
], 64))), 128)) : x("", !0)
|
|
238
|
+
], 64)) : (c(), d(S, { key: 1 }, [
|
|
239
|
+
n.value.length ? (c(!0), d(S, { key: 0 }, R(n.value, (i) => z(e.$slots, "option", {
|
|
240
|
+
option: i,
|
|
241
|
+
selected: l.value === i.value,
|
|
242
|
+
toggle: () => G(i.value)
|
|
243
|
+
}, () => [
|
|
244
|
+
(c(), T(H, {
|
|
245
|
+
key: i.value,
|
|
246
|
+
label: i.label,
|
|
247
|
+
onClick: (g) => G(i.value)
|
|
248
|
+
}, null, 8, ["label", "onClick"]))
|
|
249
|
+
], !0)), 256)) : x("", !0)
|
|
250
|
+
], 64))
|
|
251
|
+
], 4)
|
|
252
|
+
])
|
|
253
|
+
]),
|
|
254
|
+
_: 3
|
|
255
|
+
}, 8, ["disabled"]),
|
|
256
|
+
z(e.$slots, "append-right", {}, void 0, !0)
|
|
257
|
+
])
|
|
258
|
+
]);
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
}), ye = /* @__PURE__ */ ae(de, [["__scopeId", "data-v-81cde2b9"]]);
|
|
262
|
+
export {
|
|
263
|
+
ye as S
|
|
264
|
+
};
|
|
@@ -2,21 +2,22 @@ import { defineComponent as we, resolveComponent as F, createElementBlock as L,
|
|
|
2
2
|
import { useI18n as Ve, useCoreStore as Ze } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Le, useDialog as Qe, useBreakpoints as Ye, components as Oe } from "@feedmepos/ui-library";
|
|
4
4
|
import { u as ps } from "./useDebounce-B8ZPVS5C.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { _ as
|
|
9
|
-
import { s as
|
|
10
|
-
import { u as He } from "./useLoading-
|
|
5
|
+
import { S as ye } from "./SelectFilter-BWM2fbe4.js";
|
|
6
|
+
import { a as vs, v as Te, m as fs, O as bs, _ as hs, b as ys } from "./app-hqb3iLmH.js";
|
|
7
|
+
import { _ as gs } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
8
|
+
import { _ as _s } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
|
+
import { s as Us, _ as Ss, a as xs, b as Fs, c as Ps } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js";
|
|
10
|
+
import { u as He } from "./useLoading-Nygx2zn8.js";
|
|
11
|
+
import { u as Is } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
11
12
|
import { n as es } from "./string-VNuQNweN.js";
|
|
12
|
-
import { l as Pe } from "./lodash-
|
|
13
|
-
import { c as he } from "./iteration-
|
|
14
|
-
import { t as _e, u as ss, c as Ae, b as qe, m as $e, d as ts, p as Ge, i as ws, j as Ke, k as Vs, l as ks, n as Rs, o as Cs, q as $s } from "./rule-
|
|
15
|
-
import { u as as } from "./role-
|
|
16
|
-
import { u as ls, i as Ms } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-
|
|
17
|
-
import "./useAppStore-
|
|
18
|
-
import { g as ze, b as We, u as os } from "./restaurant-
|
|
19
|
-
import { _ as Ns } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { l as Pe } from "./lodash-Db0CBH2I.js";
|
|
14
|
+
import { c as he } from "./iteration-Ws9RBh0x.js";
|
|
15
|
+
import { t as _e, u as ss, c as Ae, b as qe, m as $e, d as ts, p as Ge, i as ws, j as Ke, k as Vs, l as ks, n as Rs, o as Cs, q as $s } from "./rule-CU0v7pCG.js";
|
|
16
|
+
import { u as as } from "./role-C5BIFEPz.js";
|
|
17
|
+
import { u as ls, i as Ms } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js";
|
|
18
|
+
import "./useAppStore-DZCdxlCd.js";
|
|
19
|
+
import { g as ze, b as We, u as os } from "./restaurant-D2mfKHaH.js";
|
|
20
|
+
import { _ as Ns } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-9tG8k0mR.js";
|
|
20
21
|
var Ue = /* @__PURE__ */ ((o) => (o.Update = "Update", o.Remove = "Remove", o))(Ue || {});
|
|
21
22
|
const Ie = "__unassigned__";
|
|
22
23
|
function Je(o) {
|
|
@@ -244,7 +245,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
244
245
|
}
|
|
245
246
|
const C = S(() => {
|
|
246
247
|
var n;
|
|
247
|
-
return
|
|
248
|
+
return Us(((n = v.modelValue) == null ? void 0 : n.roles) ?? []);
|
|
248
249
|
});
|
|
249
250
|
function d(n) {
|
|
250
251
|
return v.usableRoleIds === null || v.usableRoleIds.includes(n._id);
|
|
@@ -347,7 +348,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
347
348
|
]
|
|
348
349
|
}, {
|
|
349
350
|
default: ie(() => [
|
|
350
|
-
i(
|
|
351
|
+
i(Ss, {
|
|
351
352
|
modelValue: R.value,
|
|
352
353
|
"onUpdate:modelValue": b[2] || (b[2] = (r) => R.value = r),
|
|
353
354
|
masked: I.value,
|
|
@@ -359,7 +360,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
359
360
|
]),
|
|
360
361
|
_: 1
|
|
361
362
|
}, 8, ["modelValue", "rules"]),
|
|
362
|
-
i(
|
|
363
|
+
i(xs, {
|
|
363
364
|
label: l(m)("team.memberForm.masterUser.passcodeGenerate"),
|
|
364
365
|
hint: l(m)("team.memberForm.masterUser.passcodeSelectOutletFirst"),
|
|
365
366
|
loading: E.value,
|
|
@@ -377,7 +378,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
377
378
|
]
|
|
378
379
|
}, {
|
|
379
380
|
default: ie(() => [
|
|
380
|
-
i(
|
|
381
|
+
i(Fs, {
|
|
381
382
|
"model-value": o.modelValue.roles,
|
|
382
383
|
restaurants: o.restaurants,
|
|
383
384
|
roles: o.roles,
|
|
@@ -683,7 +684,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
683
684
|
var ee = /* @__PURE__ */ function(o) {
|
|
684
685
|
return o[o.ADD = 0] = "ADD", o[o.UPDATE = 1] = "UPDATE", o[o.CLOSED = 2] = "CLOSED", o;
|
|
685
686
|
}(ee || {});
|
|
686
|
-
const
|
|
687
|
+
const Ht = /* @__PURE__ */ we({
|
|
687
688
|
__name: "TeamMemberList",
|
|
688
689
|
setup(o, {
|
|
689
690
|
expose: N
|
|
@@ -722,7 +723,7 @@ const Yt = /* @__PURE__ */ we({
|
|
|
722
723
|
onClick: () => se(Ue.Remove, e),
|
|
723
724
|
itemClass: "text-fm-color-typo-error"
|
|
724
725
|
}, re = e.doc.isOwner ? [_] : [_, x];
|
|
725
|
-
return i(
|
|
726
|
+
return i(gs, {
|
|
726
727
|
class: t,
|
|
727
728
|
items: re
|
|
728
729
|
}, null);
|
|
@@ -753,7 +754,7 @@ const Yt = /* @__PURE__ */ we({
|
|
|
753
754
|
enableSorting: !1,
|
|
754
755
|
cell(e) {
|
|
755
756
|
if (j.value)
|
|
756
|
-
return ds(
|
|
757
|
+
return ds(Ps);
|
|
757
758
|
const t = e.row.original;
|
|
758
759
|
return U(t);
|
|
759
760
|
}
|
|
@@ -869,7 +870,7 @@ const Yt = /* @__PURE__ */ we({
|
|
|
869
870
|
function ve() {
|
|
870
871
|
X++, ue.value = !1, B.value = ee.CLOSED;
|
|
871
872
|
}
|
|
872
|
-
const fe =
|
|
873
|
+
const fe = Is(() => {
|
|
873
874
|
var e;
|
|
874
875
|
return ((e = Y.value) == null ? void 0 : e.isModified()) ?? !1;
|
|
875
876
|
}, ve);
|
|
@@ -1085,7 +1086,7 @@ const Yt = /* @__PURE__ */ we({
|
|
|
1085
1086
|
}, {
|
|
1086
1087
|
default: ie(() => [u("div", kt, [f.value ? q("", !0) : (y(), G(ys, {
|
|
1087
1088
|
key: 0
|
|
1088
|
-
})), f.value ? (y(), G(
|
|
1089
|
+
})), f.value ? (y(), G(_s, {
|
|
1089
1090
|
key: 1,
|
|
1090
1091
|
"is-loading": d.value,
|
|
1091
1092
|
"is-empty": D.value === 0,
|
|
@@ -1149,5 +1150,5 @@ const Yt = /* @__PURE__ */ we({
|
|
|
1149
1150
|
}
|
|
1150
1151
|
});
|
|
1151
1152
|
export {
|
|
1152
|
-
|
|
1153
|
+
Ht as default
|
|
1153
1154
|
};
|