@feedmepos/mf-hrm-portal 2.2.5-dev.9 → 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 (116) hide show
  1. package/dist/{ApprovalCodeList-D5l9vIsE.js → ApprovalCodeList-cG0zmQVJ.js} +5 -5
  2. package/dist/{AuditLogList-ByTa5UJY.js → AuditLogList-BTifJhO1.js} +4 -4
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-mNdn1TYV.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-qr5TwLTK.js} +2 -2
  4. package/dist/{EmployeeList-Bv6ANk-P.js → EmployeeList-DzcMtxJ3.js} +6 -6
  5. package/dist/{GrantUserList-Bt8w3p4j.js → GrantUserList-D5b7tJ8Y.js} +6 -6
  6. package/dist/{Main-DqiGpT4v.js → Main-B2r59IOW.js} +5 -5
  7. package/dist/{Main-DHJcgePj.js → Main-DFwdAWqn.js} +8 -8
  8. package/dist/{Main-DkP8dWgn.js → Main-DkLBemi7.js} +11 -11
  9. package/dist/{PermissionSetList-BIGv1u67.js → PermissionSetList-B80hrfMW.js} +7 -7
  10. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DjNcJQM9.js +4167 -0
  11. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fe-Rdwn4.js} +1 -1
  12. package/dist/{RoleList-CH6NDKPU.js → RoleList-DHO4JRKF.js} +9 -9
  13. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B-XtB64L.js +452 -0
  14. package/dist/ScheduleGeneralPage-WlBM8bxV.js +629 -0
  15. package/dist/SchedulePage-Nm0krGVU.js +17056 -0
  16. package/dist/SchedulePositionPage-C0hrO11d.js +263 -0
  17. package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-DTDXir_7.js +1150 -0
  18. package/dist/{TeamMemberList-BwfG3go2.js → TeamMemberList-CgFWLRBM.js} +10 -10
  19. package/dist/{TimesheetList-DcoqzbLO.js → TimesheetList-Dp40G-0I.js} +7 -7
  20. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RyhiKTSd.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BFjrMhUG.js} +3 -3
  21. package/dist/{app-BcZ6C8M8.js → app-CmBSTvaI.js} +851 -739
  22. package/dist/app.js +1 -1
  23. package/dist/{approval-code-jIjkeVEb.js → approval-code-C9DmR4Md.js} +1 -1
  24. package/dist/{dayjs.min-Ch0iysTG.js → dayjs.min-CfL2DQ3d.js} +1 -1
  25. package/dist/{employee-DwYHFacQ.js → employee-DQcHjoij.js} +4 -4
  26. package/dist/{grant-user-SNiDV22U.js → grant-user-Bv-pJ9Wt.js} +1 -1
  27. package/dist/{iteration-D1uWLp0V.js → iteration-BlavheWG.js} +1 -1
  28. package/dist/{lodash-DErxm7xf.js → lodash-QerqayrJ.js} +1 -1
  29. package/dist/{restaurant-BTpBmfBV.js → restaurant-D7PEQjPY.js} +257 -251
  30. package/dist/{role-B9VanAny.js → role-RM2YLO7n.js} +2 -2
  31. package/dist/{rule-C4f_Ilzr.js → rule-DjlvYIuP.js} +3 -3
  32. package/dist/src/api/restaurant/index.d.ts +2 -0
  33. package/dist/src/api/schedule/index.d.ts +12 -2
  34. package/dist/src/composables/useMessage.d.ts +8 -2
  35. package/dist/src/types/schedule.d.ts +10 -218
  36. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +2 -0
  37. package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +11 -0
  38. package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +6 -0
  39. package/dist/src/views/scheduling/components/ScheduleCloneOutletModal.vue.d.ts +6 -0
  40. package/dist/src/views/scheduling/components/{ScheduleLegendBar.vue.d.ts → ScheduleCoach.vue.d.ts} +2 -2
  41. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +9 -1
  42. package/dist/src/views/scheduling/components/ScheduleCostRailEmptyArt.vue.d.ts +2 -0
  43. package/dist/src/views/scheduling/components/ScheduleExportDoneDialog.vue.d.ts +6 -0
  44. package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +0 -2
  45. package/dist/src/views/scheduling/components/ScheduleOnboardingComplete.vue.d.ts +10 -0
  46. package/dist/src/views/scheduling/components/ScheduleOnboardingDoneArt.vue.d.ts +2 -0
  47. package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +1 -2
  48. package/dist/src/views/scheduling/components/ScheduleShiftCardMenu.vue.d.ts +2 -2
  49. package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +6 -6
  50. package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +2 -0
  51. package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +0 -2
  52. package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +6 -6
  53. package/dist/src/views/scheduling/components/ScheduleTourAllSet.vue.d.ts +6 -0
  54. package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +33 -0
  55. package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +5 -0
  56. package/dist/src/views/scheduling/composables/onboarding-hours.d.ts +7 -0
  57. package/dist/src/views/scheduling/composables/onboarding-types.d.ts +50 -0
  58. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +8 -2
  59. package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +22 -1
  60. package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +3 -0
  61. package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +2 -8
  62. package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +12 -0
  63. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +11 -8
  64. package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +10 -2
  65. package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +13 -0
  66. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +158 -12
  67. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +110 -13
  68. package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +11 -1
  69. package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +19 -0
  70. package/dist/src/views/scheduling/composables/useScheduleCoach.d.ts +80 -0
  71. package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -3
  72. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +24 -1
  73. package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +4 -2
  74. package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +33 -1
  75. package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +17 -0
  76. package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +1 -3
  77. package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +20 -31
  78. package/dist/src/views/scheduling/composables/useScheduleOnboardingFlow.d.ts +9 -0
  79. package/dist/src/views/scheduling/composables/useScheduleOnboardingPersistence.d.ts +13 -0
  80. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +327 -75
  81. package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +5 -3
  82. package/dist/src/views/scheduling/composables/useSchedulePageBootstrap.d.ts +9 -0
  83. package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +20 -0
  84. package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +18 -0
  85. package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +2 -0
  86. package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +0 -5
  87. package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +25 -0
  88. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +53 -1
  89. package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +7 -4
  90. package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +8 -9
  91. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +63 -92
  92. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +30 -2
  93. package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +5 -11
  94. package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +0 -1
  95. package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +4 -4
  96. package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +93 -0
  97. package/dist/src/views/scheduling/data.d.ts +6 -19
  98. package/dist/src/views/scheduling/locales/index.d.ts +116 -4
  99. package/dist/src/views/scheduling/schedule-state.d.ts +679 -0
  100. package/dist/src/views/scheduling/schedule-store.d.ts +16 -60
  101. package/dist/src/views/scheduling/types.d.ts +29 -2
  102. package/dist/style.css +1 -1
  103. package/dist/tsconfig.app.tsbuildinfo +1 -1
  104. package/dist/{useAppStore-DCwd8GWN.js → useAppStore-d_nHyK5u.js} +1 -1
  105. package/dist/{useLoading-CXzTpIVv.js → useLoading-JFoghhRz.js} +1 -1
  106. package/dist/{useReportPermissions-CTr56kBo.js → useReportPermissions-Bl6Br79r.js} +3 -3
  107. package/package.json +3 -2
  108. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-niywl_DX.js +0 -4167
  109. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-T1ACkX_6.js +0 -426
  110. package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-BzQuLLf5.js +0 -690
  111. package/dist/ScheduleGeneralPage-DJPENJZ2.js +0 -320
  112. package/dist/SchedulePage-C1egcbIC.js +0 -14421
  113. package/dist/SchedulePositionPage-OhL_hsqG.js +0 -293
  114. package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-B8W4sTsA.js +0 -242
  115. package/dist/src/views/scheduling/composables/scheduleAutoSolver.d.ts +0 -21
  116. package/dist/src/views/scheduling/composables/useScheduleLegendBar.d.ts +0 -35
@@ -0,0 +1,263 @@
1
+ import { defineComponent as D, ref as N, onMounted as M, computed as A, createElementBlock as l, openBlock as a, createElementVNode as o, createVNode as i, withCtx as d, unref as s, toDisplayString as c, createTextVNode as r, normalizeClass as g, createCommentVNode as x, withDirectives as z, withKeys as k, vModelText as E, Fragment as b, renderList as P, withModifiers as p } from "vue";
2
+ import { useRouter as S } from "vue-router";
3
+ import { R as V } from "./app-CmBSTvaI.js";
4
+ import { a6 as F, a7 as B, T as I, a4 as u, a5 as L } from "./ScheduleSelect.vue_vue_type_script_setup_true_lang-DTDXir_7.js";
5
+ import { u as O, a as R, _ as T } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B-XtB64L.js";
6
+ import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
+ const U = { class: "main" }, W = {
8
+ id: "viewPositions",
9
+ class: "view"
10
+ }, j = { class: "sp-head" }, q = { class: "outlet-bar" }, H = { class: "sp-body" }, G = { class: "sp-content" }, J = { class: "sp-panel" }, Q = { class: "cfg-head" }, X = { class: "cfg-count" }, Y = { id: "skList" }, Z = {
11
+ key: 0,
12
+ class: "cfg-empty"
13
+ }, ee = {
14
+ key: 1,
15
+ class: "cfg-list"
16
+ }, se = {
17
+ key: 0,
18
+ class: "cfg-row"
19
+ }, te = { class: "cfg-main" }, oe = ["onClick"], ne = { class: "cfg-main" }, ie = { class: "cfg-name" }, le = {
20
+ key: 0,
21
+ class: "cfg-confirm"
22
+ }, ae = { class: "q" }, de = /* @__PURE__ */ D({
23
+ __name: "SchedulePositionPage",
24
+ setup(re) {
25
+ const h = N(null);
26
+ F(h);
27
+ const C = S(), t = O(), v = B(), m = R();
28
+ M(async () => {
29
+ await v.resolve() && await I(/* @__PURE__ */ new Date());
30
+ });
31
+ const _ = A(
32
+ () => v.options.value.length ? v.options.value : [{ value: "", label: "No outlet selected", disabled: !0 }]
33
+ );
34
+ function w(y) {
35
+ v.switchTo(y, /* @__PURE__ */ new Date());
36
+ }
37
+ function $() {
38
+ C.push({ name: V.SCHEDULE });
39
+ }
40
+ return (y, e) => (a(), l("div", {
41
+ ref_key: "rootEl",
42
+ ref: h,
43
+ class: "sch"
44
+ }, [
45
+ o("div", U, [
46
+ o("div", W, [
47
+ o("div", j, [
48
+ i(u, {
49
+ hierarchy: "ghost",
50
+ size: "sm",
51
+ class: "sp-back",
52
+ type: "button",
53
+ onClick: $
54
+ }, {
55
+ default: d(() => [...e[7] || (e[7] = [
56
+ o("svg", {
57
+ width: "12",
58
+ height: "12",
59
+ viewBox: "0 0 16 16",
60
+ fill: "none",
61
+ "aria-hidden": "true"
62
+ }, [
63
+ o("path", {
64
+ d: "M10 3.5L5.5 8l4.5 4.5",
65
+ stroke: "currentColor",
66
+ "stroke-width": "1.7",
67
+ "stroke-linecap": "round",
68
+ "stroke-linejoin": "round"
69
+ })
70
+ ], -1),
71
+ o("span", null, "Back to schedule", -1)
72
+ ])]),
73
+ _: 1
74
+ }),
75
+ e[9] || (e[9] = o("div", { class: "sp-title" }, "Position", -1)),
76
+ e[10] || (e[10] = o("div", { class: "sp-sub" }, "What your staff can do — the same catalogue across every outlet.", -1)),
77
+ o("div", q, [
78
+ e[8] || (e[8] = o("span", { class: "outlet-bar-lbl" }, "Outlet", -1)),
79
+ i(L, {
80
+ class: "outlet-sel",
81
+ "aria-label": "Outlet being configured",
82
+ searchable: "",
83
+ title: "Which outlet's roster the staff counts below are read from",
84
+ "model-value": s(v).outletId.value,
85
+ options: _.value,
86
+ "onUpdate:modelValue": w
87
+ }, null, 8, ["model-value", "options"])
88
+ ])
89
+ ]),
90
+ o("div", H, [
91
+ o("div", G, [
92
+ o("div", J, [
93
+ o("div", Q, [
94
+ e[12] || (e[12] = o("div", { class: "cfg-title" }, "Configured positions", -1)),
95
+ o("span", X, c(s(t).count.value), 1),
96
+ e[13] || (e[13] = o("span", { class: "cfg-spacer" }, null, -1)),
97
+ i(u, {
98
+ hierarchy: "primary",
99
+ size: "sm",
100
+ class: "am-btn am-btn-primary",
101
+ type: "button",
102
+ onClick: e[0] || (e[0] = (n) => s(m).openNew())
103
+ }, {
104
+ default: d(() => [...e[11] || (e[11] = [
105
+ r(" + Add position ", -1)
106
+ ])]),
107
+ _: 1
108
+ })
109
+ ]),
110
+ o("div", {
111
+ class: g(["ce-err", { show: s(t).error.value }])
112
+ }, c(s(t).error.value), 3),
113
+ o("div", Y, [
114
+ !s(t).positions.value.length && !s(t).isAdding.value ? (a(), l("div", Z, [...e[14] || (e[14] = [
115
+ r(" No positions yet.", -1),
116
+ o("br", null, null, -1),
117
+ r(" Add one and it becomes assignable on every employee. ", -1)
118
+ ])])) : (a(), l("div", ee, [
119
+ s(t).isAdding.value ? (a(), l("div", se, [
120
+ o("div", te, [
121
+ z(o("input", {
122
+ "onUpdate:modelValue": e[1] || (e[1] = (n) => s(t).newName.value = n),
123
+ type: "text",
124
+ class: "cfg-name-input",
125
+ placeholder: "New position name",
126
+ autofocus: "",
127
+ onKeyup: [
128
+ e[2] || (e[2] = k((n) => s(t).confirmAdd(), ["enter"])),
129
+ e[3] || (e[3] = k((n) => s(t).cancelAdd(), ["esc"]))
130
+ ]
131
+ }, null, 544), [
132
+ [E, s(t).newName.value]
133
+ ])
134
+ ]),
135
+ i(u, {
136
+ hierarchy: "secondary",
137
+ size: "sm",
138
+ class: "cfg-btn",
139
+ type: "button",
140
+ disabled: !s(t).newName.value.trim() || s(t).saving.value,
141
+ onClick: e[4] || (e[4] = (n) => s(t).confirmAdd())
142
+ }, {
143
+ default: d(() => [
144
+ r(c(s(t).saving.value ? "Adding…" : "Add"), 1)
145
+ ]),
146
+ _: 1
147
+ }, 8, ["disabled"]),
148
+ i(u, {
149
+ hierarchy: "secondary",
150
+ size: "sm",
151
+ class: "cfg-btn",
152
+ type: "button",
153
+ disabled: s(t).saving.value,
154
+ onClick: e[5] || (e[5] = (n) => s(t).cancelAdd())
155
+ }, {
156
+ default: d(() => [...e[15] || (e[15] = [
157
+ r(" Cancel ", -1)
158
+ ])]),
159
+ _: 1
160
+ }, 8, ["disabled"])
161
+ ])) : x("", !0),
162
+ (a(!0), l(b, null, P(s(t).positions.value, (n) => (a(), l("div", {
163
+ key: n.id,
164
+ class: g(["cfg-row", { "is-clickable": s(t).pendingDeleteId.value !== n.id }]),
165
+ onClick: (f) => s(t).pendingDeleteId.value !== n.id && s(m).openEdit(n.id, n.name)
166
+ }, [
167
+ o("div", ne, [
168
+ o("div", ie, c(n.name), 1)
169
+ ]),
170
+ s(t).pendingDeleteId.value === n.id ? (a(), l("div", le, [
171
+ o("span", ae, c(s(t).usageCountFor(n.name) ? `Remove from ${s(t).usageCountFor(n.name)} staff?` : "Delete?"), 1),
172
+ i(u, {
173
+ hierarchy: "danger",
174
+ size: "sm",
175
+ class: "cfg-yes",
176
+ type: "button",
177
+ disabled: s(t).saving.value,
178
+ onClick: p((f) => s(t).confirmDelete(n.id), ["stop"])
179
+ }, {
180
+ default: d(() => [
181
+ r(c(s(t).saving.value ? "Deleting…" : "Delete"), 1)
182
+ ]),
183
+ _: 1
184
+ }, 8, ["disabled", "onClick"]),
185
+ i(u, {
186
+ hierarchy: "secondary",
187
+ size: "sm",
188
+ class: "cfg-no",
189
+ type: "button",
190
+ disabled: s(t).saving.value,
191
+ onClick: e[6] || (e[6] = p((f) => s(t).cancelDelete(), ["stop"]))
192
+ }, {
193
+ default: d(() => [...e[16] || (e[16] = [
194
+ r(" Keep ", -1)
195
+ ])]),
196
+ _: 1
197
+ }, 8, ["disabled"])
198
+ ])) : (a(), l(b, { key: 1 }, [
199
+ o("span", {
200
+ class: g(["cfg-used", { none: !s(t).usageCountFor(n.name) }])
201
+ }, c(s(t).usageCountFor(n.name) ? `${s(t).usageCountFor(n.name)} staff` : "unused"), 3),
202
+ i(u, {
203
+ hierarchy: "secondary",
204
+ size: "sm",
205
+ class: "cfg-btn",
206
+ type: "button",
207
+ onClick: p((f) => s(m).openEdit(n.id, n.name), ["stop"])
208
+ }, {
209
+ default: d(() => [...e[17] || (e[17] = [
210
+ r(" Edit ", -1)
211
+ ])]),
212
+ _: 1
213
+ }, 8, ["onClick"]),
214
+ i(u, {
215
+ hierarchy: "ghost",
216
+ size: "sm",
217
+ "icon-only": "",
218
+ class: "cfg-del",
219
+ type: "button",
220
+ "aria-label": `Delete ${n.name}`,
221
+ onClick: p((f) => s(t).askDelete(n.id), ["stop"])
222
+ }, {
223
+ default: d(() => [...e[18] || (e[18] = [
224
+ o("svg", {
225
+ width: "14",
226
+ height: "14",
227
+ viewBox: "0 0 16 16",
228
+ fill: "none",
229
+ "aria-hidden": "true"
230
+ }, [
231
+ o("path", {
232
+ d: "M2.5 4.5h11M6 4.5V3a.8.8 0 0 1 .8-.8h2.4a.8.8 0 0 1 .8.8v1.5M4 4.5l.6 8.2a1 1 0 0 0 1 .93h4.8a1 1 0 0 0 1-.93l.6-8.2",
233
+ stroke: "currentColor",
234
+ "stroke-width": "1.4",
235
+ "stroke-linecap": "round",
236
+ "stroke-linejoin": "round"
237
+ }),
238
+ o("path", {
239
+ d: "M6.6 7v4M9.4 7v4",
240
+ stroke: "currentColor",
241
+ "stroke-width": "1.3",
242
+ "stroke-linecap": "round"
243
+ })
244
+ ], -1)
245
+ ])]),
246
+ _: 1
247
+ }, 8, ["aria-label", "onClick"])
248
+ ], 64))
249
+ ], 10, oe))), 128))
250
+ ]))
251
+ ])
252
+ ])
253
+ ])
254
+ ])
255
+ ])
256
+ ]),
257
+ i(T, { modal: s(m) }, null, 8, ["modal"])
258
+ ], 512));
259
+ }
260
+ }), ge = /* @__PURE__ */ K(de, [["__scopeId", "data-v-fece1656"]]);
261
+ export {
262
+ ge as default
263
+ };