@feedmepos/mf-hrm-portal 2.2.5-dev.3 → 2.2.5-dev.4

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 (152) hide show
  1. package/dist/{ApprovalCodeList-BuIPVwsl.js → ApprovalCodeList-D0B_X3Sf.js} +4 -4
  2. package/dist/{AuditLogList-l3fv_3jD.js → AuditLogList-D9anf4YQ.js} +18 -17
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BYY9dMSQ.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-4oENMRO3.js} +2 -2
  4. package/dist/{EmployeeList-HjNxPBcN.js → EmployeeList-DREDu3Ou.js} +29 -27
  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-B91EBl82.js → GrantUserList-CLDshEN9.js} +5 -5
  7. package/dist/{Main-DeqJPnm7.js → Main-DtMaG42L.js} +2 -2
  8. package/dist/{Main-TuG-h_qY.js → Main-QhQxU593.js} +5 -5
  9. package/dist/{Main-C_tQuQsU.js → Main-lqlb8tPw.js} +9 -9
  10. package/dist/{PermissionSetList-qVaYkiQ4.js → PermissionSetList-BK8yBpJJ.js} +11 -10
  11. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DcpNr0M4.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-uSdvH81B.js} +676 -675
  12. package/dist/{RoleList-CM0m4nya.js → RoleList-D6AX6BqB.js} +7 -7
  13. package/dist/ScheduleGeneralPage-DAECTCDu.js +242 -0
  14. package/dist/SchedulePage-CdFR7JuO.js +10751 -0
  15. package/dist/SchedulePositionPage-DTtKg0sx.js +220 -0
  16. package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-BiuUrr50.js +199 -0
  17. package/dist/SelectFilter-CG13h83-.js +264 -0
  18. package/dist/{TeamMemberList-GkMQuyoE.js → TeamMemberList-BM5JoR6J.js} +36 -34
  19. package/dist/{TimesheetList-Ci2r3AOF.js → TimesheetList-Ch_f_PD5.js} +54 -53
  20. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-QbQ7tbJP.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CxqxqwyD.js} +2 -2
  21. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  22. package/dist/{app-MXDLzWd6.js → app-tDHL6k4G.js} +2884 -2299
  23. package/dist/app.js +1 -1
  24. package/dist/{dayjs.min-DRqYbe11.js → dayjs.min-B_XWc0Hu.js} +1 -1
  25. package/dist/employee-Bs_2vqBY.js +139 -0
  26. package/dist/index-Cz2b95YF.js +70 -0
  27. package/dist/{iteration-CtN8sidV.js → index-jxRluZiW.js} +698 -726
  28. package/dist/iteration-CcXrOMQe.js +30 -0
  29. package/dist/{lodash-BwY7earz.js → lodash-D5vM3paU.js} +1 -1
  30. package/dist/{role-Ds1yN3BN.js → role-7ccipEEe.js} +4 -3
  31. package/dist/{rule-DkG2eGGH.js → rule-7faruCdz.js} +71 -70
  32. package/dist/src/api/schedule/index.d.ts +44 -0
  33. package/dist/src/components/layout/AppSidebar.vue.d.ts +2 -0
  34. package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
  35. package/dist/src/components/layout/withShell.d.ts +14 -0
  36. package/dist/src/router/shared.d.ts +4 -1
  37. package/dist/src/types/schedule.d.ts +232 -0
  38. package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +4 -0
  39. package/dist/src/views/scheduling/SchedulePage.vue.d.ts +4 -0
  40. package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +4 -0
  41. package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +6 -0
  42. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +6 -0
  43. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +6 -0
  44. package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +6 -0
  45. package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +6 -0
  46. package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +6 -0
  47. package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +6 -0
  48. package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +22 -0
  49. package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +34 -0
  50. package/dist/src/views/scheduling/components/ScheduleAssignEmployeePopover.vue.d.ts +6 -0
  51. package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +6 -0
  52. package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +8 -0
  53. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +24 -0
  54. package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +8 -0
  55. package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +6 -0
  56. package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +6 -0
  57. package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +12 -0
  58. package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +23 -0
  59. package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +10 -0
  60. package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +2 -0
  61. package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +12 -0
  62. package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +17 -0
  63. package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +18 -0
  64. package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +6 -0
  65. package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +18 -0
  66. package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +6 -0
  67. package/dist/src/views/scheduling/components/ScheduleLegendBar.vue.d.ts +6 -0
  68. package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +12 -0
  69. package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +6 -0
  70. package/dist/src/views/scheduling/components/ScheduleOpenShiftCardMenu.vue.d.ts +14 -0
  71. package/dist/src/views/scheduling/components/SchedulePdfPreview.vue.d.ts +6 -0
  72. package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +8 -0
  73. package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +12 -0
  74. package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +24 -0
  75. package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +6 -0
  76. package/dist/src/views/scheduling/components/ScheduleShiftCardMenu.vue.d.ts +12 -0
  77. package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +31 -0
  78. package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +6 -0
  79. package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +6 -0
  80. package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +6 -0
  81. package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +14 -0
  82. package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +8 -0
  83. package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +8 -0
  84. package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +25 -0
  85. package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +14 -0
  86. package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +16 -0
  87. package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +54 -0
  88. package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +12 -0
  89. package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +8 -0
  90. package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +6 -0
  91. package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +22 -0
  92. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +67 -0
  93. package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +38 -0
  94. package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +29 -0
  95. package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +7 -0
  96. package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +14 -0
  97. package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +10 -0
  98. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +86 -0
  99. package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +66 -0
  100. package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +77 -0
  101. package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +50 -0
  102. package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +18 -0
  103. package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +113 -0
  104. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +136 -0
  105. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +415 -0
  106. package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +27 -0
  107. package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +18 -0
  108. package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +17 -0
  109. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +43 -0
  110. package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +48 -0
  111. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +82 -0
  112. package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +68 -0
  113. package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +45 -0
  114. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +139 -0
  115. package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +22 -0
  116. package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +32 -0
  117. package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +16 -0
  118. package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +26 -0
  119. package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +14 -0
  120. package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +80 -0
  121. package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +20 -0
  122. package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +15 -0
  123. package/dist/src/views/scheduling/composables/useScheduleLegendBar.d.ts +35 -0
  124. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +179 -0
  125. package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +23 -0
  126. package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +19 -0
  127. package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +32 -0
  128. package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +91 -0
  129. package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +18 -0
  130. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +183 -0
  131. package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +54 -0
  132. package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +18 -0
  133. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +225 -0
  134. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +174 -0
  135. package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +20 -0
  136. package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +25 -0
  137. package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +44 -0
  138. package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +10 -0
  139. package/dist/src/views/scheduling/data.d.ts +105 -0
  140. package/dist/src/views/scheduling/locales/index.d.ts +496 -0
  141. package/dist/src/views/scheduling/schedule-store.d.ts +116 -0
  142. package/dist/src/views/scheduling/types.d.ts +311 -0
  143. package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
  144. package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
  145. package/dist/style.css +1 -1
  146. package/dist/tsconfig.app.tsbuildinfo +1 -1
  147. package/dist/{useReportPermissions-B_YakoB-.js → useReportPermissions-FieO4EAD.js} +3 -3
  148. package/dist/useScheduleOutlet-CmIG5dwQ.js +557 -0
  149. package/dist/useSchedulePositions-DPVAgdB2.js +103 -0
  150. package/package.json +1 -1
  151. package/dist/SelectFilter-ATOm0hdn.js +0 -269
  152. package/dist/employee-zsQMMIVM.js +0 -204
@@ -0,0 +1,30 @@
1
+ function d(e, r = []) {
2
+ const c = JSON.parse(JSON.stringify(e));
3
+ return r.length > 0 && r.forEach((s) => {
4
+ c[s] !== void 0 && delete c[s];
5
+ }), c;
6
+ }
7
+ function f(e, r) {
8
+ return r === void 0 ? e : typeof r == "function" ? r(e) : `${e[r]}`;
9
+ }
10
+ function g(e, r) {
11
+ return d(e).sort((s, u) => {
12
+ let n = f(s, r == null ? void 0 : r.selector), t = f(u, r == null ? void 0 : r.selector);
13
+ if (r != null && r.descending) {
14
+ const [a, l] = [n, t];
15
+ n = l, t = a;
16
+ }
17
+ return n.localeCompare(t, "en", { numeric: !0, sensitivity: "base" });
18
+ });
19
+ }
20
+ function i(e, r) {
21
+ return e.reduce((c, s) => {
22
+ const u = f(s, r);
23
+ return c[u] = [...c[u] || [], s], c;
24
+ }, {});
25
+ }
26
+ export {
27
+ d as c,
28
+ i as g,
29
+ g as s
30
+ };
@@ -1,4 +1,4 @@
1
- import { c as jt } from "./app-MXDLzWd6.js";
1
+ import { f as jt } from "./app-tDHL6k4G.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,8 +1,9 @@
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-CtN8sidV.js";
4
+ import "./index-jxRluZiW.js";
5
5
  import { g as f, b as p, u as I } from "./restaurant-BTpBmfBV.js";
6
+ import { s as v } from "./iteration-CcXrOMQe.js";
6
7
  const R = {
7
8
  async readRoles() {
8
9
  return f(await p().get("/pos-roles"));
@@ -80,7 +81,7 @@ const A = x("role", () => {
80
81
  updateRole: g,
81
82
  deleteRole: S
82
83
  };
83
- }), L = () => {
84
+ }), P = () => {
84
85
  const e = A();
85
86
  return {
86
87
  ...e,
@@ -88,5 +89,5 @@ const A = x("role", () => {
88
89
  };
89
90
  };
90
91
  export {
91
- L as u
92
+ P as u
92
93
  };
@@ -1,22 +1,23 @@
1
- import { s as W, c as q, e as y } from "./iteration-CtN8sidV.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-MXDLzWd6.js";
1
+ import { e as y } from "./index-jxRluZiW.js";
2
+ import { e as O, b as W, c as _, v as F, n as h, O as q, D as M } from "./app-tDHL6k4G.js";
3
+ import { s as V, c as ee } from "./iteration-CcXrOMQe.js";
3
4
  import { s as se } from "./utils-BZkjJbju.js";
4
- import { g, b, q as x, u as te } from "./restaurant-BTpBmfBV.js";
5
+ import { g, b as v, q as x, u as te } from "./restaurant-BTpBmfBV.js";
5
6
  import { defineStore as z, storeToRefs as K } from "pinia";
6
7
  import { ref as S, computed as T } from "vue";
7
8
  import { useCoreStore as X } from "@feedmepos/mf-common";
8
9
  const E = "/permission-sets", N = {
9
10
  async read() {
10
- return g(await b().get(E));
11
+ return g(await v().get(E));
11
12
  },
12
13
  async create(e) {
13
- return g(await b().post(E, e));
14
+ return g(await v().post(E, e));
14
15
  },
15
16
  async update(e, s) {
16
- return g(await b().put(`${E}/${e}`, s));
17
+ return g(await v().put(`${E}/${e}`, s));
17
18
  },
18
19
  async delete(e) {
19
- return g(await b().delete(`${E}/${e}`));
20
+ return g(await v().delete(`${E}/${e}`));
20
21
  }
21
22
  }, ne = z("permissionSet", () => {
22
23
  const { currentBusiness: e } = X(), s = S([]), r = S(!1), n = S(null);
@@ -140,7 +141,7 @@ function G(e, s) {
140
141
  }));
141
142
  }
142
143
  for (const f of c.permissionSets ?? []) {
143
- const m = O(f), p = B(m, ["manage"]), v = {
144
+ const m = O(f), p = B(m, ["manage"]), b = {
144
145
  subject: m,
145
146
  actions: ["manage"],
146
147
  source: {
@@ -150,7 +151,7 @@ function G(e, s) {
150
151
  trace: d
151
152
  }
152
153
  };
153
- n.has(p) || (n.add(p), r.push(v)), a.push(v);
154
+ n.has(p) || (n.add(p), r.push(b)), a.push(b);
154
155
  }
155
156
  }
156
157
  return [...r.filter((o) => !o.inverted), ...r.filter((o) => o.inverted)];
@@ -179,13 +180,13 @@ function H(e, s, r = /* @__PURE__ */ new Set()) {
179
180
  }
180
181
  return n;
181
182
  }
182
- function Ae(e) {
183
+ function Oe(e) {
183
184
  const s = Q(e).map(
184
185
  ({ setNames: i, setId: t, ...a }) => a
185
186
  ), r = s.filter((i) => !i.inverted), n = s.filter((i) => i.inverted);
186
187
  return L(r, n);
187
188
  }
188
- function Oe(e, s, r) {
189
+ function _e(e, s, r) {
189
190
  const n = /* @__PURE__ */ new Map();
190
191
  return e.forEach(
191
192
  ({ name: i, permissions: t }) => t.forEach(({ conditions: a, actions: o }) => {
@@ -202,7 +203,7 @@ function Oe(e, s, r) {
202
203
  setNames: [...t]
203
204
  }));
204
205
  }
205
- function _e(e, s) {
206
+ function Ee(e, s) {
206
207
  const r = (o, u) => {
207
208
  const c = { ...o }, l = JSON.parse(c.conditions || "{}");
208
209
  if (u)
@@ -227,10 +228,10 @@ function _e(e, s) {
227
228
  continue;
228
229
  }
229
230
  const f = Object.keys(l)[0], m = l[f].$in.filter(
230
- (v) => !d[f].$in.includes(v)
231
+ (b) => !d[f].$in.includes(b)
231
232
  );
232
233
  m.length > 0 && t.push(r(u, m)), d[f].$in.filter(
233
- (v) => !l[f].$in.includes(v)
234
+ (b) => !l[f].$in.includes(b)
234
235
  ).length > 0 && t.push(c);
235
236
  } else if (!u.conditions && c.conditions)
236
237
  t.push(c);
@@ -239,7 +240,7 @@ function _e(e, s) {
239
240
  else if (!u.conditions && !c.conditions) {
240
241
  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
242
  if (f) {
242
- const p = c.actions.filter((v) => !l.has(v));
243
+ const p = c.actions.filter((b) => !l.has(b));
243
244
  t.push({
244
245
  ...c,
245
246
  actions: p
@@ -268,10 +269,10 @@ function _e(e, s) {
268
269
  }
269
270
  return t;
270
271
  }
271
- function Ee(e) {
272
+ function Ne(e) {
272
273
  const s = G(
273
274
  e,
274
- V
275
+ W
275
276
  ), r = new Set(
276
277
  s.filter((i) => {
277
278
  var t;
@@ -288,7 +289,7 @@ function Ee(e) {
288
289
  return e.filter((i) => i.inverted ? !(r.has(i.subject) && !n.has(i.subject)) : !r.has(i.subject));
289
290
  }
290
291
  const oe = "business::report::";
291
- function Ne(e, s) {
292
+ function Ue(e, s) {
292
293
  const r = [], n = e.filter((i) => {
293
294
  const t = i.subject;
294
295
  return !t.startsWith(oe) || s.has(t) ? !0 : (r.push(t), !1);
@@ -299,7 +300,7 @@ const ae = "business::report::reports::", ce = _.Subject.Business.report_reports
299
300
  function le(e, s) {
300
301
  return e.conditions ? !!s.conditions && e.conditions === s.conditions : !s.conditions;
301
302
  }
302
- function Ue(e, s) {
303
+ function Ce(e, s) {
303
304
  const r = e.find(
304
305
  (a) => !a.inverted && a.subject === ce
305
306
  ), n = e.find(
@@ -385,26 +386,26 @@ function de(e, s) {
385
386
  }
386
387
  const P = "/permission-assignments", I = {
387
388
  async readAll() {
388
- return g(await b().get(P));
389
+ return g(await v().get(P));
389
390
  },
390
391
  async readByUserId(e) {
391
- return g(await b().get(`${P}/user/${e}`));
392
+ return g(await v().get(`${P}/user/${e}`));
392
393
  },
393
394
  async readById(e) {
394
- return g(await b().get(`${P}/${e}`));
395
+ return g(await v().get(`${P}/${e}`));
395
396
  },
396
397
  async create(e) {
397
- return g(await b().post(P, e));
398
+ return g(await v().post(P, e));
398
399
  },
399
400
  async update(e, s) {
400
- return g(await b().put(`${P}/${e}`, s));
401
+ return g(await v().put(`${P}/${e}`, s));
401
402
  },
402
403
  async delete(e) {
403
- return g(await b().delete(`${P}/${e}`));
404
+ return g(await v().delete(`${P}/${e}`));
404
405
  },
405
406
  async addReportManagePermission(e, s) {
406
407
  return g(
407
- await b().post("/my-permissions/report-manage", { permissionKey: e, label: s })
408
+ await v().post("/my-permissions/report-manage", { permissionKey: e, label: s })
408
409
  );
409
410
  }
410
411
  }, fe = z("permissionAssignment", () => {
@@ -515,13 +516,13 @@ function A(e) {
515
516
  (t == null ? void 0 : t.permissionSetIds) ?? [],
516
517
  s.permissionSets.value
517
518
  ), o = Q(a).map(
518
- ({ setNames: p, ...v }) => v
519
+ ({ setNames: p, ...b }) => b
519
520
  ), u = t == null ? void 0 : t.customPermissions, c = u ?? e.permissions.map((p) => ({
520
521
  ...p,
521
522
  subject: O(p.subject)
522
523
  })), l = L(o, c), d = G(
523
524
  de(o, c),
524
- V
525
+ W
525
526
  ).filter((p) => !p.inverted), f = Y(d), m = f ?? n.value.map((p) => p._id);
526
527
  return {
527
528
  doc: e,
@@ -529,10 +530,10 @@ function A(e) {
529
530
  name: e.name && e.name !== e.email && e.name !== e.phoneNumber ? e.name : "-",
530
531
  phoneNumber: e.phoneNumber,
531
532
  email: e.email,
532
- restaurants: W(
533
+ restaurants: V(
533
534
  m.map((p) => {
534
- var v;
535
- return ((v = n.value.find((Z) => Z._id === p)) == null ? void 0 : v.profile.name) ?? "";
535
+ var b;
536
+ return ((b = n.value.find((Z) => Z._id === p)) == null ? void 0 : b.profile.name) ?? "";
536
537
  })
537
538
  ),
538
539
  managableRestaurantIds: f,
@@ -540,18 +541,18 @@ function A(e) {
540
541
  permissions: l
541
542
  };
542
543
  }
543
- const be = Object.freeze(
544
- Object.values(ee)
545
- ), Ce = {
544
+ const ve = Object.freeze(
545
+ Object.values(q)
546
+ ), Je = {
546
547
  async readTeamMembers() {
547
548
  return g(
548
- await b().get("/portal-users")
549
+ await v().get("/portal-users")
549
550
  ).map(A);
550
551
  },
551
552
  async readTeamMembersPage(e) {
552
553
  var r, n, i;
553
554
  const s = g(
554
- await b().get("/portal-users/paged", {
555
+ await v().get("/portal-users/paged", {
555
556
  params: {
556
557
  limit: e.limit,
557
558
  offset: e.offset,
@@ -569,35 +570,35 @@ const be = Object.freeze(
569
570
  },
570
571
  async readTeamMember(e) {
571
572
  return A(
572
- g(await b().get(`/portal-users/${e}`))
573
+ g(await v().get(`/portal-users/${e}`))
573
574
  );
574
575
  },
575
576
  async createTeamMember(e) {
576
577
  return A(
577
- g(await b().post("/portal-users", e))
578
+ g(await v().post("/portal-users", e))
578
579
  );
579
580
  },
580
581
  async updateTeamMember(e, s) {
581
582
  return A(
582
- g(await b().put(`/portal-users/${e}`, s))
583
+ g(await v().put(`/portal-users/${e}`, s))
583
584
  );
584
585
  },
585
586
  async deleteTeamMember(e) {
586
- return g(await b().delete(`/portal-users/${e}`));
587
+ return g(await v().delete(`/portal-users/${e}`));
587
588
  },
588
589
  async readTeamMemberPosUserIds() {
589
- return g(await b().get("/portal-users")).map((s) => s.posUserId);
590
+ return g(await v().get("/portal-users")).map((s) => s.posUserId);
590
591
  },
591
592
  async generateMasterUserPasscode(e) {
592
593
  return `${g(
593
- await b().post("/portal-users/generate-passcode", {
594
+ await v().post("/portal-users/generate-passcode", {
594
595
  restaurantIds: e.restaurantIds,
595
596
  excludePosUserId: e.excludePosUserId
596
597
  })
597
598
  )}`;
598
599
  }
599
600
  };
600
- function Je(e, s, r) {
601
+ function Te(e, s, r) {
601
602
  if (e.some((a) => a.subject === "all")) return "All";
602
603
  const n = (r ?? M).filter(
603
604
  (a) => a.subject === s
@@ -605,7 +606,7 @@ function Je(e, s, r) {
605
606
  return t.length === n.length ? "All" : t.length === 0 ? "-" : `${t.length} permission allow`;
606
607
  }
607
608
  function w(e) {
608
- const s = q(e), r = s.subject;
609
+ const s = ee(e), r = s.subject;
609
610
  return {
610
611
  ...s,
611
612
  get conditions() {
@@ -660,7 +661,7 @@ function w(e) {
660
661
  }
661
662
  };
662
663
  }
663
- function Te(e) {
664
+ function Be(e) {
664
665
  var n, i;
665
666
  const s = e.map((t) => w(t)).find((t) => t.isDiscountOperation);
666
667
  if (!s) return 100;
@@ -673,23 +674,23 @@ function Y(e) {
673
674
  );
674
675
  return s ? s.conditions ? JSON.parse(s.conditions).restaurantId.$in : null : [];
675
676
  }
676
- function Be(e, s) {
677
- return s.isOwner ? { restaurantIds: null, roleIds: null } : { restaurantIds: Y(e), roleIds: ve(e) };
677
+ function Me(e, s) {
678
+ return s.isOwner ? { restaurantIds: null, roleIds: null } : { restaurantIds: Y(e), roleIds: be(e) };
678
679
  }
679
- function Me(e) {
680
+ function Le(e) {
680
681
  return (e == null ? void 0 : e.some((s) => s.subject === "all")) ?? !1;
681
682
  }
682
- function ve(e) {
683
+ function be(e) {
683
684
  const s = e.find((r) => r.subject === _.Subject.Business.role);
684
685
  return s ? s.conditions ? JSON.parse(s.conditions).roleId.$in : null : [];
685
686
  }
686
- function Le(e) {
687
+ function Fe(e) {
687
688
  const s = w(e);
688
689
  if (!s.isReportPermission) return;
689
690
  const { name: r, ...n } = s.conditions ?? {};
690
691
  return Object.keys(n).length > 0 ? n : void 0;
691
692
  }
692
- function Fe(e, s, r) {
693
+ function xe(e, s, r) {
693
694
  return e.flatMap((n) => {
694
695
  const i = Se(n);
695
696
  if (!i) return [];
@@ -724,7 +725,7 @@ function Se(e) {
724
725
  reason: ""
725
726
  })) : i = M.find((t) => t.subject === r), i ? w(i) : void 0;
726
727
  }
727
- function xe(e, s) {
728
+ function De(e, s) {
728
729
  const r = { values: [], passthrough: [], dropped: [] };
729
730
  for (const n of e) {
730
731
  const i = n == null ? void 0 : n.actions;
@@ -738,9 +739,9 @@ function xe(e, s) {
738
739
  return r;
739
740
  }
740
741
  function he(e, s = []) {
741
- return W(
742
+ return V(
742
743
  e.reduce((r, n) => {
743
- const i = be.find(
744
+ const i = ve.find(
744
745
  (t) => t.subject === n.subject && n.actions.includes("manage")
745
746
  ) || s.find((t) => t.subject === n.subject);
746
747
  if (i) {
@@ -755,29 +756,29 @@ export {
755
756
  G as N,
756
757
  Q as P,
757
758
  pe as R,
758
- Je as a,
759
+ Te as a,
759
760
  de as b,
760
761
  H as c,
761
762
  ge as d,
762
- Le as e,
763
- Fe as f,
764
- Te as g,
765
- Me as h,
763
+ Fe as e,
764
+ xe as f,
765
+ Be as g,
766
+ Le as h,
766
767
  oe as i,
767
- Be as j,
768
- Ee as k,
769
- _e as l,
770
- Ae as m,
771
- Ne as n,
772
- Ue as o,
773
- be as p,
768
+ Me as j,
769
+ Ne as k,
770
+ Ee as l,
771
+ Oe as m,
772
+ Ue as n,
773
+ Ce as o,
774
+ ve as p,
774
775
  me as q,
775
776
  w as r,
776
- xe as s,
777
- Ce as t,
777
+ De as s,
778
+ Je as t,
778
779
  re as u,
779
780
  he as v,
780
- Oe as w,
781
+ _e as w,
781
782
  Y as x,
782
- ve as y
783
+ be as y
783
784
  };
@@ -0,0 +1,44 @@
1
+ import type { FdtoScheduleAssignment, FdtoScheduleAutoScheduleReq, FdtoScheduleAutoScheduleResult, FdtoScheduleBoard, FdtoScheduleBulkUpdateAssignmentStatusReq, FdtoScheduleCreateEmployeeProfileReq, FdtoScheduleDemand, FdtoScheduleEmployee, FdtoSchedulePosition, FdtoScheduleSaveAssignmentReq, FdtoScheduleSaveDemandReq, FdtoScheduleSavePositionReq, FdtoScheduleSaveScheduleDayReq, FdtoScheduleScheduleDay, FdtoScheduleUpdateEmployeeProfileReq } from '@/types/schedule';
2
+ declare const ScheduleAPI: {
3
+ generateAutoSchedule(restaurantId: string, req: FdtoScheduleAutoScheduleReq): Promise<FdtoScheduleAutoScheduleResult>;
4
+ /** One outlet's whole board over `[from, to]` (inclusive, 'YYYY-MM-DD'). */
5
+ readBoard(restaurantId: string, from: string, to: string): Promise<FdtoScheduleBoard>;
6
+ /** Creates or updates the employee's shared business-level scheduling profile. */
7
+ createEmployeeProfile(_restaurantId: string, req: FdtoScheduleCreateEmployeeProfileReq): Promise<FdtoScheduleEmployee>;
8
+ /** Edits the employee's shared business-level scheduling profile. */
9
+ updateEmployeeProfile(_restaurantId: string, employeeId: string, req: FdtoScheduleUpdateEmployeeProfileReq): Promise<FdtoScheduleEmployee>;
10
+ /** Positions are shared across the business. */
11
+ createPosition(req: FdtoScheduleSavePositionReq): Promise<FdtoSchedulePosition>;
12
+ updatePosition(id: string, req: FdtoScheduleSavePositionReq): Promise<FdtoSchedulePosition>;
13
+ /** Deleting one position is `deletePositions` with a single-id array — the backend's
14
+ * `DELETE positions/:id` route is gone; this is now `DELETE positions?ids=`. */
15
+ deletePosition(id: string): Promise<void>;
16
+ /** Creates one flat demand interval. */
17
+ createDemand(restaurantId: string, req: FdtoScheduleSaveDemandReq): Promise<FdtoScheduleDemand>;
18
+ /** Deletes a batch of demands in one request — e.g. `saveDemand` replacing a whole
19
+ * day/weekday's demand rows wholesale. Deleting one demand is just this with a single-id
20
+ * array. */
21
+ deleteDemands(restaurantId: string, ids: string[]): Promise<{
22
+ ok: true;
23
+ deletedCount: number;
24
+ }>;
25
+ /** Replaces one date's note/holiday-mark. All three fields back to empty/false clears it. */
26
+ saveScheduleDay(restaurantId: string, date: string, req: FdtoScheduleSaveScheduleDayReq): Promise<FdtoScheduleScheduleDay | null>;
27
+ /** A one-off shift assignment. */
28
+ createAssignment(restaurantId: string, req: FdtoScheduleSaveAssignmentReq): Promise<FdtoScheduleAssignment>;
29
+ updateAssignment(restaurantId: string, id: string, req: FdtoScheduleSaveAssignmentReq): Promise<FdtoScheduleAssignment | null>;
30
+ /** Deletes a batch of assignments in one request — e.g. a shift split into several segments
31
+ * getting replaced wholesale. Deleting one assignment is just this with a single-id
32
+ * array. */
33
+ deleteAssignments(restaurantId: string, ids: string[]): Promise<{
34
+ ok: true;
35
+ deletedCount: number;
36
+ }>;
37
+ /** Flips a batch of assignments to one status in a single request — e.g. Publish sending
38
+ * every DRAFT shift on the board to PUBLISHED at once. */
39
+ bulkUpdateAssignmentStatus(restaurantId: string, req: FdtoScheduleBulkUpdateAssignmentStatusReq): Promise<FdtoScheduleAssignment[]>;
40
+ devResetOutlet(restaurantId: string): Promise<{
41
+ removed: number;
42
+ }>;
43
+ };
44
+ 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
+ };
@@ -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 };