@feedmepos/mf-hrm-portal 2.0.18-dev.2 → 2.0.18-dev.3

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 (64) hide show
  1. package/dist/AuditLogList-CPG5uNyJ.js +980 -0
  2. package/dist/EmployeeList-CyF7_ax8.js +736 -0
  3. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +71 -0
  4. package/dist/HorizontalSplitter-o860F4xM.js +12 -0
  5. package/dist/{Main-BbOMNP31.js → Main-BwMCrfKS.js} +761 -758
  6. package/dist/Main-S5kR_LNV.js +85 -0
  7. package/dist/{Main-dqgR1UXY.js → Main-y2ea2vuC.js} +175 -181
  8. package/dist/PermissionSetList-C5oGIsQP.js +341 -0
  9. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-VaY4Fg_h.js +3480 -0
  10. package/dist/RoleList-C95uKJ8O.js +530 -0
  11. package/dist/TeamMemberList-CEqYCWn6.js +1114 -0
  12. package/dist/TeamMemberList.vue_vue_type_style_index_0_scoped_473cbd86_lang-DJ-znUI3.js +34 -0
  13. package/dist/{TimesheetList-D29EFj1Q.js → TimesheetList-DXtxCeNh.js} +126 -132
  14. package/dist/{app-SadE2J6-.js → app-BwtXEFgW.js} +711 -759
  15. package/dist/app.js +1 -1
  16. package/dist/{dayjs.min-DKCxxK08.js → dayjs.min-uVMAR_wK.js} +1 -1
  17. package/dist/employee-ImeXt_Q7.js +204 -0
  18. package/dist/{iteration-QZxp7XeE.js → iteration-BjJgU8cS.js} +4688 -4732
  19. package/dist/{lodash-DrksHyHu.js → lodash-CSw3Ei7_.js} +1 -1
  20. package/dist/{rule-CSsgDC6F.js → rule-B6wBPpcM.js} +265 -263
  21. package/dist/src/api/account/index.d.ts +4 -0
  22. package/dist/src/api/audit-log/index.d.ts +0 -9
  23. package/dist/src/api/index.d.ts +1 -0
  24. package/dist/src/components/CheckboxInput.vue.d.ts +1 -1
  25. package/dist/src/components/CollapsibleWrapper.vue.d.ts +0 -2
  26. package/dist/src/composables/useBasePermission.d.ts +0 -1
  27. package/dist/src/composables/useRestaurantMap.d.ts +329 -2
  28. package/dist/src/composables/useSupportedCountries.d.ts +5 -0
  29. package/dist/src/stores/role.d.ts +7 -7
  30. package/dist/src/stores/team.d.ts +6 -6
  31. package/dist/src/types/restaurant.d.ts +0 -11
  32. package/dist/src/types/team.d.ts +1 -1
  33. package/dist/src/views/hr/locales/index.d.ts +0 -16
  34. package/dist/src/views/team/components/BasePermission.vue.d.ts +7 -3
  35. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +2 -2
  36. package/dist/src/views/team/locales/index.d.ts +0 -32
  37. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -5
  38. package/dist/style.css +1 -1
  39. package/dist/{timesheet-sBe_HCZh.js → timesheet-D1f9XDxj.js} +2 -2
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/useAppStore-D7jswOfq.js +171 -0
  42. package/dist/useDebounce-B8ZPVS5C.js +15 -0
  43. package/dist/useDiscardConfirm-BHni0LNu.js +28 -0
  44. package/dist/{useLoading-PTqnaz_W.js → useLoading-kFlAIf6Y.js} +1 -1
  45. package/dist/{useReportPermissions-C3Uzu7vB.js → useReportPermissions-ClWD1GSr.js} +3 -3
  46. package/dist/useSearch-B6WK1LBB.js +15 -0
  47. package/package.json +1 -1
  48. package/dist/AuditLogList-D4E8pss5.js +0 -1037
  49. package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +0 -58
  50. package/dist/EmployeeList-BfJO89pN.js +0 -827
  51. package/dist/FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js +0 -45
  52. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
  53. package/dist/Main-XmxzThcC.js +0 -86
  54. package/dist/PermissionSetList-DO0PRS6Z.js +0 -347
  55. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DL4_xvBZ.js +0 -3443
  56. package/dist/RoleList-DB3NfUYF.js +0 -545
  57. package/dist/TeamMemberList-4hEx6L5r.js +0 -1090
  58. package/dist/employee-3KJs872J.js +0 -204
  59. package/dist/src/api/restaurant/index.d.ts +0 -5
  60. package/dist/src/components/Skeleton.vue.d.ts +0 -7
  61. package/dist/src/stores/restaurant.d.ts +0 -181
  62. package/dist/useAppStore-BDADkWuX.js +0 -171
  63. package/dist/useDebounce-CWb5QR9G.js +0 -28
  64. package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
@@ -1,130 +1,129 @@
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-DKCxxK08.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-SadE2J6-.js";
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-uVMAR_wK.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-BwtXEFgW.js";
7
6
  import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
8
- import { u as ke } from "./useLoading-PTqnaz_W.js";
9
- import { u as Ve, c as Ce, s as Fe } from "./iteration-QZxp7XeE.js";
10
- import { f as Ye } from "./utils-BZkjJbju.js";
11
- import { u as Le } from "./employee-3KJs872J.js";
12
- import { u as Me } from "./timesheet-sBe_HCZh.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");
7
+ import { u as ke } from "./useLoading-kFlAIf6Y.js";
8
+ import { c as Ce, s as Ve } from "./iteration-BjJgU8cS.js";
9
+ import { f as Fe } from "./utils-BZkjJbju.js";
10
+ import { u as Ye } from "./employee-ImeXt_Q7.js";
11
+ import { u as Le } from "./timesheet-D1f9XDxj.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");
17
16
  }) || "days";
18
17
  }
19
- function Re() {
18
+ function Te() {
20
19
  const x = {
21
20
  startDate: v().format("YYYY-MM-DD"),
22
21
  endDate: v().format("YYYY-MM-DD")
23
- }, a = d(x), Y = g(() => {
22
+ }, a = d(x), F = b(() => {
24
23
  if (!a.value) return "No dates selected.";
25
- const f = a.value.startDate ?? "Start", b = a.value.endDate ?? "End";
26
- return `${f} - ${b}`;
27
- }), D = g(() => ({
24
+ const f = a.value.startDate ?? "Start", _ = a.value.endDate ?? "End";
25
+ return `${f} - ${_}`;
26
+ }), S = b(() => ({
28
27
  startDate: new Date(a.value.startDate),
29
28
  endDate: new Date(a.value.endDate)
30
29
  }));
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);
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);
33
32
  a.value = {
34
- startDate: V(b).startOf(h).format("YYYY-MM-DD"),
35
- endDate: V(c).endOf(h).format("YYYY-MM-DD")
33
+ startDate: Y(_).startOf(h).format("YYYY-MM-DD"),
34
+ endDate: Y(c).endOf(h).format("YYYY-MM-DD")
36
35
  };
37
36
  }
38
- return { dateRange: a, parsedDateRange: D, dateRangeLabel: Y, setRange: S };
37
+ return { dateRange: a, parsedDateRange: S, dateRangeLabel: F, setRange: k };
39
38
  }
40
- const $e = {
39
+ const Re = {
41
40
  class: "my-16 flex w-[350px] flex-col gap-40"
42
41
  }, Ie = {
43
42
  class: "flex gap-16"
44
- }, Oe = {
45
- class: "flex flex-col gap-4"
46
43
  }, Ee = {
44
+ class: "flex flex-col gap-4"
45
+ }, Oe = {
47
46
  class: "fm-typo-body-md-400 text-fm-color-typo-secondary"
48
- }, Ae = {
47
+ }, $e = {
49
48
  class: "fm-typo-body-md-700 text-fm-color-typo-primary"
50
- }, Ke = {
49
+ }, Ae = {
51
50
  class: "flex flex-col gap-8"
52
- }, ze = {
51
+ }, Ke = {
53
52
  class: "fm-typo-body-xl-700"
54
- }, Ne = {
53
+ }, ze = {
55
54
  class: "flex flex-col gap-24"
56
- }, Ue = {
55
+ }, Ne = {
57
56
  class: "flex flex-col gap-8"
58
- }, Be = {
57
+ }, Ue = {
59
58
  class: "fm-typo-body-xl-700"
60
- }, Pe = {
59
+ }, Be = {
61
60
  class: "flex flex-col gap-24"
62
- }, je = {
61
+ }, Pe = {
63
62
  key: 0,
64
63
  class: "fm-typo-body-sm-400 text-fm-color-typo-error mt-1 flex items-center gap-4"
65
- }, He = {
64
+ }, je = {
66
65
  class: "flex items-center justify-start gap-8"
67
- }, Ge = {
66
+ }, He = {
68
67
  class: "space-y-8"
69
- }, qe = {
68
+ }, Ge = {
70
69
  class: "flex items-start gap-8 flex-wrap xs:px-16"
71
- }, Je = {
70
+ }, qe = {
72
71
  class: "flex items-center gap-8"
73
- }, ut = /* @__PURE__ */ me({
72
+ }, rt = /* @__PURE__ */ ce({
74
73
  __name: "TimesheetList",
75
74
  setup(x) {
76
75
  const {
77
76
  t: a
78
- } = ye(), Y = be(), D = ke(Y), S = [{
77
+ } = ye(), F = _e(), S = ke(F), k = [{
79
78
  label: a("hr.timesheet.listView"),
80
79
  value: "listView"
81
80
  }, {
82
81
  label: a("hr.timesheet.userView"),
83
82
  value: "userView"
84
- }], f = d("listView"), b = g(() => {
83
+ }], f = d("listView"), _ = b(() => {
85
84
  var t;
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);
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);
90
89
  return {
91
90
  ...s,
92
91
  restaurantCode: r,
93
92
  user: {
94
93
  ...s.user,
95
- code: w ? w.code : ""
94
+ code: y ? y.code : ""
96
95
  }
97
96
  };
98
- })), j = g(() => A.value.filter((t) => {
97
+ })), P = b(() => g.value.filter((t) => {
99
98
  var e, s;
100
99
  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()));
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);
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);
104
103
  return {
105
104
  key: s,
106
105
  user: r[0].user.name,
107
- code: w ? w.code : "",
106
+ code: y ? y.code : "",
108
107
  timesheets: r,
109
- total: Ye(r.reduce((y, p) => y + p.totalMin, 0))
108
+ total: Fe(r.reduce((w, p) => w + p.totalMin, 0))
110
109
  };
111
110
  });
112
- return Fe(e, {
111
+ return Ve(e, {
113
112
  selector: "user"
114
113
  });
115
- }), G = g(() => H.value.filter((t) => {
114
+ }), H = b(() => j.value.filter((t) => {
116
115
  var e;
117
116
  return t.user.toLowerCase().includes(c.value.toLowerCase()) || ((e = t.code) == null ? void 0 : e.toLowerCase().includes(c.value.toLowerCase()));
118
- })), L = d(!1), U = async () => {
117
+ })), L = d(!1), N = async () => {
119
118
  const {
120
119
  startDate: t,
121
120
  endDate: e
122
121
  } = M.value;
123
122
  L.value = !0;
124
123
  try {
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)));
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)));
126
125
  } catch (s) {
127
- Y.open({
126
+ F.open({
128
127
  title: s instanceof Error ? s.message : `${s}`,
129
128
  type: "error"
130
129
  });
@@ -132,21 +131,18 @@ const $e = {
132
131
  L.value = !1;
133
132
  }
134
133
  };
135
- pe(async () => {
136
- await V.readRestaurants(), k.employees.value.length === 0 && await k.readEmployees(), U();
134
+ me(async () => {
135
+ C.employees.value.length === 0 && await C.readEmployees(), N();
137
136
  });
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
- }))), {
137
+ const ee = we(), A = d(), {
142
138
  dateRange: M,
143
- dateRangeLabel: ae,
144
- setRange: q
145
- } = Re();
146
- Z(M, async () => {
147
- U();
139
+ dateRangeLabel: te,
140
+ setRange: G
141
+ } = Te();
142
+ X(M, async () => {
143
+ N();
148
144
  });
149
- const oe = [{
145
+ const ae = [{
150
146
  accessorKey: "user.code",
151
147
  size: 100,
152
148
  header: () => a("hr.employee.columns.code"),
@@ -181,7 +177,7 @@ const $e = {
181
177
  header: () => a("hr.timesheet.columns.duration"),
182
178
  cell: (t) => t.row.original.duration || "--",
183
179
  enableSorting: !0
184
- }], B = d({}), se = [{
180
+ }], U = d({}), oe = [{
185
181
  accessorKey: "code",
186
182
  size: 100,
187
183
  header: () => a("hr.employee.columns.code"),
@@ -200,7 +196,7 @@ const $e = {
200
196
  onClick: (r) => {
201
197
  r.stopPropagation(), t.row.getToggleExpandedHandler()(r);
202
198
  }
203
- }, [l(_e.FmButton, {
199
+ }, [l(De.FmButton, {
204
200
  variant: "tertiary",
205
201
  icon: s ? "keyboard_arrow_up" : "keyboard_arrow_down"
206
202
  }, null)]), e.user]);
@@ -233,148 +229,146 @@ const $e = {
233
229
  },
234
230
  enableSorting: !1
235
231
  }], T = d(!1);
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;
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;
238
234
  }
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);
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);
242
238
  if (v(t).isAfter(e)) {
243
- z.value = a("hr.timesheet.checkOutMustBeforeCheckIn");
239
+ K.value = a("hr.timesheet.checkOutMustBeforeCheckIn");
244
240
  return;
245
241
  }
246
- D.minor(async () => {
242
+ S.minor(async () => {
247
243
  await h.updateTimesheet(m.value, t, e);
248
244
  }, {
249
245
  successMessage: a("hr.timesheet.update.successMessage")
250
- }), U(), T.value = !1;
246
+ }), N(), T.value = !1;
251
247
  }
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 = "");
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 = "");
255
251
  }), (t, e) => {
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, {
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, {
258
254
  modelValue: T.value,
259
255
  "onUpdate:modelValue": e[5] || (e[5] = (o) => T.value = o),
260
256
  "dismiss-away": "",
261
257
  header: n(a)("hr.timesheet.update.title")
262
258
  }, {
263
- "side-sheet-footer": F(() => [i("div", He, [l(p, {
259
+ "side-sheet-footer": V(() => [i("div", je, [l(p, {
264
260
  label: n(a)("common.update"),
265
261
  size: "md",
266
262
  variant: "primary",
267
- onClick: le
263
+ onClick: se
268
264
  }, null, 8, ["label"]), l(p, {
269
265
  label: n(a)("common.cancel"),
270
266
  size: "md",
271
267
  variant: "secondary",
272
268
  onClick: e[4] || (e[4] = (o) => T.value = !1)
273
269
  }, null, 8, ["label"])])]),
274
- default: F(() => [i("div", $e, [i("div", Ie, [l(s, {
270
+ default: V(() => [i("div", Re, [i("div", Ie, [l(s, {
275
271
  initials: m.value.user.name,
276
272
  size: "lg"
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, {
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, {
278
274
  modelValue: R.value,
279
275
  "onUpdate:modelValue": e[0] || (e[0] = (o) => R.value = o),
280
276
  disabled: !1,
281
277
  label: n(a)("hr.timesheet.update.date")
282
- }, null, 8, ["modelValue", "label"]), l(w, {
283
- modelValue: $.value,
284
- "onUpdate:modelValue": e[1] || (e[1] = (o) => $.value = o),
285
- label: n(a)("hr.timesheet.update.time")
286
- }, null, 8, ["modelValue", "label"])])]), i("div", Ue, [i("div", Be, E(n(a)("hr.timesheet.update.checkOut")), 1), i("div", Pe, [l(r, {
278
+ }, null, 8, ["modelValue", "label"]), l(y, {
287
279
  modelValue: I.value,
288
- "onUpdate:modelValue": e[2] || (e[2] = (o) => I.value = o),
280
+ "onUpdate:modelValue": e[1] || (e[1] = (o) => I.value = o),
281
+ 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),
289
285
  disabled: !1,
290
286
  label: n(a)("hr.timesheet.update.date")
291
- }, null, 8, ["modelValue", "label"]), l(w, {
287
+ }, null, 8, ["modelValue", "label"]), l(y, {
292
288
  modelValue: O.value,
293
289
  "onUpdate:modelValue": e[3] || (e[3] = (o) => O.value = o),
294
290
  label: n(a)("hr.timesheet.update.time")
295
- }, null, 8, ["modelValue", "label"])])]), z.value ? (_(), P("div", je, [l(y, {
291
+ }, null, 8, ["modelValue", "label"])])]), K.value ? (D(), B("div", Pe, [l(w, {
296
292
  color: "#FF3B30",
297
293
  name: "error",
298
294
  size: "sm"
299
- }), fe(" " + E(z.value), 1)])) : ve("", !0)])]),
295
+ }), ve(" " + $(K.value), 1)])) : pe("", !0)])]),
300
296
  _: 1
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),
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": "",
304
301
  multiple: "",
305
- items: te.value,
306
302
  variant: "dark",
307
- "selected-prefix": n(a)("hr.role.columns.restaurants"),
308
- placeholder: n(a)("hr.role.columns.restaurants"),
309
303
  class: "!w-auto pt-[3px]"
310
- }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), i("div", Je, [l(re, {
304
+ }, null, 8, ["modelValue"]), i("div", qe, [l(ne, {
311
305
  modelValue: n(M),
312
- "onUpdate:modelValue": e[7] || (e[7] = (o) => he(M) ? M.value = o : null),
306
+ "onUpdate:modelValue": e[7] || (e[7] = (o) => fe(M) ? M.value = o : null),
313
307
  "show-predefined-range": ""
314
308
  }, {
315
- "trigger-button": F(() => [l(W, {
316
- label: n(ae)
309
+ "trigger-button": V(() => [l(Q, {
310
+ label: n(te)
317
311
  }, null, 8, ["label"])]),
318
312
  _: 1
319
313
  }, 8, ["modelValue"]), l(p, {
320
314
  icon: "chevron_left",
321
315
  variant: "tertiary",
322
- onClick: e[8] || (e[8] = (o) => n(q)("subtract"))
316
+ onClick: e[8] || (e[8] = (o) => n(G)("subtract"))
323
317
  }), l(p, {
324
318
  icon: "chevron_right",
325
319
  variant: "tertiary",
326
- onClick: e[9] || (e[9] = (o) => n(q)("add"))
327
- })]), l(ue, {
320
+ onClick: e[9] || (e[9] = (o) => n(G)("add"))
321
+ })]), l(ie, {
328
322
  class: "pt-[3px]"
329
323
  }, {
330
- "menu-button": F(() => [l(W, {
331
- label: b.value,
324
+ "menu-button": V(() => [l(Q, {
325
+ label: _.value,
332
326
  "right-icon": "keyboard_arrow_down"
333
327
  }, null, 8, ["label"])]),
334
- default: F(() => [(_(), P(ee, null, ge(S, (o) => l(ie, {
328
+ default: V(() => [(D(), B(Z, null, he(k, (o) => l(re, {
335
329
  key: o.value,
336
330
  label: o.label,
337
- onClick: (Qe) => f.value = o.value
331
+ onClick: (Je) => f.value = o.value
338
332
  }, null, 8, ["label", "onClick"])), 64))]),
339
333
  _: 1
340
- }), l(de), l(ce, {
334
+ }), l(ue), l(de, {
341
335
  modelValue: c.value,
342
336
  "onUpdate:modelValue": e[10] || (e[10] = (o) => c.value = o),
343
337
  class: "w-[320px]",
344
338
  placeholder: n(a)("hr.timesheet.search.placeholder")
345
- }, null, 8, ["modelValue", "placeholder"])]), A.value.length === 0 && !L.value ? (_(), N(n(Se), {
339
+ }, null, 8, ["modelValue", "placeholder"])]), g.value.length === 0 && !L.value ? (D(), z(n(Se), {
346
340
  key: 0,
347
341
  title: n(a)("hr.timesheet.noData.title"),
348
342
  subtitle: ""
349
- }, null, 8, ["title"])) : (_(), N(De, {
343
+ }, null, 8, ["title"])) : (D(), z(xe, {
350
344
  key: 1,
351
345
  class: "w-full xs:px-16 overflow-auto"
352
346
  }, {
353
- default: F(() => [f.value === "listView" ? (_(), N(X, {
347
+ default: V(() => [f.value === "listView" ? (D(), z(W, {
354
348
  key: 0,
355
349
  class: "min-w-[640px]",
356
- "column-defs": oe,
357
- "row-data": j.value,
358
- "page-size": j.value.length,
350
+ "column-defs": ae,
351
+ "row-data": P.value,
352
+ "page-size": P.value.length,
359
353
  loading: L.value,
360
354
  "pin-header-row": "",
361
355
  "hide-footer": "",
362
356
  "shrink-at": !1,
363
- onRowClick: e[11] || (e[11] = (o) => J(o.original))
364
- }, null, 8, ["row-data", "page-size", "loading"])) : (_(), N(X, {
357
+ onRowClick: e[11] || (e[11] = (o) => q(o.original))
358
+ }, null, 8, ["row-data", "page-size", "loading"])) : (D(), z(W, {
365
359
  key: 1,
366
360
  class: "min-w-[640px]",
367
- "column-defs": se,
368
- "row-data": G.value,
369
- "page-size": A.value.length + G.value.length,
361
+ "column-defs": oe,
362
+ "row-data": H.value,
363
+ "page-size": g.value.length + H.value.length,
370
364
  loading: L.value,
371
365
  "pin-header-row": "",
372
366
  "hide-footer": "",
373
367
  "shrink-at": !1,
374
- "expanded-state": B.value,
368
+ "expanded-state": U.value,
375
369
  "get-sub-row": (o) => o.timesheets,
376
- "onUpdate:expandedState": e[12] || (e[12] = (o) => B.value = o),
377
- onRowClick: e[13] || (e[13] = (o) => J(o.original))
370
+ "onUpdate:expandedState": e[12] || (e[12] = (o) => U.value = o),
371
+ onRowClick: e[13] || (e[13] = (o) => q(o.original))
378
372
  }, null, 8, ["row-data", "page-size", "loading", "expanded-state", "get-sub-row"]))]),
379
373
  _: 1
380
374
  }))])], 64);
@@ -382,5 +376,5 @@ const $e = {
382
376
  }
383
377
  });
384
378
  export {
385
- ut as default
379
+ rt as default
386
380
  };