@feedmepos/mf-hrm-portal 2.2.5-dev.7 → 2.2.5-dev.9

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 (94) hide show
  1. package/dist/{ApprovalCodeList-dn-WwNAd.js → ApprovalCodeList-D5l9vIsE.js} +2 -2
  2. package/dist/{AuditLogList-BqVp9fxD.js → AuditLogList-ByTa5UJY.js} +3 -3
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DnAet2oc.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-mNdn1TYV.js} +2 -2
  4. package/dist/{EmployeeList-BwTJre5k.js → EmployeeList-Bv6ANk-P.js} +8 -9
  5. package/dist/{GrantUserList-CZek1r4F.js → GrantUserList-Bt8w3p4j.js} +3 -3
  6. package/dist/{Main-MjSYZdOq.js → Main-DHJcgePj.js} +5 -5
  7. package/dist/{Main-CbmA-SYo.js → Main-DkP8dWgn.js} +9 -9
  8. package/dist/{Main-DVA51sj2.js → Main-DqiGpT4v.js} +2 -2
  9. package/dist/{PermissionSetList-lkHmXhNm.js → PermissionSetList-BIGv1u67.js} +10 -11
  10. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-cFQDQCal.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-niywl_DX.js} +687 -688
  11. package/dist/{RoleList-BSs0SmFo.js → RoleList-CH6NDKPU.js} +7 -7
  12. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-T1ACkX_6.js +426 -0
  13. package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-BzQuLLf5.js +690 -0
  14. package/dist/ScheduleGeneralPage-DJPENJZ2.js +320 -0
  15. package/dist/SchedulePage-C1egcbIC.js +14421 -0
  16. package/dist/SchedulePositionPage-OhL_hsqG.js +293 -0
  17. package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-B8W4sTsA.js +242 -0
  18. package/dist/{TeamMemberList-Dit_nV6d.js → TeamMemberList-BwfG3go2.js} +8 -9
  19. package/dist/{TimesheetList-B-FlRO7E.js → TimesheetList-DcoqzbLO.js} +5 -5
  20. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DZUJR8K_.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RyhiKTSd.js} +2 -2
  21. package/dist/{app-BpnOPodL.js → app-BcZ6C8M8.js} +8 -8
  22. package/dist/app.js +1 -1
  23. package/dist/{dayjs.min-4GLfSOGZ.js → dayjs.min-Ch0iysTG.js} +1 -1
  24. package/dist/employee-DwYHFacQ.js +204 -0
  25. package/dist/{index-DYoVJQTd.js → iteration-D1uWLp0V.js} +726 -698
  26. package/dist/{lodash-CcFIMCiJ.js → lodash-DErxm7xf.js} +1 -1
  27. package/dist/{role-OXCiWTVq.js → role-B9VanAny.js} +3 -4
  28. package/dist/{rule-8iyCO_LZ.js → rule-C4f_Ilzr.js} +36 -37
  29. package/dist/src/api/schedule/index.d.ts +0 -3
  30. package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +1 -2
  31. package/dist/src/views/scheduling/SchedulePage.vue.d.ts +1 -2
  32. package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +1 -2
  33. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +5 -1
  34. package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +5 -1
  35. package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +6 -0
  36. package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +5 -1
  37. package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +23 -0
  38. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +1 -1
  39. package/dist/src/views/scheduling/components/ScheduleEmployeeMenu.vue.d.ts +6 -0
  40. package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +2 -0
  41. package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +4 -2
  42. package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +3 -0
  43. package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +32 -2
  44. package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +4 -0
  45. package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +5 -1
  46. package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +2 -0
  47. package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +4 -2
  48. package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +8 -2
  49. package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +4 -6
  50. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +5 -0
  51. package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -0
  52. package/dist/src/views/scheduling/composables/scheduleAutoSolver.d.ts +21 -0
  53. package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
  54. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +12 -0
  55. package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +14 -7
  56. package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +11 -2
  57. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +18 -11
  58. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +11 -0
  59. package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +5 -3
  60. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +0 -5
  61. package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +12 -4
  62. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +7 -1
  63. package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +11 -2
  64. package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +35 -0
  65. package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +2 -0
  66. package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +53 -3
  67. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1192 -55
  68. package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +1 -0
  69. package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +50 -0
  70. package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +2 -0
  71. package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +10 -1
  72. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +6 -0
  73. package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +5 -5
  74. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +6 -0
  75. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +7 -0
  76. package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +4 -1
  77. package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +6 -1
  78. package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +9 -0
  79. package/dist/src/views/scheduling/data.d.ts +6 -1
  80. package/dist/src/views/scheduling/schedule-store.d.ts +36 -1
  81. package/dist/src/views/scheduling/types.d.ts +14 -1
  82. package/dist/style.css +1 -1
  83. package/dist/tsconfig.app.tsbuildinfo +1 -1
  84. package/dist/{useReportPermissions-C3fuFTUC.js → useReportPermissions-CTr56kBo.js} +3 -3
  85. package/package.json +1 -1
  86. package/dist/ScheduleGeneralPage-DD9n2TUe.js +0 -242
  87. package/dist/SchedulePage-B0X97zVC.js +0 -10761
  88. package/dist/SchedulePositionPage-BXz1USn3.js +0 -220
  89. package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-DAHke2rH.js +0 -201
  90. package/dist/employee-ChdVnSmd.js +0 -139
  91. package/dist/index-CilJxsY7.js +0 -70
  92. package/dist/iteration-CcXrOMQe.js +0 -30
  93. package/dist/useScheduleOutlet-TPZJHgSY.js +0 -546
  94. package/dist/useSchedulePositions-DCkaKHQm.js +0 -103
@@ -0,0 +1,320 @@
1
+ import { ref as h, reactive as D, computed as C, defineComponent as E, onMounted as U, createElementBlock as c, openBlock as y, createElementVNode as s, createVNode as f, withCtx as k, unref as o, createTextVNode as p, toDisplayString as b, Fragment as B, renderList as x, normalizeClass as N, withDirectives as v, vModelText as m, createCommentVNode as F } from "vue";
2
+ import { useRouter as I } from "vue-router";
3
+ import { R as A } from "./app-BcZ6C8M8.js";
4
+ import { b as i, H, O as V, I as P, y as J, _ as R } from "./ScheduleButton.vue_vue_type_script_setup_true_lang-BzQuLLf5.js";
5
+ import { _ as M } from "./ScheduleSelect.vue_vue_type_script_setup_true_lang-B8W4sTsA.js";
6
+ const Y = [
7
+ { key: "overtime", label: "Overtime" }
8
+ ];
9
+ function g() {
10
+ return JSON.parse(
11
+ JSON.stringify({
12
+ salesForecast: i.salesForecast,
13
+ labourTarget: i.labourTarget,
14
+ budgetFromSales: i.budgetFromSales,
15
+ budget: i.budget,
16
+ payRate: i.payRate,
17
+ otCapHours: i.otCapHours,
18
+ otBudget: i.otBudget,
19
+ notify: i.notify
20
+ })
21
+ );
22
+ }
23
+ function $() {
24
+ const d = h(!1), u = h("overtime"), l = D(g());
25
+ function w(S) {
26
+ Object.assign(l, g()), u.value = S ?? "overtime", d.value = !0;
27
+ }
28
+ const t = C(() => JSON.stringify(l) !== JSON.stringify(g()));
29
+ function n() {
30
+ return t.value ? !1 : (d.value = !1, !0);
31
+ }
32
+ function r() {
33
+ Object.assign(l, g()), d.value = !1;
34
+ }
35
+ function O() {
36
+ i.salesForecast = l.salesForecast, i.labourTarget = l.labourTarget, i.budgetFromSales = l.budgetFromSales, i.budget = l.budget, i.payRate = JSON.parse(JSON.stringify(l.payRate)), i.otCapHours = l.otCapHours, i.otBudget = l.otBudget, i.notify = JSON.parse(JSON.stringify(l.notify)), d.value = !1;
37
+ }
38
+ return { isOpen: d, activeSection: u, draft: l, dirty: t, open: w, close: n, discard: r, save: O };
39
+ }
40
+ const z = { class: "main" }, j = {
41
+ id: "viewSettings",
42
+ class: "view"
43
+ }, G = { class: "sp-head" }, W = { class: "outlet-bar" }, q = { class: "outlet-note" }, K = { class: "sp-body" }, Q = { class: "sp-tabs" }, X = ["onClick"], Z = { class: "sp-content" }, ss = { class: "sp-panel" }, es = {
44
+ id: "sp-overtime",
45
+ class: "sp-sec"
46
+ }, ts = { class: "sp-card" }, as = { class: "sp-row" }, os = { class: "sp-field" }, is = { class: "sp-row" }, ls = { class: "sp-field" }, rs = { class: "sp-row" }, ns = { class: "sp-field" }, ds = { class: "sp-card" }, us = { class: "sp-row" }, ps = { class: "sp-field" }, vs = { class: "sp-row" }, ms = { class: "sp-field" }, cs = { class: "sp-save-txt" }, ys = { key: 0 }, Ss = /* @__PURE__ */ E({
47
+ __name: "ScheduleGeneralPage",
48
+ setup(d) {
49
+ const u = h(null);
50
+ H(u);
51
+ const l = C(() => V.name || "No outlet selected"), w = I(), t = $(), n = P(), r = h(!1), O = C(
52
+ () => n.options.value.length ? n.options.value : [{ value: "", label: "No outlet selected", disabled: !0 }]
53
+ );
54
+ function S(_) {
55
+ n.switchTo(_, /* @__PURE__ */ new Date());
56
+ }
57
+ U(async () => {
58
+ await n.resolve() && await J(/* @__PURE__ */ new Date()), t.open();
59
+ });
60
+ function T() {
61
+ t.close() && w.push({ name: A.SCHEDULE });
62
+ }
63
+ function L() {
64
+ if (!r.value) {
65
+ r.value = !0;
66
+ return;
67
+ }
68
+ r.value = !1, t.discard();
69
+ }
70
+ return (_, e) => (y(), c("div", {
71
+ ref_key: "rootEl",
72
+ ref: u,
73
+ class: "sch"
74
+ }, [
75
+ s("div", z, [
76
+ s("div", j, [
77
+ s("div", G, [
78
+ f(R, {
79
+ hierarchy: "ghost",
80
+ size: "sm",
81
+ class: "sp-back",
82
+ type: "button",
83
+ onClick: T
84
+ }, {
85
+ default: k(() => [...e[7] || (e[7] = [
86
+ s("svg", {
87
+ width: "12",
88
+ height: "12",
89
+ viewBox: "0 0 16 16",
90
+ fill: "none",
91
+ "aria-hidden": "true"
92
+ }, [
93
+ s("path", {
94
+ d: "M10 3.5L5.5 8l4.5 4.5",
95
+ stroke: "currentColor",
96
+ "stroke-width": "1.7",
97
+ "stroke-linecap": "round",
98
+ "stroke-linejoin": "round"
99
+ })
100
+ ], -1),
101
+ s("span", null, "Back to schedule", -1)
102
+ ])]),
103
+ _: 1
104
+ }),
105
+ e[11] || (e[11] = s("div", { class: "sp-title" }, "General", -1)),
106
+ e[12] || (e[12] = s("div", { class: "sp-sub" }, "Pay multipliers for this outlet.", -1)),
107
+ s("div", W, [
108
+ e[10] || (e[10] = s("span", { class: "outlet-bar-lbl" }, "Outlet", -1)),
109
+ f(M, {
110
+ class: "outlet-sel",
111
+ "aria-label": "Outlet these rules apply to",
112
+ "model-value": o(n).outletId.value,
113
+ options: O.value,
114
+ "onUpdate:modelValue": S
115
+ }, null, 8, ["model-value", "options"]),
116
+ s("span", q, [
117
+ e[8] || (e[8] = p("This setup applies to ", -1)),
118
+ s("b", null, b(l.value), 1),
119
+ e[9] || (e[9] = p(".", -1))
120
+ ])
121
+ ])
122
+ ]),
123
+ s("div", K, [
124
+ s("nav", Q, [
125
+ (y(!0), c(B, null, x(o(Y), (a) => (y(), c("button", {
126
+ key: a.key,
127
+ type: "button",
128
+ class: N(["sch-tab sp-tab", { active: o(t).activeSection.value === a.key }]),
129
+ "data-active": "false",
130
+ onClick: (fs) => o(t).activeSection.value = a.key
131
+ }, b(a.label), 11, X))), 128))
132
+ ]),
133
+ s("div", Z, [
134
+ s("div", ss, [
135
+ s("section", es, [
136
+ e[25] || (e[25] = s("div", { class: "sp-sec-head" }, [
137
+ s("div", { class: "sp-panel-title" }, "Pay rates")
138
+ ], -1)),
139
+ e[26] || (e[26] = s("div", { class: "sp-panel-desc" }, "Pay multipliers by kind of day.", -1)),
140
+ s("div", ts, [
141
+ e[19] || (e[19] = s("div", { class: "sp-card-head" }, [
142
+ s("div", { class: "sp-card-title" }, "Overtime rate"),
143
+ s("div", { class: "sp-card-note" }, "Multiplier on every OT hour")
144
+ ], -1)),
145
+ s("div", as, [
146
+ e[14] || (e[14] = s("div", { class: "sp-row-main" }, [
147
+ s("div", { class: "sp-row-label" }, "Normal operations day"),
148
+ s("div", { class: "sp-row-hint" }, " Multiplier on their rate for hours past the weekly contract. ")
149
+ ], -1)),
150
+ s("div", os, [
151
+ v(s("input", {
152
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => o(t).draft.payRate.NORMAL.overtime = a),
153
+ class: "sch-input sp-num",
154
+ type: "number",
155
+ min: "1",
156
+ max: "4",
157
+ step: "0.1",
158
+ "aria-label": "Overtime rate on a normal day"
159
+ }, null, 512), [
160
+ [
161
+ m,
162
+ o(t).draft.payRate.NORMAL.overtime,
163
+ void 0,
164
+ { number: !0 }
165
+ ]
166
+ ]),
167
+ e[13] || (e[13] = s("span", { class: "sp-unit" }, "×", -1))
168
+ ])
169
+ ]),
170
+ s("div", is, [
171
+ e[16] || (e[16] = s("div", { class: "sp-row-main" }, [
172
+ s("div", { class: "sp-row-label" }, "Rest day"),
173
+ s("div", { class: "sp-row-hint" }, " For a shift on the person's rest day, weekly or booked. Check the rate with HR. ")
174
+ ], -1)),
175
+ s("div", ls, [
176
+ v(s("input", {
177
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => o(t).draft.payRate.REST_DAY.overtime = a),
178
+ class: "sch-input sp-num",
179
+ type: "number",
180
+ min: "1",
181
+ max: "4",
182
+ step: "0.1",
183
+ "aria-label": "Overtime rate on a rest day"
184
+ }, null, 512), [
185
+ [
186
+ m,
187
+ o(t).draft.payRate.REST_DAY.overtime,
188
+ void 0,
189
+ { number: !0 }
190
+ ]
191
+ ]),
192
+ e[15] || (e[15] = s("span", { class: "sp-unit" }, "×", -1))
193
+ ])
194
+ ]),
195
+ s("div", rs, [
196
+ e[18] || (e[18] = s("div", { class: "sp-row-main" }, [
197
+ s("div", { class: "sp-row-label" }, "Public holiday"),
198
+ s("div", { class: "sp-row-hint" }, " For dates on the holiday calendar. Wins over a rest day on the same date. ")
199
+ ], -1)),
200
+ s("div", ns, [
201
+ v(s("input", {
202
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => o(t).draft.payRate.PUBLIC_HOLIDAY.overtime = a),
203
+ class: "sch-input sp-num",
204
+ type: "number",
205
+ min: "1",
206
+ max: "4",
207
+ step: "0.1",
208
+ "aria-label": "Overtime rate on a public holiday"
209
+ }, null, 512), [
210
+ [
211
+ m,
212
+ o(t).draft.payRate.PUBLIC_HOLIDAY.overtime,
213
+ void 0,
214
+ { number: !0 }
215
+ ]
216
+ ]),
217
+ e[17] || (e[17] = s("span", { class: "sp-unit" }, "×", -1))
218
+ ])
219
+ ])
220
+ ]),
221
+ s("div", ds, [
222
+ e[24] || (e[24] = s("div", { class: "sp-card-head" }, [
223
+ s("div", { class: "sp-card-title" }, "Regular rate"),
224
+ s("div", { class: "sp-card-note" }, "Multiplier on ordinary hours")
225
+ ], -1)),
226
+ s("div", us, [
227
+ e[21] || (e[21] = s("div", { class: "sp-row-main" }, [
228
+ s("div", { class: "sp-row-label" }, "Rest day"),
229
+ s("div", { class: "sp-row-hint" }, "Ordinary hours worked on the person's rest day.")
230
+ ], -1)),
231
+ s("div", ps, [
232
+ v(s("input", {
233
+ "onUpdate:modelValue": e[3] || (e[3] = (a) => o(t).draft.payRate.REST_DAY.regular = a),
234
+ class: "sch-input sp-num",
235
+ type: "number",
236
+ min: "1",
237
+ max: "4",
238
+ step: "0.1",
239
+ "aria-label": "Regular rate on a rest day"
240
+ }, null, 512), [
241
+ [
242
+ m,
243
+ o(t).draft.payRate.REST_DAY.regular,
244
+ void 0,
245
+ { number: !0 }
246
+ ]
247
+ ]),
248
+ e[20] || (e[20] = s("span", { class: "sp-unit" }, "×", -1))
249
+ ])
250
+ ]),
251
+ s("div", vs, [
252
+ e[23] || (e[23] = s("div", { class: "sp-row-main" }, [
253
+ s("div", { class: "sp-row-label" }, "Public holiday"),
254
+ s("div", { class: "sp-row-hint" }, "Ordinary hours worked on a date on the holiday calendar.")
255
+ ], -1)),
256
+ s("div", ms, [
257
+ v(s("input", {
258
+ "onUpdate:modelValue": e[4] || (e[4] = (a) => o(t).draft.payRate.PUBLIC_HOLIDAY.regular = a),
259
+ class: "sch-input sp-num",
260
+ type: "number",
261
+ min: "1",
262
+ max: "4",
263
+ step: "0.1",
264
+ "aria-label": "Regular rate on a public holiday"
265
+ }, null, 512), [
266
+ [
267
+ m,
268
+ o(t).draft.payRate.PUBLIC_HOLIDAY.regular,
269
+ void 0,
270
+ { number: !0 }
271
+ ]
272
+ ]),
273
+ e[22] || (e[22] = s("span", { class: "sp-unit" }, "×", -1))
274
+ ])
275
+ ])
276
+ ])
277
+ ])
278
+ ])
279
+ ]),
280
+ s("div", {
281
+ class: N(["sp-save", { dirty: o(t).dirty.value, arming: r.value }])
282
+ }, [
283
+ s("div", cs, [
284
+ p(b(r.value ? "Discard unsaved changes?" : "Unsaved changes") + " ", 1),
285
+ r.value ? F("", !0) : (y(), c("span", ys, "— save or discard before leaving."))
286
+ ]),
287
+ f(R, {
288
+ hierarchy: "secondary",
289
+ size: "sm",
290
+ class: "am-btn am-btn-sec",
291
+ type: "button",
292
+ onClick: e[5] || (e[5] = (a) => L())
293
+ }, {
294
+ default: k(() => [
295
+ p(b(r.value ? "Confirm discard" : "Discard"), 1)
296
+ ]),
297
+ _: 1
298
+ }),
299
+ f(R, {
300
+ hierarchy: "primary",
301
+ size: "sm",
302
+ class: "am-btn am-btn-primary",
303
+ type: "button",
304
+ onClick: e[6] || (e[6] = (a) => o(t).save())
305
+ }, {
306
+ default: k(() => [...e[27] || (e[27] = [
307
+ p(" Save changes ", -1)
308
+ ])]),
309
+ _: 1
310
+ })
311
+ ], 2)
312
+ ])
313
+ ])
314
+ ])
315
+ ], 512));
316
+ }
317
+ });
318
+ export {
319
+ Ss as default
320
+ };