@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,5 +1,5 @@
|
|
|
1
|
-
import { createElementBlock as r, openBlock as c, createElementVNode as o, ref as m, computed as f, defineComponent as p, renderSlot as
|
|
2
|
-
import {
|
|
1
|
+
import { createElementBlock as r, openBlock as c, createElementVNode as o, ref as m, computed as f, defineComponent as p, renderSlot as l, createCommentVNode as _, toDisplayString as i } from "vue";
|
|
2
|
+
import { a as y } from "./app-D-MUq9Ab.js";
|
|
3
3
|
const h = {};
|
|
4
4
|
function v(t, e) {
|
|
5
5
|
return c(), r("div", null, [...e[0] || (e[0] = [
|
|
@@ -11,9 +11,9 @@ const C = /* @__PURE__ */ y(h, [["render", v]]), V = (t) => {
|
|
|
11
11
|
function s(n) {
|
|
12
12
|
return `${n}`.trim().toLowerCase();
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const a = f(() => s(e.value));
|
|
15
15
|
function d(n) {
|
|
16
|
-
return
|
|
16
|
+
return a.value ? n.some((u) => s(u).includes(a.value)) : !0;
|
|
17
17
|
}
|
|
18
18
|
return { searchKey: e, filter: d };
|
|
19
19
|
}, b = { class: "space-y-8" }, x = { class: "flex items-center justify-between" }, S = { class: "space-y-8" }, g = { class: "fm-typo-en-body-lg-600" }, $ = {
|
|
@@ -32,9 +32,9 @@ const C = /* @__PURE__ */ y(h, [["render", v]]), V = (t) => {
|
|
|
32
32
|
o("p", g, i(t.label), 1),
|
|
33
33
|
t.description ? (c(), r("p", $, i(t.description), 1)) : _("", !0)
|
|
34
34
|
]),
|
|
35
|
-
|
|
35
|
+
l(e.$slots, "append")
|
|
36
36
|
]),
|
|
37
|
-
|
|
37
|
+
l(e.$slots, "default")
|
|
38
38
|
]));
|
|
39
39
|
}
|
|
40
40
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as X, ref as S, computed as f, watch as ue, resolveComponent as v, createElementBlock as D, openBlock as w, Fragment as E, renderSlot as de, createVNode as l, unref as s, withCtx as g, createElementVNode as o, toDisplayString as _, isRef as H, renderList as me, createBlock as pe, createCommentVNode as fe, withModifiers as W, createTextVNode as J, normalizeClass as ve, h as p } from "vue";
|
|
2
|
-
import { d as ge } from "./dayjs.min-
|
|
2
|
+
import { d as ge } from "./dayjs.min-BZ1pM-6M.js";
|
|
3
3
|
import { useI18n as Z } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as ee, components as K, useDialog as _e, useBreakpoints as ye, FmButtonVariant as O } from "@feedmepos/ui-library";
|
|
5
|
-
import { S as A } from "./SelectFilter-
|
|
6
|
-
import { _ as he } from "./app-
|
|
7
|
-
import { _ as Q, u as Ue, H as xe } from "./FormItem.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { S as A } from "./SelectFilter-BXeVKgHN.js";
|
|
6
|
+
import { _ as he } from "./app-D-MUq9Ab.js";
|
|
7
|
+
import { _ as Q, u as Ue, H as xe } from "./FormItem.vue_vue_type_script_setup_true_lang-cLEnrtC6.js";
|
|
8
8
|
import { _ as be } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
|
-
import { u as te } from "./useLoading-
|
|
10
|
-
import { u as ae } from "./grant-user-
|
|
11
|
-
import { u as se } from "./restaurant-
|
|
12
|
-
import { u as re } from "./role-
|
|
9
|
+
import { u as te } from "./useLoading-Nygx2zn8.js";
|
|
10
|
+
import { u as ae } from "./grant-user-CBJ3gEgW.js";
|
|
11
|
+
import { u as se } from "./restaurant-D2mfKHaH.js";
|
|
12
|
+
import { u as re } from "./role-JDoDFVd9.js";
|
|
13
13
|
import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
14
14
|
const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, we = { class: "flex gap-8 items-center justify-start" }, Se = /* @__PURE__ */ X({
|
|
15
15
|
__name: "GrantUserForm",
|
|
@@ -4,11 +4,11 @@ import { useI18n as E, useCoreStore as $ } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as z } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
6
6
|
import { _ as M } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
|
-
import { u as j } from "./restaurant-
|
|
8
|
-
import { u as H } from "./role-
|
|
9
|
-
import { u as J } from "./grant-user-
|
|
10
|
-
import { u as K } from "./approval-code-
|
|
11
|
-
import { R as n } from "./app-
|
|
7
|
+
import { u as j } from "./restaurant-D2mfKHaH.js";
|
|
8
|
+
import { u as H } from "./role-JDoDFVd9.js";
|
|
9
|
+
import { u as J } from "./grant-user-CBJ3gEgW.js";
|
|
10
|
+
import { u as K } from "./approval-code-BXUiojPH.js";
|
|
11
|
+
import { R as n } from "./app-D-MUq9Ab.js";
|
|
12
12
|
const Q = { class: "space-y-24" }, ue = /* @__PURE__ */ D({
|
|
13
13
|
__name: "Main",
|
|
14
14
|
setup(W) {
|
|
@@ -4,19 +4,19 @@ import { useCoreStore as uf, useI18n as vf } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useSnackbar as pf } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as df } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
6
6
|
import { _ as mf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
|
-
import { u as gf } from "./restaurant-
|
|
8
|
-
import { u as _f } from "./role-
|
|
7
|
+
import { u as gf } from "./restaurant-D2mfKHaH.js";
|
|
8
|
+
import { u as _f } from "./role-JDoDFVd9.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import "./employee-
|
|
11
|
-
import "./lodash-
|
|
12
|
-
import "./useAppStore-
|
|
13
|
-
import "./iteration-
|
|
10
|
+
import "./employee-HQEU8fjb.js";
|
|
11
|
+
import "./lodash-Def4gaas.js";
|
|
12
|
+
import "./useAppStore-DZCdxlCd.js";
|
|
13
|
+
import "./iteration-ogxW2-Tv.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { R as pt } from "./app-
|
|
16
|
-
import "./rule-
|
|
17
|
-
import "./useReportPermissions-
|
|
18
|
-
import "./dayjs.min-
|
|
19
|
-
import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-
|
|
15
|
+
import { R as pt } from "./app-D-MUq9Ab.js";
|
|
16
|
+
import "./rule-DPtqlnz-.js";
|
|
17
|
+
import "./useReportPermissions-CxV7Dz1B.js";
|
|
18
|
+
import "./dayjs.min-BZ1pM-6M.js";
|
|
19
|
+
import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-D0zAVqCa.js";
|
|
20
20
|
var Nn = {};
|
|
21
21
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
22
22
|
var qt = {};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { defineComponent as M, ref as R, computed as s, resolveComponent as i, createBlock as c, openBlock as p, withCtx as l, createElementVNode as S, createVNode as d, resolveDynamicComponent as g, createCommentVNode as y, createTextVNode as A, toDisplayString as C } from "vue";
|
|
2
|
+
import { useRouter as N, useRoute as h } from "vue-router";
|
|
3
|
+
import { useI18n as k } from "@feedmepos/mf-common";
|
|
4
|
+
import { _ as x } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
5
|
+
import { _ as F } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
|
+
import { u as w } from "./restaurant-D2mfKHaH.js";
|
|
7
|
+
import "@feedmepos/ui-library";
|
|
8
|
+
import "./rule-DPtqlnz-.js";
|
|
9
|
+
import "./lodash-Def4gaas.js";
|
|
10
|
+
import "./iteration-ogxW2-Tv.js";
|
|
11
|
+
import "./useAppStore-DZCdxlCd.js";
|
|
12
|
+
import { R as v } from "./app-D-MUq9Ab.js";
|
|
13
|
+
import "./role-JDoDFVd9.js";
|
|
14
|
+
/* empty css */
|
|
15
|
+
import "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js";
|
|
16
|
+
const $ = { class: "space-y-24" }, Z = /* @__PURE__ */ M({
|
|
17
|
+
__name: "Main",
|
|
18
|
+
setup(q) {
|
|
19
|
+
const { t: o } = k(), b = N(), B = h(), { readRestaurants: T } = w(), _ = R(), f = R(), a = s({
|
|
20
|
+
get: () => B.name === v.TEAM_ROLE ? "role" : "member",
|
|
21
|
+
set: (e) => {
|
|
22
|
+
b.push({
|
|
23
|
+
name: e === "role" ? v.TEAM_ROLE : v.TEAM_MEMBER,
|
|
24
|
+
query: b.currentRoute.value.query
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
T();
|
|
29
|
+
const r = s(() => u.value.find((e) => e.value === a.value) || u.value[0]), u = s(() => [
|
|
30
|
+
{
|
|
31
|
+
label: o("team.title"),
|
|
32
|
+
subTitle: o("team.subtitle"),
|
|
33
|
+
value: "member",
|
|
34
|
+
createButtonLabel: o("team.actions.addMember"),
|
|
35
|
+
createButtonAction: () => {
|
|
36
|
+
var e;
|
|
37
|
+
(e = _.value) == null || e.create();
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: o("permissionSet.title"),
|
|
42
|
+
value: "role",
|
|
43
|
+
createButtonLabel: o("permissionSet.createButtonLabel"),
|
|
44
|
+
createButtonAction: () => {
|
|
45
|
+
var e;
|
|
46
|
+
(e = f.value) == null || e.create();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]);
|
|
50
|
+
return (e, n) => {
|
|
51
|
+
const L = i("FmSpacer"), V = i("FmTabs"), E = i("RouterView");
|
|
52
|
+
return p(), c(F, {
|
|
53
|
+
heading: r.value.label
|
|
54
|
+
}, {
|
|
55
|
+
"sub-heading": l(() => [
|
|
56
|
+
A(C(r.value.subTitle), 1)
|
|
57
|
+
]),
|
|
58
|
+
"append-heading": l(() => {
|
|
59
|
+
var t;
|
|
60
|
+
return [
|
|
61
|
+
d(L),
|
|
62
|
+
(t = r.value) != null && t.createButtonLabel ? (p(), c(x, {
|
|
63
|
+
key: 0,
|
|
64
|
+
icon: "add",
|
|
65
|
+
label: r.value.createButtonLabel,
|
|
66
|
+
onClick: n[0] || (n[0] = (m) => r.value.createButtonAction())
|
|
67
|
+
}, null, 8, ["label"])) : y("", !0)
|
|
68
|
+
];
|
|
69
|
+
}),
|
|
70
|
+
default: l(() => [
|
|
71
|
+
S("div", $, [
|
|
72
|
+
d(V, {
|
|
73
|
+
modelValue: a.value,
|
|
74
|
+
"onUpdate:modelValue": n[1] || (n[1] = (t) => a.value = t),
|
|
75
|
+
items: u.value
|
|
76
|
+
}, null, 8, ["modelValue", "items"]),
|
|
77
|
+
d(E, null, {
|
|
78
|
+
default: l(({ Component: t }) => [
|
|
79
|
+
(p(), c(g(t), {
|
|
80
|
+
ref: (m) => {
|
|
81
|
+
a.value === "member" && (_.value = m), a.value === "role" && (f.value = m);
|
|
82
|
+
}
|
|
83
|
+
}, null, 512))
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
})
|
|
87
|
+
])
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["heading"]);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
export {
|
|
95
|
+
Z as default
|
|
96
|
+
};
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { defineComponent as I, createElementBlock as u, openBlock as m, normalizeStyle as P, computed as x, resolveComponent as k, createElementVNode as r, createVNode as p, toDisplayString as _, Fragment as L, renderList as S, createCommentVNode as $, withKeys as F, withModifiers as V, normalizeClass as j } from "vue";
|
|
2
|
+
const ee = /* @__PURE__ */ I({
|
|
3
|
+
__name: "Skeleton",
|
|
4
|
+
props: {
|
|
5
|
+
width: { default: "160px" }
|
|
6
|
+
},
|
|
7
|
+
setup(e) {
|
|
8
|
+
return (a, t) => (m(), u("div", {
|
|
9
|
+
class: "h-16 animate-pulse rounded bg-fm-color-neutral-gray-200",
|
|
10
|
+
style: P({ width: e.width })
|
|
11
|
+
}, null, 4));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
function B(e) {
|
|
15
|
+
return e.map((a) => a.restaurantId).filter(Boolean);
|
|
16
|
+
}
|
|
17
|
+
function w(e, a, t) {
|
|
18
|
+
const o = B(a);
|
|
19
|
+
return e.filter((l) => l.managable || l._id === t).map((l) => ({
|
|
20
|
+
label: `${l.profile.code ? `${l.profile.code} - ` : ""}${l.profile.name}`,
|
|
21
|
+
value: l._id,
|
|
22
|
+
disabled: o.includes(l._id) && l._id !== t
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
function C(e, a, t, o) {
|
|
26
|
+
return a ? e.filter((l) => l.restaurants.some((s) => s.id == a)).map((l) => ({
|
|
27
|
+
label: l.name,
|
|
28
|
+
value: l._id,
|
|
29
|
+
disabled: !o.isRoleUsable(l, a) && l._id !== t
|
|
30
|
+
})) : [];
|
|
31
|
+
}
|
|
32
|
+
function K(e, a, t, o) {
|
|
33
|
+
var s, c;
|
|
34
|
+
const l = C(e, a, t, o);
|
|
35
|
+
return ((s = l.find((n) => n.value === t && !n.disabled)) == null ? void 0 : s.value) ?? ((c = l.find((n) => !n.disabled)) == null ? void 0 : c.value) ?? "";
|
|
36
|
+
}
|
|
37
|
+
function N(e, a) {
|
|
38
|
+
const t = B(a), o = e.some(
|
|
39
|
+
(s) => s.managable && !t.includes(s._id)
|
|
40
|
+
), l = a.every((s) => s.restaurantId && s.roleId);
|
|
41
|
+
return o && l;
|
|
42
|
+
}
|
|
43
|
+
function E(e, a, t, o) {
|
|
44
|
+
var s;
|
|
45
|
+
const l = ((s = e[a]) == null ? void 0 : s.restaurantId) ?? "";
|
|
46
|
+
return o.isRestaurantLocked(l) ? e : e.length === 1 ? [t()] : e.filter((c, n) => n !== a);
|
|
47
|
+
}
|
|
48
|
+
const M = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 space-y-16" }, D = { class: "fm-typo-en-title-sm-600" }, G = { class: "space-y-16" }, q = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, H = { class: "text-sm font-semibold text-fm-color-typo-primary" }, J = { class: "text-sm font-semibold text-fm-color-typo-primary" }, Q = { class: "flex justify-self-end" }, T = ["tabindex", "aria-disabled", "aria-label", "onClick", "onKeydown"], te = /* @__PURE__ */ I({
|
|
49
|
+
__name: "OutletRoleAssignment",
|
|
50
|
+
props: {
|
|
51
|
+
modelValue: {},
|
|
52
|
+
restaurants: {},
|
|
53
|
+
roles: {},
|
|
54
|
+
isRoleUsable: {},
|
|
55
|
+
isRestaurantLocked: { type: Function, default: () => !1 },
|
|
56
|
+
createRow: {},
|
|
57
|
+
title: {},
|
|
58
|
+
restaurantLabel: {},
|
|
59
|
+
roleLabel: {},
|
|
60
|
+
addLabel: {},
|
|
61
|
+
removeLabel: {}
|
|
62
|
+
},
|
|
63
|
+
emits: ["update:modelValue"],
|
|
64
|
+
setup(e, { emit: a }) {
|
|
65
|
+
const t = e, o = a, l = x(() => ({
|
|
66
|
+
isRoleUsable: t.isRoleUsable,
|
|
67
|
+
isRestaurantLocked: t.isRestaurantLocked
|
|
68
|
+
}));
|
|
69
|
+
function s(d) {
|
|
70
|
+
return w(t.restaurants, t.modelValue, d);
|
|
71
|
+
}
|
|
72
|
+
function c(d) {
|
|
73
|
+
return C(t.roles, d.restaurantId, d.roleId, l.value);
|
|
74
|
+
}
|
|
75
|
+
function n(d) {
|
|
76
|
+
return t.isRestaurantLocked(d);
|
|
77
|
+
}
|
|
78
|
+
function U(d, f) {
|
|
79
|
+
const b = t.modelValue[d], v = K(t.roles, f, b.roleId, l.value), h = [...t.modelValue];
|
|
80
|
+
h[d] = { ...b, restaurantId: f, roleId: v }, o("update:modelValue", h);
|
|
81
|
+
}
|
|
82
|
+
function z(d, f) {
|
|
83
|
+
const b = t.modelValue[d], v = [...t.modelValue];
|
|
84
|
+
v[d] = { ...b, roleId: f }, o("update:modelValue", v);
|
|
85
|
+
}
|
|
86
|
+
function O() {
|
|
87
|
+
o("update:modelValue", [...t.modelValue, t.createRow()]);
|
|
88
|
+
}
|
|
89
|
+
function R(d) {
|
|
90
|
+
o(
|
|
91
|
+
"update:modelValue",
|
|
92
|
+
E(t.modelValue, d, t.createRow, l.value)
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
const A = x(() => N(t.restaurants, t.modelValue));
|
|
96
|
+
return (d, f) => {
|
|
97
|
+
const b = k("FmSelect"), v = k("FmIcon"), h = k("FmButton");
|
|
98
|
+
return m(), u("div", M, [
|
|
99
|
+
r("div", D, _(e.title), 1),
|
|
100
|
+
r("div", G, [
|
|
101
|
+
r("div", q, [
|
|
102
|
+
r("div", H, _(e.restaurantLabel), 1),
|
|
103
|
+
r("div", J, _(e.roleLabel), 1),
|
|
104
|
+
f[0] || (f[0] = r("div", null, null, -1))
|
|
105
|
+
]),
|
|
106
|
+
(m(!0), u(L, null, S(e.modelValue, (i, y) => (m(), u("div", {
|
|
107
|
+
key: `${i.restaurantId || "new"}-${y}`,
|
|
108
|
+
class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] items-center gap-16"
|
|
109
|
+
}, [
|
|
110
|
+
p(b, {
|
|
111
|
+
class: "min-w-0",
|
|
112
|
+
"model-value": i.restaurantId,
|
|
113
|
+
items: s(i.restaurantId),
|
|
114
|
+
multiselect: !1,
|
|
115
|
+
searchable: "",
|
|
116
|
+
"search-debounce": 300,
|
|
117
|
+
placeholder: e.restaurantLabel,
|
|
118
|
+
disabled: n(i.restaurantId),
|
|
119
|
+
"onUpdate:modelValue": (g) => U(y, g)
|
|
120
|
+
}, null, 8, ["model-value", "items", "placeholder", "disabled", "onUpdate:modelValue"]),
|
|
121
|
+
p(b, {
|
|
122
|
+
class: "min-w-0",
|
|
123
|
+
"model-value": i.roleId,
|
|
124
|
+
items: c(i),
|
|
125
|
+
multiselect: !1,
|
|
126
|
+
placeholder: e.roleLabel,
|
|
127
|
+
disabled: !i.restaurantId || n(i.restaurantId),
|
|
128
|
+
"onUpdate:modelValue": (g) => z(y, g)
|
|
129
|
+
}, null, 8, ["model-value", "items", "placeholder", "disabled", "onUpdate:modelValue"]),
|
|
130
|
+
r("div", Q, [
|
|
131
|
+
e.modelValue.length > 1 ? (m(), u("div", {
|
|
132
|
+
key: 0,
|
|
133
|
+
role: "button",
|
|
134
|
+
tabindex: n(i.restaurantId) ? -1 : 0,
|
|
135
|
+
"aria-disabled": n(i.restaurantId),
|
|
136
|
+
class: j(["inline-flex h-40 w-40 shrink-0 items-center justify-center rounded-lg text-fm-color-neutral-gray-400 transition-colors hover:bg-fm-color-neutral-gray-100 focus:outline-none focus:ring-2 focus:ring-fm-color-primary disabled:cursor-not-allowed disabled:text-fm-color-neutral-gray-200 disabled:hover:bg-transparent", {
|
|
137
|
+
"cursor-pointer": !n(i.restaurantId),
|
|
138
|
+
"pointer-events-none": n(i.restaurantId)
|
|
139
|
+
}]),
|
|
140
|
+
"aria-label": e.removeLabel,
|
|
141
|
+
onClick: V((g) => R(y), ["stop"]),
|
|
142
|
+
onKeydown: [
|
|
143
|
+
F(V((g) => R(y), ["prevent", "stop"]), ["enter"]),
|
|
144
|
+
F(V((g) => R(y), ["prevent", "stop"]), ["space"])
|
|
145
|
+
]
|
|
146
|
+
}, [
|
|
147
|
+
p(v, {
|
|
148
|
+
name: "delete",
|
|
149
|
+
size: "md"
|
|
150
|
+
})
|
|
151
|
+
], 42, T)) : $("", !0)
|
|
152
|
+
])
|
|
153
|
+
]))), 128))
|
|
154
|
+
]),
|
|
155
|
+
p(h, {
|
|
156
|
+
type: "button",
|
|
157
|
+
variant: "secondary",
|
|
158
|
+
"text-color": "primary",
|
|
159
|
+
"border-color": "primary",
|
|
160
|
+
"prepend-icon": "add",
|
|
161
|
+
label: e.addLabel,
|
|
162
|
+
size: "md",
|
|
163
|
+
disabled: !A.value,
|
|
164
|
+
onClick: V(O, ["stop"])
|
|
165
|
+
}, null, 8, ["label", "disabled"])
|
|
166
|
+
]);
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}), W = {
|
|
170
|
+
key: 0,
|
|
171
|
+
class: "fm-typo-body-sm-400 text-fm-color-typo-secondary"
|
|
172
|
+
}, le = /* @__PURE__ */ I({
|
|
173
|
+
__name: "PasscodeGenerateButton",
|
|
174
|
+
props: {
|
|
175
|
+
label: {},
|
|
176
|
+
hint: {},
|
|
177
|
+
disabled: { type: Boolean, default: !1 },
|
|
178
|
+
loading: { type: Boolean, default: !1 }
|
|
179
|
+
},
|
|
180
|
+
emits: ["click"],
|
|
181
|
+
setup(e) {
|
|
182
|
+
return (a, t) => {
|
|
183
|
+
const o = k("FmButton");
|
|
184
|
+
return m(), u(L, null, [
|
|
185
|
+
p(o, {
|
|
186
|
+
variant: "secondary",
|
|
187
|
+
"text-color": "primary",
|
|
188
|
+
"border-color": "primary",
|
|
189
|
+
label: e.label,
|
|
190
|
+
size: "md",
|
|
191
|
+
loading: e.loading,
|
|
192
|
+
disabled: e.disabled,
|
|
193
|
+
onClick: t[0] || (t[0] = (l) => a.$emit("click"))
|
|
194
|
+
}, null, 8, ["label", "loading", "disabled"]),
|
|
195
|
+
e.disabled ? (m(), u("div", W, _(e.hint), 1)) : $("", !0)
|
|
196
|
+
], 64);
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
}), X = { class: "flex items-center gap-8" }, Y = ["aria-label"], ae = /* @__PURE__ */ I({
|
|
200
|
+
__name: "PasscodePinField",
|
|
201
|
+
props: {
|
|
202
|
+
modelValue: {},
|
|
203
|
+
masked: { type: Boolean },
|
|
204
|
+
length: { default: 4 },
|
|
205
|
+
toggleLabel: {}
|
|
206
|
+
},
|
|
207
|
+
emits: ["update:modelValue", "update:masked", "complete"],
|
|
208
|
+
setup(e, { emit: a }) {
|
|
209
|
+
const t = a;
|
|
210
|
+
return (o, l) => {
|
|
211
|
+
const s = k("FmPinField"), c = k("FmIcon");
|
|
212
|
+
return m(), u("div", X, [
|
|
213
|
+
p(s, {
|
|
214
|
+
"model-value": e.modelValue,
|
|
215
|
+
length: e.length,
|
|
216
|
+
masked: e.masked,
|
|
217
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => t("update:modelValue", n)),
|
|
218
|
+
onComplete: l[1] || (l[1] = (n) => t("complete", n)),
|
|
219
|
+
onFocus: l[2] || (l[2] = (n) => t("update:masked", !1))
|
|
220
|
+
}, null, 8, ["model-value", "length", "masked"]),
|
|
221
|
+
r("button", {
|
|
222
|
+
type: "button",
|
|
223
|
+
class: "flex items-center justify-center rounded-full p-4 hover:bg-fm-color-neutral-gray-100",
|
|
224
|
+
"aria-label": e.toggleLabel,
|
|
225
|
+
onClick: l[3] || (l[3] = (n) => t("update:masked", !e.masked))
|
|
226
|
+
}, [
|
|
227
|
+
p(c, {
|
|
228
|
+
name: e.masked ? "visibility" : "visibility_off",
|
|
229
|
+
size: "md",
|
|
230
|
+
class: "text-fm-color-neutral-gray-300"
|
|
231
|
+
}, null, 8, ["name"])
|
|
232
|
+
], 8, Y)
|
|
233
|
+
]);
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
export {
|
|
238
|
+
ae as _,
|
|
239
|
+
le as a,
|
|
240
|
+
te as b,
|
|
241
|
+
ee as c,
|
|
242
|
+
B as s
|
|
243
|
+
};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as v, computed as b, watch as ue, resolveComponent as h, createBlock as de, openBlock as ee, unref as r, withCtx as C, createVNode as m, createElementVNode as y, toDisplayString as G, nextTick as pe, onMounted as fe, createElementBlock as ve, Fragment as Se, h as S } from "vue";
|
|
2
2
|
import { useI18n as se, useCoreStore as be } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as H } from "@feedmepos/ui-library";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import {
|
|
7
|
-
import { u as ie, c as M, d as ae, p as Y, i as
|
|
8
|
-
import { l as T } from "./lodash-
|
|
9
|
-
import { c as
|
|
10
|
-
import { u as
|
|
11
|
-
import {
|
|
4
|
+
import { v as Q, _ as he } from "./app-D-MUq9Ab.js";
|
|
5
|
+
import { _ as _e } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
6
|
+
import { _ as ge } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
7
|
+
import { u as ie, c as M, d as ae, p as Y, i as Pe, b as ye, m as A, n as we, o as xe, k as Fe, l as ke, v as Ce } from "./rule-DPtqlnz-.js";
|
|
8
|
+
import { l as T } from "./lodash-Def4gaas.js";
|
|
9
|
+
import { c as Ie } from "./iteration-ogxW2-Tv.js";
|
|
10
|
+
import { u as Ve } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
11
|
+
import { u as Re } from "./useLoading-Nygx2zn8.js";
|
|
12
|
+
import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CkOAT-oX.js";
|
|
13
|
+
import { A as je } from "./restaurant-D2mfKHaH.js";
|
|
12
14
|
const Te = { class: "flex w-full items-center justify-between" }, $e = { class: "fm-typo-en-title-md-600" }, Be = { class: "fm-typo-en-title-sm-600 mt-24" }, Le = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
|
|
13
15
|
__name: "PermissionSetForm",
|
|
14
16
|
props: {
|
|
@@ -21,10 +23,10 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
21
23
|
const o = K, { t: i } = se(), f = v(!1), $ = b(() => {
|
|
22
24
|
var e;
|
|
23
25
|
return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.title") : i("permissionSet.form.create.title");
|
|
24
|
-
}), I = v(),
|
|
26
|
+
}), I = v(), N = oe(), w = te(), { breakpoints: V } = ne(), R = Re(N), l = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), B = [(e) => !!e || i("permissionSet.form.nameRequired")], O = b(() => {
|
|
25
27
|
var e;
|
|
26
28
|
return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.confirmButtonLabel") : i("permissionSet.form.create.confirmButtonLabel");
|
|
27
|
-
}),
|
|
29
|
+
}), q = b(
|
|
28
30
|
() => l.permissionSets.value.filter((e) => {
|
|
29
31
|
var s;
|
|
30
32
|
return e.id !== ((s = o.modelValue) == null ? void 0 : s.id);
|
|
@@ -36,7 +38,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
36
38
|
customReportPermissions: t,
|
|
37
39
|
isLoaded: c
|
|
38
40
|
} = ae(), _ = new Set(
|
|
39
|
-
Y.filter((e) => e.subject.startsWith(
|
|
41
|
+
Y.filter((e) => e.subject.startsWith(Pe)).map((e) => e.subject)
|
|
40
42
|
), g = b(() => {
|
|
41
43
|
const e = new Set(_);
|
|
42
44
|
for (const s of t.value) e.add(s.subject);
|
|
@@ -53,27 +55,27 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
53
55
|
var s, u;
|
|
54
56
|
await pe(), f.value = !f.value, d.value = { ...o.modelValue }, a.value = ((s = o.modelValue) == null ? void 0 : s.permissionSetIds) ?? [];
|
|
55
57
|
const e = ((u = o.modelValue) == null ? void 0 : u.permissions) ?? [];
|
|
56
|
-
p.value =
|
|
58
|
+
p.value = ye(
|
|
57
59
|
A(E.value),
|
|
58
60
|
e
|
|
59
61
|
), P.value = {
|
|
60
62
|
name: d.value.name ?? "",
|
|
61
63
|
permissionSetIds: [...a.value],
|
|
62
|
-
userPermissions:
|
|
64
|
+
userPermissions: Ie(p.value)
|
|
63
65
|
};
|
|
64
66
|
}
|
|
65
67
|
ue(f, async (e) => {
|
|
66
68
|
e && await n();
|
|
67
69
|
});
|
|
68
|
-
const W =
|
|
70
|
+
const W = Ve(
|
|
69
71
|
() => !T.isEqual(d.value.name ?? "", P.value.name) || !T.isEqual(a.value, P.value.permissionSetIds) || !T.isEqual(p.value, P.value.userPermissions),
|
|
70
72
|
() => {
|
|
71
73
|
f.value = !1;
|
|
72
74
|
}
|
|
73
75
|
);
|
|
74
76
|
function re() {
|
|
75
|
-
const e = A(E.value), s = c.value ? g.value : _, u =
|
|
76
|
-
return
|
|
77
|
+
const e = A(E.value), s = c.value ? g.value : _, u = we(p.value, s), x = xe(u, z.value), F = Fe(x);
|
|
78
|
+
return ke(e, F);
|
|
77
79
|
}
|
|
78
80
|
function J(e) {
|
|
79
81
|
return A(
|
|
@@ -161,7 +163,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
161
163
|
"side-sheet-footer": C(() => [
|
|
162
164
|
y("div", Le, [
|
|
163
165
|
m(k, {
|
|
164
|
-
label:
|
|
166
|
+
label: O.value,
|
|
165
167
|
size: "md",
|
|
166
168
|
variant: "primary",
|
|
167
169
|
type: "submit",
|
|
@@ -193,14 +195,14 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
193
195
|
multiselect: "",
|
|
194
196
|
searchable: "",
|
|
195
197
|
"search-debounce": 300,
|
|
196
|
-
items:
|
|
198
|
+
items: q.value,
|
|
197
199
|
label: r(i)("permissionSet.form.includedSets"),
|
|
198
200
|
placeholder: r(i)("permissionSet.form.includedSetsPlaceholder"),
|
|
199
201
|
class: "mt-16",
|
|
200
202
|
"onUpdate:modelValue": le
|
|
201
203
|
}, null, 8, ["model-value", "items", "label", "placeholder"]),
|
|
202
204
|
y("div", Be, G(r(i)("team.memberForm.permissions.title")), 1),
|
|
203
|
-
m(
|
|
205
|
+
m(Ee, {
|
|
204
206
|
modelValue: p.value,
|
|
205
207
|
"onUpdate:modelValue": s[1] || (s[1] = (j) => p.value = j),
|
|
206
208
|
"inherit-permissions": E.value,
|
|
@@ -214,10 +216,10 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
214
216
|
}, 8, ["modelValue", "onOn:clickedAway"]);
|
|
215
217
|
};
|
|
216
218
|
}
|
|
217
|
-
}), De = { class: "space-y-8" },
|
|
219
|
+
}), De = { class: "space-y-8" }, Ne = { class: "flex justify-end xs:px-16" }, Oe = { class: "flex flex-col h-full overflow-auto" }, es = /* @__PURE__ */ Z({
|
|
218
220
|
__name: "PermissionSetList",
|
|
219
221
|
setup(K, { expose: D }) {
|
|
220
|
-
const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), I = te(), { breakpoints:
|
|
222
|
+
const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), I = te(), { breakpoints: N } = ne(), w = v(""), V = b(() => {
|
|
221
223
|
var n;
|
|
222
224
|
return (n = d.value) == null ? void 0 : n.filter((t) => {
|
|
223
225
|
const c = w.value.toLowerCase();
|
|
@@ -233,7 +235,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
233
235
|
var t;
|
|
234
236
|
a.value = n, (t = R.value) == null || t.trigger();
|
|
235
237
|
}
|
|
236
|
-
const
|
|
238
|
+
const O = [
|
|
237
239
|
{
|
|
238
240
|
accessorKey: "name",
|
|
239
241
|
header: () => o("permissionSet.table.columns.name")
|
|
@@ -246,7 +248,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
246
248
|
const t = n.row.original, c = M(
|
|
247
249
|
[t.id],
|
|
248
250
|
l.permissionSets.value
|
|
249
|
-
), _ = A(c), g = _.length, z =
|
|
251
|
+
), _ = A(c), g = _.length, z = Ce(
|
|
250
252
|
_,
|
|
251
253
|
i.value
|
|
252
254
|
);
|
|
@@ -287,7 +289,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
287
289
|
onClick: (c) => c.stopPropagation()
|
|
288
290
|
},
|
|
289
291
|
[
|
|
290
|
-
S(
|
|
292
|
+
S(ge, {
|
|
291
293
|
items: [
|
|
292
294
|
{ label: o("common.update"), onClick: () => B(t) },
|
|
293
295
|
{
|
|
@@ -303,7 +305,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
303
305
|
enableSorting: !1
|
|
304
306
|
}
|
|
305
307
|
];
|
|
306
|
-
function
|
|
308
|
+
function q() {
|
|
307
309
|
var n;
|
|
308
310
|
a.value = void 0, (n = R.value) == null || n.trigger();
|
|
309
311
|
}
|
|
@@ -311,7 +313,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
311
313
|
I.open({
|
|
312
314
|
title: o("permissionSet.form.delete.title"),
|
|
313
315
|
message: o("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
|
|
314
|
-
minWidth:
|
|
316
|
+
minWidth: N.value.lg ? 588 : 0,
|
|
315
317
|
primaryActions: {
|
|
316
318
|
text: o("common.remove"),
|
|
317
319
|
close: !1,
|
|
@@ -325,7 +327,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
325
327
|
type: "success"
|
|
326
328
|
});
|
|
327
329
|
} catch (t) {
|
|
328
|
-
const c = t instanceof
|
|
330
|
+
const c = t instanceof je && t.status === 409 ? t.message.includes("referenced by") ? o("permissionSet.form.delete.setReferencedConflictError", {
|
|
329
331
|
permissionSetName: n.name
|
|
330
332
|
}) : o("permissionSet.form.delete.conflictError", { permissionSetName: n.name }) : t instanceof Error ? t.message : `${t}`;
|
|
331
333
|
$.open({ message: c, type: "error" });
|
|
@@ -336,7 +338,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
336
338
|
return fe(() => {
|
|
337
339
|
p(), f();
|
|
338
340
|
}), D({
|
|
339
|
-
create:
|
|
341
|
+
create: q
|
|
340
342
|
}), (n, t) => {
|
|
341
343
|
const c = h("FmSearch"), _ = h("FmTable");
|
|
342
344
|
return ee(), ve(Se, null, [
|
|
@@ -346,7 +348,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
346
348
|
"model-value": a.value
|
|
347
349
|
}, null, 8, ["model-value"]),
|
|
348
350
|
y("div", De, [
|
|
349
|
-
y("div",
|
|
351
|
+
y("div", Ne, [
|
|
350
352
|
m(c, {
|
|
351
353
|
modelValue: w.value,
|
|
352
354
|
"onUpdate:modelValue": t[0] || (t[0] = (g) => w.value = g),
|
|
@@ -357,8 +359,8 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
357
359
|
]),
|
|
358
360
|
m(he, null, {
|
|
359
361
|
default: C(() => [
|
|
360
|
-
y("div",
|
|
361
|
-
m(
|
|
362
|
+
y("div", Oe, [
|
|
363
|
+
m(_e, {
|
|
362
364
|
"is-loading": r(l).isLoading.value,
|
|
363
365
|
"is-empty": V.value.length === 0,
|
|
364
366
|
"collapse-at": !1,
|
|
@@ -367,7 +369,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
367
369
|
}, {
|
|
368
370
|
default: C(() => [
|
|
369
371
|
m(_, {
|
|
370
|
-
"column-defs":
|
|
372
|
+
"column-defs": O,
|
|
371
373
|
"row-data": V.value,
|
|
372
374
|
"page-size": V.value.length,
|
|
373
375
|
loading: r(l).isLoading.value,
|
|
@@ -389,5 +391,5 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
389
391
|
}
|
|
390
392
|
});
|
|
391
393
|
export {
|
|
392
|
-
|
|
394
|
+
es as default
|
|
393
395
|
};
|