@feedmepos/mf-hrm-portal 2.3.1-dev.1 → 2.3.2-dev
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-CDU3yUHy.js → ApprovalCodeList-xOyDG5ug.js} +7 -7
- package/dist/AuditLogList-Dd6HyFhk.js +1777 -0
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Cixg_icC.js +459 -0
- package/dist/EmployeeList-BG2KPvOB.js +908 -0
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-Clh43Y-8.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +6 -6
- package/dist/{GrantUserList-Cw8RkFqf.js → GrantUserList-CUkuf3VV.js} +8 -8
- package/dist/Main-BSHf8gTE.js +100 -0
- package/dist/{Main-Dlar77Zq.js → Main-BcixH7R5.js} +11 -11
- package/dist/{Main-BxcRbcce.js → Main-Cg9SOzcz.js} +5 -5
- package/dist/MyPosProfile-CN8Bj3aV.js +301 -0
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +126 -0
- package/dist/{PermissionSetList-_8aBzGy7.js → PermissionSetList-I3u2_qHR.js} +33 -35
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BBoRXQPn.js +4243 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B5QDOF0L.js +1840 -0
- package/dist/{RoleList-C3n_zOB3.js → RoleList-ALmAwN0U.js} +20 -21
- package/dist/SelectFilter-ATOm0hdn.js +269 -0
- package/dist/TeamMemberList-DZfEnOs1.js +2097 -0
- package/dist/{TimesheetList-BqRIZBt1.js → TimesheetList-CECFKt7H.js} +11 -11
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-oIBUAjtv.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RIyoAmeb.js} +3 -3
- package/dist/{app-DFL6Nv_p.js → app-CdrnR_Pw.js} +6647 -11430
- package/dist/app.js +3 -3
- package/dist/{approval-code-BXUiojPH.js → approval-code-Bwvwehz9.js} +1 -1
- package/dist/{dayjs.min-CH-gVmsz.js → dayjs.min-BO8bcI17.js} +13 -13
- package/dist/{employee-3xpIjR6i.js → employee-Dg-J9goA.js} +62 -66
- package/dist/{grant-user-CBJ3gEgW.js → grant-user-whFOaPZI.js} +1 -1
- package/dist/{iteration-D6wutq5U.js → iteration-ZpERYj3o.js} +1 -1
- package/dist/{lodash-D5kU1nPN.js → lodash-7SZBZ8VQ.js} +1 -1
- package/dist/member-grant-C46lvrh2.js +55 -0
- package/dist/restaurant-CKhT6kgj.js +45 -0
- package/dist/{role-B7nu6hH1.js → role-C6hFKOfU.js} +5 -4
- package/dist/{rule-CMd6SL3n.js → rule-BlMymDXm.js} +99 -94
- package/dist/src/api/audit-log/index.d.ts +0 -4
- package/dist/src/api/employee/index.d.ts +2 -2
- package/dist/src/api/my-pos-profile/index.d.ts +5 -0
- package/dist/src/api/restaurant/index.d.ts +0 -2
- package/dist/src/api/staff-invite/index.d.ts +17 -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 +11 -3
- package/dist/src/components/form/SegmentedTabs.vue.d.ts +23 -0
- package/dist/src/composables/useDiscardConfirm.d.ts +1 -3
- package/dist/src/composables/useMenuAccess.d.ts +56 -0
- package/dist/src/composables/useMessage.d.ts +2 -8
- package/dist/src/composables/useStaffInviteProviders.d.ts +19 -0
- package/dist/src/helpers/member-grant.d.ts +36 -0
- package/dist/src/helpers/my-pos-profile.d.ts +37 -0
- package/dist/src/helpers/pos-assignment-rows.d.ts +26 -0
- package/dist/src/helpers/staff-invite.d.ts +51 -0
- package/dist/src/helpers/string.d.ts +10 -1
- package/dist/src/router/menu-access-guard.d.ts +17 -0
- package/dist/src/router/shared.d.ts +2 -3
- 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 +30 -0
- package/dist/src/types/employee.d.ts +0 -1
- package/dist/src/types/my-pos-profile.d.ts +25 -0
- package/dist/src/types/staff-invite.d.ts +100 -0
- package/dist/src/types/team.d.ts +17 -1
- package/dist/src/views/audit-log/constants.d.ts +30 -9
- package/dist/src/views/audit-log/locales/index.d.ts +0 -488
- package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +4 -0
- package/dist/src/views/my-pos-profile/locales/index.d.ts +200 -0
- package/dist/src/views/team/components/BasePermission.vue.d.ts +11 -0
- package/dist/src/views/team/components/ConditionPermission.vue.d.ts +11 -0
- package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +55 -0
- package/dist/src/views/team/{member/MemberInfo.vue.d.ts → components/MemberStatusBadge.vue.d.ts} +2 -2
- package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
- package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +21 -0
- package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +46 -0
- package/dist/src/views/team/components/PosRolePermission.vue.d.ts +11 -0
- package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
- package/dist/src/views/team/locales/index.d.ts +716 -0
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +50 -3
- package/dist/src/views/{scheduling/components/ScheduleOnboardingHoursProfileNotice.vue.d.ts → team/member/ExistingMemberNotice.vue.d.ts} +6 -5
- package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +35 -0
- package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +19 -0
- package/dist/src/views/team/member/TeamMemberList.vue.d.ts +1 -0
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +2 -0
- package/dist/string-DZQ1uNjn.js +22 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DZCdxlCd.js → useAppStore-CL6EEDuw.js} +1 -1
- package/dist/useDiscardConfirm-DPhEV6v0.js +157 -0
- package/dist/{useLoading-Nygx2zn8.js → useLoading-BBjBUzGJ.js} +1 -1
- package/dist/{useReportPermissions-BcxIKxlF.js → useReportPermissions-Bg0fma6m.js} +3 -3
- package/package.json +3 -5
- package/dist/AuditLogList-BU11Q5sF.js +0 -1950
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BjHwyaXu.js +0 -438
- package/dist/EmployeeList-BqzXg3uA.js +0 -776
- package/dist/Main-CL-ysWRu.js +0 -96
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +0 -243
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CNgtAtYH.js +0 -4167
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js +0 -35
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +0 -132
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CnrbCggg.js +0 -544
- package/dist/ScheduleGeneralPage-DGHKW_ww.js +0 -811
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-AfTAGsh1.js +0 -2556
- package/dist/SchedulePage-UzDPRldO.js +0 -19458
- package/dist/SchedulePositionPage-RHETW36P.js +0 -282
- package/dist/SelectFilter-CeBV_Kug.js +0 -264
- package/dist/TeamMemberList-B-qR7VS3.js +0 -1154
- package/dist/object-Dwyg2LgX.js +0 -16
- package/dist/restaurant-D2mfKHaH.js +0 -1880
- package/dist/src/api/schedule/index.d.ts +0 -68
- package/dist/src/components/layout/PortalShell.vue.d.ts +0 -12
- package/dist/src/components/layout/withScheduleShell.d.ts +0 -10
- package/dist/src/types/schedule.d.ts +0 -23
- package/dist/src/views/audit-log/pos-row.d.ts +0 -27
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +0 -3
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +0 -3
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +0 -3
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +0 -41
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDoneArt.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +0 -25
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +0 -31
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +0 -29
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +0 -34
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +0 -26
- package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +0 -38
- package/dist/src/views/scheduling/components/ScheduleBoardUtilityOverlays.vue.d.ts +0 -22
- package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +0 -23
- package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleCloneOutletModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleCoach.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleCompletionDialog.vue.d.ts +0 -15
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +0 -33
- package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleCostRailEmptyArt.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +0 -23
- package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleExportPreview.vue.d.ts +0 -7
- package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +0 -18
- package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +0 -18
- package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +0 -9
- package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +0 -26
- package/dist/src/views/scheduling/components/ScheduleOnboardingAssignPositionModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingClosedDayConfirm.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandDays.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandFooter.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandHeader.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDoneArt.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleOnboardingPositions.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingReview.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +0 -11
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +0 -9
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizardFooter.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizardHeader.vue.d.ts +0 -11
- package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +0 -70
- package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleSetupBanner.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +0 -35
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +0 -16
- package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +0 -25
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +0 -16
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +0 -50
- package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +0 -20
- package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +0 -35
- package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +0 -7
- package/dist/src/views/scheduling/composables/onboarding-hours.d.ts +0 -7
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +0 -51
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +0 -15
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +0 -82
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +0 -63
- package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +0 -9
- package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +0 -17
- package/dist/src/views/scheduling/composables/schedule-cost.d.ts +0 -24
- package/dist/src/views/scheduling/composables/schedule-currency.d.ts +0 -22
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +0 -21
- package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +0 -23
- package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +0 -7
- package/dist/src/views/scheduling/composables/schedule-error.d.ts +0 -1
- package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +0 -14
- package/dist/src/views/scheduling/composables/schedule-leave-split.d.ts +0 -9
- package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +0 -16
- package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +0 -23
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +0 -29
- package/dist/src/views/scheduling/composables/schedule-time.d.ts +0 -8
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +0 -9
- package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +0 -9
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +0 -16
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +0 -137
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +0 -75
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -50
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +0 -11
- package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +0 -301
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +0 -615
- package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +0 -27
- package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +0 -28
- package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useScheduleCoach.d.ts +0 -80
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +0 -12
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +0 -60
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -44
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +0 -111
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +0 -59
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +0 -47
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +0 -166
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +0 -55
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +0 -24
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +0 -49
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +0 -7
- package/dist/src/views/scheduling/composables/useScheduleEmployeeForm.d.ts +0 -22
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +0 -50
- package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +0 -38
- package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +0 -32
- package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +0 -16
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +0 -52
- package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +0 -14
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +0 -79
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +0 -60
- package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +0 -15
- package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +0 -58
- package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +0 -45
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +0 -231
- package/dist/src/views/scheduling/composables/useScheduleOnboardingFlow.d.ts +0 -9
- package/dist/src/views/scheduling/composables/useScheduleOnboardingHours.d.ts +0 -15
- package/dist/src/views/scheduling/composables/useScheduleOnboardingNavigation.d.ts +0 -11
- package/dist/src/views/scheduling/composables/useScheduleOnboardingPersistence.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +0 -1543
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +0 -25
- package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useSchedulePageBootstrap.d.ts +0 -9
- package/dist/src/views/scheduling/composables/useSchedulePageCellActions.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +0 -20
- package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +0 -33
- package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +0 -22
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +0 -19
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +0 -55
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +0 -35
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +0 -127
- package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +0 -11
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +0 -27
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +0 -313
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +0 -40
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +0 -17
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +0 -245
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +0 -63
- package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +0 -17
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +0 -255
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +0 -27
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +0 -49
- package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +0 -95
- package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +0 -9
- package/dist/src/views/scheduling/country-rules/index.d.ts +0 -33
- package/dist/src/views/scheduling/data.d.ts +0 -123
- package/dist/src/views/scheduling/locales/index.d.ts +0 -6988
- package/dist/src/views/scheduling/schedule-constants.d.ts +0 -7
- package/dist/src/views/scheduling/schedule-state.d.ts +0 -767
- package/dist/src/views/scheduling/schedule-store.d.ts +0 -140
- package/dist/src/views/scheduling/types.d.ts +0 -381
- package/dist/string-VNuQNweN.js +0 -15
- package/dist/useDiscardConfirm-CzZSPyvh.js +0 -28
- /package/dist/src/{components/layout/SchedulePromoBanner.vue.d.ts → views/my-pos-profile/MyPosProfile.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 a, createCommentVNode as _, toDisplayString as i } from "vue";
|
|
2
|
+
import { _ as y } from "./SelectFilter-ATOm0hdn.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 l = f(() => s(e.value));
|
|
15
15
|
function d(n) {
|
|
16
|
-
return
|
|
16
|
+
return l.value ? n.some((u) => s(u).includes(l.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
|
+
a(e.$slots, "append")
|
|
36
36
|
]),
|
|
37
|
-
|
|
37
|
+
a(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-BO8bcI17.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-ATOm0hdn.js";
|
|
6
|
+
import { _ as he } from "./app-CdrnR_Pw.js";
|
|
7
|
+
import { _ as Q, u as Ue, H as xe } from "./FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.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-BBjBUzGJ.js";
|
|
10
|
+
import { u as ae } from "./grant-user-whFOaPZI.js";
|
|
11
|
+
import { u as se } from "./restaurant-CKhT6kgj.js";
|
|
12
|
+
import { u as re } from "./role-C6hFKOfU.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",
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { defineComponent as M, ref as R, computed as i, watch as g, resolveComponent as c, createBlock as p, openBlock as d, withCtx as u, createElementVNode as A, createVNode as v, resolveDynamicComponent as h, createCommentVNode as k, createTextVNode as N, toDisplayString as w } from "vue";
|
|
2
|
+
import { useRouter as x, useRoute as F } from "vue-router";
|
|
3
|
+
import { useI18n as I, useCoreStore as O } from "@feedmepos/mf-common";
|
|
4
|
+
import { _ as $ } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
5
|
+
import { _ as q } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
|
+
import { u as D } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B5QDOF0L.js";
|
|
7
|
+
import { u as P } from "./restaurant-CKhT6kgj.js";
|
|
8
|
+
import "@feedmepos/ui-library";
|
|
9
|
+
import "./rule-BlMymDXm.js";
|
|
10
|
+
import "./lodash-7SZBZ8VQ.js";
|
|
11
|
+
import "./iteration-ZpERYj3o.js";
|
|
12
|
+
import "./useAppStore-CL6EEDuw.js";
|
|
13
|
+
import { R as B } from "./app-CdrnR_Pw.js";
|
|
14
|
+
import "./member-grant-C46lvrh2.js";
|
|
15
|
+
import "./role-C6hFKOfU.js";
|
|
16
|
+
/* empty css */
|
|
17
|
+
const U = { class: "space-y-24" }, ue = /* @__PURE__ */ M({
|
|
18
|
+
__name: "Main",
|
|
19
|
+
setup(j) {
|
|
20
|
+
const { t: o } = I(), b = x(), S = F(), T = O(), { readRestaurants: V } = P(), { loadProviders: L } = D(), f = R(), _ = R(), s = {
|
|
21
|
+
member: B.TEAM_MEMBER,
|
|
22
|
+
role: B.TEAM_ROLE
|
|
23
|
+
}, a = i({
|
|
24
|
+
get: () => Object.keys(s).find((e) => s[e] === S.name) ?? "member",
|
|
25
|
+
set: (e) => {
|
|
26
|
+
b.push({
|
|
27
|
+
name: s[e],
|
|
28
|
+
query: b.currentRoute.value.query
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
V(), g(T.currentBusiness, () => L(), { immediate: !0 });
|
|
33
|
+
const r = i(() => l.value.find((e) => e.value === a.value) || l.value[0]), l = i(() => [
|
|
34
|
+
{
|
|
35
|
+
label: o("team.title"),
|
|
36
|
+
subTitle: o("team.subtitle"),
|
|
37
|
+
value: "member",
|
|
38
|
+
createButtonLabel: o("team.actions.addMember"),
|
|
39
|
+
createButtonAction: () => {
|
|
40
|
+
var e;
|
|
41
|
+
(e = f.value) == null || e.create();
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: o("permissionSet.title"),
|
|
46
|
+
value: "role",
|
|
47
|
+
createButtonLabel: o("permissionSet.createButtonLabel"),
|
|
48
|
+
createButtonAction: () => {
|
|
49
|
+
var e;
|
|
50
|
+
(e = _.value) == null || e.create();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
]);
|
|
54
|
+
return (e, n) => {
|
|
55
|
+
const y = c("FmSpacer"), C = c("FmTabs"), E = c("RouterView");
|
|
56
|
+
return d(), p(q, {
|
|
57
|
+
heading: r.value.label
|
|
58
|
+
}, {
|
|
59
|
+
"sub-heading": u(() => [
|
|
60
|
+
N(w(r.value.subTitle), 1)
|
|
61
|
+
]),
|
|
62
|
+
"append-heading": u(() => {
|
|
63
|
+
var t;
|
|
64
|
+
return [
|
|
65
|
+
v(y),
|
|
66
|
+
(t = r.value) != null && t.createButtonLabel ? (d(), p($, {
|
|
67
|
+
key: 0,
|
|
68
|
+
icon: "add",
|
|
69
|
+
label: r.value.createButtonLabel,
|
|
70
|
+
onClick: n[0] || (n[0] = (m) => r.value.createButtonAction())
|
|
71
|
+
}, null, 8, ["label"])) : k("", !0)
|
|
72
|
+
];
|
|
73
|
+
}),
|
|
74
|
+
default: u(() => [
|
|
75
|
+
A("div", U, [
|
|
76
|
+
v(C, {
|
|
77
|
+
modelValue: a.value,
|
|
78
|
+
"onUpdate:modelValue": n[1] || (n[1] = (t) => a.value = t),
|
|
79
|
+
items: l.value
|
|
80
|
+
}, null, 8, ["modelValue", "items"]),
|
|
81
|
+
v(E, null, {
|
|
82
|
+
default: u(({ Component: t }) => [
|
|
83
|
+
(d(), p(h(t), {
|
|
84
|
+
ref: (m) => {
|
|
85
|
+
a.value === "member" && (f.value = m), a.value === "role" && (_.value = m);
|
|
86
|
+
}
|
|
87
|
+
}, null, 512))
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
})
|
|
91
|
+
])
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}, 8, ["heading"]);
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
export {
|
|
99
|
+
ue as default
|
|
100
|
+
};
|
|
@@ -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-CKhT6kgj.js";
|
|
8
|
+
import { u as _f } from "./role-C6hFKOfU.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import "./employee-
|
|
11
|
-
import "./lodash-
|
|
12
|
-
import "./useAppStore-
|
|
13
|
-
import "./iteration-
|
|
10
|
+
import "./employee-Dg-J9goA.js";
|
|
11
|
+
import "./lodash-7SZBZ8VQ.js";
|
|
12
|
+
import "./useAppStore-CL6EEDuw.js";
|
|
13
|
+
import "./iteration-ZpERYj3o.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-CdrnR_Pw.js";
|
|
16
|
+
import "./rule-BlMymDXm.js";
|
|
17
|
+
import "./useReportPermissions-Bg0fma6m.js";
|
|
18
|
+
import "./dayjs.min-BO8bcI17.js";
|
|
19
|
+
import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RIyoAmeb.js";
|
|
20
20
|
var Nn = {};
|
|
21
21
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
22
22
|
var qt = {};
|
|
@@ -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-CKhT6kgj.js";
|
|
8
|
+
import { u as H } from "./role-C6hFKOfU.js";
|
|
9
|
+
import { u as J } from "./grant-user-whFOaPZI.js";
|
|
10
|
+
import { u as K } from "./approval-code-Bwvwehz9.js";
|
|
11
|
+
import { R as n } from "./app-CdrnR_Pw.js";
|
|
12
12
|
const Q = { class: "space-y-24" }, ue = /* @__PURE__ */ D({
|
|
13
13
|
__name: "Main",
|
|
14
14
|
setup(W) {
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import { defineComponent as V, ref as r, computed as k, resolveComponent as P, createBlock as $, openBlock as l, withCtx as F, createElementVNode as t, createElementBlock as n, Fragment as M, renderList as j, toDisplayString as c, unref as s, createVNode as i, onUnmounted as Q, watch as X, createCommentVNode as Y, h as B } from "vue";
|
|
2
|
+
import { useI18n as L, useCoreStore as Z, FeedMeAuth as ee } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as oe, useDialog as te, useBreakpoints as se, components as ae, SnackbarPosition as le } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as ne } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
5
|
+
import { t as re, f as ie, a as ce, r as de, i as U, c as ue, d as me, p as pe, o as fe } from "./app-CdrnR_Pw.js";
|
|
6
|
+
import { _ as ye } from "./index.vue_vue_type_script_setup_true_lang-BVVwfd7B.js";
|
|
7
|
+
const _e = { class: "flex w-full flex-col items-center gap-8 pt-[4px]" }, ge = { class: "fm-typo-en-title-sm-600 text-center" }, ve = { class: "py-[4px]" }, Pe = {
|
|
8
|
+
class: "flex items-center justify-center gap-4 rounded-[12px] bg-fm-color-neutral-gray-100 px-16 py-[20px]",
|
|
9
|
+
"data-testid": "new-passcode"
|
|
10
|
+
}, he = { class: "fm-typo-en-body-md-400 pt-16 text-center text-fm-color-typo-primary" }, xe = /* @__PURE__ */ V({
|
|
11
|
+
__name: "PasscodeChangedDialog",
|
|
12
|
+
setup(R, { expose: e }) {
|
|
13
|
+
const { t: h } = L(), y = r(!1), x = r(""), b = k(() => x.value.split("")), C = (_) => {
|
|
14
|
+
x.value = _, y.value = !0;
|
|
15
|
+
}, d = () => {
|
|
16
|
+
y.value = !1, x.value = "";
|
|
17
|
+
};
|
|
18
|
+
return e({ open: C }), (_, a) => {
|
|
19
|
+
const g = P("FmIcon"), v = P("FmButton"), u = P("FmDialog");
|
|
20
|
+
return l(), $(u, {
|
|
21
|
+
modelValue: y.value,
|
|
22
|
+
"onUpdate:modelValue": [
|
|
23
|
+
a[0] || (a[0] = (m) => y.value = m),
|
|
24
|
+
a[1] || (a[1] = (m) => !m && d())
|
|
25
|
+
],
|
|
26
|
+
"min-width": 360,
|
|
27
|
+
"max-width": 460,
|
|
28
|
+
"close-button": !1,
|
|
29
|
+
"dismiss-away": !1
|
|
30
|
+
}, {
|
|
31
|
+
"dialog-header": F(() => [
|
|
32
|
+
t("div", _e, [
|
|
33
|
+
i(g, {
|
|
34
|
+
name: "check_circle",
|
|
35
|
+
size: "xl",
|
|
36
|
+
outline: "",
|
|
37
|
+
color: "typo-success"
|
|
38
|
+
}),
|
|
39
|
+
t("p", ge, c(s(h)("myPosProfile.changed.title")), 1)
|
|
40
|
+
])
|
|
41
|
+
]),
|
|
42
|
+
"dialog-footer": F(() => [
|
|
43
|
+
i(v, {
|
|
44
|
+
class: "w-full",
|
|
45
|
+
variant: "primary",
|
|
46
|
+
label: s(h)("myPosProfile.changed.done"),
|
|
47
|
+
onClick: d
|
|
48
|
+
}, null, 8, ["label"])
|
|
49
|
+
]),
|
|
50
|
+
default: F(() => [
|
|
51
|
+
t("div", ve, [
|
|
52
|
+
t("div", Pe, [
|
|
53
|
+
(l(!0), n(M, null, j(b.value, (m, w) => (l(), n("span", {
|
|
54
|
+
key: w,
|
|
55
|
+
class: "flex h-[56px] w-[52px] items-center justify-center text-[48px] font-bold leading-[56px] text-fm-color-typo-primary"
|
|
56
|
+
}, c(m), 1))), 128))
|
|
57
|
+
]),
|
|
58
|
+
t("p", he, c(s(h)("myPosProfile.changed.message")), 1)
|
|
59
|
+
])
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
}, 8, ["modelValue"]);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
}), be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = {
|
|
66
|
+
key: 1,
|
|
67
|
+
class: "flex flex-1 items-center justify-center"
|
|
68
|
+
}, ke = {
|
|
69
|
+
key: 2,
|
|
70
|
+
class: "space-y-24"
|
|
71
|
+
}, Fe = {
|
|
72
|
+
key: 0,
|
|
73
|
+
role: "alert",
|
|
74
|
+
"data-testid": "pos-user-shared",
|
|
75
|
+
class: "flex items-center gap-[10px] rounded-[12px] bg-fm-color-system-warning-100 px-16 py-[14px]"
|
|
76
|
+
}, Se = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, Ae = { class: "space-y-12" }, Ce = { class: "fm-typo-en-body-lg-600" }, De = { class: "flex items-center gap-24 rounded-[12px] border border-fm-color-neutral-gray-100 p-24 xs:flex-wrap" }, Be = { class: "flex h-48 w-48 shrink-0 items-center justify-center rounded-[12px] bg-fm-color-neutral-gray-100" }, Ue = { class: "min-w-0 flex-1" }, $e = { class: "flex items-center gap-8" }, Me = ["aria-label"], Ee = {
|
|
77
|
+
key: 0,
|
|
78
|
+
class: "h-[14px] w-[14px] rounded-full bg-fm-color-typo-primary"
|
|
79
|
+
}, Ie = {
|
|
80
|
+
key: 1,
|
|
81
|
+
class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary"
|
|
82
|
+
}, ze = {
|
|
83
|
+
key: 0,
|
|
84
|
+
class: "fm-typo-en-body-md-400 pt-[6px] text-fm-color-typo-secondary"
|
|
85
|
+
}, Ve = { class: "flex flex-wrap items-center gap-[10px] rounded-[12px] bg-fm-color-neutral-gray-100 px-16 py-[14px]" }, je = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = 4, Ke = /* @__PURE__ */ V({
|
|
86
|
+
__name: "MyPosProfile",
|
|
87
|
+
setup(R) {
|
|
88
|
+
const { t: e, locale: h } = L(), y = Z(), x = oe(), b = te(), { breakpoints: C } = se(), d = r(null), _ = r(!0), a = r(null), g = r(!1), v = r(!1), u = r(!1), m = r(), w = r(Date.now()), T = setInterval(() => w.value = Date.now(), 3e4);
|
|
89
|
+
Q(() => clearInterval(T));
|
|
90
|
+
const S = k(() => {
|
|
91
|
+
var o;
|
|
92
|
+
return ((o = d.value) == null ? void 0 : o.profile) ?? null;
|
|
93
|
+
}), N = k(() => S.value ? re(S.value) : []), E = k(
|
|
94
|
+
() => {
|
|
95
|
+
var o;
|
|
96
|
+
return ie(
|
|
97
|
+
((o = S.value) == null ? void 0 : o.passcodeUpdatedAt) ?? null,
|
|
98
|
+
e,
|
|
99
|
+
String(h.value),
|
|
100
|
+
w.value
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
), O = k(
|
|
104
|
+
() => a.value ? a.value.split("") : Array.from({ length: Le }, () => null)
|
|
105
|
+
), G = [
|
|
106
|
+
{
|
|
107
|
+
id: "name",
|
|
108
|
+
header: () => e("myPosProfile.table.columns.name"),
|
|
109
|
+
enableSorting: !1,
|
|
110
|
+
cell: (o) => {
|
|
111
|
+
const f = o.row.original.name;
|
|
112
|
+
return f ? B("div", { class: "flex items-center gap-8" }, [
|
|
113
|
+
B(ae.FmAvatar, { name: f, size: "sm", class: "shrink-0" }),
|
|
114
|
+
B("span", { class: "truncate" }, f)
|
|
115
|
+
]) : "";
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: "contact",
|
|
120
|
+
header: () => e("myPosProfile.table.columns.contact"),
|
|
121
|
+
enableSorting: !1,
|
|
122
|
+
cell: (o) => o.row.original.contact ?? ""
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
id: "restaurant",
|
|
126
|
+
header: () => e("myPosProfile.table.columns.restaurant"),
|
|
127
|
+
enableSorting: !1,
|
|
128
|
+
cell: (o) => o.row.original.restaurant
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: "role",
|
|
132
|
+
header: () => e("myPosProfile.table.columns.role"),
|
|
133
|
+
enableSorting: !1,
|
|
134
|
+
cell: (o) => o.row.original.role
|
|
135
|
+
}
|
|
136
|
+
];
|
|
137
|
+
function A(o) {
|
|
138
|
+
x.open({ type: "error", title: o, position: le.BOTTOM });
|
|
139
|
+
}
|
|
140
|
+
async function H() {
|
|
141
|
+
_.value = !0, u.value = !1, a.value = null;
|
|
142
|
+
try {
|
|
143
|
+
d.value = await de();
|
|
144
|
+
} catch (o) {
|
|
145
|
+
d.value = null, U(o) ? u.value = !0 : A(e("myPosProfile.loadFailed"));
|
|
146
|
+
} finally {
|
|
147
|
+
_.value = !1;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
X(
|
|
151
|
+
y.currentBusiness,
|
|
152
|
+
(o) => {
|
|
153
|
+
o && H();
|
|
154
|
+
},
|
|
155
|
+
{ immediate: !0 }
|
|
156
|
+
);
|
|
157
|
+
async function K() {
|
|
158
|
+
if (a.value) {
|
|
159
|
+
a.value = null;
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
if (!g.value) {
|
|
163
|
+
g.value = !0;
|
|
164
|
+
try {
|
|
165
|
+
a.value = (await ue()).passcode;
|
|
166
|
+
} catch (o) {
|
|
167
|
+
U(o) ? u.value = !0 : A(e("myPosProfile.passcode.revealFailed"));
|
|
168
|
+
} finally {
|
|
169
|
+
g.value = !1;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
function W() {
|
|
174
|
+
b.open({
|
|
175
|
+
title: e("myPosProfile.change.title"),
|
|
176
|
+
message: e("myPosProfile.change.message"),
|
|
177
|
+
minWidth: C.value.lg ? 598 : 0,
|
|
178
|
+
primaryActions: {
|
|
179
|
+
text: e("common.confirm"),
|
|
180
|
+
close: !1,
|
|
181
|
+
isLoading: v
|
|
182
|
+
},
|
|
183
|
+
secondaryActions: { text: e("common.cancel"), close: !0 }
|
|
184
|
+
}).onPrimary(async () => {
|
|
185
|
+
var o, f;
|
|
186
|
+
if (!v.value) {
|
|
187
|
+
v.value = !0;
|
|
188
|
+
try {
|
|
189
|
+
const { passcode: p, passcodeUpdatedAt: D } = await me();
|
|
190
|
+
a.value = null, (o = d.value) != null && o.profile && (d.value.profile.passcodeUpdatedAt = D), w.value = Date.now(), b.close(), (f = m.value) == null || f.open(p);
|
|
191
|
+
} catch (p) {
|
|
192
|
+
b.close(), U(p) ? u.value = !0 : A(e(pe(p)));
|
|
193
|
+
} finally {
|
|
194
|
+
v.value = !1;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
function q() {
|
|
200
|
+
fe(ee) || A(e("myPosProfile.manageAccount.failed"));
|
|
201
|
+
}
|
|
202
|
+
return (o, f) => {
|
|
203
|
+
const p = P("FmIcon"), D = P("FmTable"), I = P("FmButton");
|
|
204
|
+
return l(), $(ne, {
|
|
205
|
+
heading: s(e)("myPosProfile.title")
|
|
206
|
+
}, {
|
|
207
|
+
"sub-heading": F(() => [
|
|
208
|
+
t("p", be, c(s(e)("myPosProfile.subtitle")), 1)
|
|
209
|
+
]),
|
|
210
|
+
default: F(() => [
|
|
211
|
+
_.value ? (l(), $(ce, { key: 0 })) : !S.value && !u.value ? (l(), n("div", we, [
|
|
212
|
+
i(s(ye), {
|
|
213
|
+
title: s(e)("myPosProfile.noPosUser.title"),
|
|
214
|
+
subtitle: s(e)("myPosProfile.noPosUser.description")
|
|
215
|
+
}, null, 8, ["title", "subtitle"])
|
|
216
|
+
])) : (l(), n("div", ke, [
|
|
217
|
+
u.value ? (l(), n("div", Fe, [
|
|
218
|
+
i(p, {
|
|
219
|
+
name: "warning",
|
|
220
|
+
size: "sm",
|
|
221
|
+
outline: "",
|
|
222
|
+
color: "typo-warning"
|
|
223
|
+
}),
|
|
224
|
+
t("span", Se, c(s(e)("myPosProfile.shared.message")), 1)
|
|
225
|
+
])) : (l(), n(M, { key: 1 }, [
|
|
226
|
+
i(D, {
|
|
227
|
+
"column-defs": G,
|
|
228
|
+
"row-data": N.value,
|
|
229
|
+
"page-size": 100,
|
|
230
|
+
"hide-footer": ""
|
|
231
|
+
}, null, 8, ["row-data"]),
|
|
232
|
+
t("section", Ae, [
|
|
233
|
+
t("p", Ce, c(s(e)("myPosProfile.passcode.title")), 1),
|
|
234
|
+
t("div", De, [
|
|
235
|
+
t("div", Be, [
|
|
236
|
+
i(p, {
|
|
237
|
+
name: "lock",
|
|
238
|
+
outline: ""
|
|
239
|
+
})
|
|
240
|
+
]),
|
|
241
|
+
t("div", Ue, [
|
|
242
|
+
t("div", $e, [
|
|
243
|
+
t("div", {
|
|
244
|
+
class: "flex h-24 items-center gap-[10px]",
|
|
245
|
+
"data-testid": "passcode",
|
|
246
|
+
"aria-label": a.value ? void 0 : s(e)("myPosProfile.passcode.title")
|
|
247
|
+
}, [
|
|
248
|
+
(l(!0), n(M, null, j(O.value, (z, J) => (l(), n("span", {
|
|
249
|
+
key: J,
|
|
250
|
+
class: "flex w-[20px] items-center justify-center"
|
|
251
|
+
}, [
|
|
252
|
+
z === null ? (l(), n("span", Ee)) : (l(), n("span", Ie, c(z), 1))
|
|
253
|
+
]))), 128))
|
|
254
|
+
], 8, Me),
|
|
255
|
+
i(I, {
|
|
256
|
+
variant: "tertiary",
|
|
257
|
+
"prepend-icon": a.value ? "visibility_off" : "visibility",
|
|
258
|
+
loading: g.value,
|
|
259
|
+
"aria-label": a.value ? s(e)("myPosProfile.passcode.hide") : s(e)("myPosProfile.passcode.show"),
|
|
260
|
+
onClick: K
|
|
261
|
+
}, null, 8, ["prepend-icon", "loading", "aria-label"])
|
|
262
|
+
]),
|
|
263
|
+
E.value ? (l(), n("p", ze, c(E.value), 1)) : Y("", !0)
|
|
264
|
+
]),
|
|
265
|
+
i(I, {
|
|
266
|
+
variant: "secondary",
|
|
267
|
+
size: "md",
|
|
268
|
+
label: s(e)("myPosProfile.passcode.change"),
|
|
269
|
+
onClick: W
|
|
270
|
+
}, null, 8, ["label"])
|
|
271
|
+
])
|
|
272
|
+
])
|
|
273
|
+
], 64)),
|
|
274
|
+
t("div", Ve, [
|
|
275
|
+
i(p, {
|
|
276
|
+
name: "info",
|
|
277
|
+
size: "sm",
|
|
278
|
+
outline: "",
|
|
279
|
+
color: "typo-secondary"
|
|
280
|
+
}),
|
|
281
|
+
t("span", je, c(s(e)("myPosProfile.manageAccount.message")), 1),
|
|
282
|
+
t("button", {
|
|
283
|
+
type: "button",
|
|
284
|
+
class: "fm-typo-en-body-md-600 text-fm-color-system-info-300",
|
|
285
|
+
onClick: q
|
|
286
|
+
}, c(s(e)("myPosProfile.manageAccount.link")), 1)
|
|
287
|
+
])
|
|
288
|
+
])),
|
|
289
|
+
i(xe, {
|
|
290
|
+
ref_key: "changedDialogRef",
|
|
291
|
+
ref: m
|
|
292
|
+
}, null, 512)
|
|
293
|
+
]),
|
|
294
|
+
_: 1
|
|
295
|
+
}, 8, ["heading"]);
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
export {
|
|
300
|
+
Ke as default
|
|
301
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { defineComponent as c, createElementBlock as s, openBlock as m, normalizeStyle as b, resolveComponent as u, Fragment as p, createVNode as r, createCommentVNode as g, toDisplayString as y, createElementVNode as v } from "vue";
|
|
2
|
+
const B = /* @__PURE__ */ c({
|
|
3
|
+
__name: "Skeleton",
|
|
4
|
+
props: {
|
|
5
|
+
width: { default: "160px" }
|
|
6
|
+
},
|
|
7
|
+
setup(t) {
|
|
8
|
+
return (l, n) => (m(), s("div", {
|
|
9
|
+
class: "h-16 animate-pulse rounded bg-fm-color-neutral-gray-200",
|
|
10
|
+
style: b({ width: t.width })
|
|
11
|
+
}, null, 4));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
function f(t) {
|
|
15
|
+
return t.map((l) => l.restaurantId).filter(Boolean);
|
|
16
|
+
}
|
|
17
|
+
function x(t, l, n) {
|
|
18
|
+
const o = f(l);
|
|
19
|
+
return t.filter((e) => e.managable || e._id === n).map((e) => ({
|
|
20
|
+
label: `${e.profile.code ? `${e.profile.code} - ` : ""}${e.profile.name}`,
|
|
21
|
+
value: e._id,
|
|
22
|
+
disabled: o.includes(e._id) && e._id !== n
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
function k(t, l, n, o) {
|
|
26
|
+
return l ? t.filter((e) => e.restaurants.some((a) => a.id == l)).map((e) => ({
|
|
27
|
+
label: e.name,
|
|
28
|
+
value: e._id,
|
|
29
|
+
disabled: !o.isRoleUsable(e, l) && e._id !== n
|
|
30
|
+
})) : [];
|
|
31
|
+
}
|
|
32
|
+
function V(t, l, n, o) {
|
|
33
|
+
var a, i;
|
|
34
|
+
const e = k(t, l, n, o);
|
|
35
|
+
return ((a = e.find((d) => d.value === n && !d.disabled)) == null ? void 0 : a.value) ?? ((i = e.find((d) => !d.disabled)) == null ? void 0 : i.value) ?? "";
|
|
36
|
+
}
|
|
37
|
+
function C(t, l) {
|
|
38
|
+
const n = f(l), o = t.some(
|
|
39
|
+
(a) => a.managable && !n.includes(a._id)
|
|
40
|
+
), e = l.every((a) => a.restaurantId && a.roleId);
|
|
41
|
+
return o && e;
|
|
42
|
+
}
|
|
43
|
+
function R(t, l, n, o) {
|
|
44
|
+
var a;
|
|
45
|
+
const e = ((a = t[l]) == null ? void 0 : a.restaurantId) ?? "";
|
|
46
|
+
return o.isRestaurantLocked(e) ? t : t.length === 1 ? [n()] : t.filter((i, d) => d !== l);
|
|
47
|
+
}
|
|
48
|
+
const F = {
|
|
49
|
+
key: 0,
|
|
50
|
+
class: "fm-typo-body-sm-400 text-fm-color-typo-secondary"
|
|
51
|
+
}, I = /* @__PURE__ */ c({
|
|
52
|
+
__name: "PasscodeGenerateButton",
|
|
53
|
+
props: {
|
|
54
|
+
label: {},
|
|
55
|
+
hint: {},
|
|
56
|
+
disabled: { type: Boolean, default: !1 },
|
|
57
|
+
loading: { type: Boolean, default: !1 }
|
|
58
|
+
},
|
|
59
|
+
emits: ["click"],
|
|
60
|
+
setup(t) {
|
|
61
|
+
return (l, n) => {
|
|
62
|
+
const o = u("FmButton");
|
|
63
|
+
return m(), s(p, null, [
|
|
64
|
+
r(o, {
|
|
65
|
+
variant: "secondary",
|
|
66
|
+
"text-color": "primary",
|
|
67
|
+
"border-color": "primary",
|
|
68
|
+
label: t.label,
|
|
69
|
+
size: "md",
|
|
70
|
+
loading: t.loading,
|
|
71
|
+
disabled: t.disabled,
|
|
72
|
+
onClick: n[0] || (n[0] = (e) => l.$emit("click"))
|
|
73
|
+
}, null, 8, ["label", "loading", "disabled"]),
|
|
74
|
+
t.disabled ? (m(), s("div", F, y(t.hint), 1)) : g("", !0)
|
|
75
|
+
], 64);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
}), _ = { class: "flex items-center gap-8" }, $ = ["aria-label"], P = /* @__PURE__ */ c({
|
|
79
|
+
__name: "PasscodePinField",
|
|
80
|
+
props: {
|
|
81
|
+
modelValue: {},
|
|
82
|
+
masked: { type: Boolean },
|
|
83
|
+
length: { default: 4 },
|
|
84
|
+
toggleLabel: {}
|
|
85
|
+
},
|
|
86
|
+
emits: ["update:modelValue", "update:masked", "complete"],
|
|
87
|
+
setup(t, { emit: l }) {
|
|
88
|
+
const n = l;
|
|
89
|
+
return (o, e) => {
|
|
90
|
+
const a = u("FmPinField"), i = u("FmIcon");
|
|
91
|
+
return m(), s("div", _, [
|
|
92
|
+
r(a, {
|
|
93
|
+
"model-value": t.modelValue,
|
|
94
|
+
length: t.length,
|
|
95
|
+
masked: t.masked,
|
|
96
|
+
"onUpdate:modelValue": e[0] || (e[0] = (d) => n("update:modelValue", d)),
|
|
97
|
+
onComplete: e[1] || (e[1] = (d) => n("complete", d)),
|
|
98
|
+
onFocus: e[2] || (e[2] = (d) => n("update:masked", !1))
|
|
99
|
+
}, null, 8, ["model-value", "length", "masked"]),
|
|
100
|
+
v("button", {
|
|
101
|
+
type: "button",
|
|
102
|
+
class: "flex items-center justify-center rounded-full p-4 hover:bg-fm-color-neutral-gray-100",
|
|
103
|
+
"aria-label": t.toggleLabel,
|
|
104
|
+
onClick: e[3] || (e[3] = (d) => n("update:masked", !t.masked))
|
|
105
|
+
}, [
|
|
106
|
+
r(i, {
|
|
107
|
+
name: t.masked ? "visibility" : "visibility_off",
|
|
108
|
+
size: "md",
|
|
109
|
+
class: "text-fm-color-neutral-gray-300"
|
|
110
|
+
}, null, 8, ["name"])
|
|
111
|
+
], 8, $)
|
|
112
|
+
]);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
export {
|
|
117
|
+
P as _,
|
|
118
|
+
k as a,
|
|
119
|
+
x as b,
|
|
120
|
+
C as c,
|
|
121
|
+
I as d,
|
|
122
|
+
B as e,
|
|
123
|
+
V as p,
|
|
124
|
+
R as r,
|
|
125
|
+
f as s
|
|
126
|
+
};
|