@feedmepos/mf-hrm-portal 2.3.0-dev.17 → 2.3.0-dev.19
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-CQp5AXmP.js → ApprovalCodeList-INrLNl4W.js} +7 -7
- package/dist/{AuditLogList-CBOp_hDR.js → AuditLogList-BDgSBAPi.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-_2_usHCJ.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BQS6Y708.js} +2 -2
- package/dist/{EmployeeList-1vR0zMMp.js → EmployeeList-DsuNI7P7.js} +264 -254
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-NR_aWS7l.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +6 -6
- package/dist/{GrantUserList-CmeAG1Gy.js → GrantUserList-Bmgie1HE.js} +8 -8
- package/dist/{Main-DTAb8QWQ.js → Main-B1e9eyqv.js} +11 -11
- package/dist/{Main-DLh6VmQX.js → Main-BKt8r7Ut.js} +8 -8
- package/dist/{Main-BUTiZtwj.js → Main-SBhiLPdR.js} +5 -5
- package/dist/{PermissionSetList-BtaX2k3V.js → PermissionSetList-CMOKTS_m.js} +18 -19
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B6dR75q1.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-K1Ad4e-f.js} +767 -767
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js} +1 -1
- package/dist/{RoleList-Qyyi7w2u.js → RoleList-DcbQo51I.js} +20 -21
- package/dist/SelectFilter-ATOm0hdn.js +269 -0
- package/dist/{TeamMemberList-CC_okKtX.js → TeamMemberList-Bvjq14lE.js} +24 -25
- package/dist/{TimesheetList-ULjiy1OT.js → TimesheetList-CybTPHdT.js} +10 -10
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-D9xXvYuA.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CGmVMnqS.js} +3 -3
- package/dist/{app-COD0IHk1.js → app-CEcv-vMB.js} +2893 -3966
- package/dist/app.js +1 -1
- package/dist/{approval-code-BXUiojPH.js → approval-code-jIjkeVEb.js} +1 -1
- package/dist/{dayjs.min-jNfjc_8X.js → dayjs.min-yw8fgQPr.js} +1 -1
- package/dist/{employee-Db1gyZQZ.js → employee-ByRgP_2p.js} +28 -29
- package/dist/{grant-user-CBJ3gEgW.js → grant-user-SNiDV22U.js} +1 -1
- package/dist/{iteration-z1uPD-7T.js → iteration-B3Z1Ojal.js} +1 -1
- package/dist/{lodash-uwLYB3oL.js → lodash-D2BUlQJ1.js} +1 -1
- package/dist/{restaurant-D2mfKHaH.js → restaurant-BTpBmfBV.js} +224 -230
- package/dist/{role-BhO6Cl-l.js → role-_BDO50Cj.js} +2 -2
- package/dist/{rule-BZ340_dr.js → rule-FuP71XrW.js} +36 -36
- package/dist/src/api/restaurant/index.d.ts +0 -2
- package/dist/src/composables/useDiscardConfirm.d.ts +1 -3
- package/dist/src/composables/useMessage.d.ts +2 -8
- package/dist/src/router/shared.d.ts +1 -4
- package/dist/src/types/employee.d.ts +0 -1
- package/dist/src/views/audit-log/locales/index.d.ts +0 -252
- package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
- package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DZCdxlCd.js → useAppStore-DCwd8GWN.js} +1 -1
- package/dist/useDiscardConfirm-DPhEV6v0.js +157 -0
- package/dist/{useLoading-Nygx2zn8.js → useLoading-CXzTpIVv.js} +1 -1
- package/dist/{useReportPermissions-BjkeMcNA.js → useReportPermissions-5AYWAQ8e.js} +3 -3
- package/package.json +2 -4
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +0 -132
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-EPVMITc0.js +0 -532
- package/dist/ScheduleGeneralPage-CjZ8OFnN.js +0 -776
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-KOLBDv21.js +0 -2430
- package/dist/SchedulePage-BWpgAx3a.js +0 -18831
- package/dist/SchedulePositionPage-Cu6rRBlZ.js +0 -262
- package/dist/SelectFilter-D58Vrs_W.js +0 -264
- package/dist/object-Dwyg2LgX.js +0 -16
- package/dist/src/api/schedule/index.d.ts +0 -63
- package/dist/src/components/layout/PortalShell.vue.d.ts +0 -12
- package/dist/src/components/layout/withScheduleShell.d.ts +0 -10
- package/dist/src/types/schedule.d.ts +0 -23
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +0 -3
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +0 -3
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +0 -3
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +0 -39
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +0 -24
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +0 -31
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +0 -24
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +0 -32
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +0 -26
- package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +0 -38
- package/dist/src/views/scheduling/components/ScheduleBoardUtilityOverlays.vue.d.ts +0 -22
- package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +0 -23
- package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleCloneOutletModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleCoach.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleCompletionDialog.vue.d.ts +0 -15
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +0 -35
- package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleCostRailEmptyArt.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +0 -23
- package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleExportPreview.vue.d.ts +0 -7
- package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +0 -18
- package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +0 -18
- package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +0 -9
- package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +0 -26
- package/dist/src/views/scheduling/components/ScheduleOnboardingAssignPositionModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingClosedDayConfirm.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandDays.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandFooter.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandHeader.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDoneArt.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleOnboardingHoursProfileNotice.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleOnboardingPositions.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingReview.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +0 -11
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +0 -9
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizardFooter.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizardHeader.vue.d.ts +0 -11
- package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +0 -70
- package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleSetupBanner.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +0 -35
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +0 -16
- package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +0 -25
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +0 -16
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +0 -50
- package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +0 -20
- package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +0 -33
- package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +0 -5
- package/dist/src/views/scheduling/composables/onboarding-hours.d.ts +0 -7
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +0 -51
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +0 -15
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +0 -82
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +0 -63
- package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +0 -9
- package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +0 -7
- package/dist/src/views/scheduling/composables/schedule-cost.d.ts +0 -19
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +0 -21
- package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +0 -23
- package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +0 -7
- package/dist/src/views/scheduling/composables/schedule-error.d.ts +0 -3
- package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +0 -14
- package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +0 -16
- package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +0 -22
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +0 -26
- package/dist/src/views/scheduling/composables/schedule-time.d.ts +0 -8
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +0 -7
- package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +0 -9
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +0 -16
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +0 -119
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +0 -73
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -50
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +0 -12
- package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +0 -296
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +0 -611
- package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +0 -27
- package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +0 -28
- package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useScheduleCoach.d.ts +0 -80
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +0 -12
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +0 -60
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -44
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +0 -97
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +0 -59
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +0 -47
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +0 -166
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +0 -55
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +0 -24
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +0 -30
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +0 -7
- package/dist/src/views/scheduling/composables/useScheduleEmployeeForm.d.ts +0 -22
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +0 -50
- package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +0 -38
- package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +0 -30
- package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +0 -16
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +0 -51
- package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +0 -14
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +0 -79
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +0 -59
- package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +0 -15
- package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +0 -58
- package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +0 -45
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +0 -231
- package/dist/src/views/scheduling/composables/useScheduleOnboardingFlow.d.ts +0 -9
- package/dist/src/views/scheduling/composables/useScheduleOnboardingHours.d.ts +0 -15
- package/dist/src/views/scheduling/composables/useScheduleOnboardingNavigation.d.ts +0 -11
- package/dist/src/views/scheduling/composables/useScheduleOnboardingPersistence.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +0 -1520
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +0 -24
- package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useSchedulePageBootstrap.d.ts +0 -9
- package/dist/src/views/scheduling/composables/useSchedulePageCellActions.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +0 -22
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +0 -19
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +0 -55
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +0 -35
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +0 -126
- package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +0 -11
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +0 -27
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +0 -313
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +0 -40
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +0 -17
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +0 -240
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +0 -63
- package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +0 -17
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +0 -255
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +0 -27
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +0 -49
- package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +0 -95
- package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +0 -9
- package/dist/src/views/scheduling/country-rules/index.d.ts +0 -29
- package/dist/src/views/scheduling/data.d.ts +0 -123
- package/dist/src/views/scheduling/locales/index.d.ts +0 -688
- package/dist/src/views/scheduling/schedule-constants.d.ts +0 -7
- package/dist/src/views/scheduling/schedule-state.d.ts +0 -767
- package/dist/src/views/scheduling/schedule-store.d.ts +0 -135
- package/dist/src/views/scheduling/types.d.ts +0 -380
- package/dist/useDiscardConfirm-CzZSPyvh.js +0 -28
|
@@ -1,24 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useSnackbar as
|
|
4
|
-
import { S as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { s as
|
|
10
|
-
import { u as
|
|
11
|
-
import { n as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { l as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as
|
|
18
|
-
import { c as Ve } from "./object-Dwyg2LgX.js";
|
|
19
|
-
import { u as ge } from "./role-BhO6Cl-l.js";
|
|
1
|
+
import { toRaw as Ke, defineComponent as Fe, ref as v, computed as h, watch as X, resolveComponent as E, createElementBlock as ee, openBlock as g, Fragment as Ie, renderSlot as Ge, createVNode as i, unref as l, withCtx as y, createElementVNode as f, createBlock as I, createCommentVNode as j, toDisplayString as q, onUnmounted as Be, isRef as we, normalizeClass as ke, createTextVNode as ge, withModifiers as je, resolveDynamicComponent as qe, h as ie } from "vue";
|
|
2
|
+
import { useI18n as Re, useCoreStore as He } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as Me, components as $e, useDialog as Je, useBreakpoints as We } from "@feedmepos/ui-library";
|
|
4
|
+
import { S as ue, _ as Qe } from "./SelectFilter-ATOm0hdn.js";
|
|
5
|
+
import { _ as Ye, a as Ze } from "./app-CEcv-vMB.js";
|
|
6
|
+
import { _ as xe, u as Xe, H as ea } from "./FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js";
|
|
7
|
+
import { u as aa, _ as la } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
8
|
+
import { _ as sa } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
|
+
import { s as ta, _ as oa, a as ra, b as na, c as Ee } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js";
|
|
10
|
+
import { u as ia } from "./useDebounce-B8ZPVS5C.js";
|
|
11
|
+
import { n as ua } from "./string-VNuQNweN.js";
|
|
12
|
+
import { u as Le, E as ca } from "./employee-ByRgP_2p.js";
|
|
13
|
+
import { u as Pe } from "./restaurant-BTpBmfBV.js";
|
|
14
|
+
import { l as ma } from "./lodash-D2BUlQJ1.js";
|
|
15
|
+
import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
16
|
+
import { u as De } from "./useLoading-CXzTpIVv.js";
|
|
17
|
+
import { u as he } from "./role-_BDO50Cj.js";
|
|
20
18
|
/* empty css */
|
|
21
|
-
|
|
19
|
+
function Se($) {
|
|
20
|
+
return JSON.parse(JSON.stringify($));
|
|
21
|
+
}
|
|
22
|
+
function Ce($) {
|
|
23
|
+
if (typeof structuredClone > "u")
|
|
24
|
+
return Se($);
|
|
25
|
+
try {
|
|
26
|
+
return structuredClone(Ke($));
|
|
27
|
+
} catch {
|
|
28
|
+
return Se($);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const da = { class: "flex w-full items-center justify-between" }, pa = { class: "fm-typo-en-title-md-600" }, fa = { class: "space-y-40" }, va = { class: "flex flex-row gap-16" }, ya = { class: "space-y-16" }, ga = { class: "flex gap-8 items-center justify-start" }, Ue = 4, ha = /* @__PURE__ */ Fe({
|
|
22
32
|
__name: "EmployeeForm",
|
|
23
33
|
props: {
|
|
24
34
|
roleErrorMessage: {
|
|
@@ -27,30 +37,30 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
27
37
|
}
|
|
28
38
|
},
|
|
29
39
|
emits: ["submitted"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
function
|
|
40
|
+
setup($, { expose: ce, emit: n }) {
|
|
41
|
+
const k = he(), d = Pe(), C = Le(), me = Me(), U = De(me), de = n, { t: c } = Re(), V = v(!1), R = v(!0);
|
|
42
|
+
function O() {
|
|
33
43
|
return {
|
|
34
44
|
restaurantId: "",
|
|
35
45
|
roleId: ""
|
|
36
46
|
};
|
|
37
47
|
}
|
|
38
|
-
function
|
|
48
|
+
function pe(u) {
|
|
39
49
|
if (!u) return _();
|
|
40
|
-
const o =
|
|
50
|
+
const o = Ce(u);
|
|
41
51
|
return {
|
|
42
52
|
code: o.code ?? "",
|
|
43
53
|
isMasterUser: o.isMasterUser ?? !1,
|
|
44
54
|
name: o.name ?? "",
|
|
45
55
|
passcode: o.passcode ?? "",
|
|
46
|
-
restaurants: o.restaurants.length > 0 ? o.restaurants.map(({ restaurantId:
|
|
47
|
-
restaurantId:
|
|
56
|
+
restaurants: o.restaurants.length > 0 ? o.restaurants.map(({ restaurantId: w, roleId: S }) => ({
|
|
57
|
+
restaurantId: w,
|
|
48
58
|
roleId: S
|
|
49
|
-
})) : [
|
|
59
|
+
})) : [O()]
|
|
50
60
|
};
|
|
51
61
|
}
|
|
52
|
-
const
|
|
53
|
-
s.value =
|
|
62
|
+
const ae = (u) => {
|
|
63
|
+
s.value = pe(u), b.value = Ce(s.value), J.value = u == null ? void 0 : u._id, F.value = [], s.value.passcode ? (F.value = s.value.passcode.split(""), P.value = !0) : P.value = !1, R.value = !u, V.value = !0;
|
|
54
64
|
};
|
|
55
65
|
function _() {
|
|
56
66
|
return {
|
|
@@ -58,41 +68,41 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
58
68
|
isMasterUser: !1,
|
|
59
69
|
name: "",
|
|
60
70
|
passcode: "",
|
|
61
|
-
restaurants: [
|
|
71
|
+
restaurants: [O()]
|
|
62
72
|
};
|
|
63
73
|
}
|
|
64
|
-
const T = h(() =>
|
|
65
|
-
() =>
|
|
74
|
+
const T = h(() => R.value ? c("hr.employee.form.add") : c("hr.employee.form.update")), H = h(() => R.value ? c("common.create") : c("common.update")), b = v(_()), s = v(_()), J = v(void 0), L = h(
|
|
75
|
+
() => ta(s.value.restaurants)
|
|
66
76
|
);
|
|
67
|
-
function
|
|
77
|
+
function le(u) {
|
|
68
78
|
var o;
|
|
69
|
-
return u ? !((o = d.restaurants.value.find((
|
|
79
|
+
return u ? !((o = d.restaurants.value.find((w) => w._id === u)) != null && o.managable) : !1;
|
|
70
80
|
}
|
|
71
|
-
function
|
|
81
|
+
function se(u) {
|
|
72
82
|
return u.isUsable;
|
|
73
83
|
}
|
|
74
|
-
const F = v([]),
|
|
75
|
-
async function
|
|
76
|
-
if (
|
|
84
|
+
const F = v([]), P = v(!1), z = v(!1), W = v(!1), te = h(() => L.value.length > 0);
|
|
85
|
+
async function D() {
|
|
86
|
+
if (te.value)
|
|
77
87
|
try {
|
|
78
88
|
const u = await U.custom(
|
|
79
|
-
() =>
|
|
80
|
-
restaurantIds:
|
|
81
|
-
excludePosUserId:
|
|
89
|
+
() => ca.generateEmployeePasscode({
|
|
90
|
+
restaurantIds: L.value,
|
|
91
|
+
excludePosUserId: J.value
|
|
82
92
|
}),
|
|
83
93
|
{ isLoading: W }
|
|
84
94
|
);
|
|
85
|
-
|
|
95
|
+
P.value = !1, F.value = u.split(""), s.value.passcode = u;
|
|
86
96
|
} catch {
|
|
87
97
|
}
|
|
88
98
|
}
|
|
89
|
-
const K =
|
|
90
|
-
() => !
|
|
99
|
+
const K = aa(
|
|
100
|
+
() => !ma.isEqual(s.value, b.value),
|
|
91
101
|
() => {
|
|
92
102
|
V.value = !1;
|
|
93
103
|
}
|
|
94
104
|
);
|
|
95
|
-
async function
|
|
105
|
+
async function fe() {
|
|
96
106
|
const u = {
|
|
97
107
|
user: {
|
|
98
108
|
name: s.value.name,
|
|
@@ -103,9 +113,9 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
103
113
|
};
|
|
104
114
|
s.value.isMasterUser ? await C.createMasterEmployee(u) : (delete u.user.code, await C.createEmployee(u));
|
|
105
115
|
}
|
|
106
|
-
async function
|
|
107
|
-
var S,
|
|
108
|
-
const u = b.value, o =
|
|
116
|
+
async function Q() {
|
|
117
|
+
var S, M;
|
|
118
|
+
const u = b.value, o = J.value, w = {
|
|
109
119
|
user: {
|
|
110
120
|
name: s.value.name,
|
|
111
121
|
passcode: s.value.passcode
|
|
@@ -117,7 +127,7 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
117
127
|
}))
|
|
118
128
|
};
|
|
119
129
|
if (!s.value.isMasterUser)
|
|
120
|
-
await C.updateEmployee(o,
|
|
130
|
+
await C.updateEmployee(o, w);
|
|
121
131
|
else {
|
|
122
132
|
const x = {
|
|
123
133
|
user: {
|
|
@@ -126,51 +136,51 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
126
136
|
code: s.value.code
|
|
127
137
|
},
|
|
128
138
|
roles: s.value.restaurants,
|
|
129
|
-
previousRoles: (
|
|
130
|
-
restaurantId:
|
|
131
|
-
roleId:
|
|
139
|
+
previousRoles: (M = u.restaurants) == null ? void 0 : M.map((N) => ({
|
|
140
|
+
restaurantId: N.restaurantId,
|
|
141
|
+
roleId: N.roleId
|
|
132
142
|
}))
|
|
133
143
|
};
|
|
134
144
|
b.value.isMasterUser ? await C.updateMasterEmployee(o, x) : await C.migrateToMasterUser(o, x);
|
|
135
145
|
}
|
|
136
146
|
}
|
|
137
|
-
async function
|
|
138
|
-
|
|
147
|
+
async function G() {
|
|
148
|
+
R.value ? await U.minor(
|
|
139
149
|
async () => {
|
|
140
|
-
await
|
|
150
|
+
await fe();
|
|
141
151
|
},
|
|
142
152
|
{
|
|
143
|
-
successMessage:
|
|
153
|
+
successMessage: c("hr.employee.create.successMessage"),
|
|
144
154
|
isLoading: z
|
|
145
155
|
}
|
|
146
156
|
) : await U.minor(
|
|
147
157
|
async () => {
|
|
148
|
-
await
|
|
158
|
+
await Q();
|
|
149
159
|
},
|
|
150
160
|
{
|
|
151
|
-
successMessage:
|
|
161
|
+
successMessage: c("hr.employee.update.successMessage"),
|
|
152
162
|
isLoading: z
|
|
153
163
|
}
|
|
154
|
-
),
|
|
164
|
+
), de("submitted"), V.value = !1;
|
|
155
165
|
}
|
|
156
|
-
return
|
|
166
|
+
return X(
|
|
157
167
|
() => V.value,
|
|
158
168
|
(u) => {
|
|
159
169
|
}
|
|
160
|
-
),
|
|
170
|
+
), ce({
|
|
161
171
|
show: V,
|
|
162
|
-
trigger:
|
|
172
|
+
trigger: ae
|
|
163
173
|
}), (u, o) => {
|
|
164
|
-
const
|
|
165
|
-
return g(),
|
|
166
|
-
|
|
167
|
-
i(
|
|
174
|
+
const w = E("FmIcon"), S = E("FmSwitch"), M = E("FmTextField"), x = E("FmFormGroup"), N = E("fm-button"), oe = E("fm-side-sheet");
|
|
175
|
+
return g(), ee(Ie, null, [
|
|
176
|
+
Ge(u.$slots, "default", { trigger: ae }),
|
|
177
|
+
i(oe, {
|
|
168
178
|
id: "unit-form",
|
|
169
179
|
modelValue: V.value,
|
|
170
180
|
"onUpdate:modelValue": o[9] || (o[9] = (t) => V.value = t),
|
|
171
|
-
"is-container": l(
|
|
181
|
+
"is-container": l($e).FmForm,
|
|
172
182
|
"is-container-props": {
|
|
173
|
-
onValidationSuccess:
|
|
183
|
+
onValidationSuccess: G,
|
|
174
184
|
blameFormChildOnValidationFailed: !0
|
|
175
185
|
},
|
|
176
186
|
"max-width": 960,
|
|
@@ -178,9 +188,9 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
178
188
|
"onOn:clickedAway": l(K)
|
|
179
189
|
}, {
|
|
180
190
|
"side-sheet-header": y(() => [
|
|
181
|
-
f("div",
|
|
182
|
-
f("p",
|
|
183
|
-
i(
|
|
191
|
+
f("div", da, [
|
|
192
|
+
f("p", pa, q(T.value), 1),
|
|
193
|
+
i(w, {
|
|
184
194
|
name: "close",
|
|
185
195
|
size: "md",
|
|
186
196
|
class: "cursor-pointer",
|
|
@@ -189,16 +199,16 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
189
199
|
])
|
|
190
200
|
]),
|
|
191
201
|
"side-sheet-footer": y(() => [
|
|
192
|
-
f("div",
|
|
193
|
-
i(
|
|
194
|
-
label:
|
|
202
|
+
f("div", ga, [
|
|
203
|
+
i(N, {
|
|
204
|
+
label: H.value,
|
|
195
205
|
size: "lg",
|
|
196
206
|
type: "submit",
|
|
197
207
|
variant: "primary",
|
|
198
208
|
disabled: z.value
|
|
199
209
|
}, null, 8, ["label", "disabled"]),
|
|
200
|
-
i(
|
|
201
|
-
label: l(
|
|
210
|
+
i(N, {
|
|
211
|
+
label: l(c)("common.cancel"),
|
|
202
212
|
size: "lg",
|
|
203
213
|
variant: "tertiary",
|
|
204
214
|
disabled: z.value,
|
|
@@ -207,72 +217,72 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
207
217
|
])
|
|
208
218
|
]),
|
|
209
219
|
default: y(() => [
|
|
210
|
-
f("div",
|
|
211
|
-
i(
|
|
212
|
-
title: l(
|
|
220
|
+
f("div", fa, [
|
|
221
|
+
i(Ve, {
|
|
222
|
+
title: l(c)("hr.employee.form.employeeSetting")
|
|
213
223
|
}, {
|
|
214
224
|
default: y(() => [
|
|
215
|
-
i(
|
|
216
|
-
label: l(
|
|
225
|
+
i(xe, {
|
|
226
|
+
label: l(c)("hr.employee.form.masterUserConfig")
|
|
217
227
|
}, {
|
|
218
228
|
default: y(() => [
|
|
219
229
|
i(S, {
|
|
220
230
|
modelValue: s.value.isMasterUser,
|
|
221
231
|
"onUpdate:modelValue": o[0] || (o[0] = (t) => s.value.isMasterUser = t),
|
|
222
232
|
value: "masterUser",
|
|
223
|
-
label: l(
|
|
224
|
-
sublabel: l(
|
|
233
|
+
label: l(c)("hr.employee.form.masterUser"),
|
|
234
|
+
sublabel: l(c)("hr.employee.form.masterUserSublabel"),
|
|
225
235
|
"label-placement": "right"
|
|
226
236
|
}, null, 8, ["modelValue", "label", "sublabel"])
|
|
227
237
|
]),
|
|
228
238
|
_: 1
|
|
229
239
|
}, 8, ["label"]),
|
|
230
|
-
f("div",
|
|
231
|
-
s.value.isMasterUser ? (g(), I(
|
|
240
|
+
f("div", va, [
|
|
241
|
+
s.value.isMasterUser ? (g(), I(M, {
|
|
232
242
|
key: 0,
|
|
233
243
|
modelValue: s.value.code,
|
|
234
244
|
"onUpdate:modelValue": o[1] || (o[1] = (t) => s.value.code = t),
|
|
235
|
-
label: l(
|
|
236
|
-
}, null, 8, ["modelValue", "label"])) :
|
|
237
|
-
i(
|
|
245
|
+
label: l(c)("hr.employee.form.code")
|
|
246
|
+
}, null, 8, ["modelValue", "label"])) : j("", !0),
|
|
247
|
+
i(M, {
|
|
238
248
|
modelValue: s.value.name,
|
|
239
249
|
"onUpdate:modelValue": o[2] || (o[2] = (t) => s.value.name = t),
|
|
240
250
|
class: "w-full",
|
|
241
|
-
label: l(
|
|
242
|
-
rules: [(t) => !!t || l(
|
|
251
|
+
label: l(c)("hr.employee.form.name"),
|
|
252
|
+
rules: [(t) => !!t || l(c)("hr.employee.form.required")]
|
|
243
253
|
}, null, 8, ["modelValue", "label", "rules"])
|
|
244
254
|
]),
|
|
245
|
-
i(
|
|
246
|
-
label: l(
|
|
255
|
+
i(xe, {
|
|
256
|
+
label: l(c)("hr.employee.form.passcode")
|
|
247
257
|
}, {
|
|
248
258
|
default: y(() => [
|
|
249
|
-
f("div",
|
|
259
|
+
f("div", ya, [
|
|
250
260
|
i(x, {
|
|
251
261
|
modelValue: F.value,
|
|
252
262
|
"onUpdate:modelValue": o[6] || (o[6] = (t) => F.value = t),
|
|
253
263
|
rules: [
|
|
254
|
-
(t) => (t == null ? void 0 : t.filter((
|
|
264
|
+
(t) => (t == null ? void 0 : t.filter((B) => !!B).length) !== Ue ? l(c)("hr.employee.form.passcodeRequired") : !0
|
|
255
265
|
]
|
|
256
266
|
}, {
|
|
257
267
|
default: y(() => [
|
|
258
|
-
i(
|
|
268
|
+
i(oa, {
|
|
259
269
|
modelValue: F.value,
|
|
260
270
|
"onUpdate:modelValue": o[3] || (o[3] = (t) => F.value = t),
|
|
261
|
-
masked:
|
|
262
|
-
"onUpdate:masked": o[4] || (o[4] = (t) =>
|
|
263
|
-
length:
|
|
264
|
-
"toggle-label": l(
|
|
271
|
+
masked: P.value,
|
|
272
|
+
"onUpdate:masked": o[4] || (o[4] = (t) => P.value = t),
|
|
273
|
+
length: Ue,
|
|
274
|
+
"toggle-label": l(c)("hr.employee.form.passcodeToggleVisibility"),
|
|
265
275
|
onComplete: o[5] || (o[5] = (t) => s.value.passcode = t)
|
|
266
276
|
}, null, 8, ["modelValue", "masked", "toggle-label"])
|
|
267
277
|
]),
|
|
268
278
|
_: 1
|
|
269
279
|
}, 8, ["modelValue", "rules"]),
|
|
270
|
-
i(
|
|
271
|
-
label: l(
|
|
272
|
-
hint: l(
|
|
280
|
+
i(ra, {
|
|
281
|
+
label: l(c)("hr.employee.form.passcodeGenerate"),
|
|
282
|
+
hint: l(c)("hr.employee.form.passcodeSelectOutletFirst"),
|
|
273
283
|
loading: W.value,
|
|
274
|
-
disabled: !
|
|
275
|
-
onClick:
|
|
284
|
+
disabled: !te.value,
|
|
285
|
+
onClick: D
|
|
276
286
|
}, null, 8, ["label", "hint", "loading", "disabled"])
|
|
277
287
|
])
|
|
278
288
|
]),
|
|
@@ -281,31 +291,31 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
281
291
|
]),
|
|
282
292
|
_: 1
|
|
283
293
|
}, 8, ["title"]),
|
|
284
|
-
i(
|
|
294
|
+
i(Ve, null, {
|
|
285
295
|
default: y(() => [
|
|
286
296
|
i(x, {
|
|
287
297
|
modelValue: s.value.restaurants,
|
|
288
298
|
"onUpdate:modelValue": o[8] || (o[8] = (t) => s.value.restaurants = t),
|
|
289
299
|
tag: "div",
|
|
290
300
|
rules: [
|
|
291
|
-
(t) => t.length > 0 || l(
|
|
292
|
-
(t) => t.every((
|
|
301
|
+
(t) => t.length > 0 || l(c)("hr.employee.form.atLeastOneRestaurant"),
|
|
302
|
+
(t) => t.every((B) => B.restaurantId && B.roleId) || l(c)("hr.employee.form.roleRequired")
|
|
293
303
|
]
|
|
294
304
|
}, {
|
|
295
305
|
default: y(() => [
|
|
296
|
-
i(
|
|
306
|
+
i(na, {
|
|
297
307
|
modelValue: s.value.restaurants,
|
|
298
308
|
"onUpdate:modelValue": o[7] || (o[7] = (t) => s.value.restaurants = t),
|
|
299
309
|
restaurants: l(d).restaurants.value,
|
|
300
|
-
roles: l(
|
|
301
|
-
"is-role-usable":
|
|
302
|
-
"is-restaurant-locked":
|
|
303
|
-
"create-row":
|
|
304
|
-
title: l(
|
|
305
|
-
"restaurant-label": l(
|
|
306
|
-
"role-label": l(
|
|
307
|
-
"add-label": l(
|
|
308
|
-
"remove-label": l(
|
|
310
|
+
roles: l(k).roles.value,
|
|
311
|
+
"is-role-usable": se,
|
|
312
|
+
"is-restaurant-locked": le,
|
|
313
|
+
"create-row": O,
|
|
314
|
+
title: l(c)("hr.employee.form.assignmentSection"),
|
|
315
|
+
"restaurant-label": l(c)("hr.employee.columns.restaurants"),
|
|
316
|
+
"role-label": l(c)("hr.employee.form.role"),
|
|
317
|
+
"add-label": l(c)("hr.employee.form.addAnother"),
|
|
318
|
+
"remove-label": l(c)("common.remove")
|
|
309
319
|
}, null, 8, ["modelValue", "restaurants", "roles", "title", "restaurant-label", "role-label", "add-label", "remove-label"])
|
|
310
320
|
]),
|
|
311
321
|
_: 1
|
|
@@ -320,70 +330,70 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
320
330
|
], 64);
|
|
321
331
|
};
|
|
322
332
|
}
|
|
323
|
-
}),
|
|
333
|
+
}), _a = {
|
|
324
334
|
class: "space-y-8"
|
|
325
|
-
},
|
|
335
|
+
}, ba = {
|
|
326
336
|
key: 0,
|
|
327
337
|
class: "flex w-full items-start justify-between"
|
|
328
|
-
},
|
|
338
|
+
}, wa = {
|
|
329
339
|
class: "flex items-start gap-8"
|
|
330
|
-
}, ba = {
|
|
331
|
-
class: "flex"
|
|
332
340
|
}, ka = {
|
|
341
|
+
class: "flex"
|
|
342
|
+
}, xa = {
|
|
333
343
|
key: 1,
|
|
334
344
|
class: "space-y-4"
|
|
335
|
-
},
|
|
345
|
+
}, Ea = {
|
|
336
346
|
class: "px-16"
|
|
337
|
-
},
|
|
347
|
+
}, Va = {
|
|
338
348
|
class: "px-16 flex items-start gap-8"
|
|
339
|
-
},
|
|
349
|
+
}, Sa = {
|
|
340
350
|
class: "flex h-full flex-col overflow-auto"
|
|
341
|
-
},
|
|
351
|
+
}, Ca = {
|
|
342
352
|
class: "space-y-4"
|
|
343
|
-
},
|
|
353
|
+
}, Ua = {
|
|
344
354
|
class: "fm-typo-en-body-lg-600"
|
|
345
|
-
},
|
|
355
|
+
}, Fa = {
|
|
346
356
|
key: 0,
|
|
347
357
|
class: "mr-4"
|
|
348
|
-
},
|
|
358
|
+
}, Ia = {
|
|
349
359
|
class: "text-fm-color-typo-secondary"
|
|
350
|
-
},
|
|
360
|
+
}, Ra = {
|
|
351
361
|
class: "line-clamp-2"
|
|
352
|
-
},
|
|
362
|
+
}, Ma = {
|
|
353
363
|
class: "font-bold"
|
|
354
|
-
},
|
|
364
|
+
}, A = 200, $a = /* @__PURE__ */ Fe({
|
|
355
365
|
__name: "EmployeeList",
|
|
356
|
-
setup(
|
|
357
|
-
expose:
|
|
366
|
+
setup($, {
|
|
367
|
+
expose: ce
|
|
358
368
|
}) {
|
|
359
369
|
const {
|
|
360
370
|
t: n
|
|
361
|
-
} =
|
|
371
|
+
} = Re(), k = v(), d = Le(), C = Pe(), me = He(), {
|
|
362
372
|
currentBusiness: U,
|
|
363
|
-
sessionUser:
|
|
364
|
-
} = me,
|
|
365
|
-
|
|
373
|
+
sessionUser: de
|
|
374
|
+
} = me, c = he(), V = h(() => C.isLoading.value), R = v(c.roles.value.length === 0);
|
|
375
|
+
X(C.restaurants, (e) => {
|
|
366
376
|
if (e.length > 0 && d.listEmployees.value.length > 0) {
|
|
367
377
|
const a = new Map(e.map((r) => [r._id, r]));
|
|
368
378
|
d.listEmployees.value = d.listEmployees.value.map((r) => ({
|
|
369
379
|
...r,
|
|
370
380
|
restaurants: r.restaurants.map((p) => {
|
|
371
|
-
var
|
|
381
|
+
var Y, Z;
|
|
372
382
|
return {
|
|
373
383
|
...p,
|
|
374
|
-
restaurantName: ((
|
|
375
|
-
restaurantCode: ((
|
|
384
|
+
restaurantName: ((Y = a.get(p.restaurantId)) == null ? void 0 : Y.profile.name) || p.restaurantName,
|
|
385
|
+
restaurantCode: ((Z = a.get(p.restaurantId)) == null ? void 0 : Z.profile.code) ?? void 0
|
|
376
386
|
};
|
|
377
387
|
})
|
|
378
388
|
}));
|
|
379
389
|
}
|
|
380
390
|
});
|
|
381
|
-
const
|
|
391
|
+
const O = h(() => C.restaurants.value.map((e) => ({
|
|
382
392
|
label: `${e.profile.code ? `${e.profile.code} - ` : ""}${e.profile.name}`,
|
|
383
393
|
value: e._id
|
|
384
|
-
}))),
|
|
394
|
+
}))), pe = X(c.roles, (e) => {
|
|
385
395
|
if (e.length > 0) {
|
|
386
|
-
if (
|
|
396
|
+
if (R.value = !1, d.listEmployees.value.length > 0) {
|
|
387
397
|
const a = new Map(e.map((r) => [r._id, r.name]));
|
|
388
398
|
d.listEmployees.value = d.listEmployees.value.map((r) => ({
|
|
389
399
|
...r,
|
|
@@ -393,29 +403,29 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
393
403
|
}))
|
|
394
404
|
}));
|
|
395
405
|
}
|
|
396
|
-
|
|
406
|
+
pe();
|
|
397
407
|
}
|
|
398
|
-
}),
|
|
408
|
+
}), ae = h(() => d.listEmployees.value), {
|
|
399
409
|
searchKey: _
|
|
400
|
-
} =
|
|
410
|
+
} = Xe(), T = v(""), H = h(() => ae.value), b = h(() => d.totalEmployees.value), s = v(1), J = h(() => d.isLoading.value), L = v(!1), le = h(() => {
|
|
401
411
|
var e;
|
|
402
412
|
return JSON.stringify({
|
|
403
413
|
businessId: ((e = U.value) == null ? void 0 : e._id) ?? "",
|
|
404
414
|
search: T.value.trim(),
|
|
405
|
-
restaurantIds: [...
|
|
415
|
+
restaurantIds: [...k.value ?? []].sort(),
|
|
406
416
|
roleIds: [...t.value ?? []].sort()
|
|
407
417
|
});
|
|
408
|
-
}),
|
|
418
|
+
}), se = (e) => {
|
|
409
419
|
const a = e.restaurantCode, r = e.restaurantName;
|
|
410
420
|
return a ? `${a} - ${r}` : r;
|
|
411
421
|
}, F = (e) => e.roleName || "-";
|
|
412
|
-
function
|
|
422
|
+
function P(e) {
|
|
413
423
|
return [{
|
|
414
424
|
label: n("hr.employee.form.update"),
|
|
415
|
-
onClick: () =>
|
|
425
|
+
onClick: () => w(e)
|
|
416
426
|
}, {
|
|
417
427
|
label: n("hr.employee.remove.title"),
|
|
418
|
-
onClick: () =>
|
|
428
|
+
onClick: () => M(e),
|
|
419
429
|
itemClass: "text-fm-color-typo-error"
|
|
420
430
|
}];
|
|
421
431
|
}
|
|
@@ -427,8 +437,8 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
427
437
|
onClick: (r) => {
|
|
428
438
|
r.stopPropagation();
|
|
429
439
|
}
|
|
430
|
-
}, [i(
|
|
431
|
-
items:
|
|
440
|
+
}, [i(la, {
|
|
441
|
+
items: P(e)
|
|
432
442
|
}, null)]), W = [{
|
|
433
443
|
accessorKey: "code",
|
|
434
444
|
size: 100,
|
|
@@ -441,9 +451,9 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
441
451
|
const a = e.row.original;
|
|
442
452
|
return i("div", {
|
|
443
453
|
class: "flex items-center gap-8"
|
|
444
|
-
}, [i(
|
|
454
|
+
}, [i($e.FmAvatar, {
|
|
445
455
|
name: a.name,
|
|
446
|
-
initials:
|
|
456
|
+
initials: ua(a.name),
|
|
447
457
|
size: "sm",
|
|
448
458
|
class: "shrink-0"
|
|
449
459
|
}, null), i("span", {
|
|
@@ -456,9 +466,9 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
456
466
|
header: () => n("hr.employee.columns.restaurants"),
|
|
457
467
|
enableSorting: !1,
|
|
458
468
|
cell(e) {
|
|
459
|
-
return V.value ||
|
|
460
|
-
const p =
|
|
461
|
-
return
|
|
469
|
+
return V.value || R.value ? ie(Ee) : e.row.original.restaurants.map((a, r) => {
|
|
470
|
+
const p = se(a);
|
|
471
|
+
return ie("div", {
|
|
462
472
|
key: a.restaurantId || r
|
|
463
473
|
}, (r ? `
|
|
464
474
|
` : "") + p);
|
|
@@ -470,11 +480,11 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
470
480
|
header: () => n("hr.employee.columns.assignedRole"),
|
|
471
481
|
enableSorting: !1,
|
|
472
482
|
cell(e) {
|
|
473
|
-
return V.value ||
|
|
483
|
+
return V.value || R.value ? ie(Ee, {
|
|
474
484
|
width: "120px"
|
|
475
485
|
}) : e.row.original.restaurants.map((a, r) => {
|
|
476
486
|
const p = F(a);
|
|
477
|
-
return
|
|
487
|
+
return ie("div", {
|
|
478
488
|
key: a.restaurantId || r
|
|
479
489
|
}, (r ? `
|
|
480
490
|
` : "") + p);
|
|
@@ -497,7 +507,7 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
497
507
|
className: "flex w-full items-center justify-end"
|
|
498
508
|
});
|
|
499
509
|
}
|
|
500
|
-
}],
|
|
510
|
+
}], te = ({
|
|
501
511
|
employee: e
|
|
502
512
|
}) => i("div", {
|
|
503
513
|
class: "flex flex-col gap-4 grow p-8"
|
|
@@ -508,22 +518,22 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
508
518
|
row: {
|
|
509
519
|
original: e
|
|
510
520
|
}
|
|
511
|
-
}) : e[a.accessorKey]]))]),
|
|
521
|
+
}) : e[a.accessorKey]]))]), D = Me(), K = Je(), fe = De(D), Q = v(!1), G = v(), u = v();
|
|
512
522
|
function o(e) {
|
|
513
523
|
const a = e.isRestricted;
|
|
514
|
-
return a &&
|
|
524
|
+
return a && D.open({
|
|
515
525
|
message: n("hr.employee.cannotUpdateMasterUser", {
|
|
516
526
|
name: e.name
|
|
517
527
|
}),
|
|
518
528
|
type: "error"
|
|
519
529
|
}), a;
|
|
520
530
|
}
|
|
521
|
-
const
|
|
531
|
+
const w = (e) => {
|
|
522
532
|
var r;
|
|
523
533
|
e && o(e) || (r = u.value) == null || r.trigger(e);
|
|
524
534
|
}, {
|
|
525
535
|
breakpoints: S
|
|
526
|
-
} =
|
|
536
|
+
} = We(), M = (e) => {
|
|
527
537
|
o(e) || K.open({
|
|
528
538
|
title: n("hr.employee.remove.title"),
|
|
529
539
|
message: n("hr.employee.remove.message", {
|
|
@@ -534,19 +544,19 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
534
544
|
text: n("common.remove"),
|
|
535
545
|
close: !1,
|
|
536
546
|
variant: "destructive",
|
|
537
|
-
isLoading:
|
|
547
|
+
isLoading: Q
|
|
538
548
|
},
|
|
539
549
|
secondaryActions: {
|
|
540
550
|
text: n("common.cancel"),
|
|
541
551
|
close: !0
|
|
542
552
|
}
|
|
543
553
|
}).onPrimary(async () => {
|
|
544
|
-
if (
|
|
554
|
+
if (Q.value) return;
|
|
545
555
|
const r = e.isMasterUser ? d.deleteMasterEmployee : d.deleteEmployee;
|
|
546
|
-
await
|
|
547
|
-
await r(e), await
|
|
556
|
+
await fe.minor(async () => {
|
|
557
|
+
await r(e), await ve();
|
|
548
558
|
}, {
|
|
549
|
-
isLoading:
|
|
559
|
+
isLoading: Q,
|
|
550
560
|
successMessage: n("hr.employee.remove.successMessage", {
|
|
551
561
|
name: e.name
|
|
552
562
|
})
|
|
@@ -554,141 +564,141 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
554
564
|
}), K.close();
|
|
555
565
|
});
|
|
556
566
|
}, x = v("");
|
|
557
|
-
function
|
|
567
|
+
function N() {
|
|
558
568
|
var e;
|
|
559
569
|
(e = u.value) == null || e.trigger();
|
|
560
570
|
}
|
|
561
|
-
const
|
|
571
|
+
const oe = h(() => he().roles.value.map((e) => ({
|
|
562
572
|
label: e.name,
|
|
563
573
|
value: e._id
|
|
564
574
|
}))), t = v();
|
|
565
|
-
async function
|
|
575
|
+
async function B() {
|
|
566
576
|
try {
|
|
567
|
-
await d.syncUsersMeta(), await
|
|
577
|
+
await d.syncUsersMeta(), await ve(), D.open({
|
|
568
578
|
message: n("hr.employee.sync.successMessage"),
|
|
569
579
|
type: "success"
|
|
570
580
|
});
|
|
571
581
|
} catch (e) {
|
|
572
|
-
console.error("Error syncing users:", e),
|
|
582
|
+
console.error("Error syncing users:", e), D.open({
|
|
573
583
|
message: n("hr.employee.sync.errorMessage"),
|
|
574
584
|
type: "error"
|
|
575
585
|
});
|
|
576
586
|
}
|
|
577
587
|
}
|
|
578
|
-
async function
|
|
588
|
+
async function re(e = s.value) {
|
|
579
589
|
var a, r;
|
|
580
590
|
try {
|
|
581
591
|
await d.readEmployeesPage({
|
|
582
|
-
limit:
|
|
583
|
-
offset: (e - 1) *
|
|
592
|
+
limit: A,
|
|
593
|
+
offset: (e - 1) * A,
|
|
584
594
|
search: T.value.trim() || void 0,
|
|
585
|
-
restaurantIds: (a =
|
|
595
|
+
restaurantIds: (a = k.value) != null && a.length ? k.value : void 0,
|
|
586
596
|
roleIds: (r = t.value) != null && r.length ? t.value : void 0
|
|
587
597
|
});
|
|
588
598
|
} catch (p) {
|
|
589
|
-
console.error("Failed to load employees:", p),
|
|
599
|
+
console.error("Failed to load employees:", p), D.open({
|
|
590
600
|
message: p instanceof Error ? p.message : String(p),
|
|
591
601
|
type: "error"
|
|
592
602
|
});
|
|
593
603
|
}
|
|
594
604
|
}
|
|
595
|
-
async function
|
|
605
|
+
async function ve() {
|
|
596
606
|
var a;
|
|
597
607
|
if (!((a = U.value) != null && a._id)) return;
|
|
598
|
-
await
|
|
599
|
-
const e = Math.max(1, Math.ceil(b.value /
|
|
600
|
-
s.value > e && (s.value = e, await
|
|
608
|
+
await re(s.value);
|
|
609
|
+
const e = Math.max(1, Math.ceil(b.value / A));
|
|
610
|
+
s.value > e && (s.value = e, await re(s.value));
|
|
601
611
|
}
|
|
602
|
-
async function
|
|
612
|
+
async function Ne() {
|
|
603
613
|
var e, a;
|
|
604
614
|
return await d.readAllEmployeesPage({
|
|
605
615
|
search: T.value.trim() || void 0,
|
|
606
|
-
restaurantIds: (e =
|
|
616
|
+
restaurantIds: (e = k.value) != null && e.length ? k.value : void 0,
|
|
607
617
|
roleIds: (a = t.value) != null && a.length ? t.value : void 0
|
|
608
618
|
}, b.value);
|
|
609
619
|
}
|
|
610
|
-
const
|
|
620
|
+
const Ae = ia(_, () => {
|
|
611
621
|
T.value = _.value;
|
|
612
622
|
}, 300);
|
|
613
|
-
|
|
614
|
-
let
|
|
615
|
-
async function
|
|
623
|
+
Be(Ae);
|
|
624
|
+
let ye = !1;
|
|
625
|
+
async function Oe({
|
|
616
626
|
pageIndex: e
|
|
617
627
|
}) {
|
|
618
628
|
var a;
|
|
619
|
-
if ((a = U.value) != null && a._id && !
|
|
620
|
-
|
|
629
|
+
if ((a = U.value) != null && a._id && !ye && !(e === 0 && s.value === 1 && H.value.length > 0)) {
|
|
630
|
+
ye = !0, s.value = e + 1;
|
|
621
631
|
try {
|
|
622
|
-
await
|
|
632
|
+
await re(s.value);
|
|
623
633
|
} finally {
|
|
624
|
-
|
|
634
|
+
ye = !1;
|
|
625
635
|
}
|
|
626
636
|
}
|
|
627
637
|
}
|
|
628
|
-
|
|
638
|
+
X(le, async () => {
|
|
629
639
|
var e;
|
|
630
|
-
s.value = 1,
|
|
640
|
+
s.value = 1, L.value = !1, (e = U.value) != null && e._id && (await re(1), L.value = !0);
|
|
631
641
|
}, {
|
|
632
642
|
immediate: !0
|
|
633
|
-
}),
|
|
643
|
+
}), X(() => G.value && G.value.restaurants, (e) => {
|
|
634
644
|
e && e.length > 0 && (x.value = "");
|
|
635
645
|
});
|
|
636
|
-
const Te = h(() => b.value >
|
|
637
|
-
return
|
|
638
|
-
create:
|
|
639
|
-
filteredEmployees:
|
|
640
|
-
exportEmployees:
|
|
646
|
+
const Te = h(() => b.value > A);
|
|
647
|
+
return ce({
|
|
648
|
+
create: N,
|
|
649
|
+
filteredEmployees: H,
|
|
650
|
+
exportEmployees: Ne,
|
|
641
651
|
getHasPaginationFooter: () => Te.value
|
|
642
652
|
}), (e, a) => {
|
|
643
|
-
var
|
|
644
|
-
const r = E("FmButton"), p = E("FmTooltip"),
|
|
645
|
-
return g(),
|
|
653
|
+
var _e, be;
|
|
654
|
+
const r = E("FmButton"), p = E("FmTooltip"), Y = E("FmSearch"), Z = E("FmListItem"), ze = E("FmTable");
|
|
655
|
+
return g(), ee(Ie, null, [i(ha, {
|
|
646
656
|
ref_key: "employeeFormRef",
|
|
647
657
|
ref: u,
|
|
648
|
-
modelValue:
|
|
649
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
658
|
+
modelValue: G.value,
|
|
659
|
+
"onUpdate:modelValue": a[0] || (a[0] = (m) => G.value = m),
|
|
650
660
|
"role-error-message": x.value,
|
|
651
661
|
class: "gap-8",
|
|
652
|
-
onSubmitted:
|
|
653
|
-
}, null, 8, ["modelValue", "role-error-message"]), f("div",
|
|
662
|
+
onSubmitted: ve
|
|
663
|
+
}, null, 8, ["modelValue", "role-error-message"]), f("div", _a, [l(S).xs ? (g(), ee("div", xa, [f("div", Ea, [i(Y, {
|
|
654
664
|
modelValue: l(_),
|
|
655
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
665
|
+
"onUpdate:modelValue": a[4] || (a[4] = (m) => we(_) ? _.value = m : null),
|
|
656
666
|
placeholder: l(n)("hr.employee.search.placeholder")
|
|
657
|
-
}, null, 8, ["modelValue", "placeholder"])]), i(
|
|
658
|
-
modelValue:
|
|
659
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
667
|
+
}, null, 8, ["modelValue", "placeholder"])]), i(ea), f("div", Va, [i(ue, {
|
|
668
|
+
modelValue: k.value,
|
|
669
|
+
"onUpdate:modelValue": a[5] || (a[5] = (m) => k.value = m),
|
|
660
670
|
multiple: "",
|
|
661
|
-
items:
|
|
671
|
+
items: O.value,
|
|
662
672
|
variant: "dark",
|
|
663
673
|
"selected-prefix": l(n)("hr.role.columns.restaurants"),
|
|
664
674
|
placeholder: l(n)("hr.role.columns.restaurants"),
|
|
665
675
|
class: "!w-auto"
|
|
666
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i(
|
|
676
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i(ue, {
|
|
667
677
|
modelValue: t.value,
|
|
668
|
-
"onUpdate:modelValue": a[6] || (a[6] = (
|
|
678
|
+
"onUpdate:modelValue": a[6] || (a[6] = (m) => t.value = m),
|
|
669
679
|
multiple: "",
|
|
670
|
-
items:
|
|
680
|
+
items: oe.value,
|
|
671
681
|
variant: "dark",
|
|
672
682
|
"selected-prefix": l(n)("hr.employee.filter.selected_role_prefix"),
|
|
673
683
|
placeholder: l(n)("hr.employee.filter.role_placeholder")
|
|
674
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])])) : (g(),
|
|
675
|
-
modelValue:
|
|
676
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
684
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])])) : (g(), ee("div", ba, [f("div", wa, [i(ue, {
|
|
685
|
+
modelValue: k.value,
|
|
686
|
+
"onUpdate:modelValue": a[1] || (a[1] = (m) => k.value = m),
|
|
677
687
|
multiple: "",
|
|
678
|
-
items:
|
|
688
|
+
items: O.value,
|
|
679
689
|
variant: "dark",
|
|
680
690
|
"selected-prefix": l(n)("hr.role.columns.restaurants"),
|
|
681
691
|
placeholder: l(n)("hr.role.columns.restaurants"),
|
|
682
692
|
class: "!w-auto"
|
|
683
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i(
|
|
693
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i(ue, {
|
|
684
694
|
modelValue: t.value,
|
|
685
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
695
|
+
"onUpdate:modelValue": a[2] || (a[2] = (m) => t.value = m),
|
|
686
696
|
multiple: "",
|
|
687
697
|
variant: "dark",
|
|
688
|
-
items:
|
|
698
|
+
items: oe.value,
|
|
689
699
|
"selected-prefix": l(n)("hr.employee.filter.selected_role_prefix"),
|
|
690
700
|
placeholder: l(n)("hr.employee.filter.role_placeholder")
|
|
691
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])]), f("div",
|
|
701
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])]), f("div", ka, [(_e = l(de)) != null && _e.role.isAdmin ? (g(), I(p, {
|
|
692
702
|
key: 0,
|
|
693
703
|
content: l(n)("hr.employee.sync.tooltip")
|
|
694
704
|
}, {
|
|
@@ -696,21 +706,21 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
696
706
|
icon: "refresh",
|
|
697
707
|
label: l(n)("hr.employee.sync.tooltip"),
|
|
698
708
|
variant: "tertiary",
|
|
699
|
-
onClick:
|
|
709
|
+
onClick: B
|
|
700
710
|
}, null, 8, ["label"])]),
|
|
701
711
|
_: 1
|
|
702
|
-
}, 8, ["content"])) :
|
|
712
|
+
}, 8, ["content"])) : j("", !0), i(Y, {
|
|
703
713
|
modelValue: l(_),
|
|
704
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
714
|
+
"onUpdate:modelValue": a[3] || (a[3] = (m) => we(_) ? _.value = m : null),
|
|
705
715
|
autofocus: "",
|
|
706
716
|
class: "pl-4 w-[320px]",
|
|
707
717
|
placeholder: l(n)("hr.employee.search.placeholder")
|
|
708
|
-
}, null, 8, ["modelValue", "placeholder"])])])), (
|
|
718
|
+
}, null, 8, ["modelValue", "placeholder"])])])), (be = l(U)) != null && be._id ? (g(), I(Ye, {
|
|
709
719
|
key: 2
|
|
710
720
|
}, {
|
|
711
|
-
default: y(() => [f("div",
|
|
721
|
+
default: y(() => [f("div", Sa, [!L.value && l(d).isLoading.value ? (g(), I(Ze, {
|
|
712
722
|
key: 0
|
|
713
|
-
})) :
|
|
723
|
+
})) : j("", !0), L.value ? (g(), I(sa, {
|
|
714
724
|
key: 1,
|
|
715
725
|
"is-loading": l(d).isLoading.value,
|
|
716
726
|
"is-empty": b.value === 0,
|
|
@@ -718,59 +728,59 @@ const ma = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
718
728
|
subtitle: l(n)("hr.employee.noData.subtitle")
|
|
719
729
|
}, {
|
|
720
730
|
default: y(() => [(g(), I(ze, {
|
|
721
|
-
key:
|
|
731
|
+
key: le.value,
|
|
722
732
|
class: ke(["employee-list-table h-full", {
|
|
723
|
-
"employee-list-table--pagination-loading":
|
|
733
|
+
"employee-list-table--pagination-loading": J.value
|
|
724
734
|
}]),
|
|
725
735
|
"column-defs": W,
|
|
726
|
-
"row-data":
|
|
727
|
-
"page-size":
|
|
728
|
-
"page-count": Math.ceil(b.value /
|
|
736
|
+
"row-data": H.value,
|
|
737
|
+
"page-size": A,
|
|
738
|
+
"page-count": Math.ceil(b.value / A),
|
|
729
739
|
"row-count": b.value,
|
|
730
|
-
"fetch-fn":
|
|
731
|
-
"hide-footer": b.value <=
|
|
740
|
+
"fetch-fn": Oe,
|
|
741
|
+
"hide-footer": b.value <= A,
|
|
732
742
|
loading: l(d).isLoading.value,
|
|
733
743
|
virtual: !1,
|
|
734
744
|
"pin-header-row": "",
|
|
735
|
-
onRowClick: a[7] || (a[7] = (
|
|
745
|
+
onRowClick: a[7] || (a[7] = (m) => w(m.original))
|
|
736
746
|
}, {
|
|
737
|
-
"list-row": y((
|
|
747
|
+
"list-row": y((m) => [l(S).xs ? (g(), I(Z, {
|
|
738
748
|
key: 0,
|
|
739
749
|
class: ke(["py-12 px-16 items-center justify-between", {
|
|
740
|
-
"border-t border-fm-color-neutral-gray-100":
|
|
750
|
+
"border-t border-fm-color-neutral-gray-100": m.index > 0
|
|
741
751
|
}]),
|
|
742
|
-
onClick: (
|
|
752
|
+
onClick: (ne) => w(m.original)
|
|
743
753
|
}, {
|
|
744
|
-
default: y(() => [f("div",
|
|
754
|
+
default: y(() => [f("div", Ca, [f("p", Ua, [m.original.code ? (g(), ee("span", Fa, q(m.original.code) + ".", 1)) : j("", !0), ge(q(m.original.name), 1)]), f("div", Ia, [f("p", Ra, [f("span", Ma, q(l(n)("hr.employee.columns.restaurants")) + ":", 1), ge(" " + q(m.original.restaurants.map((ne) => se(ne)).join(", ")), 1)]), f("p", null, [a[8] || (a[8] = f("span", {
|
|
745
755
|
class: "font-bold"
|
|
746
|
-
}, "Since:", -1)),
|
|
756
|
+
}, "Since:", -1)), ge(" " + q(m.original.since), 1)])])]), i(r, {
|
|
747
757
|
icon: "delete",
|
|
748
758
|
variant: "tertiary",
|
|
749
759
|
"text-color": "neutral-gray-400",
|
|
750
|
-
onClick:
|
|
760
|
+
onClick: je((ne) => M(m.original), ["stop"])
|
|
751
761
|
}, null, 8, ["onClick"])]),
|
|
752
762
|
_: 2
|
|
753
|
-
}, 1032, ["class", "onClick"])) : (g(), I(
|
|
763
|
+
}, 1032, ["class", "onClick"])) : (g(), I(Z, {
|
|
754
764
|
key: 1,
|
|
755
765
|
style: {
|
|
756
766
|
padding: "0"
|
|
757
767
|
},
|
|
758
|
-
onClick: (
|
|
768
|
+
onClick: (ne) => w(m.original)
|
|
759
769
|
}, {
|
|
760
|
-
default: y(() => [(g(), I(
|
|
761
|
-
employee:
|
|
770
|
+
default: y(() => [(g(), I(qe(te), {
|
|
771
|
+
employee: m.original
|
|
762
772
|
}, null, 8, ["employee"]))]),
|
|
763
773
|
_: 2
|
|
764
774
|
}, 1032, ["onClick"]))]),
|
|
765
775
|
_: 1
|
|
766
776
|
}, 8, ["class", "row-data", "page-count", "row-count", "hide-footer", "loading"]))]),
|
|
767
777
|
_: 1
|
|
768
|
-
}, 8, ["is-loading", "is-empty", "title", "subtitle"])) :
|
|
778
|
+
}, 8, ["is-loading", "is-empty", "title", "subtitle"])) : j("", !0)])]),
|
|
769
779
|
_: 1
|
|
770
|
-
})) :
|
|
780
|
+
})) : j("", !0)])], 64);
|
|
771
781
|
};
|
|
772
782
|
}
|
|
773
|
-
}), Za = /* @__PURE__ */ Qe(
|
|
783
|
+
}), Za = /* @__PURE__ */ Qe($a, [["__scopeId", "data-v-5aed0d1c"]]);
|
|
774
784
|
export {
|
|
775
785
|
Za as default
|
|
776
786
|
};
|