@feedmepos/mf-hrm-portal 2.3.0-dev → 2.3.0-dev.10

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 (155) hide show
  1. package/dist/{ApprovalCodeList-cG0zmQVJ.js → ApprovalCodeList-BLA2rhLB.js} +5 -5
  2. package/dist/{AuditLogList-BTifJhO1.js → AuditLogList-DBYdZhZl.js} +4 -4
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-qr5TwLTK.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CtCEzPbE.js} +2 -2
  4. package/dist/{EmployeeList-DzcMtxJ3.js → EmployeeList-CA7DWLmy.js} +6 -6
  5. package/dist/{GrantUserList-D5b7tJ8Y.js → GrantUserList-BYnegeEr.js} +6 -6
  6. package/dist/{Main-DFwdAWqn.js → Main-BeXx0hAc.js} +8 -8
  7. package/dist/{Main-B2r59IOW.js → Main-Dh-gZSaa.js} +5 -5
  8. package/dist/{Main-DkLBemi7.js → Main-NDK7LUmm.js} +11 -11
  9. package/dist/{PermissionSetList-B80hrfMW.js → PermissionSetList-DDIacDpQ.js} +7 -7
  10. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ONMn3v_f.js +4167 -0
  11. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fe-Rdwn4.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js} +1 -1
  12. package/dist/{RoleList-DHO4JRKF.js → RoleList-B30FHIzu.js} +9 -9
  13. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CRRguWTG.js +492 -0
  14. package/dist/ScheduleGeneralPage-8gEeZbFR.js +776 -0
  15. package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-TfxTAjO8.js +2252 -0
  16. package/dist/SchedulePage-DQ0VXWWi.js +17832 -0
  17. package/dist/{SchedulePositionPage-C0hrO11d.js → SchedulePositionPage-oGIDGneA.js} +66 -65
  18. package/dist/{TeamMemberList-CgFWLRBM.js → TeamMemberList-Drj6R4Y3.js} +10 -10
  19. package/dist/{TimesheetList-Dp40G-0I.js → TimesheetList-CDQfN5LE.js} +7 -7
  20. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BFjrMhUG.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Bx-6hjs7.js} +3 -3
  21. package/dist/{app-CmBSTvaI.js → app-DWe_4-ct.js} +678 -594
  22. package/dist/app.js +1 -1
  23. package/dist/{approval-code-C9DmR4Md.js → approval-code-DHsUgc4K.js} +1 -1
  24. package/dist/{dayjs.min-CfL2DQ3d.js → dayjs.min-QSwC9dtX.js} +1 -1
  25. package/dist/{employee-DQcHjoij.js → employee-Bb2b3dP6.js} +29 -28
  26. package/dist/{grant-user-Bv-pJ9Wt.js → grant-user-qzKHFTro.js} +1 -1
  27. package/dist/{iteration-BlavheWG.js → iteration-TDU7bFxZ.js} +1 -1
  28. package/dist/{lodash-QerqayrJ.js → lodash-D3Ns5VMN.js} +1 -1
  29. package/dist/{restaurant-D7PEQjPY.js → restaurant-BbYRA_IT.js} +4 -3
  30. package/dist/{role-RM2YLO7n.js → role-D57Le_-U.js} +2 -2
  31. package/dist/{rule-DjlvYIuP.js → rule-DzesUEX7.js} +3 -3
  32. package/dist/src/api/schedule/index.d.ts +8 -1
  33. package/dist/src/components/layout/withScheduleShell.d.ts +10 -0
  34. package/dist/src/types/employee.d.ts +1 -0
  35. package/dist/src/types/schedule.d.ts +3 -4
  36. package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +0 -8
  37. package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +23 -0
  38. package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +17 -0
  39. package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +31 -0
  40. package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +24 -0
  41. package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +32 -0
  42. package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +25 -0
  43. package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +17 -0
  44. package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +38 -0
  45. package/dist/src/views/scheduling/components/ScheduleBoardUtilityOverlays.vue.d.ts +22 -0
  46. package/dist/src/views/scheduling/components/{ScheduleOnboardingComplete.vue.d.ts → ScheduleCompletionDialog.vue.d.ts} +8 -3
  47. package/dist/src/views/scheduling/components/{ScheduleShiftCardMenu.vue.d.ts → ScheduleContextMenu.vue.d.ts} +7 -2
  48. package/dist/src/views/scheduling/components/{SchedulePdfPreview.vue.d.ts → ScheduleExportPreview.vue.d.ts} +1 -0
  49. package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +9 -0
  50. package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +26 -0
  51. package/dist/src/views/scheduling/components/{ScheduleExportDoneDialog.vue.d.ts → ScheduleOnboardingAssignPositionModal.vue.d.ts} +2 -2
  52. package/dist/src/views/scheduling/components/{ScheduleAssignEmployeePopover.vue.d.ts → ScheduleOnboardingClosedDayConfirm.vue.d.ts} +2 -2
  53. package/dist/src/views/scheduling/components/{ScheduleEmployeeMenu.vue.d.ts → ScheduleOnboardingDemandDays.vue.d.ts} +2 -2
  54. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandFooter.vue.d.ts +6 -0
  55. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandHeader.vue.d.ts +6 -0
  56. package/dist/src/views/scheduling/components/ScheduleOnboardingHoursProfileNotice.vue.d.ts +10 -0
  57. package/dist/src/views/scheduling/components/ScheduleOnboardingPositions.vue.d.ts +6 -0
  58. package/dist/src/views/scheduling/components/ScheduleOnboardingReview.vue.d.ts +6 -0
  59. package/dist/src/views/scheduling/components/ScheduleOnboardingWizardFooter.vue.d.ts +6 -0
  60. package/dist/src/views/scheduling/components/ScheduleOnboardingWizardHeader.vue.d.ts +11 -0
  61. package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +17 -1
  62. package/dist/src/views/scheduling/components/ScheduleSetupBanner.vue.d.ts +12 -0
  63. package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +2 -2
  64. package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +4 -4
  65. package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +2 -12
  66. package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +3 -3
  67. package/dist/src/views/scheduling/composables/onboarding-types.d.ts +1 -1
  68. package/dist/src/views/scheduling/composables/remyPrompt.d.ts +13 -0
  69. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +12 -8
  70. package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +5 -1
  71. package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +7 -1
  72. package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +7 -0
  73. package/dist/src/views/scheduling/composables/schedule-cost.d.ts +19 -0
  74. package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +1 -3
  75. package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +11 -0
  76. package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +14 -0
  77. package/dist/src/views/scheduling/composables/schedule-time.d.ts +8 -0
  78. package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +1 -4
  79. package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +15 -0
  80. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +34 -21
  81. package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -13
  82. package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +2 -8
  83. package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +13 -0
  84. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +3 -0
  85. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +50 -11
  86. package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +3 -1
  87. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +6 -1
  88. package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +1 -2
  89. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +0 -3
  90. package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +7 -24
  91. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +19 -5
  92. package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +16 -0
  93. package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +13 -0
  94. package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +27 -0
  95. package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +7 -0
  96. package/dist/src/views/scheduling/composables/useScheduleEmployeeForm.d.ts +22 -0
  97. package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +9 -0
  98. package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +6 -3
  99. package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +29 -0
  100. package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +20 -0
  101. package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +19 -11
  102. package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +5 -6
  103. package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +58 -0
  104. package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +45 -0
  105. package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +205 -0
  106. package/dist/src/views/scheduling/composables/useScheduleOnboardingHours.d.ts +15 -0
  107. package/dist/src/views/scheduling/composables/useScheduleOnboardingNavigation.d.ts +11 -0
  108. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +306 -529
  109. package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +18 -0
  110. package/dist/src/views/scheduling/composables/useSchedulePageCellActions.d.ts +21 -0
  111. package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +18 -0
  112. package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +22 -0
  113. package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +10 -7
  114. package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +19 -0
  115. package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +4 -1
  116. package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +4 -2
  117. package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +9 -1
  118. package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +11 -0
  119. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +30 -4
  120. package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +8 -25
  121. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +18 -3
  122. package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +63 -0
  123. package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +17 -0
  124. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +25 -8
  125. package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +4 -1
  126. package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +6 -4
  127. package/dist/src/views/scheduling/country-rules/index.d.ts +24 -0
  128. package/dist/src/views/scheduling/data.d.ts +16 -7
  129. package/dist/src/views/scheduling/locales/index.d.ts +80 -0
  130. package/dist/src/views/scheduling/schedule-constants.d.ts +7 -0
  131. package/dist/src/views/scheduling/schedule-state.d.ts +104 -16
  132. package/dist/src/views/scheduling/schedule-store.d.ts +17 -6
  133. package/dist/src/views/scheduling/types.d.ts +27 -5
  134. package/dist/style.css +1 -1
  135. package/dist/tsconfig.app.tsbuildinfo +1 -1
  136. package/dist/{useAppStore-d_nHyK5u.js → useAppStore-BoLkvkE2.js} +1 -1
  137. package/dist/{useLoading-JFoghhRz.js → useLoading-Ch1AUYT1.js} +1 -1
  138. package/dist/{useReportPermissions-Bl6Br79r.js → useReportPermissions-Cmuead1K.js} +3 -3
  139. package/package.json +2 -1
  140. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DjNcJQM9.js +0 -4167
  141. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B-XtB64L.js +0 -452
  142. package/dist/ScheduleGeneralPage-WlBM8bxV.js +0 -629
  143. package/dist/SchedulePage-Nm0krGVU.js +0 -17056
  144. package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-DTDXir_7.js +0 -1150
  145. package/dist/src/components/layout/withShell.d.ts +0 -14
  146. package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +0 -22
  147. package/dist/src/views/scheduling/components/ScheduleOpenShiftCardMenu.vue.d.ts +0 -14
  148. package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +0 -14
  149. package/dist/src/views/scheduling/components/ScheduleTourAllSet.vue.d.ts +0 -6
  150. package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +0 -77
  151. package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +0 -122
  152. package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +0 -23
  153. package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +0 -17
  154. package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +0 -10
  155. /package/dist/src/{components/layout/AppSidebar.vue.d.ts → views/scheduling/components/SchedulePublishShareArt.vue.d.ts} +0 -0
@@ -1,56 +1,57 @@
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 = {
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 k, 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-DWe_4-ct.js";
5
+ import { as as L, at as O, ab as R, ao as u, ap as K } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-TfxTAjO8.js";
6
+ import { u as T, a as U, _ as W } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CRRguWTG.js";
7
+ import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const q = { class: "main" }, H = {
8
9
  id: "viewPositions",
9
10
  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
+ }, 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 = {
11
12
  key: 0,
12
13
  class: "cfg-empty"
13
- }, ee = {
14
+ }, oe = {
14
15
  key: 1,
15
16
  class: "cfg-list"
16
- }, se = {
17
+ }, ne = {
17
18
  key: 0,
18
19
  class: "cfg-row"
19
- }, te = { class: "cfg-main" }, oe = ["onClick"], ne = { class: "cfg-main" }, ie = { class: "cfg-name" }, le = {
20
+ }, ie = { class: "cfg-main" }, le = ["onClick"], ae = { class: "cfg-main" }, de = { class: "cfg-name" }, re = {
20
21
  key: 0,
21
22
  class: "cfg-confirm"
22
- }, ae = { class: "q" }, de = /* @__PURE__ */ D({
23
+ }, ue = { class: "q" }, ce = /* @__PURE__ */ M({
23
24
  __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());
25
+ setup(ve) {
26
+ const y = A(null);
27
+ L(y);
28
+ const _ = F(), w = B(), b = (f, e = "info") => w.open({ message: f, type: e }), t = T({ notify: b }), v = O(), m = U(void 0, { notify: b });
29
+ x(async () => {
30
+ await v.resolve() && await R(/* @__PURE__ */ new Date());
30
31
  });
31
- const _ = A(
32
+ const $ = z(
32
33
  () => v.options.value.length ? v.options.value : [{ value: "", label: "No outlet selected", disabled: !0 }]
33
34
  );
34
- function w(y) {
35
- v.switchTo(y, /* @__PURE__ */ new Date());
35
+ function D(f) {
36
+ v.switchTo(f, /* @__PURE__ */ new Date());
36
37
  }
37
- function $() {
38
- C.push({ name: V.SCHEDULE });
38
+ function N() {
39
+ _.push({ name: I.SCHEDULE });
39
40
  }
40
- return (y, e) => (a(), l("div", {
41
+ return (f, e) => (a(), l("div", {
41
42
  ref_key: "rootEl",
42
- ref: h,
43
+ ref: y,
43
44
  class: "sch"
44
45
  }, [
45
- o("div", U, [
46
- o("div", W, [
47
- o("div", j, [
46
+ o("div", q, [
47
+ o("div", H, [
48
+ o("div", G, [
48
49
  i(u, {
49
50
  hierarchy: "ghost",
50
51
  size: "sm",
51
52
  class: "sp-back",
52
53
  type: "button",
53
- onClick: $
54
+ onClick: N
54
55
  }, {
55
56
  default: d(() => [...e[7] || (e[7] = [
56
57
  o("svg", {
@@ -74,25 +75,25 @@ const U = { class: "main" }, W = {
74
75
  }),
75
76
  e[9] || (e[9] = o("div", { class: "sp-title" }, "Position", -1)),
76
77
  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
+ o("div", J, [
78
79
  e[8] || (e[8] = o("span", { class: "outlet-bar-lbl" }, "Outlet", -1)),
79
- i(L, {
80
+ i(K, {
80
81
  class: "outlet-sel",
81
82
  "aria-label": "Outlet being configured",
82
83
  searchable: "",
83
84
  title: "Which outlet's roster the staff counts below are read from",
84
85
  "model-value": s(v).outletId.value,
85
- options: _.value,
86
- "onUpdate:modelValue": w
86
+ options: $.value,
87
+ "onUpdate:modelValue": D
87
88
  }, null, 8, ["model-value", "options"])
88
89
  ])
89
90
  ]),
90
- o("div", H, [
91
- o("div", G, [
92
- o("div", J, [
93
- o("div", Q, [
91
+ o("div", Q, [
92
+ o("div", X, [
93
+ o("div", Y, [
94
+ o("div", Z, [
94
95
  e[12] || (e[12] = o("div", { class: "cfg-title" }, "Configured positions", -1)),
95
- o("span", X, c(s(t).count.value), 1),
96
+ o("span", ee, c(s(t).count.value), 1),
96
97
  e[13] || (e[13] = o("span", { class: "cfg-spacer" }, null, -1)),
97
98
  i(u, {
98
99
  hierarchy: "primary",
@@ -108,17 +109,17 @@ const U = { class: "main" }, W = {
108
109
  })
109
110
  ]),
110
111
  o("div", {
111
- class: g(["ce-err", { show: s(t).error.value }])
112
+ class: h(["ce-err", { show: s(t).error.value }])
112
113
  }, 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] = [
114
+ o("div", se, [
115
+ !s(t).positions.value.length && !s(t).isAdding.value ? (a(), l("div", te, [...e[14] || (e[14] = [
115
116
  r(" No positions yet.", -1),
116
117
  o("br", null, null, -1),
117
118
  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", {
119
+ ])])) : (a(), l("div", oe, [
120
+ s(t).isAdding.value ? (a(), l("div", ne, [
121
+ o("div", ie, [
122
+ S(o("input", {
122
123
  "onUpdate:modelValue": e[1] || (e[1] = (n) => s(t).newName.value = n),
123
124
  type: "text",
124
125
  class: "cfg-name-input",
@@ -129,7 +130,7 @@ const U = { class: "main" }, W = {
129
130
  e[3] || (e[3] = k((n) => s(t).cancelAdd(), ["esc"]))
130
131
  ]
131
132
  }, null, 544), [
132
- [E, s(t).newName.value]
133
+ [P, s(t).newName.value]
133
134
  ])
134
135
  ]),
135
136
  i(u, {
@@ -158,24 +159,24 @@ const U = { class: "main" }, W = {
158
159
  ])]),
159
160
  _: 1
160
161
  }, 8, ["disabled"])
161
- ])) : x("", !0),
162
- (a(!0), l(b, null, P(s(t).positions.value, (n) => (a(), l("div", {
162
+ ])) : E("", !0),
163
+ (a(!0), l(C, null, V(s(t).positions.value, (n) => (a(), l("div", {
163
164
  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)
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)
166
167
  }, [
167
- o("div", ne, [
168
- o("div", ie, c(n.name), 1)
168
+ o("div", ae, [
169
+ o("div", de, c(n.name), 1)
169
170
  ]),
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),
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),
172
173
  i(u, {
173
174
  hierarchy: "danger",
174
175
  size: "sm",
175
176
  class: "cfg-yes",
176
177
  type: "button",
177
178
  disabled: s(t).saving.value,
178
- onClick: p((f) => s(t).confirmDelete(n.id), ["stop"])
179
+ onClick: g((p) => s(t).confirmDelete(n.id), ["stop"])
179
180
  }, {
180
181
  default: d(() => [
181
182
  r(c(s(t).saving.value ? "Deleting…" : "Delete"), 1)
@@ -188,23 +189,23 @@ const U = { class: "main" }, W = {
188
189
  class: "cfg-no",
189
190
  type: "button",
190
191
  disabled: s(t).saving.value,
191
- onClick: e[6] || (e[6] = p((f) => s(t).cancelDelete(), ["stop"]))
192
+ onClick: e[6] || (e[6] = g((p) => s(t).cancelDelete(), ["stop"]))
192
193
  }, {
193
194
  default: d(() => [...e[16] || (e[16] = [
194
195
  r(" Keep ", -1)
195
196
  ])]),
196
197
  _: 1
197
198
  }, 8, ["disabled"])
198
- ])) : (a(), l(b, { key: 1 }, [
199
+ ])) : (a(), l(C, { key: 1 }, [
199
200
  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),
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),
202
203
  i(u, {
203
204
  hierarchy: "secondary",
204
205
  size: "sm",
205
206
  class: "cfg-btn",
206
207
  type: "button",
207
- onClick: p((f) => s(m).openEdit(n.id, n.name), ["stop"])
208
+ onClick: g((p) => s(m).openEdit(n.id, n.name), ["stop"])
208
209
  }, {
209
210
  default: d(() => [...e[17] || (e[17] = [
210
211
  r(" Edit ", -1)
@@ -218,7 +219,7 @@ const U = { class: "main" }, W = {
218
219
  class: "cfg-del",
219
220
  type: "button",
220
221
  "aria-label": `Delete ${n.name}`,
221
- onClick: p((f) => s(t).askDelete(n.id), ["stop"])
222
+ onClick: g((p) => s(t).askDelete(n.id), ["stop"])
222
223
  }, {
223
224
  default: d(() => [...e[18] || (e[18] = [
224
225
  o("svg", {
@@ -246,7 +247,7 @@ const U = { class: "main" }, W = {
246
247
  _: 1
247
248
  }, 8, ["aria-label", "onClick"])
248
249
  ], 64))
249
- ], 10, oe))), 128))
250
+ ], 10, le))), 128))
250
251
  ]))
251
252
  ])
252
253
  ])
@@ -254,10 +255,10 @@ const U = { class: "main" }, W = {
254
255
  ])
255
256
  ])
256
257
  ]),
257
- i(T, { modal: s(m) }, null, 8, ["modal"])
258
+ i(W, { modal: s(m) }, null, 8, ["modal"])
258
259
  ], 512));
259
260
  }
260
- }), ge = /* @__PURE__ */ K(de, [["__scopeId", "data-v-fece1656"]]);
261
+ }), ke = /* @__PURE__ */ j(ce, [["__scopeId", "data-v-6c156586"]]);
261
262
  export {
262
- ge as default
263
+ ke as default
263
264
  };
@@ -3,20 +3,20 @@ 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-CmBSTvaI.js";
6
+ import { v as Te, m as vs, O as fs, _ as bs, a as hs } from "./app-DWe_4-ct.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
- import { u as He } from "./useLoading-JFoghhRz.js";
10
+ import { u as He } from "./useLoading-Ch1AUYT1.js";
11
11
  import { n as es } from "./string-VNuQNweN.js";
12
- import { l as Pe } from "./lodash-QerqayrJ.js";
13
- import { c as he } from "./iteration-BlavheWG.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-DjlvYIuP.js";
15
- import { u as as } from "./role-RM2YLO7n.js";
16
- import { u as ls, i as $s } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fe-Rdwn4.js";
17
- import "./useAppStore-d_nHyK5u.js";
18
- import { g as ze, b as We, u as os } from "./restaurant-D7PEQjPY.js";
19
- import { _ as Ms } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DjNcJQM9.js";
12
+ import { l as Pe } from "./lodash-D3Ns5VMN.js";
13
+ import { c as he } from "./iteration-TDU7bFxZ.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-DzesUEX7.js";
15
+ import { u as as } from "./role-D57Le_-U.js";
16
+ import { u as ls, i as $s } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js";
17
+ import "./useAppStore-BoLkvkE2.js";
18
+ import { g as ze, b as We, u as os } from "./restaurant-BbYRA_IT.js";
19
+ import { _ as Ms } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ONMn3v_f.js";
20
20
  import { _ as Ns } from "./_plugin-vue_export-helper-CHgC5LLL.js";
21
21
  var Ue = /* @__PURE__ */ ((o) => (o.Update = "Update", o.Remove = "Remove", o))(Ue || {});
22
22
  const Ie = "__unassigned__";
@@ -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-CfL2DQ3d.js";
2
+ import { d as v } from "./dayjs.min-QSwC9dtX.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-CmBSTvaI.js";
6
+ import { _ as Se } from "./app-DWe_4-ct.js";
7
7
  import { _ as Ve } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
8
- import { u as ke } from "./useLoading-JFoghhRz.js";
9
- import { g as Ce, s as Fe } from "./iteration-BlavheWG.js";
8
+ import { u as ke } from "./useLoading-Ch1AUYT1.js";
9
+ import { g as Ce, s as Fe } from "./iteration-TDU7bFxZ.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-DQcHjoij.js";
13
- import { u as Te } from "./restaurant-D7PEQjPY.js";
14
- import { u as Ie } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BFjrMhUG.js";
12
+ import { u as Me } from "./employee-Bb2b3dP6.js";
13
+ import { u as Te } from "./restaurant-BbYRA_IT.js";
14
+ import { u as Ie } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Bx-6hjs7.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-CfL2DQ3d.js";
1
+ import { d as i } from "./dayjs.min-QSwC9dtX.js";
2
2
  import { defineStore as p, storeToRefs as T } from "pinia";
3
3
  import { ref as l } from "vue";
4
- import { b as c, g as y } from "./restaurant-D7PEQjPY.js";
5
- import { s as S } from "./iteration-BlavheWG.js";
4
+ import { b as c, g as y } from "./restaurant-BbYRA_IT.js";
5
+ import { s as S } from "./iteration-TDU7bFxZ.js";
6
6
  import { i as f, f as g } from "./utils-BZkjJbju.js";
7
7
  const u = {
8
8
  async readTimesheets(t, e) {