@feedmepos/mf-hrm-portal 2.3.0 → 2.3.1-dev.1

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 (72) hide show
  1. package/dist/{ApprovalCodeList-DwubNElp.js → ApprovalCodeList-CDU3yUHy.js} +7 -7
  2. package/dist/AuditLogList-BU11Q5sF.js +1950 -0
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CmLLNcB4.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BjHwyaXu.js} +2 -2
  4. package/dist/{EmployeeList-DEAJPx9F.js → EmployeeList-BqzXg3uA.js} +8 -8
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-OAvd6eHM.js → FormItem.vue_vue_type_script_setup_true_lang-Clh43Y-8.js} +1 -1
  6. package/dist/{GrantUserList-Dx4jF2qJ.js → GrantUserList-Cw8RkFqf.js} +8 -8
  7. package/dist/{Main-BirWXk7o.js → Main-BxcRbcce.js} +5 -5
  8. package/dist/{Main-CL5JYCPg.js → Main-CL-ysWRu.js} +8 -8
  9. package/dist/{Main-C2PBSCte.js → Main-Dlar77Zq.js} +11 -11
  10. package/dist/{PermissionSetList-BtYcqPiO.js → PermissionSetList-_8aBzGy7.js} +7 -7
  11. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BXw4aX39.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CNgtAtYH.js} +1292 -1292
  12. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DaAx79pC.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js} +1 -1
  13. package/dist/{RoleList-YS_LBfoJ.js → RoleList-C3n_zOB3.js} +9 -9
  14. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CnrbCggg.js +544 -0
  15. package/dist/ScheduleGeneralPage-DGHKW_ww.js +811 -0
  16. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-CnKzVz3I.js → ScheduleModal.vue_vue_type_script_setup_true_lang-AfTAGsh1.js} +933 -834
  17. package/dist/SchedulePage-UzDPRldO.js +19458 -0
  18. package/dist/SchedulePositionPage-RHETW36P.js +282 -0
  19. package/dist/{SelectFilter-Dh3eY1hV.js → SelectFilter-CeBV_Kug.js} +1 -1
  20. package/dist/{TeamMemberList-Bv6_2bzs.js → TeamMemberList-B-qR7VS3.js} +11 -11
  21. package/dist/{TimesheetList-B3BmpH0I.js → TimesheetList-BqRIZBt1.js} +8 -8
  22. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C4rbnZh1.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-oIBUAjtv.js} +3 -3
  23. package/dist/{app-CyS8c8dx.js → app-DFL6Nv_p.js} +10360 -3848
  24. package/dist/app.js +1 -1
  25. package/dist/{approval-code-BIpLingm.js → approval-code-BXUiojPH.js} +1 -1
  26. package/dist/{dayjs.min-BRlEc3-d.js → dayjs.min-CH-gVmsz.js} +1 -1
  27. package/dist/{employee-CcdjLOLQ.js → employee-3xpIjR6i.js} +4 -4
  28. package/dist/{grant-user-uZmvD_bw.js → grant-user-CBJ3gEgW.js} +1 -1
  29. package/dist/{iteration-CL1RDmws.js → iteration-D6wutq5U.js} +1 -1
  30. package/dist/{lodash-C00ieagp.js → lodash-D5kU1nPN.js} +1 -1
  31. package/dist/{restaurant-CHpkjUPy.js → restaurant-D2mfKHaH.js} +2 -2
  32. package/dist/{role-DtatkKp9.js → role-B7nu6hH1.js} +2 -2
  33. package/dist/{rule-DJJMpkoG.js → rule-CMd6SL3n.js} +3 -3
  34. package/dist/src/api/audit-log/index.d.ts +4 -0
  35. package/dist/src/views/audit-log/constants.d.ts +9 -30
  36. package/dist/src/views/audit-log/locales/index.d.ts +236 -0
  37. package/dist/src/views/audit-log/pos-row.d.ts +27 -0
  38. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +0 -2
  39. package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +5 -3
  40. package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +2 -0
  41. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +1 -1
  42. package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +10 -0
  43. package/dist/src/views/scheduling/composables/schedule-cost.d.ts +5 -0
  44. package/dist/src/views/scheduling/composables/schedule-currency.d.ts +22 -0
  45. package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +1 -1
  46. package/dist/src/views/scheduling/composables/schedule-leave-split.d.ts +4 -0
  47. package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +2 -1
  48. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +5 -5
  49. package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +2 -0
  50. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +5 -5
  51. package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +1 -1
  52. package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +2 -2
  53. package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +1 -1
  54. package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +9 -12
  55. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +7 -6
  56. package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +12 -0
  57. package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +1 -1
  58. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +1 -1
  59. package/dist/src/views/scheduling/country-rules/index.d.ts +5 -1
  60. package/dist/src/views/scheduling/locales/index.d.ts +6272 -0
  61. package/dist/src/views/scheduling/schedule-store.d.ts +3 -0
  62. package/dist/style.css +1 -1
  63. package/dist/tsconfig.app.tsbuildinfo +1 -1
  64. package/dist/{useAppStore-Bp0PwbAN.js → useAppStore-DZCdxlCd.js} +1 -1
  65. package/dist/{useLoading-sgL8DRUz.js → useLoading-Nygx2zn8.js} +1 -1
  66. package/dist/{useReportPermissions-DI-xg3OX.js → useReportPermissions-BcxIKxlF.js} +3 -3
  67. package/package.json +1 -1
  68. package/dist/AuditLogList-CTeMbyHL.js +0 -1778
  69. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BorKuXxL.js +0 -530
  70. package/dist/ScheduleGeneralPage-C1p2mivt.js +0 -780
  71. package/dist/SchedulePage-BP7x7JAl.js +0 -19485
  72. package/dist/SchedulePositionPage-BogOQZVW.js +0 -262
@@ -1,262 +0,0 @@
1
- import { defineComponent as M, ref as x, onMounted as A, computed as F, createElementBlock as i, openBlock as l, createElementVNode as o, createVNode as n, createStaticVNode as S, withCtx as d, unref as s, toDisplayString as c, createTextVNode as r, normalizeClass as h, createCommentVNode as z, withDirectives as E, withKeys as k, vModelText as P, Fragment as C, renderList as V, withModifiers as g } from "vue";
2
- import { useRouter as B } from "vue-router";
3
- import { useSnackbar as I } from "@feedmepos/ui-library";
4
- import { R as L, a as O } from "./app-CyS8c8dx.js";
5
- import { aw as R, ax as K, ag as T, as as u, at as U } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-CnKzVz3I.js";
6
- import { u as W, a as j, _ as q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BorKuXxL.js";
7
- const H = { class: "main" }, G = {
8
- id: "viewPositions",
9
- class: "view"
10
- }, J = { class: "sp-head" }, Q = { class: "outlet-bar" }, X = { class: "sp-body" }, Y = { class: "sp-content" }, Z = { class: "sp-panel" }, ee = { class: "cfg-head" }, se = { class: "cfg-count" }, te = { id: "skList" }, oe = {
11
- key: 0,
12
- class: "cfg-empty"
13
- }, ae = {
14
- key: 1,
15
- class: "cfg-list"
16
- }, ne = {
17
- key: 0,
18
- class: "cfg-row"
19
- }, ie = { class: "cfg-main" }, le = ["onClick"], de = { class: "cfg-main" }, re = { class: "cfg-name" }, ue = {
20
- key: 0,
21
- class: "cfg-confirm"
22
- }, ce = { class: "q" }, ve = /* @__PURE__ */ M({
23
- __name: "SchedulePositionPage",
24
- setup(fe) {
25
- const y = x(null);
26
- R(y);
27
- const w = B(), _ = I(), b = (m, e = "info") => _.open({ message: m, type: e }), t = W({ notify: b }), v = K(), f = j(void 0, { notify: b });
28
- A(async () => {
29
- await v.resolve() && await T(/* @__PURE__ */ new Date());
30
- });
31
- const $ = F(
32
- () => v.options.value.length ? v.options.value : [{ value: "", label: "No outlet selected", disabled: !0 }]
33
- );
34
- function D(m) {
35
- v.switchTo(m, /* @__PURE__ */ new Date());
36
- }
37
- function N() {
38
- w.push({ name: L.SCHEDULE });
39
- }
40
- return (m, e) => (l(), i("div", {
41
- ref_key: "rootEl",
42
- ref: y,
43
- class: "sch"
44
- }, [
45
- o("div", H, [
46
- o("div", G, [
47
- o("div", J, [
48
- n(u, {
49
- hierarchy: "ghost",
50
- size: "sm",
51
- class: "sp-back",
52
- type: "button",
53
- onClick: N
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] = S('<div class="sp-title-row" data-v-77f876af><div class="sp-title" data-v-77f876af>Position</div><span class="page-tags" data-v-77f876af><span class="sch-badge page-tag-premium" data-color="brand" data-v-77f876af>Premium</span><span class="sch-badge" data-color="info" data-v-77f876af>Free until 31 Dec 2026</span></span></div><div class="sp-sub" data-v-77f876af>What your employees can do — the same catalogue across every outlet.</div>', 2)),
76
- o("div", Q, [
77
- e[8] || (e[8] = o("span", { class: "outlet-bar-lbl" }, "Outlet", -1)),
78
- n(U, {
79
- class: "outlet-sel",
80
- "aria-label": "Outlet being configured",
81
- searchable: "",
82
- title: "Which outlet's roster the staff counts below are read from",
83
- "model-value": s(v).outletId.value,
84
- options: $.value,
85
- "onUpdate:modelValue": D
86
- }, null, 8, ["model-value", "options"])
87
- ])
88
- ]),
89
- o("div", X, [
90
- o("div", Y, [
91
- o("div", Z, [
92
- o("div", ee, [
93
- e[11] || (e[11] = o("div", { class: "cfg-title" }, "Configured positions", -1)),
94
- o("span", se, c(s(t).count.value), 1),
95
- e[12] || (e[12] = o("span", { class: "cfg-spacer" }, null, -1)),
96
- n(u, {
97
- hierarchy: "primary",
98
- size: "sm",
99
- class: "am-btn am-btn-primary",
100
- type: "button",
101
- onClick: e[0] || (e[0] = (a) => s(f).openNew())
102
- }, {
103
- default: d(() => [...e[10] || (e[10] = [
104
- r(" + Add position ", -1)
105
- ])]),
106
- _: 1
107
- })
108
- ]),
109
- o("div", {
110
- class: h(["ce-err", { show: s(t).error.value }])
111
- }, c(s(t).error.value), 3),
112
- o("div", te, [
113
- !s(t).positions.value.length && !s(t).isAdding.value ? (l(), i("div", oe, [...e[13] || (e[13] = [
114
- r(" No positions yet.", -1),
115
- o("br", null, null, -1),
116
- r(" Add one and it becomes assignable on every employee. ", -1)
117
- ])])) : (l(), i("div", ae, [
118
- s(t).isAdding.value ? (l(), i("div", ne, [
119
- o("div", ie, [
120
- E(o("input", {
121
- "onUpdate:modelValue": e[1] || (e[1] = (a) => s(t).newName.value = a),
122
- type: "text",
123
- class: "cfg-name-input",
124
- placeholder: "New position name",
125
- autofocus: "",
126
- onKeyup: [
127
- e[2] || (e[2] = k((a) => s(t).confirmAdd(), ["enter"])),
128
- e[3] || (e[3] = k((a) => s(t).cancelAdd(), ["esc"]))
129
- ]
130
- }, null, 544), [
131
- [P, s(t).newName.value]
132
- ])
133
- ]),
134
- n(u, {
135
- hierarchy: "secondary",
136
- size: "sm",
137
- class: "cfg-btn",
138
- type: "button",
139
- disabled: !s(t).newName.value.trim() || s(t).saving.value,
140
- onClick: e[4] || (e[4] = (a) => s(t).confirmAdd())
141
- }, {
142
- default: d(() => [
143
- r(c(s(t).saving.value ? "Adding…" : "Add"), 1)
144
- ]),
145
- _: 1
146
- }, 8, ["disabled"]),
147
- n(u, {
148
- hierarchy: "secondary",
149
- size: "sm",
150
- class: "cfg-btn",
151
- type: "button",
152
- disabled: s(t).saving.value,
153
- onClick: e[5] || (e[5] = (a) => s(t).cancelAdd())
154
- }, {
155
- default: d(() => [...e[14] || (e[14] = [
156
- r(" Cancel ", -1)
157
- ])]),
158
- _: 1
159
- }, 8, ["disabled"])
160
- ])) : z("", !0),
161
- (l(!0), i(C, null, V(s(t).positions.value, (a) => (l(), i("div", {
162
- key: a.id,
163
- class: h(["cfg-row", { "is-clickable": s(t).pendingDeleteId.value !== a.id }]),
164
- onClick: (p) => s(t).pendingDeleteId.value !== a.id && s(f).openEdit(a.id, a.name)
165
- }, [
166
- o("div", de, [
167
- o("div", re, c(a.name), 1)
168
- ]),
169
- s(t).pendingDeleteId.value === a.id ? (l(), i("div", ue, [
170
- o("span", ce, c(s(t).usageCountFor(a.id) ? `Remove from ${s(t).usageCountFor(a.id)} employee${s(t).usageCountFor(a.id) === 1 ? "" : "s"}?` : "Delete?"), 1),
171
- n(u, {
172
- hierarchy: "danger",
173
- size: "sm",
174
- class: "cfg-yes",
175
- type: "button",
176
- disabled: s(t).saving.value,
177
- onClick: g((p) => s(t).confirmDelete(a.id), ["stop"])
178
- }, {
179
- default: d(() => [
180
- r(c(s(t).saving.value ? "Deleting…" : "Delete"), 1)
181
- ]),
182
- _: 1
183
- }, 8, ["disabled", "onClick"]),
184
- n(u, {
185
- hierarchy: "secondary",
186
- size: "sm",
187
- class: "cfg-no",
188
- type: "button",
189
- disabled: s(t).saving.value,
190
- onClick: e[6] || (e[6] = g((p) => s(t).cancelDelete(), ["stop"]))
191
- }, {
192
- default: d(() => [...e[15] || (e[15] = [
193
- r(" Keep ", -1)
194
- ])]),
195
- _: 1
196
- }, 8, ["disabled"])
197
- ])) : (l(), i(C, { key: 1 }, [
198
- o("span", {
199
- class: h(["cfg-used", { none: !s(t).usageCountFor(a.id) }])
200
- }, c(s(t).usageCountFor(a.id) ? `${s(t).usageCountFor(a.id)} employee${s(t).usageCountFor(a.id) === 1 ? "" : "s"}` : "unused"), 3),
201
- n(u, {
202
- hierarchy: "secondary",
203
- size: "sm",
204
- class: "cfg-btn",
205
- type: "button",
206
- onClick: g((p) => s(f).openEdit(a.id, a.name), ["stop"])
207
- }, {
208
- default: d(() => [...e[16] || (e[16] = [
209
- r(" Edit ", -1)
210
- ])]),
211
- _: 1
212
- }, 8, ["onClick"]),
213
- n(u, {
214
- hierarchy: "ghost",
215
- size: "sm",
216
- "icon-only": "",
217
- class: "cfg-del",
218
- type: "button",
219
- "aria-label": `Delete ${a.name}`,
220
- onClick: g((p) => s(t).askDelete(a.id), ["stop"])
221
- }, {
222
- default: d(() => [...e[17] || (e[17] = [
223
- o("svg", {
224
- width: "14",
225
- height: "14",
226
- viewBox: "0 0 16 16",
227
- fill: "none",
228
- "aria-hidden": "true"
229
- }, [
230
- o("path", {
231
- 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",
232
- stroke: "currentColor",
233
- "stroke-width": "1.4",
234
- "stroke-linecap": "round",
235
- "stroke-linejoin": "round"
236
- }),
237
- o("path", {
238
- d: "M6.6 7v4M9.4 7v4",
239
- stroke: "currentColor",
240
- "stroke-width": "1.3",
241
- "stroke-linecap": "round"
242
- })
243
- ], -1)
244
- ])]),
245
- _: 1
246
- }, 8, ["aria-label", "onClick"])
247
- ], 64))
248
- ], 10, le))), 128))
249
- ]))
250
- ])
251
- ])
252
- ])
253
- ])
254
- ])
255
- ]),
256
- n(q, { modal: s(f) }, null, 8, ["modal"])
257
- ], 512));
258
- }
259
- }), ke = /* @__PURE__ */ O(ve, [["__scopeId", "data-v-77f876af"]]);
260
- export {
261
- ke as default
262
- };