@feedmepos/mf-hrm-portal 2.3.2-dev → 2.3.2-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-xOyDG5ug.js → ApprovalCodeList-sHnINTik.js} +14 -15
- package/dist/AuditLogList-C9C2emU9.js +1950 -0
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Cixg_icC.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BbsPesWY.js} +2 -2
- package/dist/{EmployeeList-BG2KPvOB.js → EmployeeList-D4oy5hXz.js} +196 -208
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-Cl053Tg1.js +90 -0
- package/dist/{GrantUserList-CUkuf3VV.js → GrantUserList-LWpqhl-5.js} +15 -16
- package/dist/{Main-BcixH7R5.js → Main-BWKb-QIE.js} +11 -11
- package/dist/{Main-BSHf8gTE.js → Main-CVGiOYpC.js} +12 -11
- package/dist/{Main-Cg9SOzcz.js → Main-PBJjfzBg.js} +5 -5
- package/dist/{MyPosProfile-CN8Bj3aV.js → MyPosProfile-BQCBFMFw.js} +1 -1
- package/dist/{PermissionSetList-I3u2_qHR.js → PermissionSetList-D2qZVlF4.js} +32 -31
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BBoRXQPn.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ZSREAS1r.js} +927 -927
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DRGTxOMW.js +1831 -0
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-DFDTw0lj.js +547 -0
- package/dist/RoleList-DG0crFzW.js +274 -0
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cs0rhCa3.js +544 -0
- package/dist/ScheduleGeneralPage-C4J6jYtG.js +811 -0
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-3UqO6uPu.js +2557 -0
- package/dist/SchedulePage-ICzggri0.js +19458 -0
- package/dist/SchedulePositionPage-BshUCd_C.js +282 -0
- package/dist/SelectFilter-D9T0nFvG.js +264 -0
- package/dist/TeamMemberList-C970Iqlj.js +2086 -0
- package/dist/{TimesheetList-CECFKt7H.js → TimesheetList-nxhr0EWj.js} +10 -10
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RIyoAmeb.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BLqgALLe.js} +3 -3
- package/dist/{app-CdrnR_Pw.js → app-n6d4AmtP.js} +12373 -4651
- package/dist/app.js +1 -1
- package/dist/{approval-code-Bwvwehz9.js → approval-code-1j1OoXt1.js} +1 -1
- package/dist/{dayjs.min-BO8bcI17.js → dayjs.min-DdNivv4b.js} +26 -26
- package/dist/{employee-Dg-J9goA.js → employee-BlfleiCU.js} +40 -35
- package/dist/{grant-user-whFOaPZI.js → grant-user-BmTyexk3.js} +1 -1
- package/dist/{iteration-ZpERYj3o.js → iteration-y_jodvfN.js} +1 -1
- package/dist/{lodash-7SZBZ8VQ.js → lodash-B2eWEGH4.js} +1 -1
- package/dist/{member-grant-C46lvrh2.js → member-grant-CzZUdO_s.js} +2 -2
- package/dist/object-Dwyg2LgX.js +16 -0
- package/dist/restaurant-Dl6yx37M.js +51 -0
- package/dist/{role-C6hFKOfU.js → role-DfZi7Ssk.js} +3 -3
- package/dist/{rule-BlMymDXm.js → rule-ChmhcGgA.js} +13 -13
- package/dist/src/api/audit-log/index.d.ts +4 -0
- package/dist/src/api/employee/index.d.ts +2 -2
- package/dist/src/api/restaurant/index.d.ts +2 -0
- package/dist/src/api/schedule/index.d.ts +68 -0
- package/dist/src/api/sso-provider/index.d.ts +5 -0
- package/dist/src/api/staff-invite/index.d.ts +1 -2
- package/dist/src/components/AppForm.vue.d.ts +2 -2
- package/dist/src/components/CheckboxInput.vue.d.ts +2 -2
- package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
- package/dist/src/components/layout/SchedulePromoBanner.vue.d.ts +2 -0
- package/dist/src/components/layout/withScheduleShell.d.ts +10 -0
- package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
- package/dist/src/composables/useMessage.d.ts +8 -2
- package/dist/src/composables/useSsoProviders.d.ts +19 -0
- package/dist/src/composables/useStaffInviteProviders.d.ts +1 -12
- package/dist/src/helpers/pos-assignment-rows.d.ts +2 -0
- package/dist/src/helpers/staff-invite.d.ts +3 -0
- package/dist/src/router/shared.d.ts +3 -0
- package/dist/src/stores/employee.d.ts +12 -12
- package/dist/src/types/employee.d.ts +1 -0
- package/dist/src/types/schedule.d.ts +23 -0
- package/dist/src/types/sso-provider.d.ts +10 -0
- package/dist/src/views/audit-log/constants.d.ts +9 -30
- package/dist/src/views/audit-log/locales/index.d.ts +488 -0
- package/dist/src/views/audit-log/pos-row.d.ts +27 -0
- package/dist/src/views/hr/locales/index.d.ts +20 -0
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
- 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/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +25 -0
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +31 -0
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +29 -0
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +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/MemberGrantFields.vue.d.ts +2 -6
- package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
- package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -2
- package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +0 -2
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +0 -2
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CL6EEDuw.js → useAppStore-BPARQyvJ.js} +1 -1
- package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
- package/dist/{useLoading-BBjBUzGJ.js → useLoading-iPESFb6R.js} +1 -1
- package/dist/{useReportPermissions-Bg0fma6m.js → useReportPermissions-By-BoJZb.js} +5 -5
- package/package.json +5 -3
- package/dist/AuditLogList-Dd6HyFhk.js +0 -1777
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js +0 -45
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B5QDOF0L.js +0 -1840
- package/dist/RoleList-ALmAwN0U.js +0 -739
- package/dist/SelectFilter-ATOm0hdn.js +0 -269
- package/dist/TeamMemberList-DZfEnOs1.js +0 -2097
- package/dist/restaurant-CKhT6kgj.js +0 -45
- package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { defineComponent as Ve, computed as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useSnackbar as
|
|
4
|
-
import { S as fe
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as Ee, u as
|
|
7
|
-
import {
|
|
8
|
-
import { _ as
|
|
9
|
-
import { c as
|
|
10
|
-
import { u as
|
|
11
|
-
import { n as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { l as
|
|
15
|
-
import {
|
|
16
|
-
import { u as
|
|
17
|
-
import {
|
|
1
|
+
import { defineComponent as Ve, computed as k, resolveComponent as w, createElementBlock as O, openBlock as b, createElementVNode as m, createVNode as n, toDisplayString as N, Fragment as ke, renderList as Be, createCommentVNode as H, withKeys as Ie, withModifiers as oe, normalizeClass as be, ref as h, watch as re, renderSlot as je, unref as t, withCtx as x, createBlock as D, onUnmounted as Ge, isRef as Re, createTextVNode as he, resolveDynamicComponent as qe, h as pe } from "vue";
|
|
2
|
+
import { useI18n as Le, useCoreStore as He } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as $e, components as Me, useDialog as We, useBreakpoints as Je } from "@feedmepos/ui-library";
|
|
4
|
+
import { S as fe } from "./SelectFilter-D9T0nFvG.js";
|
|
5
|
+
import { _ as Qe, c as Ye, a as Ze } from "./app-n6d4AmtP.js";
|
|
6
|
+
import { _ as Ee, a as Fe, u as Xe, H as ea } from "./FormSection.vue_vue_type_script_setup_true_lang-Cl053Tg1.js";
|
|
7
|
+
import { _ as aa } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
8
|
+
import { _ as la } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
|
+
import { c as ta, b as sa, a as oa, p as ra, r as na, s as ia, _ as ua, d as da, e as Ue } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js";
|
|
10
|
+
import { u as ca } from "./useDebounce-B8ZPVS5C.js";
|
|
11
|
+
import { n as ma } from "./string-DZQ1uNjn.js";
|
|
12
|
+
import { u as Pe, E as pa } from "./employee-BlfleiCU.js";
|
|
13
|
+
import { u as Ae } from "./restaurant-Dl6yx37M.js";
|
|
14
|
+
import { l as fa } from "./lodash-B2eWEGH4.js";
|
|
15
|
+
import { u as va } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
16
|
+
import { u as De } from "./useLoading-iPESFb6R.js";
|
|
17
|
+
import { c as Se } from "./object-Dwyg2LgX.js";
|
|
18
|
+
import { u as _e } from "./role-DfZi7Ssk.js";
|
|
18
19
|
/* empty css */
|
|
19
|
-
const
|
|
20
|
+
const ya = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 space-y-16" }, ga = { class: "fm-typo-en-title-sm-600" }, ha = { class: "space-y-16" }, ba = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, _a = { class: "text-sm font-semibold text-fm-color-typo-primary" }, Va = { class: "text-sm font-semibold text-fm-color-typo-primary" }, ka = { class: "flex justify-self-end" }, xa = ["tabindex", "aria-disabled", "aria-label", "onClick", "onKeydown"], wa = /* @__PURE__ */ Ve({
|
|
20
21
|
__name: "OutletRoleAssignment",
|
|
21
22
|
props: {
|
|
22
23
|
modelValue: {},
|
|
@@ -32,49 +33,49 @@ const ha = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 spa
|
|
|
32
33
|
removeLabel: {}
|
|
33
34
|
},
|
|
34
35
|
emits: ["update:modelValue"],
|
|
35
|
-
setup(
|
|
36
|
-
const l =
|
|
36
|
+
setup(R, { emit: Z }) {
|
|
37
|
+
const l = R, _ = Z, f = k(() => ({
|
|
37
38
|
isRoleUsable: l.isRoleUsable,
|
|
38
39
|
isRestaurantLocked: l.isRestaurantLocked
|
|
39
40
|
}));
|
|
40
41
|
function L(y) {
|
|
41
|
-
return
|
|
42
|
+
return sa(l.restaurants, l.modelValue, y);
|
|
42
43
|
}
|
|
43
44
|
function X(y) {
|
|
44
|
-
return
|
|
45
|
+
return oa(l.roles, y.restaurantId, y.roleId, f.value);
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function V(y) {
|
|
47
48
|
return l.isRestaurantLocked(y);
|
|
48
49
|
}
|
|
49
50
|
function ee(y, U) {
|
|
50
|
-
const v = l.modelValue[y],
|
|
51
|
-
M[y] = { ...v, restaurantId: U, roleId:
|
|
51
|
+
const v = l.modelValue[y], I = ra(l.roles, U, v.roleId, f.value), M = [...l.modelValue];
|
|
52
|
+
M[y] = { ...v, restaurantId: U, roleId: I }, _("update:modelValue", M);
|
|
52
53
|
}
|
|
53
54
|
function u(y, U) {
|
|
54
|
-
const v = l.modelValue[y],
|
|
55
|
-
|
|
55
|
+
const v = l.modelValue[y], I = [...l.modelValue];
|
|
56
|
+
I[y] = { ...v, roleId: U }, _("update:modelValue", I);
|
|
56
57
|
}
|
|
57
58
|
function E() {
|
|
58
|
-
|
|
59
|
+
_("update:modelValue", [...l.modelValue, l.createRow()]);
|
|
59
60
|
}
|
|
60
61
|
function F(y) {
|
|
61
|
-
|
|
62
|
+
_(
|
|
62
63
|
"update:modelValue",
|
|
63
|
-
|
|
64
|
+
na(l.modelValue, y, l.createRow, f.value)
|
|
64
65
|
);
|
|
65
66
|
}
|
|
66
|
-
const K =
|
|
67
|
+
const K = k(() => ta(l.restaurants, l.modelValue));
|
|
67
68
|
return (y, U) => {
|
|
68
|
-
const v =
|
|
69
|
-
return
|
|
70
|
-
m("div",
|
|
71
|
-
m("div",
|
|
72
|
-
m("div",
|
|
73
|
-
m("div",
|
|
74
|
-
m("div",
|
|
69
|
+
const v = w("FmSelect"), I = w("FmIcon"), M = w("FmButton");
|
|
70
|
+
return b(), O("div", ya, [
|
|
71
|
+
m("div", ga, N(R.title), 1),
|
|
72
|
+
m("div", ha, [
|
|
73
|
+
m("div", ba, [
|
|
74
|
+
m("div", _a, N(R.restaurantLabel), 1),
|
|
75
|
+
m("div", Va, N(R.roleLabel), 1),
|
|
75
76
|
U[0] || (U[0] = m("div", null, null, -1))
|
|
76
77
|
]),
|
|
77
|
-
(
|
|
78
|
+
(b(!0), O(ke, null, Be(R.modelValue, (p, s) => (b(), O("div", {
|
|
78
79
|
key: `${p.restaurantId || "new"}-${s}`,
|
|
79
80
|
class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] items-center gap-16"
|
|
80
81
|
}, [
|
|
@@ -85,41 +86,41 @@ const ha = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 spa
|
|
|
85
86
|
multiselect: !1,
|
|
86
87
|
searchable: "",
|
|
87
88
|
"search-debounce": 300,
|
|
88
|
-
placeholder:
|
|
89
|
-
disabled:
|
|
90
|
-
"onUpdate:modelValue": (
|
|
89
|
+
placeholder: R.restaurantLabel,
|
|
90
|
+
disabled: V(p.restaurantId),
|
|
91
|
+
"onUpdate:modelValue": (S) => ee(s, S)
|
|
91
92
|
}, null, 8, ["model-value", "items", "placeholder", "disabled", "onUpdate:modelValue"]),
|
|
92
93
|
n(v, {
|
|
93
94
|
class: "min-w-0",
|
|
94
95
|
"model-value": p.roleId,
|
|
95
96
|
items: X(p),
|
|
96
97
|
multiselect: !1,
|
|
97
|
-
placeholder:
|
|
98
|
-
disabled: !p.restaurantId ||
|
|
99
|
-
"onUpdate:modelValue": (
|
|
98
|
+
placeholder: R.roleLabel,
|
|
99
|
+
disabled: !p.restaurantId || V(p.restaurantId),
|
|
100
|
+
"onUpdate:modelValue": (S) => u(s, S)
|
|
100
101
|
}, null, 8, ["model-value", "items", "placeholder", "disabled", "onUpdate:modelValue"]),
|
|
101
|
-
m("div",
|
|
102
|
-
|
|
102
|
+
m("div", ka, [
|
|
103
|
+
R.modelValue.length > 1 ? (b(), O("div", {
|
|
103
104
|
key: 0,
|
|
104
105
|
role: "button",
|
|
105
|
-
tabindex:
|
|
106
|
-
"aria-disabled":
|
|
106
|
+
tabindex: V(p.restaurantId) ? -1 : 0,
|
|
107
|
+
"aria-disabled": V(p.restaurantId),
|
|
107
108
|
class: be(["inline-flex h-40 w-40 shrink-0 items-center justify-center rounded-lg text-fm-color-neutral-gray-400 transition-colors hover:bg-fm-color-neutral-gray-100 focus:outline-none focus:ring-2 focus:ring-fm-color-primary disabled:cursor-not-allowed disabled:text-fm-color-neutral-gray-200 disabled:hover:bg-transparent", {
|
|
108
|
-
"cursor-pointer": !
|
|
109
|
-
"pointer-events-none":
|
|
109
|
+
"cursor-pointer": !V(p.restaurantId),
|
|
110
|
+
"pointer-events-none": V(p.restaurantId)
|
|
110
111
|
}]),
|
|
111
|
-
"aria-label":
|
|
112
|
-
onClick: oe((
|
|
112
|
+
"aria-label": R.removeLabel,
|
|
113
|
+
onClick: oe((S) => F(s), ["stop"]),
|
|
113
114
|
onKeydown: [
|
|
114
|
-
Ie(oe((
|
|
115
|
-
Ie(oe((
|
|
115
|
+
Ie(oe((S) => F(s), ["prevent", "stop"]), ["enter"]),
|
|
116
|
+
Ie(oe((S) => F(s), ["prevent", "stop"]), ["space"])
|
|
116
117
|
]
|
|
117
118
|
}, [
|
|
118
|
-
n(
|
|
119
|
+
n(I, {
|
|
119
120
|
name: "delete",
|
|
120
121
|
size: "md"
|
|
121
122
|
})
|
|
122
|
-
], 42,
|
|
123
|
+
], 42, xa)) : H("", !0)
|
|
123
124
|
])
|
|
124
125
|
]))), 128))
|
|
125
126
|
]),
|
|
@@ -129,7 +130,7 @@ const ha = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 spa
|
|
|
129
130
|
"text-color": "primary",
|
|
130
131
|
"border-color": "primary",
|
|
131
132
|
"prepend-icon": "add",
|
|
132
|
-
label:
|
|
133
|
+
label: R.addLabel,
|
|
133
134
|
size: "md",
|
|
134
135
|
disabled: !K.value,
|
|
135
136
|
onClick: oe(E, ["stop"])
|
|
@@ -137,20 +138,7 @@ const ha = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 spa
|
|
|
137
138
|
]);
|
|
138
139
|
};
|
|
139
140
|
}
|
|
140
|
-
})
|
|
141
|
-
function Ce(b) {
|
|
142
|
-
return JSON.parse(JSON.stringify(b));
|
|
143
|
-
}
|
|
144
|
-
function Se(b) {
|
|
145
|
-
if (typeof structuredClone > "u")
|
|
146
|
-
return Ce(b);
|
|
147
|
-
try {
|
|
148
|
-
return structuredClone(Ge(b));
|
|
149
|
-
} catch {
|
|
150
|
-
return Ce(b);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class: "fm-typo-en-title-md-600" }, Ua = { class: "space-y-40" }, Ca = { class: "flex flex-row gap-16" }, Sa = { class: "space-y-16" }, La = { class: "flex gap-8 items-center justify-start" }, Le = 4, $a = /* @__PURE__ */ Ve({
|
|
141
|
+
}), Ia = { class: "flex w-full items-center justify-between" }, Ra = { class: "fm-typo-en-title-md-600" }, Ea = { class: "space-y-40" }, Fa = { class: "flex flex-row gap-16" }, Ua = { class: "space-y-16" }, Sa = { class: "flex gap-8 items-center justify-start" }, Ce = 4, Ca = /* @__PURE__ */ Ve({
|
|
154
142
|
__name: "EmployeeForm",
|
|
155
143
|
props: {
|
|
156
144
|
roleErrorMessage: {
|
|
@@ -159,8 +147,8 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
159
147
|
}
|
|
160
148
|
},
|
|
161
149
|
emits: ["submitted"],
|
|
162
|
-
setup(
|
|
163
|
-
const
|
|
150
|
+
setup(R, { expose: Z, emit: l }) {
|
|
151
|
+
const _ = _e(), f = Ae(), L = Pe(), X = $e(), V = De(X), ee = l, { t: u } = Le(), E = h(!1), F = h(!0);
|
|
164
152
|
function K() {
|
|
165
153
|
return {
|
|
166
154
|
restaurantId: "",
|
|
@@ -175,14 +163,14 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
175
163
|
isMasterUser: r.isMasterUser ?? !1,
|
|
176
164
|
name: r.name ?? "",
|
|
177
165
|
passcode: r.passcode ?? "",
|
|
178
|
-
restaurants: r.restaurants.length > 0 ? r.restaurants.map(({ restaurantId:
|
|
179
|
-
restaurantId:
|
|
166
|
+
restaurants: r.restaurants.length > 0 ? r.restaurants.map(({ restaurantId: C, roleId: P }) => ({
|
|
167
|
+
restaurantId: C,
|
|
180
168
|
roleId: P
|
|
181
169
|
})) : [K()]
|
|
182
170
|
};
|
|
183
171
|
}
|
|
184
172
|
const U = (d) => {
|
|
185
|
-
s.value = y(d), p.value = Se(s.value),
|
|
173
|
+
s.value = y(d), p.value = Se(s.value), S.value = d == null ? void 0 : d._id, A.value = [], s.value.passcode ? (A.value = s.value.passcode.split(""), B.value = !0) : B.value = !1, F.value = !d, E.value = !0;
|
|
186
174
|
};
|
|
187
175
|
function v() {
|
|
188
176
|
return {
|
|
@@ -193,24 +181,24 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
193
181
|
restaurants: [K()]
|
|
194
182
|
};
|
|
195
183
|
}
|
|
196
|
-
const
|
|
197
|
-
() =>
|
|
184
|
+
const I = k(() => F.value ? u("hr.employee.form.add") : u("hr.employee.form.update")), M = k(() => F.value ? u("common.create") : u("common.update")), p = h(v()), s = h(v()), S = h(void 0), T = k(
|
|
185
|
+
() => ia(s.value.restaurants)
|
|
198
186
|
);
|
|
199
187
|
function ne(d) {
|
|
200
188
|
var r;
|
|
201
|
-
return d ? !((r = f.restaurants.value.find((
|
|
189
|
+
return d ? !((r = f.restaurants.value.find((C) => C._id === d)) != null && r.managable) : !1;
|
|
202
190
|
}
|
|
203
191
|
function ie(d) {
|
|
204
192
|
return d.isUsable;
|
|
205
193
|
}
|
|
206
|
-
const A = h([]), B = h(!1),
|
|
194
|
+
const A = h([]), B = h(!1), W = h(!1), ae = h(!1), ue = k(() => T.value.length > 0);
|
|
207
195
|
async function j() {
|
|
208
196
|
if (ue.value)
|
|
209
197
|
try {
|
|
210
|
-
const d = await
|
|
211
|
-
() =>
|
|
198
|
+
const d = await V.custom(
|
|
199
|
+
() => pa.generateEmployeePasscode({
|
|
212
200
|
restaurantIds: T.value,
|
|
213
|
-
excludePosUserId:
|
|
201
|
+
excludePosUserId: S.value
|
|
214
202
|
}),
|
|
215
203
|
{ isLoading: ae }
|
|
216
204
|
);
|
|
@@ -218,8 +206,8 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
218
206
|
} catch {
|
|
219
207
|
}
|
|
220
208
|
}
|
|
221
|
-
const
|
|
222
|
-
() => !
|
|
209
|
+
const J = va(
|
|
210
|
+
() => !fa.isEqual(s.value, p.value),
|
|
223
211
|
() => {
|
|
224
212
|
E.value = !1;
|
|
225
213
|
}
|
|
@@ -237,7 +225,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
237
225
|
}
|
|
238
226
|
async function le() {
|
|
239
227
|
var P, z;
|
|
240
|
-
const d = p.value, r =
|
|
228
|
+
const d = p.value, r = S.value, C = {
|
|
241
229
|
user: {
|
|
242
230
|
name: s.value.name,
|
|
243
231
|
passcode: s.value.passcode
|
|
@@ -249,7 +237,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
249
237
|
}))
|
|
250
238
|
};
|
|
251
239
|
if (!s.value.isMasterUser)
|
|
252
|
-
await L.updateEmployee(r,
|
|
240
|
+
await L.updateEmployee(r, C);
|
|
253
241
|
else {
|
|
254
242
|
const $ = {
|
|
255
243
|
user: {
|
|
@@ -267,21 +255,21 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
267
255
|
}
|
|
268
256
|
}
|
|
269
257
|
async function Q() {
|
|
270
|
-
F.value ? await
|
|
258
|
+
F.value ? await V.minor(
|
|
271
259
|
async () => {
|
|
272
260
|
await ve();
|
|
273
261
|
},
|
|
274
262
|
{
|
|
275
263
|
successMessage: u("hr.employee.create.successMessage"),
|
|
276
|
-
isLoading:
|
|
264
|
+
isLoading: W
|
|
277
265
|
}
|
|
278
|
-
) : await
|
|
266
|
+
) : await V.minor(
|
|
279
267
|
async () => {
|
|
280
268
|
await le();
|
|
281
269
|
},
|
|
282
270
|
{
|
|
283
271
|
successMessage: u("hr.employee.update.successMessage"),
|
|
284
|
-
isLoading:
|
|
272
|
+
isLoading: W
|
|
285
273
|
}
|
|
286
274
|
), ee("submitted"), E.value = !1;
|
|
287
275
|
}
|
|
@@ -293,61 +281,61 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
293
281
|
show: E,
|
|
294
282
|
trigger: U
|
|
295
283
|
}), (d, r) => {
|
|
296
|
-
const
|
|
297
|
-
return
|
|
298
|
-
|
|
284
|
+
const C = w("FmIcon"), P = w("FmSwitch"), z = w("FmTextField"), $ = w("FmFormGroup"), G = w("fm-button"), de = w("fm-side-sheet");
|
|
285
|
+
return b(), O(ke, null, [
|
|
286
|
+
je(d.$slots, "default", { trigger: U }),
|
|
299
287
|
n(de, {
|
|
300
288
|
id: "unit-form",
|
|
301
289
|
modelValue: E.value,
|
|
302
290
|
"onUpdate:modelValue": r[9] || (r[9] = (o) => E.value = o),
|
|
303
|
-
"is-container": t(
|
|
291
|
+
"is-container": t(Me).FmForm,
|
|
304
292
|
"is-container-props": {
|
|
305
293
|
onValidationSuccess: Q,
|
|
306
294
|
blameFormChildOnValidationFailed: !0
|
|
307
295
|
},
|
|
308
296
|
"max-width": 960,
|
|
309
297
|
"close-button": !1,
|
|
310
|
-
"onOn:clickedAway": t(
|
|
298
|
+
"onOn:clickedAway": t(J)
|
|
311
299
|
}, {
|
|
312
|
-
"side-sheet-header":
|
|
313
|
-
m("div",
|
|
314
|
-
m("p",
|
|
315
|
-
n(
|
|
300
|
+
"side-sheet-header": x(() => [
|
|
301
|
+
m("div", Ia, [
|
|
302
|
+
m("p", Ra, N(I.value), 1),
|
|
303
|
+
n(C, {
|
|
316
304
|
name: "close",
|
|
317
305
|
size: "md",
|
|
318
306
|
class: "cursor-pointer",
|
|
319
|
-
onClick: t(
|
|
307
|
+
onClick: t(J)
|
|
320
308
|
}, null, 8, ["onClick"])
|
|
321
309
|
])
|
|
322
310
|
]),
|
|
323
|
-
"side-sheet-footer":
|
|
324
|
-
m("div",
|
|
311
|
+
"side-sheet-footer": x(() => [
|
|
312
|
+
m("div", Sa, [
|
|
325
313
|
n(G, {
|
|
326
314
|
label: M.value,
|
|
327
315
|
size: "lg",
|
|
328
316
|
type: "submit",
|
|
329
317
|
variant: "primary",
|
|
330
|
-
disabled:
|
|
318
|
+
disabled: W.value
|
|
331
319
|
}, null, 8, ["label", "disabled"]),
|
|
332
320
|
n(G, {
|
|
333
321
|
label: t(u)("common.cancel"),
|
|
334
322
|
size: "lg",
|
|
335
323
|
variant: "tertiary",
|
|
336
|
-
disabled:
|
|
337
|
-
onClick: t(
|
|
324
|
+
disabled: W.value,
|
|
325
|
+
onClick: t(J)
|
|
338
326
|
}, null, 8, ["label", "disabled", "onClick"])
|
|
339
327
|
])
|
|
340
328
|
]),
|
|
341
|
-
default:
|
|
342
|
-
m("div",
|
|
343
|
-
n(
|
|
329
|
+
default: x(() => [
|
|
330
|
+
m("div", Ea, [
|
|
331
|
+
n(Ee, {
|
|
344
332
|
title: t(u)("hr.employee.form.employeeSetting")
|
|
345
333
|
}, {
|
|
346
|
-
default:
|
|
347
|
-
n(
|
|
334
|
+
default: x(() => [
|
|
335
|
+
n(Fe, {
|
|
348
336
|
label: t(u)("hr.employee.form.masterUserConfig")
|
|
349
337
|
}, {
|
|
350
|
-
default:
|
|
338
|
+
default: x(() => [
|
|
351
339
|
n(P, {
|
|
352
340
|
modelValue: s.value.isMasterUser,
|
|
353
341
|
"onUpdate:modelValue": r[0] || (r[0] = (o) => s.value.isMasterUser = o),
|
|
@@ -359,8 +347,8 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
359
347
|
]),
|
|
360
348
|
_: 1
|
|
361
349
|
}, 8, ["label"]),
|
|
362
|
-
m("div",
|
|
363
|
-
s.value.isMasterUser ? (
|
|
350
|
+
m("div", Fa, [
|
|
351
|
+
s.value.isMasterUser ? (b(), D(z, {
|
|
364
352
|
key: 0,
|
|
365
353
|
modelValue: s.value.code,
|
|
366
354
|
"onUpdate:modelValue": r[1] || (r[1] = (o) => s.value.code = o),
|
|
@@ -374,32 +362,32 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
374
362
|
rules: [(o) => !!o || t(u)("hr.employee.form.required")]
|
|
375
363
|
}, null, 8, ["modelValue", "label", "rules"])
|
|
376
364
|
]),
|
|
377
|
-
n(
|
|
365
|
+
n(Fe, {
|
|
378
366
|
label: t(u)("hr.employee.form.passcode")
|
|
379
367
|
}, {
|
|
380
|
-
default:
|
|
381
|
-
m("div",
|
|
368
|
+
default: x(() => [
|
|
369
|
+
m("div", Ua, [
|
|
382
370
|
n($, {
|
|
383
371
|
modelValue: A.value,
|
|
384
372
|
"onUpdate:modelValue": r[6] || (r[6] = (o) => A.value = o),
|
|
385
373
|
rules: [
|
|
386
|
-
(o) => (o == null ? void 0 : o.filter((Y) => !!Y).length) !==
|
|
374
|
+
(o) => (o == null ? void 0 : o.filter((Y) => !!Y).length) !== Ce ? t(u)("hr.employee.form.passcodeRequired") : !0
|
|
387
375
|
]
|
|
388
376
|
}, {
|
|
389
|
-
default:
|
|
390
|
-
n(
|
|
377
|
+
default: x(() => [
|
|
378
|
+
n(ua, {
|
|
391
379
|
modelValue: A.value,
|
|
392
380
|
"onUpdate:modelValue": r[3] || (r[3] = (o) => A.value = o),
|
|
393
381
|
masked: B.value,
|
|
394
382
|
"onUpdate:masked": r[4] || (r[4] = (o) => B.value = o),
|
|
395
|
-
length:
|
|
383
|
+
length: Ce,
|
|
396
384
|
"toggle-label": t(u)("hr.employee.form.passcodeToggleVisibility"),
|
|
397
385
|
onComplete: r[5] || (r[5] = (o) => s.value.passcode = o)
|
|
398
386
|
}, null, 8, ["modelValue", "masked", "toggle-label"])
|
|
399
387
|
]),
|
|
400
388
|
_: 1
|
|
401
389
|
}, 8, ["modelValue", "rules"]),
|
|
402
|
-
n(
|
|
390
|
+
n(da, {
|
|
403
391
|
label: t(u)("hr.employee.form.passcodeGenerate"),
|
|
404
392
|
hint: t(u)("hr.employee.form.passcodeSelectOutletFirst"),
|
|
405
393
|
loading: ae.value,
|
|
@@ -413,8 +401,8 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
413
401
|
]),
|
|
414
402
|
_: 1
|
|
415
403
|
}, 8, ["title"]),
|
|
416
|
-
n(
|
|
417
|
-
default:
|
|
404
|
+
n(Ee, null, {
|
|
405
|
+
default: x(() => [
|
|
418
406
|
n($, {
|
|
419
407
|
modelValue: s.value.restaurants,
|
|
420
408
|
"onUpdate:modelValue": r[8] || (r[8] = (o) => s.value.restaurants = o),
|
|
@@ -424,12 +412,12 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
424
412
|
(o) => o.every((Y) => Y.restaurantId && Y.roleId) || t(u)("hr.employee.form.roleRequired")
|
|
425
413
|
]
|
|
426
414
|
}, {
|
|
427
|
-
default:
|
|
428
|
-
n(
|
|
415
|
+
default: x(() => [
|
|
416
|
+
n(wa, {
|
|
429
417
|
modelValue: s.value.restaurants,
|
|
430
418
|
"onUpdate:modelValue": r[7] || (r[7] = (o) => s.value.restaurants = o),
|
|
431
419
|
restaurants: t(f).restaurants.value,
|
|
432
|
-
roles: t(
|
|
420
|
+
roles: t(_).roles.value,
|
|
433
421
|
"is-role-usable": ie,
|
|
434
422
|
"is-restaurant-locked": ne,
|
|
435
423
|
"create-row": K,
|
|
@@ -452,48 +440,48 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
452
440
|
], 64);
|
|
453
441
|
};
|
|
454
442
|
}
|
|
455
|
-
}),
|
|
443
|
+
}), La = {
|
|
456
444
|
class: "space-y-8"
|
|
457
|
-
},
|
|
445
|
+
}, $a = {
|
|
458
446
|
key: 0,
|
|
459
447
|
class: "flex w-full items-start justify-between"
|
|
460
|
-
},
|
|
448
|
+
}, Ma = {
|
|
461
449
|
class: "flex items-start gap-8"
|
|
462
|
-
},
|
|
450
|
+
}, Pa = {
|
|
463
451
|
class: "flex"
|
|
464
|
-
},
|
|
452
|
+
}, Aa = {
|
|
465
453
|
key: 1,
|
|
466
454
|
class: "space-y-4"
|
|
467
|
-
},
|
|
455
|
+
}, Da = {
|
|
468
456
|
class: "px-16"
|
|
469
|
-
},
|
|
457
|
+
}, Na = {
|
|
470
458
|
class: "px-16 flex items-start gap-8"
|
|
471
|
-
},
|
|
459
|
+
}, Oa = {
|
|
472
460
|
class: "flex h-full flex-col overflow-auto"
|
|
473
|
-
},
|
|
461
|
+
}, Ka = {
|
|
474
462
|
class: "space-y-4"
|
|
475
|
-
},
|
|
463
|
+
}, za = {
|
|
476
464
|
class: "fm-typo-en-body-lg-600"
|
|
477
|
-
},
|
|
465
|
+
}, Ta = {
|
|
478
466
|
key: 0,
|
|
479
467
|
class: "mr-4"
|
|
480
|
-
},
|
|
468
|
+
}, Ba = {
|
|
481
469
|
class: "text-fm-color-typo-secondary"
|
|
482
|
-
},
|
|
470
|
+
}, ja = {
|
|
483
471
|
class: "line-clamp-2"
|
|
484
|
-
},
|
|
472
|
+
}, Ga = {
|
|
485
473
|
class: "font-bold"
|
|
486
|
-
}, q = 200,
|
|
474
|
+
}, q = 200, qa = /* @__PURE__ */ Ve({
|
|
487
475
|
__name: "EmployeeList",
|
|
488
|
-
setup(
|
|
476
|
+
setup(R, {
|
|
489
477
|
expose: Z
|
|
490
478
|
}) {
|
|
491
479
|
const {
|
|
492
480
|
t: l
|
|
493
|
-
} =
|
|
494
|
-
currentBusiness:
|
|
481
|
+
} = Le(), _ = h(), f = Pe(), L = Ae(), X = He(), {
|
|
482
|
+
currentBusiness: V,
|
|
495
483
|
sessionUser: ee
|
|
496
|
-
} = X, u = _e(), E =
|
|
484
|
+
} = X, u = _e(), E = k(() => L.isLoading.value), F = h(u.roles.value.length === 0);
|
|
497
485
|
re(L.restaurants, (e) => {
|
|
498
486
|
if (e.length > 0 && f.listEmployees.value.length > 0) {
|
|
499
487
|
const a = new Map(e.map((i) => [i._id, i]));
|
|
@@ -510,7 +498,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
510
498
|
}));
|
|
511
499
|
}
|
|
512
500
|
});
|
|
513
|
-
const K =
|
|
501
|
+
const K = k(() => L.restaurants.value.map((e) => ({
|
|
514
502
|
label: `${e.profile.code ? `${e.profile.code} - ` : ""}${e.profile.name}`,
|
|
515
503
|
value: e._id
|
|
516
504
|
}))), y = re(u.roles, (e) => {
|
|
@@ -527,14 +515,14 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
527
515
|
}
|
|
528
516
|
y();
|
|
529
517
|
}
|
|
530
|
-
}), U =
|
|
518
|
+
}), U = k(() => f.listEmployees.value), {
|
|
531
519
|
searchKey: v
|
|
532
|
-
} =
|
|
520
|
+
} = Xe(), I = h(""), M = k(() => U.value), p = k(() => f.totalEmployees.value), s = h(1), S = k(() => f.isLoading.value), T = h(!1), ne = k(() => {
|
|
533
521
|
var e;
|
|
534
522
|
return JSON.stringify({
|
|
535
|
-
businessId: ((e =
|
|
536
|
-
search:
|
|
537
|
-
restaurantIds: [...
|
|
523
|
+
businessId: ((e = V.value) == null ? void 0 : e._id) ?? "",
|
|
524
|
+
search: I.value.trim(),
|
|
525
|
+
restaurantIds: [..._.value ?? []].sort(),
|
|
538
526
|
roleIds: [...o.value ?? []].sort()
|
|
539
527
|
});
|
|
540
528
|
}), ie = (e) => {
|
|
@@ -544,14 +532,14 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
544
532
|
function B(e) {
|
|
545
533
|
return [{
|
|
546
534
|
label: l("hr.employee.form.update"),
|
|
547
|
-
onClick: () =>
|
|
535
|
+
onClick: () => C(e)
|
|
548
536
|
}, {
|
|
549
537
|
label: l("hr.employee.remove.title"),
|
|
550
538
|
onClick: () => z(e),
|
|
551
539
|
itemClass: "text-fm-color-typo-error"
|
|
552
540
|
}];
|
|
553
541
|
}
|
|
554
|
-
const
|
|
542
|
+
const W = ({
|
|
555
543
|
employee: e,
|
|
556
544
|
className: a = ""
|
|
557
545
|
}) => n("div", {
|
|
@@ -559,7 +547,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
559
547
|
onClick: (i) => {
|
|
560
548
|
i.stopPropagation();
|
|
561
549
|
}
|
|
562
|
-
}, [n(
|
|
550
|
+
}, [n(aa, {
|
|
563
551
|
items: B(e)
|
|
564
552
|
}, null)]), ae = [{
|
|
565
553
|
accessorKey: "code",
|
|
@@ -573,9 +561,9 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
573
561
|
const a = e.row.original;
|
|
574
562
|
return n("div", {
|
|
575
563
|
class: "flex items-center gap-8"
|
|
576
|
-
}, [n(
|
|
564
|
+
}, [n(Me.FmAvatar, {
|
|
577
565
|
name: a.name,
|
|
578
|
-
initials:
|
|
566
|
+
initials: ma(a.name),
|
|
579
567
|
size: "sm",
|
|
580
568
|
class: "shrink-0"
|
|
581
569
|
}, null), n("span", {
|
|
@@ -588,7 +576,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
588
576
|
header: () => l("hr.employee.columns.restaurants"),
|
|
589
577
|
enableSorting: !1,
|
|
590
578
|
cell(e) {
|
|
591
|
-
return E.value || F.value ? pe(
|
|
579
|
+
return E.value || F.value ? pe(Ue) : e.row.original.restaurants.map((a, i) => {
|
|
592
580
|
const g = ie(a);
|
|
593
581
|
return pe("div", {
|
|
594
582
|
key: a.restaurantId || i
|
|
@@ -602,7 +590,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
602
590
|
header: () => l("hr.employee.columns.assignedRole"),
|
|
603
591
|
enableSorting: !1,
|
|
604
592
|
cell(e) {
|
|
605
|
-
return E.value || F.value ? pe(
|
|
593
|
+
return E.value || F.value ? pe(Ue, {
|
|
606
594
|
width: "120px"
|
|
607
595
|
}) : e.row.original.restaurants.map((a, i) => {
|
|
608
596
|
const g = A(a);
|
|
@@ -624,7 +612,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
624
612
|
headerContentClass: "-mx-16"
|
|
625
613
|
},
|
|
626
614
|
cell(e) {
|
|
627
|
-
return
|
|
615
|
+
return W({
|
|
628
616
|
employee: e.row.original,
|
|
629
617
|
className: "flex w-full items-center justify-end"
|
|
630
618
|
});
|
|
@@ -640,7 +628,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
640
628
|
row: {
|
|
641
629
|
original: e
|
|
642
630
|
}
|
|
643
|
-
}) : e[a.accessorKey]]))]), j =
|
|
631
|
+
}) : e[a.accessorKey]]))]), j = $e(), J = We(), ve = De(j), le = h(!1), Q = h(), d = h();
|
|
644
632
|
function r(e) {
|
|
645
633
|
const a = e.isRestricted;
|
|
646
634
|
return a && j.open({
|
|
@@ -650,13 +638,13 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
650
638
|
type: "error"
|
|
651
639
|
}), a;
|
|
652
640
|
}
|
|
653
|
-
const
|
|
641
|
+
const C = (e) => {
|
|
654
642
|
var i;
|
|
655
643
|
e && r(e) || (i = d.value) == null || i.trigger(e);
|
|
656
644
|
}, {
|
|
657
645
|
breakpoints: P
|
|
658
|
-
} =
|
|
659
|
-
r(e) ||
|
|
646
|
+
} = Je(), z = (e) => {
|
|
647
|
+
r(e) || J.open({
|
|
660
648
|
title: l("hr.employee.remove.title"),
|
|
661
649
|
message: l("hr.employee.remove.message", {
|
|
662
650
|
name: e.name
|
|
@@ -683,14 +671,14 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
683
671
|
name: e.name
|
|
684
672
|
})
|
|
685
673
|
}).catch(() => {
|
|
686
|
-
}),
|
|
674
|
+
}), J.close();
|
|
687
675
|
});
|
|
688
676
|
}, $ = h("");
|
|
689
677
|
function G() {
|
|
690
678
|
var e;
|
|
691
679
|
(e = d.value) == null || e.trigger();
|
|
692
680
|
}
|
|
693
|
-
const de =
|
|
681
|
+
const de = k(() => _e().roles.value.map((e) => ({
|
|
694
682
|
label: e.name,
|
|
695
683
|
value: e._id
|
|
696
684
|
}))), o = h();
|
|
@@ -713,8 +701,8 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
713
701
|
await f.readEmployeesPage({
|
|
714
702
|
limit: q,
|
|
715
703
|
offset: (e - 1) * q,
|
|
716
|
-
search:
|
|
717
|
-
restaurantIds: (a =
|
|
704
|
+
search: I.value.trim() || void 0,
|
|
705
|
+
restaurantIds: (a = _.value) != null && a.length ? _.value : void 0,
|
|
718
706
|
roleIds: (i = o.value) != null && i.length ? o.value : void 0
|
|
719
707
|
});
|
|
720
708
|
} catch (g) {
|
|
@@ -726,29 +714,29 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
726
714
|
}
|
|
727
715
|
async function ye() {
|
|
728
716
|
var a;
|
|
729
|
-
if (!((a =
|
|
717
|
+
if (!((a = V.value) != null && a._id)) return;
|
|
730
718
|
await ce(s.value);
|
|
731
719
|
const e = Math.max(1, Math.ceil(p.value / q));
|
|
732
720
|
s.value > e && (s.value = e, await ce(s.value));
|
|
733
721
|
}
|
|
734
|
-
async function
|
|
722
|
+
async function Ne() {
|
|
735
723
|
var e, a;
|
|
736
724
|
return await f.readAllEmployeesPage({
|
|
737
|
-
search:
|
|
738
|
-
restaurantIds: (e =
|
|
725
|
+
search: I.value.trim() || void 0,
|
|
726
|
+
restaurantIds: (e = _.value) != null && e.length ? _.value : void 0,
|
|
739
727
|
roleIds: (a = o.value) != null && a.length ? o.value : void 0
|
|
740
728
|
}, p.value);
|
|
741
729
|
}
|
|
742
|
-
const
|
|
743
|
-
|
|
730
|
+
const Oe = ca(v, () => {
|
|
731
|
+
I.value = v.value;
|
|
744
732
|
}, 300);
|
|
745
|
-
|
|
733
|
+
Ge(Oe);
|
|
746
734
|
let ge = !1;
|
|
747
|
-
async function
|
|
735
|
+
async function Ke({
|
|
748
736
|
pageIndex: e
|
|
749
737
|
}) {
|
|
750
738
|
var a;
|
|
751
|
-
if ((a =
|
|
739
|
+
if ((a = V.value) != null && a._id && !ge && !(e === 0 && s.value === 1 && M.value.length > 0)) {
|
|
752
740
|
ge = !0, s.value = e + 1;
|
|
753
741
|
try {
|
|
754
742
|
await ce(s.value);
|
|
@@ -759,22 +747,22 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
759
747
|
}
|
|
760
748
|
re(ne, async () => {
|
|
761
749
|
var e;
|
|
762
|
-
s.value = 1, T.value = !1, (e =
|
|
750
|
+
s.value = 1, T.value = !1, (e = V.value) != null && e._id && (await ce(1), T.value = !0);
|
|
763
751
|
}, {
|
|
764
752
|
immediate: !0
|
|
765
753
|
}), re(() => Q.value && Q.value.restaurants, (e) => {
|
|
766
754
|
e && e.length > 0 && ($.value = "");
|
|
767
755
|
});
|
|
768
|
-
const
|
|
756
|
+
const ze = k(() => p.value > q);
|
|
769
757
|
return Z({
|
|
770
758
|
create: G,
|
|
771
759
|
filteredEmployees: M,
|
|
772
|
-
exportEmployees:
|
|
773
|
-
getHasPaginationFooter: () =>
|
|
760
|
+
exportEmployees: Ne,
|
|
761
|
+
getHasPaginationFooter: () => ze.value
|
|
774
762
|
}), (e, a) => {
|
|
775
763
|
var xe, we;
|
|
776
|
-
const i =
|
|
777
|
-
return
|
|
764
|
+
const i = w("FmButton"), g = w("FmTooltip"), te = w("FmSearch"), se = w("FmListItem"), Te = w("FmTable");
|
|
765
|
+
return b(), O(ke, null, [n(Ca, {
|
|
778
766
|
ref_key: "employeeFormRef",
|
|
779
767
|
ref: d,
|
|
780
768
|
modelValue: Q.value,
|
|
@@ -782,13 +770,13 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
782
770
|
"role-error-message": $.value,
|
|
783
771
|
class: "gap-8",
|
|
784
772
|
onSubmitted: ye
|
|
785
|
-
}, null, 8, ["modelValue", "role-error-message"]), m("div",
|
|
773
|
+
}, null, 8, ["modelValue", "role-error-message"]), m("div", La, [t(P).xs ? (b(), O("div", Aa, [m("div", Da, [n(te, {
|
|
786
774
|
modelValue: t(v),
|
|
787
775
|
"onUpdate:modelValue": a[4] || (a[4] = (c) => Re(v) ? v.value = c : null),
|
|
788
776
|
placeholder: t(l)("hr.employee.search.placeholder")
|
|
789
|
-
}, null, 8, ["modelValue", "placeholder"])]), n(
|
|
790
|
-
modelValue:
|
|
791
|
-
"onUpdate:modelValue": a[5] || (a[5] = (c) =>
|
|
777
|
+
}, null, 8, ["modelValue", "placeholder"])]), n(ea), m("div", Na, [n(fe, {
|
|
778
|
+
modelValue: _.value,
|
|
779
|
+
"onUpdate:modelValue": a[5] || (a[5] = (c) => _.value = c),
|
|
792
780
|
multiple: "",
|
|
793
781
|
items: K.value,
|
|
794
782
|
variant: "dark",
|
|
@@ -803,9 +791,9 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
803
791
|
variant: "dark",
|
|
804
792
|
"selected-prefix": t(l)("hr.employee.filter.selected_role_prefix"),
|
|
805
793
|
placeholder: t(l)("hr.employee.filter.role_placeholder")
|
|
806
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])])) : (
|
|
807
|
-
modelValue:
|
|
808
|
-
"onUpdate:modelValue": a[1] || (a[1] = (c) =>
|
|
794
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])])) : (b(), O("div", $a, [m("div", Ma, [n(fe, {
|
|
795
|
+
modelValue: _.value,
|
|
796
|
+
"onUpdate:modelValue": a[1] || (a[1] = (c) => _.value = c),
|
|
809
797
|
multiple: "",
|
|
810
798
|
items: K.value,
|
|
811
799
|
variant: "dark",
|
|
@@ -820,11 +808,11 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
820
808
|
items: de.value,
|
|
821
809
|
"selected-prefix": t(l)("hr.employee.filter.selected_role_prefix"),
|
|
822
810
|
placeholder: t(l)("hr.employee.filter.role_placeholder")
|
|
823
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])]), m("div",
|
|
811
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])]), m("div", Pa, [(xe = t(ee)) != null && xe.role.isAdmin ? (b(), D(g, {
|
|
824
812
|
key: 0,
|
|
825
813
|
content: t(l)("hr.employee.sync.tooltip")
|
|
826
814
|
}, {
|
|
827
|
-
default:
|
|
815
|
+
default: x(() => [n(i, {
|
|
828
816
|
icon: "refresh",
|
|
829
817
|
label: t(l)("hr.employee.sync.tooltip"),
|
|
830
818
|
variant: "tertiary",
|
|
@@ -837,43 +825,43 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
837
825
|
autofocus: "",
|
|
838
826
|
class: "pl-4 w-[320px]",
|
|
839
827
|
placeholder: t(l)("hr.employee.search.placeholder")
|
|
840
|
-
}, null, 8, ["modelValue", "placeholder"])])])), (we = t(
|
|
828
|
+
}, null, 8, ["modelValue", "placeholder"])])])), (we = t(V)) != null && we._id ? (b(), D(Qe, {
|
|
841
829
|
key: 2
|
|
842
830
|
}, {
|
|
843
|
-
default:
|
|
831
|
+
default: x(() => [m("div", Oa, [!T.value && t(f).isLoading.value ? (b(), D(Ye, {
|
|
844
832
|
key: 0
|
|
845
|
-
})) : H("", !0), T.value ? (
|
|
833
|
+
})) : H("", !0), T.value ? (b(), D(la, {
|
|
846
834
|
key: 1,
|
|
847
835
|
"is-loading": t(f).isLoading.value,
|
|
848
836
|
"is-empty": p.value === 0,
|
|
849
837
|
title: t(l)("hr.employee.noData.title"),
|
|
850
838
|
subtitle: t(l)("hr.employee.noData.subtitle")
|
|
851
839
|
}, {
|
|
852
|
-
default:
|
|
840
|
+
default: x(() => [(b(), D(Te, {
|
|
853
841
|
key: ne.value,
|
|
854
842
|
class: be(["employee-list-table h-full", {
|
|
855
|
-
"employee-list-table--pagination-loading":
|
|
843
|
+
"employee-list-table--pagination-loading": S.value
|
|
856
844
|
}]),
|
|
857
845
|
"column-defs": ae,
|
|
858
846
|
"row-data": M.value,
|
|
859
847
|
"page-size": q,
|
|
860
848
|
"page-count": Math.ceil(p.value / q),
|
|
861
849
|
"row-count": p.value,
|
|
862
|
-
"fetch-fn":
|
|
850
|
+
"fetch-fn": Ke,
|
|
863
851
|
"hide-footer": p.value <= q,
|
|
864
852
|
loading: t(f).isLoading.value,
|
|
865
853
|
virtual: !1,
|
|
866
854
|
"pin-header-row": "",
|
|
867
|
-
onRowClick: a[7] || (a[7] = (c) =>
|
|
855
|
+
onRowClick: a[7] || (a[7] = (c) => C(c.original))
|
|
868
856
|
}, {
|
|
869
|
-
"list-row":
|
|
857
|
+
"list-row": x((c) => [t(P).xs ? (b(), D(se, {
|
|
870
858
|
key: 0,
|
|
871
859
|
class: be(["py-12 px-16 items-center justify-between", {
|
|
872
860
|
"border-t border-fm-color-neutral-gray-100": c.index > 0
|
|
873
861
|
}]),
|
|
874
|
-
onClick: (me) =>
|
|
862
|
+
onClick: (me) => C(c.original)
|
|
875
863
|
}, {
|
|
876
|
-
default:
|
|
864
|
+
default: x(() => [m("div", Ka, [m("p", za, [c.original.code ? (b(), O("span", Ta, N(c.original.code) + ".", 1)) : H("", !0), he(N(c.original.name), 1)]), m("div", Ba, [m("p", ja, [m("span", Ga, N(t(l)("hr.employee.columns.restaurants")) + ":", 1), he(" " + N(c.original.restaurants.map((me) => ie(me)).join(", ")), 1)]), m("p", null, [a[8] || (a[8] = m("span", {
|
|
877
865
|
class: "font-bold"
|
|
878
866
|
}, "Since:", -1)), he(" " + N(c.original.since), 1)])])]), n(i, {
|
|
879
867
|
icon: "delete",
|
|
@@ -882,14 +870,14 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
882
870
|
onClick: oe((me) => z(c.original), ["stop"])
|
|
883
871
|
}, null, 8, ["onClick"])]),
|
|
884
872
|
_: 2
|
|
885
|
-
}, 1032, ["class", "onClick"])) : (
|
|
873
|
+
}, 1032, ["class", "onClick"])) : (b(), D(se, {
|
|
886
874
|
key: 1,
|
|
887
875
|
style: {
|
|
888
876
|
padding: "0"
|
|
889
877
|
},
|
|
890
|
-
onClick: (me) =>
|
|
878
|
+
onClick: (me) => C(c.original)
|
|
891
879
|
}, {
|
|
892
|
-
default:
|
|
880
|
+
default: x(() => [(b(), D(qe(ue), {
|
|
893
881
|
employee: c.original
|
|
894
882
|
}, null, 8, ["employee"]))]),
|
|
895
883
|
_: 2
|
|
@@ -902,7 +890,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
902
890
|
})) : H("", !0)])], 64);
|
|
903
891
|
};
|
|
904
892
|
}
|
|
905
|
-
}),
|
|
893
|
+
}), ml = /* @__PURE__ */ Ze(qa, [["__scopeId", "data-v-5aed0d1c"]]);
|
|
906
894
|
export {
|
|
907
|
-
|
|
895
|
+
ml as default
|
|
908
896
|
};
|