@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
@@ -1,8 +1,8 @@
1
1
  import { defineStore as x, storeToRefs as b } from "pinia";
2
2
  import { ref as w } from "vue";
3
3
  import { useCoreStore as B } from "@feedmepos/mf-common";
4
- import { s as v } from "./iteration-Cd5fl3-x.js";
5
- import { g as f, b as p, u as I } from "./restaurant-DiYb0pCm.js";
4
+ import { s as v } from "./iteration-BlavheWG.js";
5
+ import { g as f, b as p, u as I } from "./restaurant-D7PEQjPY.js";
6
6
  const R = {
7
7
  async readRoles() {
8
8
  return f(await p().get("/pos-roles"));
@@ -1,22 +1,22 @@
1
- import { s as W, c as q, e as y } from "./iteration-Cd5fl3-x.js";
2
- import { h as O, d as V, e as _, b as F, n as h, O as ee, D as M } from "./app-CVqQjVFY.js";
1
+ import { s as W, c as q, e as y } from "./iteration-BlavheWG.js";
2
+ import { e as O, b as V, c as _, v as F, n as h, O as ee, D as M } from "./app-CmBSTvaI.js";
3
3
  import { s as se } from "./utils-BZkjJbju.js";
4
- import { g, b, q as x, u as te } from "./restaurant-DiYb0pCm.js";
4
+ import { g, b as v, q as x, u as te } from "./restaurant-D7PEQjPY.js";
5
5
  import { defineStore as z, storeToRefs as K } from "pinia";
6
6
  import { ref as S, computed as T } from "vue";
7
7
  import { useCoreStore as X } from "@feedmepos/mf-common";
8
8
  const E = "/permission-sets", N = {
9
9
  async read() {
10
- return g(await b().get(E));
10
+ return g(await v().get(E));
11
11
  },
12
12
  async create(e) {
13
- return g(await b().post(E, e));
13
+ return g(await v().post(E, e));
14
14
  },
15
15
  async update(e, s) {
16
- return g(await b().put(`${E}/${e}`, s));
16
+ return g(await v().put(`${E}/${e}`, s));
17
17
  },
18
18
  async delete(e) {
19
- return g(await b().delete(`${E}/${e}`));
19
+ return g(await v().delete(`${E}/${e}`));
20
20
  }
21
21
  }, ne = z("permissionSet", () => {
22
22
  const { currentBusiness: e } = X(), s = S([]), r = S(!1), n = S(null);
@@ -140,7 +140,7 @@ function G(e, s) {
140
140
  }));
141
141
  }
142
142
  for (const f of c.permissionSets ?? []) {
143
- const m = O(f), p = B(m, ["manage"]), v = {
143
+ const m = O(f), p = B(m, ["manage"]), b = {
144
144
  subject: m,
145
145
  actions: ["manage"],
146
146
  source: {
@@ -150,7 +150,7 @@ function G(e, s) {
150
150
  trace: d
151
151
  }
152
152
  };
153
- n.has(p) || (n.add(p), r.push(v)), a.push(v);
153
+ n.has(p) || (n.add(p), r.push(b)), a.push(b);
154
154
  }
155
155
  }
156
156
  return [...r.filter((o) => !o.inverted), ...r.filter((o) => o.inverted)];
@@ -227,10 +227,10 @@ function _e(e, s) {
227
227
  continue;
228
228
  }
229
229
  const f = Object.keys(l)[0], m = l[f].$in.filter(
230
- (v) => !d[f].$in.includes(v)
230
+ (b) => !d[f].$in.includes(b)
231
231
  );
232
232
  m.length > 0 && t.push(r(u, m)), d[f].$in.filter(
233
- (v) => !l[f].$in.includes(v)
233
+ (b) => !l[f].$in.includes(b)
234
234
  ).length > 0 && t.push(c);
235
235
  } else if (!u.conditions && c.conditions)
236
236
  t.push(c);
@@ -239,7 +239,7 @@ function _e(e, s) {
239
239
  else if (!u.conditions && !c.conditions) {
240
240
  const l = new Set(u.actions), d = new Set(c.actions), f = c.actions.some((p) => !l.has(p)), m = u.actions.filter((p) => !d.has(p));
241
241
  if (f) {
242
- const p = c.actions.filter((v) => !l.has(v));
242
+ const p = c.actions.filter((b) => !l.has(b));
243
243
  t.push({
244
244
  ...c,
245
245
  actions: p
@@ -385,26 +385,26 @@ function de(e, s) {
385
385
  }
386
386
  const P = "/permission-assignments", I = {
387
387
  async readAll() {
388
- return g(await b().get(P));
388
+ return g(await v().get(P));
389
389
  },
390
390
  async readByUserId(e) {
391
- return g(await b().get(`${P}/user/${e}`));
391
+ return g(await v().get(`${P}/user/${e}`));
392
392
  },
393
393
  async readById(e) {
394
- return g(await b().get(`${P}/${e}`));
394
+ return g(await v().get(`${P}/${e}`));
395
395
  },
396
396
  async create(e) {
397
- return g(await b().post(P, e));
397
+ return g(await v().post(P, e));
398
398
  },
399
399
  async update(e, s) {
400
- return g(await b().put(`${P}/${e}`, s));
400
+ return g(await v().put(`${P}/${e}`, s));
401
401
  },
402
402
  async delete(e) {
403
- return g(await b().delete(`${P}/${e}`));
403
+ return g(await v().delete(`${P}/${e}`));
404
404
  },
405
405
  async addReportManagePermission(e, s) {
406
406
  return g(
407
- await b().post("/my-permissions/report-manage", { permissionKey: e, label: s })
407
+ await v().post("/my-permissions/report-manage", { permissionKey: e, label: s })
408
408
  );
409
409
  }
410
410
  }, fe = z("permissionAssignment", () => {
@@ -515,7 +515,7 @@ function A(e) {
515
515
  (t == null ? void 0 : t.permissionSetIds) ?? [],
516
516
  s.permissionSets.value
517
517
  ), o = Q(a).map(
518
- ({ setNames: p, ...v }) => v
518
+ ({ setNames: p, ...b }) => b
519
519
  ), u = t == null ? void 0 : t.customPermissions, c = u ?? e.permissions.map((p) => ({
520
520
  ...p,
521
521
  subject: O(p.subject)
@@ -531,8 +531,8 @@ function A(e) {
531
531
  email: e.email,
532
532
  restaurants: W(
533
533
  m.map((p) => {
534
- var v;
535
- return ((v = n.value.find((Z) => Z._id === p)) == null ? void 0 : v.profile.name) ?? "";
534
+ var b;
535
+ return ((b = n.value.find((Z) => Z._id === p)) == null ? void 0 : b.profile.name) ?? "";
536
536
  })
537
537
  ),
538
538
  managableRestaurantIds: f,
@@ -540,18 +540,18 @@ function A(e) {
540
540
  permissions: l
541
541
  };
542
542
  }
543
- const be = Object.freeze(
543
+ const ve = Object.freeze(
544
544
  Object.values(ee)
545
545
  ), Ce = {
546
546
  async readTeamMembers() {
547
547
  return g(
548
- await b().get("/portal-users")
548
+ await v().get("/portal-users")
549
549
  ).map(A);
550
550
  },
551
551
  async readTeamMembersPage(e) {
552
552
  var r, n, i;
553
553
  const s = g(
554
- await b().get("/portal-users/paged", {
554
+ await v().get("/portal-users/paged", {
555
555
  params: {
556
556
  limit: e.limit,
557
557
  offset: e.offset,
@@ -569,28 +569,28 @@ const be = Object.freeze(
569
569
  },
570
570
  async readTeamMember(e) {
571
571
  return A(
572
- g(await b().get(`/portal-users/${e}`))
572
+ g(await v().get(`/portal-users/${e}`))
573
573
  );
574
574
  },
575
575
  async createTeamMember(e) {
576
576
  return A(
577
- g(await b().post("/portal-users", e))
577
+ g(await v().post("/portal-users", e))
578
578
  );
579
579
  },
580
580
  async updateTeamMember(e, s) {
581
581
  return A(
582
- g(await b().put(`/portal-users/${e}`, s))
582
+ g(await v().put(`/portal-users/${e}`, s))
583
583
  );
584
584
  },
585
585
  async deleteTeamMember(e) {
586
- return g(await b().delete(`/portal-users/${e}`));
586
+ return g(await v().delete(`/portal-users/${e}`));
587
587
  },
588
588
  async readTeamMemberPosUserIds() {
589
- return g(await b().get("/portal-users")).map((s) => s.posUserId);
589
+ return g(await v().get("/portal-users")).map((s) => s.posUserId);
590
590
  },
591
591
  async generateMasterUserPasscode(e) {
592
592
  return `${g(
593
- await b().post("/portal-users/generate-passcode", {
593
+ await v().post("/portal-users/generate-passcode", {
594
594
  restaurantIds: e.restaurantIds,
595
595
  excludePosUserId: e.excludePosUserId
596
596
  })
@@ -674,12 +674,12 @@ function Y(e) {
674
674
  return s ? s.conditions ? JSON.parse(s.conditions).restaurantId.$in : null : [];
675
675
  }
676
676
  function Be(e, s) {
677
- return s.isOwner ? { restaurantIds: null, roleIds: null } : { restaurantIds: Y(e), roleIds: ve(e) };
677
+ return s.isOwner ? { restaurantIds: null, roleIds: null } : { restaurantIds: Y(e), roleIds: be(e) };
678
678
  }
679
679
  function Me(e) {
680
680
  return (e == null ? void 0 : e.some((s) => s.subject === "all")) ?? !1;
681
681
  }
682
- function ve(e) {
682
+ function be(e) {
683
683
  const s = e.find((r) => r.subject === _.Subject.Business.role);
684
684
  return s ? s.conditions ? JSON.parse(s.conditions).roleId.$in : null : [];
685
685
  }
@@ -740,7 +740,7 @@ function xe(e, s) {
740
740
  function he(e, s = []) {
741
741
  return W(
742
742
  e.reduce((r, n) => {
743
- const i = be.find(
743
+ const i = ve.find(
744
744
  (t) => t.subject === n.subject && n.actions.includes("manage")
745
745
  ) || s.find((t) => t.subject === n.subject);
746
746
  if (i) {
@@ -770,7 +770,7 @@ export {
770
770
  Ae as m,
771
771
  Ne as n,
772
772
  Ue as o,
773
- be as p,
773
+ ve as p,
774
774
  me as q,
775
775
  w as r,
776
776
  xe as s,
@@ -779,5 +779,5 @@ export {
779
779
  he as v,
780
780
  Oe as w,
781
781
  Y as x,
782
- ve as y
782
+ be as y
783
783
  };
@@ -1,5 +1,7 @@
1
1
  import type { HrmRestaurant } from '@/types/restaurant';
2
+ import type { FdtoScheduleDayOperatingHours } from '@feedmepos/hrm-schedule-contract';
2
3
  declare const RestaurantAPI: {
3
4
  readRestaurants(): Promise<HrmRestaurant[]>;
5
+ saveOperationalHours(restaurantId: string, operatingHours: FdtoScheduleDayOperatingHours[]): Promise<void>;
4
6
  };
5
7
  export default RestaurantAPI;
@@ -0,0 +1,51 @@
1
+ import type { FdtoScheduleAssignment, FdtoScheduleAutoScheduleApplyReq, FdtoScheduleAutoScheduleApplyResult, FdtoScheduleAutoScheduleCapabilities, FdtoScheduleAutoScheduleGenerateReq, FdtoScheduleAutoScheduleResult, FdtoScheduleBoard, FdtoScheduleBulkUpdateAssignmentStatusReq, FdtoScheduleCreateEmployeeProfileReq, FdtoScheduleEmployeeConfig, FdtoScheduleDemand, FdtoScheduleEmployee, FdtoSchedulePosition, FdtoScheduleSaveAssignmentReq, FdtoScheduleSaveDemandReq, FdtoScheduleSaveEmployeeConfigsReq, FdtoScheduleSavePositionReq, FdtoScheduleSaveScheduleDayReq, FdtoScheduleSaveSettingsReq, FdtoScheduleSettings, FdtoScheduleScheduleDay, FdtoScheduleUpdateEmployeeProfileReq, FdtoScheduleCreateTimeOffReq, FdtoScheduleTimeOff, FdtoScheduleUpdateTimeOffStatusReq } from '@/types/schedule';
2
+ declare const ScheduleAPI: {
3
+ listEmployeeProfiles(employeeIds?: string[]): Promise<FdtoScheduleEmployee[]>;
4
+ listEmployeeConfigs(restaurantId: string): Promise<FdtoScheduleEmployeeConfig[]>;
5
+ saveEmployeeConfigs(restaurantId: string, req: FdtoScheduleSaveEmployeeConfigsReq): Promise<FdtoScheduleEmployeeConfig[]>;
6
+ getSettings(restaurantId: string): Promise<FdtoScheduleSettings>;
7
+ saveSettings(restaurantId: string, req: FdtoScheduleSaveSettingsReq): Promise<FdtoScheduleSettings>;
8
+ generateAutoSchedule(restaurantId: string, req: FdtoScheduleAutoScheduleGenerateReq): Promise<FdtoScheduleAutoScheduleResult>;
9
+ getAutoScheduleCapabilities(restaurantId: string): Promise<FdtoScheduleAutoScheduleCapabilities>;
10
+ applyAutoSchedule(restaurantId: string, req: FdtoScheduleAutoScheduleApplyReq): Promise<FdtoScheduleAutoScheduleApplyResult>;
11
+ /** One outlet's whole board over `[from, to]` (inclusive, 'YYYY-MM-DD'). */
12
+ readBoard(restaurantId: string, from: string, to: string): Promise<FdtoScheduleBoard>;
13
+ createTimeOff(restaurantId: string, req: FdtoScheduleCreateTimeOffReq): Promise<FdtoScheduleTimeOff>;
14
+ updateTimeOffStatus(restaurantId: string, id: string, req: FdtoScheduleUpdateTimeOffStatusReq): Promise<FdtoScheduleTimeOff | null>;
15
+ deleteTimeOff(restaurantId: string, id: string): Promise<void>;
16
+ /** Creates or updates the employee's shared business-level scheduling profile. */
17
+ createEmployeeProfile(_restaurantId: string, req: FdtoScheduleCreateEmployeeProfileReq): Promise<FdtoScheduleEmployee>;
18
+ /** Edits the employee's shared business-level scheduling profile. */
19
+ updateEmployeeProfile(_restaurantId: string, employeeId: string, req: FdtoScheduleUpdateEmployeeProfileReq): Promise<FdtoScheduleEmployee>;
20
+ /** Positions are shared across the business. */
21
+ createPosition(req: FdtoScheduleSavePositionReq): Promise<FdtoSchedulePosition>;
22
+ updatePosition(id: string, req: FdtoScheduleSavePositionReq): Promise<FdtoSchedulePosition>;
23
+ /** Deleting one position is `deletePositions` with a single-id array — the backend's
24
+ * `DELETE positions/:id` route is gone; this is now `DELETE positions?ids=`. */
25
+ deletePosition(id: string): Promise<void>;
26
+ /** Creates one flat demand interval. */
27
+ createDemand(restaurantId: string, req: FdtoScheduleSaveDemandReq): Promise<FdtoScheduleDemand>;
28
+ /** Deletes a batch of demands in one request — e.g. `saveDemand` replacing a whole
29
+ * day/weekday's demand rows wholesale. Deleting one demand is just this with a single-id
30
+ * array. */
31
+ deleteDemands(restaurantId: string, ids: string[]): Promise<{
32
+ ok: true;
33
+ deletedCount: number;
34
+ }>;
35
+ /** Replaces one date's note/holiday-mark. All three fields back to empty/false clears it. */
36
+ saveScheduleDay(restaurantId: string, date: string, req: FdtoScheduleSaveScheduleDayReq): Promise<FdtoScheduleScheduleDay | null>;
37
+ /** A one-off shift assignment. */
38
+ createAssignment(restaurantId: string, req: FdtoScheduleSaveAssignmentReq): Promise<FdtoScheduleAssignment>;
39
+ updateAssignment(restaurantId: string, id: string, req: FdtoScheduleSaveAssignmentReq): Promise<FdtoScheduleAssignment | null>;
40
+ /** Deletes a batch of assignments in one request — e.g. a shift split into several segments
41
+ * getting replaced wholesale. Deleting one assignment is just this with a single-id
42
+ * array. */
43
+ deleteAssignments(restaurantId: string, ids: string[]): Promise<{
44
+ ok: true;
45
+ deletedCount: number;
46
+ }>;
47
+ /** Flips a batch of assignments to one status in a single request — e.g. Publish sending
48
+ * every DRAFT shift on the board to PUBLISHED at once. */
49
+ bulkUpdateAssignmentStatus(restaurantId: string, req: FdtoScheduleBulkUpdateAssignmentStatusReq): Promise<FdtoScheduleAssignment[]>;
50
+ };
51
+ export default ScheduleAPI;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,12 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
7
+ export default _default;
8
+ type __VLS_WithSlots<T, S> = T & {
9
+ new (): {
10
+ $slots: S;
11
+ };
12
+ };
@@ -0,0 +1,14 @@
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,4 +1,10 @@
1
+ import { SnackbarPosition } from '@feedmepos/ui-library';
2
+ export interface MessageOptions {
3
+ /** Where the snackbar is anchored. Defaults to the library's own default (top-right). */
4
+ position?: SnackbarPosition;
5
+ }
1
6
  export declare function useMessage(): {
2
- success: (message: string) => void;
3
- error: (message: string) => void;
7
+ success: (message: string, options?: MessageOptions) => void;
8
+ error: (message: string, options?: MessageOptions) => void;
4
9
  };
10
+ export { SnackbarPosition };
@@ -10,7 +10,10 @@ export declare enum RouteName {
10
10
  TEAM_ROLE = "team-role",
11
11
  POS_ACCESS = "pos-access",
12
12
  POS_GRANT = "pos-grant",
13
- APPROVAL_CODE = "approval-code"
13
+ APPROVAL_CODE = "approval-code",
14
+ SCHEDULE = "schedule",
15
+ SCHEDULE_POSITION = "schedule-position",
16
+ SCHEDULE_GENERAL = "schedule-general"
14
17
  }
15
18
  declare const routes: RouteRecordRaw[];
16
19
  export { routes };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Public portal-facing Schedule types.
3
+ *
4
+ * Wire contracts are inferred once from the shared package. This file keeps
5
+ * only view-model commands that intentionally do not cross HTTP (for example
6
+ * replacing a period made up of several persisted demand rows).
7
+ */
8
+ export type { FdtoScheduleAssignment, FdtoScheduleAutoScheduleApplyReq, FdtoScheduleAutoScheduleApplyResult, FdtoScheduleAutoScheduleCapabilities, FdtoScheduleAutoScheduleGenerateReq, FdtoScheduleAutoScheduleObjective, FdtoScheduleAutoSchedulePlanner, FdtoScheduleAutoScheduleProposal, FdtoScheduleAutoScheduleRejection, FdtoScheduleAutoScheduleResult, FdtoScheduleAutoScheduleTiming, FdtoScheduleAutoScheduleUnfilledNeed, FdtoScheduleBoard, FdtoScheduleBulkUpdateAssignmentStatusReq, FdtoScheduleBreak, FdtoScheduleCreateEmployeeProfileReq, FdtoScheduleEmployeeConfig, FdtoScheduleDayOperatingHours, FdtoScheduleDemand, FdtoScheduleEmployee, FdtoScheduleOptionalDateRange, FdtoSchedulePayRate, FdtoSchedulePosition, FdtoSchedulePositionRef, FdtoSchedulePositionSelectorReq, FdtoScheduleRestaurantProfile, FdtoScheduleSaveAssignmentReq, FdtoScheduleSaveDemandReq, FdtoScheduleSaveEmployeeConfigsReq, FdtoScheduleSavePositionReq, FdtoScheduleSaveScheduleDayReq, FdtoScheduleSaveSettingsReq, FdtoScheduleScheduleDay, FdtoScheduleSettings, FdtoScheduleUpdateEmployeeProfileReq, FdtoScheduleCreateTimeOffReq, FdtoScheduleTimeOff, FdtoScheduleTimeOffDayPart, FdtoScheduleTimeOffQuery, FdtoScheduleTimeOffStatus, FdtoScheduleTimeOffType, FdtoScheduleUpdateTimeOffStatusReq, } from '@feedmepos/hrm-schedule-contract';
9
+ /** UI-level replacement command. The store expands these periods into flat
10
+ * ShiftDemand rows before calling the shared HTTP contract. */
11
+ export interface ScheduleReplaceDemandReq {
12
+ date?: string;
13
+ dayOfWeek?: number;
14
+ periods: Array<{
15
+ startTime: string;
16
+ endTime: string;
17
+ headcount: number;
18
+ roles?: Array<{
19
+ positionId?: string;
20
+ positionName: string;
21
+ headcount: number;
22
+ }>;
23
+ }>;
24
+ }
@@ -0,0 +1,3 @@
1
+ import './index.css';
2
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import './index.css';
2
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import './index.css';
2
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
2
+ type __VLS_Props = {
3
+ wizard: ReturnType<typeof useScheduleAddEmployee>;
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,12 @@
1
+ import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
2
+ type __VLS_Props = {
3
+ wizard: ReturnType<typeof useScheduleAddEmployee>;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ remove: (employeeId: number | null) => any;
7
+ newPosition: (target: "primary" | "secondary") => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onRemove?: ((employeeId: number | null) => any) | undefined;
10
+ onNewPosition?: ((target: "primary" | "secondary") => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
2
+ type __VLS_Props = {
3
+ wizard: ReturnType<typeof useScheduleAddEmployee>;
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,6 @@
1
+ import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
2
+ type __VLS_Props = {
3
+ wizard: ReturnType<typeof useScheduleAddEmployee>;
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,10 @@
1
+ import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
2
+ type __VLS_Props = {
3
+ wizard: ReturnType<typeof useScheduleAddEmployee>;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ newPosition: (target: "primary" | "secondary") => any;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onNewPosition?: ((target: "primary" | "secondary") => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
2
+ type __VLS_Props = {
3
+ wizard: ReturnType<typeof useScheduleAddEmployee>;
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,6 @@
1
+ import type { ScheduleAddPickApi } from '../composables/useScheduleAddPick';
2
+ type __VLS_Props = {
3
+ addPick: ScheduleAddPickApi;
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,6 @@
1
+ import type { SchedulePositionModalApi } from '../composables/useSchedulePositionModal';
2
+ type __VLS_Props = {
3
+ modal: SchedulePositionModalApi;
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,22 @@
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;
@@ -0,0 +1,45 @@
1
+ import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
2
+ import type { ScheduleAreaBoardApi } from '../composables/useScheduleAreaBoard';
3
+ import type { ScheduleOpenShiftCardApi } from '../composables/useScheduleOpenShiftCard';
4
+ import type { ScheduleAreaDragDropApi } from '../composables/useScheduleAreaDragDrop';
5
+ import type { ScheduleDragDropApi } from '../composables/useScheduleDragDrop';
6
+ import type { ScheduleDemandRowApi } from '../composables/useScheduleDemandRow';
7
+ type __VLS_Props = {
8
+ board: ScheduleBoardApi;
9
+ areaBoard: ScheduleAreaBoardApi;
10
+ openShiftCard: ScheduleOpenShiftCardApi;
11
+ dragDrop: ScheduleAreaDragDropApi;
12
+ /** A card's own drag — dropping it on another card offers a swap, dropping it on empty cell
13
+ * space moves it to that day, the same two gestures the employee view's grid has. Distinct
14
+ * from `dragDrop` above, which is only the staff rail dragged onto an empty cell. */
15
+ shiftDragDrop: ScheduleDragDropApi;
16
+ demandRow: ScheduleDemandRowApi;
17
+ };
18
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ editShift: (empId: number, dayIdx: number) => any;
20
+ openAssign: (openId: number) => any;
21
+ openOpenShiftMenu: (openId: number, anchor: HTMLElement) => any;
22
+ segEnter: (dayIdx: number, from: number, to: number, anchor: HTMLElement) => any;
23
+ segLeave: () => any;
24
+ segClick: (dayIdx: number, from: number, to: number, anchor: HTMLElement) => any;
25
+ segFocus: (dayIdx: number, from: number, to: number, anchor: HTMLElement) => any;
26
+ openDemandSheet: (dayIdx: number) => any;
27
+ openNewShift: (dayIdx: number, position: string) => any;
28
+ addPosition: () => any;
29
+ scheduleByPerson: () => any;
30
+ openSwap: (fromEmpId: number, fromDayIdx: number, toEmpId: number, toDayIdx: number, slotIndex: number) => any;
31
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
32
+ onEditShift?: ((empId: number, dayIdx: number) => any) | undefined;
33
+ onOpenAssign?: ((openId: number) => any) | undefined;
34
+ onOpenOpenShiftMenu?: ((openId: number, anchor: HTMLElement) => any) | undefined;
35
+ onSegEnter?: ((dayIdx: number, from: number, to: number, anchor: HTMLElement) => any) | undefined;
36
+ onSegLeave?: (() => any) | undefined;
37
+ onSegClick?: ((dayIdx: number, from: number, to: number, anchor: HTMLElement) => any) | undefined;
38
+ onSegFocus?: ((dayIdx: number, from: number, to: number, anchor: HTMLElement) => any) | undefined;
39
+ onOpenDemandSheet?: ((dayIdx: number) => any) | undefined;
40
+ onOpenNewShift?: ((dayIdx: number, position: string) => any) | undefined;
41
+ onAddPosition?: (() => any) | undefined;
42
+ onScheduleByPerson?: (() => any) | undefined;
43
+ onOpenSwap?: ((fromEmpId: number, fromDayIdx: number, toEmpId: number, toDayIdx: number, slotIndex: number) => any) | undefined;
44
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { useScheduleAssign } from '../composables/useScheduleAssign';
2
+ type __VLS_Props = {
3
+ assign: ReturnType<typeof useScheduleAssign>;
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,6 @@
1
+ import type { ScheduleAutoScheduleApi } from '../composables/useScheduleAutoSchedule';
2
+ type __VLS_Props = {
3
+ autoSchedule: ScheduleAutoScheduleApi;
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,10 @@
1
+ import type { ScheduleAutoScheduleApi } from '../composables/useScheduleAutoSchedule';
2
+ type __VLS_Props = {
3
+ autoSchedule: ScheduleAutoScheduleApi;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ setDemand: () => any;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onSetDemand?: (() => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
@@ -0,0 +1,23 @@
1
+ export type ScheduleButtonHierarchy = 'primary' | 'secondary' | 'ghost' | 'danger' | 'danger-secondary' | 'danger-ghost';
2
+ export type ScheduleButtonSize = 'xs' | 'sm' | 'md' | 'lg';
3
+ type __VLS_Props = {
4
+ hierarchy?: ScheduleButtonHierarchy;
5
+ size?: ScheduleButtonSize;
6
+ iconOnly?: boolean;
7
+ };
8
+ declare var __VLS_1: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
11
+ };
12
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
+ size: ScheduleButtonSize;
14
+ hierarchy: ScheduleButtonHierarchy;
15
+ iconOnly: boolean;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -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 { ScheduleCloneOutletModalApi } from '../composables/useScheduleCloneOutletModal';
2
+ type __VLS_Props = {
3
+ modal: ScheduleCloneOutletModalApi;
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,6 @@
1
+ import type { ScheduleCoachApi } from '../composables/useScheduleCoach';
2
+ type __VLS_Props = {
3
+ coach: ScheduleCoachApi;
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;