@feedmepos/mf-hrm-portal 2.0.8-dev.19 → 2.0.8-dev.20
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-BwXO87D4.js → AuditLogList-BfcV3GuV.js} +209 -199
- package/dist/{EmployeeList-memPGU-S.js → EmployeeList-CSGpTtj-.js} +5 -5
- package/dist/{Main-DSMAqUau.js → Main-5iSh8AOp.js} +9 -9
- package/dist/{Main-N6Q7Gmy_.js → Main-BttHvrfX.js} +4 -4
- package/dist/{Main-q_gT3UIr.js → Main-C6_hymuD.js} +6 -6
- package/dist/{PermissionSetList-Bh0FqlHT.js → PermissionSetList-D-qEchys.js} +33 -33
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B3f06Kpx.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JoFnQhkL.js} +765 -765
- package/dist/{RoleList-FhNAXjI9.js → RoleList-DMC1MFbx.js} +7 -7
- package/dist/{TeamMemberList-kQy-NgkT.js → TeamMemberList-CFGAYF8K.js} +45 -45
- package/dist/{TimesheetList-BrQUH58D.js → TimesheetList-BYT7Nmjf.js} +7 -7
- package/dist/{app-DG3qS1TM.js → app-D8vTftyA.js} +1962 -1232
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-IQNr_jJN.js → dayjs.min-B5H5x-Tu.js} +1 -1
- package/dist/{employee-AAKiSW7R.js → employee-BE5Sm7cX.js} +4 -4
- package/dist/{index-FoKQ8_0w.js → index-D0zaceK9.js} +12 -12
- package/dist/{index-CRKGw084.js → index-DNLkGHeZ.js} +1 -1
- package/dist/{iteration-D1Az4IpE.js → iteration-AxipbNoR.js} +1 -1
- package/dist/{lodash-BPJz-8Ja.js → lodash-B4DK5U2H.js} +1 -1
- package/dist/src/views/audit-log/constants.d.ts +30 -0
- package/dist/{team-BNIF9jOa.js → team-BY_49uIG.js} +1 -1
- package/dist/{timesheet-eFbQwdWG.js → timesheet-Bq9nINdL.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-Bepv1nhX.js → useAppStore-ByKKnIVk.js} +1 -1
- package/dist/{useLoading-C7ZhUGJ-.js → useLoading-pWhsmlRR.js} +1 -1
- package/dist/{useReportPermissions-ia-Cp_6x.js → useReportPermissions-CIMFHvmS.js} +3 -3
- package/package.json +3 -3
|
@@ -2,16 +2,16 @@ import { toRaw as Me, defineComponent as _e, ref as g, computed as w, watch as b
|
|
|
2
2
|
import { useCoreStore as Fe, useI18n as we, RestaurantSelector as ce } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as xe, components as Ue, useDialog as Ne, useBreakpoints as Be, FmButtonVariant as De } from "@feedmepos/ui-library";
|
|
4
4
|
import { S as pe } from "./SelectFilter-DUj7GBtT.js";
|
|
5
|
-
import { _ as Pe } from "./app-
|
|
5
|
+
import { _ as Pe } from "./app-D8vTftyA.js";
|
|
6
6
|
import { H as Te } from "./HorizontalSplitter-o860F4xM.js";
|
|
7
7
|
import { _ as ze } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
8
8
|
import { u as ke } from "./useSearch-B6WK1LBB.js";
|
|
9
|
-
import { u as Se, E as Ae } from "./employee-
|
|
10
|
-
import { l as je } from "./lodash-
|
|
9
|
+
import { u as Se, E as Ae } from "./employee-BE5Sm7cX.js";
|
|
10
|
+
import { l as je } from "./lodash-B4DK5U2H.js";
|
|
11
11
|
import { _ as ve, a as fe } from "./FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js";
|
|
12
12
|
import { u as Ke, a as Ge } from "./useRestaurantMap-e9fQJiLC.js";
|
|
13
|
-
import { u as qe } from "./useLoading-
|
|
14
|
-
import { u as ue } from "./useAppStore-
|
|
13
|
+
import { u as qe } from "./useLoading-pWhsmlRR.js";
|
|
14
|
+
import { u as ue } from "./useAppStore-ByKKnIVk.js";
|
|
15
15
|
function ye(I) {
|
|
16
16
|
return JSON.parse(JSON.stringify(I));
|
|
17
17
|
}
|
|
@@ -3,17 +3,17 @@ import { useRouter as of, useRoute as cf } from "vue-router";
|
|
|
3
3
|
import { useCoreStore as hf, useI18n as uf } from "@feedmepos/mf-common";
|
|
4
4
|
import { _ as vf } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
5
|
import { _ as pf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
|
-
import { u as df } from "./useAppStore-
|
|
6
|
+
import { u as df } from "./useAppStore-ByKKnIVk.js";
|
|
7
7
|
import "@feedmepos/ui-library";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { u as mf } from "./employee-
|
|
10
|
-
import "./lodash-
|
|
11
|
-
import "./iteration-
|
|
12
|
-
import { R as vt } from "./app-
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./useReportPermissions-
|
|
15
|
-
import "./dayjs.min-
|
|
16
|
-
import "./timesheet-
|
|
9
|
+
import { u as mf } from "./employee-BE5Sm7cX.js";
|
|
10
|
+
import "./lodash-B4DK5U2H.js";
|
|
11
|
+
import "./iteration-AxipbNoR.js";
|
|
12
|
+
import { R as vt } from "./app-D8vTftyA.js";
|
|
13
|
+
import "./index-D0zaceK9.js";
|
|
14
|
+
import "./useReportPermissions-CIMFHvmS.js";
|
|
15
|
+
import "./dayjs.min-B5H5x-Tu.js";
|
|
16
|
+
import "./timesheet-Bq9nINdL.js";
|
|
17
17
|
var In = {};
|
|
18
18
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
19
19
|
var jt = {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref as S, defineComponent as J, computed as F, watch as ce, resolveComponent as h, createElementBlock as D, openBlock as I, Fragment as W, renderSlot as ge, createVNode as n, unref as s, withCtx as x, createElementVNode as l, toDisplayString as k, createBlock as K, isRef as ae, renderList as fe, createCommentVNode as ve, withModifiers as se, createTextVNode as re, normalizeClass as _e, h as _ } from "vue";
|
|
2
2
|
import { useCoreStore as Q, useI18n as X, RestaurantSelector as oe } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as ye } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
4
|
-
import { u as Y } from "./useAppStore-
|
|
4
|
+
import { u as Y } from "./useAppStore-ByKKnIVk.js";
|
|
5
5
|
import { defineStore as Ue } from "pinia";
|
|
6
|
-
import { g as z, a as he, b as O } from "./iteration-
|
|
6
|
+
import { g as z, a as he, b as O } from "./iteration-AxipbNoR.js";
|
|
7
7
|
import { useSnackbar as ie, components as E, useDialog as xe, useBreakpoints as be, FmButtonVariant as q } from "@feedmepos/ui-library";
|
|
8
8
|
import { S as ne } from "./SelectFilter-DUj7GBtT.js";
|
|
9
|
-
import { _ as we } from "./app-
|
|
9
|
+
import { _ as we } from "./app-D8vTftyA.js";
|
|
10
10
|
import { H as ke } from "./HorizontalSplitter-o860F4xM.js";
|
|
11
11
|
import { _ as Ve } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
12
12
|
import { u as Fe } from "./useSearch-B6WK1LBB.js";
|
|
13
|
-
import { u as ue } from "./useLoading-
|
|
13
|
+
import { u as ue } from "./useLoading-pWhsmlRR.js";
|
|
14
14
|
import { _ as Ie, a as le } from "./FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js";
|
|
15
15
|
const H = {
|
|
16
16
|
async getGrantUsers() {
|
|
@@ -4,14 +4,14 @@ import { useI18n as N } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { _ as g } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
5
|
import { _ as h } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
6
|
import "@feedmepos/ui-library";
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./iteration-
|
|
9
|
-
import { R as v } from "./app-
|
|
10
|
-
import "./useAppStore-
|
|
11
|
-
import "./index-
|
|
7
|
+
import "./index-D0zaceK9.js";
|
|
8
|
+
import "./iteration-AxipbNoR.js";
|
|
9
|
+
import { R as v } from "./app-D8vTftyA.js";
|
|
10
|
+
import "./useAppStore-ByKKnIVk.js";
|
|
11
|
+
import "./index-DNLkGHeZ.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
|
-
import "./team-
|
|
14
|
+
import "./team-BY_49uIG.js";
|
|
15
15
|
const w = { class: "space-y-24" }, Q = /* @__PURE__ */ V({
|
|
16
16
|
__name: "Main",
|
|
17
17
|
setup(x) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as q, computed as S, resolveComponent as u, createElementBlock as
|
|
1
|
+
import { defineComponent as q, computed as S, resolveComponent as u, createElementBlock as $, openBlock as g, createElementVNode as y, createVNode as r, toDisplayString as N, unref as c, withCtx as P, createTextVNode as te, Fragment as X, renderList as oe, ref as b, createBlock as H, nextTick as ne, onMounted as ie, h as z } from "vue";
|
|
2
2
|
import { useI18n as M, useCoreStore as ae } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Q, useDialog as le, useBreakpoints as re, components as me, FmButtonColorThemeVariant as ce, FmButtonVariant as ue } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as de } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
5
|
-
import { j as K, w as pe, u as Y, c as Z, p as G, k as fe, d as ve, m as A, n as Se, o as _e, s as be, q as
|
|
6
|
-
import { A as
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import { a as ye } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { j as K, w as pe, u as Y, c as Z, p as G, k as fe, d as ve, m as A, n as Se, o as _e, s as be, q as he } from "./index-D0zaceK9.js";
|
|
6
|
+
import { A as Pe } from "./iteration-AxipbNoR.js";
|
|
7
|
+
import { u as ge } from "./useLoading-pWhsmlRR.js";
|
|
8
|
+
import { p as J } from "./app-D8vTftyA.js";
|
|
9
|
+
import { a as ye } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JoFnQhkL.js";
|
|
10
10
|
const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q({
|
|
11
11
|
__name: "PermissionWithTooltip",
|
|
12
12
|
props: {
|
|
@@ -15,26 +15,26 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
15
15
|
required: !0
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const { customReportPermissions: k } = K(), t =
|
|
18
|
+
setup(E) {
|
|
19
|
+
const { customReportPermissions: k } = K(), t = E, i = S(() => pe(t.modelValue, k.value)), { t: l } = M();
|
|
20
20
|
return (R, C) => {
|
|
21
|
-
const
|
|
22
|
-
return
|
|
21
|
+
const h = u("FmIcon"), F = u("FmTooltip");
|
|
22
|
+
return g(), $("div", Fe, [
|
|
23
23
|
y("span", null, N(c(l)("team.labels.allowed", { count: i.value.length })), 1),
|
|
24
24
|
r(F, {
|
|
25
25
|
variant: "plain",
|
|
26
26
|
placement: "top"
|
|
27
27
|
}, {
|
|
28
|
-
content:
|
|
28
|
+
content: P(() => [
|
|
29
29
|
y("div", null, [
|
|
30
30
|
te(N(c(l)("team.labels.permission")) + " ", 1),
|
|
31
|
-
(
|
|
31
|
+
(g(!0), $(X, null, oe(i.value, (m, a) => (g(), $("div", {
|
|
32
32
|
key: `${m}-${a}`
|
|
33
33
|
}, " - " + N(m), 1))), 128))
|
|
34
34
|
])
|
|
35
35
|
]),
|
|
36
|
-
default:
|
|
37
|
-
r(
|
|
36
|
+
default: P(() => [
|
|
37
|
+
r(h, {
|
|
38
38
|
name: "info",
|
|
39
39
|
class: "cursor-pointer text-fm-color-neutral-gray-300"
|
|
40
40
|
})
|
|
@@ -52,11 +52,11 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
52
52
|
default: () => ({})
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
setup(
|
|
56
|
-
const t =
|
|
55
|
+
setup(E, { expose: k }) {
|
|
56
|
+
const t = E, { t: i } = M(), l = b(!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
|
-
}), C = b(),
|
|
59
|
+
}), C = b(), h = Q(), F = ge(h), m = Y(), a = b({ ...t.modelValue }), d = b([]), p = b([]), D = [(e) => !!e || "Permission set name is required"], U = S(() => {
|
|
60
60
|
var e;
|
|
61
61
|
return (e = t.modelValue) != null && e.id ? i("permissionSet.form.update.confirmButtonLabel") : i("permissionSet.form.create.confirmButtonLabel");
|
|
62
62
|
}), W = S(
|
|
@@ -91,7 +91,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
91
91
|
}
|
|
92
92
|
function I() {
|
|
93
93
|
const e = A(V.value), s = n.value ? f.value : o, v = Se(p.value, s), w = _e(v, j.value), x = be(w);
|
|
94
|
-
return
|
|
94
|
+
return he(e, x);
|
|
95
95
|
}
|
|
96
96
|
function ee() {
|
|
97
97
|
p.value = A(V.value);
|
|
@@ -126,16 +126,16 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
126
126
|
trigger: O
|
|
127
127
|
}), (e, s) => {
|
|
128
128
|
const v = u("FmTextField"), w = u("FmSelect"), x = u("FmForm"), T = u("FmButton"), B = u("FmSideSheet");
|
|
129
|
-
return
|
|
129
|
+
return g(), H(B, {
|
|
130
130
|
modelValue: l.value,
|
|
131
131
|
"onUpdate:modelValue": s[4] || (s[4] = (_) => l.value = _),
|
|
132
132
|
"max-width": 560,
|
|
133
133
|
"dismiss-away": ""
|
|
134
134
|
}, {
|
|
135
|
-
"side-sheet-header":
|
|
135
|
+
"side-sheet-header": P(() => [
|
|
136
136
|
y("p", we, N(R.value), 1)
|
|
137
137
|
]),
|
|
138
|
-
"side-sheet-footer":
|
|
138
|
+
"side-sheet-footer": P(() => [
|
|
139
139
|
y("div", xe, [
|
|
140
140
|
r(T, {
|
|
141
141
|
label: U.value,
|
|
@@ -152,12 +152,12 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
152
152
|
}, null, 8, ["label"])
|
|
153
153
|
])
|
|
154
154
|
]),
|
|
155
|
-
default:
|
|
155
|
+
default: P(() => [
|
|
156
156
|
r(x, {
|
|
157
157
|
ref_key: "formRef",
|
|
158
158
|
ref: C
|
|
159
159
|
}, {
|
|
160
|
-
default:
|
|
160
|
+
default: P(() => [
|
|
161
161
|
r(v, {
|
|
162
162
|
modelValue: a.value.name,
|
|
163
163
|
"onUpdate:modelValue": s[0] || (s[0] = (_) => a.value.name = _),
|
|
@@ -198,11 +198,11 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
198
198
|
class: "overflow-auto"
|
|
199
199
|
}, Ie = { class: "pb-64" }, We = /* @__PURE__ */ q({
|
|
200
200
|
__name: "PermissionSetList",
|
|
201
|
-
setup(
|
|
202
|
-
const { t } = M(), { fetchCustomReportPermissions: i } = K(), l = Q(), R = le(), { breakpoints: C } = re(),
|
|
201
|
+
setup(E, { expose: k }) {
|
|
202
|
+
const { t } = M(), { fetchCustomReportPermissions: i } = K(), l = Q(), R = le(), { breakpoints: C } = re(), h = b(""), F = S(() => {
|
|
203
203
|
var n;
|
|
204
204
|
return (n = d.value) == null ? void 0 : n.filter((o) => {
|
|
205
|
-
const f =
|
|
205
|
+
const f = h.value.toLowerCase();
|
|
206
206
|
return o.name.toLowerCase().includes(f);
|
|
207
207
|
});
|
|
208
208
|
}), m = b(), a = Y(), d = S(
|
|
@@ -276,7 +276,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
276
276
|
type: "success"
|
|
277
277
|
});
|
|
278
278
|
} catch (o) {
|
|
279
|
-
const f = o instanceof
|
|
279
|
+
const f = o instanceof Pe && o.status === 409 ? o.message.includes("referenced by") ? t("permissionSet.form.delete.setReferencedConflictError", {
|
|
280
280
|
permissionSetName: n.name
|
|
281
281
|
}) : t("permissionSet.form.delete.conflictError", { permissionSetName: n.name }) : o instanceof Error ? o.message : `${o}`;
|
|
282
282
|
l.open({ message: f, type: "error" });
|
|
@@ -290,7 +290,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
290
290
|
create: V
|
|
291
291
|
}), (n, o) => {
|
|
292
292
|
const f = u("FmSearch"), j = u("FmTable"), O = u("FullWrapper");
|
|
293
|
-
return
|
|
293
|
+
return g(), $(X, null, [
|
|
294
294
|
r(ke, {
|
|
295
295
|
ref_key: "permissionSetFormRef",
|
|
296
296
|
ref: m,
|
|
@@ -299,17 +299,17 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
299
299
|
y("div", Re, [
|
|
300
300
|
y("div", Ce, [
|
|
301
301
|
r(f, {
|
|
302
|
-
modelValue:
|
|
303
|
-
"onUpdate:modelValue": o[0] || (o[0] = (I) =>
|
|
302
|
+
modelValue: h.value,
|
|
303
|
+
"onUpdate:modelValue": o[0] || (o[0] = (I) => h.value = I),
|
|
304
304
|
class: "w-[320px] xs:w-full",
|
|
305
305
|
autofocus: "",
|
|
306
306
|
placeholder: c(t)("permissionSet.search.placeholder")
|
|
307
307
|
}, null, 8, ["modelValue", "placeholder"])
|
|
308
308
|
]),
|
|
309
|
-
d.value.length > 0 ? (
|
|
309
|
+
d.value.length > 0 ? (g(), $("div", je, [
|
|
310
310
|
y("div", Ie, [
|
|
311
311
|
r(O, null, {
|
|
312
|
-
default:
|
|
312
|
+
default: P(() => [
|
|
313
313
|
r(j, {
|
|
314
314
|
"column-defs": W,
|
|
315
315
|
"row-data": F.value,
|
|
@@ -323,7 +323,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
323
323
|
_: 1
|
|
324
324
|
})
|
|
325
325
|
])
|
|
326
|
-
])) : (
|
|
326
|
+
])) : (g(), H(c(de), {
|
|
327
327
|
key: 1,
|
|
328
328
|
title: c(t)("permissionSet.noData.title"),
|
|
329
329
|
subtitle: c(t)("permissionSet.noData.subtitle")
|