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

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 (49) hide show
  1. package/dist/{ApprovalCodeList-BLA2rhLB.js → ApprovalCodeList-Ce9BWzt9.js} +2 -2
  2. package/dist/{AuditLogList-DBYdZhZl.js → AuditLogList-Cw7WN8K4.js} +3 -3
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CtCEzPbE.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BuofBFPC.js} +2 -2
  4. package/dist/{EmployeeList-CA7DWLmy.js → EmployeeList-B8qWPNvj.js} +23 -22
  5. package/dist/{GrantUserList-BYnegeEr.js → GrantUserList-CgigJIPF.js} +3 -3
  6. package/dist/{Main-BeXx0hAc.js → Main-BfoVdxlY.js} +5 -5
  7. package/dist/{Main-Dh-gZSaa.js → Main-Cg2vC_cj.js} +2 -2
  8. package/dist/{Main-NDK7LUmm.js → Main-D26pgKy1.js} +9 -9
  9. package/dist/{PermissionSetList-DDIacDpQ.js → PermissionSetList-CbtDiF4k.js} +17 -16
  10. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ONMn3v_f.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DW1oBTbb.js} +680 -680
  11. package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
  12. package/dist/{RoleList-B30FHIzu.js → RoleList-D0I8mbyI.js} +19 -18
  13. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CRRguWTG.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Ctwukt6o.js} +1 -1
  14. package/dist/{ScheduleGeneralPage-8gEeZbFR.js → ScheduleGeneralPage-Kv4pnxCL.js} +130 -128
  15. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-TfxTAjO8.js → ScheduleModal.vue_vue_type_script_setup_true_lang-CSA0aaqJ.js} +545 -512
  16. package/dist/SchedulePage-BMWd0bod.js +17942 -0
  17. package/dist/{SchedulePositionPage-oGIDGneA.js → SchedulePositionPage-5Xvx6Dk5.js} +3 -3
  18. package/dist/{TeamMemberList-Drj6R4Y3.js → TeamMemberList-Bh7i5l16.js} +20 -19
  19. package/dist/{TimesheetList-CDQfN5LE.js → TimesheetList-BJKU-hnk.js} +5 -5
  20. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Bx-6hjs7.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-MMWnb9bj.js} +2 -2
  21. package/dist/{app-DWe_4-ct.js → app-BDJ5qxhF.js} +8 -8
  22. package/dist/app.js +1 -1
  23. package/dist/{dayjs.min-QSwC9dtX.js → dayjs.min-BWM0vY4w.js} +1 -1
  24. package/dist/{employee-Bb2b3dP6.js → employee-bBSuAJUr.js} +3 -3
  25. package/dist/{iteration-TDU7bFxZ.js → iteration-Dg7VAkAn.js} +1 -1
  26. package/dist/{lodash-D3Ns5VMN.js → lodash-BknY3p4o.js} +1 -1
  27. package/dist/{role-D57Le_-U.js → role-BJnJnNd_.js} +1 -1
  28. package/dist/{rule-DzesUEX7.js → rule-BEuOY7Wf.js} +2 -2
  29. package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
  30. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +2 -1
  31. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +1 -0
  32. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +0 -3
  33. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +2 -0
  34. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +7 -0
  35. package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +2 -2
  36. package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +1 -0
  37. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +7 -0
  38. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +2 -0
  39. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +1 -0
  40. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +6 -1
  41. package/dist/src/views/scheduling/schedule-store.d.ts +13 -0
  42. package/dist/src/views/scheduling/types.d.ts +2 -0
  43. package/dist/style.css +1 -1
  44. package/dist/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
  46. package/dist/{useReportPermissions-Cmuead1K.js → useReportPermissions-D8hJ5W0t.js} +3 -3
  47. package/package.json +1 -1
  48. package/dist/SchedulePage-DQ0VXWWi.js +0 -17832
  49. package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
@@ -0,0 +1,132 @@
1
+ import { defineComponent as B, ref as C, resolveComponent as m, createBlock as s, openBlock as t, withCtx as l, createElementVNode as x, renderSlot as v, createCommentVNode as k, withModifiers as $, nextTick as V, createElementBlock as _, normalizeClass as M, createTextVNode as w, toDisplayString as g, computed as S, Fragment as F, renderList as h, createVNode as I } from "vue";
2
+ import { useBreakpoints as N } from "@feedmepos/ui-library";
3
+ const z = /* @__PURE__ */ B({
4
+ __name: "BottomSheetMenu",
5
+ setup(o) {
6
+ const e = C(!1);
7
+ async function r() {
8
+ await V(), e.value = !e.value;
9
+ }
10
+ return (u, n) => {
11
+ const f = m("FmButton"), y = m("FmBottomSheet");
12
+ return t(), s(y, {
13
+ modelValue: e.value,
14
+ "onUpdate:modelValue": n[1] || (n[1] = (d) => e.value = d),
15
+ "dismiss-away": "",
16
+ "no-header": "",
17
+ "z-index": 110
18
+ }, {
19
+ "bottom-sheet-button": l(() => [
20
+ u.$slots.button ? k("", !0) : (t(), s(f, {
21
+ key: 0,
22
+ icon: "more_vert",
23
+ variant: "tertiary",
24
+ onClick: $(r, ["stop"])
25
+ })),
26
+ v(u.$slots, "button")
27
+ ]),
28
+ default: l(() => [
29
+ x("div", {
30
+ onClick: n[0] || (n[0] = (d) => e.value = !1)
31
+ }, [
32
+ v(u.$slots, "default")
33
+ ])
34
+ ]),
35
+ _: 3
36
+ }, 8, ["modelValue"]);
37
+ };
38
+ }
39
+ }), E = { class: "py-8 px-12 hover:bg-fm-color-neutral-gray-100" }, T = /* @__PURE__ */ B({
40
+ __name: "BottomSheetMenuItem",
41
+ props: {
42
+ label: {},
43
+ icon: {},
44
+ disabled: { type: Boolean },
45
+ itemClass: {}
46
+ },
47
+ setup(o) {
48
+ const e = o;
49
+ return (r, u) => {
50
+ const n = m("FmIcon");
51
+ return t(), _("div", E, [
52
+ r.$slots.content ? k("", !0) : (t(), _("div", {
53
+ key: 0,
54
+ class: M(["flex items-center", {
55
+ "text-fm-color-typo-disabled": e.disabled,
56
+ "cursor-pointer": !e.disabled,
57
+ "cursor-not-allowed": e.disabled,
58
+ [e.itemClass || ""]: e.itemClass && !e.disabled
59
+ }])
60
+ }, [
61
+ o.icon ? (t(), s(n, {
62
+ key: 0,
63
+ name: o.icon
64
+ }, null, 8, ["name"])) : k("", !0),
65
+ w(" " + g(o.label), 1)
66
+ ], 2)),
67
+ v(r.$slots, "content")
68
+ ]);
69
+ };
70
+ }
71
+ }), R = /* @__PURE__ */ B({
72
+ __name: "ResponsiveContextMenu",
73
+ props: {
74
+ items: {}
75
+ },
76
+ setup(o) {
77
+ const e = N(), r = S(() => e.breakpoints.value.xs);
78
+ return (u, n) => {
79
+ const f = m("FmButton"), y = m("FmMenuItem"), d = m("FmMenu");
80
+ return r.value ? (t(), s(z, { key: 0 }, {
81
+ default: l(() => [
82
+ (t(!0), _(F, null, h(o.items, ({ icon: i, label: a, disabled: p, itemClass: c, onClick: b }) => (t(), s(T, {
83
+ key: a,
84
+ icon: i,
85
+ label: a,
86
+ disabled: p,
87
+ itemClass: c,
88
+ onClick: () => {
89
+ !p && (b == null || b());
90
+ }
91
+ }, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
92
+ ]),
93
+ _: 1
94
+ })) : (t(), s(d, {
95
+ key: 1,
96
+ "stop-click-propagation": "",
97
+ shift: !0
98
+ }, {
99
+ "menu-button": l(() => [
100
+ I(f, {
101
+ type: "button",
102
+ variant: "tertiary",
103
+ icon: "more_vert",
104
+ "text-color": "neutral-gray-400",
105
+ size: "md"
106
+ })
107
+ ]),
108
+ default: l(() => [
109
+ (t(!0), _(F, null, h(o.items, ({ label: i, disabled: a, itemClass: p, onClick: c }) => (t(), s(y, {
110
+ key: i,
111
+ disabled: a,
112
+ label: i,
113
+ onClick: () => {
114
+ !a && (c == null || c());
115
+ }
116
+ }, {
117
+ label: l(() => [
118
+ x("span", {
119
+ class: M(a ? "text-fm-color-typo-disabled" : p)
120
+ }, g(i), 3)
121
+ ]),
122
+ _: 2
123
+ }, 1032, ["disabled", "label", "onClick"]))), 128))
124
+ ]),
125
+ _: 1
126
+ }));
127
+ };
128
+ }
129
+ });
130
+ export {
131
+ R as _
132
+ };
@@ -1,17 +1,18 @@
1
1
  import { computed as y, defineComponent as Pe, ref as V, watch as le, onMounted as Me, resolveComponent as F, createBlock as M, openBlock as v, unref as o, withCtx as g, createElementVNode as u, createVNode as c, createElementBlock as R, Fragment as P, createCommentVNode as _e, renderList as ne, normalizeClass as Ue, toDisplayString as $, h as A, createTextVNode as ge, resolveDynamicComponent as Ee, withModifiers as Ze, nextTick as De } from "vue";
2
- import { e as D } from "./iteration-TDU7bFxZ.js";
2
+ import { e as D } from "./iteration-Dg7VAkAn.js";
3
3
  import { useI18n as Te } from "@feedmepos/mf-common";
4
4
  import { useBreakpoints as Be, useSnackbar as je, components as ye, useDialog as es, FmButtonColorThemeVariant as ss } from "@feedmepos/ui-library";
5
- import { D as ts, k as as, A as ls, S as os, _ as rs } from "./app-DWe_4-ct.js";
6
- import { u as ns, _ as $e } from "./useDiscardConfirm-DPhEV6v0.js";
7
- import { _ as is } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
8
- import { r as ie, h as Ae, f as us, s as cs, g as Ie, e as ms, a as oe } from "./rule-DzesUEX7.js";
5
+ import { D as ts, k as as, A as ls, S as os, _ as rs } from "./app-BDJ5qxhF.js";
6
+ import { _ as $e } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
7
+ import { _ as ns } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
8
+ import { r as ie, h as Ae, f as is, s as us, g as Ie, e as cs, a as oe } from "./rule-BEuOY7Wf.js";
9
9
  import { u as xe } from "./restaurant-BbYRA_IT.js";
10
- import { u as Oe } from "./role-D57Le_-U.js";
11
- import { u as Ne } from "./useReportPermissions-Cmuead1K.js";
12
- import { l as re } from "./lodash-D3Ns5VMN.js";
13
- import { u as ds, _ as ps, a as Le } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CtCEzPbE.js";
10
+ import { u as Oe } from "./role-BJnJnNd_.js";
11
+ import { u as Ne } from "./useReportPermissions-D8hJ5W0t.js";
12
+ import { l as re } from "./lodash-BknY3p4o.js";
13
+ import { u as ms, _ as ds, a as Le } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BuofBFPC.js";
14
14
  import { _ as be } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
15
+ import { u as ps } from "./useDiscardConfirm-CzZSPyvh.js";
15
16
  import { u as fs } from "./useLoading-Ch1AUYT1.js";
16
17
  function vs() {
17
18
  const se = xe();
@@ -65,7 +66,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
65
66
  restaurantIds: [],
66
67
  permissions: [],
67
68
  maxDiscountPercentage: 100
68
- }), l = V(N()), a = V([]), n = V([]), i = V(/* @__PURE__ */ new Map()), m = ds(i), b = as("report");
69
+ }), l = V(N()), a = V([]), n = V([]), i = V(/* @__PURE__ */ new Map()), m = ms(i), b = as("report");
69
70
  function w(e) {
70
71
  const s = i.value.get(e);
71
72
  return !!s && Object.keys(s).length > 0;
@@ -143,7 +144,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
143
144
  l.value.restaurantIds = U.value.map((s) => s._id), l.value.permissions = O.value.map((s) => s.value);
144
145
  else if (h.value) {
145
146
  l.value.restaurantIds = h.value.restaurants.map((S) => S.id);
146
- const s = new Set(O.value.map((S) => S.value)), { values: r, passthrough: x, dropped: H } = cs(
147
+ const s = new Set(O.value.map((S) => S.value)), { values: r, passthrough: x, dropped: H } = us(
147
148
  h.value.permissions,
148
149
  s
149
150
  );
@@ -151,7 +152,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
151
152
  h.value.permissions
152
153
  );
153
154
  for (const S of h.value.permissions) {
154
- const E = ie(S), L = ms(S);
155
+ const E = ie(S), L = cs(S);
155
156
  L && i.value.set(E.value, L);
156
157
  }
157
158
  }
@@ -175,7 +176,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
175
176
  role: {
176
177
  name: l.value.name,
177
178
  permissions: [
178
- ...us(
179
+ ...is(
179
180
  l.value.permissions,
180
181
  l.value.maxDiscountPercentage,
181
182
  i.value
@@ -210,7 +211,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
210
211
  e.length > 0 && (Ke.value = "");
211
212
  }
212
213
  );
213
- const he = ns(
214
+ const he = ps(
214
215
  () => {
215
216
  var e, s, r;
216
217
  return !re.isEqual(l.value.name, ((e = h.value) == null ? void 0 : e.name) || N().name) || !re.isEqual(
@@ -346,7 +347,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
346
347
  class: "p-16"
347
348
  }, {
348
349
  default: g(() => [
349
- c(ps, null, {
350
+ c(ds, null, {
350
351
  title: g(() => [
351
352
  u("p", xs, $(p.title), 1)
352
353
  ]),
@@ -514,7 +515,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
514
515
  class: "line-clamp-2"
515
516
  }, Js = {
516
517
  class: "font-bold"
517
- }, nt = /* @__PURE__ */ Pe({
518
+ }, it = /* @__PURE__ */ Pe({
518
519
  __name: "RoleList",
519
520
  setup(se, {
520
521
  expose: te
@@ -692,7 +693,7 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
692
693
  autofocus: "",
693
694
  placeholder: o(t)("hr.role.search.placeholder") + " / " + o(t)("hr.restaurant.search.placeholder")
694
695
  }, null, 8, ["modelValue", "placeholder"])]), c(rs, null, {
695
- default: g(() => [u("div", Is, [c(is, {
696
+ default: g(() => [u("div", Is, [c(ns, {
696
697
  "is-loading": o(B).isLoading.value,
697
698
  "is-empty": q.value.length === 0,
698
699
  "collapse-at": "xs",
@@ -735,5 +736,5 @@ const hs = { class: "flex w-full items-center justify-between" }, _s = { class:
735
736
  }
736
737
  });
737
738
  export {
738
- nt as default
739
+ it as default
739
740
  };
@@ -1,5 +1,5 @@
1
1
  import { ref as h, watch as ke, computed as S, reactive as Ie, nextTick as be, defineComponent as Pe, createBlock as Q, openBlock as I, withCtx as C, createElementVNode as n, createVNode as K, toDisplayString as f, unref as q, createElementBlock as N, withDirectives as ne, withKeys as we, vModelText as se, normalizeClass as oe, createTextVNode as M, createCommentVNode as G, Fragment as ie, renderList as Ne } from "vue";
2
- import { ar as X, au as $e, av as ue, f as R, aw as pe, ax as Ce, F as W, p as H, aq as Se, ao as O } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-TfxTAjO8.js";
2
+ import { ar as X, au as $e, av as ue, f as R, aw as pe, ax as Ce, F as W, p as H, aq as Se, ao as O } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-CSA0aaqJ.js";
3
3
  import { useI18n as Ae } from "@feedmepos/mf-common";
4
4
  function de() {
5
5
  return X.map((e) => ({ id: e.id, name: e.name }));