@feedmepos/mf-hrm-portal 2.3.0-dev.9 → 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 (130) hide show
  1. package/dist/{ApprovalCodeList-BDpxEJpC.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-BBK2gl7r.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BjHwyaXu.js} +2 -2
  4. package/dist/{EmployeeList-C8cbVcmY.js → EmployeeList-BqzXg3uA.js} +255 -266
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js → FormItem.vue_vue_type_script_setup_true_lang-Clh43Y-8.js} +6 -6
  6. package/dist/{GrantUserList-zul0_Dlm.js → GrantUserList-Cw8RkFqf.js} +8 -8
  7. package/dist/{Main-Cjo4FMZZ.js → Main-BxcRbcce.js} +5 -5
  8. package/dist/{Main-5TsFTFpc.js → Main-CL-ysWRu.js} +8 -8
  9. package/dist/{Main-DSr9KbjT.js → Main-Dlar77Zq.js} +11 -11
  10. package/dist/{PermissionSetList-CDhiiu37.js → PermissionSetList-_8aBzGy7.js} +19 -18
  11. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DoK944l0.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CNgtAtYH.js} +896 -896
  12. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js} +1 -1
  13. package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
  14. package/dist/{RoleList-DEbOPQD_.js → RoleList-C3n_zOB3.js} +21 -20
  15. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CnrbCggg.js +544 -0
  16. package/dist/ScheduleGeneralPage-DGHKW_ww.js +811 -0
  17. package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-AfTAGsh1.js +2556 -0
  18. package/dist/SchedulePage-UzDPRldO.js +19458 -0
  19. package/dist/SchedulePositionPage-RHETW36P.js +282 -0
  20. package/dist/{SelectFilter-CG13h83-.js → SelectFilter-CeBV_Kug.js} +1 -1
  21. package/dist/{TeamMemberList-DpCGqHCk.js → TeamMemberList-B-qR7VS3.js} +27 -27
  22. package/dist/{TimesheetList-B7HAC5zS.js → TimesheetList-BqRIZBt1.js} +52 -53
  23. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BGD6m5M-.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-oIBUAjtv.js} +3 -3
  24. package/dist/{app-Lh0cqgHy.js → app-DFL6Nv_p.js} +10822 -3893
  25. package/dist/app.js +1 -1
  26. package/dist/{approval-code-DHsUgc4K.js → approval-code-BXUiojPH.js} +1 -1
  27. package/dist/{dayjs.min-joq4stsa.js → dayjs.min-CH-gVmsz.js} +1 -1
  28. package/dist/{employee-BPmp9c6i.js → employee-3xpIjR6i.js} +51 -47
  29. package/dist/{grant-user-qzKHFTro.js → grant-user-CBJ3gEgW.js} +1 -1
  30. package/dist/{iteration-jvdTHQUx.js → iteration-D6wutq5U.js} +1 -1
  31. package/dist/{lodash-CIAEpr9s.js → lodash-D5kU1nPN.js} +1 -1
  32. package/dist/object-Dwyg2LgX.js +16 -0
  33. package/dist/{restaurant-BbYRA_IT.js → restaurant-D2mfKHaH.js} +44 -45
  34. package/dist/{role-Dd1TUMhn.js → role-B7nu6hH1.js} +2 -2
  35. package/dist/{rule-DmxI7qEY.js → rule-CMd6SL3n.js} +3 -3
  36. package/dist/src/api/audit-log/index.d.ts +4 -0
  37. package/dist/src/api/employee/index.d.ts +2 -2
  38. package/dist/src/api/schedule/index.d.ts +11 -1
  39. package/dist/src/components/layout/SchedulePromoBanner.vue.d.ts +2 -0
  40. package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
  41. package/dist/src/stores/employee.d.ts +12 -12
  42. package/dist/src/types/schedule.d.ts +1 -1
  43. package/dist/src/views/audit-log/constants.d.ts +9 -30
  44. package/dist/src/views/audit-log/locales/index.d.ts +488 -0
  45. package/dist/src/views/audit-log/pos-row.d.ts +27 -0
  46. package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +6 -2
  47. package/dist/src/views/scheduling/components/ScheduleAutoScheduleDoneArt.vue.d.ts +2 -0
  48. package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +2 -0
  49. package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +5 -0
  50. package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +2 -0
  51. package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +1 -0
  52. package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +0 -1
  53. package/dist/src/views/scheduling/components/ScheduleCompletionDialog.vue.d.ts +1 -1
  54. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +4 -3
  55. package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +5 -0
  56. package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +0 -1
  57. package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +6 -0
  58. package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +1 -1
  59. package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +7 -5
  60. package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +2 -0
  61. package/dist/src/views/scheduling/composables/onboarding-types.d.ts +2 -1
  62. package/dist/src/views/scheduling/composables/remyPrompt.d.ts +4 -2
  63. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +1 -1
  64. package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +4 -0
  65. package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +10 -0
  66. package/dist/src/views/scheduling/composables/schedule-cost.d.ts +5 -0
  67. package/dist/src/views/scheduling/composables/schedule-currency.d.ts +22 -0
  68. package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +1 -3
  69. package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +13 -1
  70. package/dist/src/views/scheduling/composables/schedule-error.d.ts +1 -0
  71. package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +1 -1
  72. package/dist/src/views/scheduling/composables/schedule-leave-split.d.ts +9 -0
  73. package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +23 -0
  74. package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +3 -0
  75. package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +3 -1
  76. package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +1 -0
  77. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +30 -7
  78. package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +5 -11
  79. package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +0 -1
  80. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +22 -13
  81. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +58 -7
  82. package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +3 -10
  83. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +13 -1
  84. package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -1
  85. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +16 -2
  86. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +9 -2
  87. package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +1 -0
  88. package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +14 -6
  89. package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +2 -2
  90. package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +26 -4
  91. package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +1 -1
  92. package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +3 -0
  93. package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +0 -2
  94. package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +1 -0
  95. package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +13 -12
  96. package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +1 -1
  97. package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +28 -2
  98. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +210 -14
  99. package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +11 -8
  100. package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +1 -1
  101. package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +3 -1
  102. package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +13 -0
  103. package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +6 -0
  104. package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +2 -1
  105. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +46 -0
  106. package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +1 -1
  107. package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +2 -2
  108. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +29 -1
  109. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +33 -4
  110. package/dist/src/views/scheduling/country-rules/index.d.ts +13 -4
  111. package/dist/src/views/scheduling/data.d.ts +17 -0
  112. package/dist/src/views/scheduling/locales/index.d.ts +6300 -0
  113. package/dist/src/views/scheduling/schedule-state.d.ts +236 -236
  114. package/dist/src/views/scheduling/schedule-store.d.ts +29 -7
  115. package/dist/src/views/scheduling/types.d.ts +8 -0
  116. package/dist/style.css +1 -1
  117. package/dist/tsconfig.app.tsbuildinfo +1 -1
  118. package/dist/{useAppStore-BoLkvkE2.js → useAppStore-DZCdxlCd.js} +1 -1
  119. package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
  120. package/dist/{useLoading-Ch1AUYT1.js → useLoading-Nygx2zn8.js} +1 -1
  121. package/dist/{useReportPermissions-DM3GOFCC.js → useReportPermissions-BcxIKxlF.js} +3 -3
  122. package/package.json +2 -2
  123. package/dist/AuditLogList-Dgwj1gz8.js +0 -1779
  124. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cx9jFgBS.js +0 -492
  125. package/dist/ScheduleGeneralPage-B8PWNsc2.js +0 -776
  126. package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-V1sZ_xhO.js +0 -2253
  127. package/dist/SchedulePage-ndLByVBl.js +0 -17785
  128. package/dist/SchedulePositionPage-Cuv4ydOK.js +0 -264
  129. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  130. package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
@@ -1,264 +0,0 @@
1
- import { defineComponent as M, ref as A, onMounted as x, computed as z, 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 h, createCommentVNode as E, withDirectives as S, withKeys as b, vModelText as P, Fragment as C, renderList as V, withModifiers as g } from "vue";
2
- import { useRouter as F } from "vue-router";
3
- import { useSnackbar as B } from "@feedmepos/ui-library";
4
- import { R as I } from "./app-Lh0cqgHy.js";
5
- import { as as L, at as O, aa as R, ao as u, ap as K } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-V1sZ_xhO.js";
6
- import { u as T, a as U, _ as W } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cx9jFgBS.js";
7
- import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const q = { class: "main" }, H = {
9
- id: "viewPositions",
10
- class: "view"
11
- }, G = { class: "sp-head" }, J = { class: "outlet-bar" }, Q = { class: "sp-body" }, X = { class: "sp-content" }, Y = { class: "sp-panel" }, Z = { class: "cfg-head" }, ee = { class: "cfg-count" }, se = { id: "skList" }, te = {
12
- key: 0,
13
- class: "cfg-empty"
14
- }, oe = {
15
- key: 1,
16
- class: "cfg-list"
17
- }, ne = {
18
- key: 0,
19
- class: "cfg-row"
20
- }, ie = { class: "cfg-main" }, le = ["onClick"], ae = { class: "cfg-main" }, de = { class: "cfg-name" }, re = {
21
- key: 0,
22
- class: "cfg-confirm"
23
- }, ue = { class: "q" }, ce = /* @__PURE__ */ M({
24
- __name: "SchedulePositionPage",
25
- setup(ve) {
26
- const y = A(null);
27
- L(y);
28
- const _ = F(), w = B(), k = (f, e = "info") => w.open({ message: f, type: e }), t = T({ notify: k }), v = O(), m = U(void 0, { notify: k });
29
- x(async () => {
30
- await v.resolve() && await R(/* @__PURE__ */ new Date());
31
- });
32
- const $ = z(
33
- () => v.options.value.length ? v.options.value : [{ value: "", label: "No outlet selected", disabled: !0 }]
34
- );
35
- function D(f) {
36
- v.switchTo(f, /* @__PURE__ */ new Date());
37
- }
38
- function N() {
39
- _.push({ name: I.SCHEDULE });
40
- }
41
- return (f, e) => (a(), l("div", {
42
- ref_key: "rootEl",
43
- ref: y,
44
- class: "sch"
45
- }, [
46
- o("div", q, [
47
- o("div", H, [
48
- o("div", G, [
49
- i(u, {
50
- hierarchy: "ghost",
51
- size: "sm",
52
- class: "sp-back",
53
- type: "button",
54
- onClick: N
55
- }, {
56
- default: d(() => [...e[7] || (e[7] = [
57
- o("svg", {
58
- width: "12",
59
- height: "12",
60
- viewBox: "0 0 16 16",
61
- fill: "none",
62
- "aria-hidden": "true"
63
- }, [
64
- o("path", {
65
- d: "M10 3.5L5.5 8l4.5 4.5",
66
- stroke: "currentColor",
67
- "stroke-width": "1.7",
68
- "stroke-linecap": "round",
69
- "stroke-linejoin": "round"
70
- })
71
- ], -1),
72
- o("span", null, "Back to schedule", -1)
73
- ])]),
74
- _: 1
75
- }),
76
- e[9] || (e[9] = o("div", { class: "sp-title" }, "Position", -1)),
77
- e[10] || (e[10] = o("div", { class: "sp-sub" }, "What your staff can do — the same catalogue across every outlet.", -1)),
78
- o("div", J, [
79
- e[8] || (e[8] = o("span", { class: "outlet-bar-lbl" }, "Outlet", -1)),
80
- i(K, {
81
- class: "outlet-sel",
82
- "aria-label": "Outlet being configured",
83
- searchable: "",
84
- title: "Which outlet's roster the staff counts below are read from",
85
- "model-value": s(v).outletId.value,
86
- options: $.value,
87
- "onUpdate:modelValue": D
88
- }, null, 8, ["model-value", "options"])
89
- ])
90
- ]),
91
- o("div", Q, [
92
- o("div", X, [
93
- o("div", Y, [
94
- o("div", Z, [
95
- e[12] || (e[12] = o("div", { class: "cfg-title" }, "Configured positions", -1)),
96
- o("span", ee, c(s(t).count.value), 1),
97
- e[13] || (e[13] = o("span", { class: "cfg-spacer" }, null, -1)),
98
- i(u, {
99
- hierarchy: "primary",
100
- size: "sm",
101
- class: "am-btn am-btn-primary",
102
- type: "button",
103
- onClick: e[0] || (e[0] = (n) => s(m).openNew())
104
- }, {
105
- default: d(() => [...e[11] || (e[11] = [
106
- r(" + Add position ", -1)
107
- ])]),
108
- _: 1
109
- })
110
- ]),
111
- o("div", {
112
- class: h(["ce-err", { show: s(t).error.value }])
113
- }, c(s(t).error.value), 3),
114
- o("div", se, [
115
- !s(t).positions.value.length && !s(t).isAdding.value ? (a(), l("div", te, [...e[14] || (e[14] = [
116
- r(" No positions yet.", -1),
117
- o("br", null, null, -1),
118
- r(" Add one and it becomes assignable on every employee. ", -1)
119
- ])])) : (a(), l("div", oe, [
120
- s(t).isAdding.value ? (a(), l("div", ne, [
121
- o("div", ie, [
122
- S(o("input", {
123
- "onUpdate:modelValue": e[1] || (e[1] = (n) => s(t).newName.value = n),
124
- type: "text",
125
- class: "cfg-name-input",
126
- placeholder: "New position name",
127
- autofocus: "",
128
- onKeyup: [
129
- e[2] || (e[2] = b((n) => s(t).confirmAdd(), ["enter"])),
130
- e[3] || (e[3] = b((n) => s(t).cancelAdd(), ["esc"]))
131
- ]
132
- }, null, 544), [
133
- [P, s(t).newName.value]
134
- ])
135
- ]),
136
- i(u, {
137
- hierarchy: "secondary",
138
- size: "sm",
139
- class: "cfg-btn",
140
- type: "button",
141
- disabled: !s(t).newName.value.trim() || s(t).saving.value,
142
- onClick: e[4] || (e[4] = (n) => s(t).confirmAdd())
143
- }, {
144
- default: d(() => [
145
- r(c(s(t).saving.value ? "Adding…" : "Add"), 1)
146
- ]),
147
- _: 1
148
- }, 8, ["disabled"]),
149
- i(u, {
150
- hierarchy: "secondary",
151
- size: "sm",
152
- class: "cfg-btn",
153
- type: "button",
154
- disabled: s(t).saving.value,
155
- onClick: e[5] || (e[5] = (n) => s(t).cancelAdd())
156
- }, {
157
- default: d(() => [...e[15] || (e[15] = [
158
- r(" Cancel ", -1)
159
- ])]),
160
- _: 1
161
- }, 8, ["disabled"])
162
- ])) : E("", !0),
163
- (a(!0), l(C, null, V(s(t).positions.value, (n) => (a(), l("div", {
164
- key: n.id,
165
- class: h(["cfg-row", { "is-clickable": s(t).pendingDeleteId.value !== n.id }]),
166
- onClick: (p) => s(t).pendingDeleteId.value !== n.id && s(m).openEdit(n.id, n.name)
167
- }, [
168
- o("div", ae, [
169
- o("div", de, c(n.name), 1)
170
- ]),
171
- s(t).pendingDeleteId.value === n.id ? (a(), l("div", re, [
172
- o("span", ue, c(s(t).usageCountFor(n.id) ? `Remove from ${s(t).usageCountFor(n.id)} staff?` : "Delete?"), 1),
173
- i(u, {
174
- hierarchy: "danger",
175
- size: "sm",
176
- class: "cfg-yes",
177
- type: "button",
178
- disabled: s(t).saving.value,
179
- onClick: g((p) => s(t).confirmDelete(n.id), ["stop"])
180
- }, {
181
- default: d(() => [
182
- r(c(s(t).saving.value ? "Deleting…" : "Delete"), 1)
183
- ]),
184
- _: 1
185
- }, 8, ["disabled", "onClick"]),
186
- i(u, {
187
- hierarchy: "secondary",
188
- size: "sm",
189
- class: "cfg-no",
190
- type: "button",
191
- disabled: s(t).saving.value,
192
- onClick: e[6] || (e[6] = g((p) => s(t).cancelDelete(), ["stop"]))
193
- }, {
194
- default: d(() => [...e[16] || (e[16] = [
195
- r(" Keep ", -1)
196
- ])]),
197
- _: 1
198
- }, 8, ["disabled"])
199
- ])) : (a(), l(C, { key: 1 }, [
200
- o("span", {
201
- class: h(["cfg-used", { none: !s(t).usageCountFor(n.id) }])
202
- }, c(s(t).usageCountFor(n.id) ? `${s(t).usageCountFor(n.id)} staff` : "unused"), 3),
203
- i(u, {
204
- hierarchy: "secondary",
205
- size: "sm",
206
- class: "cfg-btn",
207
- type: "button",
208
- onClick: g((p) => s(m).openEdit(n.id, n.name), ["stop"])
209
- }, {
210
- default: d(() => [...e[17] || (e[17] = [
211
- r(" Edit ", -1)
212
- ])]),
213
- _: 1
214
- }, 8, ["onClick"]),
215
- i(u, {
216
- hierarchy: "ghost",
217
- size: "sm",
218
- "icon-only": "",
219
- class: "cfg-del",
220
- type: "button",
221
- "aria-label": `Delete ${n.name}`,
222
- onClick: g((p) => s(t).askDelete(n.id), ["stop"])
223
- }, {
224
- default: d(() => [...e[18] || (e[18] = [
225
- o("svg", {
226
- width: "14",
227
- height: "14",
228
- viewBox: "0 0 16 16",
229
- fill: "none",
230
- "aria-hidden": "true"
231
- }, [
232
- o("path", {
233
- 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",
234
- stroke: "currentColor",
235
- "stroke-width": "1.4",
236
- "stroke-linecap": "round",
237
- "stroke-linejoin": "round"
238
- }),
239
- o("path", {
240
- d: "M6.6 7v4M9.4 7v4",
241
- stroke: "currentColor",
242
- "stroke-width": "1.3",
243
- "stroke-linecap": "round"
244
- })
245
- ], -1)
246
- ])]),
247
- _: 1
248
- }, 8, ["aria-label", "onClick"])
249
- ], 64))
250
- ], 10, le))), 128))
251
- ]))
252
- ])
253
- ])
254
- ])
255
- ])
256
- ])
257
- ]),
258
- i(W, { modal: s(m) }, null, 8, ["modal"])
259
- ], 512));
260
- }
261
- }), be = /* @__PURE__ */ j(ce, [["__scopeId", "data-v-6c156586"]]);
262
- export {
263
- be as default
264
- };
@@ -1,9 +0,0 @@
1
- const s = (t, r) => {
2
- const o = t.__vccOpts || t;
3
- for (const [c, e] of r)
4
- o[c] = e;
5
- return o;
6
- };
7
- export {
8
- s as _
9
- };
@@ -1,157 +0,0 @@
1
- import { defineComponent as x, ref as M, resolveComponent as l, createBlock as a, openBlock as t, withCtx as i, createElementVNode as g, renderSlot as b, createCommentVNode as k, withModifiers as $, nextTick as I, createElementBlock as f, normalizeClass as h, createTextVNode as V, toDisplayString as C, computed as w, Fragment as B, renderList as F, createVNode as S } from "vue";
2
- import { useBreakpoints as z, useDialog as D } from "@feedmepos/ui-library";
3
- import { useI18n as N } from "@feedmepos/mf-common";
4
- const A = /* @__PURE__ */ x({
5
- __name: "BottomSheetMenu",
6
- setup(o) {
7
- const e = M(!1);
8
- async function r() {
9
- await I(), e.value = !e.value;
10
- }
11
- return (n, s) => {
12
- const y = l("FmButton"), _ = l("FmBottomSheet");
13
- return t(), a(_, {
14
- modelValue: e.value,
15
- "onUpdate:modelValue": s[1] || (s[1] = (d) => e.value = d),
16
- "dismiss-away": "",
17
- "no-header": "",
18
- "z-index": 110
19
- }, {
20
- "bottom-sheet-button": i(() => [
21
- n.$slots.button ? k("", !0) : (t(), a(y, {
22
- key: 0,
23
- icon: "more_vert",
24
- variant: "tertiary",
25
- onClick: $(r, ["stop"])
26
- })),
27
- b(n.$slots, "button")
28
- ]),
29
- default: i(() => [
30
- g("div", {
31
- onClick: s[0] || (s[0] = (d) => e.value = !1)
32
- }, [
33
- b(n.$slots, "default")
34
- ])
35
- ]),
36
- _: 3
37
- }, 8, ["modelValue"]);
38
- };
39
- }
40
- }), E = { class: "py-8 px-12 hover:bg-fm-color-neutral-gray-100" }, T = /* @__PURE__ */ x({
41
- __name: "BottomSheetMenuItem",
42
- props: {
43
- label: {},
44
- icon: {},
45
- disabled: { type: Boolean },
46
- itemClass: {}
47
- },
48
- setup(o) {
49
- const e = o;
50
- return (r, n) => {
51
- const s = l("FmIcon");
52
- return t(), f("div", E, [
53
- r.$slots.content ? k("", !0) : (t(), f("div", {
54
- key: 0,
55
- class: h(["flex items-center", {
56
- "text-fm-color-typo-disabled": e.disabled,
57
- "cursor-pointer": !e.disabled,
58
- "cursor-not-allowed": e.disabled,
59
- [e.itemClass || ""]: e.itemClass && !e.disabled
60
- }])
61
- }, [
62
- o.icon ? (t(), a(s, {
63
- key: 0,
64
- name: o.icon
65
- }, null, 8, ["name"])) : k("", !0),
66
- V(" " + C(o.label), 1)
67
- ], 2)),
68
- b(r.$slots, "content")
69
- ]);
70
- };
71
- }
72
- }), U = /* @__PURE__ */ x({
73
- __name: "ResponsiveContextMenu",
74
- props: {
75
- items: {}
76
- },
77
- setup(o) {
78
- const e = z(), r = w(() => e.breakpoints.value.xs);
79
- return (n, s) => {
80
- const y = l("FmButton"), _ = l("FmMenuItem"), d = l("FmMenu");
81
- return r.value ? (t(), a(A, { key: 0 }, {
82
- default: i(() => [
83
- (t(!0), f(B, null, F(o.items, ({ icon: c, label: m, disabled: p, itemClass: u, onClick: v }) => (t(), a(T, {
84
- key: m,
85
- icon: c,
86
- label: m,
87
- disabled: p,
88
- itemClass: u,
89
- onClick: () => {
90
- !p && (v == null || v());
91
- }
92
- }, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
93
- ]),
94
- _: 1
95
- })) : (t(), a(d, {
96
- key: 1,
97
- "stop-click-propagation": "",
98
- shift: !0
99
- }, {
100
- "menu-button": i(() => [
101
- S(y, {
102
- type: "button",
103
- variant: "tertiary",
104
- icon: "more_vert",
105
- "text-color": "neutral-gray-400",
106
- size: "md"
107
- })
108
- ]),
109
- default: i(() => [
110
- (t(!0), f(B, null, F(o.items, ({ label: c, disabled: m, itemClass: p, onClick: u }) => (t(), a(_, {
111
- key: c,
112
- disabled: m,
113
- label: c,
114
- onClick: () => {
115
- !m && (u == null || u());
116
- }
117
- }, {
118
- label: i(() => [
119
- g("span", {
120
- class: h(m ? "text-fm-color-typo-disabled" : p)
121
- }, C(c), 3)
122
- ]),
123
- _: 2
124
- }, 1032, ["disabled", "label", "onClick"]))), 128))
125
- ]),
126
- _: 1
127
- }));
128
- };
129
- }
130
- });
131
- function j(o, e) {
132
- const r = D(), { t: n } = N();
133
- function s() {
134
- o() ? r.open({
135
- title: n("portalCommon.dismiss.title"),
136
- message: n("portalCommon.dismiss.message"),
137
- zIndex: 200,
138
- primaryActions: {
139
- text: n("portalCommon.dismiss.primaryActions"),
140
- variant: "primary",
141
- close: !0
142
- },
143
- secondaryActions: {
144
- text: n("common.cancel"),
145
- variant: "tertiary",
146
- close: !0
147
- }
148
- }).onPrimary(() => {
149
- e();
150
- }) : e();
151
- }
152
- return s;
153
- }
154
- export {
155
- U as _,
156
- j as u
157
- };