@feedmepos/mf-hrm-portal 2.2.5 → 2.3.0-dev

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.
Files changed (186) hide show
  1. package/dist/{ApprovalCodeList-Df5_U7Fj.js → ApprovalCodeList-cG0zmQVJ.js} +7 -7
  2. package/dist/{AuditLogList-BT-YM-CP.js → AuditLogList-BTifJhO1.js} +19 -18
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Df3IHAyZ.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-qr5TwLTK.js} +2 -2
  4. package/dist/{EmployeeList-BfhG5ktC.js → EmployeeList-DzcMtxJ3.js} +31 -30
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js → FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js} +1 -1
  6. package/dist/{GrantUserList-B_WhIR9L.js → GrantUserList-D5b7tJ8Y.js} +8 -8
  7. package/dist/{Main-CGrtJkUl.js → Main-B2r59IOW.js} +5 -5
  8. package/dist/{Main-DKOPDO1K.js → Main-DFwdAWqn.js} +8 -8
  9. package/dist/{Main-Cxwiaabw.js → Main-DkLBemi7.js} +11 -11
  10. package/dist/{PermissionSetList-CqiLsqaj.js → PermissionSetList-B80hrfMW.js} +7 -7
  11. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DjNcJQM9.js +4167 -0
  12. 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
  13. package/dist/{RoleList-iudKGaCg.js → RoleList-DHO4JRKF.js} +9 -9
  14. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B-XtB64L.js +452 -0
  15. package/dist/ScheduleGeneralPage-WlBM8bxV.js +629 -0
  16. package/dist/SchedulePage-Nm0krGVU.js +17056 -0
  17. package/dist/SchedulePositionPage-C0hrO11d.js +263 -0
  18. package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-DTDXir_7.js +1150 -0
  19. package/dist/SelectFilter-CG13h83-.js +264 -0
  20. package/dist/{TeamMemberList-D_8d24Vw.js → TeamMemberList-CgFWLRBM.js} +38 -37
  21. package/dist/{TimesheetList-VvIiAVLt.js → TimesheetList-Dp40G-0I.js} +54 -53
  22. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Bmiz85Y3.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BFjrMhUG.js} +3 -3
  23. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  24. package/dist/{app-CVqQjVFY.js → app-CmBSTvaI.js} +3024 -2327
  25. package/dist/app.js +1 -1
  26. package/dist/{approval-code-BRClD2HN.js → approval-code-C9DmR4Md.js} +1 -1
  27. package/dist/{dayjs.min-Bhe9FtFt.js → dayjs.min-CfL2DQ3d.js} +1 -1
  28. package/dist/{employee-thZndJWE.js → employee-DQcHjoij.js} +4 -4
  29. package/dist/{grant-user-Dhi3ilC_.js → grant-user-Bv-pJ9Wt.js} +1 -1
  30. package/dist/{iteration-Cd5fl3-x.js → iteration-BlavheWG.js} +1 -1
  31. package/dist/{lodash-DiJ9xZIF.js → lodash-QerqayrJ.js} +1 -1
  32. package/dist/{restaurant-DiYb0pCm.js → restaurant-D7PEQjPY.js} +258 -252
  33. package/dist/{role-DdizOTVB.js → role-RM2YLO7n.js} +2 -2
  34. package/dist/{rule-CYFm43rI.js → rule-DjlvYIuP.js} +36 -36
  35. package/dist/src/api/restaurant/index.d.ts +2 -0
  36. package/dist/src/api/schedule/index.d.ts +51 -0
  37. package/dist/src/components/layout/AppSidebar.vue.d.ts +2 -0
  38. package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
  39. package/dist/src/components/layout/withShell.d.ts +14 -0
  40. package/dist/src/composables/useMessage.d.ts +8 -2
  41. package/dist/src/router/shared.d.ts +4 -1
  42. package/dist/src/types/schedule.d.ts +24 -0
  43. package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +3 -0
  44. package/dist/src/views/scheduling/SchedulePage.vue.d.ts +3 -0
  45. package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +3 -0
  46. package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +6 -0
  47. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +12 -0
  48. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +6 -0
  49. package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +6 -0
  50. package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +10 -0
  51. package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +6 -0
  52. package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +6 -0
  53. package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +6 -0
  54. package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +22 -0
  55. package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +45 -0
  56. package/dist/src/views/scheduling/components/ScheduleAssignEmployeePopover.vue.d.ts +6 -0
  57. package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +6 -0
  58. package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +10 -0
  59. package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +23 -0
  60. package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +8 -0
  61. package/dist/src/views/scheduling/components/ScheduleCloneOutletModal.vue.d.ts +6 -0
  62. package/dist/src/views/scheduling/components/ScheduleCoach.vue.d.ts +6 -0
  63. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +32 -0
  64. package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +8 -0
  65. package/dist/src/views/scheduling/components/ScheduleCostRailEmptyArt.vue.d.ts +2 -0
  66. package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +6 -0
  67. package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +6 -0
  68. package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +12 -0
  69. package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +23 -0
  70. package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +10 -0
  71. package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +2 -0
  72. package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +12 -0
  73. package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +17 -0
  74. package/dist/src/views/scheduling/components/ScheduleEmployeeMenu.vue.d.ts +6 -0
  75. package/dist/src/views/scheduling/components/ScheduleExportDoneDialog.vue.d.ts +6 -0
  76. package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +18 -0
  77. package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +6 -0
  78. package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +18 -0
  79. package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +2 -0
  80. package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +6 -0
  81. package/dist/src/views/scheduling/components/ScheduleOnboardingComplete.vue.d.ts +10 -0
  82. package/dist/src/views/scheduling/components/ScheduleOnboardingDoneArt.vue.d.ts +2 -0
  83. package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +11 -0
  84. package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +9 -0
  85. package/dist/src/views/scheduling/components/ScheduleOpenShiftCardMenu.vue.d.ts +14 -0
  86. package/dist/src/views/scheduling/components/SchedulePdfPreview.vue.d.ts +6 -0
  87. package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +8 -0
  88. package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +12 -0
  89. package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +54 -0
  90. package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +6 -0
  91. package/dist/src/views/scheduling/components/ScheduleShiftCardMenu.vue.d.ts +12 -0
  92. package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +35 -0
  93. package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +10 -0
  94. package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +6 -0
  95. package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +8 -0
  96. package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +16 -0
  97. package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +8 -0
  98. package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +8 -0
  99. package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +25 -0
  100. package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +14 -0
  101. package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +16 -0
  102. package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +60 -0
  103. package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +12 -0
  104. package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +8 -0
  105. package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +6 -0
  106. package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +20 -0
  107. package/dist/src/views/scheduling/components/ScheduleTourAllSet.vue.d.ts +6 -0
  108. package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +33 -0
  109. package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +5 -0
  110. package/dist/src/views/scheduling/composables/onboarding-hours.d.ts +7 -0
  111. package/dist/src/views/scheduling/composables/onboarding-types.d.ts +50 -0
  112. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +78 -0
  113. package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +59 -0
  114. package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +3 -0
  115. package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +23 -0
  116. package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +7 -0
  117. package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -0
  118. package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +26 -0
  119. package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +10 -0
  120. package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
  121. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +101 -0
  122. package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +81 -0
  123. package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +77 -0
  124. package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +63 -0
  125. package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +18 -0
  126. package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +122 -0
  127. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +289 -0
  128. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +523 -0
  129. package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +27 -0
  130. package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +28 -0
  131. package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +19 -0
  132. package/dist/src/views/scheduling/composables/useScheduleCoach.d.ts +80 -0
  133. package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +19 -0
  134. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +43 -0
  135. package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +45 -0
  136. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +100 -0
  137. package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +76 -0
  138. package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +47 -0
  139. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +145 -0
  140. package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +54 -0
  141. package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +41 -0
  142. package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +35 -0
  143. package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +16 -0
  144. package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +43 -0
  145. package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +14 -0
  146. package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +80 -0
  147. package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +59 -0
  148. package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +15 -0
  149. package/dist/src/views/scheduling/composables/useScheduleOnboardingFlow.d.ts +9 -0
  150. package/dist/src/views/scheduling/composables/useScheduleOnboardingPersistence.d.ts +13 -0
  151. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1568 -0
  152. package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +23 -0
  153. package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +22 -0
  154. package/dist/src/views/scheduling/composables/useSchedulePageBootstrap.d.ts +9 -0
  155. package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +20 -0
  156. package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +18 -0
  157. package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +52 -0
  158. package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +27 -0
  159. package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +118 -0
  160. package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +27 -0
  161. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +241 -0
  162. package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +57 -0
  163. package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +17 -0
  164. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +202 -0
  165. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +209 -0
  166. package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +17 -0
  167. package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +24 -0
  168. package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +49 -0
  169. package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +10 -0
  170. package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +93 -0
  171. package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +9 -0
  172. package/dist/src/views/scheduling/data.d.ts +97 -0
  173. package/dist/src/views/scheduling/locales/index.d.ts +608 -0
  174. package/dist/src/views/scheduling/schedule-state.d.ts +679 -0
  175. package/dist/src/views/scheduling/schedule-store.d.ts +107 -0
  176. package/dist/src/views/scheduling/types.d.ts +351 -0
  177. package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
  178. package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
  179. package/dist/style.css +1 -1
  180. package/dist/tsconfig.app.tsbuildinfo +1 -1
  181. package/dist/{useAppStore-BGhlB1_1.js → useAppStore-d_nHyK5u.js} +1 -1
  182. package/dist/{useLoading-CvgqVDbF.js → useLoading-JFoghhRz.js} +1 -1
  183. package/dist/{useReportPermissions-hVMtRNmj.js → useReportPermissions-Bl6Br79r.js} +3 -3
  184. package/package.json +3 -2
  185. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CmNTqB0v.js +0 -4167
  186. package/dist/SelectFilter-ATOm0hdn.js +0 -269
@@ -0,0 +1,60 @@
1
+ import type { Proposal } from '../types';
2
+ import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
3
+ import type { ScheduleDragDropApi } from '../composables/useScheduleDragDrop';
4
+ import type { ScheduleRosterApi } from '../composables/useScheduleRoster';
5
+ import type { ScheduleOpenShiftCardApi } from '../composables/useScheduleOpenShiftCard';
6
+ import type { ScheduleAllShiftsRowApi } from '../composables/useScheduleAllShiftsRow';
7
+ import type { ScheduleDemandRowApi } from '../composables/useScheduleDemandRow';
8
+ type __VLS_Props = {
9
+ board: ScheduleBoardApi;
10
+ dragDrop: ScheduleDragDropApi;
11
+ roster: ScheduleRosterApi;
12
+ openShiftCard: ScheduleOpenShiftCardApi;
13
+ allShiftsRow: ScheduleAllShiftsRowApi;
14
+ demandRow: ScheduleDemandRowApi;
15
+ proposalAt?: (empId: number, dayIdx: number) => Proposal | undefined;
16
+ };
17
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ addShift: (empId: number, dayIdx: number, anchor: HTMLElement) => any;
19
+ editShift: (empId: number, dayIdx: number, slotIndex?: number | undefined) => any;
20
+ editLeave: (empId: number, dayIdx: number) => any;
21
+ dragEnd: () => any;
22
+ toggleProposal: (id: number) => any;
23
+ proposalDragStart: (id: number, ev: DragEvent) => any;
24
+ proposalDragEnd: () => any;
25
+ openAssign: (openId: number) => any;
26
+ openOpenShiftMenu: (openId: number, anchor: HTMLElement) => any;
27
+ addOpenShift: (dayIdx: number) => any;
28
+ segEnter: (dayIdx: number, from: number, to: number, anchor: HTMLElement) => any;
29
+ segLeave: () => any;
30
+ segClick: (dayIdx: number, from: number, to: number, anchor: HTMLElement) => any;
31
+ segFocus: (dayIdx: number, from: number, to: number, anchor: HTMLElement) => any;
32
+ openEmployee: (empId: number) => any;
33
+ openEmployeeMenu: (empId: number, anchor: HTMLElement) => any;
34
+ dragShiftStart: (empId: number, dayIdx: number, ev: DragEvent, slotIndex: number) => any;
35
+ dropOnCell: (empId: number, dayIdx: number, ev: DragEvent) => any;
36
+ addEmployee: () => any;
37
+ openDemandSheet: (dayIdx: number) => any;
38
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
39
+ onAddShift?: ((empId: number, dayIdx: number, anchor: HTMLElement) => any) | undefined;
40
+ onEditShift?: ((empId: number, dayIdx: number, slotIndex?: number | undefined) => any) | undefined;
41
+ onEditLeave?: ((empId: number, dayIdx: number) => any) | undefined;
42
+ onDragEnd?: (() => any) | undefined;
43
+ onToggleProposal?: ((id: number) => any) | undefined;
44
+ onProposalDragStart?: ((id: number, ev: DragEvent) => any) | undefined;
45
+ onProposalDragEnd?: (() => any) | undefined;
46
+ onOpenAssign?: ((openId: number) => any) | undefined;
47
+ onOpenOpenShiftMenu?: ((openId: number, anchor: HTMLElement) => any) | undefined;
48
+ onAddOpenShift?: ((dayIdx: number) => any) | undefined;
49
+ onSegEnter?: ((dayIdx: number, from: number, to: number, anchor: HTMLElement) => any) | undefined;
50
+ onSegLeave?: (() => any) | undefined;
51
+ onSegClick?: ((dayIdx: number, from: number, to: number, anchor: HTMLElement) => any) | undefined;
52
+ onSegFocus?: ((dayIdx: number, from: number, to: number, anchor: HTMLElement) => any) | undefined;
53
+ onOpenEmployee?: ((empId: number) => any) | undefined;
54
+ onOpenEmployeeMenu?: ((empId: number, anchor: HTMLElement) => any) | undefined;
55
+ onDragShiftStart?: ((empId: number, dayIdx: number, ev: DragEvent, slotIndex: number) => any) | undefined;
56
+ onDropOnCell?: ((empId: number, dayIdx: number, ev: DragEvent) => any) | undefined;
57
+ onAddEmployee?: (() => any) | undefined;
58
+ onOpenDemandSheet?: ((dayIdx: number) => any) | undefined;
59
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
60
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
2
+ import type { ScheduleCostRailApi } from '../composables/useScheduleCostRail';
3
+ import type { ScheduleStatsRowApi } from '../composables/useScheduleStatsRow';
4
+ import type { ScheduleViewMode } from '../composables/useScheduleFilterBar';
5
+ type __VLS_Props = {
6
+ board: ScheduleBoardApi;
7
+ costRail: ScheduleCostRailApi;
8
+ stats: ScheduleStatsRowApi;
9
+ mode: ScheduleViewMode;
10
+ };
11
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
2
+ import type { ScheduleShiftActionsApi } from '../composables/useScheduleShiftActions';
3
+ type __VLS_Props = {
4
+ board: ScheduleBoardApi;
5
+ actions: ScheduleShiftActionsApi;
6
+ };
7
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { ScheduleTimePickerApi } from '../composables/useScheduleTimePicker';
2
+ type __VLS_Props = {
3
+ timePicker: ScheduleTimePickerApi;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
2
+ import type { ScheduleTopbarApi } from '../composables/useScheduleTopbar';
3
+ import type { ScheduleAutoScheduleApi } from '../composables/useScheduleAutoSchedule';
4
+ import type { ScheduleCopyWeekApi } from '../composables/useScheduleCopyWeek';
5
+ import type { ScheduleExportApi } from '../composables/useScheduleExport';
6
+ type __VLS_Props = {
7
+ board: ScheduleBoardApi;
8
+ topbar: ScheduleTopbarApi;
9
+ autoSchedule: ScheduleAutoScheduleApi;
10
+ copyWeek: ScheduleCopyWeekApi;
11
+ exportApi: ScheduleExportApi;
12
+ };
13
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ clear: (kind: "shifts" | "both" | "demand") => any;
15
+ "sch-status-click": () => any;
16
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ onClear?: ((kind: "shifts" | "both" | "demand") => any) | undefined;
18
+ "onSch-status-click"?: (() => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { ScheduleTourApi } from '../composables/useScheduleTour';
2
+ type __VLS_Props = {
3
+ tour: ScheduleTourApi;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import type { FdtoScheduleAutoScheduleApplyReq, FdtoScheduleAutoScheduleObjective, FdtoScheduleAutoSchedulePlanner, FdtoScheduleAutoScheduleProposal, FdtoScheduleAutoScheduleResult } from '@/types/schedule';
2
+ import { ApiError } from '@/api';
3
+ import type { Proposal } from '../types';
4
+ /** ISO date of `dayIdx` in the week starting `weekKey` (YYYY-MM-DD, local arithmetic). */
5
+ export declare function dateOfProposal(weekKey: string, dayIdx: number): string;
6
+ /** Server proposals → board proposals for the week whose Monday is `weekKey`. A proposal whose
7
+ * date is not one of `dateKeyOf(0..RANGE_LEN-1)` or whose employee the board does not hold is
8
+ * dropped. Ids come from `nextId` so they stay unique across weeks. */
9
+ export declare function proposalsFromResult(proposals: FdtoScheduleAutoScheduleProposal[], weekKey: string, dateKeyOf: (dayIdx: number) => string | null, nextId: () => number, holds: (empId: number) => boolean): Proposal[];
10
+ /** The apply body for the accepted proposals, each re-dated from its own week and day. */
11
+ export declare function applyRequestOf(proposals: Proposal[], allowOvertime: boolean): FdtoScheduleAutoScheduleApplyReq;
12
+ export interface ClassifiedExplanation {
13
+ kind: 'reject' | 'ai' | 'plain';
14
+ text: string;
15
+ }
16
+ /** Sorts one `result.explanations` line into what the Details panel renders it as. The matched
17
+ * prefix is stripped from `text` in every case — the panel re-adds its own label/marker for
18
+ * `reject` and `ai`, so the raw wire prefix never doubles up with it. */
19
+ export declare function classifyExplanation(line: string): ClassifiedExplanation;
20
+ /** Whether `error` is a server refusal whose own message is meant for the user: a client error
21
+ * (0 < status < 500). A network failure (0) or a server error (5xx) is not. */
22
+ export declare function isClientRefusal(error: unknown): error is ApiError;
23
+ /** A client-error refusal shows its own message; a network failure or 5xx shows the generic one. */
24
+ export declare function generateErrorMessage(error: unknown): string;
25
+ /** The result shown when "fill gaps" is off: nothing proposed, one explanation. */
26
+ export declare function fillGapsOffResult(week: {
27
+ from: string;
28
+ to: string;
29
+ }, objective: FdtoScheduleAutoScheduleObjective, allowOvertime: boolean): FdtoScheduleAutoScheduleResult;
30
+ /** The snackbar shown once a run finishes, whether it went to the server or (fill gaps off) was
31
+ * answered locally. `wallMs` is measured client-side around the request — it is what the manager
32
+ * actually waited, not just the server's own `timing.totalMs`. */
33
+ export declare function generateDoneMessage(result: FdtoScheduleAutoScheduleResult, requested: FdtoScheduleAutoSchedulePlanner, wallMs: number): string;
@@ -0,0 +1,5 @@
1
+ import type { ScheduleOnboardingStep } from './onboarding-types';
2
+ export declare const ONBOARDING_STEPS: ScheduleOnboardingStep[];
3
+ export declare const SKIPPABLE_ONBOARDING_STEPS: ScheduleOnboardingStep[];
4
+ export declare const COMMON_POSITION_SUGGESTIONS: string[];
5
+ export declare const ANY_POSITION_KEY = "__any__";
@@ -0,0 +1,7 @@
1
+ import type { ScheduleRules } from '../types';
2
+ import type { ScheduleOnboardingDayHours } from './onboarding-types';
3
+ import type { FdtoScheduleDayOperatingHours } from '@feedmepos/hrm-schedule-contract';
4
+ /** Converts persisted outlet hours into the wizard's editable draft shape. */
5
+ export declare function onboardingHoursFromRules(rules: ScheduleRules): ScheduleOnboardingDayHours[];
6
+ /** Converts the grid's Monday-first draft back to the restaurant profile's Sunday-first wire shape. */
7
+ export declare function onboardingHoursToProfile(hours: ScheduleOnboardingDayHours[]): FdtoScheduleDayOperatingHours[];
@@ -0,0 +1,50 @@
1
+ export type ScheduleOnboardingStep = 'hours' | 'staffing' | 'positions' | 'team' | 'availability' | 'review';
2
+ export interface ScheduleOnboardingSession {
3
+ from: string;
4
+ to: string;
5
+ }
6
+ export interface ScheduleOnboardingDayHours {
7
+ open: boolean;
8
+ sessions: ScheduleOnboardingSession[];
9
+ }
10
+ export interface ScheduleOnboardingRange {
11
+ from: string;
12
+ to: string;
13
+ /** Blank until typed: an unset range asks for nobody. */
14
+ n: number | null;
15
+ roles: Array<{
16
+ position: string;
17
+ n: number | null;
18
+ }>;
19
+ }
20
+ export type TeamEmployment = 'full' | 'part';
21
+ export type TeamBasis = 'monthly' | 'hourly';
22
+ export interface TeamRow {
23
+ picked: boolean;
24
+ /** '' means "Any position" — a person with none. */
25
+ position: string;
26
+ second: string;
27
+ employment: TeamEmployment;
28
+ maxHours: string;
29
+ rate: string;
30
+ basis: TeamBasis;
31
+ }
32
+ export interface AvailDay {
33
+ on: boolean;
34
+ from: string;
35
+ to: string;
36
+ }
37
+ export interface AvailRow {
38
+ offDays: boolean[];
39
+ days: AvailDay[];
40
+ }
41
+ export interface ReviewRow {
42
+ step: ScheduleOnboardingStep;
43
+ title: string;
44
+ text: string;
45
+ sub?: string;
46
+ }
47
+ export interface IntroRecapRow {
48
+ label: string;
49
+ value: string;
50
+ }
@@ -0,0 +1,78 @@
1
+ import type { EmployeeAvailHours } from '../types';
2
+ import type { FdtoScheduleUpdateEmployeeProfileReq } from '@/types/schedule';
3
+ export type ScheduleAddEmployeeStep = 'mode' | 'details';
4
+ export type ScheduleAddEmployeeMode = 'new' | 'existing';
5
+ export interface ScheduleAddEmployeeForm {
6
+ name: string;
7
+ mobile: string;
8
+ dial: string;
9
+ employment: 'full' | 'part';
10
+ locations: string[];
11
+ payBasis: 'hourly' | 'monthly';
12
+ payAmount: string;
13
+ maxHours: string;
14
+ minHours: string;
15
+ /** Overtime is opt-in: off is "no rule", not "zero overtime" — a 0 sitting in the fields
16
+ * below by default would read as "every hour is overtime", the opposite of unset. */
17
+ otEnabled: boolean;
18
+ otAfterDaily: string;
19
+ maxOtHours: string;
20
+ /** For a part-timer: days they CAN work. For a full-timer: days they're OFF — the
21
+ * mockup inverts the same array's meaning by employment type. */
22
+ availDays: boolean[];
23
+ availHours: EmployeeAvailHours[];
24
+ preferences: string;
25
+ primaryPosition: string;
26
+ secondaryPositions: string[];
27
+ seniority: '' | 'senior' | 'junior';
28
+ passcode: string[];
29
+ masterUser: boolean;
30
+ /** Required by the POS for a master user. */
31
+ masterCode: string;
32
+ /** Gates the fields below it — someone can be fully scheduled with this off. */
33
+ posAccessEnabled: boolean;
34
+ /** WHAT the passcode opens the till as, at this outlet — the one this person is being added
35
+ * to. The outlet itself isn't a choice here: this wizard is already scoped to it. */
36
+ posRoleId: string;
37
+ }
38
+ /** A salaried month, for converting a monthly figure into the hourly one the cost rail
39
+ * actually reads. Ported verbatim from the mockup's MONTH_HOURS. */
40
+ export declare const MONTH_HOURS = 173;
41
+ /** A freshly-ticked worked day defaults to the whole day rather than the outlet's current
42
+ * trading hours — trading hours can change, and narrowing a person's stated availability to
43
+ * whatever the outlet happens to trade today isn't something this form should assume for them.
44
+ * `23:59`, not `24:00`: a part-timer's per-day fields are native `<input type="time">`s, which
45
+ * only accept `00:00`–`23:59` — `24:00` would render as blank there despite being a valid
46
+ * `FdtoScheduleTime` on the wire. */
47
+ export declare function defaultAvailHours(): EmployeeAvailHours;
48
+ export declare function blankForm(): ScheduleAddEmployeeForm;
49
+ /** Coverage and Auto-Schedule are still authored per role, so a role is derived from the
50
+ * primary position rather than asked for twice. Unlike position, Employee.role is one of a
51
+ * fixed small set the grid groups by, so an unrecognised (or unset) position falls back to
52
+ * the first known role instead of leaving the record without one. */
53
+ export declare function roleFromPosition(position: string): string;
54
+ export declare function generateCode(): string;
55
+ /** `raw` is typed `string` because that's the form field's declared type, but Vue 3 casts
56
+ * `v-model` on an `<input type="number">` to an actual `number` regardless — the DOM does this
57
+ * itself, independent of the `.number` modifier, so the runtime value disagrees with the type
58
+ * the moment someone types a digit. `String()` first is what makes `.trim()` safe either way. */
59
+ export declare function parsePositiveInt(raw: string, min: number, max: number): number | undefined;
60
+ export declare function parseNonNegativeInt(raw: string, max: number): number | undefined;
61
+ export declare function initials(name: string): string;
62
+ export declare function isPartTimeForm(form: ScheduleAddEmployeeForm): boolean;
63
+ /** `availDays[i]` always means "is this a working day" — the same convention the board model
64
+ * and `ScheduleEmployeeDetailPanel` read (a day off is one marked NOT worked), regardless of
65
+ * employment type. Only the full-time TOGGLE BUTTON is framed as "mark a day off" rather than
66
+ * "mark a work day" — see `useScheduleAddEmployee`'s `dayLit`, which flips this value for
67
+ * that button's pressed state without touching what's actually stored. */
68
+ export declare function dayIsWorkedInForm(form: ScheduleAddEmployeeForm, i: number): boolean;
69
+ /** Days this form currently marks as worked, converted to Mongo's weekday convention. */
70
+ export declare function availabilityPayload(form: ScheduleAddEmployeeForm): Array<{
71
+ dayOfWeek: number;
72
+ start: string;
73
+ end: string;
74
+ }>;
75
+ /** The EmployeeProfile fields `createExisting` and `updateExisting` both send — everything but
76
+ * `employeeId`, which only the create path has (an update targets one already known from the
77
+ * URL). Shared here so the two payloads cannot silently drift apart. */
78
+ export declare function toEmployeeProfileFields(form: ScheduleAddEmployeeForm, name: string, payAmountNumber: number): FdtoScheduleUpdateEmployeeProfileReq;
@@ -0,0 +1,59 @@
1
+ import type { DaySlot, Employee, LeaveSlot, WorkSlot } from '../types';
2
+ import type { FdtoScheduleSaveAssignmentReq } from '@/types/schedule';
3
+ /** dayjs-free local-date key — matches on the browser's local Y/M/D, not UTC, so this stays
4
+ * correct regardless of timezone. */
5
+ export declare function isoDateKey(d: Date): string;
6
+ export declare function isWorkSlot(slot: DaySlot): slot is WorkSlot;
7
+ export declare function isLeaveSlot(slot: DaySlot): slot is LeaveSlot;
8
+ export declare function workSlotsOf(day: DaySlot): WorkSlot[];
9
+ /** The inverse of `workSlotsOf` — bare slot for one, the array for two or more, so a day
10
+ * that's back down to its last period reads as a normal single shift again rather than a
11
+ * one-element array everything else has to unwrap. */
12
+ export declare function collapseSlots(slots: WorkSlot[]): WorkSlot | WorkSlot[] | null;
13
+ /** Whether a day's periods are genuinely one shift split across a gap — same `splitGroupId`,
14
+ * set only by the popover's "+ Split" — versus two or more independent shifts that happen to
15
+ * land on the same day (a swap override, say). The card/popover both branch on this: a
16
+ * genuine split draws and edits as one shift; anything else stays separate, card per shift. */
17
+ export declare function isGenuineSplitGroup(slots: WorkSlot[]): boolean;
18
+ /** A WorkSlot, in the shape ScheduleShiftAssignments actually stores. `pending` is the only status
19
+ * this board's own writers ever set on a fresh slot (see commitShift's callers) — `ot` is
20
+ * derived at cost-rail time, never authored, so it has nowhere sensible to map but PUBLISHED. */
21
+ export declare function toAssignmentReq(employeeId: string, date: string, slot: WorkSlot): FdtoScheduleSaveAssignmentReq;
22
+ /** Which coverage-position (a RULES.coverage.full key, e.g. 'grill', 'customer service') a
23
+ * work slot's `role` counts toward for area-view grouping and cost-by-position breakdowns.
24
+ * The shift popover's "Position needed" field writes a coverage-position key directly into
25
+ * `role` for anything authored through it — so a role that's already a coverage key is
26
+ * used as-is. Seed data instead recorded a station label ('FOH', 'Kitchen', ...), which
27
+ * ROLE_POSITIONS translates to that station's first/primary position. This can't tell a
28
+ * Kitchen employee's grill shifts apart from their prep shifts when the seed data only
29
+ * ever recorded the station — that distinction only exists once a shift is authored (or
30
+ * re-saved) through the popover, which does record the specific position. */
31
+ export declare function positionKeyOf(role: string): string;
32
+ /** The hours this employee is contracted to in a week — what "18h / 44h" measures against.
33
+ * Stated per person on their own profile now that ScheduleSettings carries pay rates alone, so
34
+ * there is no venue-wide full/part pair to fall back to: somebody nobody has agreed hours with
35
+ * reads 0, which is the truth rather than a default they never signed. */
36
+ export declare function contractCapFor(emp: Employee): number;
37
+ /** Whether `hours` runs past what this person is contracted to.
38
+ *
39
+ * A cap of 0 means no hours were ever agreed, which is NOT a contract of zero hours: read
40
+ * naively, `hours > 0` makes every rostered minute overtime, flags everybody on the cost rail's
41
+ * over-contract list and makes copy-week refuse every shift. An unknown limit cannot be
42
+ * exceeded, so it is treated as no limit and the question is answered false. */
43
+ export declare function overContract(emp: Employee, hours: number): boolean;
44
+ export declare function isPartTime(emp: Employee): boolean;
45
+ /** Colour keys off the POSITION's rank in the alphabetical position list, looped every six —
46
+ * position 7 repeats position 1's colour, which is expected once a page holds more than six.
47
+ * Unset ("Any position") isn't a real position at all, so it skips the rotation entirely and is
48
+ * always stone, the one of the seven neutral enough to read as "no position". A role no longer in
49
+ * the list (e.g. since deleted) falls back to the first band rather than erroring.
50
+ *
51
+ * Rotation by name, not a keyword lookup — a position is whatever the outlet typed into the
52
+ * Positions page, so there's no fixed vocabulary ("cashier", "kitchen", ...) to match against.
53
+ *
54
+ * Shared by the employee view's own card and the area view's position-row header + card, so the
55
+ * same position never disagrees on its colour anywhere on the board. */
56
+ export declare function positionColorClass(role: string): string;
57
+ /** Which weekday (0 = Mon) is today, relative to no particular week — used to seed
58
+ * focusDayIdx whenever "today" needs a weekday index rather than a date. */
59
+ export declare function todayWeekdayIdx(): number;
@@ -0,0 +1,3 @@
1
+ import type { FdtoScheduleBreak } from '@/types/schedule';
2
+ export declare function breakMinutesOf(breaks: FdtoScheduleBreak[] | undefined): number;
3
+ export declare function durationBreaksOf(minutes: number | undefined): FdtoScheduleBreak[];
@@ -0,0 +1,23 @@
1
+ import type { ScheduleDayNote } from '../types';
2
+ /** Everything a manager authors about a DATE rather than about a shift — the note on its
3
+ * card, whether the venue opens, whether it bills at the holiday rate. Keyed by ISO date
4
+ * (via the board's `dateKey`), not by weekday index: the mockup's flat single-week horizon
5
+ * could use the weekday index directly, but the board pages through weeks, and a note put on
6
+ * this Monday must not reappear on every other Monday. */
7
+ export declare function useScheduleDayMeta(dateKey: (dayIdx: number) => string | null, handlers?: {
8
+ onPersistError?: (message: string) => void;
9
+ }): {
10
+ dayNote: (dayIdx: number) => ScheduleDayNote | null;
11
+ setDayNote: (dayIdx: number, title: string, desc: string) => void;
12
+ clearDayNote: (dayIdx: number) => void;
13
+ isStandingClosedWeekday: (dayIdx: number) => boolean;
14
+ holidayName: (dayIdx: number) => string | null;
15
+ holidayIsAuto: (dayIdx: number) => boolean;
16
+ isPublicHoliday: (dayIdx: number) => boolean;
17
+ holidayRateApplies: (dayIdx: number) => boolean;
18
+ setHolidayNormal: (dayIdx: number, toNormal: boolean) => void;
19
+ setPublicHoliday: (dayIdx: number, on: boolean) => void;
20
+ otRateOn: (dayIdx: number) => number;
21
+ regularRateOn: (dayIdx: number) => number;
22
+ isHoliday: (dayIdx: number) => boolean;
23
+ };
@@ -0,0 +1,7 @@
1
+ import type { Employee } from '../types';
2
+ /** Adds `positionName` to the employee's own profile — the backend write path a real
3
+ * "existing employee" record has (see `useScheduleAddEmployee.ts`'s `toEmployeeProfileFields`
4
+ * for the same shape, built from the add-employee form instead of a live `Employee`).
5
+ * Fire-and-forget: the local roster already shows the grant, and a failed profile write isn't
6
+ * worth a second error dialog on top of whatever caller-side save this followed. */
7
+ export declare function grantSkillToEmployee(emp: Employee, positionName: string): void;
@@ -0,0 +1,16 @@
1
+ export interface ScheduleAnchorRect {
2
+ left: number;
3
+ right: number;
4
+ top: number;
5
+ bottom: number;
6
+ }
7
+ /** Measures the element a popover was opened from. Takes the rect while the anchor is still on
8
+ * screen; a hidden or detached element measures 0×0 and counts as "no anchor". */
9
+ export declare function anchorRectOf(el: Element | null | undefined): ScheduleAnchorRect | null;
10
+ /** Port of HRM V6.2 placePopover(): below the anchor by preference (6px gap), flipped above when
11
+ * there is no room, clamped to the viewport on both edges. Uses the popover's rendered size, so
12
+ * call it once the element is in the DOM. */
13
+ export declare function placePopover(el: HTMLElement, anchor: ScheduleAnchorRect | null): {
14
+ left: number;
15
+ top: number;
16
+ };
@@ -0,0 +1,26 @@
1
+ import type { WorkSlot } from '../types';
2
+ export type ScheduleBreakChoice = 0 | 30 | 60 | 90 | 120 | 'custom';
3
+ export interface ScheduleShiftSegment {
4
+ start: string;
5
+ end: string;
6
+ }
7
+ /** The one break shape that names a clock window rather than just a duration — when present,
8
+ * the card reads as two periods around it, each on its own line, instead of one span that
9
+ * quietly got shorter. Shared by the employee view's own card and the area view's position-row
10
+ * card, so a TIME_RANGE break draws the same split face wherever a shift is shown. */
11
+ export declare function timeRangeBreakOf(sl: WorkSlot): {
12
+ startTime: string;
13
+ endTime: string;
14
+ } | null;
15
+ /** Same face as `t12`, but never drops the minutes — two ranges stacked on a split card need
16
+ * to line up at a glance, and "10am" next to "10:30am" reads as two different units. */
17
+ export declare function t12Full(hhmm: string): string;
18
+ /** A break length that doesn't match one of the presets becomes 'custom', carrying its own
19
+ * minutes/unit back out for the caller to seed its custom-break fields from. */
20
+ export declare function normalizeBreak(mins: number | undefined): {
21
+ choice: ScheduleBreakChoice;
22
+ customMins?: number;
23
+ customUnit?: 'mins' | 'hrs';
24
+ };
25
+ export declare function resolvedBreakMins(choice: ScheduleBreakChoice, customMins: number, customUnit: 'mins' | 'hrs'): number | undefined;
26
+ export declare function segmentHours(seg: ScheduleShiftSegment, breakMins: number): number;
@@ -0,0 +1,10 @@
1
+ import type { Employee, OpenShift } from '../types';
2
+ export declare const RANGE_LEN = 7;
3
+ export declare function mostRecentMonday(from: Date): Date;
4
+ export declare function weekDates(offset: number): Date[];
5
+ export declare function weeksBetween(a: Date, b: Date): number;
6
+ export interface WeekBucket {
7
+ employees: Employee[];
8
+ openShifts: OpenShift[];
9
+ }
10
+ export declare function weekData(offset: number): WeekBucket;
@@ -0,0 +1,9 @@
1
+ /** A long list shown as its first few entries plus "+N more", expandable in place. For chip rows
2
+ * that can run to a hundred items (a person rostered at every outlet), which would otherwise
3
+ * push the rest of the form off screen. */
4
+ export declare function useCollapsedList<T>(items: () => T[], limit?: number): {
5
+ expanded: import("vue").Ref<boolean, boolean>;
6
+ shown: import("vue").ComputedRef<T[]>;
7
+ hiddenCount: import("vue").ComputedRef<number>;
8
+ toggle: () => void;
9
+ };
@@ -0,0 +1,101 @@
1
+ import type { Role } from '@/types/role';
2
+ import type { Employee } from '../types';
3
+ import type { ScheduleBoardApi } from './useScheduleBoard';
4
+ import { type ScheduleAddEmployeeMode, type ScheduleAddEmployeeStep } from './schedule-add-employee-form';
5
+ export type { ScheduleAddEmployeeForm, ScheduleAddEmployeeMode, ScheduleAddEmployeeStep, } from './schedule-add-employee-form';
6
+ /** Add-employee wizard: a "how do you want to add them" step, then one detail form covering
7
+ * identity, locations, pay, scheduling caps, availability, positions and POS access — plus
8
+ * the "select existing POS staff" side dialog the first step can hand off to. */
9
+ export declare function useScheduleAddEmployee(board: ScheduleBoardApi): {
10
+ open: import("vue").Ref<boolean, boolean>;
11
+ selectExistingOpen: import("vue").Ref<boolean, boolean>;
12
+ step: import("vue").Ref<ScheduleAddEmployeeStep, ScheduleAddEmployeeStep>;
13
+ mode: import("vue").Ref<ScheduleAddEmployeeMode, ScheduleAddEmployeeMode>;
14
+ form: {
15
+ name: string;
16
+ mobile: string;
17
+ dial: string;
18
+ employment: "full" | "part";
19
+ locations: string[];
20
+ payBasis: "hourly" | "monthly";
21
+ payAmount: string;
22
+ maxHours: string;
23
+ minHours: string;
24
+ otEnabled: boolean;
25
+ otAfterDaily: string;
26
+ maxOtHours: string;
27
+ availDays: boolean[];
28
+ availHours: {
29
+ from: string;
30
+ to: string;
31
+ }[];
32
+ preferences: string;
33
+ primaryPosition: string;
34
+ secondaryPositions: string[];
35
+ seniority: "" | "senior" | "junior";
36
+ passcode: string[];
37
+ masterUser: boolean;
38
+ masterCode: string;
39
+ posAccessEnabled: boolean;
40
+ posRoleId: string;
41
+ };
42
+ sectionId: import("vue").Ref<string, string>;
43
+ isEditing: import("vue").ComputedRef<boolean>;
44
+ editingEmployeeId: import("vue").Ref<number | null, number | null>;
45
+ locOpen: import("vue").Ref<boolean, boolean>;
46
+ secOpen: import("vue").Ref<boolean, boolean>;
47
+ secondaryOptions: import("vue").ComputedRef<string[]>;
48
+ isPart: import("vue").ComputedRef<boolean>;
49
+ dayLit: (i: number) => boolean;
50
+ avLabel: import("vue").ComputedRef<"Weekly availability" | "Time off days">;
51
+ avAllLabel: import("vue").ComputedRef<"Clear all" | "Select all" | "No days off" | "Every day off">;
52
+ maxHoursPlaceholder: import("vue").ComputedRef<"Hours per week" | "No cap">;
53
+ otAfterDailyPlaceholder: import("vue").ComputedRef<string>;
54
+ toggleOt: () => void;
55
+ payUnit: import("vue").ComputedRef<"/month" | "/hour">;
56
+ effectiveRate: import("vue").ComputedRef<number>;
57
+ passcodeValue: import("vue").ComputedRef<string>;
58
+ passcodeOk: import("vue").ComputedRef<boolean>;
59
+ currentLocationLabel: import("vue").ComputedRef<string>;
60
+ locationOptions: import("vue").Reactive<string[]>;
61
+ masterCodeError: import("vue").ComputedRef<boolean>;
62
+ isNewUser: import("vue").ComputedRef<boolean>;
63
+ footerHint: import("vue").ComputedRef<"Pick who — this outlet's own pay, position and hours are still set here." | "One short form. Rest days are set on their profile afterwards.">;
64
+ primaryRoleLabel: import("vue").ComputedRef<string>;
65
+ locationsSummary: import("vue").ComputedRef<string>;
66
+ payLine: import("vue").ComputedRef<string>;
67
+ nameError: import("vue").ComputedRef<boolean>;
68
+ passError: import("vue").ComputedRef<boolean>;
69
+ availabilityError: import("vue").ComputedRef<boolean>;
70
+ saving: import("vue").Ref<boolean, boolean>;
71
+ saveError: import("vue").Ref<string | null, string | null>;
72
+ candidatesLoading: import("vue").Ref<boolean, boolean>;
73
+ candidatesError: import("vue").Ref<string | null, string | null>;
74
+ openWizard: (section: string) => void;
75
+ openEditFor: (emp: Employee) => void;
76
+ close: () => void;
77
+ setMode: (m: ScheduleAddEmployeeMode) => void;
78
+ openSelectExisting: () => void;
79
+ closeSelectExisting: () => void;
80
+ pickExisting: (employeeId: string) => Promise<void>;
81
+ next: () => void;
82
+ back: () => void;
83
+ toggleMulti: (which: "loc" | "sec") => void;
84
+ toggleLocation: (loc: string) => void;
85
+ removeLocation: (loc: string) => void;
86
+ toggleSecondary: (pos: string) => void;
87
+ removeSecondary: (pos: string) => void;
88
+ setPrimaryPosition: (pos: string) => void;
89
+ setPayBasis: (basis: "hourly" | "monthly") => void;
90
+ toggleAvailDay: (i: number) => void;
91
+ availAll: () => void;
92
+ setAvailHour: (i: number, field: "from" | "to", value: string) => void;
93
+ copyAvailHourDown: (i: number) => void;
94
+ setPasscodeDigit: (i: number, value: string) => void;
95
+ generatePasscode: () => void;
96
+ togglePosAccess: () => void;
97
+ setPosRole: (roleId: string) => void;
98
+ posRoleOptions: import("vue").ComputedRef<Role[]>;
99
+ create: () => Promise<boolean>;
100
+ };
101
+ export type ScheduleAddEmployeeApi = ReturnType<typeof useScheduleAddEmployee>;