@feedmepos/mf-hrm-portal 2.3.4-dev → 2.4.0
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-C_F98cwM.js → ApprovalCodeList-D62tXKEd.js} +15 -14
- package/dist/AuditLogList-DQOdhFJm.js +2021 -0
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BDT1AfXa.js +438 -0
- package/dist/EmployeeList-Bd211chl.js +776 -0
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CUBQnkkY.js +45 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
- package/dist/{GrantUserList-BZGwZLsp.js → GrantUserList-DaUUILOT.js} +16 -15
- package/dist/{Main-CvVhcEJ-.js → Main-B95BdgQd.js} +5 -5
- package/dist/Main-CvGjvEQL.js +96 -0
- package/dist/{Main-iG516Bly.js → Main-Dh3E2cEf.js} +11 -11
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
- package/dist/{PermissionSetList-COn_Nrzd.js → PermissionSetList-BIzlo_EV.js} +102 -100
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BYYiW77c.js +4181 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CSYNrTGr.js +35 -0
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
- package/dist/RoleList-QJV3cGvV.js +740 -0
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DsKfRa5Z.js +544 -0
- package/dist/ScheduleGeneralPage-D6NPsdrU.js +811 -0
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-kYGNELLb.js +2556 -0
- package/dist/SchedulePage-CO_ZP2QD.js +19446 -0
- package/dist/SchedulePositionPage-DFjWfRwI.js +282 -0
- package/dist/SelectFilter-B94Z_Fat.js +263 -0
- package/dist/TeamMemberList-BbGMw0jg.js +1150 -0
- package/dist/{TimesheetList-DoNzT6xQ.js → TimesheetList-DiTCj2H7.js} +11 -11
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-n8cnb0Zw.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-B97k3KNz.js} +4 -4
- package/dist/{app-BYPvZve5.js → app-BRlNuQIz.js} +11579 -6690
- package/dist/app.js +3 -3
- package/dist/{approval-code-CeijALXj.js → approval-code-D6eLRwC7.js} +4 -4
- package/dist/{dayjs.min-CS0wjvq4.js → dayjs.min-BaLuYA95.js} +13 -13
- package/dist/{employee-DH4Wibqh.js → employee-DF_QGtpu.js} +71 -67
- package/dist/{grant-user-C0ko4LW8.js → grant-user-CdkuTYlZ.js} +2 -2
- package/dist/{iteration-Cnj0KTDr.js → iteration-t4kb_i13.js} +1 -1
- package/dist/{lodash-DAd2V4v-.js → lodash-Dv0NUeUP.js} +1 -1
- package/dist/object-Dwyg2LgX.js +16 -0
- package/dist/restaurant-D2q9eNtu.js +2685 -0
- package/dist/{role-DSu9cpI6.js → role-y253W1Ep.js} +20 -22
- package/dist/{rule-BmRzz26L.js → rule-DaFOMP6z.js} +164 -172
- package/dist/src/api/audit-log/index.d.ts +6 -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/composables/useTenant.d.ts +11 -0
- package/dist/src/helpers/string.d.ts +1 -10
- package/dist/src/router/courtGuard.d.ts +4 -0
- package/dist/src/router/shared.d.ts +3 -2
- package/dist/src/stores/approval-code.d.ts +1 -1
- package/dist/src/stores/employee.d.ts +14 -14
- package/dist/src/stores/grant-user.d.ts +1 -1
- package/dist/src/stores/permission-assignment.d.ts +2 -2
- package/dist/src/stores/permission-set.d.ts +2 -2
- package/dist/src/stores/restaurant.d.ts +9 -9
- package/dist/src/stores/role.d.ts +2 -2
- package/dist/src/stores/team.d.ts +2 -32
- package/dist/src/stores/timesheet.d.ts +2 -2
- 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 +532 -0
- package/dist/src/views/audit-log/pos-row.d.ts +27 -0
- package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
- package/dist/src/views/hr/locales/index.d.ts +4 -24
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +2 -29
- 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 -48
- 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/string-VNuQNweN.js +15 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BL4Iv-0s.js → useAppStore-CIPpnfP7.js} +1 -1
- package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
- package/dist/{useLoading-BEIlprgm.js → useLoading-BRCeBVXP.js} +1 -1
- package/dist/useMessage-_ywT_N9X.js +17 -0
- package/dist/useReportPermissions-Bveud3kc.js +80 -0
- package/package.json +8 -6
- package/dist/AuditLogList-CRQjG28b.js +0 -1777
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BA4pgKNh.js +0 -459
- package/dist/EmployeeList-DurHeTfl.js +0 -907
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BDGewUFD.js +0 -90
- package/dist/Main-DZ_LJKco.js +0 -101
- package/dist/MyPosProfile-C8iBUFAt.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-C1k42T7U.js +0 -4243
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DAbgu49T.js +0 -1831
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-CoWKz1qm.js +0 -547
- package/dist/RoleList-C5f_ulk9.js +0 -274
- package/dist/SelectFilter-ATOm0hdn.js +0 -269
- package/dist/TeamMemberList-DCSbXFdg.js +0 -2085
- package/dist/member-grant-BaABegLK.js +0 -55
- package/dist/restaurant-CNsV-2OE.js +0 -45
- package/dist/src/api/my-pos-profile/index.d.ts +0 -5
- package/dist/src/api/sso-provider/index.d.ts +0 -5
- package/dist/src/api/staff-invite/index.d.ts +0 -16
- package/dist/src/components/form/SegmentedTabs.vue.d.ts +0 -23
- package/dist/src/composables/useMenuAccess.d.ts +0 -56
- package/dist/src/composables/useSsoProviders.d.ts +0 -19
- package/dist/src/composables/useStaffInviteProviders.d.ts +0 -8
- 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 -28
- package/dist/src/helpers/staff-invite.d.ts +0 -54
- 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/sso-provider.d.ts +0 -10
- 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 -51
- package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -44
- 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/useReportPermissions-BhiSxQCh.js +0 -82
- /package/dist/src/{views/my-pos-profile/MyPosProfile.vue.d.ts → components/layout/SchedulePromoBanner.vue.d.ts} +0 -0
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import * as enUS from './en-US.json';
|
|
2
|
-
export type AppMessagesSchema = typeof enUS;
|
|
3
|
-
export declare const i18nMessages: {
|
|
4
|
-
'en-US': {
|
|
5
|
-
myPosProfile: {
|
|
6
|
-
title: string;
|
|
7
|
-
subtitle: string;
|
|
8
|
-
table: {
|
|
9
|
-
columns: {
|
|
10
|
-
name: string;
|
|
11
|
-
contact: string;
|
|
12
|
-
restaurant: string;
|
|
13
|
-
role: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
passcode: {
|
|
17
|
-
title: string;
|
|
18
|
-
updated: string;
|
|
19
|
-
updatedJustNow: string;
|
|
20
|
-
show: string;
|
|
21
|
-
hide: string;
|
|
22
|
-
change: string;
|
|
23
|
-
revealFailed: string;
|
|
24
|
-
};
|
|
25
|
-
change: {
|
|
26
|
-
title: string;
|
|
27
|
-
message: string;
|
|
28
|
-
failed: string;
|
|
29
|
-
exhausted: string;
|
|
30
|
-
inProgress: string;
|
|
31
|
-
incomplete: string;
|
|
32
|
-
};
|
|
33
|
-
changed: {
|
|
34
|
-
title: string;
|
|
35
|
-
message: string;
|
|
36
|
-
done: string;
|
|
37
|
-
};
|
|
38
|
-
manageAccount: {
|
|
39
|
-
message: string;
|
|
40
|
-
link: string;
|
|
41
|
-
failed: string;
|
|
42
|
-
};
|
|
43
|
-
noPosUser: {
|
|
44
|
-
title: string;
|
|
45
|
-
description: string;
|
|
46
|
-
};
|
|
47
|
-
loadFailed: string;
|
|
48
|
-
shared: {
|
|
49
|
-
message: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
'zh-CN': {
|
|
54
|
-
myPosProfile: {
|
|
55
|
-
title: string;
|
|
56
|
-
subtitle: string;
|
|
57
|
-
table: {
|
|
58
|
-
columns: {
|
|
59
|
-
name: string;
|
|
60
|
-
contact: string;
|
|
61
|
-
restaurant: string;
|
|
62
|
-
role: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
passcode: {
|
|
66
|
-
title: string;
|
|
67
|
-
updated: string;
|
|
68
|
-
updatedJustNow: string;
|
|
69
|
-
show: string;
|
|
70
|
-
hide: string;
|
|
71
|
-
change: string;
|
|
72
|
-
revealFailed: string;
|
|
73
|
-
};
|
|
74
|
-
change: {
|
|
75
|
-
title: string;
|
|
76
|
-
message: string;
|
|
77
|
-
failed: string;
|
|
78
|
-
exhausted: string;
|
|
79
|
-
inProgress: string;
|
|
80
|
-
incomplete: string;
|
|
81
|
-
};
|
|
82
|
-
changed: {
|
|
83
|
-
title: string;
|
|
84
|
-
message: string;
|
|
85
|
-
done: string;
|
|
86
|
-
};
|
|
87
|
-
manageAccount: {
|
|
88
|
-
message: string;
|
|
89
|
-
link: string;
|
|
90
|
-
failed: string;
|
|
91
|
-
};
|
|
92
|
-
noPosUser: {
|
|
93
|
-
title: string;
|
|
94
|
-
description: string;
|
|
95
|
-
};
|
|
96
|
-
loadFailed: string;
|
|
97
|
-
shared: {
|
|
98
|
-
message: string;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
'th-TH': {
|
|
103
|
-
myPosProfile: {
|
|
104
|
-
title: string;
|
|
105
|
-
subtitle: string;
|
|
106
|
-
table: {
|
|
107
|
-
columns: {
|
|
108
|
-
name: string;
|
|
109
|
-
contact: string;
|
|
110
|
-
restaurant: string;
|
|
111
|
-
role: string;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
passcode: {
|
|
115
|
-
title: string;
|
|
116
|
-
updated: string;
|
|
117
|
-
updatedJustNow: string;
|
|
118
|
-
show: string;
|
|
119
|
-
hide: string;
|
|
120
|
-
change: string;
|
|
121
|
-
revealFailed: string;
|
|
122
|
-
};
|
|
123
|
-
change: {
|
|
124
|
-
title: string;
|
|
125
|
-
message: string;
|
|
126
|
-
failed: string;
|
|
127
|
-
exhausted: string;
|
|
128
|
-
inProgress: string;
|
|
129
|
-
incomplete: string;
|
|
130
|
-
};
|
|
131
|
-
changed: {
|
|
132
|
-
title: string;
|
|
133
|
-
message: string;
|
|
134
|
-
done: string;
|
|
135
|
-
};
|
|
136
|
-
manageAccount: {
|
|
137
|
-
message: string;
|
|
138
|
-
link: string;
|
|
139
|
-
failed: string;
|
|
140
|
-
};
|
|
141
|
-
noPosUser: {
|
|
142
|
-
title: string;
|
|
143
|
-
description: string;
|
|
144
|
-
};
|
|
145
|
-
loadFailed: string;
|
|
146
|
-
shared: {
|
|
147
|
-
message: string;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
'zh-Hant': {
|
|
152
|
-
myPosProfile: {
|
|
153
|
-
title: string;
|
|
154
|
-
subtitle: string;
|
|
155
|
-
table: {
|
|
156
|
-
columns: {
|
|
157
|
-
name: string;
|
|
158
|
-
contact: string;
|
|
159
|
-
restaurant: string;
|
|
160
|
-
role: string;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
passcode: {
|
|
164
|
-
title: string;
|
|
165
|
-
updated: string;
|
|
166
|
-
updatedJustNow: string;
|
|
167
|
-
show: string;
|
|
168
|
-
hide: string;
|
|
169
|
-
change: string;
|
|
170
|
-
revealFailed: string;
|
|
171
|
-
};
|
|
172
|
-
change: {
|
|
173
|
-
title: string;
|
|
174
|
-
message: string;
|
|
175
|
-
failed: string;
|
|
176
|
-
exhausted: string;
|
|
177
|
-
inProgress: string;
|
|
178
|
-
incomplete: string;
|
|
179
|
-
};
|
|
180
|
-
changed: {
|
|
181
|
-
title: string;
|
|
182
|
-
message: string;
|
|
183
|
-
done: string;
|
|
184
|
-
};
|
|
185
|
-
manageAccount: {
|
|
186
|
-
message: string;
|
|
187
|
-
link: string;
|
|
188
|
-
failed: string;
|
|
189
|
-
};
|
|
190
|
-
noPosUser: {
|
|
191
|
-
title: string;
|
|
192
|
-
description: string;
|
|
193
|
-
};
|
|
194
|
-
loadFailed: string;
|
|
195
|
-
shared: {
|
|
196
|
-
message: string;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { RawRule } from '@casl/ability';
|
|
2
|
-
import { type PropType } from 'vue';
|
|
3
|
-
import { FdoPermissionRule } from '@feedmepos/core/entity';
|
|
4
|
-
import { type MemberGrantPayload } from '@/helpers/member-grant';
|
|
5
|
-
import { type IFdtoPermissionPosUser } from '@/types/team';
|
|
6
|
-
/** The saved grant being edited. A new `id` resets the form. */
|
|
7
|
-
export interface MemberGrantInitialValue {
|
|
8
|
-
id: string;
|
|
9
|
-
isOwner?: boolean;
|
|
10
|
-
name: string;
|
|
11
|
-
permissions: RawRule[] | FdoPermissionRule[];
|
|
12
|
-
permissionSetIds: string[];
|
|
13
|
-
posUser?: IFdtoPermissionPosUser;
|
|
14
|
-
posUserId?: string;
|
|
15
|
-
}
|
|
16
|
-
declare function isModified(): boolean;
|
|
17
|
-
declare function readGrantData(): MemberGrantPayload;
|
|
18
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
19
|
-
initialValue: {
|
|
20
|
-
type: PropType<MemberGrantInitialValue | null>;
|
|
21
|
-
};
|
|
22
|
-
/** Name to fall back on when neither the saved grant nor the POS user has one. */
|
|
23
|
-
fallbackName: {
|
|
24
|
-
type: StringConstructor;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
loading: {
|
|
28
|
-
type: BooleanConstructor;
|
|
29
|
-
default: boolean;
|
|
30
|
-
};
|
|
31
|
-
}>, {
|
|
32
|
-
readGrantData: typeof readGrantData;
|
|
33
|
-
isModified: typeof isModified;
|
|
34
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
-
initialValue: {
|
|
36
|
-
type: PropType<MemberGrantInitialValue | null>;
|
|
37
|
-
};
|
|
38
|
-
/** Name to fall back on when neither the saved grant nor the POS user has one. */
|
|
39
|
-
fallbackName: {
|
|
40
|
-
type: StringConstructor;
|
|
41
|
-
default: string;
|
|
42
|
-
};
|
|
43
|
-
loading: {
|
|
44
|
-
type: BooleanConstructor;
|
|
45
|
-
default: boolean;
|
|
46
|
-
};
|
|
47
|
-
}>> & Readonly<{}>, {
|
|
48
|
-
loading: boolean;
|
|
49
|
-
fallbackName: string;
|
|
50
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
51
|
-
export default _default;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
|
-
import type { HrmRestaurant } from '@/types/restaurant';
|
|
3
|
-
import type { Role } from '@/types/role';
|
|
4
|
-
import type { IFdtoPermissionPosUserRole } from '@/types/team';
|
|
5
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
-
modelValue: {
|
|
7
|
-
type: PropType<IFdtoPermissionPosUserRole[]>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
restaurants: {
|
|
11
|
-
type: PropType<HrmRestaurant[]>;
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
roles: {
|
|
15
|
-
type: PropType<Role[]>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
isRoleUsable: {
|
|
19
|
-
type: PropType<(role: Role) => boolean>;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
23
|
-
"update:modelValue": (roles: IFdtoPermissionPosUserRole[]) => any;
|
|
24
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
-
modelValue: {
|
|
26
|
-
type: PropType<IFdtoPermissionPosUserRole[]>;
|
|
27
|
-
required: true;
|
|
28
|
-
};
|
|
29
|
-
restaurants: {
|
|
30
|
-
type: PropType<HrmRestaurant[]>;
|
|
31
|
-
required: true;
|
|
32
|
-
};
|
|
33
|
-
roles: {
|
|
34
|
-
type: PropType<Role[]>;
|
|
35
|
-
required: true;
|
|
36
|
-
};
|
|
37
|
-
isRoleUsable: {
|
|
38
|
-
type: PropType<(role: Role) => boolean>;
|
|
39
|
-
required: true;
|
|
40
|
-
};
|
|
41
|
-
}>> & Readonly<{
|
|
42
|
-
"onUpdate:modelValue"?: ((roles: IFdtoPermissionPosUserRole[]) => any) | undefined;
|
|
43
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
44
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
|
-
import type { IFdtoStaffInviteLookup, IFdtoStaffInviteProvider, StaffInviteMatch } from '@/types/staff-invite';
|
|
3
|
-
/** What the Member details card contributes to an invite. */
|
|
4
|
-
export interface MemberDetails {
|
|
5
|
-
provider: string;
|
|
6
|
-
match: StaffInviteMatch;
|
|
7
|
-
mobile?: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
displayName: string;
|
|
10
|
-
employeeId?: string;
|
|
11
|
-
}
|
|
12
|
-
declare function readDetails(): MemberDetails;
|
|
13
|
-
declare function isModified(): boolean;
|
|
14
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
15
|
-
providers: {
|
|
16
|
-
type: PropType<IFdtoStaffInviteProvider[]>;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
}>, {
|
|
20
|
-
readDetails: typeof readDetails;
|
|
21
|
-
isModified: typeof isModified;
|
|
22
|
-
/** Add is blocked while the key belongs to someone already. */
|
|
23
|
-
hasExisting: import("vue").ComputedRef<boolean>;
|
|
24
|
-
providerLabel: import("vue").ComputedRef<string>;
|
|
25
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
26
|
-
"update-existing": (existing: IFdtoStaffInviteLookup) => any;
|
|
27
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
-
providers: {
|
|
29
|
-
type: PropType<IFdtoStaffInviteProvider[]>;
|
|
30
|
-
required: true;
|
|
31
|
-
};
|
|
32
|
-
}>> & Readonly<{
|
|
33
|
-
"onUpdate-existing"?: ((existing: IFdtoStaffInviteLookup) => any) | undefined;
|
|
34
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { TeamMemberStatus } from '@/types/team';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
name: string;
|
|
4
|
-
status: TeamMemberStatus;
|
|
5
|
-
email?: string;
|
|
6
|
-
phoneNumber?: string;
|
|
7
|
-
};
|
|
8
|
-
declare var __VLS_4: {};
|
|
9
|
-
type __VLS_Slots = {} & {
|
|
10
|
-
default?: (props: typeof __VLS_4) => any;
|
|
11
|
-
};
|
|
12
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
14
|
-
export default _default;
|
|
15
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
-
new (): {
|
|
17
|
-
$slots: S;
|
|
18
|
-
};
|
|
19
|
-
};
|
package/dist/string-DZQ1uNjn.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
function a(r, t) {
|
|
2
|
-
let n = "", e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
3
|
-
const l = e.length;
|
|
4
|
-
for (let i = 0; i < r; i++)
|
|
5
|
-
n += e.charAt(Math.floor(Math.random() * l));
|
|
6
|
-
return n;
|
|
7
|
-
}
|
|
8
|
-
function c(r, t, n = 2) {
|
|
9
|
-
if (r === null) return t.all;
|
|
10
|
-
if (r.length === 0) return t.none;
|
|
11
|
-
const e = r.slice(0, n).join(", ");
|
|
12
|
-
return r.length > n ? `${e} ${t.more(r.length - n)}` : e;
|
|
13
|
-
}
|
|
14
|
-
function o(r) {
|
|
15
|
-
const t = (r ?? "").trim().split(/\s+/).filter(Boolean);
|
|
16
|
-
return t.length === 0 ? "" : t.length === 1 ? t[0].slice(0, 2) : t[0].charAt(0) + t[1].charAt(0);
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
o as n,
|
|
20
|
-
a as r,
|
|
21
|
-
c as s
|
|
22
|
-
};
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, ref as M, resolveComponent as l, createBlock as a, openBlock as t, withCtx as i, createElementVNode as g, renderSlot as b, createCommentVNode as k, withModifiers as $, nextTick as I, createElementBlock as f, normalizeClass as h, createTextVNode as V, toDisplayString as C, computed as w, Fragment as B, renderList as F, createVNode as S } from "vue";
|
|
2
|
-
import { useBreakpoints as z, useDialog as D } from "@feedmepos/ui-library";
|
|
3
|
-
import { useI18n as N } from "@feedmepos/mf-common";
|
|
4
|
-
const A = /* @__PURE__ */ x({
|
|
5
|
-
__name: "BottomSheetMenu",
|
|
6
|
-
setup(o) {
|
|
7
|
-
const e = M(!1);
|
|
8
|
-
async function r() {
|
|
9
|
-
await I(), e.value = !e.value;
|
|
10
|
-
}
|
|
11
|
-
return (n, s) => {
|
|
12
|
-
const y = l("FmButton"), _ = l("FmBottomSheet");
|
|
13
|
-
return t(), a(_, {
|
|
14
|
-
modelValue: e.value,
|
|
15
|
-
"onUpdate:modelValue": s[1] || (s[1] = (d) => e.value = d),
|
|
16
|
-
"dismiss-away": "",
|
|
17
|
-
"no-header": "",
|
|
18
|
-
"z-index": 110
|
|
19
|
-
}, {
|
|
20
|
-
"bottom-sheet-button": i(() => [
|
|
21
|
-
n.$slots.button ? k("", !0) : (t(), a(y, {
|
|
22
|
-
key: 0,
|
|
23
|
-
icon: "more_vert",
|
|
24
|
-
variant: "tertiary",
|
|
25
|
-
onClick: $(r, ["stop"])
|
|
26
|
-
})),
|
|
27
|
-
b(n.$slots, "button")
|
|
28
|
-
]),
|
|
29
|
-
default: i(() => [
|
|
30
|
-
g("div", {
|
|
31
|
-
onClick: s[0] || (s[0] = (d) => e.value = !1)
|
|
32
|
-
}, [
|
|
33
|
-
b(n.$slots, "default")
|
|
34
|
-
])
|
|
35
|
-
]),
|
|
36
|
-
_: 3
|
|
37
|
-
}, 8, ["modelValue"]);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
}), E = { class: "py-8 px-12 hover:bg-fm-color-neutral-gray-100" }, T = /* @__PURE__ */ x({
|
|
41
|
-
__name: "BottomSheetMenuItem",
|
|
42
|
-
props: {
|
|
43
|
-
label: {},
|
|
44
|
-
icon: {},
|
|
45
|
-
disabled: { type: Boolean },
|
|
46
|
-
itemClass: {}
|
|
47
|
-
},
|
|
48
|
-
setup(o) {
|
|
49
|
-
const e = o;
|
|
50
|
-
return (r, n) => {
|
|
51
|
-
const s = l("FmIcon");
|
|
52
|
-
return t(), f("div", E, [
|
|
53
|
-
r.$slots.content ? k("", !0) : (t(), f("div", {
|
|
54
|
-
key: 0,
|
|
55
|
-
class: h(["flex items-center", {
|
|
56
|
-
"text-fm-color-typo-disabled": e.disabled,
|
|
57
|
-
"cursor-pointer": !e.disabled,
|
|
58
|
-
"cursor-not-allowed": e.disabled,
|
|
59
|
-
[e.itemClass || ""]: e.itemClass && !e.disabled
|
|
60
|
-
}])
|
|
61
|
-
}, [
|
|
62
|
-
o.icon ? (t(), a(s, {
|
|
63
|
-
key: 0,
|
|
64
|
-
name: o.icon
|
|
65
|
-
}, null, 8, ["name"])) : k("", !0),
|
|
66
|
-
V(" " + C(o.label), 1)
|
|
67
|
-
], 2)),
|
|
68
|
-
b(r.$slots, "content")
|
|
69
|
-
]);
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
}), U = /* @__PURE__ */ x({
|
|
73
|
-
__name: "ResponsiveContextMenu",
|
|
74
|
-
props: {
|
|
75
|
-
items: {}
|
|
76
|
-
},
|
|
77
|
-
setup(o) {
|
|
78
|
-
const e = z(), r = w(() => e.breakpoints.value.xs);
|
|
79
|
-
return (n, s) => {
|
|
80
|
-
const y = l("FmButton"), _ = l("FmMenuItem"), d = l("FmMenu");
|
|
81
|
-
return r.value ? (t(), a(A, { key: 0 }, {
|
|
82
|
-
default: i(() => [
|
|
83
|
-
(t(!0), f(B, null, F(o.items, ({ icon: c, label: m, disabled: p, itemClass: u, onClick: v }) => (t(), a(T, {
|
|
84
|
-
key: m,
|
|
85
|
-
icon: c,
|
|
86
|
-
label: m,
|
|
87
|
-
disabled: p,
|
|
88
|
-
itemClass: u,
|
|
89
|
-
onClick: () => {
|
|
90
|
-
!p && (v == null || v());
|
|
91
|
-
}
|
|
92
|
-
}, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
|
|
93
|
-
]),
|
|
94
|
-
_: 1
|
|
95
|
-
})) : (t(), a(d, {
|
|
96
|
-
key: 1,
|
|
97
|
-
"stop-click-propagation": "",
|
|
98
|
-
shift: !0
|
|
99
|
-
}, {
|
|
100
|
-
"menu-button": i(() => [
|
|
101
|
-
S(y, {
|
|
102
|
-
type: "button",
|
|
103
|
-
variant: "tertiary",
|
|
104
|
-
icon: "more_vert",
|
|
105
|
-
"text-color": "neutral-gray-400",
|
|
106
|
-
size: "md"
|
|
107
|
-
})
|
|
108
|
-
]),
|
|
109
|
-
default: i(() => [
|
|
110
|
-
(t(!0), f(B, null, F(o.items, ({ label: c, disabled: m, itemClass: p, onClick: u }) => (t(), a(_, {
|
|
111
|
-
key: c,
|
|
112
|
-
disabled: m,
|
|
113
|
-
label: c,
|
|
114
|
-
onClick: () => {
|
|
115
|
-
!m && (u == null || u());
|
|
116
|
-
}
|
|
117
|
-
}, {
|
|
118
|
-
label: i(() => [
|
|
119
|
-
g("span", {
|
|
120
|
-
class: h(m ? "text-fm-color-typo-disabled" : p)
|
|
121
|
-
}, C(c), 3)
|
|
122
|
-
]),
|
|
123
|
-
_: 2
|
|
124
|
-
}, 1032, ["disabled", "label", "onClick"]))), 128))
|
|
125
|
-
]),
|
|
126
|
-
_: 1
|
|
127
|
-
}));
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
function j(o, e) {
|
|
132
|
-
const r = D(), { t: n } = N();
|
|
133
|
-
function s() {
|
|
134
|
-
o() ? r.open({
|
|
135
|
-
title: n("portalCommon.dismiss.title"),
|
|
136
|
-
message: n("portalCommon.dismiss.message"),
|
|
137
|
-
zIndex: 200,
|
|
138
|
-
primaryActions: {
|
|
139
|
-
text: n("portalCommon.dismiss.primaryActions"),
|
|
140
|
-
variant: "primary",
|
|
141
|
-
close: !0
|
|
142
|
-
},
|
|
143
|
-
secondaryActions: {
|
|
144
|
-
text: n("common.cancel"),
|
|
145
|
-
variant: "tertiary",
|
|
146
|
-
close: !0
|
|
147
|
-
}
|
|
148
|
-
}).onPrimary(() => {
|
|
149
|
-
e();
|
|
150
|
-
}) : e();
|
|
151
|
-
}
|
|
152
|
-
return s;
|
|
153
|
-
}
|
|
154
|
-
export {
|
|
155
|
-
U as _,
|
|
156
|
-
j as u
|
|
157
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { computed as r, ref as n } from "vue";
|
|
2
|
-
import { e as d } from "./iteration-Cnj0KTDr.js";
|
|
3
|
-
import { useCoreStore as h } from "@feedmepos/mf-common";
|
|
4
|
-
import { k as K } from "./rule-BmRzz26L.js";
|
|
5
|
-
import { D as g } from "./app-BYPvZve5.js";
|
|
6
|
-
const a = n([]), i = n(!1), l = n(!1), f = n(null), p = n(null), u = n(!1);
|
|
7
|
-
function k() {
|
|
8
|
-
const v = h();
|
|
9
|
-
async function m() {
|
|
10
|
-
var e;
|
|
11
|
-
const s = (e = v.currentBusiness.value) == null ? void 0 : e.id;
|
|
12
|
-
if (!s) return;
|
|
13
|
-
f.value !== s && (a.value = [], i.value = !1, l.value = !1, f.value = s, u.value = !1);
|
|
14
|
-
const o = localStorage.getItem("locale");
|
|
15
|
-
if (!(i.value && p.value === o)) {
|
|
16
|
-
if (l.value) {
|
|
17
|
-
u.value = !0;
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
l.value = !0;
|
|
21
|
-
try {
|
|
22
|
-
a.value = await K.fetchReportPermissions(
|
|
23
|
-
s,
|
|
24
|
-
o
|
|
25
|
-
), i.value = !0, p.value = o;
|
|
26
|
-
} catch (t) {
|
|
27
|
-
console.warn("Failed to fetch dynamic report permissions, keeping last known list:", t), i.value = !1;
|
|
28
|
-
} finally {
|
|
29
|
-
l.value = !1, u.value && (u.value = !1, await m());
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
const c = g.filter(
|
|
34
|
-
(s) => s.subject === d.F_RULE_SUBJECT.enum.report && s.conditions
|
|
35
|
-
), y = r(() => {
|
|
36
|
-
const s = new Set(
|
|
37
|
-
c.map((e) => {
|
|
38
|
-
const t = typeof e.conditions == "string" ? JSON.parse(e.conditions) : e.conditions;
|
|
39
|
-
return t == null ? void 0 : t.name;
|
|
40
|
-
})
|
|
41
|
-
), o = a.value.filter((e) => !s.has(e.permissionKey)).map((e) => ({
|
|
42
|
-
label: e.name,
|
|
43
|
-
subject: d.F_RULE_SUBJECT.enum.report,
|
|
44
|
-
actions: ["read"],
|
|
45
|
-
conditions: { name: e.permissionKey },
|
|
46
|
-
inverted: !1,
|
|
47
|
-
reason: ""
|
|
48
|
-
}));
|
|
49
|
-
return [...c, ...o];
|
|
50
|
-
}), R = r(() => {
|
|
51
|
-
const s = new Set(
|
|
52
|
-
c.map((o) => {
|
|
53
|
-
const e = typeof o.conditions == "string" ? JSON.parse(o.conditions) : o.conditions;
|
|
54
|
-
return e == null ? void 0 : e.name;
|
|
55
|
-
})
|
|
56
|
-
);
|
|
57
|
-
for (const o of a.value)
|
|
58
|
-
s.add(o.permissionKey);
|
|
59
|
-
return s;
|
|
60
|
-
}), S = r(() => {
|
|
61
|
-
const s = new Set(
|
|
62
|
-
c.map((e) => {
|
|
63
|
-
const t = typeof e.conditions == "string" ? JSON.parse(e.conditions) : e.conditions;
|
|
64
|
-
return t == null ? void 0 : t.name;
|
|
65
|
-
})
|
|
66
|
-
), o = /* @__PURE__ */ new Set();
|
|
67
|
-
for (const e of a.value)
|
|
68
|
-
s.has(e.permissionKey) || o.add(e.permissionKey);
|
|
69
|
-
return o;
|
|
70
|
-
});
|
|
71
|
-
return {
|
|
72
|
-
fetchReportPermissions: m,
|
|
73
|
-
allReportPermissions: y,
|
|
74
|
-
availableReportKeys: R,
|
|
75
|
-
customReportKeys: S,
|
|
76
|
-
isLoading: r(() => l.value),
|
|
77
|
-
isLoaded: r(() => i.value)
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
export {
|
|
81
|
-
k as u
|
|
82
|
-
};
|
|
File without changes
|