@feedmepos/mf-hrm-portal 2.0.11 → 2.0.12-dev
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.
- package/dist/AuditLogList-Am6PW6qN.js +941 -0
- package/dist/EmployeeList-00LF0l6U.js +696 -0
- package/dist/{Main-SeHua_qu.js → Main-BC_y5Gzg.js} +4 -4
- package/dist/{Main-C-iGHHd0.js → Main-BY_V1guq.js} +2469 -2459
- package/dist/{Main-Dsuhh6Fk.js → Main-Chau30wK.js} +8 -9
- package/dist/{PermissionSetList-BncaRNzo.js → PermissionSetList-CDUFrGRE.js} +124 -128
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang--O2VRpc8.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CGIontQw.js} +950 -950
- package/dist/RoleList-BVQ4zkA8.js +519 -0
- package/dist/TeamMemberList-D65MpqIr.js +1098 -0
- package/dist/{TimesheetList-B1-VPwJq.js → TimesheetList-Dc295zCI.js} +74 -74
- package/dist/{app-DpmQDU7C.js → app-Iv5hLrRX.js} +50 -47
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-BJfcKBYO.js → dayjs.min-CJGjjQIJ.js} +1 -1
- package/dist/employee-C2Qhr8xO.js +207 -0
- package/dist/{index-F3OZA8nn.js → index-5ziPpN4I.js} +107 -84
- package/dist/{index-UgV84dZR.js → index-DzRWjF3a.js} +1 -1
- package/dist/{iteration-CF55rP35.js → iteration-L8TLGaCI.js} +489 -477
- package/dist/{lodash-CFUqrzKZ.js → lodash-Bbes-RWy.js} +1 -1
- package/dist/src/api/employee/index.d.ts +9 -8
- package/dist/src/api/team/index.d.ts +3 -1
- package/dist/src/composables/useDebounce.d.ts +9 -0
- package/dist/src/stores/employee.d.ts +515 -6
- package/dist/src/stores/team.d.ts +6 -0
- package/dist/src/types/employee.d.ts +35 -1
- package/dist/src/types/team.d.ts +18 -2
- package/dist/src/views/hr/employee/EmployeeForm.vue.d.ts +6 -2
- package/dist/src/views/hr/employee/EmployeeList.vue.d.ts +3 -0
- package/dist/src/views/team/locales/index.d.ts +3 -0
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +9 -0
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +5 -5
- package/dist/style.css +1 -1
- package/dist/{timesheet-BEr75UJg.js → timesheet-Dbp6blBA.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-qId__2vQ.js → useAppStore-e7cSGuDZ.js} +1 -1
- package/dist/useDebounce-BngBuKwH.js +12 -0
- package/dist/{useLoading-InEdxgzy.js → useLoading-C8ko-jia.js} +1 -1
- package/dist/{useReportPermissions-DOCdQzP7.js → useReportPermissions-B0EDgKey.js} +3 -3
- package/package.json +2 -2
- package/dist/AuditLogList-B1WVHfHe.js +0 -915
- package/dist/EmployeeList-D8pV4P6r.js +0 -621
- package/dist/RoleList-C3R_DmG3.js +0 -499
- package/dist/TeamMemberList-LkYfoLD1.js +0 -989
- package/dist/employee-CtTZ2RR7.js +0 -145
- package/dist/team-B-CRADxz.js +0 -33
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ref as d, computed as b, defineComponent as ce, onMounted as me, watch as X, resolveComponent as
|
|
2
|
-
import { d as v } from "./dayjs.min-
|
|
3
|
-
import { useI18n as
|
|
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-CJGjjQIJ.js";
|
|
3
|
+
import { useI18n as ye, useCoreStore as we, RestaurantSelector as be } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as _e, components as De } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as xe } from "./app-
|
|
5
|
+
import { _ as xe } from "./app-Iv5hLrRX.js";
|
|
6
6
|
import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
|
-
import { u as ke } from "./useLoading-
|
|
8
|
-
import { c as Ce, s as Ve } from "./iteration-
|
|
9
|
-
import { b as Fe } from "./index-
|
|
10
|
-
import { u as Ye } from "./employee-
|
|
11
|
-
import { u as Le } from "./timesheet-
|
|
7
|
+
import { u as ke } from "./useLoading-C8ko-jia.js";
|
|
8
|
+
import { c as Ce, s as Ve } from "./iteration-L8TLGaCI.js";
|
|
9
|
+
import { b as Fe } from "./index-5ziPpN4I.js";
|
|
10
|
+
import { u as Ye } from "./employee-C2Qhr8xO.js";
|
|
11
|
+
import { u as Le } from "./timesheet-Dbp6blBA.js";
|
|
12
12
|
function Me(x, a) {
|
|
13
13
|
return ["years", "months"].find((S) => {
|
|
14
14
|
const k = x.startOf(S), f = x.endOf(S);
|
|
@@ -19,7 +19,7 @@ function Te() {
|
|
|
19
19
|
const x = {
|
|
20
20
|
startDate: v().format("YYYY-MM-DD"),
|
|
21
21
|
endDate: v().format("YYYY-MM-DD")
|
|
22
|
-
}, a = d(x),
|
|
22
|
+
}, a = d(x), F = b(() => {
|
|
23
23
|
if (!a.value) return "No dates selected.";
|
|
24
24
|
const f = a.value.startDate ?? "Start", _ = a.value.endDate ?? "End";
|
|
25
25
|
return `${f} - ${_}`;
|
|
@@ -28,25 +28,25 @@ function Te() {
|
|
|
28
28
|
endDate: new Date(a.value.endDate)
|
|
29
29
|
}));
|
|
30
30
|
function k(f) {
|
|
31
|
-
const _ = v(a.value.startDate), c = v(a.value.endDate), h = Me(_, c),
|
|
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
32
|
a.value = {
|
|
33
|
-
startDate:
|
|
34
|
-
endDate:
|
|
33
|
+
startDate: Y(_).startOf(h).format("YYYY-MM-DD"),
|
|
34
|
+
endDate: Y(c).endOf(h).format("YYYY-MM-DD")
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
return { dateRange: a, parsedDateRange: S, dateRangeLabel:
|
|
37
|
+
return { dateRange: a, parsedDateRange: S, dateRangeLabel: F, setRange: k };
|
|
38
38
|
}
|
|
39
39
|
const Re = {
|
|
40
40
|
class: "my-16 flex w-[350px] flex-col gap-40"
|
|
41
41
|
}, Ie = {
|
|
42
42
|
class: "flex gap-16"
|
|
43
|
-
},
|
|
43
|
+
}, Ee = {
|
|
44
44
|
class: "flex flex-col gap-4"
|
|
45
|
-
},
|
|
45
|
+
}, Oe = {
|
|
46
46
|
class: "fm-typo-body-md-400 text-fm-color-typo-secondary"
|
|
47
|
-
},
|
|
47
|
+
}, $e = {
|
|
48
48
|
class: "fm-typo-body-md-700 text-fm-color-typo-primary"
|
|
49
|
-
},
|
|
49
|
+
}, Ae = {
|
|
50
50
|
class: "flex flex-col gap-8"
|
|
51
51
|
}, Ke = {
|
|
52
52
|
class: "fm-typo-body-xl-700"
|
|
@@ -74,7 +74,7 @@ const Re = {
|
|
|
74
74
|
setup(x) {
|
|
75
75
|
const {
|
|
76
76
|
t: a
|
|
77
|
-
} =
|
|
77
|
+
} = ye(), F = _e(), S = ke(F), k = [{
|
|
78
78
|
label: a("hr.timesheet.listView"),
|
|
79
79
|
value: "listView"
|
|
80
80
|
}, {
|
|
@@ -83,15 +83,15 @@ const Re = {
|
|
|
83
83
|
}], f = d("listView"), _ = b(() => {
|
|
84
84
|
var t;
|
|
85
85
|
return (t = k.find((e) => e.value === f.value)) == null ? void 0 : t.label;
|
|
86
|
-
}), c = d(""), h = Le(),
|
|
87
|
-
var
|
|
88
|
-
const r = (
|
|
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);
|
|
89
89
|
return {
|
|
90
90
|
...s,
|
|
91
91
|
restaurantCode: r,
|
|
92
92
|
user: {
|
|
93
93
|
...s.user,
|
|
94
|
-
code:
|
|
94
|
+
code: y ? y.code : ""
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
})), P = b(() => g.value.filter((t) => {
|
|
@@ -99,13 +99,13 @@ const Re = {
|
|
|
99
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()));
|
|
100
100
|
})), j = b(() => {
|
|
101
101
|
const t = Ce(g.value, (s) => s.user.name), e = Object.entries(t).map(([s, r]) => {
|
|
102
|
-
const
|
|
102
|
+
const y = Y.value.find((w) => w._id === r[0].user.id);
|
|
103
103
|
return {
|
|
104
104
|
key: s,
|
|
105
105
|
user: r[0].user.name,
|
|
106
|
-
code:
|
|
106
|
+
code: y ? y.code : "",
|
|
107
107
|
timesheets: r,
|
|
108
|
-
total: Fe(r.reduce((
|
|
108
|
+
total: Fe(r.reduce((w, p) => w + p.totalMin, 0))
|
|
109
109
|
};
|
|
110
110
|
});
|
|
111
111
|
return Ve(e, {
|
|
@@ -114,32 +114,32 @@ const Re = {
|
|
|
114
114
|
}), H = b(() => j.value.filter((t) => {
|
|
115
115
|
var e;
|
|
116
116
|
return t.user.toLowerCase().includes(c.value.toLowerCase()) || ((e = t.code) == null ? void 0 : e.toLowerCase().includes(c.value.toLowerCase()));
|
|
117
|
-
})),
|
|
117
|
+
})), L = d(!1), N = async () => {
|
|
118
118
|
const {
|
|
119
119
|
startDate: t,
|
|
120
120
|
endDate: e
|
|
121
|
-
} =
|
|
122
|
-
|
|
121
|
+
} = M.value;
|
|
122
|
+
L.value = !0;
|
|
123
123
|
try {
|
|
124
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
125
|
} catch (s) {
|
|
126
|
-
|
|
126
|
+
F.open({
|
|
127
127
|
title: s instanceof Error ? s.message : `${s}`,
|
|
128
128
|
type: "error"
|
|
129
129
|
});
|
|
130
130
|
} finally {
|
|
131
|
-
|
|
131
|
+
L.value = !1;
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
-
me(() => {
|
|
135
|
-
N();
|
|
134
|
+
me(async () => {
|
|
135
|
+
C.employees.value.length === 0 && await C.readEmployees(), N();
|
|
136
136
|
});
|
|
137
|
-
const ee =
|
|
138
|
-
dateRange:
|
|
137
|
+
const ee = we(), A = d(), {
|
|
138
|
+
dateRange: M,
|
|
139
139
|
dateRangeLabel: te,
|
|
140
140
|
setRange: G
|
|
141
141
|
} = Te();
|
|
142
|
-
X(
|
|
142
|
+
X(M, async () => {
|
|
143
143
|
N();
|
|
144
144
|
});
|
|
145
145
|
const ae = [{
|
|
@@ -228,13 +228,13 @@ const Re = {
|
|
|
228
228
|
return e.total ? `Total: ${e.total}` : e.duration;
|
|
229
229
|
},
|
|
230
230
|
enableSorting: !1
|
|
231
|
-
}],
|
|
231
|
+
}], T = d(!1);
|
|
232
232
|
function q(t) {
|
|
233
|
-
m.value = 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;
|
|
234
234
|
}
|
|
235
|
-
const
|
|
235
|
+
const R = d(), I = d(), E = d(), O = d(), m = d(), K = d("");
|
|
236
236
|
async function se() {
|
|
237
|
-
const t = J(
|
|
237
|
+
const t = J(R.value, I.value), e = J(E.value, O.value);
|
|
238
238
|
if (v(t).isAfter(e)) {
|
|
239
239
|
K.value = a("hr.timesheet.checkOutMustBeforeCheckIn");
|
|
240
240
|
return;
|
|
@@ -243,20 +243,20 @@ const Re = {
|
|
|
243
243
|
await h.updateTimesheet(m.value, t, e);
|
|
244
244
|
}, {
|
|
245
245
|
successMessage: a("hr.timesheet.update.successMessage")
|
|
246
|
-
}), N(),
|
|
246
|
+
}), N(), T.value = !1;
|
|
247
247
|
}
|
|
248
248
|
const J = (t, e) => v(t).set("h", parseInt(e.split(":")[0])).set("m", parseInt(e.split(":")[1])).toISOString();
|
|
249
|
-
return X([
|
|
249
|
+
return X([R, E, I, O], ([t, e, s, r]) => {
|
|
250
250
|
(t || e || s || r) && (K.value = "");
|
|
251
251
|
}), (t, e) => {
|
|
252
|
-
const s =
|
|
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
253
|
return D(), B(Z, null, [l(le, {
|
|
254
|
-
modelValue:
|
|
255
|
-
"onUpdate:modelValue": e[5] || (e[5] = (o) =>
|
|
254
|
+
modelValue: T.value,
|
|
255
|
+
"onUpdate:modelValue": e[5] || (e[5] = (o) => T.value = o),
|
|
256
256
|
"dismiss-away": "",
|
|
257
257
|
header: n(a)("hr.timesheet.update.title")
|
|
258
258
|
}, {
|
|
259
|
-
"side-sheet-footer":
|
|
259
|
+
"side-sheet-footer": V(() => [i("div", je, [l(p, {
|
|
260
260
|
label: n(a)("common.update"),
|
|
261
261
|
size: "md",
|
|
262
262
|
variant: "primary",
|
|
@@ -265,48 +265,48 @@ const Re = {
|
|
|
265
265
|
label: n(a)("common.cancel"),
|
|
266
266
|
size: "md",
|
|
267
267
|
variant: "secondary",
|
|
268
|
-
onClick: e[4] || (e[4] = (o) =>
|
|
268
|
+
onClick: e[4] || (e[4] = (o) => T.value = !1)
|
|
269
269
|
}, null, 8, ["label"])])]),
|
|
270
|
-
default:
|
|
270
|
+
default: V(() => [i("div", Re, [i("div", Ie, [l(s, {
|
|
271
271
|
initials: m.value.user.name,
|
|
272
272
|
size: "lg"
|
|
273
|
-
}, null, 8, ["initials"]),
|
|
274
|
-
modelValue:
|
|
275
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) =>
|
|
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, {
|
|
274
|
+
modelValue: R.value,
|
|
275
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => R.value = o),
|
|
276
276
|
disabled: !1,
|
|
277
277
|
label: n(a)("hr.timesheet.update.date")
|
|
278
|
-
}, null, 8, ["modelValue", "label"]), l(
|
|
279
|
-
modelValue: R.value,
|
|
280
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) => R.value = o),
|
|
281
|
-
label: n(a)("hr.timesheet.update.time")
|
|
282
|
-
}, null, 8, ["modelValue", "label"])])]), u("div", Ne, [u("div", Ue, $(n(a)("hr.timesheet.update.checkOut")), 1), u("div", Be, [l(r, {
|
|
278
|
+
}, null, 8, ["modelValue", "label"]), l(y, {
|
|
283
279
|
modelValue: I.value,
|
|
284
|
-
"onUpdate:modelValue": e[
|
|
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),
|
|
285
285
|
disabled: !1,
|
|
286
286
|
label: n(a)("hr.timesheet.update.date")
|
|
287
|
-
}, null, 8, ["modelValue", "label"]), l(
|
|
287
|
+
}, null, 8, ["modelValue", "label"]), l(y, {
|
|
288
288
|
modelValue: O.value,
|
|
289
289
|
"onUpdate:modelValue": e[3] || (e[3] = (o) => O.value = o),
|
|
290
290
|
label: n(a)("hr.timesheet.update.time")
|
|
291
|
-
}, null, 8, ["modelValue", "label"])])]), K.value ? (D(), B("div", Pe, [l(
|
|
291
|
+
}, null, 8, ["modelValue", "label"])])]), K.value ? (D(), B("div", Pe, [l(w, {
|
|
292
292
|
color: "#FF3B30",
|
|
293
293
|
name: "error",
|
|
294
294
|
size: "sm"
|
|
295
295
|
}), ve(" " + $(K.value), 1)])) : pe("", !0)])]),
|
|
296
296
|
_: 1
|
|
297
|
-
}, 8, ["modelValue", "header"]),
|
|
298
|
-
modelValue:
|
|
299
|
-
"onUpdate:modelValue": e[6] || (e[6] = (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
300
|
"managable-only": "",
|
|
301
301
|
multiple: "",
|
|
302
302
|
variant: "dark",
|
|
303
303
|
class: "!w-auto pt-[3px]"
|
|
304
|
-
}, null, 8, ["modelValue"]),
|
|
305
|
-
modelValue: n(
|
|
306
|
-
"onUpdate:modelValue": e[7] || (e[7] = (o) => fe(
|
|
304
|
+
}, null, 8, ["modelValue"]), i("div", qe, [l(ne, {
|
|
305
|
+
modelValue: n(M),
|
|
306
|
+
"onUpdate:modelValue": e[7] || (e[7] = (o) => fe(M) ? M.value = o : null),
|
|
307
307
|
"show-predefined-range": ""
|
|
308
308
|
}, {
|
|
309
|
-
"trigger-button":
|
|
309
|
+
"trigger-button": V(() => [l(Q, {
|
|
310
310
|
label: n(te)
|
|
311
311
|
}, null, 8, ["label"])]),
|
|
312
312
|
_: 1
|
|
@@ -318,25 +318,25 @@ const Re = {
|
|
|
318
318
|
icon: "chevron_right",
|
|
319
319
|
variant: "tertiary",
|
|
320
320
|
onClick: e[9] || (e[9] = (o) => n(G)("add"))
|
|
321
|
-
})]), l(
|
|
321
|
+
})]), l(ie, {
|
|
322
322
|
class: "pt-[3px]"
|
|
323
323
|
}, {
|
|
324
|
-
"menu-button":
|
|
324
|
+
"menu-button": V(() => [l(Q, {
|
|
325
325
|
label: _.value,
|
|
326
326
|
"right-icon": "keyboard_arrow_down"
|
|
327
327
|
}, null, 8, ["label"])]),
|
|
328
|
-
default:
|
|
328
|
+
default: V(() => [(D(), B(Z, null, he(k, (o) => l(re, {
|
|
329
329
|
key: o.value,
|
|
330
330
|
label: o.label,
|
|
331
331
|
onClick: (Je) => f.value = o.value
|
|
332
332
|
}, null, 8, ["label", "onClick"])), 64))]),
|
|
333
333
|
_: 1
|
|
334
|
-
}), l(
|
|
334
|
+
}), l(ue), l(de, {
|
|
335
335
|
modelValue: c.value,
|
|
336
336
|
"onUpdate:modelValue": e[10] || (e[10] = (o) => c.value = o),
|
|
337
337
|
class: "w-[320px]",
|
|
338
338
|
placeholder: n(a)("hr.timesheet.search.placeholder")
|
|
339
|
-
}, null, 8, ["modelValue", "placeholder"])]), g.value.length === 0 && !
|
|
339
|
+
}, null, 8, ["modelValue", "placeholder"])]), g.value.length === 0 && !L.value ? (D(), z(n(Se), {
|
|
340
340
|
key: 0,
|
|
341
341
|
title: n(a)("hr.timesheet.noData.title"),
|
|
342
342
|
subtitle: ""
|
|
@@ -344,13 +344,13 @@ const Re = {
|
|
|
344
344
|
key: 1,
|
|
345
345
|
class: "w-full xs:px-16 overflow-auto"
|
|
346
346
|
}, {
|
|
347
|
-
default:
|
|
347
|
+
default: V(() => [f.value === "listView" ? (D(), z(W, {
|
|
348
348
|
key: 0,
|
|
349
349
|
class: "min-w-[640px]",
|
|
350
350
|
"column-defs": ae,
|
|
351
351
|
"row-data": P.value,
|
|
352
352
|
"page-size": P.value.length,
|
|
353
|
-
loading:
|
|
353
|
+
loading: L.value,
|
|
354
354
|
"pin-header-row": "",
|
|
355
355
|
"hide-footer": "",
|
|
356
356
|
"shrink-at": !1,
|
|
@@ -361,7 +361,7 @@ const Re = {
|
|
|
361
361
|
"column-defs": oe,
|
|
362
362
|
"row-data": H.value,
|
|
363
363
|
"page-size": g.value.length + H.value.length,
|
|
364
|
-
loading:
|
|
364
|
+
loading: L.value,
|
|
365
365
|
"pin-header-row": "",
|
|
366
366
|
"hide-footer": "",
|
|
367
367
|
"shrink-at": !1,
|
|
@@ -1346,7 +1346,8 @@ const Fe = {
|
|
|
1346
1346
|
name: "ชื่อ",
|
|
1347
1347
|
phoneNumber: "ผู้ติดต่อ",
|
|
1348
1348
|
restaurant: "ร้านอาหาร",
|
|
1349
|
-
permission: "สิทธิ์อนุญาต"
|
|
1349
|
+
permission: "สิทธิ์อนุญาต",
|
|
1350
|
+
assignedRoles: "บทบาทที่กำหนด"
|
|
1350
1351
|
}
|
|
1351
1352
|
},
|
|
1352
1353
|
labels: {
|
|
@@ -1486,7 +1487,8 @@ const Fe = {
|
|
|
1486
1487
|
name: "用户名",
|
|
1487
1488
|
phoneNumber: "联系方式",
|
|
1488
1489
|
restaurant: "餐厅",
|
|
1489
|
-
permission: "权限"
|
|
1490
|
+
permission: "权限",
|
|
1491
|
+
assignedRoles: "已分配角色"
|
|
1490
1492
|
}
|
|
1491
1493
|
},
|
|
1492
1494
|
labels: {
|
|
@@ -1626,7 +1628,8 @@ const Fe = {
|
|
|
1626
1628
|
name: "用户名",
|
|
1627
1629
|
phoneNumber: "聯繫方式",
|
|
1628
1630
|
restaurant: "餐廳",
|
|
1629
|
-
permission: "權限"
|
|
1631
|
+
permission: "權限",
|
|
1632
|
+
assignedRoles: "已指派角色"
|
|
1630
1633
|
}
|
|
1631
1634
|
},
|
|
1632
1635
|
labels: {
|
|
@@ -3171,45 +3174,45 @@ const Er = {
|
|
|
3171
3174
|
],
|
|
3172
3175
|
category: u.customReports,
|
|
3173
3176
|
isCategoryCover: !0
|
|
3174
|
-
}
|
|
3177
|
+
},
|
|
3175
3178
|
// MDM
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3179
|
+
mdmDeviceManagement: {
|
|
3180
|
+
label: "Device Management",
|
|
3181
|
+
subject: a.mdm_deviceManagement,
|
|
3182
|
+
actions: [t.manage],
|
|
3183
|
+
category: u.settings
|
|
3184
|
+
},
|
|
3185
|
+
mdmCreateDevice: {
|
|
3186
|
+
label: "Create New Device",
|
|
3187
|
+
subject: a.mdm_createDevice,
|
|
3188
|
+
actions: [t.manage],
|
|
3189
|
+
category: u.settings
|
|
3190
|
+
},
|
|
3191
|
+
mdmDeviceBinding: {
|
|
3192
|
+
label: "Manage Device Binding",
|
|
3193
|
+
subject: a.mdm_deviceBinding,
|
|
3194
|
+
actions: [t.manage],
|
|
3195
|
+
category: u.settings
|
|
3196
|
+
},
|
|
3197
|
+
mdmCustomerDisplay: {
|
|
3198
|
+
label: "Manage Customer Display",
|
|
3199
|
+
subject: a.mdm_customerDisplay,
|
|
3200
|
+
actions: [t.manage, t.read, t.update],
|
|
3201
|
+
category: u.settings
|
|
3202
|
+
},
|
|
3200
3203
|
// E-invoice
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3204
|
+
eInvoiceManagement: {
|
|
3205
|
+
label: "E-invoice Management",
|
|
3206
|
+
subject: a.eInvoice_management,
|
|
3207
|
+
actions: [t.manage],
|
|
3208
|
+
category: u.settings
|
|
3209
|
+
},
|
|
3210
|
+
eInvoiceIntegration: {
|
|
3211
|
+
label: "Manage E-invoice Integration",
|
|
3212
|
+
subject: a.eInvoice_integration,
|
|
3213
|
+
actions: [t.manage],
|
|
3214
|
+
category: u.settings
|
|
3215
|
+
}
|
|
3213
3216
|
}, xr = {
|
|
3214
3217
|
[u.crm]: "hrm_enable_crm_permission",
|
|
3215
3218
|
[u.payment]: "hrm_enable_payment_permission"
|
|
@@ -4495,10 +4498,10 @@ const ce = (e) => ({
|
|
|
4495
4498
|
}
|
|
4496
4499
|
]
|
|
4497
4500
|
}
|
|
4498
|
-
}), Br = re(O(() => import("./Main-
|
|
4499
|
-
O(() => import("./AuditLogList-
|
|
4500
|
-
), fr = re(O(() => import("./Main-
|
|
4501
|
-
() => import("./PermissionSetList-
|
|
4501
|
+
}), Br = re(O(() => import("./Main-BY_V1guq.js"))), br = re(O(() => import("./Main-Chau30wK.js"))), pr = re(
|
|
4502
|
+
O(() => import("./AuditLogList-Am6PW6qN.js"))
|
|
4503
|
+
), fr = re(O(() => import("./Main-BC_y5Gzg.js"))), wr = O(() => import("./EmployeeList-00LF0l6U.js")), Mr = O(() => import("./RoleList-BVQ4zkA8.js")), yr = O(() => import("./TimesheetList-Dc295zCI.js")), Dr = O(() => import("./TeamMemberList-D65MpqIr.js")), vr = O(
|
|
4504
|
+
() => import("./PermissionSetList-CDUFrGRE.js")
|
|
4502
4505
|
), Pr = [
|
|
4503
4506
|
{
|
|
4504
4507
|
path: "/",
|
|
@@ -4586,7 +4589,7 @@ const ce = (e) => ({
|
|
|
4586
4589
|
}), i("close-navigation");
|
|
4587
4590
|
}
|
|
4588
4591
|
}), f.push({
|
|
4589
|
-
label: "
|
|
4592
|
+
label: r("auditLog.title"),
|
|
4590
4593
|
value: "audit-log",
|
|
4591
4594
|
action: () => {
|
|
4592
4595
|
n.push({
|
|
@@ -4663,7 +4666,7 @@ const ce = (e) => ({
|
|
|
4663
4666
|
};
|
|
4664
4667
|
export {
|
|
4665
4668
|
Za as A,
|
|
4666
|
-
|
|
4669
|
+
Er as C,
|
|
4667
4670
|
qr as I,
|
|
4668
4671
|
V as R,
|
|
4669
4672
|
mr as _,
|
|
@@ -4674,7 +4677,7 @@ export {
|
|
|
4674
4677
|
Vr as f,
|
|
4675
4678
|
Qs as g,
|
|
4676
4679
|
Fr as i,
|
|
4677
|
-
|
|
4680
|
+
xr as k,
|
|
4678
4681
|
u as p,
|
|
4679
4682
|
Pr as r,
|
|
4680
4683
|
te as u
|
package/dist/app.js
CHANGED