@feedmepos/mf-hrm-portal 2.3.2-dev → 2.3.2-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-xOyDG5ug.js → ApprovalCodeList-D3U4nvlF.js} +7 -7
- package/dist/AuditLogList-qGCW7tf0.js +1950 -0
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-B0VcRYUg.js +438 -0
- package/dist/EmployeeList-Bd73xDCX.js +776 -0
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js → FormItem.vue_vue_type_script_setup_true_lang-cLEnrtC6.js} +6 -6
- package/dist/{GrantUserList-CUkuf3VV.js → GrantUserList-C71pal0N.js} +8 -8
- package/dist/{Main-Cg9SOzcz.js → Main-BWJPyEU1.js} +5 -5
- package/dist/{Main-BcixH7R5.js → Main-CCdTWngg.js} +11 -11
- package/dist/Main-DGf0bQvy.js +96 -0
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
- package/dist/{PermissionSetList-I3u2_qHR.js → PermissionSetList-BS-oBunI.js} +35 -33
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CkOAT-oX.js +4167 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js +35 -0
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
- package/dist/{RoleList-ALmAwN0U.js → RoleList-B_7UnVNb.js} +21 -20
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BXihM4sl.js +544 -0
- package/dist/ScheduleGeneralPage-DpNvWNGs.js +811 -0
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-DIYLOF9N.js +2556 -0
- package/dist/SchedulePage-QW-cYvu2.js +19458 -0
- package/dist/SchedulePositionPage-BtFfVo2N.js +282 -0
- package/dist/SelectFilter-BXeVKgHN.js +264 -0
- package/dist/TeamMemberList-DoisBYnk.js +1154 -0
- package/dist/{TimesheetList-CECFKt7H.js → TimesheetList-D-bESKe5.js} +11 -11
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RIyoAmeb.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-D0zAVqCa.js} +3 -3
- package/dist/{app-CdrnR_Pw.js → app-D-MUq9Ab.js} +11435 -6652
- package/dist/app.js +3 -3
- package/dist/{approval-code-Bwvwehz9.js → approval-code-BXUiojPH.js} +1 -1
- package/dist/{dayjs.min-BO8bcI17.js → dayjs.min-BZ1pM-6M.js} +13 -13
- package/dist/{employee-Dg-J9goA.js → employee-HQEU8fjb.js} +66 -62
- package/dist/{grant-user-whFOaPZI.js → grant-user-CBJ3gEgW.js} +1 -1
- package/dist/{iteration-ZpERYj3o.js → iteration-ogxW2-Tv.js} +1 -1
- package/dist/{lodash-7SZBZ8VQ.js → lodash-Def4gaas.js} +1 -1
- package/dist/object-Dwyg2LgX.js +16 -0
- package/dist/restaurant-D2mfKHaH.js +1880 -0
- package/dist/{role-C6hFKOfU.js → role-JDoDFVd9.js} +4 -5
- package/dist/{rule-BlMymDXm.js → rule-DPtqlnz-.js} +94 -99
- package/dist/src/api/audit-log/index.d.ts +4 -0
- package/dist/src/api/employee/index.d.ts +2 -2
- package/dist/src/api/restaurant/index.d.ts +2 -0
- package/dist/src/api/schedule/index.d.ts +68 -0
- package/dist/src/components/AppForm.vue.d.ts +2 -2
- package/dist/src/components/CheckboxInput.vue.d.ts +2 -2
- package/dist/src/components/CollapsibleWrapper.vue.d.ts +3 -11
- package/dist/src/components/layout/PortalShell.vue.d.ts +12 -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/helpers/string.d.ts +1 -10
- package/dist/src/router/shared.d.ts +3 -2
- package/dist/src/stores/employee.d.ts +12 -12
- package/dist/src/stores/restaurant.d.ts +7 -7
- package/dist/src/stores/team.d.ts +0 -30
- package/dist/src/types/employee.d.ts +1 -0
- package/dist/src/types/schedule.d.ts +23 -0
- package/dist/src/types/team.d.ts +1 -17
- package/dist/src/views/audit-log/constants.d.ts +9 -30
- package/dist/src/views/audit-log/locales/index.d.ts +488 -0
- package/dist/src/views/audit-log/pos-row.d.ts +27 -0
- package/dist/src/views/hr/locales/index.d.ts +4 -4
- 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/ScheduleAutoScheduleDoneArt.vue.d.ts +2 -0
- package/dist/src/views/{team/member/ExistingMemberNotice.vue.d.ts → scheduling/components/ScheduleAutoScheduleModal.vue.d.ts} +5 -6
- 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 +34 -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 +33 -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 +35 -0
- package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +7 -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 +17 -0
- package/dist/src/views/scheduling/composables/schedule-cost.d.ts +24 -0
- package/dist/src/views/scheduling/composables/schedule-currency.d.ts +22 -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 +1 -0
- package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +14 -0
- package/dist/src/views/scheduling/composables/schedule-leave-split.d.ts +9 -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 +23 -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 +9 -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 +137 -0
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +75 -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 +301 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +615 -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 +49 -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 +32 -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 +52 -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 +60 -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 +1543 -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 +33 -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 +127 -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 +33 -0
- package/dist/src/views/scheduling/data.d.ts +123 -0
- package/dist/src/views/scheduling/locales/index.d.ts +6988 -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 +140 -0
- package/dist/src/views/scheduling/types.d.ts +381 -0
- package/dist/src/views/team/components/BasePermission.vue.d.ts +0 -11
- package/dist/src/views/team/components/ConditionPermission.vue.d.ts +0 -11
- package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
- package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -21
- package/dist/src/views/team/components/PosRolePermission.vue.d.ts +0 -11
- package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
- package/dist/src/views/team/locales/index.d.ts +0 -716
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -50
- package/dist/src/views/team/{components/MemberStatusBadge.vue.d.ts → member/MemberInfo.vue.d.ts} +2 -2
- package/dist/src/views/team/member/TeamMemberList.vue.d.ts +0 -1
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +0 -2
- package/dist/string-VNuQNweN.js +15 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CL6EEDuw.js → useAppStore-DZCdxlCd.js} +1 -1
- package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
- package/dist/{useLoading-BBjBUzGJ.js → useLoading-Nygx2zn8.js} +1 -1
- package/dist/{useReportPermissions-Bg0fma6m.js → useReportPermissions-CxV7Dz1B.js} +3 -3
- package/package.json +5 -3
- package/dist/AuditLogList-Dd6HyFhk.js +0 -1777
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Cixg_icC.js +0 -459
- package/dist/EmployeeList-BG2KPvOB.js +0 -908
- package/dist/Main-BSHf8gTE.js +0 -100
- package/dist/MyPosProfile-CN8Bj3aV.js +0 -301
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +0 -126
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BBoRXQPn.js +0 -4243
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B5QDOF0L.js +0 -1840
- package/dist/SelectFilter-ATOm0hdn.js +0 -269
- package/dist/TeamMemberList-DZfEnOs1.js +0 -2097
- package/dist/member-grant-C46lvrh2.js +0 -55
- package/dist/restaurant-CKhT6kgj.js +0 -45
- package/dist/src/api/my-pos-profile/index.d.ts +0 -5
- package/dist/src/api/staff-invite/index.d.ts +0 -17
- package/dist/src/components/form/SegmentedTabs.vue.d.ts +0 -23
- package/dist/src/composables/useMenuAccess.d.ts +0 -56
- package/dist/src/composables/useStaffInviteProviders.d.ts +0 -19
- package/dist/src/helpers/member-grant.d.ts +0 -36
- package/dist/src/helpers/my-pos-profile.d.ts +0 -37
- package/dist/src/helpers/pos-assignment-rows.d.ts +0 -26
- package/dist/src/helpers/staff-invite.d.ts +0 -51
- package/dist/src/router/menu-access-guard.d.ts +0 -17
- package/dist/src/types/my-pos-profile.d.ts +0 -25
- package/dist/src/types/staff-invite.d.ts +0 -100
- package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +0 -4
- package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -200
- package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +0 -55
- package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -46
- package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +0 -35
- package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +0 -19
- package/dist/string-DZQ1uNjn.js +0 -22
- package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
- /package/dist/src/{views/my-pos-profile/MyPosProfile.vue.d.ts → components/layout/SchedulePromoBanner.vue.d.ts} +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { defineStore as x, storeToRefs as b } from "pinia";
|
|
2
2
|
import { ref as w } from "vue";
|
|
3
3
|
import { useCoreStore as B } from "@feedmepos/mf-common";
|
|
4
|
-
import { s as v } from "./iteration-
|
|
5
|
-
import { g as f, b as p } from "./
|
|
6
|
-
import { u as I } from "./restaurant-CKhT6kgj.js";
|
|
4
|
+
import { s as v } from "./iteration-ogxW2-Tv.js";
|
|
5
|
+
import { g as f, b as p, u as I } from "./restaurant-D2mfKHaH.js";
|
|
7
6
|
const R = {
|
|
8
7
|
async readRoles() {
|
|
9
8
|
return f(await p().get("/pos-roles"));
|
|
@@ -81,7 +80,7 @@ const A = x("role", () => {
|
|
|
81
80
|
updateRole: g,
|
|
82
81
|
deleteRole: S
|
|
83
82
|
};
|
|
84
|
-
}),
|
|
83
|
+
}), L = () => {
|
|
85
84
|
const e = A();
|
|
86
85
|
return {
|
|
87
86
|
...e,
|
|
@@ -89,5 +88,5 @@ const A = x("role", () => {
|
|
|
89
88
|
};
|
|
90
89
|
};
|
|
91
90
|
export {
|
|
92
|
-
|
|
91
|
+
L as u
|
|
93
92
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as W, c as q, e as y } from "./iteration-
|
|
2
|
-
import {
|
|
1
|
+
import { s as W, c as q, e as y } from "./iteration-ogxW2-Tv.js";
|
|
2
|
+
import { h as O, c as V, d as _, v as F, n as h, O as ee, D as M } from "./app-D-MUq9Ab.js";
|
|
3
3
|
import { s as se } from "./utils-BZkjJbju.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { g, b as v, q as x, u as te } from "./restaurant-D2mfKHaH.js";
|
|
5
|
+
import { defineStore as z, storeToRefs as K } from "pinia";
|
|
6
|
+
import { ref as S, computed as T } from "vue";
|
|
6
7
|
import { useCoreStore as X } from "@feedmepos/mf-common";
|
|
7
|
-
import { u as te } from "./restaurant-CKhT6kgj.js";
|
|
8
8
|
const E = "/permission-sets", N = {
|
|
9
9
|
async read() {
|
|
10
10
|
return g(await v().get(E));
|
|
@@ -18,8 +18,8 @@ const E = "/permission-sets", N = {
|
|
|
18
18
|
async delete(e) {
|
|
19
19
|
return g(await v().delete(`${E}/${e}`));
|
|
20
20
|
}
|
|
21
|
-
}, ne =
|
|
22
|
-
const { currentBusiness: e } = X(), s =
|
|
21
|
+
}, ne = z("permissionSet", () => {
|
|
22
|
+
const { currentBusiness: e } = X(), s = S([]), r = S(!1), n = S(null);
|
|
23
23
|
async function i() {
|
|
24
24
|
var l;
|
|
25
25
|
const c = ((l = e.value) == null ? void 0 : l._id) ?? null;
|
|
@@ -38,7 +38,7 @@ const E = "/permission-sets", N = {
|
|
|
38
38
|
}
|
|
39
39
|
async function a(c, l) {
|
|
40
40
|
const d = await N.update(c, l);
|
|
41
|
-
s.value = u(s.value.map((
|
|
41
|
+
s.value = u(s.value.map((f) => f.id === c ? d : f));
|
|
42
42
|
}
|
|
43
43
|
async function o(c) {
|
|
44
44
|
await N.delete(c), s.value = u(s.value.filter((l) => l.id !== c));
|
|
@@ -92,30 +92,30 @@ function Q(e) {
|
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
94
|
d.setNames.push(a.name);
|
|
95
|
-
const
|
|
96
|
-
if (!
|
|
95
|
+
const f = D(d.conditions);
|
|
96
|
+
if (!f || !c) {
|
|
97
97
|
d.conditions = void 0;
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
|
-
for (const
|
|
101
|
-
(o = m
|
|
102
|
-
/* @__PURE__ */ new Set([...m
|
|
103
|
-
) : m
|
|
104
|
-
d.conditions = JSON.stringify(
|
|
100
|
+
for (const m in c)
|
|
101
|
+
(o = f[m]) != null && o.$in && (u = c[m]) != null && u.$in ? f[m].$in = Array.from(
|
|
102
|
+
/* @__PURE__ */ new Set([...f[m].$in, ...c[m].$in])
|
|
103
|
+
) : f[m] || (f[m] = c[m]);
|
|
104
|
+
d.conditions = JSON.stringify(f);
|
|
105
105
|
};
|
|
106
106
|
for (const i of e)
|
|
107
107
|
for (const t of i.permissions)
|
|
108
108
|
n(t.inverted ? r : s, t, i);
|
|
109
109
|
return [...Array.from(s.values()), ...Array.from(r.values())];
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function B(e, s) {
|
|
112
112
|
return `${e}::${[...s].sort().join(",")}`;
|
|
113
113
|
}
|
|
114
114
|
function G(e, s) {
|
|
115
115
|
const r = [...e], n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set();
|
|
116
116
|
for (const o of e) {
|
|
117
117
|
const u = O(o.subject);
|
|
118
|
-
n.add(
|
|
118
|
+
n.add(B(u, o.actions)), o.inverted && o.actions.includes("manage") && i.add(`set_${u}`), !o.inverted && o.actions.includes("manage") && t.add(u);
|
|
119
119
|
}
|
|
120
120
|
const a = [...e];
|
|
121
121
|
for (; a.length > 0; ) {
|
|
@@ -125,12 +125,12 @@ function G(e, s) {
|
|
|
125
125
|
const l = ie(o);
|
|
126
126
|
o.source && !o.source.trace && (o.source = { ...o.source, trace: l });
|
|
127
127
|
const d = [...l, `${c.name} (system)`];
|
|
128
|
-
for (const
|
|
129
|
-
const
|
|
130
|
-
n.has(p) || t.has(
|
|
131
|
-
...
|
|
128
|
+
for (const f of c.permissions ?? []) {
|
|
129
|
+
const m = O(f.subject), p = B(m, f.actions);
|
|
130
|
+
n.has(p) || t.has(m) || (n.add(p), r.push({
|
|
131
|
+
...f,
|
|
132
132
|
// FdoPermissionRule.fields is string[] | null; RawRule expects string[] | undefined
|
|
133
|
-
fields:
|
|
133
|
+
fields: f.fields ?? void 0,
|
|
134
134
|
source: {
|
|
135
135
|
type: "systemPermissionSet",
|
|
136
136
|
permissionSetId: c.key,
|
|
@@ -139,9 +139,9 @@ function G(e, s) {
|
|
|
139
139
|
}
|
|
140
140
|
}));
|
|
141
141
|
}
|
|
142
|
-
for (const
|
|
143
|
-
const
|
|
144
|
-
subject:
|
|
142
|
+
for (const f of c.permissionSets ?? []) {
|
|
143
|
+
const m = O(f), p = B(m, ["manage"]), b = {
|
|
144
|
+
subject: m,
|
|
145
145
|
actions: ["manage"],
|
|
146
146
|
source: {
|
|
147
147
|
type: "systemPermissionSet",
|
|
@@ -226,28 +226,28 @@ function _e(e, s) {
|
|
|
226
226
|
JSON.stringify(l) !== JSON.stringify(d) && t.push(c);
|
|
227
227
|
continue;
|
|
228
228
|
}
|
|
229
|
-
const
|
|
230
|
-
(b) => !d[
|
|
229
|
+
const f = Object.keys(l)[0], m = l[f].$in.filter(
|
|
230
|
+
(b) => !d[f].$in.includes(b)
|
|
231
231
|
);
|
|
232
|
-
|
|
233
|
-
(b) => !l[
|
|
232
|
+
m.length > 0 && t.push(r(u, m)), d[f].$in.filter(
|
|
233
|
+
(b) => !l[f].$in.includes(b)
|
|
234
234
|
).length > 0 && t.push(c);
|
|
235
235
|
} else if (!u.conditions && c.conditions)
|
|
236
236
|
t.push(c);
|
|
237
237
|
else if (u.conditions && !c.conditions)
|
|
238
238
|
j(JSON.parse(u.conditions)) || t.push(c);
|
|
239
239
|
else if (!u.conditions && !c.conditions) {
|
|
240
|
-
const l = new Set(u.actions), d = new Set(c.actions),
|
|
241
|
-
if (
|
|
240
|
+
const l = new Set(u.actions), d = new Set(c.actions), f = c.actions.some((p) => !l.has(p)), m = u.actions.filter((p) => !d.has(p));
|
|
241
|
+
if (f) {
|
|
242
242
|
const p = c.actions.filter((b) => !l.has(b));
|
|
243
243
|
t.push({
|
|
244
244
|
...c,
|
|
245
245
|
actions: p
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
|
-
|
|
248
|
+
m.length > 0 && t.push({
|
|
249
249
|
...u,
|
|
250
|
-
actions:
|
|
250
|
+
actions: m,
|
|
251
251
|
inverted: !0
|
|
252
252
|
});
|
|
253
253
|
}
|
|
@@ -271,7 +271,7 @@ function _e(e, s) {
|
|
|
271
271
|
function Ee(e) {
|
|
272
272
|
const s = G(
|
|
273
273
|
e,
|
|
274
|
-
|
|
274
|
+
V
|
|
275
275
|
), r = new Set(
|
|
276
276
|
s.filter((i) => {
|
|
277
277
|
var t;
|
|
@@ -317,13 +317,13 @@ function Ue(e, s) {
|
|
|
317
317
|
if (!l || !d || !le(d, o))
|
|
318
318
|
return a.push(o), a;
|
|
319
319
|
if (l.has("manage")) return a;
|
|
320
|
-
const
|
|
321
|
-
if (
|
|
320
|
+
const f = o.actions;
|
|
321
|
+
if (f.includes("manage"))
|
|
322
322
|
return a.push(o), a;
|
|
323
|
-
const
|
|
323
|
+
const m = new Set(f);
|
|
324
324
|
for (const p of l)
|
|
325
|
-
|
|
326
|
-
return
|
|
325
|
+
m.delete(p);
|
|
326
|
+
return m.size === 0 || a.push({ ...o, actions: Array.from(m) }), a;
|
|
327
327
|
}, []);
|
|
328
328
|
}
|
|
329
329
|
function L(e, s) {
|
|
@@ -339,10 +339,10 @@ function L(e, s) {
|
|
|
339
339
|
r.delete(t.subject);
|
|
340
340
|
continue;
|
|
341
341
|
}
|
|
342
|
-
const l = Object.keys(c)[0], d = ((n = c[l]) == null ? void 0 : n.$in) ?? [],
|
|
343
|
-
|
|
342
|
+
const l = Object.keys(c)[0], d = ((n = c[l]) == null ? void 0 : n.$in) ?? [], m = (((i = u[l]) == null ? void 0 : i.$in) ?? []).filter((p) => !d.includes(p));
|
|
343
|
+
m.length > 0 ? r.set(t.subject, {
|
|
344
344
|
...o,
|
|
345
|
-
conditions: JSON.stringify({ [l]: { $in:
|
|
345
|
+
conditions: JSON.stringify({ [l]: { $in: m } })
|
|
346
346
|
}) : r.delete(t.subject);
|
|
347
347
|
} else
|
|
348
348
|
r.delete(t.subject);
|
|
@@ -407,8 +407,8 @@ const P = "/permission-assignments", I = {
|
|
|
407
407
|
await v().post("/my-permissions/report-manage", { permissionKey: e, label: s })
|
|
408
408
|
);
|
|
409
409
|
}
|
|
410
|
-
},
|
|
411
|
-
const e =
|
|
410
|
+
}, fe = z("permissionAssignment", () => {
|
|
411
|
+
const e = S([]);
|
|
412
412
|
async function s() {
|
|
413
413
|
const o = await I.readAll();
|
|
414
414
|
e.value = o;
|
|
@@ -439,8 +439,8 @@ const P = "/permission-assignments", I = {
|
|
|
439
439
|
deletePermissionAssignment: t,
|
|
440
440
|
getPermissionAssignmentByUserId: a
|
|
441
441
|
};
|
|
442
|
-
}),
|
|
443
|
-
const e =
|
|
442
|
+
}), me = () => {
|
|
443
|
+
const e = fe();
|
|
444
444
|
return {
|
|
445
445
|
...e,
|
|
446
446
|
...K(e)
|
|
@@ -449,16 +449,16 @@ const P = "/permission-assignments", I = {
|
|
|
449
449
|
async fetchReportPermissions(e, s) {
|
|
450
450
|
const r = s ? { lang: s } : {};
|
|
451
451
|
return g(
|
|
452
|
-
await
|
|
452
|
+
await x().get(`/report-query/hrm/${e}/reports`, { params: r })
|
|
453
453
|
);
|
|
454
454
|
},
|
|
455
455
|
async fetchReportPermissionsForPortal(e, s) {
|
|
456
456
|
const r = s ? { isSupportPos: !1, lang: s } : { isSupportPos: !1 };
|
|
457
457
|
return g(
|
|
458
|
-
await
|
|
458
|
+
await x().get(`/report-query/hrm/${e}/reports`, { params: r })
|
|
459
459
|
);
|
|
460
460
|
}
|
|
461
|
-
}, U =
|
|
461
|
+
}, U = S([]), C = S(!1), R = S(!1), $ = S(null), k = S(null), J = S(!1);
|
|
462
462
|
function ge() {
|
|
463
463
|
const e = X();
|
|
464
464
|
async function s() {
|
|
@@ -466,9 +466,9 @@ function ge() {
|
|
|
466
466
|
const n = (t = e.currentBusiness.value) == null ? void 0 : t.id;
|
|
467
467
|
if (!n) return;
|
|
468
468
|
const i = localStorage.getItem("locale");
|
|
469
|
-
if ($.value !== n && (U.value = [], C.value = !1, R.value = !1, $.value = n,
|
|
469
|
+
if ($.value !== n && (U.value = [], C.value = !1, R.value = !1, $.value = n, J.value = !1), !(C.value && k.value === i)) {
|
|
470
470
|
if (R.value) {
|
|
471
|
-
|
|
471
|
+
J.value = !0;
|
|
472
472
|
return;
|
|
473
473
|
}
|
|
474
474
|
R.value = !0;
|
|
@@ -480,39 +480,39 @@ function ge() {
|
|
|
480
480
|
if ($.value !== n) return;
|
|
481
481
|
console.warn("Failed to fetch custom report permissions:", a), U.value = [];
|
|
482
482
|
} finally {
|
|
483
|
-
$.value === n && (R.value = !1,
|
|
483
|
+
$.value === n && (R.value = !1, J.value && (J.value = !1, await s()));
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
const r =
|
|
487
|
+
const r = T(() => U.value.map(
|
|
488
488
|
(n) => n.isDefault ? {
|
|
489
489
|
label: n.name,
|
|
490
490
|
subject: `business::report::reports::${n.permissionKey}`,
|
|
491
|
-
actions: [
|
|
492
|
-
category:
|
|
491
|
+
actions: [h.manage, h.read, h.create],
|
|
492
|
+
category: F.reports
|
|
493
493
|
} : {
|
|
494
494
|
label: n.name,
|
|
495
495
|
subject: `business::report::reports::${n.permissionKey}`,
|
|
496
496
|
actions: [
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
497
|
+
h.manage,
|
|
498
|
+
h.read,
|
|
499
|
+
h.create,
|
|
500
|
+
h.update,
|
|
501
|
+
h.delete
|
|
502
502
|
],
|
|
503
|
-
category:
|
|
503
|
+
category: F.customReports
|
|
504
504
|
}
|
|
505
505
|
));
|
|
506
506
|
return {
|
|
507
507
|
fetchCustomReportPermissions: s,
|
|
508
508
|
customReportPermissions: r,
|
|
509
|
-
isLoading:
|
|
510
|
-
isLoaded:
|
|
509
|
+
isLoading: T(() => R.value),
|
|
510
|
+
isLoaded: T(() => C.value)
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
513
|
function A(e) {
|
|
514
|
-
const s = re(), r =
|
|
515
|
-
(t == null ? void 0 : t.permissionSetIds) ??
|
|
514
|
+
const s = re(), r = me(), n = te().restaurants, { customReportPermissions: i } = ge(), t = r.getPermissionAssignmentByUserId(e.id), a = H(
|
|
515
|
+
(t == null ? void 0 : t.permissionSetIds) ?? [],
|
|
516
516
|
s.permissionSets.value
|
|
517
517
|
), o = Q(a).map(
|
|
518
518
|
({ setNames: p, ...b }) => b
|
|
@@ -521,26 +521,23 @@ function A(e) {
|
|
|
521
521
|
subject: O(p.subject)
|
|
522
522
|
})), l = L(o, c), d = G(
|
|
523
523
|
de(o, c),
|
|
524
|
-
|
|
525
|
-
).filter((p) => !p.inverted),
|
|
524
|
+
V
|
|
525
|
+
).filter((p) => !p.inverted), f = Y(d), m = f ?? n.value.map((p) => p._id);
|
|
526
526
|
return {
|
|
527
527
|
doc: e,
|
|
528
528
|
id: e.id,
|
|
529
|
-
|
|
530
|
-
name: e.status === "invited" ? e.name || "-" : e.name && e.name !== e.email && e.name !== e.phoneNumber ? e.name : "-",
|
|
529
|
+
name: e.name && e.name !== e.email && e.name !== e.phoneNumber ? e.name : "-",
|
|
531
530
|
phoneNumber: e.phoneNumber,
|
|
532
531
|
email: e.email,
|
|
533
532
|
restaurants: W(
|
|
534
|
-
|
|
533
|
+
m.map((p) => {
|
|
535
534
|
var b;
|
|
536
535
|
return ((b = n.value.find((Z) => Z._id === p)) == null ? void 0 : b.profile.name) ?? "";
|
|
537
536
|
})
|
|
538
537
|
),
|
|
539
|
-
managableRestaurantIds:
|
|
540
|
-
permissionLabels:
|
|
541
|
-
permissions: l
|
|
542
|
-
status: e.status ?? "active",
|
|
543
|
-
loginMethod: e.loginMethod ?? "feedme"
|
|
538
|
+
managableRestaurantIds: f,
|
|
539
|
+
permissionLabels: he(d, i.value),
|
|
540
|
+
permissions: l
|
|
544
541
|
};
|
|
545
542
|
}
|
|
546
543
|
const ve = Object.freeze(
|
|
@@ -552,7 +549,7 @@ const ve = Object.freeze(
|
|
|
552
549
|
).map(A);
|
|
553
550
|
},
|
|
554
551
|
async readTeamMembersPage(e) {
|
|
555
|
-
var r, n, i
|
|
552
|
+
var r, n, i;
|
|
556
553
|
const s = g(
|
|
557
554
|
await v().get("/portal-users/paged", {
|
|
558
555
|
params: {
|
|
@@ -561,9 +558,7 @@ const ve = Object.freeze(
|
|
|
561
558
|
search: e.search,
|
|
562
559
|
restaurantIds: (r = e.restaurantIds) != null && r.length ? e.restaurantIds : void 0,
|
|
563
560
|
permissionSubjects: (n = e.permissionSubjects) != null && n.length ? e.permissionSubjects : void 0,
|
|
564
|
-
permissionSetIds: (i = e.permissionSetIds) != null && i.length ? e.permissionSetIds : void 0
|
|
565
|
-
statuses: (t = e.statuses) != null && t.length ? e.statuses : void 0,
|
|
566
|
-
loginMethods: (a = e.loginMethods) != null && a.length ? e.loginMethods : void 0
|
|
561
|
+
permissionSetIds: (i = e.permissionSetIds) != null && i.length ? e.permissionSetIds : void 0
|
|
567
562
|
}
|
|
568
563
|
})
|
|
569
564
|
);
|
|
@@ -602,9 +597,9 @@ const ve = Object.freeze(
|
|
|
602
597
|
)}`;
|
|
603
598
|
}
|
|
604
599
|
};
|
|
605
|
-
function
|
|
600
|
+
function Je(e, s, r) {
|
|
606
601
|
if (e.some((a) => a.subject === "all")) return "All";
|
|
607
|
-
const n = (r ??
|
|
602
|
+
const n = (r ?? M).filter(
|
|
608
603
|
(a) => a.subject === s
|
|
609
604
|
), i = new Set(n.map((a) => w(a).value)), t = e.filter((a) => a.subject === s).filter((a) => i.has(w(a).value));
|
|
610
605
|
return t.length === n.length ? "All" : t.length === 0 ? "-" : `${t.length} permission allow`;
|
|
@@ -665,7 +660,7 @@ function w(e) {
|
|
|
665
660
|
}
|
|
666
661
|
};
|
|
667
662
|
}
|
|
668
|
-
function
|
|
663
|
+
function Te(e) {
|
|
669
664
|
var n, i;
|
|
670
665
|
const s = e.map((t) => w(t)).find((t) => t.isDiscountOperation);
|
|
671
666
|
if (!s) return 100;
|
|
@@ -678,10 +673,10 @@ function Y(e) {
|
|
|
678
673
|
);
|
|
679
674
|
return s ? s.conditions ? JSON.parse(s.conditions).restaurantId.$in : null : [];
|
|
680
675
|
}
|
|
681
|
-
function
|
|
676
|
+
function Be(e, s) {
|
|
682
677
|
return s.isOwner ? { restaurantIds: null, roleIds: null } : { restaurantIds: Y(e), roleIds: be(e) };
|
|
683
678
|
}
|
|
684
|
-
function
|
|
679
|
+
function Me(e) {
|
|
685
680
|
return (e == null ? void 0 : e.some((s) => s.subject === "all")) ?? !1;
|
|
686
681
|
}
|
|
687
682
|
function be(e) {
|
|
@@ -696,7 +691,7 @@ function Le(e) {
|
|
|
696
691
|
}
|
|
697
692
|
function Fe(e, s, r) {
|
|
698
693
|
return e.flatMap((n) => {
|
|
699
|
-
const i =
|
|
694
|
+
const i = Se(n);
|
|
700
695
|
if (!i) return [];
|
|
701
696
|
const t = i.isReportPermission ? r == null ? void 0 : r.get(n) : void 0;
|
|
702
697
|
return [
|
|
@@ -712,11 +707,11 @@ function Fe(e, s, r) {
|
|
|
712
707
|
];
|
|
713
708
|
});
|
|
714
709
|
}
|
|
715
|
-
function
|
|
710
|
+
function Se(e) {
|
|
716
711
|
const s = e.indexOf(":"), r = s === -1 ? e : e.slice(0, s), n = s === -1 ? void 0 : e.slice(s + 1);
|
|
717
712
|
if (s !== -1 && !n) return;
|
|
718
713
|
let i;
|
|
719
|
-
return n ? (i =
|
|
714
|
+
return n ? (i = M.find((t) => {
|
|
720
715
|
if (t.subject !== r) return !1;
|
|
721
716
|
const a = typeof t.conditions == "string" ? JSON.parse(t.conditions) : t.conditions;
|
|
722
717
|
return [a == null ? void 0 : a.operation, a == null ? void 0 : a.name].includes(n);
|
|
@@ -727,7 +722,7 @@ function he(e) {
|
|
|
727
722
|
conditions: { name: n },
|
|
728
723
|
inverted: !1,
|
|
729
724
|
reason: ""
|
|
730
|
-
})) : i =
|
|
725
|
+
})) : i = M.find((t) => t.subject === r), i ? w(i) : void 0;
|
|
731
726
|
}
|
|
732
727
|
function xe(e, s) {
|
|
733
728
|
const r = { values: [], passthrough: [], dropped: [] };
|
|
@@ -742,7 +737,7 @@ function xe(e, s) {
|
|
|
742
737
|
}
|
|
743
738
|
return r;
|
|
744
739
|
}
|
|
745
|
-
function
|
|
740
|
+
function he(e, s = []) {
|
|
746
741
|
return W(
|
|
747
742
|
e.reduce((r, n) => {
|
|
748
743
|
const i = ve.find(
|
|
@@ -760,28 +755,28 @@ export {
|
|
|
760
755
|
G as N,
|
|
761
756
|
Q as P,
|
|
762
757
|
pe as R,
|
|
763
|
-
|
|
758
|
+
Je as a,
|
|
764
759
|
de as b,
|
|
765
760
|
H as c,
|
|
766
761
|
ge as d,
|
|
767
762
|
Le as e,
|
|
768
763
|
Fe as f,
|
|
769
|
-
|
|
770
|
-
|
|
764
|
+
Te as g,
|
|
765
|
+
Me as h,
|
|
771
766
|
oe as i,
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
767
|
+
Be as j,
|
|
768
|
+
Ee as k,
|
|
769
|
+
_e as l,
|
|
775
770
|
Ae as m,
|
|
776
|
-
|
|
777
|
-
|
|
771
|
+
Ne as n,
|
|
772
|
+
Ue as o,
|
|
778
773
|
ve as p,
|
|
779
|
-
|
|
774
|
+
me as q,
|
|
780
775
|
w as r,
|
|
781
776
|
xe as s,
|
|
782
777
|
Ce as t,
|
|
783
778
|
re as u,
|
|
784
|
-
|
|
779
|
+
he as v,
|
|
785
780
|
Oe as w,
|
|
786
781
|
Y as x,
|
|
787
782
|
be as y
|
|
@@ -12,6 +12,8 @@ declare const AuditLogAPI: {
|
|
|
12
12
|
search?: string;
|
|
13
13
|
searchUserIds?: string[];
|
|
14
14
|
searchSubjects?: string[];
|
|
15
|
+
sources?: string[];
|
|
16
|
+
restaurantIds?: string[];
|
|
15
17
|
}): Promise<number>;
|
|
16
18
|
read(params?: {
|
|
17
19
|
limit?: number;
|
|
@@ -27,6 +29,8 @@ declare const AuditLogAPI: {
|
|
|
27
29
|
search?: string;
|
|
28
30
|
searchUserIds?: string[];
|
|
29
31
|
searchSubjects?: string[];
|
|
32
|
+
sources?: string[];
|
|
33
|
+
restaurantIds?: string[];
|
|
30
34
|
}): Promise<AuditLogEntry[]>;
|
|
31
35
|
/**
|
|
32
36
|
* FeedMe-admin options for the User filter. `actors` is the named admin list (internal
|
|
@@ -7,8 +7,8 @@ export interface IGeneratePasscodeParams {
|
|
|
7
7
|
declare const EmployeeAPI: {
|
|
8
8
|
readEmployees(): Promise<IFdtoPosUser[]>;
|
|
9
9
|
readEmployeesPage(query: IReadEmployeesPageReq): Promise<IFdtoEmployeePage>;
|
|
10
|
-
createEmployee(dto: FdtoUpdatePosUserReq): Promise<
|
|
11
|
-
createMasterEmployee(dto: FdtoUpdatePosMasterUserReq): Promise<
|
|
10
|
+
createEmployee(dto: FdtoUpdatePosUserReq): Promise<string>;
|
|
11
|
+
createMasterEmployee(dto: FdtoUpdatePosMasterUserReq): Promise<string>;
|
|
12
12
|
migrateToMasterEmployee(employeeId: string, dto: FdtoUpdatePosMasterUserReq): Promise<void>;
|
|
13
13
|
updateEmployee(employeeId: string, dto: FdtoUpdatePosUserReq): Promise<void>;
|
|
14
14
|
updateMasterEmployee(employeeId: string, dto: FdtoUpdatePosMasterUserReq): Promise<void>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { HrmRestaurant } from '@/types/restaurant';
|
|
2
|
+
import type { FdtoScheduleDayOperatingHours } from '@feedmepos/hrm-schedule-contract';
|
|
2
3
|
declare const RestaurantAPI: {
|
|
3
4
|
readRestaurants(): Promise<HrmRestaurant[]>;
|
|
5
|
+
saveOperationalHours(restaurantId: string, operatingHours: FdtoScheduleDayOperatingHours[]): Promise<void>;
|
|
4
6
|
};
|
|
5
7
|
export default RestaurantAPI;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { FdtoScheduleAssignment, FdtoScheduleAutoScheduleApplyReq, FdtoScheduleAutoScheduleApplyResult, FdtoScheduleAutoScheduleCapabilities, FdtoScheduleAutoScheduleGenerateReq, FdtoScheduleAutoScheduleResult, FdtoScheduleBoard, FdtoScheduleBulkUpdateAssignmentStatusReq, FdtoScheduleBulkSaveAssignmentsReq, FdtoScheduleBulkSaveAssignmentsResult, FdtoScheduleBulkReplaceDemandReq, FdtoScheduleClearScheduleReq, FdtoScheduleCopyScheduleReq, FdtoScheduleCreateEmployeeProfileReq, FdtoScheduleEmployeeConfig, FdtoScheduleDemand, FdtoScheduleEmployee, FdtoSchedulePosition, FdtoScheduleSaveAssignmentReq, FdtoScheduleSaveDemandReq, FdtoScheduleSaveEmployeeConfigsReq, FdtoScheduleSavePositionReq, FdtoScheduleSaveScheduleDayReq, FdtoScheduleSaveSettingsReq, FdtoScheduleReplaceDemandReq, FdtoScheduleSettings, FdtoScheduleScheduleDay, FdtoScheduleUpdateEmployeeProfileReq, FdtoScheduleCompleteOnboardingReq, FdtoScheduleValidatePosAccessReq, FdtoScheduleCreateTimeOffReq, FdtoScheduleTimeOff, FdtoScheduleUpdateTimeOffStatusReq } from '@/types/schedule';
|
|
2
|
+
declare const ScheduleAPI: {
|
|
3
|
+
completeOnboarding(restaurantId: string, req: FdtoScheduleCompleteOnboardingReq): Promise<any>;
|
|
4
|
+
listEmployeeProfiles(employeeIds?: string[]): Promise<FdtoScheduleEmployee[]>;
|
|
5
|
+
listEmployeeConfigs(restaurantId: string): Promise<FdtoScheduleEmployeeConfig[]>;
|
|
6
|
+
saveEmployeeConfigs(restaurantId: string, req: FdtoScheduleSaveEmployeeConfigsReq): Promise<FdtoScheduleEmployeeConfig[]>;
|
|
7
|
+
getSettings(restaurantId: string): Promise<FdtoScheduleSettings>;
|
|
8
|
+
saveSettings(restaurantId: string, req: FdtoScheduleSaveSettingsReq): Promise<FdtoScheduleSettings>;
|
|
9
|
+
generateAutoSchedule(restaurantId: string, req: FdtoScheduleAutoScheduleGenerateReq): Promise<FdtoScheduleAutoScheduleResult>;
|
|
10
|
+
getAutoScheduleCapabilities(restaurantId: string): Promise<FdtoScheduleAutoScheduleCapabilities>;
|
|
11
|
+
applyAutoSchedule(restaurantId: string, req: FdtoScheduleAutoScheduleApplyReq): Promise<FdtoScheduleAutoScheduleApplyResult>;
|
|
12
|
+
/** One outlet's whole board over `[from, to]` (inclusive, 'YYYY-MM-DD'). */
|
|
13
|
+
readBoard(restaurantId: string, from: string, to: string): Promise<FdtoScheduleBoard>;
|
|
14
|
+
createTimeOff(restaurantId: string, req: FdtoScheduleCreateTimeOffReq): Promise<FdtoScheduleTimeOff>;
|
|
15
|
+
updateTimeOffStatus(restaurantId: string, id: string, req: FdtoScheduleUpdateTimeOffStatusReq): Promise<FdtoScheduleTimeOff | null>;
|
|
16
|
+
deleteTimeOff(restaurantId: string, id: string): Promise<void>;
|
|
17
|
+
/** Creates or updates the employee's shared business-level scheduling profile. */
|
|
18
|
+
createEmployeeProfile(_restaurantId: string, req: FdtoScheduleCreateEmployeeProfileReq): Promise<FdtoScheduleEmployee>;
|
|
19
|
+
/** Edits the employee's shared business-level scheduling profile. */
|
|
20
|
+
updateEmployeeProfile(_restaurantId: string, employeeId: string, req: FdtoScheduleUpdateEmployeeProfileReq): Promise<FdtoScheduleEmployee>;
|
|
21
|
+
validatePosAccess(req: FdtoScheduleValidatePosAccessReq): Promise<void>;
|
|
22
|
+
/** Positions are shared across the business. */
|
|
23
|
+
createPosition(req: FdtoScheduleSavePositionReq): Promise<FdtoSchedulePosition>;
|
|
24
|
+
updatePosition(id: string, req: FdtoScheduleSavePositionReq): Promise<FdtoSchedulePosition>;
|
|
25
|
+
/** Deleting one position is `deletePositions` with a single-id array — the backend's
|
|
26
|
+
* `DELETE positions/:id` route is gone; this is now `DELETE positions?ids=`. */
|
|
27
|
+
deletePosition(id: string): Promise<void>;
|
|
28
|
+
/** Creates one flat demand interval. */
|
|
29
|
+
createDemand(restaurantId: string, req: FdtoScheduleSaveDemandReq): Promise<FdtoScheduleDemand>;
|
|
30
|
+
/** Deletes a batch of demands in one request — e.g. `saveDemand` replacing a whole
|
|
31
|
+
* day/weekday's demand rows wholesale. Deleting one demand is just this with a single-id
|
|
32
|
+
* array. */
|
|
33
|
+
deleteDemands(restaurantId: string, ids: string[]): Promise<{
|
|
34
|
+
ok: true;
|
|
35
|
+
deletedCount: number;
|
|
36
|
+
}>;
|
|
37
|
+
/** Atomically replaces one date/weekday's flattened demand rows. */
|
|
38
|
+
replaceDemands(restaurantId: string, req: FdtoScheduleReplaceDemandReq): Promise<FdtoScheduleDemand[]>;
|
|
39
|
+
/** Atomically replaces several date/weekday demand generations. */
|
|
40
|
+
bulkReplaceDemands(restaurantId: string, req: FdtoScheduleBulkReplaceDemandReq): Promise<FdtoScheduleDemand[]>;
|
|
41
|
+
/** Replaces one date's note/holiday-mark. All three fields back to empty/false clears it. */
|
|
42
|
+
saveScheduleDay(restaurantId: string, date: string, req: FdtoScheduleSaveScheduleDayReq): Promise<FdtoScheduleScheduleDay | null>;
|
|
43
|
+
/** A one-off shift assignment. */
|
|
44
|
+
createAssignment(restaurantId: string, req: FdtoScheduleSaveAssignmentReq): Promise<FdtoScheduleAssignment>;
|
|
45
|
+
updateAssignment(restaurantId: string, id: string, req: FdtoScheduleSaveAssignmentReq): Promise<FdtoScheduleAssignment | null>;
|
|
46
|
+
/** Atomically applies assignment updates, creates, and deletes used by moves and swaps. */
|
|
47
|
+
bulkSaveAssignments(restaurantId: string, req: FdtoScheduleBulkSaveAssignmentsReq): Promise<FdtoScheduleBulkSaveAssignmentsResult>;
|
|
48
|
+
/** Replaces demand and/or assignments in one backend transaction. */
|
|
49
|
+
copySchedule(restaurantId: string, req: FdtoScheduleCopyScheduleReq): Promise<any>;
|
|
50
|
+
/** Clears demand and/or assignments in one backend transaction. */
|
|
51
|
+
clearSchedule(restaurantId: string, req: FdtoScheduleClearScheduleReq): Promise<any>;
|
|
52
|
+
/** Deletes a batch of assignments in one request — e.g. a shift split into several segments
|
|
53
|
+
* getting replaced wholesale. Deleting one assignment is just this with a single-id
|
|
54
|
+
* array. */
|
|
55
|
+
deleteAssignments(restaurantId: string, ids: string[]): Promise<{
|
|
56
|
+
ok: true;
|
|
57
|
+
deletedCount: number;
|
|
58
|
+
}>;
|
|
59
|
+
/** Removes all assignments for an employee from the inclusive removal date onward. */
|
|
60
|
+
deleteEmployeeFutureAssignments(restaurantId: string, employeeId: string, from: string): Promise<{
|
|
61
|
+
ok: true;
|
|
62
|
+
deletedCount: number;
|
|
63
|
+
}>;
|
|
64
|
+
/** Flips a batch of assignments to one status in a single request — e.g. Publish sending
|
|
65
|
+
* every DRAFT shift on the board to PUBLISHED at once. */
|
|
66
|
+
bulkUpdateAssignmentStatus(restaurantId: string, req: FdtoScheduleBulkUpdateAssignmentStatusReq): Promise<FdtoScheduleAssignment[]>;
|
|
67
|
+
};
|
|
68
|
+
export default ScheduleAPI;
|
|
@@ -12,7 +12,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
12
12
|
default: undefined;
|
|
13
13
|
};
|
|
14
14
|
required: {
|
|
15
|
-
type: (
|
|
15
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
16
16
|
default: boolean;
|
|
17
17
|
};
|
|
18
18
|
inline: {
|
|
@@ -25,7 +25,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
25
25
|
default: undefined;
|
|
26
26
|
};
|
|
27
27
|
required: {
|
|
28
|
-
type: (
|
|
28
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
29
29
|
default: boolean;
|
|
30
30
|
};
|
|
31
31
|
inline: {
|
|
@@ -44,7 +44,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
44
44
|
required: true;
|
|
45
45
|
};
|
|
46
46
|
showAllToggle: {
|
|
47
|
-
type: (
|
|
47
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
48
48
|
default: boolean;
|
|
49
49
|
};
|
|
50
50
|
includeDisabledOptionsWhenSelectAll: {
|
|
@@ -99,7 +99,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
99
99
|
required: true;
|
|
100
100
|
};
|
|
101
101
|
showAllToggle: {
|
|
102
|
-
type: (
|
|
102
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
103
103
|
default: boolean;
|
|
104
104
|
};
|
|
105
105
|
includeDisabledOptionsWhenSelectAll: {
|
|
@@ -2,25 +2,17 @@ interface Props {
|
|
|
2
2
|
title?: string;
|
|
3
3
|
subtitle?: string;
|
|
4
4
|
initiallyCollapsed?: boolean;
|
|
5
|
-
/**
|
|
6
|
-
* 'trailing': toggle on the right, subtitle beside the title while collapsed.
|
|
7
|
-
* 'leading': chevron before the title, subtitle always under it (member sheet cards).
|
|
8
|
-
*/
|
|
9
|
-
layout?: 'trailing' | 'leading';
|
|
10
5
|
}
|
|
11
|
-
declare var
|
|
6
|
+
declare var __VLS_1: {}, __VLS_7: {};
|
|
12
7
|
type __VLS_Slots = {} & {
|
|
13
|
-
title?: (props: typeof
|
|
8
|
+
title?: (props: typeof __VLS_1) => any;
|
|
14
9
|
} & {
|
|
15
|
-
|
|
16
|
-
} & {
|
|
17
|
-
default?: (props: typeof __VLS_13) => any;
|
|
10
|
+
default?: (props: typeof __VLS_7) => any;
|
|
18
11
|
};
|
|
19
12
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
20
13
|
title: string;
|
|
21
14
|
subtitle: string;
|
|
22
15
|
initiallyCollapsed: boolean;
|
|
23
|
-
layout: "trailing" | "leading";
|
|
24
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
17
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
26
18
|
export default _default;
|