@feedmepos/mf-hrm-portal 2.1.1-dev.4 → 2.1.1-dev.5

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 (71) hide show
  1. package/dist/ApprovalCodeList-CXJyMKEg.js +757 -0
  2. package/dist/AuditLogList-CXUkbDyT.js +1145 -0
  3. package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +58 -0
  4. package/dist/EmployeeList-BSfUFTcN.js +899 -0
  5. package/dist/{GrantUserList-DoyxknJZ.js → GrantUserList-DKP4MBQM.js} +137 -140
  6. package/dist/{Main-BGONIxo8.js → Main-CblWfQk_.js} +3 -3
  7. package/dist/{Main-B5BKGpLg.js → Main-CyCfz4ka.js} +1029 -1033
  8. package/dist/{Main-DQj4xtkB.js → Main-Cz1pfe2k.js} +7 -7
  9. package/dist/PermissionSetList-BwyblSeE.js +357 -0
  10. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BJ-PZ2Nv.js +3458 -0
  11. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DVVSBIx2.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BJp9hEfv.js} +0 -1
  12. package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js +38 -0
  13. package/dist/RoleList-CXYgCmHp.js +567 -0
  14. package/dist/TeamMemberList-CnLbqaPS.js +1131 -0
  15. package/dist/{TimesheetList-DwIcsOM-.js → TimesheetList-s_bP5OGA.js} +112 -118
  16. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-B9qlQ6KG.js → TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-BCLv-2Re.js} +2 -2
  17. package/dist/{app-BZwE2coe.js → app-BP0oihBR.js} +2359 -5361
  18. package/dist/app.js +1 -1
  19. package/dist/{dayjs.min-BXBPls4m.js → dayjs.min-BTSZLci9.js} +1 -1
  20. package/dist/{employee-CJTbs1f7.js → employee-BPv1j6T4.js} +3 -3
  21. package/dist/{iteration-BCbIbdHR.js → iteration-BNA1cEos.js} +1 -1
  22. package/dist/{lodash-CUIS1iIz.js → lodash-DKG9IyB-.js} +1 -1
  23. package/dist/{role-CzXchcSS.js → role-BS3LFO8u.js} +1 -1
  24. package/dist/rule-DaSLVZWm.js +996 -0
  25. package/dist/src/api/audit-log/index.d.ts +0 -6
  26. package/dist/src/components/CheckboxInput.vue.d.ts +1 -1
  27. package/dist/src/components/button/ResponsiveFabButton.vue.d.ts +1 -7
  28. package/dist/src/components/table/TableEmptyState.vue.d.ts +15 -7
  29. package/dist/src/composables/useBasePermission.d.ts +1 -2
  30. package/dist/src/helpers/permission-set.d.ts +4 -8
  31. package/dist/src/helpers/rule.d.ts +1 -2
  32. package/dist/src/stores/approval-code.d.ts +6 -6
  33. package/dist/src/stores/permission-set.d.ts +3 -12
  34. package/dist/src/types/approval-code.d.ts +51 -26
  35. package/dist/src/types/audit-log.d.ts +1 -1
  36. package/dist/src/views/approval-code/ApprovalCodeList.vue.d.ts +1 -1
  37. package/dist/src/views/approval-code/locales/index.d.ts +4 -12
  38. package/dist/src/views/audit-log/locales/index.d.ts +0 -296
  39. package/dist/src/views/hr/employee/EmployeeList.vue.d.ts +0 -1
  40. package/dist/src/views/team/components/BasePermission.vue.d.ts +0 -13
  41. package/dist/src/views/team/locales/index.d.ts +0 -80
  42. package/dist/style.css +1 -1
  43. package/dist/tsconfig.app.tsbuildinfo +1 -1
  44. package/dist/useDebounce-CWb5QR9G.js +28 -0
  45. package/dist/{useReportPermissions-Q-xLwz5N.js → useReportPermissions-J3-DjopO.js} +3 -3
  46. package/package.json +2 -2
  47. package/dist/ApprovalCodeList-B0PLZwav.js +0 -758
  48. package/dist/AuditLogList-CRXwPImZ.js +0 -1611
  49. package/dist/ConditionFormHost.vue_vue_type_script_setup_true_lang-zJwkM_Xb.js +0 -387
  50. package/dist/EmployeeList-DN2pnXcS.js +0 -884
  51. package/dist/PermissionSetList-4uIU9FvN.js +0 -393
  52. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-D0luaKDb.js +0 -4122
  53. package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js +0 -42
  54. package/dist/RoleList-Bj5Y5jd_.js +0 -685
  55. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
  56. package/dist/TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js +0 -37
  57. package/dist/TeamMemberList-Byjlca2Y.js +0 -1216
  58. package/dist/rule-BO6xj2Xa.js +0 -1058
  59. package/dist/src/composables/useConditionDraft.d.ts +0 -40
  60. package/dist/src/composables/useCoverConditionOverride.d.ts +0 -61
  61. package/dist/src/helpers/business-timezone.d.ts +0 -22
  62. package/dist/src/helpers/filter.d.ts +0 -15
  63. package/dist/src/helpers/permission-reconcile.d.ts +0 -15
  64. package/dist/src/helpers/permission-reconcile.test.d.ts +0 -1
  65. package/dist/src/views/audit-log/event-line.d.ts +0 -13
  66. package/dist/src/views/audit-log/snapshot-diff.d.ts +0 -11
  67. package/dist/src/views/team/condition-builders/ConditionFormHost.vue.d.ts +0 -22
  68. package/dist/src/views/team/condition-builders/ConditionFormRenderer.vue.d.ts +0 -23
  69. package/dist/src/views/team/condition-builders/component-map.d.ts +0 -4
  70. package/dist/src/views/team/condition-builders/condition-form-dedupe.d.ts +0 -23
  71. package/dist/useDebounce-B8ZPVS5C.js +0 -15
@@ -1,42 +1,42 @@
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-BXBPls4m.js";
3
- import { useI18n as _e } from "@feedmepos/mf-common";
4
- import { useSnackbar as be, components as xe } from "@feedmepos/ui-library";
1
+ import { ref as d, computed as g, defineComponent as pe, onMounted as fe, watch as ee, resolveComponent as u, createElementBlock as P, openBlock as _, Fragment as te, createVNode as l, createElementVNode as i, unref as r, withCtx as Y, createCommentVNode as ve, toDisplayString as O, createTextVNode as he, createBlock as z, isRef as ge, renderList as we, nextTick as ye } from "vue";
2
+ import { d as f } from "./dayjs.min-BTSZLci9.js";
3
+ import { useI18n as be } from "@feedmepos/mf-common";
4
+ import { useSnackbar as _e, components as xe } from "@feedmepos/ui-library";
5
5
  import { S as De, _ as Se } from "./SelectFilter-ATOm0hdn.js";
6
- import { _ as Ve } from "./app-BZwE2coe.js";
7
- import { _ as ke } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
6
+ import { _ as ke } from "./app-BP0oihBR.js";
7
+ import { _ as Ve } from "./index.vue_vue_type_script_setup_true_lang-BVVwfd7B.js";
8
8
  import { u as Ce } from "./useLoading-BH02lYns.js";
9
- import { g as Fe, s as Ye } from "./iteration-BCbIbdHR.js";
9
+ import { g as Fe, s as Ye } from "./iteration-BNA1cEos.js";
10
10
  import { f as Le } from "./utils-BZkjJbju.js";
11
- import { u as Me } from "./employee-CJTbs1f7.js";
11
+ import { u as Me } from "./employee-BPv1j6T4.js";
12
12
  import { u as Te } from "./restaurant-YOVMuuFY.js";
13
- import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-B9qlQ6KG.js";
13
+ import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-BCLv-2Re.js";
14
14
  function Ie(x, a) {
15
15
  return ["years", "months"].find((S) => {
16
- const V = x.startOf(S), m = x.endOf(S);
17
- return x.isSame(V, "day") && a.isSame(m, "day");
16
+ const k = x.startOf(S), v = x.endOf(S);
17
+ return x.isSame(k, "day") && a.isSame(v, "day");
18
18
  }) || "days";
19
19
  }
20
20
  function $e() {
21
21
  const x = {
22
- startDate: v().format("YYYY-MM-DD"),
23
- endDate: v().format("YYYY-MM-DD")
22
+ startDate: f().format("YYYY-MM-DD"),
23
+ endDate: f().format("YYYY-MM-DD")
24
24
  }, a = d(x), D = g(() => {
25
25
  if (!a.value) return "No dates selected.";
26
- const m = a.value.startDate ?? "Start", _ = a.value.endDate ?? "End";
27
- return `${m} - ${_}`;
26
+ const v = a.value.startDate ?? "Start", b = a.value.endDate ?? "End";
27
+ return `${v} - ${b}`;
28
28
  }), S = g(() => ({
29
29
  startDate: new Date(a.value.startDate),
30
30
  endDate: new Date(a.value.endDate)
31
31
  }));
32
- function V(m) {
33
- const _ = v(a.value.startDate), c = v(a.value.endDate), h = Ie(_, c), k = h === "days" ? c.diff(_, "days") + 1 : 1, C = m === "subtract" ? (F) => F.subtract(k, h) : (F) => F.add(k, h);
32
+ function k(v) {
33
+ const b = f(a.value.startDate), c = f(a.value.endDate), h = Ie(b, c), V = h === "days" ? c.diff(b, "days") + 1 : 1, C = v === "subtract" ? (F) => F.subtract(V, h) : (F) => F.add(V, h);
34
34
  a.value = {
35
- startDate: C(_).startOf(h).format("YYYY-MM-DD"),
35
+ startDate: C(b).startOf(h).format("YYYY-MM-DD"),
36
36
  endDate: C(c).endOf(h).format("YYYY-MM-DD")
37
37
  };
38
38
  }
39
- return { dateRange: a, parsedDateRange: S, dateRangeLabel: D, setRange: V };
39
+ return { dateRange: a, parsedDateRange: S, dateRangeLabel: D, setRange: k };
40
40
  }
41
41
  const Ee = {
42
42
  class: "my-16 flex w-[350px] flex-col gap-40"
@@ -71,25 +71,23 @@ const Ee = {
71
71
  class: "flex items-start gap-8 flex-wrap xs:px-16"
72
72
  }, We = {
73
73
  class: "flex items-center gap-8"
74
- }, Xe = {
75
- class: "flex h-full flex-col overflow-auto"
76
- }, Ze = /* @__PURE__ */ pe({
74
+ }, Xe = /* @__PURE__ */ pe({
77
75
  __name: "TimesheetList",
78
76
  setup(x) {
79
77
  const {
80
78
  t: a
81
- } = _e(), D = be(), S = Ce(D), V = [{
79
+ } = be(), D = _e(), S = Ce(D), k = [{
82
80
  label: a("hr.timesheet.listView"),
83
81
  value: "listView"
84
82
  }, {
85
83
  label: a("hr.timesheet.userView"),
86
84
  value: "userView"
87
- }], m = d("listView"), _ = g(() => {
85
+ }], v = d("listView"), b = g(() => {
88
86
  var t;
89
- return (t = V.find((e) => e.value === m.value)) == null ? void 0 : t.label;
90
- }), c = d(""), h = Re(), k = Me(), C = Te(), F = g(() => k.employees.value), j = g(() => h.timesheets.value.filter((s) => !A.value || A.value.includes(s.restaurantId)).map((s) => {
87
+ return (t = k.find((e) => e.value === v.value)) == null ? void 0 : t.label;
88
+ }), c = d(""), h = Re(), V = Me(), C = Te(), F = g(() => V.employees.value), N = g(() => h.timesheets.value.filter((s) => !A.value || A.value.includes(s.restaurantId)).map((s) => {
91
89
  var y;
92
- const n = (y = C.restaurants.value.find((f) => f._id === s.restaurantId)) == null ? void 0 : y.profile.code, w = F.value.find((f) => f._id === s.user.id);
90
+ const n = (y = C.restaurants.value.find((p) => p._id === s.restaurantId)) == null ? void 0 : y.profile.code, w = F.value.find((p) => p._id === s.user.id);
93
91
  return {
94
92
  ...s,
95
93
  restaurantCode: n,
@@ -98,32 +96,32 @@ const Ee = {
98
96
  code: w ? w.code : ""
99
97
  }
100
98
  };
101
- })), z = g(() => j.value.filter((t) => {
99
+ })), j = g(() => N.value.filter((t) => {
102
100
  var e, s;
103
101
  return t.user.name.toLowerCase().includes(c.value.toLowerCase()) || t.restaurantName.toLowerCase().includes(c.value.toLowerCase()) || ((e = t.restaurantCode) == null ? void 0 : e.toLowerCase().includes(c.value.toLowerCase())) || ((s = t.user.code) == null ? void 0 : s.toLowerCase().includes(c.value.toLowerCase()));
104
102
  })), H = g(() => {
105
- const t = Fe(j.value, (s) => s.user.name), e = Object.entries(t).map(([s, n]) => {
103
+ const t = Fe(N.value, (s) => s.user.name), e = Object.entries(t).map(([s, n]) => {
106
104
  const w = F.value.find((y) => y._id === n[0].user.id);
107
105
  return {
108
106
  key: s,
109
107
  user: n[0].user.name,
110
108
  code: w ? w.code : n[0].user.code || "",
111
109
  timesheets: n,
112
- total: Le(n.reduce((y, f) => y + f.totalMin, 0))
110
+ total: Le(n.reduce((y, p) => y + p.totalMin, 0))
113
111
  };
114
112
  });
115
113
  return Ye(e, {
116
114
  selector: "user"
117
115
  });
118
- }), N = g(() => H.value.filter((t) => {
116
+ }), G = g(() => H.value.filter((t) => {
119
117
  var e;
120
118
  return t.user.toLowerCase().includes(c.value.toLowerCase()) || ((e = t.code) == null ? void 0 : e.toLowerCase().includes(c.value.toLowerCase()));
121
- })), Y = d(!1), U = async () => {
119
+ })), L = d(!1), U = async () => {
122
120
  const {
123
121
  startDate: t,
124
122
  endDate: e
125
- } = L.value;
126
- Y.value = !0;
123
+ } = M.value;
124
+ L.value = !0;
127
125
  try {
128
126
  await h.readTimesheet(new Date(t), new Date(e)), await ye(), B.value = Object.fromEntries(Object.entries(new Array(H.value.length).fill(!0)));
129
127
  } catch (s) {
@@ -132,12 +130,12 @@ const Ee = {
132
130
  type: "error"
133
131
  });
134
132
  } finally {
135
- Y.value = !1;
133
+ L.value = !1;
136
134
  }
137
135
  };
138
136
  fe(async () => {
139
137
  try {
140
- await C.readRestaurants(), k.employees.value.length === 0 && await k.readEmployees();
138
+ await C.readRestaurants(), V.employees.value.length === 0 && await V.readEmployees();
141
139
  } catch (t) {
142
140
  console.error("Failed to load timesheet dependencies:", t), D.open({
143
141
  message: t instanceof Error ? t.message : String(t),
@@ -150,11 +148,11 @@ const Ee = {
150
148
  label: `${t.profile.code ? `${t.profile.code} - ` : ""}${t.profile.name}`,
151
149
  value: t._id
152
150
  }))), {
153
- dateRange: L,
151
+ dateRange: M,
154
152
  dateRangeLabel: oe,
155
- setRange: G
153
+ setRange: q
156
154
  } = $e();
157
- Z(L, async () => {
155
+ ee(M, async () => {
158
156
  U();
159
157
  });
160
158
  const se = [{
@@ -243,67 +241,67 @@ const Ee = {
243
241
  return e.total ? `Total: ${e.total}` : e.duration;
244
242
  },
245
243
  enableSorting: !1
246
- }], M = d(!1);
247
- function q(t) {
248
- p.value = t, T.value = v(p.value.startedAt).format("YYYY-MM-DD"), I.value = v(p.value.endedAt || p.value.startedAt).format("YYYY-MM-DD"), R.value = v(p.value.startedAt).format("HH:mm"), $.value = v(p.value.endedAt || p.value.startedAt).format("HH:mm"), M.value = !0;
244
+ }], T = d(!1);
245
+ function J(t) {
246
+ m.value = t, R.value = f(m.value.startedAt).format("YYYY-MM-DD"), $.value = f(m.value.endedAt || m.value.startedAt).format("YYYY-MM-DD"), I.value = f(m.value.startedAt).format("HH:mm"), E.value = f(m.value.endedAt || m.value.startedAt).format("HH:mm"), T.value = !0;
249
247
  }
250
- const T = d(), R = d(), I = d(), $ = d(), p = d(), K = d("");
248
+ const R = d(), I = d(), $ = d(), E = d(), m = d(), K = d("");
251
249
  async function re() {
252
- const t = J(T.value, R.value), e = J(I.value, $.value);
253
- if (v(t).isAfter(e)) {
250
+ const t = Q(R.value, I.value), e = Q($.value, E.value);
251
+ if (f(t).isAfter(e)) {
254
252
  K.value = a("hr.timesheet.checkOutMustBeforeCheckIn");
255
253
  return;
256
254
  }
257
255
  S.minor(async () => {
258
- await h.updateTimesheet(p.value, t, e);
256
+ await h.updateTimesheet(m.value, t, e);
259
257
  }, {
260
258
  successMessage: a("hr.timesheet.update.successMessage")
261
- }), U(), M.value = !1;
259
+ }), U(), T.value = !1;
262
260
  }
263
- const J = (t, e) => v(t).set("h", parseInt(e.split(":")[0])).set("m", parseInt(e.split(":")[1])).toISOString();
264
- return Z([T, I, R, $], ([t, e, s, n]) => {
261
+ const Q = (t, e) => f(t).set("h", parseInt(e.split(":")[0])).set("m", parseInt(e.split(":")[1])).toISOString();
262
+ return ee([R, $, I, E], ([t, e, s, n]) => {
265
263
  (t || e || s || n) && (K.value = "");
266
264
  }), (t, e) => {
267
- const s = u("FmAvatar"), n = u("FmDatePicker"), w = u("FmTimePicker"), y = u("FmIcon"), f = u("FmButton"), ne = u("FmSideSheet"), Q = u("FmChip"), ie = u("FmDateRangePicker"), ue = u("FmMenuItem"), de = u("FmMenu"), ce = u("FmSpacer"), me = u("FmSearch"), W = u("FmTable");
268
- return E(), P(ee, null, [l(ne, {
269
- modelValue: M.value,
270
- "onUpdate:modelValue": e[5] || (e[5] = (o) => M.value = o),
265
+ const s = u("FmAvatar"), n = u("FmDatePicker"), w = u("FmTimePicker"), y = u("FmIcon"), p = u("FmButton"), ne = u("FmSideSheet"), W = u("FmChip"), ie = u("FmDateRangePicker"), ue = u("FmMenuItem"), de = u("FmMenu"), ce = u("FmSpacer"), me = u("FmSearch"), X = u("FmTable");
266
+ return _(), P(te, null, [l(ne, {
267
+ modelValue: T.value,
268
+ "onUpdate:modelValue": e[5] || (e[5] = (o) => T.value = o),
271
269
  "dismiss-away": "",
272
270
  header: r(a)("hr.timesheet.update.title")
273
271
  }, {
274
- "side-sheet-footer": b(() => [i("div", qe, [l(f, {
272
+ "side-sheet-footer": Y(() => [i("div", qe, [l(p, {
275
273
  label: r(a)("common.update"),
276
274
  size: "md",
277
275
  variant: "primary",
278
276
  onClick: re
279
- }, null, 8, ["label"]), l(f, {
277
+ }, null, 8, ["label"]), l(p, {
280
278
  label: r(a)("common.cancel"),
281
279
  size: "md",
282
280
  variant: "secondary",
283
- onClick: e[4] || (e[4] = (o) => M.value = !1)
281
+ onClick: e[4] || (e[4] = (o) => T.value = !1)
284
282
  }, null, 8, ["label"])])]),
285
- default: b(() => [i("div", Ee, [i("div", Oe, [l(s, {
286
- name: p.value.user.name,
283
+ default: Y(() => [i("div", Ee, [i("div", Oe, [l(s, {
284
+ name: m.value.user.name,
287
285
  size: "lg"
288
- }, null, 8, ["name"]), i("div", Ae, [i("div", Ke, O(r(a)("hr.timesheet.employeeName")), 1), i("div", ze, O(p.value.user.name), 1)])]), i("div", Ne, [i("div", Ue, O(r(a)("hr.timesheet.update.checkIn")), 1), i("div", Be, [l(n, {
289
- modelValue: T.value,
290
- "onUpdate:modelValue": e[0] || (e[0] = (o) => T.value = o),
286
+ }, null, 8, ["name"]), i("div", Ae, [i("div", Ke, O(r(a)("hr.timesheet.employeeName")), 1), i("div", ze, O(m.value.user.name), 1)])]), i("div", Ne, [i("div", Ue, O(r(a)("hr.timesheet.update.checkIn")), 1), i("div", Be, [l(n, {
287
+ modelValue: R.value,
288
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => R.value = o),
291
289
  disabled: !1,
292
290
  label: r(a)("hr.timesheet.update.date")
293
291
  }, null, 8, ["modelValue", "label"]), l(w, {
294
- modelValue: R.value,
295
- "onUpdate:modelValue": e[1] || (e[1] = (o) => R.value = o),
292
+ modelValue: I.value,
293
+ "onUpdate:modelValue": e[1] || (e[1] = (o) => I.value = o),
296
294
  label: r(a)("hr.timesheet.update.time")
297
295
  }, null, 8, ["modelValue", "label"])])]), i("div", Pe, [i("div", je, O(r(a)("hr.timesheet.update.checkOut")), 1), i("div", He, [l(n, {
298
- modelValue: I.value,
299
- "onUpdate:modelValue": e[2] || (e[2] = (o) => I.value = o),
296
+ modelValue: $.value,
297
+ "onUpdate:modelValue": e[2] || (e[2] = (o) => $.value = o),
300
298
  disabled: !1,
301
299
  label: r(a)("hr.timesheet.update.date")
302
300
  }, null, 8, ["modelValue", "label"]), l(w, {
303
- modelValue: $.value,
304
- "onUpdate:modelValue": e[3] || (e[3] = (o) => $.value = o),
301
+ modelValue: E.value,
302
+ "onUpdate:modelValue": e[3] || (e[3] = (o) => E.value = o),
305
303
  label: r(a)("hr.timesheet.update.time")
306
- }, null, 8, ["modelValue", "label"])])]), K.value ? (E(), P("div", Ge, [l(y, {
304
+ }, null, 8, ["modelValue", "label"])])]), K.value ? (_(), P("div", Ge, [l(y, {
307
305
  color: "#FF3B30",
308
306
  name: "error",
309
307
  size: "sm"
@@ -319,33 +317,33 @@ const Ee = {
319
317
  placeholder: r(a)("hr.role.columns.restaurants"),
320
318
  class: "!w-auto pt-[3px]"
321
319
  }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i("div", We, [l(ie, {
322
- modelValue: r(L),
323
- "onUpdate:modelValue": e[7] || (e[7] = (o) => ge(L) ? L.value = o : null),
320
+ modelValue: r(M),
321
+ "onUpdate:modelValue": e[7] || (e[7] = (o) => ge(M) ? M.value = o : null),
324
322
  "show-predefined-range": ""
325
323
  }, {
326
- "trigger-button": b(() => [l(Q, {
324
+ "trigger-button": Y(() => [l(W, {
327
325
  label: r(oe)
328
326
  }, null, 8, ["label"])]),
329
327
  _: 1
330
- }, 8, ["modelValue"]), l(f, {
328
+ }, 8, ["modelValue"]), l(p, {
331
329
  icon: "chevron_left",
332
330
  variant: "tertiary",
333
- onClick: e[8] || (e[8] = (o) => r(G)("subtract"))
334
- }), l(f, {
331
+ onClick: e[8] || (e[8] = (o) => r(q)("subtract"))
332
+ }), l(p, {
335
333
  icon: "chevron_right",
336
334
  variant: "tertiary",
337
- onClick: e[9] || (e[9] = (o) => r(G)("add"))
335
+ onClick: e[9] || (e[9] = (o) => r(q)("add"))
338
336
  })]), l(de, {
339
337
  class: "pt-[3px]"
340
338
  }, {
341
- "menu-button": b(() => [l(Q, {
342
- label: _.value,
339
+ "menu-button": Y(() => [l(W, {
340
+ label: b.value,
343
341
  "right-icon": "keyboard_arrow_down"
344
342
  }, null, 8, ["label"])]),
345
- default: b(() => [(E(), P(ee, null, we(V, (o) => l(ue, {
343
+ default: Y(() => [(_(), P(te, null, we(k, (o) => l(ue, {
346
344
  key: o.value,
347
345
  label: o.label,
348
- onClick: (X) => m.value = o.value
346
+ onClick: (Z) => v.value = o.value
349
347
  }, null, 8, ["label", "onClick"])), 64))]),
350
348
  _: 1
351
349
  }), l(ce), l(me, {
@@ -353,48 +351,44 @@ const Ee = {
353
351
  "onUpdate:modelValue": e[10] || (e[10] = (o) => c.value = o),
354
352
  class: "w-[320px]",
355
353
  placeholder: r(a)("hr.timesheet.search.placeholder")
356
- }, null, 8, ["modelValue", "placeholder"])]), l(Ve, {
357
- class: "w-full xs:px-16"
354
+ }, null, 8, ["modelValue", "placeholder"])]), N.value.length === 0 && !L.value ? (_(), z(r(Ve), {
355
+ key: 0,
356
+ title: r(a)("hr.timesheet.noData.title"),
357
+ subtitle: ""
358
+ }, null, 8, ["title"])) : (_(), z(ke, {
359
+ key: 1,
360
+ class: "w-full xs:px-16 overflow-auto"
358
361
  }, {
359
- default: b(() => [i("div", Xe, [l(ke, {
360
- "is-loading": Y.value,
361
- "is-empty": m.value === "listView" ? z.value.length === 0 : N.value.length === 0,
362
- "collapse-at": !1,
363
- title: r(a)("hr.timesheet.noData.title"),
364
- subtitle: ""
365
- }, {
366
- default: b(() => [m.value === "listView" ? (E(), te(W, {
367
- key: 0,
368
- class: "min-w-[640px]",
369
- "column-defs": se,
370
- "row-data": z.value,
371
- "page-size": z.value.length,
372
- loading: Y.value,
373
- "pin-header-row": "",
374
- "hide-footer": "",
375
- "shrink-at": !1,
376
- onRowClick: e[11] || (e[11] = (o) => q(o.original))
377
- }, null, 8, ["row-data", "page-size", "loading"])) : (E(), te(W, {
378
- key: 1,
379
- class: "min-w-[640px] timesheet-user-view",
380
- "column-defs": le,
381
- "row-data": N.value,
382
- "page-size": N.value.reduce((o, X) => o + 1 + X.timesheets.length, 0),
383
- loading: Y.value,
384
- "pin-header-row": "",
385
- "shrink-at": !1,
386
- "expanded-state": B.value,
387
- "get-sub-row": (o) => o.timesheets,
388
- "onUpdate:expandedState": e[12] || (e[12] = (o) => B.value = o),
389
- onRowClick: e[13] || (e[13] = (o) => q(o.original))
390
- }, null, 8, ["row-data", "page-size", "loading", "expanded-state", "get-sub-row"]))]),
391
- _: 1
392
- }, 8, ["is-loading", "is-empty", "title"])])]),
362
+ default: Y(() => [v.value === "listView" ? (_(), z(X, {
363
+ key: 0,
364
+ class: "min-w-[640px]",
365
+ "column-defs": se,
366
+ "row-data": j.value,
367
+ "page-size": j.value.length,
368
+ loading: L.value,
369
+ "pin-header-row": "",
370
+ "hide-footer": "",
371
+ "shrink-at": !1,
372
+ onRowClick: e[11] || (e[11] = (o) => J(o.original))
373
+ }, null, 8, ["row-data", "page-size", "loading"])) : (_(), z(X, {
374
+ key: 1,
375
+ class: "min-w-[640px] timesheet-user-view",
376
+ "column-defs": le,
377
+ "row-data": G.value,
378
+ "page-size": G.value.reduce((o, Z) => o + 1 + Z.timesheets.length, 0),
379
+ loading: L.value,
380
+ "pin-header-row": "",
381
+ "shrink-at": !1,
382
+ "expanded-state": B.value,
383
+ "get-sub-row": (o) => o.timesheets,
384
+ "onUpdate:expandedState": e[12] || (e[12] = (o) => B.value = o),
385
+ onRowClick: e[13] || (e[13] = (o) => J(o.original))
386
+ }, null, 8, ["row-data", "page-size", "loading", "expanded-state", "get-sub-row"]))]),
393
387
  _: 1
394
- })])], 64);
388
+ }))])], 64);
395
389
  };
396
390
  }
397
- }), pt = /* @__PURE__ */ Se(Ze, [["__scopeId", "data-v-2c7a177a"]]);
391
+ }), mt = /* @__PURE__ */ Se(Xe, [["__scopeId", "data-v-91afda4e"]]);
398
392
  export {
399
- pt as default
393
+ mt as default
400
394
  };
@@ -1,8 +1,8 @@
1
- import { d as i } from "./dayjs.min-BXBPls4m.js";
1
+ import { d as i } from "./dayjs.min-BTSZLci9.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-YOVMuuFY.js";
5
- import { s as S } from "./iteration-BCbIbdHR.js";
5
+ import { s as S } from "./iteration-BNA1cEos.js";
6
6
  import { i as f, f as g } from "./utils-BZkjJbju.js";
7
7
  const u = {
8
8
  async readTimesheets(t, e) {