@feedmepos/mf-hrm-portal 2.3.2-dev → 2.3.2-dev.10
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-RKU5B8SO.js} +14 -15
- package/dist/AuditLogList-DuDCMjGR.js +2026 -0
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Cixg_icC.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-pL2zRc67.js} +10 -10
- package/dist/{EmployeeList-BG2KPvOB.js → EmployeeList-nrYsS5uz.js} +196 -208
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-7S2w36aY.js +90 -0
- package/dist/{GrantUserList-CUkuf3VV.js → GrantUserList-BSjeC4MC.js} +15 -16
- package/dist/{Main-Cg9SOzcz.js → Main-CpuHaXU6.js} +5 -5
- package/dist/{Main-BSHf8gTE.js → Main-DbdoVLCE.js} +12 -11
- package/dist/{Main-BcixH7R5.js → Main-DtmCBbTR.js} +1005 -999
- package/dist/MyPosProfile-CsTCfGNT.js +360 -0
- package/dist/{PermissionSetList-I3u2_qHR.js → PermissionSetList-B1c-uGZO.js} +82 -80
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Toq6qrLx.js +4208 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-D6Z9z_Yt.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-TWTVo_9Y.js +547 -0
- package/dist/RoleList-CwaGNsFy.js +265 -0
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-C2ekVXdR.js +544 -0
- package/dist/ScheduleGeneralPage-BVtXmxtp.js +811 -0
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-DdsQ8v-5.js +2557 -0
- package/dist/SchedulePage-3qksmT2I.js +19446 -0
- package/dist/SchedulePositionPage-DAU20KPZ.js +282 -0
- package/dist/SelectFilter-BpzBwBmQ.js +263 -0
- package/dist/TeamMemberList-Bdpm40i3.js +2087 -0
- package/dist/TimesheetList-CL_eJp2h.js +437 -0
- package/dist/{app-CdrnR_Pw.js → app-DEZT4wdV.js} +14439 -5834
- package/dist/app.js +1 -1
- package/dist/{approval-code-Bwvwehz9.js → approval-code-BZTz5OXK.js} +4 -4
- package/dist/{dayjs.min-BO8bcI17.js → dayjs.min-B55I-uhI.js} +12 -12
- package/dist/employee-C6z5i6O4.js +172 -0
- package/dist/{grant-user-whFOaPZI.js → grant-user-B2rYztyf.js} +2 -2
- package/dist/{iteration-ZpERYj3o.js → index-Bfdseotz.js} +698 -726
- package/dist/iteration-CcXrOMQe.js +30 -0
- package/dist/{lodash-7SZBZ8VQ.js → lodash-B8bqa6a9.js} +1 -1
- package/dist/member-grant-BIpKkuu8.js +54 -0
- package/dist/object-Dwyg2LgX.js +16 -0
- package/dist/restaurant-ejyX2jEG.js +52 -0
- package/dist/role-C_t3DDlG.js +98 -0
- package/dist/rule-Ccopk8R_.js +843 -0
- package/dist/src/api/audit-log/index.d.ts +6 -0
- package/dist/src/api/employee/index.d.ts +3 -4
- package/dist/src/api/my-pos-profile/index.d.ts +1 -3
- 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/api/timesheet/index.d.ts +1 -1
- 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/permission-set.d.ts +1 -102
- package/dist/src/helpers/pos-assignment-rows.d.ts +2 -0
- package/dist/src/helpers/rule.d.ts +2 -2
- package/dist/src/helpers/staff-invite.d.ts +3 -0
- package/dist/src/router/shared.d.ts +3 -0
- package/dist/src/stores/approval-code.d.ts +1 -1
- package/dist/src/stores/employee.d.ts +15 -21
- package/dist/src/stores/grant-user.d.ts +1 -1
- package/dist/src/stores/permission-assignment.d.ts +2 -2
- package/dist/src/stores/permission-set.d.ts +2 -2
- package/dist/src/stores/restaurant.d.ts +63 -3
- package/dist/src/stores/role.d.ts +2 -2
- package/dist/src/stores/team.d.ts +1 -1
- package/dist/src/stores/timesheet.d.ts +68 -53
- package/dist/src/types/employee.d.ts +1 -0
- package/dist/src/types/my-pos-profile.d.ts +2 -3
- package/dist/src/types/schedule.d.ts +23 -0
- package/dist/src/types/sso-provider.d.ts +10 -0
- package/dist/src/types/timesheet.d.ts +3 -0
- package/dist/src/views/audit-log/constants.d.ts +9 -30
- package/dist/src/views/audit-log/locales/index.d.ts +528 -0
- package/dist/src/views/audit-log/pos-row.d.ts +27 -0
- package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
- package/dist/src/views/hr/locales/index.d.ts +24 -4
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
- package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +1 -1
- package/dist/src/views/my-pos-profile/locales/index.d.ts +40 -4
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +41 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDoneArt.vue.d.ts +2 -0
- package/dist/src/views/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/timesheet-CZHcebqS.js +76 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CL6EEDuw.js → useAppStore-DfqsbhT2.js} +1 -1
- package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
- package/dist/{useLoading-BBjBUzGJ.js → useLoading-CQnX5WjI.js} +1 -1
- package/dist/useMessage-_ywT_N9X.js +17 -0
- package/dist/{useReportPermissions-Bg0fma6m.js → useReportPermissions-kTjftFk7.js} +13 -13
- package/package.json +7 -5
- 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/MyPosProfile-CN8Bj3aV.js +0 -301
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BBoRXQPn.js +0 -4243
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B5QDOF0L.js +0 -1840
- package/dist/RoleList-ALmAwN0U.js +0 -739
- package/dist/SelectFilter-ATOm0hdn.js +0 -269
- package/dist/TeamMemberList-DZfEnOs1.js +0 -2097
- package/dist/TimesheetList-CECFKt7H.js +0 -402
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RIyoAmeb.js +0 -58
- package/dist/employee-Dg-J9goA.js +0 -205
- package/dist/member-grant-C46lvrh2.js +0 -55
- package/dist/restaurant-CKhT6kgj.js +0 -45
- package/dist/role-C6hFKOfU.js +0 -93
- package/dist/rule-BlMymDXm.js +0 -788
- package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
|
@@ -0,0 +1,811 @@
|
|
|
1
|
+
import { ref as b, reactive as Y, computed as L, defineComponent as N, createBlock as T, openBlock as h, withCtx as k, createElementVNode as e, createVNode as w, toDisplayString as l, unref as s, createElementBlock as m, Fragment as M, createTextVNode as H, withDirectives as _, vModelText as f, createCommentVNode as I, renderList as B, onMounted as q, normalizeClass as W } from "vue";
|
|
2
|
+
import { useRouter as K } from "vue-router";
|
|
3
|
+
import { useSnackbar as j } from "@feedmepos/ui-library";
|
|
4
|
+
import { useCoreStore as F, useI18n as E } from "@feedmepos/mf-common";
|
|
5
|
+
import { R as G } from "./app-DEZT4wdV.js";
|
|
6
|
+
import { b as g, o as A, g as V, V as J, a1 as z, p as U, ay as Q, av as C, aA as X, aB as Z, ai as ee, ax as se } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-DdsQ8v-5.js";
|
|
7
|
+
const te = [
|
|
8
|
+
{ key: "payrates", labelKey: "scheduling.general.payRates" },
|
|
9
|
+
{ key: "overtime", labelKey: "scheduling.general.overtime" },
|
|
10
|
+
{ key: "workingHours", labelKey: "scheduling.general.workingHours" }
|
|
11
|
+
];
|
|
12
|
+
function $() {
|
|
13
|
+
return structuredClone({
|
|
14
|
+
// RULES is reactive, so spreading each rate tier first gives structuredClone plain
|
|
15
|
+
// objects instead of Vue Proxy instances, which structuredClone cannot clone.
|
|
16
|
+
payRate: {
|
|
17
|
+
NORMAL: { ...g.payRate.NORMAL },
|
|
18
|
+
REST_DAY: { ...g.payRate.REST_DAY },
|
|
19
|
+
PUBLIC_HOLIDAY: { ...g.payRate.PUBLIC_HOLIDAY }
|
|
20
|
+
},
|
|
21
|
+
otCapHours: g.otCapHours,
|
|
22
|
+
workingHours: { ...g.workingHours }
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function ae() {
|
|
26
|
+
const r = F(), { t: d } = E(), v = b(!1), t = b("payrates"), u = Y($()), n = b(!1);
|
|
27
|
+
let c = 0;
|
|
28
|
+
async function x() {
|
|
29
|
+
if (!A.value) return;
|
|
30
|
+
const p = ++c, o = A.value;
|
|
31
|
+
n.value = !0;
|
|
32
|
+
try {
|
|
33
|
+
const a = await z.getSettings(o);
|
|
34
|
+
if (p !== c || A.value !== o) return;
|
|
35
|
+
U.value && (U.value = { ...U.value, settings: a });
|
|
36
|
+
const i = V(r.currentCountry.value);
|
|
37
|
+
g.payRate = structuredClone(a.settingsConfigured ? a.payRate : i.payRate), g.otCapHours = a.settingsConfigured ? a.overtime.maxHoursPerMonth : i.overtime.maxHoursPerMonth, g.workingHours = a.settingsConfigured ? structuredClone(a.workingHours) : {
|
|
38
|
+
minHoursPerDay: null,
|
|
39
|
+
maxHoursPerDay: i.workingHours.fullTime.maxHoursPerDay,
|
|
40
|
+
maxHoursPerWeek: i.workingHours.fullTime.maxHoursPerWeek
|
|
41
|
+
};
|
|
42
|
+
} finally {
|
|
43
|
+
p === c && (n.value = !1);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function y(p) {
|
|
47
|
+
Object.assign(u, $()), t.value = p ?? "payrates", v.value = !0;
|
|
48
|
+
}
|
|
49
|
+
const D = L(() => JSON.stringify(u) !== JSON.stringify($()));
|
|
50
|
+
function P() {
|
|
51
|
+
return D.value ? !1 : (v.value = !1, !0);
|
|
52
|
+
}
|
|
53
|
+
function O() {
|
|
54
|
+
Object.assign(u, $()), v.value = !1;
|
|
55
|
+
}
|
|
56
|
+
async function R() {
|
|
57
|
+
if (!A.value) throw new Error(d("scheduling.settings.noOutletSelected"));
|
|
58
|
+
const p = u.otCapHours === 0 ? null : u.otCapHours;
|
|
59
|
+
if (p != null && p <= 0)
|
|
60
|
+
throw new Error(d("scheduling.general.errOtCapPositive"));
|
|
61
|
+
const o = {
|
|
62
|
+
minHoursPerDay: u.workingHours.minHoursPerDay === 0 ? null : u.workingHours.minHoursPerDay,
|
|
63
|
+
maxHoursPerDay: u.workingHours.maxHoursPerDay === 0 ? null : u.workingHours.maxHoursPerDay,
|
|
64
|
+
maxHoursPerWeek: u.workingHours.maxHoursPerWeek === 0 ? null : u.workingHours.maxHoursPerWeek
|
|
65
|
+
}, a = V(r.currentCountry.value);
|
|
66
|
+
if (o.maxHoursPerDay == null)
|
|
67
|
+
throw new Error(
|
|
68
|
+
d("scheduling.general.errMaxDailyPositive", {
|
|
69
|
+
hours: a.workingHours.fullTime.maxHoursPerDay
|
|
70
|
+
})
|
|
71
|
+
);
|
|
72
|
+
if (o.maxHoursPerWeek == null)
|
|
73
|
+
throw new Error(
|
|
74
|
+
d("scheduling.general.errMaxWeeklyPositive", {
|
|
75
|
+
hours: a.workingHours.fullTime.maxHoursPerWeek
|
|
76
|
+
})
|
|
77
|
+
);
|
|
78
|
+
if (o.minHoursPerDay != null && o.maxHoursPerDay != null && o.minHoursPerDay > o.maxHoursPerDay)
|
|
79
|
+
throw new Error(d("scheduling.general.errMinExceedsMaxDaily"));
|
|
80
|
+
if (o.maxHoursPerDay != null && o.maxHoursPerWeek != null && o.maxHoursPerDay > o.maxHoursPerWeek)
|
|
81
|
+
throw new Error(d("scheduling.general.errDailyExceedsWeekly"));
|
|
82
|
+
const i = await J({
|
|
83
|
+
payRate: u.payRate,
|
|
84
|
+
overtime: { maxHoursPerMonth: p },
|
|
85
|
+
workingHours: o
|
|
86
|
+
});
|
|
87
|
+
g.payRate = structuredClone(i.payRate), g.otCapHours = i.overtime.maxHoursPerMonth, g.workingHours = structuredClone(i.workingHours), v.value = !1;
|
|
88
|
+
}
|
|
89
|
+
return { isOpen: v, activeSection: t, draft: u, dirty: D, loading: n, load: x, open: y, close: P, discard: O, save: R };
|
|
90
|
+
}
|
|
91
|
+
function le(r, d = {}) {
|
|
92
|
+
const { t: v } = E(), t = b(!1), u = b(""), n = b(/* @__PURE__ */ new Set()), c = b(!1), x = b(null), y = L(
|
|
93
|
+
() => {
|
|
94
|
+
var o;
|
|
95
|
+
return ((o = r.options.value.find((a) => a.value === r.outletId.value)) == null ? void 0 : o.label) ?? "";
|
|
96
|
+
}
|
|
97
|
+
), D = L(() => {
|
|
98
|
+
const o = u.value.trim().toLowerCase();
|
|
99
|
+
return r.options.value.filter(
|
|
100
|
+
(a) => a.value !== r.outletId.value && (!o || a.label.toLowerCase().includes(o))
|
|
101
|
+
);
|
|
102
|
+
});
|
|
103
|
+
function P() {
|
|
104
|
+
u.value = "", n.value = /* @__PURE__ */ new Set(), c.value = !1, x.value = null, t.value = !0;
|
|
105
|
+
}
|
|
106
|
+
function O() {
|
|
107
|
+
t.value = !1;
|
|
108
|
+
}
|
|
109
|
+
function R(o) {
|
|
110
|
+
const a = new Set(n.value);
|
|
111
|
+
a.has(o) ? a.delete(o) : a.add(o), n.value = a;
|
|
112
|
+
}
|
|
113
|
+
async function p() {
|
|
114
|
+
var a, i;
|
|
115
|
+
const o = [...n.value];
|
|
116
|
+
if (!(!o.length || c.value)) {
|
|
117
|
+
c.value = !0;
|
|
118
|
+
try {
|
|
119
|
+
await Promise.all(
|
|
120
|
+
o.map(
|
|
121
|
+
(S) => z.saveSettings(S, {
|
|
122
|
+
payRate: g.payRate,
|
|
123
|
+
overtime: { maxHoursPerMonth: g.otCapHours },
|
|
124
|
+
workingHours: g.workingHours
|
|
125
|
+
})
|
|
126
|
+
)
|
|
127
|
+
), x.value = o.length, (a = d.notify) == null || a.call(
|
|
128
|
+
d,
|
|
129
|
+
v(
|
|
130
|
+
o.length === 1 ? "scheduling.cloneOutlet.copiedToOne" : "scheduling.cloneOutlet.copiedToMany",
|
|
131
|
+
{ count: o.length }
|
|
132
|
+
),
|
|
133
|
+
"success"
|
|
134
|
+
);
|
|
135
|
+
} catch (S) {
|
|
136
|
+
(i = d.notify) == null || i.call(
|
|
137
|
+
d,
|
|
138
|
+
S instanceof Error ? S.message : v("scheduling.cloneOutlet.failed"),
|
|
139
|
+
"error"
|
|
140
|
+
);
|
|
141
|
+
} finally {
|
|
142
|
+
c.value = !1;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return {
|
|
147
|
+
open: t,
|
|
148
|
+
query: u,
|
|
149
|
+
selected: n,
|
|
150
|
+
saving: c,
|
|
151
|
+
done: x,
|
|
152
|
+
sourceLabel: y,
|
|
153
|
+
targets: D,
|
|
154
|
+
openModal: P,
|
|
155
|
+
close: O,
|
|
156
|
+
toggle: R,
|
|
157
|
+
confirm: p
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
const ne = { class: "am-head" }, oe = {
|
|
161
|
+
id: "schedule-clone-title",
|
|
162
|
+
class: "am-title"
|
|
163
|
+
}, ie = { class: "ce-body" }, re = {
|
|
164
|
+
class: "ce-hint",
|
|
165
|
+
style: { "margin-bottom": "var(--fm-spacing-10)" }
|
|
166
|
+
}, de = { class: "sch-search" }, ue = ["placeholder", "aria-label"], ce = { class: "asg-list" }, he = ["checked", "onChange"], ge = { class: "asg-id" }, me = { class: "asg-nm" }, pe = {
|
|
167
|
+
key: 0,
|
|
168
|
+
class: "asg-empty"
|
|
169
|
+
}, ve = {
|
|
170
|
+
class: "ce-hint",
|
|
171
|
+
style: { "margin-top": "var(--fm-spacing-10)" }
|
|
172
|
+
}, ye = {
|
|
173
|
+
key: 1,
|
|
174
|
+
class: "cg-done"
|
|
175
|
+
}, _e = { class: "cg-st-main" }, fe = { class: "am-foot" }, be = { class: "am-cost-preview" }, we = { class: "am-foot-btns" }, ke = /* @__PURE__ */ N({
|
|
176
|
+
__name: "ScheduleCloneOutletModal",
|
|
177
|
+
props: {
|
|
178
|
+
modal: {}
|
|
179
|
+
},
|
|
180
|
+
setup(r) {
|
|
181
|
+
const { t: d } = E();
|
|
182
|
+
return (v, t) => (h(), T(Q, {
|
|
183
|
+
open: r.modal.open.value,
|
|
184
|
+
"panel-class": "ce-modal",
|
|
185
|
+
"panel-style": "width: min(460px, 95vw)",
|
|
186
|
+
"labelled-by": "schedule-clone-title",
|
|
187
|
+
onClose: t[5] || (t[5] = (u) => r.modal.close())
|
|
188
|
+
}, {
|
|
189
|
+
default: k(() => [
|
|
190
|
+
e("div", ne, [
|
|
191
|
+
e("div", oe, l(s(d)("scheduling.cloneOutlet.title")), 1),
|
|
192
|
+
w(C, {
|
|
193
|
+
hierarchy: "ghost",
|
|
194
|
+
size: "xs",
|
|
195
|
+
"icon-only": "",
|
|
196
|
+
class: "ce-close-x",
|
|
197
|
+
type: "button",
|
|
198
|
+
"aria-label": s(d)("scheduling.positionModal.close"),
|
|
199
|
+
onClick: t[0] || (t[0] = (u) => r.modal.close())
|
|
200
|
+
}, {
|
|
201
|
+
default: k(() => [...t[6] || (t[6] = [
|
|
202
|
+
e("svg", {
|
|
203
|
+
width: "20",
|
|
204
|
+
height: "20",
|
|
205
|
+
viewBox: "0 0 20 20",
|
|
206
|
+
fill: "none",
|
|
207
|
+
stroke: "currentColor",
|
|
208
|
+
"stroke-width": "1.8",
|
|
209
|
+
"stroke-linecap": "round",
|
|
210
|
+
"aria-hidden": "true"
|
|
211
|
+
}, [
|
|
212
|
+
e("path", { d: "M5.5 5.5l9 9M14.5 5.5l-9 9" })
|
|
213
|
+
], -1)
|
|
214
|
+
])]),
|
|
215
|
+
_: 1
|
|
216
|
+
}, 8, ["aria-label"])
|
|
217
|
+
]),
|
|
218
|
+
e("div", ie, [
|
|
219
|
+
r.modal.done.value === null ? (h(), m(M, { key: 0 }, [
|
|
220
|
+
e("div", re, [
|
|
221
|
+
H(l(s(d)("scheduling.cloneOutlet.copyPrefix")) + " ", 1),
|
|
222
|
+
e("b", null, l(r.modal.sourceLabel.value), 1),
|
|
223
|
+
H(l(s(d)("scheduling.cloneOutlet.copySuffix")), 1)
|
|
224
|
+
]),
|
|
225
|
+
e("div", de, [
|
|
226
|
+
t[7] || (t[7] = e("svg", {
|
|
227
|
+
width: "16",
|
|
228
|
+
height: "16",
|
|
229
|
+
viewBox: "0 0 16 16",
|
|
230
|
+
fill: "none",
|
|
231
|
+
"aria-hidden": "true"
|
|
232
|
+
}, [
|
|
233
|
+
e("circle", {
|
|
234
|
+
cx: "7",
|
|
235
|
+
cy: "7",
|
|
236
|
+
r: "4.5",
|
|
237
|
+
stroke: "currentColor",
|
|
238
|
+
"stroke-width": "1.5"
|
|
239
|
+
}),
|
|
240
|
+
e("path", {
|
|
241
|
+
d: "M10.5 10.5L14 14",
|
|
242
|
+
stroke: "currentColor",
|
|
243
|
+
"stroke-width": "1.5",
|
|
244
|
+
"stroke-linecap": "round"
|
|
245
|
+
})
|
|
246
|
+
], -1)),
|
|
247
|
+
_(e("input", {
|
|
248
|
+
"onUpdate:modelValue": t[1] || (t[1] = (u) => r.modal.query.value = u),
|
|
249
|
+
type: "search",
|
|
250
|
+
placeholder: s(d)("scheduling.cloneOutlet.search"),
|
|
251
|
+
"aria-label": s(d)("scheduling.cloneOutlet.search"),
|
|
252
|
+
autocomplete: "off"
|
|
253
|
+
}, null, 8, ue), [
|
|
254
|
+
[f, r.modal.query.value]
|
|
255
|
+
])
|
|
256
|
+
]),
|
|
257
|
+
e("div", ce, [
|
|
258
|
+
(h(!0), m(M, null, B(r.modal.targets.value, (u) => (h(), m("label", {
|
|
259
|
+
key: u.value,
|
|
260
|
+
class: "asg-row"
|
|
261
|
+
}, [
|
|
262
|
+
e("input", {
|
|
263
|
+
type: "checkbox",
|
|
264
|
+
class: "sch-checkbox",
|
|
265
|
+
"data-platform": "desktop",
|
|
266
|
+
checked: r.modal.selected.value.has(u.value),
|
|
267
|
+
onChange: (n) => r.modal.toggle(u.value)
|
|
268
|
+
}, null, 40, he),
|
|
269
|
+
e("span", ge, [
|
|
270
|
+
e("span", me, l(u.label), 1)
|
|
271
|
+
])
|
|
272
|
+
]))), 128)),
|
|
273
|
+
r.modal.targets.value.length ? I("", !0) : (h(), m("div", pe, l(r.modal.query.value ? s(d)("scheduling.cloneOutlet.noMatch") : s(d)("scheduling.cloneOutlet.noOthers")), 1))
|
|
274
|
+
]),
|
|
275
|
+
e("div", ve, l(s(d)("scheduling.cloneOutlet.hint")), 1)
|
|
276
|
+
], 64)) : (h(), m("div", ye, [
|
|
277
|
+
t[8] || (t[8] = e("span", {
|
|
278
|
+
class: "cg-done-tick",
|
|
279
|
+
"aria-hidden": "true"
|
|
280
|
+
}, "✓", -1)),
|
|
281
|
+
e("div", _e, [
|
|
282
|
+
e("b", null, l(s(d)("scheduling.cloneOutlet.copied")), 1),
|
|
283
|
+
e("small", null, l(s(d)(
|
|
284
|
+
r.modal.done.value === 1 ? "scheduling.cloneOutlet.sentToOne" : "scheduling.cloneOutlet.sentToMany",
|
|
285
|
+
{ count: r.modal.done.value }
|
|
286
|
+
)), 1)
|
|
287
|
+
])
|
|
288
|
+
]))
|
|
289
|
+
]),
|
|
290
|
+
e("div", fe, [
|
|
291
|
+
e("div", be, l(r.modal.done.value === null && r.modal.selected.value.size ? s(d)(
|
|
292
|
+
r.modal.selected.value.size === 1 ? "scheduling.cloneOutlet.selectedOne" : "scheduling.cloneOutlet.selectedMany",
|
|
293
|
+
{ count: r.modal.selected.value.size }
|
|
294
|
+
) : ""), 1),
|
|
295
|
+
e("div", we, [
|
|
296
|
+
r.modal.done.value === null ? (h(), m(M, { key: 0 }, [
|
|
297
|
+
w(C, {
|
|
298
|
+
hierarchy: "secondary",
|
|
299
|
+
size: "sm",
|
|
300
|
+
class: "am-btn am-btn-sec",
|
|
301
|
+
type: "button",
|
|
302
|
+
onClick: t[2] || (t[2] = (u) => r.modal.close())
|
|
303
|
+
}, {
|
|
304
|
+
default: k(() => [
|
|
305
|
+
H(l(s(d)("scheduling.common.cancel")), 1)
|
|
306
|
+
]),
|
|
307
|
+
_: 1
|
|
308
|
+
}),
|
|
309
|
+
w(C, {
|
|
310
|
+
hierarchy: "primary",
|
|
311
|
+
size: "sm",
|
|
312
|
+
class: "am-btn am-btn-primary",
|
|
313
|
+
type: "button",
|
|
314
|
+
disabled: !r.modal.selected.value.size || r.modal.saving.value,
|
|
315
|
+
onClick: t[3] || (t[3] = (u) => r.modal.confirm())
|
|
316
|
+
}, {
|
|
317
|
+
default: k(() => [
|
|
318
|
+
H(l(r.modal.saving.value ? s(d)("scheduling.cloneOutlet.copying") : s(d)("scheduling.cloneOutlet.copySetup")), 1)
|
|
319
|
+
]),
|
|
320
|
+
_: 1
|
|
321
|
+
}, 8, ["disabled"])
|
|
322
|
+
], 64)) : (h(), T(C, {
|
|
323
|
+
key: 1,
|
|
324
|
+
hierarchy: "primary",
|
|
325
|
+
size: "sm",
|
|
326
|
+
class: "am-btn am-btn-primary",
|
|
327
|
+
type: "button",
|
|
328
|
+
onClick: t[4] || (t[4] = (u) => r.modal.close())
|
|
329
|
+
}, {
|
|
330
|
+
default: k(() => [
|
|
331
|
+
H(l(s(d)("scheduling.common.done")), 1)
|
|
332
|
+
]),
|
|
333
|
+
_: 1
|
|
334
|
+
}))
|
|
335
|
+
])
|
|
336
|
+
])
|
|
337
|
+
]),
|
|
338
|
+
_: 1
|
|
339
|
+
}, 8, ["open"]));
|
|
340
|
+
}
|
|
341
|
+
}), He = { class: "main" }, xe = {
|
|
342
|
+
id: "viewSettings",
|
|
343
|
+
class: "view"
|
|
344
|
+
}, Ce = { class: "sp-head" }, De = { class: "sp-title-row" }, Pe = { class: "sp-title" }, Oe = { class: "page-tags" }, Re = {
|
|
345
|
+
class: "sch-badge page-tag-premium",
|
|
346
|
+
"data-color": "brand"
|
|
347
|
+
}, Se = {
|
|
348
|
+
class: "sch-badge",
|
|
349
|
+
"data-color": "info"
|
|
350
|
+
}, Ae = { class: "sp-sub" }, $e = { class: "outlet-bar" }, Me = { class: "outlet-bar-lbl" }, Le = { class: "sp-body" }, Ee = { class: "sp-tabs" }, Ue = ["onClick"], Ie = { class: "sp-content" }, Te = { class: "sp-panel" }, We = {
|
|
351
|
+
key: 0,
|
|
352
|
+
id: "sp-payrates",
|
|
353
|
+
class: "sp-sec"
|
|
354
|
+
}, Ve = { class: "sp-sec-head" }, Ne = { class: "sp-panel-title" }, Be = { class: "sp-panel-desc" }, ze = { class: "sp-card" }, Ye = { class: "sp-card-head" }, qe = { class: "sp-card-title" }, Ke = { class: "sp-card-note" }, je = { class: "sp-row" }, Fe = { class: "sp-row-main" }, Ge = { class: "sp-row-label" }, Je = { class: "sp-row-hint" }, Qe = { class: "sp-field" }, Xe = ["aria-label"], Ze = { class: "sp-row" }, es = { class: "sp-row-main" }, ss = { class: "sp-row-label" }, ts = { class: "sp-row-hint" }, as = { class: "sp-field" }, ls = ["aria-label"], ns = { class: "sp-row" }, os = { class: "sp-row-main" }, is = { class: "sp-row-label" }, rs = { class: "sp-row-hint" }, ds = { class: "sp-field" }, us = ["aria-label"], cs = { class: "sp-card" }, hs = { class: "sp-card-head" }, gs = { class: "sp-card-title" }, ms = { class: "sp-card-note" }, ps = { class: "sp-row" }, vs = { class: "sp-row-main" }, ys = { class: "sp-row-label" }, _s = { class: "sp-row-hint" }, fs = { class: "sp-field" }, bs = ["aria-label"], ws = { class: "sp-row" }, ks = { class: "sp-row-main" }, Hs = { class: "sp-row-label" }, xs = { class: "sp-row-hint" }, Cs = { class: "sp-field" }, Ds = ["aria-label"], Ps = {
|
|
355
|
+
key: 1,
|
|
356
|
+
id: "sp-working-hours",
|
|
357
|
+
class: "sp-sec"
|
|
358
|
+
}, Os = { class: "sp-sec-head" }, Rs = { class: "sp-panel-title" }, Ss = { class: "sp-panel-desc" }, As = { class: "sp-card" }, $s = { class: "sp-card-head" }, Ms = { class: "sp-card-title" }, Ls = { class: "sp-card-note" }, Es = { class: "sp-row" }, Us = { class: "sp-row-main" }, Is = { class: "sp-row-label" }, Ts = { class: "sp-field" }, Ws = ["placeholder", "aria-label"], Vs = { class: "sp-unit" }, Ns = { class: "sp-row" }, Bs = { class: "sp-row-main" }, zs = { class: "sp-row-label" }, Ys = { class: "sp-field" }, qs = ["placeholder", "aria-label"], Ks = { class: "sp-unit" }, js = { class: "sp-row" }, Fs = { class: "sp-row-main" }, Gs = { class: "sp-row-label" }, Js = { class: "sp-field" }, Qs = ["placeholder", "aria-label"], Xs = { class: "sp-unit" }, Zs = {
|
|
359
|
+
key: 2,
|
|
360
|
+
id: "sp-overtime",
|
|
361
|
+
class: "sp-sec"
|
|
362
|
+
}, et = { class: "sp-sec-head" }, st = { class: "sp-panel-title" }, tt = { class: "sp-panel-desc" }, at = { class: "sp-card" }, lt = { class: "sp-card-head" }, nt = { class: "sp-card-title" }, ot = { class: "sp-card-note" }, it = { class: "sp-row" }, rt = { class: "sp-row-main" }, dt = { class: "sp-row-label" }, ut = { class: "sp-row-hint" }, ct = ["placeholder", "aria-label"], ht = { class: "sp-save-txt" }, gt = { key: 0 }, bt = /* @__PURE__ */ N({
|
|
363
|
+
__name: "ScheduleGeneralPage",
|
|
364
|
+
setup(r) {
|
|
365
|
+
const d = b(null);
|
|
366
|
+
X(d);
|
|
367
|
+
const v = K(), { t } = E(), u = j(), n = ae(), c = Z(), x = le(c, {
|
|
368
|
+
notify: (o, a) => u.open({ message: o, type: a })
|
|
369
|
+
}), y = b(!1);
|
|
370
|
+
q(async () => {
|
|
371
|
+
await c.resolve() && await ee(/* @__PURE__ */ new Date()), await n.load(), n.open();
|
|
372
|
+
});
|
|
373
|
+
const D = L(
|
|
374
|
+
() => c.options.value.length ? c.options.value : [{ value: "", label: t("scheduling.settings.noOutletSelected"), disabled: !0 }]
|
|
375
|
+
);
|
|
376
|
+
async function P(o) {
|
|
377
|
+
n.dirty.value || await c.switchTo(o, /* @__PURE__ */ new Date()) && (await n.load(), n.open());
|
|
378
|
+
}
|
|
379
|
+
function O() {
|
|
380
|
+
n.close() && v.push({ name: G.SCHEDULE });
|
|
381
|
+
}
|
|
382
|
+
function R() {
|
|
383
|
+
if (!y.value) {
|
|
384
|
+
y.value = !0;
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
y.value = !1, n.discard();
|
|
388
|
+
}
|
|
389
|
+
async function p() {
|
|
390
|
+
try {
|
|
391
|
+
await n.save(), u.open({ message: t("scheduling.general.saved"), type: "success" });
|
|
392
|
+
} catch (o) {
|
|
393
|
+
u.open({
|
|
394
|
+
message: o instanceof Error ? o.message : t("scheduling.general.saveFailed"),
|
|
395
|
+
type: "error"
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
return (o, a) => (h(), m("div", {
|
|
400
|
+
ref_key: "rootEl",
|
|
401
|
+
ref: d,
|
|
402
|
+
class: "sch"
|
|
403
|
+
}, [
|
|
404
|
+
e("div", He, [
|
|
405
|
+
e("div", xe, [
|
|
406
|
+
e("div", Ce, [
|
|
407
|
+
w(C, {
|
|
408
|
+
hierarchy: "ghost",
|
|
409
|
+
size: "sm",
|
|
410
|
+
class: "sp-back",
|
|
411
|
+
type: "button",
|
|
412
|
+
onClick: O
|
|
413
|
+
}, {
|
|
414
|
+
default: k(() => [
|
|
415
|
+
a[12] || (a[12] = e("svg", {
|
|
416
|
+
width: "12",
|
|
417
|
+
height: "12",
|
|
418
|
+
viewBox: "0 0 16 16",
|
|
419
|
+
fill: "none",
|
|
420
|
+
"aria-hidden": "true"
|
|
421
|
+
}, [
|
|
422
|
+
e("path", {
|
|
423
|
+
d: "M10 3.5L5.5 8l4.5 4.5",
|
|
424
|
+
stroke: "currentColor",
|
|
425
|
+
"stroke-width": "1.7",
|
|
426
|
+
"stroke-linecap": "round",
|
|
427
|
+
"stroke-linejoin": "round"
|
|
428
|
+
})
|
|
429
|
+
], -1)),
|
|
430
|
+
e("span", null, l(s(t)("scheduling.settings.backToSchedule")), 1)
|
|
431
|
+
]),
|
|
432
|
+
_: 1
|
|
433
|
+
}),
|
|
434
|
+
e("div", De, [
|
|
435
|
+
e("div", Pe, l(s(t)("scheduling.general.title")), 1),
|
|
436
|
+
e("span", Oe, [
|
|
437
|
+
e("span", Re, l(s(t)("scheduling.common.premium")), 1),
|
|
438
|
+
e("span", Se, l(s(t)("scheduling.common.freeUntil")), 1)
|
|
439
|
+
])
|
|
440
|
+
]),
|
|
441
|
+
e("div", Ae, l(s(t)("scheduling.general.subtitle")), 1),
|
|
442
|
+
e("div", $e, [
|
|
443
|
+
e("span", Me, l(s(t)("scheduling.settings.outlet")), 1),
|
|
444
|
+
w(se, {
|
|
445
|
+
class: "outlet-sel",
|
|
446
|
+
"aria-label": s(t)("scheduling.settings.outletAria"),
|
|
447
|
+
searchable: "",
|
|
448
|
+
disabled: s(n).dirty.value || s(n).loading.value,
|
|
449
|
+
title: s(n).dirty.value ? s(t)("scheduling.general.outletDirtyHint") : s(t)("scheduling.general.outletHint"),
|
|
450
|
+
"model-value": s(c).outletId.value,
|
|
451
|
+
options: D.value,
|
|
452
|
+
"onUpdate:modelValue": P
|
|
453
|
+
}, null, 8, ["aria-label", "disabled", "title", "model-value", "options"]),
|
|
454
|
+
w(C, {
|
|
455
|
+
hierarchy: "secondary",
|
|
456
|
+
size: "sm",
|
|
457
|
+
class: "outlet-clone",
|
|
458
|
+
type: "button",
|
|
459
|
+
disabled: s(n).dirty.value || s(n).loading.value || !s(c).outletId.value,
|
|
460
|
+
title: s(n).dirty.value ? s(t)("scheduling.general.cloneDirtyHint") : s(t)("scheduling.general.cloneHint"),
|
|
461
|
+
onClick: a[0] || (a[0] = (i) => s(x).openModal())
|
|
462
|
+
}, {
|
|
463
|
+
default: k(() => [
|
|
464
|
+
a[13] || (a[13] = e("svg", {
|
|
465
|
+
width: "12",
|
|
466
|
+
height: "12",
|
|
467
|
+
viewBox: "0 0 16 16",
|
|
468
|
+
fill: "none",
|
|
469
|
+
"aria-hidden": "true"
|
|
470
|
+
}, [
|
|
471
|
+
e("rect", {
|
|
472
|
+
x: "5.5",
|
|
473
|
+
y: "5.5",
|
|
474
|
+
width: "8.5",
|
|
475
|
+
height: "8.5",
|
|
476
|
+
rx: "1.5",
|
|
477
|
+
stroke: "currentColor",
|
|
478
|
+
"stroke-width": "1.4"
|
|
479
|
+
}),
|
|
480
|
+
e("path", {
|
|
481
|
+
d: "M10.5 5.5V3.2A1.6 1.6 0 0 0 8.9 1.6H3.2A1.6 1.6 0 0 0 1.6 3.2v5.7a1.6 1.6 0 0 0 1.6 1.6h2.3",
|
|
482
|
+
stroke: "currentColor",
|
|
483
|
+
"stroke-width": "1.4",
|
|
484
|
+
"stroke-linecap": "round"
|
|
485
|
+
})
|
|
486
|
+
], -1)),
|
|
487
|
+
H(" " + l(s(t)("scheduling.general.cloneSetup")), 1)
|
|
488
|
+
]),
|
|
489
|
+
_: 1
|
|
490
|
+
}, 8, ["disabled", "title"])
|
|
491
|
+
])
|
|
492
|
+
]),
|
|
493
|
+
e("div", Le, [
|
|
494
|
+
e("nav", Ee, [
|
|
495
|
+
(h(!0), m(M, null, B(s(te), (i) => (h(), m("button", {
|
|
496
|
+
key: i.key,
|
|
497
|
+
type: "button",
|
|
498
|
+
class: W(["sch-tab sp-tab", { active: s(n).activeSection.value === i.key }]),
|
|
499
|
+
"data-active": "false",
|
|
500
|
+
onClick: (S) => s(n).activeSection.value = i.key
|
|
501
|
+
}, l(s(t)(i.labelKey)), 11, Ue))), 128))
|
|
502
|
+
]),
|
|
503
|
+
e("div", Ie, [
|
|
504
|
+
e("div", Te, [
|
|
505
|
+
s(n).activeSection.value === "payrates" ? (h(), m("section", We, [
|
|
506
|
+
e("div", Ve, [
|
|
507
|
+
e("div", Ne, l(s(t)("scheduling.general.payRates")), 1)
|
|
508
|
+
]),
|
|
509
|
+
e("div", Be, l(s(t)("scheduling.general.payRatesDesc")), 1),
|
|
510
|
+
e("div", ze, [
|
|
511
|
+
e("div", Ye, [
|
|
512
|
+
e("div", qe, l(s(t)("scheduling.general.overtimeRate")), 1),
|
|
513
|
+
e("div", Ke, l(s(t)("scheduling.general.overtimeRateNote")), 1)
|
|
514
|
+
]),
|
|
515
|
+
e("div", je, [
|
|
516
|
+
e("div", Fe, [
|
|
517
|
+
e("div", Ge, l(s(t)("scheduling.general.normalDay")), 1),
|
|
518
|
+
e("div", Je, l(s(t)("scheduling.general.normalDayOtHint")), 1)
|
|
519
|
+
]),
|
|
520
|
+
e("div", Qe, [
|
|
521
|
+
_(e("input", {
|
|
522
|
+
"onUpdate:modelValue": a[1] || (a[1] = (i) => s(n).draft.payRate.NORMAL.overtime = i),
|
|
523
|
+
class: "sch-input sp-num",
|
|
524
|
+
type: "number",
|
|
525
|
+
min: "1",
|
|
526
|
+
max: "4",
|
|
527
|
+
step: "0.1",
|
|
528
|
+
"aria-label": s(t)("scheduling.general.otNormalAria")
|
|
529
|
+
}, null, 8, Xe), [
|
|
530
|
+
[
|
|
531
|
+
f,
|
|
532
|
+
s(n).draft.payRate.NORMAL.overtime,
|
|
533
|
+
void 0,
|
|
534
|
+
{ number: !0 }
|
|
535
|
+
]
|
|
536
|
+
]),
|
|
537
|
+
a[14] || (a[14] = e("span", { class: "sp-unit" }, "×", -1))
|
|
538
|
+
])
|
|
539
|
+
]),
|
|
540
|
+
e("div", Ze, [
|
|
541
|
+
e("div", es, [
|
|
542
|
+
e("div", ss, l(s(t)("scheduling.general.offDay")), 1),
|
|
543
|
+
e("div", ts, l(s(t)("scheduling.general.offDayOtHint")), 1)
|
|
544
|
+
]),
|
|
545
|
+
e("div", as, [
|
|
546
|
+
_(e("input", {
|
|
547
|
+
"onUpdate:modelValue": a[2] || (a[2] = (i) => s(n).draft.payRate.REST_DAY.overtime = i),
|
|
548
|
+
class: "sch-input sp-num",
|
|
549
|
+
type: "number",
|
|
550
|
+
min: "1",
|
|
551
|
+
max: "4",
|
|
552
|
+
step: "0.1",
|
|
553
|
+
"aria-label": s(t)("scheduling.general.otOffDayAria")
|
|
554
|
+
}, null, 8, ls), [
|
|
555
|
+
[
|
|
556
|
+
f,
|
|
557
|
+
s(n).draft.payRate.REST_DAY.overtime,
|
|
558
|
+
void 0,
|
|
559
|
+
{ number: !0 }
|
|
560
|
+
]
|
|
561
|
+
]),
|
|
562
|
+
a[15] || (a[15] = e("span", { class: "sp-unit" }, "×", -1))
|
|
563
|
+
])
|
|
564
|
+
]),
|
|
565
|
+
e("div", ns, [
|
|
566
|
+
e("div", os, [
|
|
567
|
+
e("div", is, l(s(t)("scheduling.general.publicHoliday")), 1),
|
|
568
|
+
e("div", rs, l(s(t)("scheduling.general.publicHolidayOtHint")), 1)
|
|
569
|
+
]),
|
|
570
|
+
e("div", ds, [
|
|
571
|
+
_(e("input", {
|
|
572
|
+
"onUpdate:modelValue": a[3] || (a[3] = (i) => s(n).draft.payRate.PUBLIC_HOLIDAY.overtime = i),
|
|
573
|
+
class: "sch-input sp-num",
|
|
574
|
+
type: "number",
|
|
575
|
+
min: "1",
|
|
576
|
+
max: "4",
|
|
577
|
+
step: "0.1",
|
|
578
|
+
"aria-label": s(t)("scheduling.general.otHolidayAria")
|
|
579
|
+
}, null, 8, us), [
|
|
580
|
+
[
|
|
581
|
+
f,
|
|
582
|
+
s(n).draft.payRate.PUBLIC_HOLIDAY.overtime,
|
|
583
|
+
void 0,
|
|
584
|
+
{ number: !0 }
|
|
585
|
+
]
|
|
586
|
+
]),
|
|
587
|
+
a[16] || (a[16] = e("span", { class: "sp-unit" }, "×", -1))
|
|
588
|
+
])
|
|
589
|
+
])
|
|
590
|
+
]),
|
|
591
|
+
e("div", cs, [
|
|
592
|
+
e("div", hs, [
|
|
593
|
+
e("div", gs, l(s(t)("scheduling.general.regularRate")), 1),
|
|
594
|
+
e("div", ms, l(s(t)("scheduling.general.regularRateNote")), 1)
|
|
595
|
+
]),
|
|
596
|
+
e("div", ps, [
|
|
597
|
+
e("div", vs, [
|
|
598
|
+
e("div", ys, l(s(t)("scheduling.general.offDay")), 1),
|
|
599
|
+
e("div", _s, l(s(t)("scheduling.general.offDayRegularHint")), 1)
|
|
600
|
+
]),
|
|
601
|
+
e("div", fs, [
|
|
602
|
+
_(e("input", {
|
|
603
|
+
"onUpdate:modelValue": a[4] || (a[4] = (i) => s(n).draft.payRate.REST_DAY.regular = i),
|
|
604
|
+
class: "sch-input sp-num",
|
|
605
|
+
type: "number",
|
|
606
|
+
min: "1",
|
|
607
|
+
max: "4",
|
|
608
|
+
step: "0.1",
|
|
609
|
+
"aria-label": s(t)("scheduling.general.regularOffDayAria")
|
|
610
|
+
}, null, 8, bs), [
|
|
611
|
+
[
|
|
612
|
+
f,
|
|
613
|
+
s(n).draft.payRate.REST_DAY.regular,
|
|
614
|
+
void 0,
|
|
615
|
+
{ number: !0 }
|
|
616
|
+
]
|
|
617
|
+
]),
|
|
618
|
+
a[17] || (a[17] = e("span", { class: "sp-unit" }, "×", -1))
|
|
619
|
+
])
|
|
620
|
+
]),
|
|
621
|
+
e("div", ws, [
|
|
622
|
+
e("div", ks, [
|
|
623
|
+
e("div", Hs, l(s(t)("scheduling.general.publicHoliday")), 1),
|
|
624
|
+
e("div", xs, l(s(t)("scheduling.general.publicHolidayRegularHint")), 1)
|
|
625
|
+
]),
|
|
626
|
+
e("div", Cs, [
|
|
627
|
+
_(e("input", {
|
|
628
|
+
"onUpdate:modelValue": a[5] || (a[5] = (i) => s(n).draft.payRate.PUBLIC_HOLIDAY.regular = i),
|
|
629
|
+
class: "sch-input sp-num",
|
|
630
|
+
type: "number",
|
|
631
|
+
min: "1",
|
|
632
|
+
max: "4",
|
|
633
|
+
step: "0.1",
|
|
634
|
+
"aria-label": s(t)("scheduling.general.regularHolidayAria")
|
|
635
|
+
}, null, 8, Ds), [
|
|
636
|
+
[
|
|
637
|
+
f,
|
|
638
|
+
s(n).draft.payRate.PUBLIC_HOLIDAY.regular,
|
|
639
|
+
void 0,
|
|
640
|
+
{ number: !0 }
|
|
641
|
+
]
|
|
642
|
+
]),
|
|
643
|
+
a[18] || (a[18] = e("span", { class: "sp-unit" }, "×", -1))
|
|
644
|
+
])
|
|
645
|
+
])
|
|
646
|
+
])
|
|
647
|
+
])) : s(n).activeSection.value === "workingHours" ? (h(), m("section", Ps, [
|
|
648
|
+
e("div", Os, [
|
|
649
|
+
e("div", Rs, l(s(t)("scheduling.general.workingHours")), 1)
|
|
650
|
+
]),
|
|
651
|
+
e("div", Ss, l(s(t)("scheduling.general.workingHoursDesc")), 1),
|
|
652
|
+
e("div", As, [
|
|
653
|
+
e("div", $s, [
|
|
654
|
+
e("div", Ms, l(s(t)("scheduling.general.defaultWorkingHours")), 1),
|
|
655
|
+
e("div", Ls, l(s(t)("scheduling.general.defaultWorkingHoursNote")), 1)
|
|
656
|
+
]),
|
|
657
|
+
e("div", Es, [
|
|
658
|
+
e("div", Us, [
|
|
659
|
+
e("div", Is, l(s(t)("scheduling.general.minHoursPerDay")), 1)
|
|
660
|
+
]),
|
|
661
|
+
e("div", Ts, [
|
|
662
|
+
_(e("input", {
|
|
663
|
+
"onUpdate:modelValue": a[6] || (a[6] = (i) => s(n).draft.workingHours.minHoursPerDay = i),
|
|
664
|
+
class: "sch-input sp-num",
|
|
665
|
+
type: "number",
|
|
666
|
+
min: "0",
|
|
667
|
+
max: "24",
|
|
668
|
+
step: "1",
|
|
669
|
+
placeholder: s(t)("scheduling.common.none"),
|
|
670
|
+
"aria-label": s(t)("scheduling.general.minHoursPerDayAria")
|
|
671
|
+
}, null, 8, Ws), [
|
|
672
|
+
[
|
|
673
|
+
f,
|
|
674
|
+
s(n).draft.workingHours.minHoursPerDay,
|
|
675
|
+
void 0,
|
|
676
|
+
{ number: !0 }
|
|
677
|
+
]
|
|
678
|
+
]),
|
|
679
|
+
e("span", Vs, l(s(t)("scheduling.general.hoursPerDayUnit")), 1)
|
|
680
|
+
])
|
|
681
|
+
]),
|
|
682
|
+
e("div", Ns, [
|
|
683
|
+
e("div", Bs, [
|
|
684
|
+
e("div", zs, l(s(t)("scheduling.general.maxHoursPerDay")), 1)
|
|
685
|
+
]),
|
|
686
|
+
e("div", Ys, [
|
|
687
|
+
_(e("input", {
|
|
688
|
+
"onUpdate:modelValue": a[7] || (a[7] = (i) => s(n).draft.workingHours.maxHoursPerDay = i),
|
|
689
|
+
class: "sch-input sp-num",
|
|
690
|
+
type: "number",
|
|
691
|
+
min: "0",
|
|
692
|
+
max: "24",
|
|
693
|
+
step: "1",
|
|
694
|
+
placeholder: s(t)("scheduling.common.none"),
|
|
695
|
+
"aria-label": s(t)("scheduling.general.maxHoursPerDayAria")
|
|
696
|
+
}, null, 8, qs), [
|
|
697
|
+
[
|
|
698
|
+
f,
|
|
699
|
+
s(n).draft.workingHours.maxHoursPerDay,
|
|
700
|
+
void 0,
|
|
701
|
+
{ number: !0 }
|
|
702
|
+
]
|
|
703
|
+
]),
|
|
704
|
+
e("span", Ks, l(s(t)("scheduling.general.hoursPerDayUnit")), 1)
|
|
705
|
+
])
|
|
706
|
+
]),
|
|
707
|
+
e("div", js, [
|
|
708
|
+
e("div", Fs, [
|
|
709
|
+
e("div", Gs, l(s(t)("scheduling.general.maxHoursPerWeek")), 1)
|
|
710
|
+
]),
|
|
711
|
+
e("div", Js, [
|
|
712
|
+
_(e("input", {
|
|
713
|
+
"onUpdate:modelValue": a[8] || (a[8] = (i) => s(n).draft.workingHours.maxHoursPerWeek = i),
|
|
714
|
+
class: "sch-input sp-num",
|
|
715
|
+
type: "number",
|
|
716
|
+
min: "0",
|
|
717
|
+
max: "168",
|
|
718
|
+
step: "1",
|
|
719
|
+
placeholder: s(t)("scheduling.common.none"),
|
|
720
|
+
"aria-label": s(t)("scheduling.general.maxHoursPerWeekAria")
|
|
721
|
+
}, null, 8, Qs), [
|
|
722
|
+
[
|
|
723
|
+
f,
|
|
724
|
+
s(n).draft.workingHours.maxHoursPerWeek,
|
|
725
|
+
void 0,
|
|
726
|
+
{ number: !0 }
|
|
727
|
+
]
|
|
728
|
+
]),
|
|
729
|
+
e("span", Xs, l(s(t)("scheduling.general.hoursPerWeekUnit")), 1)
|
|
730
|
+
])
|
|
731
|
+
])
|
|
732
|
+
])
|
|
733
|
+
])) : s(n).activeSection.value === "overtime" ? (h(), m("section", Zs, [
|
|
734
|
+
e("div", et, [
|
|
735
|
+
e("div", st, l(s(t)("scheduling.general.overtime")), 1)
|
|
736
|
+
]),
|
|
737
|
+
e("div", tt, l(s(t)("scheduling.general.overtimeDesc")), 1),
|
|
738
|
+
e("div", at, [
|
|
739
|
+
e("div", lt, [
|
|
740
|
+
e("div", nt, l(s(t)("scheduling.general.maxOtHours")), 1),
|
|
741
|
+
e("div", ot, l(s(t)("scheduling.general.enforced")), 1)
|
|
742
|
+
]),
|
|
743
|
+
e("div", it, [
|
|
744
|
+
e("div", rt, [
|
|
745
|
+
e("div", dt, l(s(t)("scheduling.general.monthlyOtCap")), 1),
|
|
746
|
+
e("div", ut, l(s(t)("scheduling.general.monthlyOtCapHint")), 1)
|
|
747
|
+
]),
|
|
748
|
+
_(e("input", {
|
|
749
|
+
"onUpdate:modelValue": a[9] || (a[9] = (i) => s(n).draft.otCapHours = i),
|
|
750
|
+
class: "sch-input sp-num",
|
|
751
|
+
type: "number",
|
|
752
|
+
min: "0",
|
|
753
|
+
max: "300",
|
|
754
|
+
step: "1",
|
|
755
|
+
placeholder: s(t)("scheduling.common.none"),
|
|
756
|
+
"aria-label": s(t)("scheduling.general.monthlyOtCapAria")
|
|
757
|
+
}, null, 8, ct), [
|
|
758
|
+
[
|
|
759
|
+
f,
|
|
760
|
+
s(n).draft.otCapHours,
|
|
761
|
+
void 0,
|
|
762
|
+
{ number: !0 }
|
|
763
|
+
]
|
|
764
|
+
])
|
|
765
|
+
])
|
|
766
|
+
])
|
|
767
|
+
])) : I("", !0)
|
|
768
|
+
])
|
|
769
|
+
]),
|
|
770
|
+
e("div", {
|
|
771
|
+
class: W(["sp-save", { dirty: s(n).dirty.value, arming: y.value }])
|
|
772
|
+
}, [
|
|
773
|
+
e("div", ht, [
|
|
774
|
+
H(l(y.value ? s(t)("scheduling.settings.discardConfirmQuestion") : s(t)("scheduling.settings.unsavedChanges")) + " ", 1),
|
|
775
|
+
y.value ? I("", !0) : (h(), m("span", gt, l(s(t)("scheduling.settings.unsavedHint")), 1))
|
|
776
|
+
]),
|
|
777
|
+
w(C, {
|
|
778
|
+
hierarchy: "secondary",
|
|
779
|
+
size: "sm",
|
|
780
|
+
class: "am-btn am-btn-sec",
|
|
781
|
+
type: "button",
|
|
782
|
+
onClick: a[10] || (a[10] = (i) => R())
|
|
783
|
+
}, {
|
|
784
|
+
default: k(() => [
|
|
785
|
+
H(l(y.value ? s(t)("scheduling.settings.confirmDiscard") : s(t)("scheduling.settings.discard")), 1)
|
|
786
|
+
]),
|
|
787
|
+
_: 1
|
|
788
|
+
}),
|
|
789
|
+
w(C, {
|
|
790
|
+
hierarchy: "primary",
|
|
791
|
+
size: "sm",
|
|
792
|
+
class: "am-btn am-btn-primary",
|
|
793
|
+
type: "button",
|
|
794
|
+
onClick: a[11] || (a[11] = (i) => p())
|
|
795
|
+
}, {
|
|
796
|
+
default: k(() => [
|
|
797
|
+
H(l(s(t)("scheduling.settings.saveChanges")), 1)
|
|
798
|
+
]),
|
|
799
|
+
_: 1
|
|
800
|
+
})
|
|
801
|
+
], 2)
|
|
802
|
+
])
|
|
803
|
+
])
|
|
804
|
+
]),
|
|
805
|
+
w(ke, { modal: s(x) }, null, 8, ["modal"])
|
|
806
|
+
], 512));
|
|
807
|
+
}
|
|
808
|
+
});
|
|
809
|
+
export {
|
|
810
|
+
bt as default
|
|
811
|
+
};
|