@feedmepos/mf-hrm-portal 2.2.5 → 2.3.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-Df5_U7Fj.js → ApprovalCodeList-CJaNPHZC.js} +7 -7
- package/dist/{AuditLogList-BT-YM-CP.js → AuditLogList-CHA98ZqW.js} +19 -18
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Df3IHAyZ.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C7rvthEI.js} +2 -2
- package/dist/{EmployeeList-BfhG5ktC.js → EmployeeList-CVmMKt71.js} +31 -30
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js → FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js} +1 -1
- package/dist/{GrantUserList-B_WhIR9L.js → GrantUserList-MYjgt5-F.js} +8 -8
- package/dist/{Main-Cxwiaabw.js → Main-BgB9lD4K.js} +11 -11
- package/dist/{Main-DKOPDO1K.js → Main-C0cnqQ3B.js} +8 -8
- package/dist/{Main-CGrtJkUl.js → Main-hlcHtrsc.js} +5 -5
- package/dist/{PermissionSetList-CqiLsqaj.js → PermissionSetList-5f1WIaVa.js} +7 -7
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CmNTqB0v.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CFoTAGIX.js} +1340 -1340
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-Z-DH7ouY.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fe-Rdwn4.js} +1 -1
- package/dist/{RoleList-iudKGaCg.js → RoleList-DNR4miXr.js} +9 -9
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B4VUyKW3.js +470 -0
- package/dist/ScheduleGeneralPage-Cd5AlY4z.js +666 -0
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-Cf0l2MRg.js +2188 -0
- package/dist/SchedulePage-C8m0-m3l.js +18257 -0
- package/dist/SchedulePositionPage-DyRckyUx.js +264 -0
- package/dist/SelectFilter-CG13h83-.js +264 -0
- package/dist/{TeamMemberList-D_8d24Vw.js → TeamMemberList-mw5OveZG.js} +38 -37
- package/dist/{TimesheetList-VvIiAVLt.js → TimesheetList-BzXarZbM.js} +54 -53
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Bmiz85Y3.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dq5i4poN.js} +3 -3
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/{app-CVqQjVFY.js → app-DSsdRLHg.js} +3252 -2475
- package/dist/app.js +1 -1
- package/dist/{approval-code-BRClD2HN.js → approval-code-C9DmR4Md.js} +1 -1
- package/dist/{dayjs.min-Bhe9FtFt.js → dayjs.min-B6xBXQtU.js} +1 -1
- package/dist/{employee-thZndJWE.js → employee-hMhzuqk1.js} +29 -28
- package/dist/{grant-user-Dhi3ilC_.js → grant-user-Bv-pJ9Wt.js} +1 -1
- package/dist/{iteration-Cd5fl3-x.js → iteration-B34AvpNC.js} +1 -1
- package/dist/{lodash-DiJ9xZIF.js → lodash-1Vyuy7Mu.js} +1 -1
- package/dist/{restaurant-DiYb0pCm.js → restaurant-D7PEQjPY.js} +258 -252
- package/dist/{role-DdizOTVB.js → role-DKOrgO6f.js} +2 -2
- package/dist/{rule-CYFm43rI.js → rule-CBzQ3GeV.js} +36 -36
- package/dist/src/api/restaurant/index.d.ts +2 -0
- package/dist/src/api/schedule/index.d.ts +55 -0
- package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
- package/dist/src/components/layout/withScheduleShell.d.ts +10 -0
- package/dist/src/composables/useMessage.d.ts +8 -2
- package/dist/src/router/shared.d.ts +4 -1
- package/dist/src/types/employee.d.ts +1 -0
- package/dist/src/types/schedule.d.ts +24 -0
- 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/ScheduleAllShiftsRow.vue.d.ts +22 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +45 -0
- package/dist/src/views/scheduling/components/ScheduleAssignEmployeePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +28 -0
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +19 -0
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +38 -0
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +24 -0
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +38 -0
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +25 -0
- package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +39 -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 +32 -0
- package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +21 -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 +12 -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 +10 -0
- package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +26 -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/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/ScheduleReviewBar.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +60 -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/ScheduleStackPopover.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +16 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +60 -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 +33 -0
- package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +5 -0
- package/dist/src/views/scheduling/composables/onboarding-hours.d.ts +7 -0
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +50 -0
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +13 -0
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +78 -0
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +59 -0
- package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +9 -0
- package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +7 -0
- package/dist/src/views/scheduling/composables/schedule-cost.d.ts +19 -0
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +23 -0
- package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +11 -0
- package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +7 -0
- package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +14 -0
- package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -0
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +26 -0
- package/dist/src/views/scheduling/composables/schedule-time.d.ts +8 -0
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +7 -0
- package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +10 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +102 -0
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +81 -0
- package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +77 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +63 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +124 -0
- package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +289 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +539 -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 +19 -0
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +48 -0
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +45 -0
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +100 -0
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +61 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +47 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +156 -0
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +54 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +26 -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 +25 -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 +51 -0
- package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +14 -0
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +77 -0
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +59 -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 +187 -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 +1145 -0
- package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +23 -0
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +22 -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 +18 -0
- package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +20 -0
- package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +25 -0
- package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +19 -0
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +54 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +29 -0
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +124 -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 +247 -0
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +35 -0
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +17 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +207 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +62 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +17 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +214 -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 +24 -0
- package/dist/src/views/scheduling/data.d.ts +102 -0
- package/dist/src/views/scheduling/locales/index.d.ts +688 -0
- package/dist/src/views/scheduling/schedule-constants.d.ts +7 -0
- package/dist/src/views/scheduling/schedule-state.d.ts +703 -0
- package/dist/src/views/scheduling/schedule-store.d.ts +110 -0
- package/dist/src/views/scheduling/types.d.ts +356 -0
- 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-BGhlB1_1.js → useAppStore-d_nHyK5u.js} +1 -1
- package/dist/{useLoading-CvgqVDbF.js → useLoading-JFoghhRz.js} +1 -1
- package/dist/{useReportPermissions-hVMtRNmj.js → useReportPermissions-B2ev0j4w.js} +3 -3
- package/package.json +4 -2
- package/dist/SelectFilter-ATOm0hdn.js +0 -269
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from './useScheduleBoard';
|
|
2
|
+
export interface ScheduleOpenShiftMenuState {
|
|
3
|
+
open: boolean;
|
|
4
|
+
openShiftId: number | null;
|
|
5
|
+
left: number;
|
|
6
|
+
top: number;
|
|
7
|
+
}
|
|
8
|
+
/** The open-shift card's "⋯" menu (Assign/Edit/Remove) and its "N can cover" candidate
|
|
9
|
+
* count — split out from the shift popover itself, since these apply to the card at rest,
|
|
10
|
+
* not to the form. */
|
|
11
|
+
export declare function useScheduleOpenShiftCard(board: ScheduleBoardApi): {
|
|
12
|
+
menu: {
|
|
13
|
+
open: boolean;
|
|
14
|
+
openShiftId: number | null;
|
|
15
|
+
left: number;
|
|
16
|
+
top: number;
|
|
17
|
+
};
|
|
18
|
+
openMenu: (openShiftId: number, anchor: HTMLElement) => void;
|
|
19
|
+
closeMenu: () => void;
|
|
20
|
+
remove: (openShiftId: number) => void;
|
|
21
|
+
candidateCountFor: (openShiftId: number) => number;
|
|
22
|
+
};
|
|
23
|
+
export type ScheduleOpenShiftCardApi = ReturnType<typeof useScheduleOpenShiftCard>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ScheduleSelectOption } from '../components/ScheduleSelect.vue';
|
|
2
|
+
/** Which outlet the board is scheduling, and the picker that changes it.
|
|
3
|
+
*
|
|
4
|
+
* On entry the host shell's own selection wins — mf-common keeps `currentRestaurant` in sync
|
|
5
|
+
* with the `?restaurantId=` in the URL, so arriving from anywhere else in the portal lands on
|
|
6
|
+
* the outlet that was already being looked at. Only when the shell has no opinion does this
|
|
7
|
+
* fall back to the first outlet in the business, which is better than an empty board.
|
|
8
|
+
*
|
|
9
|
+
* Switching from the picker writes the new id back into `?restaurantId=` too — via
|
|
10
|
+
* `router.replace`, not a navigation, so it does not reload the page or add a history entry.
|
|
11
|
+
* The picker already re-fetches everything the new outlet needs (see switchTo below); this just
|
|
12
|
+
* keeps the address bar honest about which one is on screen, so a refresh or a copied link lands
|
|
13
|
+
* back on it instead of silently snapping to whatever the shell had before. */
|
|
14
|
+
export declare function useScheduleOutlet(): {
|
|
15
|
+
options: import("vue").ComputedRef<ScheduleSelectOption[]>;
|
|
16
|
+
ready: import("vue").Ref<boolean, boolean>;
|
|
17
|
+
outletId: import("vue").Ref<string, string>;
|
|
18
|
+
resolve: () => Promise<string>;
|
|
19
|
+
resolveOutlet: () => Promise<string>;
|
|
20
|
+
switchTo: (restaurantId: string, weekStart: Date) => Promise<boolean>;
|
|
21
|
+
};
|
|
22
|
+
export type ScheduleOutletApi = ReturnType<typeof useScheduleOutlet>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from './useScheduleBoard';
|
|
2
|
+
import type { ScheduleAutoScheduleApi } from './useScheduleAutoSchedule';
|
|
3
|
+
import type { SchedulePublishApi } from './useSchedulePublish';
|
|
4
|
+
interface UseSchedulePageActionsOptions {
|
|
5
|
+
board: ScheduleBoardApi;
|
|
6
|
+
autoSchedule: ScheduleAutoScheduleApi;
|
|
7
|
+
publish: SchedulePublishApi;
|
|
8
|
+
notify: (message: string, type: 'info' | 'success') => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function useSchedulePageActions(options: UseSchedulePageActionsOptions): {
|
|
11
|
+
comingSoon: () => void;
|
|
12
|
+
onSchedStatusClick: () => void;
|
|
13
|
+
onApplyProposals: (count: number) => void;
|
|
14
|
+
onApplyAndPublishProposals: (count: number) => void;
|
|
15
|
+
onProposalDragStart: (id: number, event: DragEvent) => void;
|
|
16
|
+
onScroll: (delta: number) => void;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from './useScheduleBoard';
|
|
2
|
+
import type { ScheduleDemandApi } from './useScheduleDemand';
|
|
3
|
+
import type { ScheduleOutletApi } from './useScheduleOutlet';
|
|
4
|
+
/** Owns SchedulePage's data bootstrap and loading lifecycle, separate from rendering concerns. */
|
|
5
|
+
export declare function useSchedulePageBootstrap(board: ScheduleBoardApi, demand: ScheduleDemandApi, outlet: ScheduleOutletApi): {
|
|
6
|
+
booting: import("vue").Ref<boolean, boolean>;
|
|
7
|
+
showSkeleton: import("vue").ComputedRef<boolean>;
|
|
8
|
+
applyStoredDemand: () => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from './useScheduleBoard';
|
|
2
|
+
import type { ScheduleClashDetectionApi } from './useScheduleClashDetection';
|
|
3
|
+
import type { ScheduleDemandApi } from './useScheduleDemand';
|
|
4
|
+
import type { ScheduleAddPickApi } from './useScheduleAddPick';
|
|
5
|
+
import type { ScheduleShiftPopoverApi } from './useScheduleShiftPopover';
|
|
6
|
+
import type { ScheduleDemandSheetApi } from './useScheduleDemandSheet';
|
|
7
|
+
interface UseSchedulePageCellActionsOptions {
|
|
8
|
+
board: ScheduleBoardApi;
|
|
9
|
+
clash: ScheduleClashDetectionApi;
|
|
10
|
+
demand: ScheduleDemandApi;
|
|
11
|
+
addPick: ScheduleAddPickApi;
|
|
12
|
+
popover: ScheduleShiftPopoverApi;
|
|
13
|
+
demandSheet: ScheduleDemandSheetApi;
|
|
14
|
+
}
|
|
15
|
+
export declare function useSchedulePageCellActions(options: UseSchedulePageCellActionsOptions): {
|
|
16
|
+
dayHasAnyShift: (dayIdx: number) => boolean;
|
|
17
|
+
onAddShift: (empId: number, dayIdx: number, anchor: HTMLElement) => void;
|
|
18
|
+
onEditShift: (empId: number, dayIdx: number, slotIndex?: number) => void;
|
|
19
|
+
onOpenDemandSheet: (dayIdx: number) => void;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from './useScheduleBoard';
|
|
2
|
+
import type { ScheduleClashDetectionApi } from './useScheduleClashDetection';
|
|
3
|
+
import type { ScheduleDragDropApi } from './useScheduleDragDrop';
|
|
4
|
+
import type { ScheduleShiftActionsApi } from './useScheduleShiftActions';
|
|
5
|
+
import type { ScheduleAutoScheduleApi } from './useScheduleAutoSchedule';
|
|
6
|
+
interface UseSchedulePageCellDropOptions {
|
|
7
|
+
board: ScheduleBoardApi;
|
|
8
|
+
autoSchedule: ScheduleAutoScheduleApi;
|
|
9
|
+
dragDrop: ScheduleDragDropApi;
|
|
10
|
+
shiftActions: ScheduleShiftActionsApi;
|
|
11
|
+
clash: ScheduleClashDetectionApi;
|
|
12
|
+
dayHasAnyShift: (dayIdx: number) => boolean;
|
|
13
|
+
notify: (message: string, type: 'error') => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function useSchedulePageCellDrop(options: UseSchedulePageCellDropOptions): {
|
|
16
|
+
onCellDrop: (empId: number, dayIdx: number, event: DragEvent) => void;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from './useScheduleBoard';
|
|
2
|
+
import type { ScheduleDemandApi } from './useScheduleDemand';
|
|
3
|
+
export type ClearKind = 'both' | 'shifts' | 'demand';
|
|
4
|
+
export declare const CLEAR_COPY: Record<ClearKind, {
|
|
5
|
+
title: string;
|
|
6
|
+
message: string;
|
|
7
|
+
confirm: string;
|
|
8
|
+
}>;
|
|
9
|
+
type Snackbar = {
|
|
10
|
+
open: (options: {
|
|
11
|
+
message: string;
|
|
12
|
+
type: 'error' | 'info' | 'success';
|
|
13
|
+
}) => void;
|
|
14
|
+
};
|
|
15
|
+
export declare function useSchedulePageClearActions(board: ScheduleBoardApi, demand: ScheduleDemandApi, snackbar: Snackbar): {
|
|
16
|
+
clearKind: import("vue").Ref<ClearKind | null, ClearKind | null>;
|
|
17
|
+
onConfirmClear: () => Promise<void>;
|
|
18
|
+
};
|
|
19
|
+
export type SchedulePageClearActionsApi = ReturnType<typeof useSchedulePageClearActions>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from './useScheduleBoard';
|
|
2
|
+
import type { Ref } from 'vue';
|
|
3
|
+
import { useScheduleEmployeeProfile } from './useScheduleEmployeeProfile';
|
|
4
|
+
import type { ScheduleAddEmployeeApi } from './useScheduleAddEmployee';
|
|
5
|
+
import type { ScheduleClashDetectionApi } from './useScheduleClashDetection';
|
|
6
|
+
type ScheduleEmployeeProfileApi = ReturnType<typeof useScheduleEmployeeProfile>;
|
|
7
|
+
interface UseSchedulePageEmployeeActionsOptions {
|
|
8
|
+
board: ScheduleBoardApi;
|
|
9
|
+
employeeProfile: ScheduleEmployeeProfileApi;
|
|
10
|
+
addEmployee: ScheduleAddEmployeeApi;
|
|
11
|
+
removeEmployeeId: Ref<number | null>;
|
|
12
|
+
clash: ScheduleClashDetectionApi;
|
|
13
|
+
notify: (message: string, type: 'error' | 'info' | 'success') => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function useSchedulePageEmployeeActions(options: UseSchedulePageEmployeeActionsOptions): {
|
|
16
|
+
onOpenEmployeeMenu: (empId: number) => void;
|
|
17
|
+
onEditEmployee: () => void;
|
|
18
|
+
onClearAllShifts: (empId: number) => void;
|
|
19
|
+
onRemoveEmployee: () => void;
|
|
20
|
+
onConfirmRemoveEmployee: () => Promise<void>;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ref } from 'vue';
|
|
2
|
+
import type { ScheduleAddPickApi } from './useScheduleAddPick';
|
|
3
|
+
import type { ScheduleAllShiftsRowApi } from './useScheduleAllShiftsRow';
|
|
4
|
+
import type { ScheduleDayNoteApi } from './useScheduleDayNote';
|
|
5
|
+
import type { ScheduleGapPopoverApi } from './useScheduleGapPopover';
|
|
6
|
+
import type { ScheduleOpenShiftCardApi } from './useScheduleOpenShiftCard';
|
|
7
|
+
import type { ScheduleShiftActionsApi } from './useScheduleShiftActions';
|
|
8
|
+
import type { ScheduleTimePickerApi } from './useScheduleTimePicker';
|
|
9
|
+
export type ScheduleTopbarMenu = 'actions' | 'export';
|
|
10
|
+
export interface ScheduleTopbarApi {
|
|
11
|
+
openMenu: ReturnType<typeof ref<ScheduleTopbarMenu | null>>;
|
|
12
|
+
toggleMenu: (id: ScheduleTopbarMenu) => void;
|
|
13
|
+
closeMenus: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function useSchedulePageOverlays(apis: {
|
|
16
|
+
dayNote: ScheduleDayNoteApi;
|
|
17
|
+
allShiftsRow: ScheduleAllShiftsRowApi;
|
|
18
|
+
gap: ScheduleGapPopoverApi;
|
|
19
|
+
timePicker: ScheduleTimePickerApi;
|
|
20
|
+
addPick: ScheduleAddPickApi;
|
|
21
|
+
shiftActions: ScheduleShiftActionsApi;
|
|
22
|
+
openShiftCard: ScheduleOpenShiftCardApi;
|
|
23
|
+
}): {
|
|
24
|
+
topbar: ScheduleTopbarApi;
|
|
25
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ComputedRef, type Ref } from 'vue';
|
|
2
|
+
export interface SchedulePdfCanvas {
|
|
3
|
+
canvas: HTMLCanvasElement;
|
|
4
|
+
}
|
|
5
|
+
export interface SchedulePdfExportOptions {
|
|
6
|
+
subtitle: ComputedRef<string>;
|
|
7
|
+
title: ComputedRef<string>;
|
|
8
|
+
buildCanvas: () => SchedulePdfCanvas | null;
|
|
9
|
+
buildSheetImage: (onReady: () => void) => void;
|
|
10
|
+
jpgPreviewOpen: Ref<boolean>;
|
|
11
|
+
releaseSheetImage: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function useSchedulePdfExport(options: SchedulePdfExportOptions): {
|
|
14
|
+
previewOpen: Ref<boolean, boolean>;
|
|
15
|
+
barMeta: ComputedRef<string>;
|
|
16
|
+
openPreview: () => void;
|
|
17
|
+
closePreview: () => void;
|
|
18
|
+
printNow: () => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export interface PositionModalPerson {
|
|
2
|
+
employeeId: string;
|
|
3
|
+
name: string;
|
|
4
|
+
initials: string;
|
|
5
|
+
/** Positions they already hold, main first — the row's second line. */
|
|
6
|
+
held: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface PositionModalDone {
|
|
9
|
+
name: string;
|
|
10
|
+
assigned: number;
|
|
11
|
+
failed: number;
|
|
12
|
+
}
|
|
13
|
+
/** The "Add position" popup: a name, plus who on this outlet's roster can work it.
|
|
14
|
+
*
|
|
15
|
+
* Saving creates the (business-wide) position, then adds it to each ticked person's profile —
|
|
16
|
+
* as their main position when they have none yet, otherwise as one more they are trained in.
|
|
17
|
+
* The profile write replaces `secondaryPositions` wholesale, so a person's existing ones are
|
|
18
|
+
* sent back with the new one rather than being dropped. */
|
|
19
|
+
export declare function useSchedulePositionModal(onCreated?: (positionName: string) => void, options?: {
|
|
20
|
+
notify?: (message: string, type?: 'success' | 'error' | 'info') => void;
|
|
21
|
+
}): {
|
|
22
|
+
open: import("vue").Ref<boolean, boolean>;
|
|
23
|
+
name: import("vue").Ref<string, string>;
|
|
24
|
+
search: import("vue").Ref<string, string>;
|
|
25
|
+
picks: Record<string, boolean>;
|
|
26
|
+
saving: import("vue").Ref<boolean, boolean>;
|
|
27
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
28
|
+
done: import("vue").Ref<{
|
|
29
|
+
name: string;
|
|
30
|
+
assigned: number;
|
|
31
|
+
failed: number;
|
|
32
|
+
} | null, PositionModalDone | {
|
|
33
|
+
name: string;
|
|
34
|
+
assigned: number;
|
|
35
|
+
failed: number;
|
|
36
|
+
} | null>;
|
|
37
|
+
nameError: import("vue").Ref<boolean, boolean>;
|
|
38
|
+
people: import("vue").ComputedRef<PositionModalPerson[]>;
|
|
39
|
+
visible: import("vue").ComputedRef<PositionModalPerson[]>;
|
|
40
|
+
pickedIds: import("vue").ComputedRef<string[]>;
|
|
41
|
+
allPicked: import("vue").ComputedRef<boolean>;
|
|
42
|
+
nameTaken: import("vue").ComputedRef<boolean>;
|
|
43
|
+
canSave: import("vue").ComputedRef<boolean>;
|
|
44
|
+
editingId: import("vue").Ref<string | null, string | null>;
|
|
45
|
+
openNew: () => void;
|
|
46
|
+
openEdit: (id: string, currentName: string) => void;
|
|
47
|
+
close: () => void;
|
|
48
|
+
toggle: (employeeId: string) => void;
|
|
49
|
+
toggleAll: () => void;
|
|
50
|
+
save: () => Promise<boolean>;
|
|
51
|
+
saveAndAnother: () => Promise<void>;
|
|
52
|
+
another: () => void;
|
|
53
|
+
};
|
|
54
|
+
export type SchedulePositionModalApi = ReturnType<typeof useSchedulePositionModal>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface SchedulePositionRow {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function useSchedulePositions(options?: {
|
|
6
|
+
notify?: (message: string, type?: 'success' | 'error' | 'info') => void;
|
|
7
|
+
}): {
|
|
8
|
+
positions: import("vue").Ref<{
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}[], SchedulePositionRow[] | {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}[]>;
|
|
15
|
+
count: import("vue").ComputedRef<number>;
|
|
16
|
+
isAdding: import("vue").Ref<boolean, boolean>;
|
|
17
|
+
newName: import("vue").Ref<string, string>;
|
|
18
|
+
pendingDeleteId: import("vue").Ref<string | null, string | null>;
|
|
19
|
+
saving: import("vue").Ref<boolean, boolean>;
|
|
20
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
21
|
+
usageCountFor: (name: string) => number;
|
|
22
|
+
startAdd: () => void;
|
|
23
|
+
cancelAdd: () => void;
|
|
24
|
+
confirmAdd: () => Promise<void>;
|
|
25
|
+
askDelete: (id: string) => void;
|
|
26
|
+
cancelDelete: () => void;
|
|
27
|
+
confirmDelete: (id: string) => Promise<void>;
|
|
28
|
+
};
|
|
29
|
+
export type SchedulePositionsApi = ReturnType<typeof useSchedulePositions>;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from './useScheduleBoard';
|
|
2
|
+
import type { ScheduleVersion } from '../types';
|
|
3
|
+
export interface VersionDiffRow {
|
|
4
|
+
name: string;
|
|
5
|
+
day: string;
|
|
6
|
+
kind: 'add' | 'rem' | 'chg';
|
|
7
|
+
from: string | null;
|
|
8
|
+
to: string | null;
|
|
9
|
+
}
|
|
10
|
+
/** The mockup's Publish modal (openPublish/renderPublish/confirmPublish) — draft vs. published
|
|
11
|
+
* stamps, a conflict-acknowledgement gate, the pending-change list, and per-version diffing
|
|
12
|
+
* against the previous version. The mockup's WhatsApp/push/email notify-channel block is not
|
|
13
|
+
* ported: it depends on per-employee notification-preference data that doesn't exist anywhere
|
|
14
|
+
* in this mock model, and building it would mean inventing a whole notification-preferences
|
|
15
|
+
* concept with no other consumer — publish here just publishes. */
|
|
16
|
+
export declare function useSchedulePublish(board: ScheduleBoardApi): {
|
|
17
|
+
isOpen: import("vue").Ref<boolean, boolean>;
|
|
18
|
+
pubAcked: import("vue").Ref<boolean, boolean>;
|
|
19
|
+
showAllVersions: import("vue").Ref<boolean, boolean>;
|
|
20
|
+
expandedVersion: import("vue").Ref<number | null, number | null>;
|
|
21
|
+
open: () => void;
|
|
22
|
+
close: () => void;
|
|
23
|
+
conflicts: import("vue").ComputedRef<number>;
|
|
24
|
+
confirmDisabled: import("vue").ComputedRef<boolean>;
|
|
25
|
+
visibleVersions: import("vue").ComputedRef<{
|
|
26
|
+
v: number;
|
|
27
|
+
at: Date;
|
|
28
|
+
by: string;
|
|
29
|
+
note: string;
|
|
30
|
+
changeCount: number;
|
|
31
|
+
staffAffected: number;
|
|
32
|
+
snapshot: {
|
|
33
|
+
id: number;
|
|
34
|
+
name: string;
|
|
35
|
+
weekHours: number;
|
|
36
|
+
shifts: ({
|
|
37
|
+
start: string;
|
|
38
|
+
end: string;
|
|
39
|
+
role: string;
|
|
40
|
+
status: import("../types").ShiftStatus;
|
|
41
|
+
clock?: {
|
|
42
|
+
in: string | null;
|
|
43
|
+
out: string | null;
|
|
44
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
45
|
+
} | undefined;
|
|
46
|
+
conflict?: boolean | undefined;
|
|
47
|
+
conflictReason?: string | undefined;
|
|
48
|
+
openId?: number | undefined;
|
|
49
|
+
breakMins?: number | undefined;
|
|
50
|
+
breaks?: ({
|
|
51
|
+
type: "DURATION";
|
|
52
|
+
minutes: number;
|
|
53
|
+
breakPayType: "PAID" | "UNPAID";
|
|
54
|
+
} | {
|
|
55
|
+
type: "TIME_RANGE";
|
|
56
|
+
startTime: string;
|
|
57
|
+
endTime: string;
|
|
58
|
+
breakPayType: "PAID" | "UNPAID";
|
|
59
|
+
})[] | undefined;
|
|
60
|
+
assignmentId?: string | undefined;
|
|
61
|
+
updatedAt?: string | undefined;
|
|
62
|
+
splitGroupId?: string | undefined;
|
|
63
|
+
} | {
|
|
64
|
+
timeOff: "approved" | "pending";
|
|
65
|
+
requestId?: string | undefined;
|
|
66
|
+
type?: "OFF_DAY" | "LEAVE" | undefined;
|
|
67
|
+
leaveType?: "ANNUAL" | "MEDICAL" | "EMERGENCY" | "UNPAID" | undefined;
|
|
68
|
+
reason: string;
|
|
69
|
+
half?: boolean | undefined;
|
|
70
|
+
halfPart?: "AM" | "PM" | undefined;
|
|
71
|
+
from?: string | undefined;
|
|
72
|
+
to?: string | undefined;
|
|
73
|
+
appliedOn?: string | undefined;
|
|
74
|
+
note?: string | undefined;
|
|
75
|
+
cert?: {
|
|
76
|
+
name: string;
|
|
77
|
+
size: string;
|
|
78
|
+
} | null | undefined;
|
|
79
|
+
bal?: {
|
|
80
|
+
type: string;
|
|
81
|
+
entitled: number;
|
|
82
|
+
used: number;
|
|
83
|
+
} | undefined;
|
|
84
|
+
} | {
|
|
85
|
+
start: string;
|
|
86
|
+
end: string;
|
|
87
|
+
role: string;
|
|
88
|
+
status: import("../types").ShiftStatus;
|
|
89
|
+
clock?: {
|
|
90
|
+
in: string | null;
|
|
91
|
+
out: string | null;
|
|
92
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
93
|
+
} | undefined;
|
|
94
|
+
conflict?: boolean | undefined;
|
|
95
|
+
conflictReason?: string | undefined;
|
|
96
|
+
openId?: number | undefined;
|
|
97
|
+
breakMins?: number | undefined;
|
|
98
|
+
breaks?: ({
|
|
99
|
+
type: "DURATION";
|
|
100
|
+
minutes: number;
|
|
101
|
+
breakPayType: "PAID" | "UNPAID";
|
|
102
|
+
} | {
|
|
103
|
+
type: "TIME_RANGE";
|
|
104
|
+
startTime: string;
|
|
105
|
+
endTime: string;
|
|
106
|
+
breakPayType: "PAID" | "UNPAID";
|
|
107
|
+
})[] | undefined;
|
|
108
|
+
assignmentId?: string | undefined;
|
|
109
|
+
updatedAt?: string | undefined;
|
|
110
|
+
splitGroupId?: string | undefined;
|
|
111
|
+
}[] | null)[];
|
|
112
|
+
}[];
|
|
113
|
+
}[]>;
|
|
114
|
+
toggleAllVersions: () => void;
|
|
115
|
+
toggleVersionDiff: (v: number) => void;
|
|
116
|
+
diffFor: (version: ScheduleVersion) => VersionDiffRow[];
|
|
117
|
+
confirm: () => Promise<void>;
|
|
118
|
+
restoreVersion: (v: number) => void;
|
|
119
|
+
shareOpen: import("vue").Ref<boolean, boolean>;
|
|
120
|
+
shareVersion: import("vue").Ref<number | null, number | null>;
|
|
121
|
+
shareStaffAffected: import("vue").Ref<number, number>;
|
|
122
|
+
closeShare: () => void;
|
|
123
|
+
};
|
|
124
|
+
export type SchedulePublishApi = ReturnType<typeof useSchedulePublish>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WorkSlot } from '../types';
|
|
2
|
+
export interface SchedulePublishPersistenceOptions {
|
|
3
|
+
recoverPersistFailure: (error: unknown, fallback: string) => Promise<void>;
|
|
4
|
+
}
|
|
5
|
+
export declare function useSchedulePublishPersistence(options: SchedulePublishPersistenceOptions): {
|
|
6
|
+
persistPublish: (items: Array<{
|
|
7
|
+
empId: number;
|
|
8
|
+
dayIdx: number;
|
|
9
|
+
slot: WorkSlot;
|
|
10
|
+
}>) => Promise<boolean>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from './useScheduleBoard';
|
|
2
|
+
/** Range-calendar popover behind the topbar's date label — month grid + Today/This
|
|
3
|
+
* week/Next week presets, matching the mockup's range calendar. */
|
|
4
|
+
export declare function useScheduleRangeCalendar(board: ScheduleBoardApi): {
|
|
5
|
+
open: import("vue").Ref<boolean, boolean>;
|
|
6
|
+
pos: {
|
|
7
|
+
left: number;
|
|
8
|
+
top: number;
|
|
9
|
+
};
|
|
10
|
+
toggle: (anchor?: HTMLElement) => void;
|
|
11
|
+
close: () => void;
|
|
12
|
+
cursorMonth: import("vue").Ref<Date, Date>;
|
|
13
|
+
shiftMonth: (delta: number) => void;
|
|
14
|
+
monthLabel: import("vue").ComputedRef<string>;
|
|
15
|
+
calendarDays: import("vue").ComputedRef<{
|
|
16
|
+
date: Date | null;
|
|
17
|
+
}[]>;
|
|
18
|
+
isInRange: (date: Date) => boolean;
|
|
19
|
+
isStart: (date: Date) => boolean;
|
|
20
|
+
isEnd: (date: Date) => boolean;
|
|
21
|
+
isToday: (date: Date) => boolean;
|
|
22
|
+
rangeLabel: import("vue").ComputedRef<string>;
|
|
23
|
+
rangeDays: import("vue").ComputedRef<number>;
|
|
24
|
+
pickDate: (date: Date) => void;
|
|
25
|
+
presetToday: () => void;
|
|
26
|
+
presetNextWeek: () => void;
|
|
27
|
+
};
|