@feedmepos/mf-hrm-portal 2.0.20-dev.2 → 2.0.20-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-ChxAzO74.js → AuditLogList-7E8iWQWx.js} +4 -4
- package/dist/{EmployeeList-Cs-Mn6UA.js → EmployeeList-DyNW3cUo.js} +214 -206
- package/dist/{Main-DcvmP7s-.js → Main-BLJyOcEv.js} +4 -4
- package/dist/{Main-B9_TyRDo.js → Main-BZjZxFHp.js} +9 -9
- package/dist/{Main-CdHW4UkN.js → Main-C9lMH4EN.js} +5 -5
- package/dist/{PermissionSetList-VFVS0g0v.js → PermissionSetList-BuCp14Os.js} +115 -107
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Dr3R9JjS.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BQSDnH-Z.js} +608 -595
- package/dist/{RoleList-BZ6RZvm2.js → RoleList-L8L1xmJ2.js} +201 -193
- package/dist/{TeamMemberList-C-zhFauD.js → TeamMemberList-DEN9rHqb.js} +421 -412
- package/dist/{TimesheetList-CZex54an.js → TimesheetList-D88u0GFn.js} +6 -6
- package/dist/{app-CLL3p27X.js → app-g_SrJtfC.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CDt1i9vl.js → dayjs.min-BGHzwXCt.js} +1 -1
- package/dist/{employee-BpRvjWNh.js → employee-Dep-q_aU.js} +3 -3
- package/dist/{iteration-BVjUzYL5.js → iteration-Dc-Bz5bA.js} +1 -1
- package/dist/{lodash-CrwgACp2.js → lodash-Cxw1GZ6L.js} +1 -1
- package/dist/{rule-BlQ5YZ9Z.js → rule-ClRtpdqO.js} +2 -2
- package/dist/{timesheet-jFs4GTAL.js → timesheet-CZoSvFYT.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DMAL8VFY.js → useAppStore-CTBRpqmO.js} +1 -1
- package/dist/{useLoading-AFTjRLyO.js → useLoading-XvrLj1VM.js} +1 -1
- package/dist/{useReportPermissions-hODG0Xx3.js → useReportPermissions-nivbQm9V.js} +3 -3
- package/package.json +1 -1
|
@@ -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-CTBRpqmO.js";
|
|
6
|
+
import { g as z, a as be, b as H, u as ee } from "./iteration-Dc-Bz5bA.js";
|
|
7
7
|
import { defineStore as ke } from "pinia";
|
|
8
8
|
import { S as D } from "./SelectFilter-DUj7GBtT.js";
|
|
9
|
-
import { _ as we } from "./app-
|
|
9
|
+
import { _ as we } from "./app-g_SrJtfC.js";
|
|
10
10
|
import { _ as ce, u as Fe, H as Ve } from "./FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.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-XvrLj1VM.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() {
|
|
@@ -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-Dc-Bz5bA.js";
|
|
8
|
+
import { u as mf } from "./useAppStore-CTBRpqmO.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import "./employee-
|
|
11
|
-
import "./lodash-
|
|
10
|
+
import "./employee-Dep-q_aU.js";
|
|
11
|
+
import "./lodash-Cxw1GZ6L.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { R as vt } from "./app-
|
|
14
|
-
import "./rule-
|
|
15
|
-
import "./useReportPermissions-
|
|
16
|
-
import "./dayjs.min-
|
|
17
|
-
import "./timesheet-
|
|
13
|
+
import { R as vt } from "./app-g_SrJtfC.js";
|
|
14
|
+
import "./rule-ClRtpdqO.js";
|
|
15
|
+
import "./useReportPermissions-nivbQm9V.js";
|
|
16
|
+
import "./dayjs.min-BGHzwXCt.js";
|
|
17
|
+
import "./timesheet-CZoSvFYT.js";
|
|
18
18
|
var In = {};
|
|
19
19
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
20
20
|
var Zt = {};
|
|
@@ -3,12 +3,12 @@ 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-Dc-Bz5bA.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-ClRtpdqO.js";
|
|
9
|
+
import "./lodash-Cxw1GZ6L.js";
|
|
10
|
+
import "./useAppStore-CTBRpqmO.js";
|
|
11
|
+
import { R as v } from "./app-g_SrJtfC.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
const w = { class: "space-y-24" }, Q = /* @__PURE__ */ T({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as H, ref as
|
|
2
|
-
import { useI18n as Q, useCoreStore as
|
|
3
|
-
import { useSnackbar as Y, useDialog as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as Z, c as ee, d as se, p as X, i as
|
|
7
|
-
import { l as q } from "./lodash-
|
|
8
|
-
import { d as
|
|
9
|
-
import { u as
|
|
10
|
-
import { b as G } from "./app-
|
|
11
|
-
import { _ as
|
|
12
|
-
const Ve = { class: "fm-typo-en-title-md-600" },
|
|
1
|
+
import { defineComponent as H, ref as p, computed as _, watch as ie, resolveComponent as f, createBlock as M, openBlock as A, unref as r, withCtx as j, createVNode as u, createElementVNode as E, toDisplayString as ae, nextTick as le, onMounted as re, createElementBlock as me, Fragment as ce, h as b } from "vue";
|
|
2
|
+
import { useI18n as Q, useCoreStore as ue } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as Y, useDialog as de, useBreakpoints as pe, components as J } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as fe } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
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-ClRtpdqO.js";
|
|
7
|
+
import { l as q } from "./lodash-Cxw1GZ6L.js";
|
|
8
|
+
import { d as Fe, A as ke } from "./iteration-Dc-Bz5bA.js";
|
|
9
|
+
import { u as xe } from "./useLoading-XvrLj1VM.js";
|
|
10
|
+
import { b as G } from "./app-g_SrJtfC.js";
|
|
11
|
+
import { _ as Ce } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BQSDnH-Z.js";
|
|
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: {
|
|
15
15
|
modelValue: {
|
|
@@ -17,116 +17,124 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
|
|
|
17
17
|
default: () => ({})
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
setup(K, { expose:
|
|
21
|
-
const s = K, { t: a } = Q(),
|
|
20
|
+
setup(K, { expose: N }) {
|
|
21
|
+
const s = K, { t: a } = Q(), v = p(!1), B = _(() => {
|
|
22
22
|
var e;
|
|
23
23
|
return (e = s.modelValue) != null && e.id ? a("permissionSet.form.update.title") : a("permissionSet.form.create.title");
|
|
24
|
-
}),
|
|
24
|
+
}), C = p(), O = Y(), V = xe(O), h = Z(), l = p({ ...s.modelValue }), i = p([]), c = p([]), R = [(e) => !!e || a("permissionSet.form.nameRequired")], z = _(() => {
|
|
25
25
|
var e;
|
|
26
26
|
return (e = s.modelValue) != null && e.id ? a("permissionSet.form.update.confirmButtonLabel") : a("permissionSet.form.create.confirmButtonLabel");
|
|
27
|
-
}), T =
|
|
28
|
-
() =>
|
|
27
|
+
}), T = _(
|
|
28
|
+
() => h.permissionSets.value.filter((e) => {
|
|
29
29
|
var o;
|
|
30
30
|
return e.id !== ((o = s.modelValue) == null ? void 0 : o.id);
|
|
31
31
|
}).map((e) => ({ label: e.name, value: e.id }))
|
|
32
|
-
), g =
|
|
33
|
-
() => ee(i.value,
|
|
32
|
+
), g = _(
|
|
33
|
+
() => ee(i.value, h.permissionSets.value)
|
|
34
34
|
), {
|
|
35
35
|
fetchCustomReportPermissions: U,
|
|
36
36
|
customReportPermissions: $,
|
|
37
37
|
isLoaded: n
|
|
38
38
|
} = se(), t = new Set(
|
|
39
|
-
X.filter((e) => e.subject.startsWith(
|
|
40
|
-
), m =
|
|
39
|
+
X.filter((e) => e.subject.startsWith(be)).map((e) => e.subject)
|
|
40
|
+
), m = _(() => {
|
|
41
41
|
const e = new Set(t);
|
|
42
42
|
for (const o of $.value) e.add(o.subject);
|
|
43
43
|
return e;
|
|
44
|
-
}), y =
|
|
44
|
+
}), y = _(() => {
|
|
45
45
|
const e = /* @__PURE__ */ new Set();
|
|
46
46
|
for (const o of X)
|
|
47
47
|
o.category === G.reports && e.add(o.subject);
|
|
48
48
|
for (const o of $.value)
|
|
49
49
|
o.category === G.reports && e.add(o.subject);
|
|
50
50
|
return e;
|
|
51
|
-
}),
|
|
52
|
-
async function
|
|
53
|
-
var o,
|
|
54
|
-
await
|
|
55
|
-
const e = ((
|
|
56
|
-
c.value =
|
|
57
|
-
|
|
51
|
+
}), S = p({ name: "", permissionSetIds: [], userPermissions: [] });
|
|
52
|
+
async function P() {
|
|
53
|
+
var o, d;
|
|
54
|
+
await le(), v.value = !v.value, l.value = { ...s.modelValue }, i.value = ((o = s.modelValue) == null ? void 0 : o.permissionSetIds) ?? [];
|
|
55
|
+
const e = ((d = s.modelValue) == null ? void 0 : d.permissions) ?? [];
|
|
56
|
+
c.value = _e(
|
|
57
|
+
D(g.value),
|
|
58
58
|
e
|
|
59
|
-
),
|
|
59
|
+
), S.value = {
|
|
60
60
|
name: l.value.name ?? "",
|
|
61
61
|
permissionSetIds: [...i.value],
|
|
62
|
-
userPermissions:
|
|
62
|
+
userPermissions: Fe(c.value)
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
ie(v, async (e) => {
|
|
66
66
|
e && await U();
|
|
67
67
|
});
|
|
68
|
-
const w =
|
|
69
|
-
() => !q.isEqual(l.value.name ?? "",
|
|
68
|
+
const w = ve(
|
|
69
|
+
() => !q.isEqual(l.value.name ?? "", S.value.name) || !q.isEqual(i.value, S.value.permissionSetIds) || !q.isEqual(c.value, S.value.userPermissions),
|
|
70
70
|
() => {
|
|
71
|
-
|
|
71
|
+
v.value = !1;
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
74
|
function W() {
|
|
75
|
-
const e =
|
|
76
|
-
return
|
|
75
|
+
const e = D(g.value), o = n.value ? m.value : t, d = he(c.value, o), F = Pe(d, y.value), k = ge(F);
|
|
76
|
+
return ye(e, k);
|
|
77
77
|
}
|
|
78
78
|
function oe() {
|
|
79
|
-
c.value =
|
|
79
|
+
c.value = D(g.value);
|
|
80
80
|
}
|
|
81
81
|
async function te() {
|
|
82
|
-
var
|
|
83
|
-
const e = await ((
|
|
82
|
+
var d, F;
|
|
83
|
+
const e = await ((d = C.value) == null ? void 0 : d.validateInputsWithoutSubmit()), o = (F = ue().currentBusiness.value) == null ? void 0 : F.id;
|
|
84
84
|
!(e != null && e.length) && o && V.minor(async () => {
|
|
85
|
-
var
|
|
85
|
+
var L;
|
|
86
86
|
const k = W();
|
|
87
|
-
if ((
|
|
88
|
-
const
|
|
87
|
+
if ((L = s.modelValue) != null && L.id) {
|
|
88
|
+
const x = {
|
|
89
89
|
name: l.value.name,
|
|
90
90
|
permissions: k,
|
|
91
91
|
permissionSetIds: i.value,
|
|
92
92
|
businessId: l.value.businessId
|
|
93
93
|
};
|
|
94
|
-
await
|
|
94
|
+
await h.updatePermissionSet(s.modelValue.id, x);
|
|
95
95
|
} else {
|
|
96
|
-
const
|
|
96
|
+
const x = {
|
|
97
97
|
name: l.value.name,
|
|
98
98
|
businessId: o,
|
|
99
99
|
permissions: k,
|
|
100
100
|
permissionSetIds: i.value
|
|
101
101
|
};
|
|
102
|
-
await
|
|
102
|
+
await h.createPermissionSet(x);
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
v.value = !1;
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
-
return
|
|
108
|
-
trigger:
|
|
107
|
+
return N({
|
|
108
|
+
trigger: P
|
|
109
109
|
}), (e, o) => {
|
|
110
|
-
const
|
|
111
|
-
return
|
|
112
|
-
"model-value":
|
|
110
|
+
const d = f("FmIcon"), F = f("FmTextField"), k = f("FmSelect"), L = f("FmForm"), x = f("FmButton"), ne = f("FmSideSheet");
|
|
111
|
+
return A(), M(ne, {
|
|
112
|
+
"model-value": v.value,
|
|
113
113
|
"max-width": 960,
|
|
114
|
-
"
|
|
115
|
-
"onOn:
|
|
114
|
+
"close-button": !1,
|
|
115
|
+
"onOn:clickedAway": r(w)
|
|
116
116
|
}, {
|
|
117
117
|
"side-sheet-header": j(() => [
|
|
118
|
-
|
|
118
|
+
E("div", Ve, [
|
|
119
|
+
E("p", Re, ae(B.value), 1),
|
|
120
|
+
u(d, {
|
|
121
|
+
name: "close",
|
|
122
|
+
size: "md",
|
|
123
|
+
class: "cursor-pointer",
|
|
124
|
+
onClick: r(w)
|
|
125
|
+
}, null, 8, ["onClick"])
|
|
126
|
+
])
|
|
119
127
|
]),
|
|
120
128
|
"side-sheet-footer": j(() => [
|
|
121
|
-
|
|
122
|
-
|
|
129
|
+
E("div", Ie, [
|
|
130
|
+
u(x, {
|
|
123
131
|
label: z.value,
|
|
124
132
|
size: "md",
|
|
125
133
|
variant: "primary",
|
|
126
134
|
type: "submit",
|
|
127
135
|
onClick: te
|
|
128
136
|
}, null, 8, ["label"]),
|
|
129
|
-
|
|
137
|
+
u(x, {
|
|
130
138
|
label: r(a)("common.cancel"),
|
|
131
139
|
size: "md",
|
|
132
140
|
variant: "secondary",
|
|
@@ -135,22 +143,22 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
|
|
|
135
143
|
])
|
|
136
144
|
]),
|
|
137
145
|
default: j(() => [
|
|
138
|
-
|
|
146
|
+
u(L, {
|
|
139
147
|
ref_key: "formRef",
|
|
140
|
-
ref:
|
|
148
|
+
ref: C
|
|
141
149
|
}, {
|
|
142
150
|
default: j(() => [
|
|
143
|
-
|
|
151
|
+
u(F, {
|
|
144
152
|
modelValue: l.value.name,
|
|
145
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
153
|
+
"onUpdate:modelValue": o[0] || (o[0] = (I) => l.value.name = I),
|
|
146
154
|
label: r(a)("permissionSet.form.name"),
|
|
147
155
|
placeholder: r(a)("permissionSet.form.namePlaceholder"),
|
|
148
|
-
rules:
|
|
156
|
+
rules: R
|
|
149
157
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
150
|
-
|
|
158
|
+
u(k, {
|
|
151
159
|
modelValue: i.value,
|
|
152
160
|
"onUpdate:modelValue": [
|
|
153
|
-
o[1] || (o[1] = (
|
|
161
|
+
o[1] || (o[1] = (I) => i.value = I),
|
|
154
162
|
oe
|
|
155
163
|
],
|
|
156
164
|
multiselect: "",
|
|
@@ -161,9 +169,9 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
|
|
|
161
169
|
placeholder: r(a)("permissionSet.form.includedSetsPlaceholder"),
|
|
162
170
|
class: "mt-16"
|
|
163
171
|
}, null, 8, ["modelValue", "items", "label", "placeholder"]),
|
|
164
|
-
|
|
172
|
+
u(Ce, {
|
|
165
173
|
modelValue: c.value,
|
|
166
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
|
174
|
+
"onUpdate:modelValue": o[2] || (o[2] = (I) => c.value = I),
|
|
167
175
|
"inherit-permissions": g.value,
|
|
168
176
|
class: "mt-24"
|
|
169
177
|
}, null, 8, ["modelValue", "inherit-permissions"])
|
|
@@ -172,27 +180,27 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
|
|
|
172
180
|
}, 512)
|
|
173
181
|
]),
|
|
174
182
|
_: 1
|
|
175
|
-
}, 8, ["model-value", "onOn:clickedAway"
|
|
183
|
+
}, 8, ["model-value", "onOn:clickedAway"]);
|
|
176
184
|
};
|
|
177
185
|
}
|
|
178
|
-
}),
|
|
186
|
+
}), Ee = { class: "space-y-8" }, Be = { class: "flex justify-end xs:px-16" }, Me = /* @__PURE__ */ H({
|
|
179
187
|
__name: "PermissionSetList",
|
|
180
|
-
setup(K, { expose:
|
|
181
|
-
const { t: s } = Q(), { customReportPermissions: a, fetchCustomReportPermissions:
|
|
188
|
+
setup(K, { expose: N }) {
|
|
189
|
+
const { t: s } = Q(), { customReportPermissions: a, fetchCustomReportPermissions: v } = se(), B = Y(), C = de(), { breakpoints: O } = pe(), V = p(""), h = _(() => {
|
|
182
190
|
var n;
|
|
183
191
|
return (n = c.value) == null ? void 0 : n.filter((t) => {
|
|
184
192
|
const m = V.value.toLowerCase();
|
|
185
193
|
return t.name.toLowerCase().includes(m);
|
|
186
194
|
});
|
|
187
|
-
}), l =
|
|
195
|
+
}), l = p(), i = Z(), c = _(
|
|
188
196
|
() => i.permissionSets.value
|
|
189
|
-
),
|
|
197
|
+
), R = p();
|
|
190
198
|
async function z() {
|
|
191
199
|
await i.readPermissionSets();
|
|
192
200
|
}
|
|
193
201
|
function T(n) {
|
|
194
202
|
var t;
|
|
195
|
-
|
|
203
|
+
R.value = n, (t = l.value) == null || t.trigger();
|
|
196
204
|
}
|
|
197
205
|
const g = [
|
|
198
206
|
{
|
|
@@ -207,24 +215,24 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
|
|
|
207
215
|
const t = n.row.original, m = ee(
|
|
208
216
|
[t.id],
|
|
209
217
|
i.permissionSets.value
|
|
210
|
-
), y =
|
|
218
|
+
), y = D(m), S = y.length, P = we(
|
|
211
219
|
y,
|
|
212
220
|
a.value
|
|
213
221
|
);
|
|
214
|
-
return
|
|
215
|
-
|
|
216
|
-
|
|
222
|
+
return b("div", { class: "flex items-center gap-8" }, [
|
|
223
|
+
b("span", s("team.labels.allowed", { count: S })),
|
|
224
|
+
b(
|
|
217
225
|
J.FmTooltip,
|
|
218
226
|
{ variant: "plain", placement: "top" },
|
|
219
227
|
{
|
|
220
|
-
default: () =>
|
|
228
|
+
default: () => b(J.FmIcon, {
|
|
221
229
|
name: "info",
|
|
222
230
|
class: "cursor-pointer text-fm-color-neutral-gray-300"
|
|
223
231
|
}),
|
|
224
|
-
content: () =>
|
|
232
|
+
content: () => b("div", [
|
|
225
233
|
s("team.labels.permission"),
|
|
226
|
-
...
|
|
227
|
-
(w, W) =>
|
|
234
|
+
...P.map(
|
|
235
|
+
(w, W) => b("div", { key: `${w}-${W}` }, `- ${w}`)
|
|
228
236
|
)
|
|
229
237
|
])
|
|
230
238
|
}
|
|
@@ -241,14 +249,14 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
|
|
|
241
249
|
},
|
|
242
250
|
cell(n) {
|
|
243
251
|
const t = n.row.original;
|
|
244
|
-
return
|
|
252
|
+
return b(
|
|
245
253
|
"div",
|
|
246
254
|
{
|
|
247
255
|
class: "flex w-full items-center justify-end",
|
|
248
256
|
onClick: (m) => m.stopPropagation()
|
|
249
257
|
},
|
|
250
258
|
[
|
|
251
|
-
|
|
259
|
+
b(Se, {
|
|
252
260
|
items: [
|
|
253
261
|
{ label: s("common.update"), onClick: () => T(t) },
|
|
254
262
|
{
|
|
@@ -266,13 +274,13 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
|
|
|
266
274
|
];
|
|
267
275
|
function U() {
|
|
268
276
|
var n;
|
|
269
|
-
|
|
277
|
+
R.value = void 0, (n = l.value) == null || n.trigger();
|
|
270
278
|
}
|
|
271
279
|
async function $(n) {
|
|
272
|
-
|
|
280
|
+
C.open({
|
|
273
281
|
title: s("permissionSet.form.delete.title"),
|
|
274
282
|
message: s("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
|
|
275
|
-
minWidth:
|
|
283
|
+
minWidth: O.value.lg ? 588 : 0,
|
|
276
284
|
primaryActions: {
|
|
277
285
|
text: s("common.remove"),
|
|
278
286
|
close: !1,
|
|
@@ -286,53 +294,53 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
|
|
|
286
294
|
type: "success"
|
|
287
295
|
});
|
|
288
296
|
} catch (t) {
|
|
289
|
-
const m = t instanceof
|
|
297
|
+
const m = t instanceof ke && t.status === 409 ? t.message.includes("referenced by") ? s("permissionSet.form.delete.setReferencedConflictError", {
|
|
290
298
|
permissionSetName: n.name
|
|
291
299
|
}) : s("permissionSet.form.delete.conflictError", { permissionSetName: n.name }) : t instanceof Error ? t.message : `${t}`;
|
|
292
300
|
B.open({ message: m, type: "error" });
|
|
293
301
|
}
|
|
294
|
-
|
|
302
|
+
C.close();
|
|
295
303
|
});
|
|
296
304
|
}
|
|
297
|
-
return
|
|
298
|
-
z(),
|
|
299
|
-
}),
|
|
305
|
+
return re(() => {
|
|
306
|
+
z(), v();
|
|
307
|
+
}), N({
|
|
300
308
|
create: U
|
|
301
309
|
}), (n, t) => {
|
|
302
|
-
const m =
|
|
303
|
-
return
|
|
304
|
-
|
|
310
|
+
const m = f("FmSearch"), y = f("FmTable"), S = f("FullWrapper");
|
|
311
|
+
return A(), me(ce, null, [
|
|
312
|
+
u(je, {
|
|
305
313
|
ref_key: "permissionSetFormRef",
|
|
306
314
|
ref: l,
|
|
307
|
-
"model-value":
|
|
315
|
+
"model-value": R.value
|
|
308
316
|
}, null, 8, ["model-value"]),
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
317
|
+
E("div", Ee, [
|
|
318
|
+
E("div", Be, [
|
|
319
|
+
u(m, {
|
|
312
320
|
modelValue: V.value,
|
|
313
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
321
|
+
"onUpdate:modelValue": t[0] || (t[0] = (P) => V.value = P),
|
|
314
322
|
class: "w-[320px] xs:w-full",
|
|
315
323
|
autofocus: "",
|
|
316
324
|
placeholder: r(s)("permissionSet.search.placeholder")
|
|
317
325
|
}, null, 8, ["modelValue", "placeholder"])
|
|
318
326
|
]),
|
|
319
|
-
c.value.length > 0 ? (
|
|
327
|
+
c.value.length > 0 ? (A(), M(S, {
|
|
320
328
|
key: 0,
|
|
321
329
|
class: "overflow-auto"
|
|
322
330
|
}, {
|
|
323
331
|
default: j(() => [
|
|
324
|
-
|
|
332
|
+
u(y, {
|
|
325
333
|
"column-defs": g,
|
|
326
|
-
"row-data":
|
|
327
|
-
"page-size":
|
|
334
|
+
"row-data": h.value,
|
|
335
|
+
"page-size": h.value.length,
|
|
328
336
|
"pin-header-row": "",
|
|
329
337
|
"hide-footer": "",
|
|
330
338
|
"shrink-at": !1,
|
|
331
|
-
onRowClick: t[1] || (t[1] = (
|
|
339
|
+
onRowClick: t[1] || (t[1] = (P) => T(P.original))
|
|
332
340
|
}, null, 8, ["row-data", "page-size"])
|
|
333
341
|
]),
|
|
334
342
|
_: 1
|
|
335
|
-
})) : (
|
|
343
|
+
})) : (A(), M(r(fe), {
|
|
336
344
|
key: 1,
|
|
337
345
|
title: r(s)("permissionSet.noData.title"),
|
|
338
346
|
subtitle: r(s)("permissionSet.noData.subtitle")
|
|
@@ -343,5 +351,5 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
|
|
|
343
351
|
}
|
|
344
352
|
});
|
|
345
353
|
export {
|
|
346
|
-
|
|
354
|
+
Me as default
|
|
347
355
|
};
|