@feedmepos/mf-hrm-portal 2.0.23 → 2.0.24-dev.10
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-DIyduqwa.js +1054 -0
- package/dist/{EmployeeList-DV6b-sUl.js → EmployeeList-DieXbCR4.js} +78 -78
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js → FormItem.vue_vue_type_script_setup_true_lang-S4Mh4MvG.js} +1 -1
- package/dist/{Main--_6xW_6T.js → Main-8fURDx0W.js} +9 -9
- package/dist/{Main-brGoD5LT.js → Main-BjzCTw3C.js} +6 -6
- package/dist/{Main-ikZ4GbMs.js → Main-BxX0lnL5.js} +6 -6
- package/dist/{PermissionSetList-Ba_OoTIV.js → PermissionSetList-CqM4La6P.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DE6kAP4K.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C6uznL8r.js} +719 -719
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-Dgiy6--r.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-CSxT3KNJ.js} +1 -1
- package/dist/{RoleList-hbFtGRXp.js → RoleList-CEgNBw-4.js} +7 -7
- package/dist/SelectFilter-C61IZSID.js +269 -0
- package/dist/{TeamMemberList-CLQB9CrO.js → TeamMemberList-DoLkDpoB.js} +60 -60
- package/dist/{TimesheetList-DGLg16vD.js → TimesheetList-DqGEKlEL.js} +10 -10
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-DAq_QztI.js → TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-BdCL8SB4.js} +2 -2
- package/dist/{app-BvSnSbKt.js → app-L0IWvTST.js} +51 -58
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-0cwnJZKr.js → dayjs.min-COxuf_H8.js} +1 -1
- package/dist/{employee-BI_kMMXy.js → employee-DRnkg7jL.js} +3 -3
- package/dist/{iteration-BWe1Eiu-.js → iteration-V9rH_pC3.js} +3 -3
- package/dist/{lodash-D89ipwrs.js → lodash-DoaaH6eb.js} +1 -1
- package/dist/{rule-CwMu9Wr3.js → rule-BI1ycxfM.js} +25 -25
- package/dist/src/components/form/SelectFilter.vue.d.ts +3 -0
- package/dist/src/stores/team.d.ts +4 -1
- package/dist/src/views/audit-log/locales/index.d.ts +24 -16
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BFSRwyzx.js → useAppStore-a32PT_PC.js} +1 -1
- package/dist/{useLoading-8AI-5_oV.js → useLoading-BxqU47eu.js} +1 -1
- package/dist/{useReportPermissions-CwaUFfn0.js → useReportPermissions-BIbz17zb.js} +3 -3
- package/package.json +2 -2
- package/dist/AuditLogList-D5ptt1oj.js +0 -1037
- package/dist/SelectFilter-DUj7GBtT.js +0 -251
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { toRaw as Te, defineComponent as $e, ref as v, computed as k, watch as X, resolveComponent as g, createElementBlock as P, openBlock as h, Fragment as de, renderSlot as je, createVNode as n, unref as o, withCtx as b, createElementVNode as m, createBlock as j, createCommentVNode as G, toDisplayString as K, renderList as Me, withKeys as ke, withModifiers as ee, normalizeClass as Le, onUnmounted as Ge, isRef as Ee, createTextVNode as qe, h as
|
|
1
|
+
import { toRaw as Te, defineComponent as $e, ref as v, computed as k, watch as X, resolveComponent as g, createElementBlock as P, openBlock as h, Fragment as de, renderSlot as je, createVNode as n, unref as o, withCtx as b, createElementVNode as m, createBlock as j, createCommentVNode as G, toDisplayString as K, renderList as Me, withKeys as ke, withModifiers as ee, normalizeClass as Le, onUnmounted as Ge, isRef as Ee, createTextVNode as qe, h as ie } from "vue";
|
|
2
2
|
import { useI18n as Ae, useCoreStore as He } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Pe, components as De, useDialog as Je, useBreakpoints as We } from "@feedmepos/ui-library";
|
|
4
|
-
import { S as ce, _ as Qe } from "./SelectFilter-
|
|
5
|
-
import { _ as Ye, a as Ze } from "./app-
|
|
6
|
-
import { _ as Fe, u as Xe, H as ea } from "./FormItem.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { S as ce, _ as Qe } from "./SelectFilter-C61IZSID.js";
|
|
5
|
+
import { _ as Ye, a as Ze } from "./app-L0IWvTST.js";
|
|
6
|
+
import { _ as Fe, u as Xe, H as ea } from "./FormItem.vue_vue_type_script_setup_true_lang-S4Mh4MvG.js";
|
|
7
7
|
import { u as aa, _ as ta } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
8
8
|
import { _ as la } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
9
9
|
import { u as sa, _ as Ve } from "./useDebounce-CWb5QR9G.js";
|
|
10
|
-
import { u as Ne, E as oa } from "./employee-
|
|
11
|
-
import { u as ze } from "./iteration-
|
|
12
|
-
import { l as ra } from "./lodash-
|
|
10
|
+
import { u as Ne, E as oa } from "./employee-DRnkg7jL.js";
|
|
11
|
+
import { u as ze } from "./iteration-V9rH_pC3.js";
|
|
12
|
+
import { l as ra } from "./lodash-DoaaH6eb.js";
|
|
13
13
|
import { _ as Se } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
14
|
-
import { u as Oe } from "./useLoading-
|
|
15
|
-
import { u as we } from "./useAppStore-
|
|
14
|
+
import { u as Oe } from "./useLoading-BxqU47eu.js";
|
|
15
|
+
import { u as we } from "./useAppStore-a32PT_PC.js";
|
|
16
16
|
/* empty css */
|
|
17
17
|
function Ce(B) {
|
|
18
18
|
return JSON.parse(JSON.stringify(B));
|
|
@@ -26,7 +26,7 @@ function Re(B) {
|
|
|
26
26
|
return Ce(B);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
const na = { class: "flex w-full items-center justify-between" },
|
|
29
|
+
const na = { class: "flex w-full items-center justify-between" }, ua = { class: "fm-typo-en-title-md-600" }, ia = { class: "space-y-40" }, ca = { class: "flex flex-row gap-16" }, da = { class: "space-y-16" }, ma = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 space-y-16" }, pa = { class: "fm-typo-en-title-sm-600" }, fa = { class: "space-y-16" }, va = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, ya = { class: "text-sm font-semibold text-fm-color-typo-primary" }, ha = { class: "text-sm font-semibold text-fm-color-typo-primary" }, ga = { class: "flex justify-self-end" }, _a = ["tabindex", "aria-disabled", "aria-label", "onClick", "onKeydown"], ba = { class: "flex gap-8 items-center justify-start" }, Ue = 4, wa = /* @__PURE__ */ $e({
|
|
30
30
|
__name: "EmployeeForm",
|
|
31
31
|
props: {
|
|
32
32
|
roleErrorMessage: {
|
|
@@ -35,8 +35,8 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
emits: ["submitted"],
|
|
38
|
-
setup(B, { expose: me, emit:
|
|
39
|
-
const E = we(), f = ze(), R = Ne(), pe = Pe(), D = Oe(pe), fe =
|
|
38
|
+
setup(B, { expose: me, emit: u }) {
|
|
39
|
+
const E = we(), f = ze(), R = Ne(), pe = Pe(), D = Oe(pe), fe = u, { t: c } = Ae(), U = v(!1), N = v(!0);
|
|
40
40
|
function T() {
|
|
41
41
|
return {
|
|
42
42
|
restaurantId: "",
|
|
@@ -233,7 +233,7 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
233
233
|
}, {
|
|
234
234
|
"side-sheet-header": b(() => [
|
|
235
235
|
m("div", na, [
|
|
236
|
-
m("p",
|
|
236
|
+
m("p", ua, K(q.value), 1),
|
|
237
237
|
n(d, {
|
|
238
238
|
name: "close",
|
|
239
239
|
size: "md",
|
|
@@ -261,7 +261,7 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
261
261
|
])
|
|
262
262
|
]),
|
|
263
263
|
default: b(() => [
|
|
264
|
-
m("div",
|
|
264
|
+
m("div", ia, [
|
|
265
265
|
n(Se, {
|
|
266
266
|
title: o(c)("hr.employee.form.employeeSetting")
|
|
267
267
|
}, {
|
|
@@ -305,7 +305,7 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
305
305
|
modelValue: S.value,
|
|
306
306
|
"onUpdate:modelValue": t[5] || (t[5] = (a) => S.value = a),
|
|
307
307
|
rules: [
|
|
308
|
-
(a) => (a == null ? void 0 : a.filter((
|
|
308
|
+
(a) => (a == null ? void 0 : a.filter((i) => !!i).length) !== Ue ? o(c)("hr.employee.form.passcodeRequired") : !0
|
|
309
309
|
]
|
|
310
310
|
}, {
|
|
311
311
|
default: b(() => [
|
|
@@ -344,7 +344,7 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
344
344
|
tag: "div",
|
|
345
345
|
rules: [
|
|
346
346
|
(a) => a.length > 0 || o(c)("hr.employee.form.atLeastOneRestaurant"),
|
|
347
|
-
(a) => a.every((
|
|
347
|
+
(a) => a.every((i) => i.restaurantId && i.roleId) || o(c)("hr.employee.form.roleRequired")
|
|
348
348
|
]
|
|
349
349
|
}, {
|
|
350
350
|
default: b(() => [
|
|
@@ -356,8 +356,8 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
356
356
|
m("div", ha, K(o(c)("hr.employee.form.role")), 1),
|
|
357
357
|
t[7] || (t[7] = m("div", null, null, -1))
|
|
358
358
|
]),
|
|
359
|
-
(h(!0), P(de, null, Me(s.value.restaurants, (a,
|
|
360
|
-
key: `${a.restaurantId || "new"}-${
|
|
359
|
+
(h(!0), P(de, null, Me(s.value.restaurants, (a, i) => (h(), P("div", {
|
|
360
|
+
key: `${a.restaurantId || "new"}-${i}`,
|
|
361
361
|
class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] items-center gap-16"
|
|
362
362
|
}, [
|
|
363
363
|
n(A, {
|
|
@@ -367,7 +367,7 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
367
367
|
multiselect: !1,
|
|
368
368
|
placeholder: o(c)("hr.employee.columns.restaurants"),
|
|
369
369
|
disabled: V(a.restaurantId),
|
|
370
|
-
"onUpdate:modelValue": (I) => ye(
|
|
370
|
+
"onUpdate:modelValue": (I) => ye(i, I)
|
|
371
371
|
}, null, 8, ["model-value", "items", "placeholder", "disabled", "onUpdate:modelValue"]),
|
|
372
372
|
n(A, {
|
|
373
373
|
class: "min-w-0",
|
|
@@ -376,7 +376,7 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
376
376
|
multiselect: !1,
|
|
377
377
|
placeholder: o(c)("hr.employee.form.role"),
|
|
378
378
|
disabled: !a.restaurantId || V(a.restaurantId),
|
|
379
|
-
"onUpdate:modelValue": (I) => he(
|
|
379
|
+
"onUpdate:modelValue": (I) => he(i, I)
|
|
380
380
|
}, null, 8, ["model-value", "items", "placeholder", "disabled", "onUpdate:modelValue"]),
|
|
381
381
|
m("div", ga, [
|
|
382
382
|
s.value.restaurants.length > 1 ? (h(), P("div", {
|
|
@@ -389,10 +389,10 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
389
389
|
"pointer-events-none": V(a.restaurantId)
|
|
390
390
|
}]),
|
|
391
391
|
"aria-label": o(c)("common.remove"),
|
|
392
|
-
onClick: ee((I) => $(
|
|
392
|
+
onClick: ee((I) => $(i), ["stop"]),
|
|
393
393
|
onKeydown: [
|
|
394
|
-
ke(ee((I) => $(
|
|
395
|
-
ke(ee((I) => $(
|
|
394
|
+
ke(ee((I) => $(i), ["prevent", "stop"]), ["enter"]),
|
|
395
|
+
ke(ee((I) => $(i), ["prevent", "stop"]), ["space"])
|
|
396
396
|
]
|
|
397
397
|
}, [
|
|
398
398
|
n(d, {
|
|
@@ -463,7 +463,7 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
463
463
|
expose: me
|
|
464
464
|
}) {
|
|
465
465
|
const {
|
|
466
|
-
t:
|
|
466
|
+
t: u
|
|
467
467
|
} = Ae(), E = v(), f = Ne(), R = ze(), pe = He(), {
|
|
468
468
|
currentBusiness: D,
|
|
469
469
|
sessionUser: fe
|
|
@@ -473,12 +473,12 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
473
473
|
const l = new Map(e.map((a) => [a._id, a]));
|
|
474
474
|
f.listEmployees.value = f.listEmployees.value.map((a) => ({
|
|
475
475
|
...a,
|
|
476
|
-
restaurants: a.restaurants.map((
|
|
477
|
-
var I,
|
|
476
|
+
restaurants: a.restaurants.map((i) => {
|
|
477
|
+
var I, ue;
|
|
478
478
|
return {
|
|
479
|
-
...
|
|
480
|
-
restaurantName: ((I = l.get(
|
|
481
|
-
restaurantCode: ((
|
|
479
|
+
...i,
|
|
480
|
+
restaurantName: ((I = l.get(i.restaurantId)) == null ? void 0 : I.profile.name) || i.restaurantName,
|
|
481
|
+
restaurantCode: ((ue = l.get(i.restaurantId)) == null ? void 0 : ue.profile.code) ?? void 0
|
|
482
482
|
};
|
|
483
483
|
})
|
|
484
484
|
}));
|
|
@@ -493,9 +493,9 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
493
493
|
const l = new Map(e.map((a) => [a._id, a.name]));
|
|
494
494
|
f.listEmployees.value = f.listEmployees.value.map((a) => ({
|
|
495
495
|
...a,
|
|
496
|
-
restaurants: a.restaurants.map((
|
|
497
|
-
...
|
|
498
|
-
roleName: l.get(
|
|
496
|
+
restaurants: a.restaurants.map((i) => ({
|
|
497
|
+
...i,
|
|
498
|
+
roleName: l.get(i.roleId) || i.roleName
|
|
499
499
|
}))
|
|
500
500
|
}));
|
|
501
501
|
}
|
|
@@ -517,10 +517,10 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
517
517
|
}, se = (e) => e.roleName || "-";
|
|
518
518
|
function ye(e) {
|
|
519
519
|
return [{
|
|
520
|
-
label:
|
|
520
|
+
label: u("hr.employee.form.update"),
|
|
521
521
|
onClick: () => Z(e)
|
|
522
522
|
}, {
|
|
523
|
-
label:
|
|
523
|
+
label: u("hr.employee.remove.title"),
|
|
524
524
|
onClick: () => re(e),
|
|
525
525
|
itemClass: "text-fm-color-typo-error"
|
|
526
526
|
}];
|
|
@@ -538,17 +538,17 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
538
538
|
}, null)]), ge = [{
|
|
539
539
|
accessorKey: "code",
|
|
540
540
|
size: 100,
|
|
541
|
-
header: () =>
|
|
541
|
+
header: () => u("hr.employee.columns.code")
|
|
542
542
|
}, {
|
|
543
543
|
accessorKey: "name",
|
|
544
|
-
header: () =>
|
|
544
|
+
header: () => u("hr.employee.columns.name"),
|
|
545
545
|
enableSorting: !1,
|
|
546
546
|
cell(e) {
|
|
547
547
|
const l = e.row.original;
|
|
548
548
|
return n("div", {
|
|
549
549
|
class: "flex items-center gap-8"
|
|
550
550
|
}, [n(De.FmAvatar, {
|
|
551
|
-
|
|
551
|
+
name: l.name,
|
|
552
552
|
size: "sm",
|
|
553
553
|
class: "shrink-0"
|
|
554
554
|
}, null), n("span", {
|
|
@@ -558,36 +558,36 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
558
558
|
}, {
|
|
559
559
|
accessorKey: "restaurants",
|
|
560
560
|
align: "center",
|
|
561
|
-
header: () =>
|
|
561
|
+
header: () => u("hr.employee.columns.restaurants"),
|
|
562
562
|
enableSorting: !1,
|
|
563
563
|
cell(e) {
|
|
564
|
-
return U.value || N.value ?
|
|
565
|
-
const
|
|
566
|
-
return
|
|
564
|
+
return U.value || N.value ? ie(Ve) : e.row.original.restaurants.map((l, a) => {
|
|
565
|
+
const i = le(l);
|
|
566
|
+
return ie("div", {
|
|
567
567
|
key: l.restaurantId || a
|
|
568
568
|
}, (a ? `
|
|
569
|
-
` : "") +
|
|
569
|
+
` : "") + i);
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
572
|
}, {
|
|
573
573
|
accessorKey: "assignedRole",
|
|
574
574
|
align: "center",
|
|
575
|
-
header: () =>
|
|
575
|
+
header: () => u("hr.employee.columns.assignedRole"),
|
|
576
576
|
enableSorting: !1,
|
|
577
577
|
cell(e) {
|
|
578
|
-
return U.value || N.value ?
|
|
578
|
+
return U.value || N.value ? ie(Ve, {
|
|
579
579
|
width: "120px"
|
|
580
580
|
}) : e.row.original.restaurants.map((l, a) => {
|
|
581
|
-
const
|
|
582
|
-
return
|
|
581
|
+
const i = se(l);
|
|
582
|
+
return ie("div", {
|
|
583
583
|
key: l.restaurantId || a
|
|
584
584
|
}, (a ? `
|
|
585
|
-
` : "") +
|
|
585
|
+
` : "") + i);
|
|
586
586
|
});
|
|
587
587
|
}
|
|
588
588
|
}, {
|
|
589
589
|
accessorKey: "since",
|
|
590
|
-
header: () =>
|
|
590
|
+
header: () => u("hr.employee.columns.since"),
|
|
591
591
|
enableSorting: !1
|
|
592
592
|
}, {
|
|
593
593
|
id: "action",
|
|
@@ -606,7 +606,7 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
606
606
|
function W(e) {
|
|
607
607
|
const l = e.isRestricted;
|
|
608
608
|
return l && $.open({
|
|
609
|
-
message:
|
|
609
|
+
message: u("hr.employee.cannotUpdateMasterUser", {
|
|
610
610
|
name: e.name
|
|
611
611
|
}),
|
|
612
612
|
type: "error"
|
|
@@ -619,19 +619,19 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
619
619
|
breakpoints: Q
|
|
620
620
|
} = We(), re = (e) => {
|
|
621
621
|
W(e) || oe.open({
|
|
622
|
-
title:
|
|
623
|
-
message:
|
|
622
|
+
title: u("hr.employee.remove.title"),
|
|
623
|
+
message: u("hr.employee.remove.message", {
|
|
624
624
|
name: e.name
|
|
625
625
|
}),
|
|
626
626
|
minWidth: Q.value.lg ? 588 : 0,
|
|
627
627
|
primaryActions: {
|
|
628
|
-
text:
|
|
628
|
+
text: u("common.remove"),
|
|
629
629
|
close: !1,
|
|
630
630
|
variant: "destructive",
|
|
631
631
|
isLoading: M
|
|
632
632
|
},
|
|
633
633
|
secondaryActions: {
|
|
634
|
-
text:
|
|
634
|
+
text: u("common.cancel"),
|
|
635
635
|
close: !0
|
|
636
636
|
}
|
|
637
637
|
}).onPrimary(async () => {
|
|
@@ -641,7 +641,7 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
641
641
|
await a(e), await _();
|
|
642
642
|
}, {
|
|
643
643
|
isLoading: M,
|
|
644
|
-
successMessage:
|
|
644
|
+
successMessage: u("hr.employee.remove.successMessage", {
|
|
645
645
|
name: e.name
|
|
646
646
|
})
|
|
647
647
|
}).catch(() => {
|
|
@@ -659,12 +659,12 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
659
659
|
async function d() {
|
|
660
660
|
try {
|
|
661
661
|
await f.syncUsersMeta(), await _(), $.open({
|
|
662
|
-
message:
|
|
662
|
+
message: u("hr.employee.sync.successMessage"),
|
|
663
663
|
type: "success"
|
|
664
664
|
});
|
|
665
665
|
} catch (e) {
|
|
666
666
|
console.error("Error syncing users:", e), $.open({
|
|
667
|
-
message:
|
|
667
|
+
message: u("hr.employee.sync.errorMessage"),
|
|
668
668
|
type: "error"
|
|
669
669
|
});
|
|
670
670
|
}
|
|
@@ -679,9 +679,9 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
679
679
|
restaurantIds: (l = E.value) != null && l.length ? E.value : void 0,
|
|
680
680
|
roleIds: (a = t.value) != null && a.length ? t.value : void 0
|
|
681
681
|
});
|
|
682
|
-
} catch (
|
|
683
|
-
console.error("Failed to load employees:",
|
|
684
|
-
message:
|
|
682
|
+
} catch (i) {
|
|
683
|
+
console.error("Failed to load employees:", i), $.open({
|
|
684
|
+
message: i instanceof Error ? i.message : String(i),
|
|
685
685
|
type: "error"
|
|
686
686
|
});
|
|
687
687
|
}
|
|
@@ -732,7 +732,7 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
732
732
|
exportEmployees: x
|
|
733
733
|
}), (e, l) => {
|
|
734
734
|
var xe, Ie;
|
|
735
|
-
const a = g("FmButton"),
|
|
735
|
+
const a = g("FmButton"), i = g("FmTooltip"), I = g("FmSearch"), ue = g("FmTable"), Ke = g("FmListItem"), Be = g("FmList");
|
|
736
736
|
return h(), P(de, null, [n(wa, {
|
|
737
737
|
ref_key: "employeeFormRef",
|
|
738
738
|
ref: O,
|
|
@@ -744,15 +744,15 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
744
744
|
}, null, 8, ["modelValue", "role-error-message"]), m("div", xa, [o(Q).xs ? (h(), P("div", Fa, [m("div", Va, [n(I, {
|
|
745
745
|
modelValue: o(w),
|
|
746
746
|
"onUpdate:modelValue": l[4] || (l[4] = (p) => Ee(w) ? w.value = p : null),
|
|
747
|
-
placeholder: o(
|
|
747
|
+
placeholder: o(u)("hr.employee.search.placeholder")
|
|
748
748
|
}, null, 8, ["modelValue", "placeholder"])]), n(ea), m("div", Sa, [n(ce, {
|
|
749
749
|
modelValue: E.value,
|
|
750
750
|
"onUpdate:modelValue": l[5] || (l[5] = (p) => E.value = p),
|
|
751
751
|
multiple: "",
|
|
752
752
|
items: T.value,
|
|
753
753
|
variant: "dark",
|
|
754
|
-
"selected-prefix": o(
|
|
755
|
-
placeholder: o(
|
|
754
|
+
"selected-prefix": o(u)("hr.role.columns.restaurants"),
|
|
755
|
+
placeholder: o(u)("hr.role.columns.restaurants"),
|
|
756
756
|
class: "!w-auto"
|
|
757
757
|
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), n(ce, {
|
|
758
758
|
modelValue: t.value,
|
|
@@ -760,16 +760,16 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
760
760
|
multiple: "",
|
|
761
761
|
items: r.value,
|
|
762
762
|
variant: "dark",
|
|
763
|
-
"selected-prefix": o(
|
|
764
|
-
placeholder: o(
|
|
763
|
+
"selected-prefix": o(u)("hr.employee.filter.selected_role_prefix"),
|
|
764
|
+
placeholder: o(u)("hr.employee.filter.role_placeholder")
|
|
765
765
|
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])])) : (h(), P("div", Ia, [m("div", ka, [n(ce, {
|
|
766
766
|
modelValue: E.value,
|
|
767
767
|
"onUpdate:modelValue": l[1] || (l[1] = (p) => E.value = p),
|
|
768
768
|
multiple: "",
|
|
769
769
|
items: T.value,
|
|
770
770
|
variant: "dark",
|
|
771
|
-
"selected-prefix": o(
|
|
772
|
-
placeholder: o(
|
|
771
|
+
"selected-prefix": o(u)("hr.role.columns.restaurants"),
|
|
772
|
+
placeholder: o(u)("hr.role.columns.restaurants"),
|
|
773
773
|
class: "!w-auto"
|
|
774
774
|
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), n(ce, {
|
|
775
775
|
modelValue: t.value,
|
|
@@ -777,15 +777,15 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
777
777
|
multiple: "",
|
|
778
778
|
variant: "dark",
|
|
779
779
|
items: r.value,
|
|
780
|
-
"selected-prefix": o(
|
|
781
|
-
placeholder: o(
|
|
782
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])]), m("div", Ea, [(xe = o(fe)) != null && xe.role.isAdmin ? (h(), j(
|
|
780
|
+
"selected-prefix": o(u)("hr.employee.filter.selected_role_prefix"),
|
|
781
|
+
placeholder: o(u)("hr.employee.filter.role_placeholder")
|
|
782
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])]), m("div", Ea, [(xe = o(fe)) != null && xe.role.isAdmin ? (h(), j(i, {
|
|
783
783
|
key: 0,
|
|
784
|
-
content: o(
|
|
784
|
+
content: o(u)("hr.employee.sync.tooltip")
|
|
785
785
|
}, {
|
|
786
786
|
default: b(() => [n(a, {
|
|
787
787
|
icon: "refresh",
|
|
788
|
-
label: o(
|
|
788
|
+
label: o(u)("hr.employee.sync.tooltip"),
|
|
789
789
|
variant: "tertiary",
|
|
790
790
|
onClick: d
|
|
791
791
|
}, null, 8, ["label"])]),
|
|
@@ -795,7 +795,7 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
795
795
|
"onUpdate:modelValue": l[3] || (l[3] = (p) => Ee(w) ? w.value = p : null),
|
|
796
796
|
autofocus: "",
|
|
797
797
|
class: "pl-4 w-[320px]",
|
|
798
|
-
placeholder: o(
|
|
798
|
+
placeholder: o(u)("hr.employee.search.placeholder")
|
|
799
799
|
}, null, 8, ["modelValue", "placeholder"])])])), (Ie = o(D)) != null && Ie._id ? (h(), j(Ye, {
|
|
800
800
|
key: 2
|
|
801
801
|
}, {
|
|
@@ -803,9 +803,9 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
803
803
|
key: 0
|
|
804
804
|
})) : !z.value || F.value === 0 ? (h(), j(o(la), {
|
|
805
805
|
key: 1,
|
|
806
|
-
title: o(
|
|
807
|
-
subtitle: o(
|
|
808
|
-
}, null, 8, ["title", "subtitle"])) : G("", !0), z.value ? (h(), j(
|
|
806
|
+
title: o(u)("hr.employee.noData.title"),
|
|
807
|
+
subtitle: o(u)("hr.employee.noData.subtitle")
|
|
808
|
+
}, null, 8, ["title", "subtitle"])) : G("", !0), z.value ? (h(), j(ue, {
|
|
809
809
|
key: V.value,
|
|
810
810
|
class: Le(["xs:hidden employee-list-table min-h-0 flex-1", {
|
|
811
811
|
"employee-list-table--pagination-loading": te.value
|
|
@@ -829,7 +829,7 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
829
829
|
class: "py-12 px-16 items-center justify-between",
|
|
830
830
|
onClick: (be) => Z(p)
|
|
831
831
|
}, {
|
|
832
|
-
default: b(() => [m("div", Ua, [m("p", $a, [p.code ? (h(), P("span", Ma, K(p.code) + ".", 1)) : G("", !0), qe(K(p.name), 1)]), m("div", La, [m("p", null, K(o(
|
|
832
|
+
default: b(() => [m("div", Ua, [m("p", $a, [p.code ? (h(), P("span", Ma, K(p.code) + ".", 1)) : G("", !0), qe(K(p.name), 1)]), m("div", La, [m("p", null, K(o(u)("hr.employee.restaurants", {
|
|
833
833
|
restaurants: p.restaurants.map((be) => le(be)).join(", ")
|
|
834
834
|
})), 1), m("p", null, " Since: " + K(p.since), 1)])]), n(a, {
|
|
835
835
|
icon: "delete",
|
|
@@ -845,7 +845,7 @@ const na = { class: "flex w-full items-center justify-between" }, ia = { class:
|
|
|
845
845
|
})) : G("", !0)])], 64);
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
}), Za = /* @__PURE__ */ Qe(Aa, [["__scopeId", "data-v-
|
|
848
|
+
}), Za = /* @__PURE__ */ Qe(Aa, [["__scopeId", "data-v-202bbc71"]]);
|
|
849
849
|
export {
|
|
850
850
|
Za as default
|
|
851
851
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as r, openBlock as c, createElementVNode as o, ref as m, computed as f, defineComponent as p, renderSlot as a, createCommentVNode as _, toDisplayString as i } from "vue";
|
|
2
|
-
import { _ as y } from "./SelectFilter-
|
|
2
|
+
import { _ as y } from "./SelectFilter-C61IZSID.js";
|
|
3
3
|
const h = {};
|
|
4
4
|
function v(t, e) {
|
|
5
5
|
return c(), r("div", null, [...e[0] || (e[0] = [
|
|
@@ -4,17 +4,17 @@ import { useCoreStore as cf, useI18n as hf } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useSnackbar as uf } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as vf } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
6
|
import { _ as pf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
|
-
import { u as df } from "./iteration-
|
|
8
|
-
import { u as mf } from "./useAppStore-
|
|
7
|
+
import { u as df } from "./iteration-V9rH_pC3.js";
|
|
8
|
+
import { u as mf } from "./useAppStore-a32PT_PC.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import "./employee-
|
|
11
|
-
import "./lodash-
|
|
10
|
+
import "./employee-DRnkg7jL.js";
|
|
11
|
+
import "./lodash-DoaaH6eb.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { R as vt } from "./app-
|
|
14
|
-
import "./rule-
|
|
15
|
-
import "./useReportPermissions-
|
|
16
|
-
import "./dayjs.min-
|
|
17
|
-
import "./TimesheetList.
|
|
13
|
+
import { R as vt } from "./app-L0IWvTST.js";
|
|
14
|
+
import "./rule-BI1ycxfM.js";
|
|
15
|
+
import "./useReportPermissions-BIbz17zb.js";
|
|
16
|
+
import "./dayjs.min-COxuf_H8.js";
|
|
17
|
+
import "./TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-BdCL8SB4.js";
|
|
18
18
|
var In = {};
|
|
19
19
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
20
20
|
var Zt = {};
|
|
@@ -2,14 +2,14 @@ import { ref as I, defineComponent as Q, computed as F, watch as ie, resolveComp
|
|
|
2
2
|
import { useI18n as X, useCoreStore as ye } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Y, components as M, useDialog as Ue, useBreakpoints as he, FmButtonVariant as q } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as xe } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
5
|
-
import { u as Z } from "./useAppStore-
|
|
6
|
-
import { g as z, a as be, b as H, u as ee } from "./iteration-
|
|
5
|
+
import { u as Z } from "./useAppStore-a32PT_PC.js";
|
|
6
|
+
import { g as z, a as be, b as H, u as ee } from "./iteration-V9rH_pC3.js";
|
|
7
7
|
import { defineStore as ke } from "pinia";
|
|
8
|
-
import { S as D } from "./SelectFilter-
|
|
9
|
-
import { _ as we } from "./app-
|
|
10
|
-
import { _ as ce, u as Fe, H as Ve } from "./FormItem.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { S as D } from "./SelectFilter-C61IZSID.js";
|
|
9
|
+
import { _ as we } from "./app-L0IWvTST.js";
|
|
10
|
+
import { _ as ce, u as Fe, H as Ve } from "./FormItem.vue_vue_type_script_setup_true_lang-S4Mh4MvG.js";
|
|
11
11
|
import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
12
|
-
import { u as ue } from "./useLoading-
|
|
12
|
+
import { u as ue } from "./useLoading-BxqU47eu.js";
|
|
13
13
|
import { _ as Ie } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
14
14
|
const W = {
|
|
15
15
|
async getGrantUsers() {
|
|
@@ -3,14 +3,14 @@ import { useRouter as y, useRoute as g } from "vue-router";
|
|
|
3
3
|
import { useI18n as k } from "@feedmepos/mf-common";
|
|
4
4
|
import { _ as F } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
5
|
import { _ as N } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
|
-
import { u as h } from "./iteration-
|
|
6
|
+
import { u as h } from "./iteration-V9rH_pC3.js";
|
|
7
7
|
import "@feedmepos/ui-library";
|
|
8
|
-
import "./rule-
|
|
9
|
-
import "./lodash-
|
|
10
|
-
import "./useAppStore-
|
|
11
|
-
import { R as v } from "./app-
|
|
8
|
+
import "./rule-BI1ycxfM.js";
|
|
9
|
+
import "./lodash-DoaaH6eb.js";
|
|
10
|
+
import "./useAppStore-a32PT_PC.js";
|
|
11
|
+
import { R as v } from "./app-L0IWvTST.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-
|
|
13
|
+
import "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-CSxT3KNJ.js";
|
|
14
14
|
const w = { class: "space-y-24" }, Q = /* @__PURE__ */ T({
|
|
15
15
|
__name: "Main",
|
|
16
16
|
setup(x) {
|
|
@@ -3,12 +3,12 @@ import { useI18n as Q, useCoreStore as ue } from "@feedmepos/mf-common";
|
|
|
3
3
|
import { useSnackbar as Y, useDialog as de, useBreakpoints as pe, components as J } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as fe } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
5
5
|
import { u as ve, _ as Se } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
6
|
-
import { u as Z, c as ee, d as se, p as X, i as be, b as _e, m as D, l as he, n as Pe, s as ge, o as ye, v as we } from "./rule-
|
|
7
|
-
import { l as q } from "./lodash-
|
|
8
|
-
import { d as Fe, A as ke } from "./iteration-
|
|
9
|
-
import { u as xe } from "./useLoading-
|
|
10
|
-
import { b as G } from "./app-
|
|
11
|
-
import { _ as Ce } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { u as Z, c as ee, d as se, p as X, i as be, b as _e, m as D, l as he, n as Pe, s as ge, o as ye, v as we } from "./rule-BI1ycxfM.js";
|
|
7
|
+
import { l as q } from "./lodash-DoaaH6eb.js";
|
|
8
|
+
import { d as Fe, A as ke } from "./iteration-V9rH_pC3.js";
|
|
9
|
+
import { u as xe } from "./useLoading-BxqU47eu.js";
|
|
10
|
+
import { b as G } from "./app-L0IWvTST.js";
|
|
11
|
+
import { _ as Ce } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C6uznL8r.js";
|
|
12
12
|
const Ve = { class: "flex w-full items-center justify-between" }, Re = { class: "fm-typo-en-title-md-600" }, Ie = { class: "flex items-center justify-start gap-8" }, je = /* @__PURE__ */ H({
|
|
13
13
|
__name: "PermissionSetForm",
|
|
14
14
|
props: {
|