@feedmepos/mf-hrm-portal 2.0.19 → 2.0.20-dev.2

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 (66) hide show
  1. package/dist/AuditLogList-ChxAzO74.js +1037 -0
  2. package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +58 -0
  3. package/dist/EmployeeList-Cs-Mn6UA.js +843 -0
  4. package/dist/FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js +45 -0
  5. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
  6. package/dist/{Main-BPM7QyFL.js → Main-B9_TyRDo.js} +2009 -2005
  7. package/dist/Main-CdHW4UkN.js +90 -0
  8. package/dist/Main-DcvmP7s-.js +574 -0
  9. package/dist/PermissionSetList-VFVS0g0v.js +347 -0
  10. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Dr3R9JjS.js +3444 -0
  11. package/dist/RoleList-BZ6RZvm2.js +556 -0
  12. package/dist/TeamMemberList-C-zhFauD.js +1115 -0
  13. package/dist/{TimesheetList-CdWXksIf.js → TimesheetList-CZex54an.js} +129 -115
  14. package/dist/{app-D6OxaCEx.js → app-CLL3p27X.js} +699 -653
  15. package/dist/app.js +1 -1
  16. package/dist/{dayjs.min-C0I-OiL6.js → dayjs.min-CDt1i9vl.js} +1 -1
  17. package/dist/employee-BpRvjWNh.js +200 -0
  18. package/dist/{iteration-CcZFMm5X.js → iteration-BVjUzYL5.js} +9314 -9272
  19. package/dist/{lodash-CW7MBjcM.js → lodash-CrwgACp2.js} +1 -1
  20. package/dist/{rule-6Lg9M_3I.js → rule-BlQ5YZ9Z.js} +274 -275
  21. package/dist/src/api/audit-log/index.d.ts +9 -0
  22. package/dist/src/api/index.d.ts +0 -1
  23. package/dist/src/api/restaurant/index.d.ts +5 -0
  24. package/dist/src/components/CheckboxInput.vue.d.ts +1 -1
  25. package/dist/src/components/CollapsibleWrapper.vue.d.ts +2 -0
  26. package/dist/src/components/Skeleton.vue.d.ts +7 -0
  27. package/dist/src/composables/useBasePermission.d.ts +1 -0
  28. package/dist/src/composables/useRestaurantMap.d.ts +2 -329
  29. package/dist/src/stores/restaurant.d.ts +181 -0
  30. package/dist/src/stores/role.d.ts +7 -7
  31. package/dist/src/stores/team.d.ts +6 -6
  32. package/dist/src/types/restaurant.d.ts +11 -0
  33. package/dist/src/types/team.d.ts +2 -1
  34. package/dist/src/views/hr/locales/index.d.ts +16 -0
  35. package/dist/src/views/team/components/BasePermission.vue.d.ts +3 -7
  36. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +2 -2
  37. package/dist/src/views/team/locales/index.d.ts +32 -0
  38. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +5 -3
  39. package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +3 -3
  40. package/dist/style.css +1 -1
  41. package/dist/{timesheet-CaSIm-Rv.js → timesheet-jFs4GTAL.js} +2 -2
  42. package/dist/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/useAppStore-DMAL8VFY.js +169 -0
  44. package/dist/useDebounce-CWb5QR9G.js +28 -0
  45. package/dist/useDiscardConfirm-DPhEV6v0.js +157 -0
  46. package/dist/{useLoading-cnpr1-pP.js → useLoading-AFTjRLyO.js} +1 -1
  47. package/dist/{useReportPermissions-CNr0AdOf.js → useReportPermissions-hODG0Xx3.js} +3 -3
  48. package/package.json +1 -1
  49. package/dist/AuditLogList-Bw3sRBhW.js +0 -980
  50. package/dist/EmployeeList-C4tVWPJE.js +0 -736
  51. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +0 -71
  52. package/dist/HorizontalSplitter-o860F4xM.js +0 -12
  53. package/dist/Main-BC20s7cs.js +0 -560
  54. package/dist/Main-eN8MDWpv.js +0 -85
  55. package/dist/PermissionSetList-CPSRrCsu.js +0 -341
  56. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXt721Zo.js +0 -3480
  57. package/dist/RoleList-tRu19xyl.js +0 -530
  58. package/dist/TeamMemberList-CvitYIKw.js +0 -1114
  59. package/dist/TeamMemberList.vue_vue_type_style_index_0_scoped_473cbd86_lang-BDjrD45a.js +0 -34
  60. package/dist/employee-yT17VCCS.js +0 -204
  61. package/dist/src/api/account/index.d.ts +0 -4
  62. package/dist/src/composables/useSupportedCountries.d.ts +0 -5
  63. package/dist/useAppStore-CONZvtGc.js +0 -171
  64. package/dist/useDebounce-B8ZPVS5C.js +0 -15
  65. package/dist/useDiscardConfirm-BHni0LNu.js +0 -28
  66. package/dist/useSearch-B6WK1LBB.js +0 -15
@@ -1,42 +1,43 @@
1
- import { ref as d, computed as b, defineComponent as ce, onMounted as me, watch as X, resolveComponent as u, createElementBlock as B, openBlock as D, Fragment as Z, createVNode as l, createElementVNode as i, unref as n, withCtx as V, createCommentVNode as pe, toDisplayString as $, createTextVNode as ve, createBlock as z, isRef as fe, renderList as he, nextTick as ge } from "vue";
2
- import { d as v } from "./dayjs.min-C0I-OiL6.js";
3
- import { useI18n as ye, useCoreStore as we, RestaurantSelector as be } from "@feedmepos/mf-common";
4
- import { useSnackbar as _e, components as De } from "@feedmepos/ui-library";
5
- import { _ as xe } from "./app-D6OxaCEx.js";
1
+ import { ref as d, computed as g, defineComponent as me, onMounted as pe, watch as Z, resolveComponent as u, createElementBlock as P, openBlock as _, Fragment as ee, createVNode as l, createElementVNode as i, unref as n, withCtx as Y, createCommentVNode as ve, toDisplayString as O, createTextVNode as fe, createBlock as N, isRef as he, renderList as ge, nextTick as ye } from "vue";
2
+ import { d as v } from "./dayjs.min-CDt1i9vl.js";
3
+ import { useI18n as we } from "@feedmepos/mf-common";
4
+ import { useSnackbar as be, components as _e } from "@feedmepos/ui-library";
5
+ import { S as xe } from "./SelectFilter-DUj7GBtT.js";
6
+ import { _ as De } from "./app-CLL3p27X.js";
6
7
  import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
- import { u as ke } from "./useLoading-cnpr1-pP.js";
8
- import { c as Ce, s as Ve } from "./iteration-CcZFMm5X.js";
9
- import { f as Fe } from "./utils-BZkjJbju.js";
10
- import { u as Ye } from "./employee-yT17VCCS.js";
11
- import { u as Le } from "./timesheet-CaSIm-Rv.js";
12
- function Me(x, a) {
8
+ import { u as ke } from "./useLoading-AFTjRLyO.js";
9
+ import { u as Ve, c as Ce, s as Fe } from "./iteration-BVjUzYL5.js";
10
+ import { f as Ye } from "./utils-BZkjJbju.js";
11
+ import { u as Le } from "./employee-BpRvjWNh.js";
12
+ import { u as Me } from "./timesheet-jFs4GTAL.js";
13
+ function Te(x, a) {
13
14
  return ["years", "months"].find((S) => {
14
15
  const k = x.startOf(S), f = x.endOf(S);
15
16
  return x.isSame(k, "day") && a.isSame(f, "day");
16
17
  }) || "days";
17
18
  }
18
- function Te() {
19
+ function Re() {
19
20
  const x = {
20
21
  startDate: v().format("YYYY-MM-DD"),
21
22
  endDate: v().format("YYYY-MM-DD")
22
- }, a = d(x), F = b(() => {
23
+ }, a = d(x), D = g(() => {
23
24
  if (!a.value) return "No dates selected.";
24
- const f = a.value.startDate ?? "Start", _ = a.value.endDate ?? "End";
25
- return `${f} - ${_}`;
26
- }), S = b(() => ({
25
+ const f = a.value.startDate ?? "Start", b = a.value.endDate ?? "End";
26
+ return `${f} - ${b}`;
27
+ }), S = g(() => ({
27
28
  startDate: new Date(a.value.startDate),
28
29
  endDate: new Date(a.value.endDate)
29
30
  }));
30
31
  function k(f) {
31
- const _ = v(a.value.startDate), c = v(a.value.endDate), h = Me(_, c), C = h === "days" ? c.diff(_, "days") + 1 : 1, Y = f === "subtract" ? (g) => g.subtract(C, h) : (g) => g.add(C, h);
32
+ const b = v(a.value.startDate), c = v(a.value.endDate), h = Te(b, c), V = h === "days" ? c.diff(b, "days") + 1 : 1, C = f === "subtract" ? (F) => F.subtract(V, h) : (F) => F.add(V, h);
32
33
  a.value = {
33
- startDate: Y(_).startOf(h).format("YYYY-MM-DD"),
34
- endDate: Y(c).endOf(h).format("YYYY-MM-DD")
34
+ startDate: C(b).startOf(h).format("YYYY-MM-DD"),
35
+ endDate: C(c).endOf(h).format("YYYY-MM-DD")
35
36
  };
36
37
  }
37
- return { dateRange: a, parsedDateRange: S, dateRangeLabel: F, setRange: k };
38
+ return { dateRange: a, parsedDateRange: S, dateRangeLabel: D, setRange: k };
38
39
  }
39
- const Re = {
40
+ const $e = {
40
41
  class: "my-16 flex w-[350px] flex-col gap-40"
41
42
  }, Ie = {
42
43
  class: "flex gap-16"
@@ -44,48 +45,48 @@ const Re = {
44
45
  class: "flex flex-col gap-4"
45
46
  }, Oe = {
46
47
  class: "fm-typo-body-md-400 text-fm-color-typo-secondary"
47
- }, $e = {
48
- class: "fm-typo-body-md-700 text-fm-color-typo-primary"
49
48
  }, Ae = {
50
- class: "flex flex-col gap-8"
49
+ class: "fm-typo-body-md-700 text-fm-color-typo-primary"
51
50
  }, Ke = {
52
- class: "fm-typo-body-xl-700"
51
+ class: "flex flex-col gap-8"
53
52
  }, ze = {
54
- class: "flex flex-col gap-24"
53
+ class: "fm-typo-body-xl-700"
55
54
  }, Ne = {
56
- class: "flex flex-col gap-8"
55
+ class: "flex flex-col gap-24"
57
56
  }, Ue = {
58
- class: "fm-typo-body-xl-700"
57
+ class: "flex flex-col gap-8"
59
58
  }, Be = {
60
- class: "flex flex-col gap-24"
59
+ class: "fm-typo-body-xl-700"
61
60
  }, Pe = {
61
+ class: "flex flex-col gap-24"
62
+ }, je = {
62
63
  key: 0,
63
64
  class: "fm-typo-body-sm-400 text-fm-color-typo-error mt-1 flex items-center gap-4"
64
- }, je = {
65
- class: "flex items-center justify-start gap-8"
66
65
  }, He = {
67
- class: "space-y-8"
66
+ class: "flex items-center justify-start gap-8"
68
67
  }, Ge = {
69
- class: "flex items-start gap-8 flex-wrap xs:px-16"
68
+ class: "space-y-8"
70
69
  }, qe = {
70
+ class: "flex items-start gap-8 flex-wrap xs:px-16"
71
+ }, Je = {
71
72
  class: "flex items-center gap-8"
72
- }, rt = /* @__PURE__ */ ce({
73
+ }, ut = /* @__PURE__ */ me({
73
74
  __name: "TimesheetList",
74
75
  setup(x) {
75
76
  const {
76
77
  t: a
77
- } = ye(), F = _e(), S = ke(F), k = [{
78
+ } = we(), D = be(), S = ke(D), k = [{
78
79
  label: a("hr.timesheet.listView"),
79
80
  value: "listView"
80
81
  }, {
81
82
  label: a("hr.timesheet.userView"),
82
83
  value: "userView"
83
- }], f = d("listView"), _ = b(() => {
84
+ }], f = d("listView"), b = g(() => {
84
85
  var t;
85
86
  return (t = k.find((e) => e.value === f.value)) == null ? void 0 : t.label;
86
- }), c = d(""), h = Le(), C = Ye(), Y = b(() => C.employees.value), g = b(() => h.timesheets.value.filter((s) => !A.value || A.value.includes(s.restaurantId)).map((s) => {
87
+ }), c = d(""), h = Me(), V = Le(), C = Ve(), F = g(() => V.employees.value), A = g(() => h.timesheets.value.filter((s) => !K.value || K.value.includes(s.restaurantId)).map((s) => {
87
88
  var w;
88
- const r = (w = ee.restaurants.value.find((p) => p._id === s.restaurantId)) == null ? void 0 : w.profile.code, y = Y.value.find((p) => p._id === s.user.id);
89
+ const r = (w = C.restaurants.value.find((p) => p._id === s.restaurantId)) == null ? void 0 : w.profile.code, y = F.value.find((p) => p._id === s.user.id);
89
90
  return {
90
91
  ...s,
91
92
  restaurantCode: r,
@@ -94,36 +95,36 @@ const Re = {
94
95
  code: y ? y.code : ""
95
96
  }
96
97
  };
97
- })), P = b(() => g.value.filter((t) => {
98
+ })), j = g(() => A.value.filter((t) => {
98
99
  var e, s;
99
100
  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()));
100
- })), j = b(() => {
101
- const t = Ce(g.value, (s) => s.user.name), e = Object.entries(t).map(([s, r]) => {
102
- const y = Y.value.find((w) => w._id === r[0].user.id);
101
+ })), H = g(() => {
102
+ const t = Ce(A.value, (s) => s.user.name), e = Object.entries(t).map(([s, r]) => {
103
+ const y = F.value.find((w) => w._id === r[0].user.id);
103
104
  return {
104
105
  key: s,
105
106
  user: r[0].user.name,
106
107
  code: y ? y.code : "",
107
108
  timesheets: r,
108
- total: Fe(r.reduce((w, p) => w + p.totalMin, 0))
109
+ total: Ye(r.reduce((w, p) => w + p.totalMin, 0))
109
110
  };
110
111
  });
111
- return Ve(e, {
112
+ return Fe(e, {
112
113
  selector: "user"
113
114
  });
114
- }), H = b(() => j.value.filter((t) => {
115
+ }), G = g(() => H.value.filter((t) => {
115
116
  var e;
116
117
  return t.user.toLowerCase().includes(c.value.toLowerCase()) || ((e = t.code) == null ? void 0 : e.toLowerCase().includes(c.value.toLowerCase()));
117
- })), L = d(!1), N = async () => {
118
+ })), L = d(!1), U = async () => {
118
119
  const {
119
120
  startDate: t,
120
121
  endDate: e
121
122
  } = M.value;
122
123
  L.value = !0;
123
124
  try {
124
- await h.readTimesheet(new Date(t), new Date(e)), await ge(), U.value = Object.fromEntries(Object.entries(new Array(j.value.length).fill(!0)));
125
+ await h.readTimesheet(new Date(t), new Date(e)), await ye(), B.value = Object.fromEntries(Object.entries(new Array(H.value.length).fill(!0)));
125
126
  } catch (s) {
126
- F.open({
127
+ D.open({
127
128
  title: s instanceof Error ? s.message : `${s}`,
128
129
  type: "error"
129
130
  });
@@ -131,18 +132,29 @@ const Re = {
131
132
  L.value = !1;
132
133
  }
133
134
  };
134
- me(async () => {
135
- C.employees.value.length === 0 && await C.readEmployees(), N();
135
+ pe(async () => {
136
+ try {
137
+ await C.readRestaurants(), V.employees.value.length === 0 && await V.readEmployees();
138
+ } catch (t) {
139
+ console.error("Failed to load timesheet dependencies:", t), D.open({
140
+ message: t instanceof Error ? t.message : String(t),
141
+ type: "error"
142
+ });
143
+ }
144
+ U();
136
145
  });
137
- const ee = we(), A = d(), {
146
+ const K = d(), te = g(() => C.restaurants.value.filter((t) => t.managable).map((t) => ({
147
+ label: `${t.profile.code ? `${t.profile.code} - ` : ""}${t.profile.name}`,
148
+ value: t._id
149
+ }))), {
138
150
  dateRange: M,
139
- dateRangeLabel: te,
140
- setRange: G
141
- } = Te();
142
- X(M, async () => {
143
- N();
151
+ dateRangeLabel: ae,
152
+ setRange: q
153
+ } = Re();
154
+ Z(M, async () => {
155
+ U();
144
156
  });
145
- const ae = [{
157
+ const oe = [{
146
158
  accessorKey: "user.code",
147
159
  size: 100,
148
160
  header: () => a("hr.employee.columns.code"),
@@ -177,7 +189,7 @@ const Re = {
177
189
  header: () => a("hr.timesheet.columns.duration"),
178
190
  cell: (t) => t.row.original.duration || "--",
179
191
  enableSorting: !0
180
- }], U = d({}), oe = [{
192
+ }], B = d({}), se = [{
181
193
  accessorKey: "code",
182
194
  size: 100,
183
195
  header: () => a("hr.employee.columns.code"),
@@ -196,7 +208,7 @@ const Re = {
196
208
  onClick: (r) => {
197
209
  r.stopPropagation(), t.row.getToggleExpandedHandler()(r);
198
210
  }
199
- }, [l(De.FmButton, {
211
+ }, [l(_e.FmButton, {
200
212
  variant: "tertiary",
201
213
  icon: s ? "keyboard_arrow_up" : "keyboard_arrow_down"
202
214
  }, null)]), e.user]);
@@ -229,146 +241,148 @@ const Re = {
229
241
  },
230
242
  enableSorting: !1
231
243
  }], T = d(!1);
232
- function q(t) {
233
- m.value = t, R.value = v(m.value.startedAt).format("YYYY-MM-DD"), E.value = v(m.value.endedAt || m.value.startedAt).format("YYYY-MM-DD"), I.value = v(m.value.startedAt).format("HH:mm"), O.value = v(m.value.endedAt || m.value.startedAt).format("HH:mm"), T.value = !0;
244
+ function J(t) {
245
+ m.value = t, R.value = v(m.value.startedAt).format("YYYY-MM-DD"), I.value = v(m.value.endedAt || m.value.startedAt).format("YYYY-MM-DD"), $.value = v(m.value.startedAt).format("HH:mm"), E.value = v(m.value.endedAt || m.value.startedAt).format("HH:mm"), T.value = !0;
234
246
  }
235
- const R = d(), I = d(), E = d(), O = d(), m = d(), K = d("");
236
- async function se() {
237
- const t = J(R.value, I.value), e = J(E.value, O.value);
247
+ const R = d(), $ = d(), I = d(), E = d(), m = d(), z = d("");
248
+ async function le() {
249
+ const t = Q(R.value, $.value), e = Q(I.value, E.value);
238
250
  if (v(t).isAfter(e)) {
239
- K.value = a("hr.timesheet.checkOutMustBeforeCheckIn");
251
+ z.value = a("hr.timesheet.checkOutMustBeforeCheckIn");
240
252
  return;
241
253
  }
242
254
  S.minor(async () => {
243
255
  await h.updateTimesheet(m.value, t, e);
244
256
  }, {
245
257
  successMessage: a("hr.timesheet.update.successMessage")
246
- }), N(), T.value = !1;
258
+ }), U(), T.value = !1;
247
259
  }
248
- const J = (t, e) => v(t).set("h", parseInt(e.split(":")[0])).set("m", parseInt(e.split(":")[1])).toISOString();
249
- return X([R, E, I, O], ([t, e, s, r]) => {
250
- (t || e || s || r) && (K.value = "");
260
+ const Q = (t, e) => v(t).set("h", parseInt(e.split(":")[0])).set("m", parseInt(e.split(":")[1])).toISOString();
261
+ return Z([R, I, $, E], ([t, e, s, r]) => {
262
+ (t || e || s || r) && (z.value = "");
251
263
  }), (t, e) => {
252
- const s = u("FmAvatar"), r = u("FmDatePicker"), y = u("FmTimePicker"), w = u("FmIcon"), p = u("FmButton"), le = u("FmSideSheet"), Q = u("FmChip"), ne = u("FmDateRangePicker"), re = u("FmMenuItem"), ie = u("FmMenu"), ue = u("FmSpacer"), de = u("FmSearch"), W = u("FmTable");
253
- return D(), B(Z, null, [l(le, {
264
+ const s = u("FmAvatar"), r = u("FmDatePicker"), y = u("FmTimePicker"), w = u("FmIcon"), p = u("FmButton"), ne = u("FmSideSheet"), W = u("FmChip"), re = u("FmDateRangePicker"), ie = u("FmMenuItem"), ue = u("FmMenu"), de = u("FmSpacer"), ce = u("FmSearch"), X = u("FmTable");
265
+ return _(), P(ee, null, [l(ne, {
254
266
  modelValue: T.value,
255
267
  "onUpdate:modelValue": e[5] || (e[5] = (o) => T.value = o),
256
268
  "dismiss-away": "",
257
269
  header: n(a)("hr.timesheet.update.title")
258
270
  }, {
259
- "side-sheet-footer": V(() => [i("div", je, [l(p, {
271
+ "side-sheet-footer": Y(() => [i("div", He, [l(p, {
260
272
  label: n(a)("common.update"),
261
273
  size: "md",
262
274
  variant: "primary",
263
- onClick: se
275
+ onClick: le
264
276
  }, null, 8, ["label"]), l(p, {
265
277
  label: n(a)("common.cancel"),
266
278
  size: "md",
267
279
  variant: "secondary",
268
280
  onClick: e[4] || (e[4] = (o) => T.value = !1)
269
281
  }, null, 8, ["label"])])]),
270
- default: V(() => [i("div", Re, [i("div", Ie, [l(s, {
282
+ default: Y(() => [i("div", $e, [i("div", Ie, [l(s, {
271
283
  initials: m.value.user.name,
272
284
  size: "lg"
273
- }, null, 8, ["initials"]), i("div", Ee, [i("div", Oe, $(n(a)("hr.timesheet.employeeName")), 1), i("div", $e, $(m.value.user.name), 1)])]), i("div", Ae, [i("div", Ke, $(n(a)("hr.timesheet.update.checkIn")), 1), i("div", ze, [l(r, {
285
+ }, null, 8, ["initials"]), i("div", Ee, [i("div", Oe, O(n(a)("hr.timesheet.employeeName")), 1), i("div", Ae, O(m.value.user.name), 1)])]), i("div", Ke, [i("div", ze, O(n(a)("hr.timesheet.update.checkIn")), 1), i("div", Ne, [l(r, {
274
286
  modelValue: R.value,
275
287
  "onUpdate:modelValue": e[0] || (e[0] = (o) => R.value = o),
276
288
  disabled: !1,
277
289
  label: n(a)("hr.timesheet.update.date")
278
290
  }, null, 8, ["modelValue", "label"]), l(y, {
279
- modelValue: I.value,
280
- "onUpdate:modelValue": e[1] || (e[1] = (o) => I.value = o),
291
+ modelValue: $.value,
292
+ "onUpdate:modelValue": e[1] || (e[1] = (o) => $.value = o),
281
293
  label: n(a)("hr.timesheet.update.time")
282
- }, null, 8, ["modelValue", "label"])])]), i("div", Ne, [i("div", Ue, $(n(a)("hr.timesheet.update.checkOut")), 1), i("div", Be, [l(r, {
283
- modelValue: E.value,
284
- "onUpdate:modelValue": e[2] || (e[2] = (o) => E.value = o),
294
+ }, null, 8, ["modelValue", "label"])])]), i("div", Ue, [i("div", Be, O(n(a)("hr.timesheet.update.checkOut")), 1), i("div", Pe, [l(r, {
295
+ modelValue: I.value,
296
+ "onUpdate:modelValue": e[2] || (e[2] = (o) => I.value = o),
285
297
  disabled: !1,
286
298
  label: n(a)("hr.timesheet.update.date")
287
299
  }, null, 8, ["modelValue", "label"]), l(y, {
288
- modelValue: O.value,
289
- "onUpdate:modelValue": e[3] || (e[3] = (o) => O.value = o),
300
+ modelValue: E.value,
301
+ "onUpdate:modelValue": e[3] || (e[3] = (o) => E.value = o),
290
302
  label: n(a)("hr.timesheet.update.time")
291
- }, null, 8, ["modelValue", "label"])])]), K.value ? (D(), B("div", Pe, [l(w, {
303
+ }, null, 8, ["modelValue", "label"])])]), z.value ? (_(), P("div", je, [l(w, {
292
304
  color: "#FF3B30",
293
305
  name: "error",
294
306
  size: "sm"
295
- }), ve(" " + $(K.value), 1)])) : pe("", !0)])]),
307
+ }), fe(" " + O(z.value), 1)])) : ve("", !0)])]),
296
308
  _: 1
297
- }, 8, ["modelValue", "header"]), i("div", He, [i("div", Ge, [l(n(be), {
298
- modelValue: A.value,
299
- "onUpdate:modelValue": e[6] || (e[6] = (o) => A.value = o),
300
- "managable-only": "",
309
+ }, 8, ["modelValue", "header"]), i("div", Ge, [i("div", qe, [l(xe, {
310
+ modelValue: K.value,
311
+ "onUpdate:modelValue": e[6] || (e[6] = (o) => K.value = o),
301
312
  multiple: "",
313
+ items: te.value,
302
314
  variant: "dark",
315
+ "selected-prefix": n(a)("hr.role.columns.restaurants"),
316
+ placeholder: n(a)("hr.role.columns.restaurants"),
303
317
  class: "!w-auto pt-[3px]"
304
- }, null, 8, ["modelValue"]), i("div", qe, [l(ne, {
318
+ }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i("div", Je, [l(re, {
305
319
  modelValue: n(M),
306
- "onUpdate:modelValue": e[7] || (e[7] = (o) => fe(M) ? M.value = o : null),
320
+ "onUpdate:modelValue": e[7] || (e[7] = (o) => he(M) ? M.value = o : null),
307
321
  "show-predefined-range": ""
308
322
  }, {
309
- "trigger-button": V(() => [l(Q, {
310
- label: n(te)
323
+ "trigger-button": Y(() => [l(W, {
324
+ label: n(ae)
311
325
  }, null, 8, ["label"])]),
312
326
  _: 1
313
327
  }, 8, ["modelValue"]), l(p, {
314
328
  icon: "chevron_left",
315
329
  variant: "tertiary",
316
- onClick: e[8] || (e[8] = (o) => n(G)("subtract"))
330
+ onClick: e[8] || (e[8] = (o) => n(q)("subtract"))
317
331
  }), l(p, {
318
332
  icon: "chevron_right",
319
333
  variant: "tertiary",
320
- onClick: e[9] || (e[9] = (o) => n(G)("add"))
321
- })]), l(ie, {
334
+ onClick: e[9] || (e[9] = (o) => n(q)("add"))
335
+ })]), l(ue, {
322
336
  class: "pt-[3px]"
323
337
  }, {
324
- "menu-button": V(() => [l(Q, {
325
- label: _.value,
338
+ "menu-button": Y(() => [l(W, {
339
+ label: b.value,
326
340
  "right-icon": "keyboard_arrow_down"
327
341
  }, null, 8, ["label"])]),
328
- default: V(() => [(D(), B(Z, null, he(k, (o) => l(re, {
342
+ default: Y(() => [(_(), P(ee, null, ge(k, (o) => l(ie, {
329
343
  key: o.value,
330
344
  label: o.label,
331
- onClick: (Je) => f.value = o.value
345
+ onClick: (Qe) => f.value = o.value
332
346
  }, null, 8, ["label", "onClick"])), 64))]),
333
347
  _: 1
334
- }), l(ue), l(de, {
348
+ }), l(de), l(ce, {
335
349
  modelValue: c.value,
336
350
  "onUpdate:modelValue": e[10] || (e[10] = (o) => c.value = o),
337
351
  class: "w-[320px]",
338
352
  placeholder: n(a)("hr.timesheet.search.placeholder")
339
- }, null, 8, ["modelValue", "placeholder"])]), g.value.length === 0 && !L.value ? (D(), z(n(Se), {
353
+ }, null, 8, ["modelValue", "placeholder"])]), A.value.length === 0 && !L.value ? (_(), N(n(Se), {
340
354
  key: 0,
341
355
  title: n(a)("hr.timesheet.noData.title"),
342
356
  subtitle: ""
343
- }, null, 8, ["title"])) : (D(), z(xe, {
357
+ }, null, 8, ["title"])) : (_(), N(De, {
344
358
  key: 1,
345
359
  class: "w-full xs:px-16 overflow-auto"
346
360
  }, {
347
- default: V(() => [f.value === "listView" ? (D(), z(W, {
361
+ default: Y(() => [f.value === "listView" ? (_(), N(X, {
348
362
  key: 0,
349
363
  class: "min-w-[640px]",
350
- "column-defs": ae,
351
- "row-data": P.value,
352
- "page-size": P.value.length,
364
+ "column-defs": oe,
365
+ "row-data": j.value,
366
+ "page-size": j.value.length,
353
367
  loading: L.value,
354
368
  "pin-header-row": "",
355
369
  "hide-footer": "",
356
370
  "shrink-at": !1,
357
- onRowClick: e[11] || (e[11] = (o) => q(o.original))
358
- }, null, 8, ["row-data", "page-size", "loading"])) : (D(), z(W, {
371
+ onRowClick: e[11] || (e[11] = (o) => J(o.original))
372
+ }, null, 8, ["row-data", "page-size", "loading"])) : (_(), N(X, {
359
373
  key: 1,
360
374
  class: "min-w-[640px]",
361
- "column-defs": oe,
362
- "row-data": H.value,
363
- "page-size": g.value.length + H.value.length,
375
+ "column-defs": se,
376
+ "row-data": G.value,
377
+ "page-size": A.value.length + G.value.length,
364
378
  loading: L.value,
365
379
  "pin-header-row": "",
366
380
  "hide-footer": "",
367
381
  "shrink-at": !1,
368
- "expanded-state": U.value,
382
+ "expanded-state": B.value,
369
383
  "get-sub-row": (o) => o.timesheets,
370
- "onUpdate:expandedState": e[12] || (e[12] = (o) => U.value = o),
371
- onRowClick: e[13] || (e[13] = (o) => q(o.original))
384
+ "onUpdate:expandedState": e[12] || (e[12] = (o) => B.value = o),
385
+ onRowClick: e[13] || (e[13] = (o) => J(o.original))
372
386
  }, null, 8, ["row-data", "page-size", "loading", "expanded-state", "get-sub-row"]))]),
373
387
  _: 1
374
388
  }))])], 64);
@@ -376,5 +390,5 @@ const Re = {
376
390
  }
377
391
  });
378
392
  export {
379
- rt as default
393
+ ut as default
380
394
  };