@feedmepos/mf-hrm-portal 2.0.15-dev → 2.0.15-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.
- package/dist/{AuditLogList-DBIsI4YF.js → AuditLogList-eyzJecZc.js} +4 -4
- package/dist/EmployeeList-QibdsTN-.js +736 -0
- package/dist/{Main-BAZAQTWi.js → Main-B_QCpWOx.js} +4 -4
- package/dist/{Main-D7yzD5SW.js → Main-Bjfm9a6M.js} +5 -5
- package/dist/{Main-B3YiMuFq.js → Main-DX1aet8y.js} +1298 -1294
- package/dist/{PermissionSetList-DBT9LtfT.js → PermissionSetList-fE9Zfrl6.js} +30 -30
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BfqnjeTK.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JpCfRxA9.js} +500 -500
- package/dist/RoleList-ByXZemFz.js +528 -0
- package/dist/{TeamMemberList-BCv5Vixx.js → TeamMemberList-D-_icv19.js} +327 -324
- package/dist/{TimesheetList-DpMBgVtY.js → TimesheetList-DVvz6id4.js} +7 -7
- package/dist/{app-pvHHFjbx.js → app-DJG3HGqG.js} +220 -261
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-BK_bM9xY.js → dayjs.min-CN6o-ax9.js} +1 -1
- package/dist/{employee-DhkixwiI.js → employee-CU-G-rAZ.js} +71 -74
- package/dist/{index-DK4fVbTF.js → index-ynxje0mm.js} +1 -1
- package/dist/{iteration-Bk3cnP07.js → iteration-C6Km_Rno.js} +1 -1
- package/dist/{lodash-TrOlqj07.js → lodash-DZvG4gEx.js} +1 -1
- package/dist/rule-X41LxaES.js +991 -0
- package/dist/src/helpers/rule.d.ts +1 -1
- package/dist/src/stores/employee.d.ts +124 -19
- package/dist/src/types/employee.d.ts +3 -0
- package/dist/src/views/hr/employee/EmployeeList.vue.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/{timesheet-DSQeCVfL.js → timesheet-DUtxTIA4.js} +9 -9
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/useAppStore-CrUYEAtX.js +171 -0
- package/dist/useDiscardConfirm-BHni0LNu.js +28 -0
- package/dist/{useLoading-fEAOlgoV.js → useLoading-hGUqfW4U.js} +1 -1
- package/dist/{useReportPermissions-CkOk_2tl.js → useReportPermissions-BgTdISQy.js} +3 -3
- package/dist/utils-BZkjJbju.js +17 -0
- package/package.json +1 -1
- package/dist/EmployeeList-BOSxLZbY.js +0 -702
- package/dist/RoleList-DeE5tN-5.js +0 -519
- package/dist/index-Bckj5jnu.js +0 -998
- package/dist/useAppStore-DwfwjZpc.js +0 -168
- package/dist/useRestaurantMap-e9fQJiLC.js +0 -39
|
@@ -2,11 +2,11 @@ import { defineComponent as M, computed as S, resolveComponent as c, createEleme
|
|
|
2
2
|
import { useI18n as K, useCoreStore as ae } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Q, useDialog as re, useBreakpoints as le, components as me, FmButtonColorThemeVariant as ue, FmButtonVariant as ce } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as de } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
5
|
-
import {
|
|
6
|
-
import { A as ge } from "./iteration-
|
|
7
|
-
import { u as he } from "./useLoading-
|
|
8
|
-
import {
|
|
9
|
-
import { a as ye } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { d as G, q as pe, u as Y, c as Z, p as J, i as fe, b as ve, m as A, k as Se, l as be, s as _e, n as Pe } from "./rule-X41LxaES.js";
|
|
6
|
+
import { A as ge } from "./iteration-C6Km_Rno.js";
|
|
7
|
+
import { u as he } from "./useLoading-hGUqfW4U.js";
|
|
8
|
+
import { p as X } from "./app-DJG3HGqG.js";
|
|
9
|
+
import { a as ye } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JpCfRxA9.js";
|
|
10
10
|
const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M({
|
|
11
11
|
__name: "PermissionWithTooltip",
|
|
12
12
|
props: {
|
|
@@ -15,8 +15,8 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
|
|
|
15
15
|
required: !0
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const { customReportPermissions: k } = G(), t =
|
|
18
|
+
setup($) {
|
|
19
|
+
const { customReportPermissions: k } = G(), t = $, i = S(() => pe(t.modelValue, k.value)), { t: r } = K();
|
|
20
20
|
return (R, C) => {
|
|
21
21
|
const P = c("FmIcon"), y = c("FmTooltip");
|
|
22
22
|
return h(), L("div", Fe, [
|
|
@@ -52,8 +52,8 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
|
|
|
52
52
|
default: () => ({})
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
setup(
|
|
56
|
-
const t =
|
|
55
|
+
setup($, { expose: k }) {
|
|
56
|
+
const t = $, { t: i } = K(), r = _(!1), R = S(() => {
|
|
57
57
|
var e;
|
|
58
58
|
return (e = t.modelValue) != null && e.id ? i("permissionSet.form.update.title") : i("permissionSet.form.create.title");
|
|
59
59
|
}), C = _(), P = Q(), y = he(P), l = Y(), a = _({ ...t.modelValue }), d = _([]), p = _([]), D = [(e) => !!e || "Permission set name is required"], U = S(() => {
|
|
@@ -66,17 +66,17 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
|
|
|
66
66
|
}).map((e) => ({ label: e.name, value: e.id }))
|
|
67
67
|
), F = S(
|
|
68
68
|
() => Z(d.value, l.permissionSets.value)
|
|
69
|
-
), { customReportPermissions:
|
|
69
|
+
), { customReportPermissions: E, isLoaded: n } = G(), o = new Set(
|
|
70
70
|
J.filter((e) => e.subject.startsWith(fe)).map((e) => e.subject)
|
|
71
71
|
), f = S(() => {
|
|
72
72
|
const e = new Set(o);
|
|
73
|
-
for (const s of
|
|
73
|
+
for (const s of E.value) e.add(s.subject);
|
|
74
74
|
return e;
|
|
75
|
-
}),
|
|
75
|
+
}), I = S(() => {
|
|
76
76
|
const e = /* @__PURE__ */ new Set();
|
|
77
77
|
for (const s of J)
|
|
78
78
|
s.category === X.reports && e.add(s.subject);
|
|
79
|
-
for (const s of
|
|
79
|
+
for (const s of E.value)
|
|
80
80
|
s.category === X.reports && e.add(s.subject);
|
|
81
81
|
return e;
|
|
82
82
|
});
|
|
@@ -89,8 +89,8 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
|
|
|
89
89
|
e
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
const e = A(F.value), s = n.value ? f.value : o, v = Se(p.value, s), V = be(v,
|
|
92
|
+
function T() {
|
|
93
|
+
const e = A(F.value), s = n.value ? f.value : o, v = Se(p.value, s), V = be(v, I.value), w = _e(V);
|
|
94
94
|
return Pe(e, w);
|
|
95
95
|
}
|
|
96
96
|
function ee() {
|
|
@@ -100,9 +100,9 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
|
|
|
100
100
|
var v, V;
|
|
101
101
|
const e = await ((v = C.value) == null ? void 0 : v.validateInputsWithoutSubmit()), s = (V = ae().currentBusiness.value) == null ? void 0 : V.id;
|
|
102
102
|
!(e != null && e.length) && s && y.minor(async () => {
|
|
103
|
-
var
|
|
104
|
-
const w =
|
|
105
|
-
if ((
|
|
103
|
+
var j;
|
|
104
|
+
const w = T();
|
|
105
|
+
if ((j = t.modelValue) != null && j.id) {
|
|
106
106
|
const B = {
|
|
107
107
|
name: a.value.name,
|
|
108
108
|
permissions: w,
|
|
@@ -125,7 +125,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
|
|
|
125
125
|
return k({
|
|
126
126
|
trigger: O
|
|
127
127
|
}), (e, s) => {
|
|
128
|
-
const v = c("FmTextField"), V = c("FmSelect"), w = c("FmForm"),
|
|
128
|
+
const v = c("FmTextField"), V = c("FmSelect"), w = c("FmForm"), j = c("FmButton"), B = c("FmSideSheet");
|
|
129
129
|
return h(), q(B, {
|
|
130
130
|
modelValue: r.value,
|
|
131
131
|
"onUpdate:modelValue": s[4] || (s[4] = (b) => r.value = b),
|
|
@@ -137,14 +137,14 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
|
|
|
137
137
|
]),
|
|
138
138
|
"side-sheet-footer": g(() => [
|
|
139
139
|
x("div", xe, [
|
|
140
|
-
m(
|
|
140
|
+
m(j, {
|
|
141
141
|
label: U.value,
|
|
142
142
|
size: "md",
|
|
143
143
|
variant: "primary",
|
|
144
144
|
type: "submit",
|
|
145
145
|
onClick: se
|
|
146
146
|
}, null, 8, ["label"]),
|
|
147
|
-
m(
|
|
147
|
+
m(j, {
|
|
148
148
|
label: u(i)("common.cancel"),
|
|
149
149
|
size: "md",
|
|
150
150
|
variant: "secondary",
|
|
@@ -195,7 +195,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
|
|
|
195
195
|
}
|
|
196
196
|
}), Re = { class: "space-y-8" }, Ce = { class: "flex justify-end xs:px-16" }, De = /* @__PURE__ */ M({
|
|
197
197
|
__name: "PermissionSetList",
|
|
198
|
-
setup(
|
|
198
|
+
setup($, { expose: k }) {
|
|
199
199
|
const { t } = K(), { fetchCustomReportPermissions: i } = G(), r = Q(), R = re(), { breakpoints: C } = le(), P = _(""), y = S(() => {
|
|
200
200
|
var n;
|
|
201
201
|
return (n = d.value) == null ? void 0 : n.filter((o) => {
|
|
@@ -225,8 +225,8 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
|
|
|
225
225
|
const o = n.row.original, f = Z(
|
|
226
226
|
[o.id],
|
|
227
227
|
a.permissionSets.value
|
|
228
|
-
),
|
|
229
|
-
return z(Ve, { modelValue:
|
|
228
|
+
), I = A(f);
|
|
229
|
+
return z(Ve, { modelValue: I });
|
|
230
230
|
}
|
|
231
231
|
},
|
|
232
232
|
{
|
|
@@ -243,7 +243,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
|
|
|
243
243
|
textColor: ue.NeutralGray400,
|
|
244
244
|
class: "flex flex-end",
|
|
245
245
|
onClick: (o) => {
|
|
246
|
-
o.stopPropagation(),
|
|
246
|
+
o.stopPropagation(), E(n.row.original);
|
|
247
247
|
}
|
|
248
248
|
})
|
|
249
249
|
]);
|
|
@@ -255,7 +255,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
|
|
|
255
255
|
var n;
|
|
256
256
|
p.value = void 0, (n = l.value) == null || n.trigger();
|
|
257
257
|
}
|
|
258
|
-
async function
|
|
258
|
+
async function E(n) {
|
|
259
259
|
R.open({
|
|
260
260
|
title: t("permissionSet.form.delete.title"),
|
|
261
261
|
message: t("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
|
|
@@ -286,7 +286,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
|
|
|
286
286
|
}), k({
|
|
287
287
|
create: F
|
|
288
288
|
}), (n, o) => {
|
|
289
|
-
const f = c("FmSearch"),
|
|
289
|
+
const f = c("FmSearch"), I = c("FmTable"), O = c("FullWrapper");
|
|
290
290
|
return h(), L(H, null, [
|
|
291
291
|
m(ke, {
|
|
292
292
|
ref_key: "permissionSetFormRef",
|
|
@@ -297,7 +297,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
|
|
|
297
297
|
x("div", Ce, [
|
|
298
298
|
m(f, {
|
|
299
299
|
modelValue: P.value,
|
|
300
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
300
|
+
"onUpdate:modelValue": o[0] || (o[0] = (T) => P.value = T),
|
|
301
301
|
class: "w-[320px] xs:w-full",
|
|
302
302
|
autofocus: "",
|
|
303
303
|
placeholder: u(t)("permissionSet.search.placeholder")
|
|
@@ -308,14 +308,14 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M
|
|
|
308
308
|
class: "overflow-auto"
|
|
309
309
|
}, {
|
|
310
310
|
default: g(() => [
|
|
311
|
-
m(
|
|
311
|
+
m(I, {
|
|
312
312
|
"column-defs": W,
|
|
313
313
|
"row-data": y.value,
|
|
314
314
|
"page-size": y.value.length,
|
|
315
315
|
"pin-header-row": "",
|
|
316
316
|
"hide-footer": "",
|
|
317
317
|
"shrink-at": !1,
|
|
318
|
-
onRowClick: o[1] || (o[1] = (
|
|
318
|
+
onRowClick: o[1] || (o[1] = (T) => U(T.original))
|
|
319
319
|
}, null, 8, ["row-data", "page-size"])
|
|
320
320
|
]),
|
|
321
321
|
_: 1
|