@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,293 @@
1
+ import { defineComponent as $, ref as D, onMounted as N, createElementBlock as l, openBlock as d, createElementVNode as i, createVNode as o, withCtx as r, toDisplayString as v, unref as e, createTextVNode as u, normalizeClass as g, createCommentVNode as E, withDirectives as b, withKeys as m, vModelText as h, Fragment as p, renderList as z, withModifiers as f } from "vue";
2
+ import { useRouter as M } from "vue-router";
3
+ import { R as x } from "./app-BcZ6C8M8.js";
4
+ import { H as A, I as S, y as P, _ as c } from "./ScheduleButton.vue_vue_type_script_setup_true_lang-BzQuLLf5.js";
5
+ import { u as V, a as F, _ as B } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-T1ACkX_6.js";
6
+ import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
+ const K = { class: "main" }, L = {
8
+ id: "viewPositions",
9
+ class: "view"
10
+ }, R = { class: "sp-head" }, U = { class: "sp-body" }, j = { class: "sp-content" }, H = { class: "sp-panel" }, T = { class: "cfg-head" }, W = { class: "cfg-count" }, q = { id: "skList" }, O = {
11
+ key: 0,
12
+ class: "cfg-empty"
13
+ }, G = {
14
+ key: 1,
15
+ class: "cfg-list"
16
+ }, J = {
17
+ key: 0,
18
+ class: "cfg-row"
19
+ }, Q = { class: "cfg-main" }, X = {
20
+ key: 0,
21
+ class: "cfg-row"
22
+ }, Y = { class: "cfg-main" }, Z = ["onKeyup"], ee = ["onClick"], se = { class: "cfg-main" }, te = { class: "cfg-name" }, ie = {
23
+ key: 0,
24
+ class: "cfg-confirm"
25
+ }, ne = { class: "q" }, oe = /* @__PURE__ */ $({
26
+ __name: "SchedulePositionPage",
27
+ setup(ae) {
28
+ const y = D(null);
29
+ A(y);
30
+ const C = M(), s = V(), _ = S(), k = F();
31
+ N(async () => {
32
+ await _.resolve() && await P(/* @__PURE__ */ new Date());
33
+ });
34
+ function w() {
35
+ C.push({ name: x.SCHEDULE });
36
+ }
37
+ return (le, t) => (d(), l("div", {
38
+ ref_key: "rootEl",
39
+ ref: y,
40
+ class: "sch"
41
+ }, [
42
+ i("div", K, [
43
+ i("div", L, [
44
+ i("div", R, [
45
+ o(c, {
46
+ hierarchy: "ghost",
47
+ size: "sm",
48
+ class: "sp-back",
49
+ type: "button",
50
+ onClick: w
51
+ }, {
52
+ default: r(() => [...t[10] || (t[10] = [
53
+ i("svg", {
54
+ width: "12",
55
+ height: "12",
56
+ viewBox: "0 0 16 16",
57
+ fill: "none",
58
+ "aria-hidden": "true"
59
+ }, [
60
+ i("path", {
61
+ d: "M10 3.5L5.5 8l4.5 4.5",
62
+ stroke: "currentColor",
63
+ "stroke-width": "1.7",
64
+ "stroke-linecap": "round",
65
+ "stroke-linejoin": "round"
66
+ })
67
+ ], -1),
68
+ i("span", null, "Back to schedule", -1)
69
+ ])]),
70
+ _: 1
71
+ }),
72
+ t[11] || (t[11] = i("div", { class: "sp-title" }, "Position", -1)),
73
+ t[12] || (t[12] = i("div", { class: "sp-sub" }, "What your staff can do — the same catalogue across every outlet.", -1))
74
+ ]),
75
+ i("div", U, [
76
+ i("div", j, [
77
+ i("div", H, [
78
+ i("div", T, [
79
+ t[14] || (t[14] = i("div", { class: "cfg-title" }, "Configured positions", -1)),
80
+ i("span", W, v(e(s).count.value), 1),
81
+ t[15] || (t[15] = i("span", { class: "cfg-spacer" }, null, -1)),
82
+ o(c, {
83
+ hierarchy: "primary",
84
+ size: "sm",
85
+ class: "am-btn am-btn-primary",
86
+ type: "button",
87
+ onClick: t[0] || (t[0] = (n) => e(k).openNew())
88
+ }, {
89
+ default: r(() => [...t[13] || (t[13] = [
90
+ u(" + Add position ", -1)
91
+ ])]),
92
+ _: 1
93
+ })
94
+ ]),
95
+ i("div", {
96
+ class: g(["ce-err", { show: e(s).error.value }])
97
+ }, v(e(s).error.value), 3),
98
+ i("div", q, [
99
+ !e(s).positions.value.length && !e(s).isAdding.value ? (d(), l("div", O, [...t[16] || (t[16] = [
100
+ u(" No positions yet.", -1),
101
+ i("br", null, null, -1),
102
+ u(" Add one and it becomes assignable on every employee. ", -1)
103
+ ])])) : (d(), l("div", G, [
104
+ e(s).isAdding.value ? (d(), l("div", J, [
105
+ i("div", Q, [
106
+ b(i("input", {
107
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => e(s).newName.value = n),
108
+ type: "text",
109
+ class: "cfg-name-input",
110
+ placeholder: "New position name",
111
+ autofocus: "",
112
+ onKeyup: [
113
+ t[2] || (t[2] = m((n) => e(s).confirmAdd(), ["enter"])),
114
+ t[3] || (t[3] = m((n) => e(s).cancelAdd(), ["esc"]))
115
+ ]
116
+ }, null, 544), [
117
+ [h, e(s).newName.value]
118
+ ])
119
+ ]),
120
+ o(c, {
121
+ hierarchy: "secondary",
122
+ size: "sm",
123
+ class: "cfg-btn",
124
+ type: "button",
125
+ disabled: !e(s).newName.value.trim() || e(s).saving.value,
126
+ onClick: t[4] || (t[4] = (n) => e(s).confirmAdd())
127
+ }, {
128
+ default: r(() => [
129
+ u(v(e(s).saving.value ? "Adding…" : "Add"), 1)
130
+ ]),
131
+ _: 1
132
+ }, 8, ["disabled"]),
133
+ o(c, {
134
+ hierarchy: "secondary",
135
+ size: "sm",
136
+ class: "cfg-btn",
137
+ type: "button",
138
+ disabled: e(s).saving.value,
139
+ onClick: t[5] || (t[5] = (n) => e(s).cancelAdd())
140
+ }, {
141
+ default: r(() => [...t[17] || (t[17] = [
142
+ u(" Cancel ", -1)
143
+ ])]),
144
+ _: 1
145
+ }, 8, ["disabled"])
146
+ ])) : E("", !0),
147
+ (d(!0), l(p, null, z(e(s).positions.value, (n) => (d(), l(p, {
148
+ key: n.id
149
+ }, [
150
+ e(s).editingId.value === n.id ? (d(), l("div", X, [
151
+ i("div", Y, [
152
+ b(i("input", {
153
+ "onUpdate:modelValue": t[6] || (t[6] = (a) => e(s).editingName.value = a),
154
+ type: "text",
155
+ class: "cfg-name-input",
156
+ autofocus: "",
157
+ onKeyup: [
158
+ m((a) => e(s).saveEdit(n.id), ["enter"]),
159
+ t[7] || (t[7] = m((a) => e(s).cancelEdit(), ["esc"]))
160
+ ]
161
+ }, null, 40, Z), [
162
+ [h, e(s).editingName.value]
163
+ ])
164
+ ]),
165
+ o(c, {
166
+ hierarchy: "secondary",
167
+ size: "sm",
168
+ class: "cfg-btn",
169
+ type: "button",
170
+ disabled: !e(s).editingName.value.trim() || e(s).saving.value,
171
+ onClick: (a) => e(s).saveEdit(n.id)
172
+ }, {
173
+ default: r(() => [
174
+ u(v(e(s).saving.value ? "Saving…" : "Save"), 1)
175
+ ]),
176
+ _: 1
177
+ }, 8, ["disabled", "onClick"]),
178
+ o(c, {
179
+ hierarchy: "secondary",
180
+ size: "sm",
181
+ class: "cfg-btn",
182
+ type: "button",
183
+ disabled: e(s).saving.value,
184
+ onClick: t[8] || (t[8] = (a) => e(s).cancelEdit())
185
+ }, {
186
+ default: r(() => [...t[18] || (t[18] = [
187
+ u(" Cancel ", -1)
188
+ ])]),
189
+ _: 1
190
+ }, 8, ["disabled"])
191
+ ])) : (d(), l("div", {
192
+ key: 1,
193
+ class: g(["cfg-row", { "is-clickable": e(s).pendingDeleteId.value !== n.id }]),
194
+ onClick: (a) => e(s).pendingDeleteId.value !== n.id && e(s).startEdit(n.id)
195
+ }, [
196
+ i("div", se, [
197
+ i("div", te, v(n.name), 1)
198
+ ]),
199
+ e(s).pendingDeleteId.value === n.id ? (d(), l("div", ie, [
200
+ i("span", ne, v(e(s).usageCountFor(n.name) ? `Remove from ${e(s).usageCountFor(n.name)} staff?` : "Delete?"), 1),
201
+ o(c, {
202
+ hierarchy: "danger",
203
+ size: "sm",
204
+ class: "cfg-yes",
205
+ type: "button",
206
+ disabled: e(s).saving.value,
207
+ onClick: f((a) => e(s).confirmDelete(n.id), ["stop"])
208
+ }, {
209
+ default: r(() => [
210
+ u(v(e(s).saving.value ? "Deleting…" : "Delete"), 1)
211
+ ]),
212
+ _: 1
213
+ }, 8, ["disabled", "onClick"]),
214
+ o(c, {
215
+ hierarchy: "secondary",
216
+ size: "sm",
217
+ class: "cfg-no",
218
+ type: "button",
219
+ disabled: e(s).saving.value,
220
+ onClick: t[9] || (t[9] = f((a) => e(s).cancelDelete(), ["stop"]))
221
+ }, {
222
+ default: r(() => [...t[19] || (t[19] = [
223
+ u(" Keep ", -1)
224
+ ])]),
225
+ _: 1
226
+ }, 8, ["disabled"])
227
+ ])) : (d(), l(p, { key: 1 }, [
228
+ i("span", {
229
+ class: g(["cfg-used", { none: !e(s).usageCountFor(n.name) }])
230
+ }, v(e(s).usageCountFor(n.name) ? `${e(s).usageCountFor(n.name)} staff` : "unused"), 3),
231
+ o(c, {
232
+ hierarchy: "secondary",
233
+ size: "sm",
234
+ class: "cfg-btn",
235
+ type: "button",
236
+ onClick: f((a) => e(s).startEdit(n.id), ["stop"])
237
+ }, {
238
+ default: r(() => [...t[20] || (t[20] = [
239
+ u(" Edit ", -1)
240
+ ])]),
241
+ _: 1
242
+ }, 8, ["onClick"]),
243
+ o(c, {
244
+ hierarchy: "ghost",
245
+ size: "sm",
246
+ "icon-only": "",
247
+ class: "cfg-del",
248
+ type: "button",
249
+ "aria-label": `Delete ${n.name}`,
250
+ onClick: f((a) => e(s).askDelete(n.id), ["stop"])
251
+ }, {
252
+ default: r(() => [...t[21] || (t[21] = [
253
+ i("svg", {
254
+ width: "14",
255
+ height: "14",
256
+ viewBox: "0 0 16 16",
257
+ fill: "none",
258
+ "aria-hidden": "true"
259
+ }, [
260
+ i("path", {
261
+ 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",
262
+ stroke: "currentColor",
263
+ "stroke-width": "1.4",
264
+ "stroke-linecap": "round",
265
+ "stroke-linejoin": "round"
266
+ }),
267
+ i("path", {
268
+ d: "M6.6 7v4M9.4 7v4",
269
+ stroke: "currentColor",
270
+ "stroke-width": "1.3",
271
+ "stroke-linecap": "round"
272
+ })
273
+ ], -1)
274
+ ])]),
275
+ _: 1
276
+ }, 8, ["aria-label", "onClick"])
277
+ ], 64))
278
+ ], 10, ee))
279
+ ], 64))), 128))
280
+ ]))
281
+ ])
282
+ ])
283
+ ])
284
+ ])
285
+ ])
286
+ ]),
287
+ o(B, { modal: e(k) }, null, 8, ["modal"])
288
+ ], 512));
289
+ }
290
+ }), fe = /* @__PURE__ */ I(oe, [["__scopeId", "data-v-5285df68"]]);
291
+ export {
292
+ fe as default
293
+ };
@@ -0,0 +1,242 @@
1
+ import { defineComponent as Z, useAttrs as ee, computed as m, ref as h, watch as te, nextTick as z, onBeforeUnmount as ne, createElementBlock as a, openBlock as i, normalizeClass as D, createElementVNode as p, createBlock as oe, mergeProps as le, toDisplayString as v, Teleport as ie, createCommentVNode as g, withDirectives as ae, vModelText as se, Fragment as _, renderList as ue, createTextVNode as re } from "vue";
2
+ const ce = ["disabled", "aria-expanded"], de = { class: "sch" }, pe = ["aria-multiselectable"], fe = {
3
+ key: 0,
4
+ class: "fx-pop-head"
5
+ }, me = {
6
+ key: 1,
7
+ class: "fx-pop-search"
8
+ }, he = {
9
+ key: 2,
10
+ class: "fx-opt is-off"
11
+ }, ve = {
12
+ key: 0,
13
+ class: "fx-grp"
14
+ }, ye = ["aria-selected", "onClick"], be = {
15
+ key: 0,
16
+ class: "fx-opt-text"
17
+ }, ke = { key: 0 }, ge = /* @__PURE__ */ Z({
18
+ inheritAttrs: !1,
19
+ __name: "ScheduleSelect",
20
+ props: {
21
+ modelValue: {},
22
+ options: {},
23
+ multiple: { type: Boolean },
24
+ selected: {},
25
+ placeholder: {},
26
+ disabled: { type: Boolean },
27
+ menuTitle: {},
28
+ searchable: { type: Boolean }
29
+ },
30
+ emits: ["update:modelValue", "toggle"],
31
+ setup(d, { emit: P }) {
32
+ const o = d, E = P, U = ee(), I = m(() => U.class ?? ""), u = h(!1), $ = h(null), y = h(null), b = h(null), O = m(() => {
33
+ var e, n;
34
+ if (o.multiple) {
35
+ const t = ((e = o.selected) == null ? void 0 : e.length) ?? 0;
36
+ return t ? `${t} selected` : o.placeholder ?? "";
37
+ }
38
+ return ((n = o.options.find((t) => t.value === o.modelValue)) == null ? void 0 : n.label) ?? "";
39
+ });
40
+ function B(e) {
41
+ var n;
42
+ return o.multiple ? !!((n = o.selected) != null && n.includes(e.value)) : e.value === o.modelValue;
43
+ }
44
+ const L = m(() => !!o.menuTitle || o.options.some((e) => e.hint)), f = h(""), H = h(null), S = m(() => {
45
+ const e = f.value.trim().toLowerCase();
46
+ return !o.searchable || !e ? o.options : o.options.filter((n) => `${n.label} ${n.hint ?? ""}`.toLowerCase().includes(e));
47
+ }), T = m(() => {
48
+ const e = [];
49
+ let n;
50
+ for (const t of S.value)
51
+ t.group !== n && (n = t.group, n && e.push({ heading: n })), e.push({ option: t });
52
+ return e;
53
+ }), k = 5, r = 8;
54
+ function M() {
55
+ const e = b.value, n = y.value;
56
+ if (!e || !n) return;
57
+ const t = n.getBoundingClientRect(), l = window.innerWidth || document.documentElement.clientWidth, s = window.innerHeight || document.documentElement.clientHeight;
58
+ e.style.minWidth = `${Math.round(t.width)}px`, e.style.maxWidth = `${Math.max(180, Math.round(l - r * 2))}px`;
59
+ const x = s - t.bottom - k - r, Q = t.top - k - r;
60
+ e.style.maxHeight = `${Math.max(120, Math.min(320, Math.max(x, Q)))}px`;
61
+ const w = e.offsetHeight, X = e.offsetWidth;
62
+ let C = t.bottom + k;
63
+ C + w > s - r && (C = t.top - k - w >= r ? t.top - k - w : Math.max(r, s - w - r));
64
+ const Y = Math.min(Math.max(r, t.left), Math.max(r, l - X - r));
65
+ e.style.top = `${Math.round(C)}px`, e.style.left = `${Math.round(Y)}px`, e.style.visibility = "visible";
66
+ }
67
+ function A(e) {
68
+ var t, l;
69
+ const n = e.target;
70
+ n && ((t = $.value) != null && t.contains(n) || (l = b.value) != null && l.contains(n)) || c();
71
+ }
72
+ function W(e) {
73
+ const n = b.value, t = e.target;
74
+ if (n && t && t !== document && n.contains(t)) return;
75
+ const l = y.value;
76
+ if (!l) return;
77
+ const s = l.getBoundingClientRect(), x = window.innerHeight || document.documentElement.clientHeight;
78
+ if (s.bottom < 0 || s.top > x) {
79
+ c();
80
+ return;
81
+ }
82
+ M();
83
+ }
84
+ function R() {
85
+ document.addEventListener("click", A), document.addEventListener("scroll", W, !0), window.addEventListener("resize", c);
86
+ }
87
+ function q() {
88
+ document.removeEventListener("click", A), document.removeEventListener("scroll", W, !0), window.removeEventListener("resize", c);
89
+ }
90
+ async function V() {
91
+ var e, n, t;
92
+ o.disabled || u.value || (f.value = "", u.value = !0, await z(), M(), (e = H.value) == null || e.focus(), (t = (n = b.value) == null ? void 0 : n.querySelector(".fx-opt.is-on")) == null || t.scrollIntoView({ block: "nearest" }), R());
93
+ }
94
+ function c() {
95
+ u.value && (u.value = !1, f.value = "", q());
96
+ }
97
+ te(f, async () => {
98
+ u.value && (await z(), M());
99
+ });
100
+ function j(e) {
101
+ var n;
102
+ if (e.key === "Escape")
103
+ e.preventDefault(), c(), (n = y.value) == null || n.focus();
104
+ else if (e.key === "Enter") {
105
+ e.preventDefault();
106
+ const t = S.value.find((l) => !l.disabled);
107
+ t && N(t);
108
+ }
109
+ }
110
+ function K() {
111
+ u.value ? c() : V();
112
+ }
113
+ function N(e) {
114
+ if (!e.disabled) {
115
+ if (o.multiple && !e.command) {
116
+ E("toggle", e.value);
117
+ return;
118
+ }
119
+ if (c(), o.multiple) {
120
+ E("update:modelValue", e.value);
121
+ return;
122
+ }
123
+ e.value !== o.modelValue && E("update:modelValue", e.value);
124
+ }
125
+ }
126
+ const F = m(() => o.options.filter((e) => !e.disabled));
127
+ function G(e) {
128
+ const n = F.value;
129
+ if (o.multiple || !n.length) {
130
+ V();
131
+ return;
132
+ }
133
+ const t = n.findIndex((x) => x.value === o.modelValue), l = e === "Home" ? 0 : e === "End" ? n.length - 1 : e === "ArrowDown" ? Math.min(n.length - 1, (t < 0 ? -1 : t) + 1) : Math.max(0, (t < 0 ? 1 : t) - 1), s = n[l];
134
+ s && s.value !== o.modelValue ? E("update:modelValue", s.value) : V();
135
+ }
136
+ function J(e) {
137
+ var n;
138
+ if (e.key === "Escape") {
139
+ if (!u.value) return;
140
+ e.preventDefault(), c(), (n = y.value) == null || n.focus();
141
+ return;
142
+ }
143
+ if (e.key === "Enter" || e.key === " ") {
144
+ e.preventDefault(), K();
145
+ return;
146
+ }
147
+ e.key !== "ArrowDown" && e.key !== "ArrowUp" && e.key !== "Home" && e.key !== "End" || (e.preventDefault(), G(e.key));
148
+ }
149
+ return ne(q), (e, n) => (i(), a("div", {
150
+ ref_key: "rootEl",
151
+ ref: $,
152
+ class: D(["fx-sel", I.value])
153
+ }, [
154
+ p("button", le({
155
+ ref_key: "btnEl",
156
+ ref: y
157
+ }, e.$attrs, {
158
+ type: "button",
159
+ class: ["sch-input fx-btn", { "is-open": u.value }],
160
+ disabled: d.disabled,
161
+ "aria-haspopup": "listbox",
162
+ "aria-expanded": u.value,
163
+ onClick: n[0] || (n[0] = (t) => K()),
164
+ onKeydown: J
165
+ }), v(O.value), 17, ce),
166
+ (i(), oe(ie, { to: "body" }, [
167
+ p("div", de, [
168
+ u.value ? (i(), a("div", {
169
+ key: 0,
170
+ ref_key: "popEl",
171
+ ref: b,
172
+ class: D(["fx-pop", { "fx-pop-rich": L.value }]),
173
+ role: "listbox",
174
+ "aria-multiselectable": d.multiple || void 0,
175
+ style: { visibility: "hidden" }
176
+ }, [
177
+ d.menuTitle ? (i(), a("div", fe, v(d.menuTitle), 1)) : g("", !0),
178
+ d.searchable ? (i(), a("div", me, [
179
+ ae(p("input", {
180
+ ref_key: "searchEl",
181
+ ref: H,
182
+ "onUpdate:modelValue": n[1] || (n[1] = (t) => f.value = t),
183
+ class: "sch-input fx-pop-q",
184
+ type: "search",
185
+ placeholder: "Search",
186
+ autocomplete: "off",
187
+ spellcheck: "false",
188
+ "aria-label": "Search",
189
+ onKeydown: j
190
+ }, null, 544), [
191
+ [se, f.value]
192
+ ])
193
+ ])) : g("", !0),
194
+ d.searchable && !T.value.length ? (i(), a("div", he, "No matches")) : g("", !0),
195
+ (i(!0), a(_, null, ue(T.value, (t, l) => (i(), a(_, { key: l }, [
196
+ "heading" in t ? (i(), a("div", ve, v(t.heading), 1)) : (i(), a("div", {
197
+ key: 1,
198
+ class: D(["fx-opt", {
199
+ "is-on": B(t.option),
200
+ "is-off": t.option.disabled,
201
+ "is-new": t.option.command
202
+ }]),
203
+ role: "option",
204
+ "aria-selected": B(t.option),
205
+ onClick: (s) => N(t.option)
206
+ }, [
207
+ n[2] || (n[2] = p("span", {
208
+ class: "fx-tick",
209
+ "aria-hidden": "true"
210
+ }, [
211
+ p("svg", {
212
+ width: "11",
213
+ height: "11",
214
+ viewBox: "0 0 16 16",
215
+ fill: "none"
216
+ }, [
217
+ p("path", {
218
+ d: "m3.5 8.4 3 3 6-7",
219
+ stroke: "currentColor",
220
+ "stroke-width": "2.2",
221
+ "stroke-linecap": "round",
222
+ "stroke-linejoin": "round"
223
+ })
224
+ ])
225
+ ], -1)),
226
+ L.value ? (i(), a("span", be, [
227
+ p("b", null, v(t.option.label), 1),
228
+ t.option.hint ? (i(), a("small", ke, v(t.option.hint), 1)) : g("", !0)
229
+ ])) : (i(), a(_, { key: 1 }, [
230
+ re(v(t.option.label), 1)
231
+ ], 64))
232
+ ], 10, ye))
233
+ ], 64))), 128))
234
+ ], 10, pe)) : g("", !0)
235
+ ])
236
+ ]))
237
+ ], 2));
238
+ }
239
+ });
240
+ export {
241
+ ge as _
242
+ };
@@ -3,22 +3,21 @@ import { useI18n as Ve, useCoreStore as Ze } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Le, useDialog as Qe, useBreakpoints as Ye, components as Oe } from "@feedmepos/ui-library";
4
4
  import { u as ps } from "./useDebounce-B8ZPVS5C.js";
5
5
  import { S as ye } from "./SelectFilter-CG13h83-.js";
6
- import { v as Te, m as vs, O as fs, _ as bs, a as hs } from "./app-BpnOPodL.js";
6
+ import { v as Te, m as vs, O as fs, _ as bs, a as hs } from "./app-BcZ6C8M8.js";
7
7
  import { u as ys, _ as gs } from "./useDiscardConfirm-DPhEV6v0.js";
8
8
  import { _ as _s } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
9
  import { s as Us, _ as Ss, a as xs, b as Fs, c as Ps } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js";
10
10
  import { u as He } from "./useLoading-CXzTpIVv.js";
11
11
  import { n as es } from "./string-VNuQNweN.js";
12
- import { l as Pe } from "./lodash-CcFIMCiJ.js";
13
- import "./index-DYoVJQTd.js";
14
- import { t as _e, u as ss, c as Ae, b as qe, m as $e, d as ts, p as Ge, i as Is, j as Ke, k as ws, l as Vs, n as ks, o as Rs, q as Cs } from "./rule-8iyCO_LZ.js";
15
- import { u as as } from "./role-OXCiWTVq.js";
12
+ import { l as Pe } from "./lodash-DErxm7xf.js";
13
+ import { c as he } from "./iteration-D1uWLp0V.js";
14
+ import { t as _e, u as ss, c as Ae, b as qe, m as $e, d as ts, p as Ge, i as Is, j as Ke, k as ws, l as Vs, n as ks, o as Rs, q as Cs } from "./rule-C4f_Ilzr.js";
15
+ import { u as as } from "./role-B9VanAny.js";
16
16
  import { u as ls, i as $s } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js";
17
17
  import "./useAppStore-DCwd8GWN.js";
18
18
  import { g as ze, b as We, u as os } from "./restaurant-BTpBmfBV.js";
19
- import { _ as Ms } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-cFQDQCal.js";
19
+ import { _ as Ms } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-niywl_DX.js";
20
20
  import { _ as Ns } from "./_plugin-vue_export-helper-CHgC5LLL.js";
21
- import { c as he } from "./iteration-CcXrOMQe.js";
22
21
  var Ue = /* @__PURE__ */ ((o) => (o.Update = "Update", o.Remove = "Remove", o))(Ue || {});
23
22
  const Ie = "__unassigned__";
24
23
  function Je(o) {
@@ -685,7 +684,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
685
684
  var ee = /* @__PURE__ */ function(o) {
686
685
  return o[o.ADD = 0] = "ADD", o[o.UPDATE = 1] = "UPDATE", o[o.CLOSED = 2] = "CLOSED", o;
687
686
  }(ee || {});
688
- const ea = /* @__PURE__ */ we({
687
+ const Ht = /* @__PURE__ */ we({
689
688
  __name: "TeamMemberList",
690
689
  setup(o, {
691
690
  expose: N
@@ -1151,5 +1150,5 @@ const ea = /* @__PURE__ */ we({
1151
1150
  }
1152
1151
  });
1153
1152
  export {
1154
- ea as default
1153
+ Ht as default
1155
1154
  };
@@ -1,17 +1,17 @@
1
1
  import { ref as d, computed as g, defineComponent as pe, onMounted as fe, watch as Z, resolveComponent as u, createElementBlock as P, openBlock as E, Fragment as ee, createVNode as l, createElementVNode as i, unref as r, withCtx as b, createCommentVNode as ve, toDisplayString as O, createTextVNode as he, isRef as ge, renderList as we, createBlock as te, nextTick as ye } from "vue";
2
- import { d as v } from "./dayjs.min-4GLfSOGZ.js";
2
+ import { d as v } from "./dayjs.min-Ch0iysTG.js";
3
3
  import { useI18n as _e } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as be, components as xe } from "@feedmepos/ui-library";
5
5
  import { S as De } from "./SelectFilter-CG13h83-.js";
6
- import { _ as Se } from "./app-BpnOPodL.js";
6
+ import { _ as Se } from "./app-BcZ6C8M8.js";
7
7
  import { _ as Ve } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
8
8
  import { u as ke } from "./useLoading-CXzTpIVv.js";
9
- import { g as Ce, s as Fe } from "./iteration-CcXrOMQe.js";
9
+ import { g as Ce, s as Fe } from "./iteration-D1uWLp0V.js";
10
10
  import { f as Ye } from "./utils-BZkjJbju.js";
11
11
  import { n as Le } from "./string-VNuQNweN.js";
12
- import { u as Me } from "./employee-ChdVnSmd.js";
12
+ import { u as Me } from "./employee-DwYHFacQ.js";
13
13
  import { u as Te } from "./restaurant-BTpBmfBV.js";
14
- import { u as Ie } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DZUJR8K_.js";
14
+ import { u as Ie } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RyhiKTSd.js";
15
15
  import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
16
  function $e(x, a) {
17
17
  return ["years", "months"].find((S) => {
@@ -1,8 +1,8 @@
1
- import { d as i } from "./dayjs.min-4GLfSOGZ.js";
1
+ import { d as i } from "./dayjs.min-Ch0iysTG.js";
2
2
  import { defineStore as p, storeToRefs as T } from "pinia";
3
3
  import { ref as l } from "vue";
4
4
  import { b as c, g as y } from "./restaurant-BTpBmfBV.js";
5
- import { s as S } from "./iteration-CcXrOMQe.js";
5
+ import { s as S } from "./iteration-D1uWLp0V.js";
6
6
  import { i as f, f as g } from "./utils-BZkjJbju.js";
7
7
  const u = {
8
8
  async readTimesheets(t, e) {
@@ -9641,16 +9641,16 @@ const _e = (e) => ({
9641
9641
  }
9642
9642
  ]
9643
9643
  }
9644
- }), jc = ot(pe(() => import("./Main-CbmA-SYo.js"))), Ec = ot(pe(() => import("./Main-MjSYZdOq.js"))), Pc = ot(
9645
- pe(() => import("./AuditLogList-BqVp9fxD.js"))
9646
- ), Oc = ot(pe(() => import("./Main-DVA51sj2.js"))), Gc = pe(() => import("./ApprovalCodeList-dn-WwNAd.js")), Yc = pe(() => import("./GrantUserList-CZek1r4F.js")), Vc = pe(() => import("./EmployeeList-BwTJre5k.js")), Fc = pe(() => import("./RoleList-BSs0SmFo.js")), Sc = pe(() => import("./TimesheetList-B-FlRO7E.js")), Rc = pe(() => import("./TeamMemberList-Dit_nV6d.js")), Hc = pe(
9647
- () => import("./PermissionSetList-lkHmXhNm.js")
9644
+ }), jc = ot(pe(() => import("./Main-DkP8dWgn.js"))), Ec = ot(pe(() => import("./Main-DHJcgePj.js"))), Pc = ot(
9645
+ pe(() => import("./AuditLogList-ByTa5UJY.js"))
9646
+ ), Oc = ot(pe(() => import("./Main-DqiGpT4v.js"))), Gc = pe(() => import("./ApprovalCodeList-D5l9vIsE.js")), Yc = pe(() => import("./GrantUserList-Bt8w3p4j.js")), Vc = pe(() => import("./EmployeeList-Bv6ANk-P.js")), Fc = pe(() => import("./RoleList-CH6NDKPU.js")), Sc = pe(() => import("./TimesheetList-DcoqzbLO.js")), Rc = pe(() => import("./TeamMemberList-BwfG3go2.js")), Hc = pe(
9647
+ () => import("./PermissionSetList-BIGv1u67.js")
9648
9648
  ), Ic = Ws(
9649
- ot(pe(() => import("./SchedulePage-B0X97zVC.js")))
9649
+ ot(pe(() => import("./SchedulePage-C1egcbIC.js")))
9650
9650
  ), qc = Ws(
9651
- ot(pe(() => import("./SchedulePositionPage-BXz1USn3.js")))
9651
+ ot(pe(() => import("./SchedulePositionPage-OhL_hsqG.js")))
9652
9652
  ), kc = Ws(
9653
- ot(pe(() => import("./ScheduleGeneralPage-DD9n2TUe.js")))
9653
+ ot(pe(() => import("./ScheduleGeneralPage-DJPENJZ2.js")))
9654
9654
  ), ou = [
9655
9655
  {
9656
9656
  path: "/",
@@ -10696,7 +10696,7 @@ const iu = /* @__PURE__ */ at({
10696
10696
  };
10697
10697
  }
10698
10698
  });
10699
- var xs = { name: "@feedmepos/mf-hrm-portal", version: "2.2.5-dev.7", mode: "fmmf" };
10699
+ var xs = { name: "@feedmepos/mf-hrm-portal", version: "2.2.5-dev.9", mode: "fmmf" };
10700
10700
  console.log(
10701
10701
  `%c${xs.name}%c v${xs.version} %c${xs.mode}`,
10702
10702
  "background:#1f1f1f;color:#fff;padding:2px 6px;border-radius:3px 0 0 3px",
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as e, i as r, r as o } from "./app-BpnOPodL.js";
1
+ import { h as e, i as r, r as o } from "./app-BcZ6C8M8.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as Q, f as K } from "./app-BpnOPodL.js";
1
+ import { g as Q, f as K } from "./app-BcZ6C8M8.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {