@feedmepos/mf-hrm-portal 2.3.0-dev → 2.3.0-dev.11

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 (160) hide show
  1. package/dist/{ApprovalCodeList-cG0zmQVJ.js → ApprovalCodeList-Ce9BWzt9.js} +5 -5
  2. package/dist/{AuditLogList-BTifJhO1.js → AuditLogList-Cw7WN8K4.js} +4 -4
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-qr5TwLTK.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BuofBFPC.js} +2 -2
  4. package/dist/{EmployeeList-DzcMtxJ3.js → EmployeeList-B8qWPNvj.js} +25 -24
  5. package/dist/{GrantUserList-D5b7tJ8Y.js → GrantUserList-CgigJIPF.js} +6 -6
  6. package/dist/{Main-DFwdAWqn.js → Main-BfoVdxlY.js} +8 -8
  7. package/dist/{Main-B2r59IOW.js → Main-Cg2vC_cj.js} +5 -5
  8. package/dist/{Main-DkLBemi7.js → Main-D26pgKy1.js} +11 -11
  9. package/dist/{PermissionSetList-B80hrfMW.js → PermissionSetList-CbtDiF4k.js} +19 -18
  10. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DW1oBTbb.js +4167 -0
  11. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fe-Rdwn4.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js} +1 -1
  12. package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
  13. package/dist/{RoleList-DHO4JRKF.js → RoleList-D0I8mbyI.js} +21 -20
  14. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Ctwukt6o.js +492 -0
  15. package/dist/ScheduleGeneralPage-Kv4pnxCL.js +778 -0
  16. package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-CSA0aaqJ.js +2285 -0
  17. package/dist/SchedulePage-BMWd0bod.js +17942 -0
  18. package/dist/{SchedulePositionPage-C0hrO11d.js → SchedulePositionPage-5Xvx6Dk5.js} +66 -65
  19. package/dist/{TeamMemberList-CgFWLRBM.js → TeamMemberList-Bh7i5l16.js} +24 -23
  20. package/dist/{TimesheetList-Dp40G-0I.js → TimesheetList-BJKU-hnk.js} +7 -7
  21. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BFjrMhUG.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-MMWnb9bj.js} +3 -3
  22. package/dist/{app-CmBSTvaI.js → app-BDJ5qxhF.js} +678 -594
  23. package/dist/app.js +1 -1
  24. package/dist/{approval-code-C9DmR4Md.js → approval-code-DHsUgc4K.js} +1 -1
  25. package/dist/{dayjs.min-CfL2DQ3d.js → dayjs.min-BWM0vY4w.js} +1 -1
  26. package/dist/{employee-DQcHjoij.js → employee-bBSuAJUr.js} +29 -28
  27. package/dist/{grant-user-Bv-pJ9Wt.js → grant-user-qzKHFTro.js} +1 -1
  28. package/dist/{iteration-BlavheWG.js → iteration-Dg7VAkAn.js} +1 -1
  29. package/dist/{lodash-QerqayrJ.js → lodash-BknY3p4o.js} +1 -1
  30. package/dist/{restaurant-D7PEQjPY.js → restaurant-BbYRA_IT.js} +4 -3
  31. package/dist/{role-RM2YLO7n.js → role-BJnJnNd_.js} +2 -2
  32. package/dist/{rule-DjlvYIuP.js → rule-BEuOY7Wf.js} +3 -3
  33. package/dist/src/api/schedule/index.d.ts +8 -1
  34. package/dist/src/components/layout/withScheduleShell.d.ts +10 -0
  35. package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
  36. package/dist/src/types/employee.d.ts +1 -0
  37. package/dist/src/types/schedule.d.ts +3 -4
  38. package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +0 -8
  39. package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +23 -0
  40. package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +17 -0
  41. package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +31 -0
  42. package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +24 -0
  43. package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +32 -0
  44. package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +25 -0
  45. package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +17 -0
  46. package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +38 -0
  47. package/dist/src/views/scheduling/components/ScheduleBoardUtilityOverlays.vue.d.ts +22 -0
  48. package/dist/src/views/scheduling/components/{ScheduleOnboardingComplete.vue.d.ts → ScheduleCompletionDialog.vue.d.ts} +8 -3
  49. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +2 -1
  50. package/dist/src/views/scheduling/components/{ScheduleShiftCardMenu.vue.d.ts → ScheduleContextMenu.vue.d.ts} +7 -2
  51. package/dist/src/views/scheduling/components/{SchedulePdfPreview.vue.d.ts → ScheduleExportPreview.vue.d.ts} +1 -0
  52. package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +9 -0
  53. package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +26 -0
  54. package/dist/src/views/scheduling/components/{ScheduleExportDoneDialog.vue.d.ts → ScheduleOnboardingAssignPositionModal.vue.d.ts} +2 -2
  55. package/dist/src/views/scheduling/components/{ScheduleAssignEmployeePopover.vue.d.ts → ScheduleOnboardingClosedDayConfirm.vue.d.ts} +2 -2
  56. package/dist/src/views/scheduling/components/{ScheduleEmployeeMenu.vue.d.ts → ScheduleOnboardingDemandDays.vue.d.ts} +2 -2
  57. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandFooter.vue.d.ts +6 -0
  58. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandHeader.vue.d.ts +6 -0
  59. package/dist/src/views/scheduling/components/ScheduleOnboardingHoursProfileNotice.vue.d.ts +10 -0
  60. package/dist/src/views/scheduling/components/ScheduleOnboardingPositions.vue.d.ts +6 -0
  61. package/dist/src/views/scheduling/components/ScheduleOnboardingReview.vue.d.ts +6 -0
  62. package/dist/src/views/scheduling/components/ScheduleOnboardingWizardFooter.vue.d.ts +6 -0
  63. package/dist/src/views/scheduling/components/ScheduleOnboardingWizardHeader.vue.d.ts +11 -0
  64. package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +17 -1
  65. package/dist/src/views/scheduling/components/ScheduleSetupBanner.vue.d.ts +12 -0
  66. package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +2 -2
  67. package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +4 -4
  68. package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +2 -12
  69. package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +3 -3
  70. package/dist/src/views/scheduling/composables/onboarding-types.d.ts +1 -1
  71. package/dist/src/views/scheduling/composables/remyPrompt.d.ts +13 -0
  72. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +12 -8
  73. package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +5 -1
  74. package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +7 -1
  75. package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +7 -0
  76. package/dist/src/views/scheduling/composables/schedule-cost.d.ts +19 -0
  77. package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +1 -3
  78. package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +11 -0
  79. package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +14 -0
  80. package/dist/src/views/scheduling/composables/schedule-time.d.ts +8 -0
  81. package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +1 -4
  82. package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +15 -0
  83. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +35 -21
  84. package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -13
  85. package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +2 -8
  86. package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +13 -0
  87. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +3 -3
  88. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +52 -11
  89. package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +3 -1
  90. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +6 -1
  91. package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +1 -2
  92. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +0 -3
  93. package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +7 -24
  94. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +26 -5
  95. package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +16 -0
  96. package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +13 -0
  97. package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +27 -0
  98. package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +7 -0
  99. package/dist/src/views/scheduling/composables/useScheduleEmployeeForm.d.ts +22 -0
  100. package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +9 -0
  101. package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +6 -3
  102. package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +29 -0
  103. package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +20 -0
  104. package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +19 -11
  105. package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +5 -6
  106. package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +58 -0
  107. package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +45 -0
  108. package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +206 -0
  109. package/dist/src/views/scheduling/composables/useScheduleOnboardingHours.d.ts +15 -0
  110. package/dist/src/views/scheduling/composables/useScheduleOnboardingNavigation.d.ts +11 -0
  111. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +313 -529
  112. package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +18 -0
  113. package/dist/src/views/scheduling/composables/useSchedulePageCellActions.d.ts +21 -0
  114. package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +18 -0
  115. package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +22 -0
  116. package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +10 -7
  117. package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +19 -0
  118. package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +4 -1
  119. package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +4 -2
  120. package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +9 -1
  121. package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +11 -0
  122. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +32 -4
  123. package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +8 -25
  124. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +19 -3
  125. package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +63 -0
  126. package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +17 -0
  127. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +31 -9
  128. package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +4 -1
  129. package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +6 -4
  130. package/dist/src/views/scheduling/country-rules/index.d.ts +24 -0
  131. package/dist/src/views/scheduling/data.d.ts +16 -7
  132. package/dist/src/views/scheduling/locales/index.d.ts +80 -0
  133. package/dist/src/views/scheduling/schedule-constants.d.ts +7 -0
  134. package/dist/src/views/scheduling/schedule-state.d.ts +104 -16
  135. package/dist/src/views/scheduling/schedule-store.d.ts +30 -6
  136. package/dist/src/views/scheduling/types.d.ts +29 -5
  137. package/dist/style.css +1 -1
  138. package/dist/tsconfig.app.tsbuildinfo +1 -1
  139. package/dist/{useAppStore-d_nHyK5u.js → useAppStore-BoLkvkE2.js} +1 -1
  140. package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
  141. package/dist/{useLoading-JFoghhRz.js → useLoading-Ch1AUYT1.js} +1 -1
  142. package/dist/{useReportPermissions-Bl6Br79r.js → useReportPermissions-D8hJ5W0t.js} +3 -3
  143. package/package.json +2 -1
  144. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DjNcJQM9.js +0 -4167
  145. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B-XtB64L.js +0 -452
  146. package/dist/ScheduleGeneralPage-WlBM8bxV.js +0 -629
  147. package/dist/SchedulePage-Nm0krGVU.js +0 -17056
  148. package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-DTDXir_7.js +0 -1150
  149. package/dist/src/components/layout/withShell.d.ts +0 -14
  150. package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +0 -22
  151. package/dist/src/views/scheduling/components/ScheduleOpenShiftCardMenu.vue.d.ts +0 -14
  152. package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +0 -14
  153. package/dist/src/views/scheduling/components/ScheduleTourAllSet.vue.d.ts +0 -6
  154. package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +0 -77
  155. package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +0 -122
  156. package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +0 -23
  157. package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +0 -17
  158. package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +0 -10
  159. package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
  160. /package/dist/src/{components/layout/AppSidebar.vue.d.ts → views/scheduling/components/SchedulePublishShareArt.vue.d.ts} +0 -0
@@ -1,14 +0,0 @@
1
- import { type Component } from 'vue';
2
- /**
3
- * Wraps a route component in the app-wide sidebar + full-bleed shell (pixel-matched
4
- * to the Scheduling mockup). Mirrors the `withPermission`/`withLoading` HOC pattern
5
- * so it composes with them in router/shared.ts.
6
- */
7
- export declare function withShell(Comp: Component): {
8
- inheritAttrs: boolean;
9
- setup(_: unknown, { attrs }: {
10
- attrs: Record<string, unknown>;
11
- }): () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
12
- [key: string]: any;
13
- }>;
14
- };
@@ -1,22 +0,0 @@
1
- import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
2
- import type { ScheduleAllShiftsRowApi } from '../composables/useScheduleAllShiftsRow';
3
- import type { ScheduleOpenShiftCardApi } from '../composables/useScheduleOpenShiftCard';
4
- type __VLS_Props = {
5
- board: ScheduleBoardApi;
6
- row: ScheduleAllShiftsRowApi;
7
- openShiftCard: ScheduleOpenShiftCardApi;
8
- };
9
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- editShift: (empId: number, dayIdx: number) => any;
11
- openAssign: (openId: number) => any;
12
- openOpenShiftMenu: (openId: number, anchor: HTMLElement) => any;
13
- addOpenShift: (dayIdx: number) => any;
14
- openStack: (dayIdx: number, anchor: HTMLElement) => any;
15
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
- onEditShift?: ((empId: number, dayIdx: number) => any) | undefined;
17
- onOpenAssign?: ((openId: number) => any) | undefined;
18
- onOpenOpenShiftMenu?: ((openId: number, anchor: HTMLElement) => any) | undefined;
19
- onAddOpenShift?: ((dayIdx: number) => any) | undefined;
20
- onOpenStack?: ((dayIdx: number, anchor: HTMLElement) => any) | undefined;
21
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
- export default _default;
@@ -1,14 +0,0 @@
1
- import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
2
- import type { ScheduleOpenShiftCardApi } from '../composables/useScheduleOpenShiftCard';
3
- import type { ScheduleShiftPopoverApi } from '../composables/useScheduleShiftPopover';
4
- type __VLS_Props = {
5
- board: ScheduleBoardApi;
6
- menu: ScheduleOpenShiftCardApi;
7
- popover: ScheduleShiftPopoverApi;
8
- };
9
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- assign: (openId: number) => any;
11
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
- onAssign?: ((openId: number) => any) | undefined;
13
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
- export default _default;
@@ -1,14 +0,0 @@
1
- import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
2
- import type { ScheduleAllShiftsRowApi } from '../composables/useScheduleAllShiftsRow';
3
- type __VLS_Props = {
4
- board: ScheduleBoardApi;
5
- row: ScheduleAllShiftsRowApi;
6
- };
7
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
- editShift: (empId: number, dayIdx: number) => any;
9
- openAssign: (openId: number) => any;
10
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- onEditShift?: ((empId: number, dayIdx: number) => any) | undefined;
12
- onOpenAssign?: ((openId: number) => any) | undefined;
13
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
- export default _default;
@@ -1,6 +0,0 @@
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;
@@ -1,77 +0,0 @@
1
- import type { Employee, OpenShift } from '../types';
2
- import type { ScheduleBoardApi } from './useScheduleBoard';
3
- export interface ScheduleShiftPart {
4
- start: string;
5
- end: string;
6
- }
7
- /** One shift on the All-shifts row, whichever way it was authored. A split shift is ONE
8
- * entry carrying both of its periods — two periods one person works is one shift, and
9
- * counting it twice made a day of three split shifts report as six. */
10
- export interface ScheduleRowEntry {
11
- /** Stable across redraws, so the row can be keyed on it. */
12
- key: string;
13
- kind: 'open' | 'emp';
14
- /** The demand record this came from, when it came from one. */
15
- open?: OpenShift;
16
- /** Whoever holds it, or null while it is still asking for somebody. */
17
- who: Employee | null;
18
- parts: ScheduleShiftPart[];
19
- position: string;
20
- /** A shift with a name of its own ("Weekend cover"), distinct from its position. */
21
- label?: string;
22
- filled: boolean;
23
- hours: number;
24
- }
25
- export interface ScheduleStackState {
26
- open: boolean;
27
- dayIdx: number | null;
28
- left: number;
29
- top: number;
30
- }
31
- /** The "Open shifts" row: a pseudo-row above the people holding the shifts nobody is on yet.
32
- *
33
- * It used to be the "All shifts" row and it used to LEAD this view, carrying every shift on
34
- * the day whichever way it was authored. The coverage band has both of those now — and the
35
- * band measures something this row could not, because a shift with nobody on it contributes
36
- * zero to coverage, so counting untaken records was never an answer to "is this week staffed".
37
- *
38
- * What is left is the job only this row can do. An unassigned shift has no person, so the
39
- * employee rows have nowhere to draw it; the old row would have shown it alongside every
40
- * other shift, which is the same cards twice — once here and once on the row of whoever is on
41
- * them. So the subject narrows to the shifts still waiting for somebody, and the row renders
42
- * only while at least one exists. That makes it a to-do list rather than furniture: it appears
43
- * when you author open demand and disappears the moment the last of it is staffed, which is
44
- * the completion signal the old row had to paint itself green to fake. */
45
- export declare function useScheduleAllShiftsRow(board: ScheduleBoardApi): {
46
- dayEntries: (dayIdx: number) => ScheduleRowEntry[];
47
- dayStack: (dayIdx: number) => {
48
- entries: ScheduleRowEntry[];
49
- done: number;
50
- total: number;
51
- hours: number;
52
- allOpen: boolean;
53
- mixShown: {
54
- name: string;
55
- n: number;
56
- }[];
57
- mixRest: number;
58
- title: string;
59
- };
60
- summary: import("vue").ComputedRef<{
61
- count: number;
62
- meta: string;
63
- tip: string;
64
- }>;
65
- hasPending: import("vue").ComputedRef<boolean>;
66
- stack: {
67
- open: boolean;
68
- dayIdx: number | null;
69
- left: number;
70
- top: number;
71
- };
72
- stackEntries: import("vue").ComputedRef<ScheduleRowEntry[]>;
73
- openStack: (dayIdx: number, anchor: HTMLElement) => void;
74
- closeStack: () => void;
75
- whenOf: (e: ScheduleRowEntry) => string;
76
- };
77
- export type ScheduleAllShiftsRowApi = ReturnType<typeof useScheduleAllShiftsRow>;
@@ -1,122 +0,0 @@
1
- import type { ScheduleBoardApi } from './useScheduleBoard';
2
- import type { ScheduleClashDetectionApi } from './useScheduleClashDetection';
3
- import type { ScheduleDemandApi } from './useScheduleDemand';
4
- /** What this sitting is trying to fill — an on-screen open-shift row (never backed by a
5
- * persisted Shift doc; `openShiftId` only ever identifies it within this session) or a raw
6
- * demand gap. Either way the assignment created is a plain one-off, same shape as the +Add
7
- * popover's — nothing here carries a shift/assignment linkage back to the server. */
8
- export interface ScheduleAssignTarget {
9
- dayIdx: number;
10
- position: string;
11
- start: string;
12
- end: string;
13
- breakMins?: number;
14
- openShiftId?: number;
15
- }
16
- export interface ScheduleAssignState {
17
- open: boolean;
18
- target: ScheduleAssignTarget | null;
19
- /** How many heads this sitting is answering, and how many it has landed so far — the
20
- * footer's "N still needed" note. Tracked locally rather than re-derived from
21
- * `demand.coverageSegments` on every assign: a fresh assign can reshape segment boundaries
22
- * entirely (met/short is a function of ALL current coverage, not just this one target), so a
23
- * simple running count is the honest thing to show without re-deriving segment math here. */
24
- required: number;
25
- scheduled: number;
26
- }
27
- /** `free` — no shift that day, the ordinary case. `busy` — has a shift, but this is the
28
- * manager's call to override (soft clash, asks first). `leave` — approved leave, a hard block:
29
- * inert, not something a second tap should be able to push past. `mine` — already the one
30
- * filling THIS open shift; only meaningful when the target has an `openShiftId` (a demand gap
31
- * has no single "holder"), and the tile becomes the unassign control instead. */
32
- export type ScheduleAssignTileState = 'free' | 'busy' | 'leave' | 'mine';
33
- export interface ScheduleAssignTile {
34
- id: number;
35
- name: string;
36
- initials: string;
37
- weekHours: number;
38
- cap: number;
39
- over: boolean;
40
- state: ScheduleAssignTileState;
41
- title: string;
42
- }
43
- export interface ScheduleAssignGroup {
44
- label: string;
45
- tiles: ScheduleAssignTile[];
46
- }
47
- /** One entry in the day's shift rail — either the thing this sitting was opened to answer (the
48
- * ORIGIN, always first), or another shift already on the same day, so a manager can jump to
49
- * reassigning it without leaving the panel. Every entry is a `target` the tile grid can be
50
- * pointed at via `switchTo`. */
51
- export interface ScheduleAssignSlot {
52
- key: string;
53
- position: string;
54
- /** One requirement of a demand gap: shows whether the people scheduled fulfil it (progress bar),
55
- * and can be picked to assign people as that position. */
56
- tracker?: boolean;
57
- /** 0–100, for a tracker's progress bar. */
58
- pct?: number;
59
- start: string;
60
- end: string;
61
- chip: string;
62
- full: boolean;
63
- sub: string;
64
- who: string;
65
- whoNone: boolean;
66
- on: boolean;
67
- target: ScheduleAssignTarget;
68
- required: number;
69
- scheduled: number;
70
- }
71
- /** Assign panel — the one modal both the open-shifts row and a demand gap's "Assign employee"
72
- * button open, per the reference's own note that they are "the same assign panel". Every pick
73
- * lands immediately (through the canonical `commitShift` mutator, so it persists exactly like
74
- * any other assignment); a soft clash — the person already has a shift that day — asks first via
75
- * the shared clash-confirmation dialog, and approved leave is a hard block the tile itself
76
- * refuses rather than asking about. */
77
- export declare function useScheduleAssign(board: ScheduleBoardApi, demand: ScheduleDemandApi, clash: ScheduleClashDetectionApi): {
78
- state: {
79
- open: boolean;
80
- target: {
81
- dayIdx: number;
82
- position: string;
83
- start: string;
84
- end: string;
85
- breakMins?: number | undefined;
86
- openShiftId?: number | undefined;
87
- } | null;
88
- required: number;
89
- scheduled: number;
90
- };
91
- search: import("vue").Ref<string, string>;
92
- activeOpenShift: import("vue").ComputedRef<{
93
- id: number;
94
- dayIdx: number;
95
- position: string;
96
- required: number;
97
- filledBy: number | null;
98
- sen?: "junior" | "senior" | undefined;
99
- empType?: "full" | "part" | undefined;
100
- name?: string | undefined;
101
- start: string;
102
- end: string;
103
- breakMins?: number | undefined;
104
- } | null>;
105
- title: import("vue").ComputedRef<string>;
106
- subParts: import("vue").ComputedRef<{
107
- position: string;
108
- range: string;
109
- duration: string;
110
- } | null>;
111
- footLead: import("vue").ComputedRef<string>;
112
- footRest: import("vue").ComputedRef<string>;
113
- groups: import("vue").ComputedRef<ScheduleAssignGroup[]>;
114
- shiftSlots: import("vue").ComputedRef<ScheduleAssignSlot[]>;
115
- switchTo: (slot: ScheduleAssignSlot) => void;
116
- openFor: (openShiftId: number) => void;
117
- openForGap: (dayIdx: number, _position: string, start: string, end: string, required: number, scheduled: number, gapFrom: number, gapTo: number) => void;
118
- close: () => void;
119
- fillOpenShift: (openShiftId: number, empId: number) => void;
120
- armAssign: (empId: number) => void;
121
- };
122
- export type ScheduleAssignApi = ReturnType<typeof useScheduleAssign>;
@@ -1,23 +0,0 @@
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>;
@@ -1,17 +0,0 @@
1
- import type { Proposal } from '../types';
2
- import type { ScheduleBoardApi } from './useScheduleBoard';
3
- import type { ScheduleEmployeeLoad } from './useScheduleEmployeeIdentity';
4
- /** The rail's rows ARE the shared identity block's data — one derivation, so the rail and the
5
- * employee grid's name column can't disagree about somebody's load. */
6
- export type ScheduleRailRow = ScheduleEmployeeLoad;
7
- /** The area view's staff rail — least-loaded first over the same roster the employee view's
8
- * name column shows, plus each person's load bar. Search and the sort picker both live in the
9
- * filter bar / name column now, not here. Ported from the mockup's
10
- * renderStaffRail()/orderedRoster()/staffLoad(), scoped to a single week (no day/area
11
- * combination — Daily view stays employee-only for now). */
12
- export declare function useScheduleStaffRail(board: ScheduleBoardApi,
13
- /** Lazy: the auto-scheduler is built after the rail, and only read when rows are computed. */
14
- proposalAt?: () => ((empId: number, dayIdx: number) => Proposal | undefined) | undefined): {
15
- rows: import("vue").ComputedRef<ScheduleEmployeeLoad[]>;
16
- };
17
- export type ScheduleStaffRailApi = ReturnType<typeof useScheduleStaffRail>;
@@ -1,10 +0,0 @@
1
- export type ScheduleTopbarMenu = 'actions' | 'export';
2
- /** Open/close state for the topbar's two dropdowns (Actions, Share) — only one is ever open at a
3
- * time, matching the mockup's toggleMenu()/closeMenus() behavior of closing the others whenever
4
- * one opens. */
5
- export declare function useScheduleTopbar(): {
6
- openMenu: import("vue").Ref<ScheduleTopbarMenu | null, ScheduleTopbarMenu | null>;
7
- toggleMenu: (id: ScheduleTopbarMenu) => void;
8
- closeMenus: () => void;
9
- };
10
- export type ScheduleTopbarApi = ReturnType<typeof useScheduleTopbar>;
@@ -1,157 +0,0 @@
1
- import { defineComponent as x, ref as M, resolveComponent as l, createBlock as a, openBlock as t, withCtx as i, createElementVNode as g, renderSlot as b, createCommentVNode as k, withModifiers as $, nextTick as I, createElementBlock as f, normalizeClass as h, createTextVNode as V, toDisplayString as C, computed as w, Fragment as B, renderList as F, createVNode as S } from "vue";
2
- import { useBreakpoints as z, useDialog as D } from "@feedmepos/ui-library";
3
- import { useI18n as N } from "@feedmepos/mf-common";
4
- const A = /* @__PURE__ */ x({
5
- __name: "BottomSheetMenu",
6
- setup(o) {
7
- const e = M(!1);
8
- async function r() {
9
- await I(), e.value = !e.value;
10
- }
11
- return (n, s) => {
12
- const y = l("FmButton"), _ = l("FmBottomSheet");
13
- return t(), a(_, {
14
- modelValue: e.value,
15
- "onUpdate:modelValue": s[1] || (s[1] = (d) => e.value = d),
16
- "dismiss-away": "",
17
- "no-header": "",
18
- "z-index": 110
19
- }, {
20
- "bottom-sheet-button": i(() => [
21
- n.$slots.button ? k("", !0) : (t(), a(y, {
22
- key: 0,
23
- icon: "more_vert",
24
- variant: "tertiary",
25
- onClick: $(r, ["stop"])
26
- })),
27
- b(n.$slots, "button")
28
- ]),
29
- default: i(() => [
30
- g("div", {
31
- onClick: s[0] || (s[0] = (d) => e.value = !1)
32
- }, [
33
- b(n.$slots, "default")
34
- ])
35
- ]),
36
- _: 3
37
- }, 8, ["modelValue"]);
38
- };
39
- }
40
- }), E = { class: "py-8 px-12 hover:bg-fm-color-neutral-gray-100" }, T = /* @__PURE__ */ x({
41
- __name: "BottomSheetMenuItem",
42
- props: {
43
- label: {},
44
- icon: {},
45
- disabled: { type: Boolean },
46
- itemClass: {}
47
- },
48
- setup(o) {
49
- const e = o;
50
- return (r, n) => {
51
- const s = l("FmIcon");
52
- return t(), f("div", E, [
53
- r.$slots.content ? k("", !0) : (t(), f("div", {
54
- key: 0,
55
- class: h(["flex items-center", {
56
- "text-fm-color-typo-disabled": e.disabled,
57
- "cursor-pointer": !e.disabled,
58
- "cursor-not-allowed": e.disabled,
59
- [e.itemClass || ""]: e.itemClass && !e.disabled
60
- }])
61
- }, [
62
- o.icon ? (t(), a(s, {
63
- key: 0,
64
- name: o.icon
65
- }, null, 8, ["name"])) : k("", !0),
66
- V(" " + C(o.label), 1)
67
- ], 2)),
68
- b(r.$slots, "content")
69
- ]);
70
- };
71
- }
72
- }), U = /* @__PURE__ */ x({
73
- __name: "ResponsiveContextMenu",
74
- props: {
75
- items: {}
76
- },
77
- setup(o) {
78
- const e = z(), r = w(() => e.breakpoints.value.xs);
79
- return (n, s) => {
80
- const y = l("FmButton"), _ = l("FmMenuItem"), d = l("FmMenu");
81
- return r.value ? (t(), a(A, { key: 0 }, {
82
- default: i(() => [
83
- (t(!0), f(B, null, F(o.items, ({ icon: c, label: m, disabled: p, itemClass: u, onClick: v }) => (t(), a(T, {
84
- key: m,
85
- icon: c,
86
- label: m,
87
- disabled: p,
88
- itemClass: u,
89
- onClick: () => {
90
- !p && (v == null || v());
91
- }
92
- }, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
93
- ]),
94
- _: 1
95
- })) : (t(), a(d, {
96
- key: 1,
97
- "stop-click-propagation": "",
98
- shift: !0
99
- }, {
100
- "menu-button": i(() => [
101
- S(y, {
102
- type: "button",
103
- variant: "tertiary",
104
- icon: "more_vert",
105
- "text-color": "neutral-gray-400",
106
- size: "md"
107
- })
108
- ]),
109
- default: i(() => [
110
- (t(!0), f(B, null, F(o.items, ({ label: c, disabled: m, itemClass: p, onClick: u }) => (t(), a(_, {
111
- key: c,
112
- disabled: m,
113
- label: c,
114
- onClick: () => {
115
- !m && (u == null || u());
116
- }
117
- }, {
118
- label: i(() => [
119
- g("span", {
120
- class: h(m ? "text-fm-color-typo-disabled" : p)
121
- }, C(c), 3)
122
- ]),
123
- _: 2
124
- }, 1032, ["disabled", "label", "onClick"]))), 128))
125
- ]),
126
- _: 1
127
- }));
128
- };
129
- }
130
- });
131
- function j(o, e) {
132
- const r = D(), { t: n } = N();
133
- function s() {
134
- o() ? r.open({
135
- title: n("portalCommon.dismiss.title"),
136
- message: n("portalCommon.dismiss.message"),
137
- zIndex: 200,
138
- primaryActions: {
139
- text: n("portalCommon.dismiss.primaryActions"),
140
- variant: "primary",
141
- close: !0
142
- },
143
- secondaryActions: {
144
- text: n("common.cancel"),
145
- variant: "tertiary",
146
- close: !0
147
- }
148
- }).onPrimary(() => {
149
- e();
150
- }) : e();
151
- }
152
- return s;
153
- }
154
- export {
155
- U as _,
156
- j as u
157
- };