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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/AuditLogList-Bsj-qg8n.js +1037 -0
  2. package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +58 -0
  3. package/dist/EmployeeList-Cy2ayCko.js +824 -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-CsUo2UeJ.js → Main-BGc6kNaR.js} +758 -761
  7. package/dist/{Main-D_dew1Zy.js → Main-CSMAtoMj.js} +181 -175
  8. package/dist/Main-D7bV8EuC.js +86 -0
  9. package/dist/PermissionSetList-CuHhDqWl.js +347 -0
  10. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CdWgTjZw.js +3443 -0
  11. package/dist/RoleList-e0WUqt4Y.js +545 -0
  12. package/dist/TeamMemberList-CpPa1KyV.js +1097 -0
  13. package/dist/{TimesheetList-Bu47lfyS.js → TimesheetList-tFjvFHqH.js} +132 -126
  14. package/dist/{app-rZIFa5rc.js → app-CL7rUfL3.js} +552 -504
  15. package/dist/app.js +1 -1
  16. package/dist/{dayjs.min-BGndyuOo.js → dayjs.min-ChdFPuFV.js} +1 -1
  17. package/dist/employee-kKV7UnHU.js +204 -0
  18. package/dist/{iteration-BOjSUDXb.js → iteration-BbD0nOgO.js} +9253 -9209
  19. package/dist/{lodash-C3mSRK8f.js → lodash-CDf3aG6G.js} +1 -1
  20. package/dist/{rule-CPun0Q97.js → rule-BJ-y3Sp8.js} +263 -265
  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 +1 -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-BKF3Ow4F.js → timesheet-BmV02Rkz.js} +2 -2
  42. package/dist/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/useAppStore-D8QAGZ02.js +171 -0
  44. package/dist/useDebounce-CWb5QR9G.js +28 -0
  45. package/dist/useDiscardConfirm-DPhEV6v0.js +157 -0
  46. package/dist/{useLoading-EAY7xVQ0.js → useLoading-KpcQw0p4.js} +1 -1
  47. package/dist/{useReportPermissions-C0Bay1Db.js → useReportPermissions-CmGJAz_N.js} +3 -3
  48. package/package.json +1 -1
  49. package/dist/AuditLogList-ayMV64G1.js +0 -980
  50. package/dist/EmployeeList-D_ZkY6oL.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-Dc9eZBpa.js +0 -85
  54. package/dist/PermissionSetList-CkRVYnaB.js +0 -341
  55. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DF26-RE9.js +0 -3480
  56. package/dist/RoleList-D6BdbJhj.js +0 -530
  57. package/dist/TeamMemberList-Cf82_HoM.js +0 -1114
  58. package/dist/TeamMemberList.vue_vue_type_style_index_0_scoped_473cbd86_lang--Ukpicpg.js +0 -34
  59. package/dist/employee-C9_9zcbo.js +0 -204
  60. package/dist/src/api/account/index.d.ts +0 -4
  61. package/dist/src/composables/useSupportedCountries.d.ts +0 -5
  62. package/dist/useAppStore-DBeAz_oF.js +0 -171
  63. package/dist/useDebounce-B8ZPVS5C.js +0 -15
  64. package/dist/useDiscardConfirm-BHni0LNu.js +0 -28
  65. package/dist/useSearch-B6WK1LBB.js +0 -15
@@ -1,129 +1,130 @@
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-BGndyuOo.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-rZIFa5rc.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 F, createCommentVNode as ve, toDisplayString as E, createTextVNode as fe, createBlock as N, isRef as he, renderList as ge, nextTick as we } from "vue";
2
+ import { d as v } from "./dayjs.min-ChdFPuFV.js";
3
+ import { useI18n as ye } 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-CL7rUfL3.js";
6
7
  import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
- import { u as ke } from "./useLoading-EAY7xVQ0.js";
8
- import { c as Ce, s as Ve } from "./iteration-BOjSUDXb.js";
9
- import { f as Fe } from "./utils-BZkjJbju.js";
10
- import { u as Ye } from "./employee-C9_9zcbo.js";
11
- import { u as Le } from "./timesheet-BKF3Ow4F.js";
12
- function Me(x, a) {
13
- return ["years", "months"].find((S) => {
14
- const k = x.startOf(S), f = x.endOf(S);
15
- return x.isSame(k, "day") && a.isSame(f, "day");
8
+ import { u as ke } from "./useLoading-KpcQw0p4.js";
9
+ import { u as Ve, c as Ce, s as Fe } from "./iteration-BbD0nOgO.js";
10
+ import { f as Ye } from "./utils-BZkjJbju.js";
11
+ import { u as Le } from "./employee-kKV7UnHU.js";
12
+ import { u as Me } from "./timesheet-BmV02Rkz.js";
13
+ function Te(x, a) {
14
+ return ["years", "months"].find((D) => {
15
+ const S = x.startOf(D), f = x.endOf(D);
16
+ return x.isSame(S, "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), Y = 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
+ }), D = g(() => ({
27
28
  startDate: new Date(a.value.startDate),
28
29
  endDate: new Date(a.value.endDate)
29
30
  }));
30
- 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);
31
+ function S(f) {
32
+ const b = v(a.value.startDate), c = v(a.value.endDate), h = Te(b, c), k = h === "days" ? c.diff(b, "days") + 1 : 1, V = f === "subtract" ? (C) => C.subtract(k, h) : (C) => C.add(k, 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: V(b).startOf(h).format("YYYY-MM-DD"),
35
+ endDate: V(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: D, dateRangeLabel: Y, setRange: S };
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"
43
- }, Ee = {
44
- class: "flex flex-col gap-4"
45
44
  }, Oe = {
45
+ class: "flex flex-col gap-4"
46
+ }, Ee = {
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
+ } = ye(), Y = be(), D = ke(Y), S = [{
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
- 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
- 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);
86
+ return (t = S.find((e) => e.value === f.value)) == null ? void 0 : t.label;
87
+ }), c = d(""), h = Me(), k = Le(), V = Ve(), C = g(() => k.employees.value), A = g(() => h.timesheets.value.filter((s) => !K.value || K.value.includes(s.restaurantId)).map((s) => {
88
+ var y;
89
+ const r = (y = V.restaurants.value.find((p) => p._id === s.restaurantId)) == null ? void 0 : y.profile.code, w = C.value.find((p) => p._id === s.user.id);
89
90
  return {
90
91
  ...s,
91
92
  restaurantCode: r,
92
93
  user: {
93
94
  ...s.user,
94
- code: y ? y.code : ""
95
+ code: w ? w.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 w = C.value.find((y) => y._id === r[0].user.id);
103
104
  return {
104
105
  key: s,
105
106
  user: r[0].user.name,
106
- code: y ? y.code : "",
107
+ code: w ? w.code : "",
107
108
  timesheets: r,
108
- total: Fe(r.reduce((w, p) => w + p.totalMin, 0))
109
+ total: Ye(r.reduce((y, p) => y + 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 we(), B.value = Object.fromEntries(Object.entries(new Array(H.value.length).fill(!0)));
125
126
  } catch (s) {
126
- F.open({
127
+ Y.open({
127
128
  title: s instanceof Error ? s.message : `${s}`,
128
129
  type: "error"
129
130
  });
@@ -131,18 +132,21 @@ 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
+ await V.readRestaurants(), k.employees.value.length === 0 && await k.readEmployees(), U();
136
137
  });
137
- const ee = we(), A = d(), {
138
+ const K = d(), te = g(() => V.restaurants.value.filter((t) => t.managable).map((t) => ({
139
+ label: `${t.profile.code ? `${t.profile.code} - ` : ""}${t.profile.name}`,
140
+ value: t._id
141
+ }))), {
138
142
  dateRange: M,
139
- dateRangeLabel: te,
140
- setRange: G
141
- } = Te();
142
- X(M, async () => {
143
- N();
143
+ dateRangeLabel: ae,
144
+ setRange: q
145
+ } = Re();
146
+ Z(M, async () => {
147
+ U();
144
148
  });
145
- const ae = [{
149
+ const oe = [{
146
150
  accessorKey: "user.code",
147
151
  size: 100,
148
152
  header: () => a("hr.employee.columns.code"),
@@ -177,7 +181,7 @@ const Re = {
177
181
  header: () => a("hr.timesheet.columns.duration"),
178
182
  cell: (t) => t.row.original.duration || "--",
179
183
  enableSorting: !0
180
- }], U = d({}), oe = [{
184
+ }], B = d({}), se = [{
181
185
  accessorKey: "code",
182
186
  size: 100,
183
187
  header: () => a("hr.employee.columns.code"),
@@ -196,7 +200,7 @@ const Re = {
196
200
  onClick: (r) => {
197
201
  r.stopPropagation(), t.row.getToggleExpandedHandler()(r);
198
202
  }
199
- }, [l(De.FmButton, {
203
+ }, [l(_e.FmButton, {
200
204
  variant: "tertiary",
201
205
  icon: s ? "keyboard_arrow_up" : "keyboard_arrow_down"
202
206
  }, null)]), e.user]);
@@ -229,146 +233,148 @@ const Re = {
229
233
  },
230
234
  enableSorting: !1
231
235
  }], 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;
236
+ function J(t) {
237
+ 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"), O.value = v(m.value.endedAt || m.value.startedAt).format("HH:mm"), T.value = !0;
234
238
  }
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);
239
+ const R = d(), $ = d(), I = d(), O = d(), m = d(), z = d("");
240
+ async function le() {
241
+ const t = Q(R.value, $.value), e = Q(I.value, O.value);
238
242
  if (v(t).isAfter(e)) {
239
- K.value = a("hr.timesheet.checkOutMustBeforeCheckIn");
243
+ z.value = a("hr.timesheet.checkOutMustBeforeCheckIn");
240
244
  return;
241
245
  }
242
- S.minor(async () => {
246
+ D.minor(async () => {
243
247
  await h.updateTimesheet(m.value, t, e);
244
248
  }, {
245
249
  successMessage: a("hr.timesheet.update.successMessage")
246
- }), N(), T.value = !1;
250
+ }), U(), T.value = !1;
247
251
  }
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 = "");
252
+ const Q = (t, e) => v(t).set("h", parseInt(e.split(":")[0])).set("m", parseInt(e.split(":")[1])).toISOString();
253
+ return Z([R, I, $, O], ([t, e, s, r]) => {
254
+ (t || e || s || r) && (z.value = "");
251
255
  }), (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, {
256
+ const s = u("FmAvatar"), r = u("FmDatePicker"), w = u("FmTimePicker"), y = 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");
257
+ return _(), P(ee, null, [l(ne, {
254
258
  modelValue: T.value,
255
259
  "onUpdate:modelValue": e[5] || (e[5] = (o) => T.value = o),
256
260
  "dismiss-away": "",
257
261
  header: n(a)("hr.timesheet.update.title")
258
262
  }, {
259
- "side-sheet-footer": V(() => [i("div", je, [l(p, {
263
+ "side-sheet-footer": F(() => [i("div", He, [l(p, {
260
264
  label: n(a)("common.update"),
261
265
  size: "md",
262
266
  variant: "primary",
263
- onClick: se
267
+ onClick: le
264
268
  }, null, 8, ["label"]), l(p, {
265
269
  label: n(a)("common.cancel"),
266
270
  size: "md",
267
271
  variant: "secondary",
268
272
  onClick: e[4] || (e[4] = (o) => T.value = !1)
269
273
  }, null, 8, ["label"])])]),
270
- default: V(() => [i("div", Re, [i("div", Ie, [l(s, {
274
+ default: F(() => [i("div", $e, [i("div", Ie, [l(s, {
271
275
  initials: m.value.user.name,
272
276
  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, {
277
+ }, null, 8, ["initials"]), i("div", Oe, [i("div", Ee, E(n(a)("hr.timesheet.employeeName")), 1), i("div", Ae, E(m.value.user.name), 1)])]), i("div", Ke, [i("div", ze, E(n(a)("hr.timesheet.update.checkIn")), 1), i("div", Ne, [l(r, {
274
278
  modelValue: R.value,
275
279
  "onUpdate:modelValue": e[0] || (e[0] = (o) => R.value = o),
276
280
  disabled: !1,
277
281
  label: n(a)("hr.timesheet.update.date")
278
- }, null, 8, ["modelValue", "label"]), l(y, {
279
- modelValue: I.value,
280
- "onUpdate:modelValue": e[1] || (e[1] = (o) => I.value = o),
282
+ }, null, 8, ["modelValue", "label"]), l(w, {
283
+ modelValue: $.value,
284
+ "onUpdate:modelValue": e[1] || (e[1] = (o) => $.value = o),
281
285
  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),
286
+ }, null, 8, ["modelValue", "label"])])]), i("div", Ue, [i("div", Be, E(n(a)("hr.timesheet.update.checkOut")), 1), i("div", Pe, [l(r, {
287
+ modelValue: I.value,
288
+ "onUpdate:modelValue": e[2] || (e[2] = (o) => I.value = o),
285
289
  disabled: !1,
286
290
  label: n(a)("hr.timesheet.update.date")
287
- }, null, 8, ["modelValue", "label"]), l(y, {
291
+ }, null, 8, ["modelValue", "label"]), l(w, {
288
292
  modelValue: O.value,
289
293
  "onUpdate:modelValue": e[3] || (e[3] = (o) => O.value = o),
290
294
  label: n(a)("hr.timesheet.update.time")
291
- }, null, 8, ["modelValue", "label"])])]), K.value ? (D(), B("div", Pe, [l(w, {
295
+ }, null, 8, ["modelValue", "label"])])]), z.value ? (_(), P("div", je, [l(y, {
292
296
  color: "#FF3B30",
293
297
  name: "error",
294
298
  size: "sm"
295
- }), ve(" " + $(K.value), 1)])) : pe("", !0)])]),
299
+ }), fe(" " + E(z.value), 1)])) : ve("", !0)])]),
296
300
  _: 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": "",
301
+ }, 8, ["modelValue", "header"]), i("div", Ge, [i("div", qe, [l(xe, {
302
+ modelValue: K.value,
303
+ "onUpdate:modelValue": e[6] || (e[6] = (o) => K.value = o),
301
304
  multiple: "",
305
+ items: te.value,
302
306
  variant: "dark",
307
+ "selected-prefix": n(a)("hr.role.columns.restaurants"),
308
+ placeholder: n(a)("hr.role.columns.restaurants"),
303
309
  class: "!w-auto pt-[3px]"
304
- }, null, 8, ["modelValue"]), i("div", qe, [l(ne, {
310
+ }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i("div", Je, [l(re, {
305
311
  modelValue: n(M),
306
- "onUpdate:modelValue": e[7] || (e[7] = (o) => fe(M) ? M.value = o : null),
312
+ "onUpdate:modelValue": e[7] || (e[7] = (o) => he(M) ? M.value = o : null),
307
313
  "show-predefined-range": ""
308
314
  }, {
309
- "trigger-button": V(() => [l(Q, {
310
- label: n(te)
315
+ "trigger-button": F(() => [l(W, {
316
+ label: n(ae)
311
317
  }, null, 8, ["label"])]),
312
318
  _: 1
313
319
  }, 8, ["modelValue"]), l(p, {
314
320
  icon: "chevron_left",
315
321
  variant: "tertiary",
316
- onClick: e[8] || (e[8] = (o) => n(G)("subtract"))
322
+ onClick: e[8] || (e[8] = (o) => n(q)("subtract"))
317
323
  }), l(p, {
318
324
  icon: "chevron_right",
319
325
  variant: "tertiary",
320
- onClick: e[9] || (e[9] = (o) => n(G)("add"))
321
- })]), l(ie, {
326
+ onClick: e[9] || (e[9] = (o) => n(q)("add"))
327
+ })]), l(ue, {
322
328
  class: "pt-[3px]"
323
329
  }, {
324
- "menu-button": V(() => [l(Q, {
325
- label: _.value,
330
+ "menu-button": F(() => [l(W, {
331
+ label: b.value,
326
332
  "right-icon": "keyboard_arrow_down"
327
333
  }, null, 8, ["label"])]),
328
- default: V(() => [(D(), B(Z, null, he(k, (o) => l(re, {
334
+ default: F(() => [(_(), P(ee, null, ge(S, (o) => l(ie, {
329
335
  key: o.value,
330
336
  label: o.label,
331
- onClick: (Je) => f.value = o.value
337
+ onClick: (Qe) => f.value = o.value
332
338
  }, null, 8, ["label", "onClick"])), 64))]),
333
339
  _: 1
334
- }), l(ue), l(de, {
340
+ }), l(de), l(ce, {
335
341
  modelValue: c.value,
336
342
  "onUpdate:modelValue": e[10] || (e[10] = (o) => c.value = o),
337
343
  class: "w-[320px]",
338
344
  placeholder: n(a)("hr.timesheet.search.placeholder")
339
- }, null, 8, ["modelValue", "placeholder"])]), g.value.length === 0 && !L.value ? (D(), z(n(Se), {
345
+ }, null, 8, ["modelValue", "placeholder"])]), A.value.length === 0 && !L.value ? (_(), N(n(Se), {
340
346
  key: 0,
341
347
  title: n(a)("hr.timesheet.noData.title"),
342
348
  subtitle: ""
343
- }, null, 8, ["title"])) : (D(), z(xe, {
349
+ }, null, 8, ["title"])) : (_(), N(De, {
344
350
  key: 1,
345
351
  class: "w-full xs:px-16 overflow-auto"
346
352
  }, {
347
- default: V(() => [f.value === "listView" ? (D(), z(W, {
353
+ default: F(() => [f.value === "listView" ? (_(), N(X, {
348
354
  key: 0,
349
355
  class: "min-w-[640px]",
350
- "column-defs": ae,
351
- "row-data": P.value,
352
- "page-size": P.value.length,
356
+ "column-defs": oe,
357
+ "row-data": j.value,
358
+ "page-size": j.value.length,
353
359
  loading: L.value,
354
360
  "pin-header-row": "",
355
361
  "hide-footer": "",
356
362
  "shrink-at": !1,
357
- onRowClick: e[11] || (e[11] = (o) => q(o.original))
358
- }, null, 8, ["row-data", "page-size", "loading"])) : (D(), z(W, {
363
+ onRowClick: e[11] || (e[11] = (o) => J(o.original))
364
+ }, null, 8, ["row-data", "page-size", "loading"])) : (_(), N(X, {
359
365
  key: 1,
360
366
  class: "min-w-[640px]",
361
- "column-defs": oe,
362
- "row-data": H.value,
363
- "page-size": g.value.length + H.value.length,
367
+ "column-defs": se,
368
+ "row-data": G.value,
369
+ "page-size": A.value.length + G.value.length,
364
370
  loading: L.value,
365
371
  "pin-header-row": "",
366
372
  "hide-footer": "",
367
373
  "shrink-at": !1,
368
- "expanded-state": U.value,
374
+ "expanded-state": B.value,
369
375
  "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))
376
+ "onUpdate:expandedState": e[12] || (e[12] = (o) => B.value = o),
377
+ onRowClick: e[13] || (e[13] = (o) => J(o.original))
372
378
  }, null, 8, ["row-data", "page-size", "loading", "expanded-state", "get-sub-row"]))]),
373
379
  _: 1
374
380
  }))])], 64);
@@ -376,5 +382,5 @@ const Re = {
376
382
  }
377
383
  });
378
384
  export {
379
- rt as default
385
+ ut as default
380
386
  };