@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
|
@@ -4,15 +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-5ziPpN4I.js";
|
|
8
|
+
import "./iteration-L8TLGaCI.js";
|
|
9
|
+
import { R as v } from "./app-Iv5hLrRX.js";
|
|
10
|
+
import "./useAppStore-e7cSGuDZ.js";
|
|
11
|
+
import "./index-DzRWjF3a.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
/* empty css
|
|
14
|
-
|
|
15
|
-
const w = { class: "space-y-24" }, Q = /* @__PURE__ */ V({
|
|
13
|
+
/* empty css */
|
|
14
|
+
const w = { class: "space-y-24" }, P = /* @__PURE__ */ V({
|
|
16
15
|
__name: "Main",
|
|
17
16
|
setup(x) {
|
|
18
17
|
const { t: a } = N(), f = k(), R = F(), _ = u(), b = u(), t = u("member");
|
|
@@ -83,5 +82,5 @@ const w = { class: "space-y-24" }, Q = /* @__PURE__ */ V({
|
|
|
83
82
|
}
|
|
84
83
|
});
|
|
85
84
|
export {
|
|
86
|
-
|
|
85
|
+
P as default
|
|
87
86
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useSnackbar as Q, useDialog as
|
|
1
|
+
import { defineComponent as M, computed as S, resolveComponent as c, createElementBlock as L, openBlock as h, createElementVNode as x, createVNode as m, toDisplayString as N, unref as u, withCtx as g, createTextVNode as te, Fragment as H, renderList as oe, ref as _, createBlock as q, nextTick as ne, onMounted as ie, h as z } from "vue";
|
|
2
|
+
import { useI18n as K, useCoreStore as ae } from "@feedmepos/mf-common";
|
|
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 { j as
|
|
6
|
-
import { A as
|
|
7
|
-
import { u as
|
|
8
|
-
import { p as
|
|
9
|
-
import { a as ye } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang
|
|
10
|
-
const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */
|
|
5
|
+
import { j as G, w as pe, u as Y, c as Z, p as J, k as fe, d as ve, m as A, n as Se, o as be, s as _e, q as Pe } from "./index-5ziPpN4I.js";
|
|
6
|
+
import { A as ge } from "./iteration-L8TLGaCI.js";
|
|
7
|
+
import { u as he } from "./useLoading-C8ko-jia.js";
|
|
8
|
+
import { p as X } from "./app-Iv5hLrRX.js";
|
|
9
|
+
import { a as ye } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CGIontQw.js";
|
|
10
|
+
const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ M({
|
|
11
11
|
__name: "PermissionWithTooltip",
|
|
12
12
|
props: {
|
|
13
13
|
modelValue: {
|
|
@@ -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 } =
|
|
18
|
+
setup($) {
|
|
19
|
+
const { customReportPermissions: k } = G(), t = $, i = S(() => pe(t.modelValue, k.value)), { t: r } = K();
|
|
20
20
|
return (R, C) => {
|
|
21
|
-
const
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
const P = c("FmIcon"), y = c("FmTooltip");
|
|
22
|
+
return h(), L("div", Fe, [
|
|
23
|
+
x("span", null, N(u(r)("team.labels.allowed", { count: i.value.length })), 1),
|
|
24
|
+
m(y, {
|
|
25
25
|
variant: "plain",
|
|
26
26
|
placement: "top"
|
|
27
27
|
}, {
|
|
28
|
-
content:
|
|
29
|
-
|
|
30
|
-
te(N(
|
|
31
|
-
(
|
|
32
|
-
key: `${
|
|
33
|
-
}, " - " + N(
|
|
28
|
+
content: g(() => [
|
|
29
|
+
x("div", null, [
|
|
30
|
+
te(N(u(r)("team.labels.permission")) + " ", 1),
|
|
31
|
+
(h(!0), L(H, null, oe(i.value, (l, a) => (h(), L("div", {
|
|
32
|
+
key: `${l}-${a}`
|
|
33
|
+
}, " - " + N(l), 1))), 128))
|
|
34
34
|
])
|
|
35
35
|
]),
|
|
36
|
-
default:
|
|
37
|
-
|
|
36
|
+
default: g(() => [
|
|
37
|
+
m(P, {
|
|
38
38
|
name: "info",
|
|
39
39
|
class: "cursor-pointer text-fm-color-neutral-gray-300"
|
|
40
40
|
})
|
|
@@ -44,7 +44,7 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
44
44
|
]);
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
}), we = { class: "fm-typo-en-title-md-600" }, xe = { class: "flex items-center justify-start gap-8" }, ke = /* @__PURE__ */
|
|
47
|
+
}), we = { class: "fm-typo-en-title-md-600" }, xe = { class: "flex items-center justify-start gap-8" }, ke = /* @__PURE__ */ M({
|
|
48
48
|
__name: "PermissionSetForm",
|
|
49
49
|
props: {
|
|
50
50
|
modelValue: {
|
|
@@ -52,137 +52,137 @@ 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($, { 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
|
-
}), C =
|
|
59
|
+
}), C = _(), P = Q(), y = he(P), l = Y(), a = _({ ...t.modelValue }), d = _([]), p = _([]), 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(
|
|
63
|
-
() =>
|
|
63
|
+
() => l.permissionSets.value.filter((e) => {
|
|
64
64
|
var s;
|
|
65
65
|
return e.id !== ((s = t.modelValue) == null ? void 0 : s.id);
|
|
66
66
|
}).map((e) => ({ label: e.name, value: e.id }))
|
|
67
|
-
),
|
|
68
|
-
() => Z(d.value,
|
|
69
|
-
), { customReportPermissions:
|
|
70
|
-
|
|
67
|
+
), F = S(
|
|
68
|
+
() => Z(d.value, l.permissionSets.value)
|
|
69
|
+
), { customReportPermissions: E, isLoaded: n } = G(), o = new Set(
|
|
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
|
}), j = S(() => {
|
|
76
76
|
const e = /* @__PURE__ */ new Set();
|
|
77
|
-
for (const s of
|
|
78
|
-
s.category ===
|
|
79
|
-
for (const s of
|
|
80
|
-
s.category ===
|
|
77
|
+
for (const s of J)
|
|
78
|
+
s.category === X.reports && e.add(s.subject);
|
|
79
|
+
for (const s of E.value)
|
|
80
|
+
s.category === X.reports && e.add(s.subject);
|
|
81
81
|
return e;
|
|
82
82
|
});
|
|
83
83
|
async function O() {
|
|
84
84
|
var s, v;
|
|
85
|
-
await ne(),
|
|
85
|
+
await ne(), r.value = !r.value, a.value = { ...t.modelValue }, d.value = ((s = t.modelValue) == null ? void 0 : s.permissionSetIds) ?? [];
|
|
86
86
|
const e = ((v = t.modelValue) == null ? void 0 : v.permissions) ?? [];
|
|
87
87
|
p.value = ve(
|
|
88
|
-
A(
|
|
88
|
+
A(F.value),
|
|
89
89
|
e
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
function I() {
|
|
93
|
-
const e = A(
|
|
94
|
-
return
|
|
93
|
+
const e = A(F.value), s = n.value ? f.value : o, v = Se(p.value, s), V = be(v, j.value), w = _e(V);
|
|
94
|
+
return Pe(e, w);
|
|
95
95
|
}
|
|
96
96
|
function ee() {
|
|
97
|
-
p.value = A(
|
|
97
|
+
p.value = A(F.value);
|
|
98
98
|
}
|
|
99
99
|
async function se() {
|
|
100
|
-
var v,
|
|
101
|
-
const e = await ((v = C.value) == null ? void 0 : v.validateInputsWithoutSubmit()), s = (
|
|
102
|
-
!(e != null && e.length) && s &&
|
|
100
|
+
var v, V;
|
|
101
|
+
const e = await ((v = C.value) == null ? void 0 : v.validateInputsWithoutSubmit()), s = (V = ae().currentBusiness.value) == null ? void 0 : V.id;
|
|
102
|
+
!(e != null && e.length) && s && y.minor(async () => {
|
|
103
103
|
var T;
|
|
104
|
-
const
|
|
104
|
+
const w = I();
|
|
105
105
|
if ((T = t.modelValue) != null && T.id) {
|
|
106
106
|
const B = {
|
|
107
107
|
name: a.value.name,
|
|
108
|
-
permissions:
|
|
108
|
+
permissions: w,
|
|
109
109
|
permissionSetIds: d.value,
|
|
110
110
|
businessId: a.value.businessId
|
|
111
111
|
};
|
|
112
|
-
await
|
|
112
|
+
await l.updatePermissionSet(t.modelValue.id, B);
|
|
113
113
|
} else {
|
|
114
114
|
const B = {
|
|
115
115
|
name: a.value.name,
|
|
116
116
|
businessId: s,
|
|
117
|
-
permissions:
|
|
117
|
+
permissions: w,
|
|
118
118
|
permissionSetIds: d.value
|
|
119
119
|
};
|
|
120
|
-
await
|
|
120
|
+
await l.createPermissionSet(B);
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
r.value = !1;
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
return k({
|
|
126
126
|
trigger: O
|
|
127
127
|
}), (e, s) => {
|
|
128
|
-
const v =
|
|
129
|
-
return
|
|
130
|
-
modelValue:
|
|
131
|
-
"onUpdate:modelValue": s[4] || (s[4] = (
|
|
128
|
+
const v = c("FmTextField"), V = c("FmSelect"), w = c("FmForm"), T = c("FmButton"), B = c("FmSideSheet");
|
|
129
|
+
return h(), q(B, {
|
|
130
|
+
modelValue: r.value,
|
|
131
|
+
"onUpdate:modelValue": s[4] || (s[4] = (b) => r.value = b),
|
|
132
132
|
"max-width": 560,
|
|
133
133
|
"dismiss-away": ""
|
|
134
134
|
}, {
|
|
135
|
-
"side-sheet-header":
|
|
136
|
-
|
|
135
|
+
"side-sheet-header": g(() => [
|
|
136
|
+
x("p", we, N(R.value), 1)
|
|
137
137
|
]),
|
|
138
|
-
"side-sheet-footer":
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
"side-sheet-footer": g(() => [
|
|
139
|
+
x("div", xe, [
|
|
140
|
+
m(T, {
|
|
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
|
-
|
|
148
|
-
label:
|
|
147
|
+
m(T, {
|
|
148
|
+
label: u(i)("common.cancel"),
|
|
149
149
|
size: "md",
|
|
150
150
|
variant: "secondary",
|
|
151
|
-
onClick: s[3] || (s[3] = (
|
|
151
|
+
onClick: s[3] || (s[3] = (b) => r.value = !1)
|
|
152
152
|
}, null, 8, ["label"])
|
|
153
153
|
])
|
|
154
154
|
]),
|
|
155
|
-
default:
|
|
156
|
-
|
|
155
|
+
default: g(() => [
|
|
156
|
+
m(w, {
|
|
157
157
|
ref_key: "formRef",
|
|
158
158
|
ref: C
|
|
159
159
|
}, {
|
|
160
|
-
default:
|
|
161
|
-
|
|
160
|
+
default: g(() => [
|
|
161
|
+
m(v, {
|
|
162
162
|
modelValue: a.value.name,
|
|
163
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
164
|
-
label:
|
|
165
|
-
placeholder:
|
|
163
|
+
"onUpdate:modelValue": s[0] || (s[0] = (b) => a.value.name = b),
|
|
164
|
+
label: u(i)("permissionSet.form.name"),
|
|
165
|
+
placeholder: u(i)("permissionSet.form.namePlaceholder"),
|
|
166
166
|
rules: D
|
|
167
167
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
168
|
-
|
|
168
|
+
m(V, {
|
|
169
169
|
modelValue: d.value,
|
|
170
170
|
"onUpdate:modelValue": [
|
|
171
|
-
s[1] || (s[1] = (
|
|
171
|
+
s[1] || (s[1] = (b) => d.value = b),
|
|
172
172
|
ee
|
|
173
173
|
],
|
|
174
174
|
multiselect: "",
|
|
175
175
|
searchable: "",
|
|
176
176
|
"search-debounce": 300,
|
|
177
177
|
items: W.value,
|
|
178
|
-
label:
|
|
179
|
-
placeholder:
|
|
178
|
+
label: u(i)("permissionSet.form.includedSets"),
|
|
179
|
+
placeholder: u(i)("permissionSet.form.includedSetsPlaceholder"),
|
|
180
180
|
class: "mt-16"
|
|
181
181
|
}, null, 8, ["modelValue", "items", "label", "placeholder"]),
|
|
182
|
-
|
|
182
|
+
m(ye, {
|
|
183
183
|
modelValue: p.value,
|
|
184
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
185
|
-
"inherit-permissions":
|
|
184
|
+
"onUpdate:modelValue": s[2] || (s[2] = (b) => p.value = b),
|
|
185
|
+
"inherit-permissions": F.value,
|
|
186
186
|
class: "mt-24"
|
|
187
187
|
}, null, 8, ["modelValue", "inherit-permissions"])
|
|
188
188
|
]),
|
|
@@ -193,27 +193,24 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
193
193
|
}, 8, ["modelValue"]);
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
}), Re = { class: "space-y-8" }, Ce = { class: "flex justify-end xs:px-16" },
|
|
197
|
-
key: 0,
|
|
198
|
-
class: "overflow-auto"
|
|
199
|
-
}, Ie = { class: "pb-64" }, We = /* @__PURE__ */ q({
|
|
196
|
+
}), Re = { class: "space-y-8" }, Ce = { class: "flex justify-end xs:px-16" }, De = /* @__PURE__ */ M({
|
|
200
197
|
__name: "PermissionSetList",
|
|
201
|
-
setup(
|
|
202
|
-
const { t } =
|
|
198
|
+
setup($, { expose: k }) {
|
|
199
|
+
const { t } = K(), { fetchCustomReportPermissions: i } = G(), r = Q(), R = re(), { breakpoints: C } = le(), P = _(""), y = S(() => {
|
|
203
200
|
var n;
|
|
204
201
|
return (n = d.value) == null ? void 0 : n.filter((o) => {
|
|
205
|
-
const f =
|
|
202
|
+
const f = P.value.toLowerCase();
|
|
206
203
|
return o.name.toLowerCase().includes(f);
|
|
207
204
|
});
|
|
208
|
-
}),
|
|
205
|
+
}), l = _(), a = Y(), d = S(
|
|
209
206
|
() => a.permissionSets.value
|
|
210
|
-
), p =
|
|
207
|
+
), p = _();
|
|
211
208
|
async function D() {
|
|
212
209
|
await a.readPermissionSets();
|
|
213
210
|
}
|
|
214
211
|
function U(n) {
|
|
215
212
|
var o;
|
|
216
|
-
p.value = n, (o =
|
|
213
|
+
p.value = n, (o = l.value) == null || o.trigger();
|
|
217
214
|
}
|
|
218
215
|
const W = [
|
|
219
216
|
{
|
|
@@ -242,11 +239,11 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
242
239
|
return z("div", { class: "w-full flex justify-end items-center" }, [
|
|
243
240
|
z(me.FmButton, {
|
|
244
241
|
prependIcon: "delete",
|
|
245
|
-
variant:
|
|
246
|
-
textColor:
|
|
242
|
+
variant: ce.Tertiary,
|
|
243
|
+
textColor: ue.NeutralGray400,
|
|
247
244
|
class: "flex flex-end",
|
|
248
245
|
onClick: (o) => {
|
|
249
|
-
o.stopPropagation(),
|
|
246
|
+
o.stopPropagation(), E(n.row.original);
|
|
250
247
|
}
|
|
251
248
|
})
|
|
252
249
|
]);
|
|
@@ -254,11 +251,11 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
254
251
|
enableSorting: !1
|
|
255
252
|
}
|
|
256
253
|
];
|
|
257
|
-
function
|
|
254
|
+
function F() {
|
|
258
255
|
var n;
|
|
259
|
-
p.value = void 0, (n =
|
|
256
|
+
p.value = void 0, (n = l.value) == null || n.trigger();
|
|
260
257
|
}
|
|
261
|
-
async function
|
|
258
|
+
async function E(n) {
|
|
262
259
|
R.open({
|
|
263
260
|
title: t("permissionSet.form.delete.title"),
|
|
264
261
|
message: t("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
|
|
@@ -271,15 +268,15 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
271
268
|
secondaryActions: { text: t("common.cancel"), close: !0 }
|
|
272
269
|
}).onPrimary(async () => {
|
|
273
270
|
try {
|
|
274
|
-
await a.deletePermissionSet(n.id),
|
|
271
|
+
await a.deletePermissionSet(n.id), r.open({
|
|
275
272
|
message: t("permissionSet.form.delete.successMessage", { permissionSetName: n.name }),
|
|
276
273
|
type: "success"
|
|
277
274
|
});
|
|
278
275
|
} catch (o) {
|
|
279
|
-
const f = o instanceof
|
|
276
|
+
const f = o instanceof ge && o.status === 409 ? o.message.includes("referenced by") ? t("permissionSet.form.delete.setReferencedConflictError", {
|
|
280
277
|
permissionSetName: n.name
|
|
281
278
|
}) : t("permissionSet.form.delete.conflictError", { permissionSetName: n.name }) : o instanceof Error ? o.message : `${o}`;
|
|
282
|
-
|
|
279
|
+
r.open({ message: f, type: "error" });
|
|
283
280
|
}
|
|
284
281
|
R.close();
|
|
285
282
|
});
|
|
@@ -287,46 +284,45 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
287
284
|
return ie(() => {
|
|
288
285
|
D(), i();
|
|
289
286
|
}), k({
|
|
290
|
-
create:
|
|
287
|
+
create: F
|
|
291
288
|
}), (n, o) => {
|
|
292
|
-
const f =
|
|
293
|
-
return
|
|
294
|
-
|
|
289
|
+
const f = c("FmSearch"), j = c("FmTable"), O = c("FullWrapper");
|
|
290
|
+
return h(), L(H, null, [
|
|
291
|
+
m(ke, {
|
|
295
292
|
ref_key: "permissionSetFormRef",
|
|
296
|
-
ref:
|
|
293
|
+
ref: l,
|
|
297
294
|
"model-value": p.value
|
|
298
295
|
}, null, 8, ["model-value"]),
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
modelValue:
|
|
303
|
-
"onUpdate:modelValue": o[0] || (o[0] = (I) =>
|
|
296
|
+
x("div", Re, [
|
|
297
|
+
x("div", Ce, [
|
|
298
|
+
m(f, {
|
|
299
|
+
modelValue: P.value,
|
|
300
|
+
"onUpdate:modelValue": o[0] || (o[0] = (I) => P.value = I),
|
|
304
301
|
class: "w-[320px] xs:w-full",
|
|
305
302
|
autofocus: "",
|
|
306
|
-
placeholder:
|
|
303
|
+
placeholder: u(t)("permissionSet.search.placeholder")
|
|
307
304
|
}, null, 8, ["modelValue", "placeholder"])
|
|
308
305
|
]),
|
|
309
|
-
d.value.length > 0 ? (
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
])) : (g(), H(c(de), {
|
|
306
|
+
d.value.length > 0 ? (h(), q(O, {
|
|
307
|
+
key: 0,
|
|
308
|
+
class: "overflow-auto"
|
|
309
|
+
}, {
|
|
310
|
+
default: g(() => [
|
|
311
|
+
m(j, {
|
|
312
|
+
"column-defs": W,
|
|
313
|
+
"row-data": y.value,
|
|
314
|
+
"page-size": y.value.length,
|
|
315
|
+
"pin-header-row": "",
|
|
316
|
+
"hide-footer": "",
|
|
317
|
+
"shrink-at": !1,
|
|
318
|
+
onRowClick: o[1] || (o[1] = (I) => U(I.original))
|
|
319
|
+
}, null, 8, ["row-data", "page-size"])
|
|
320
|
+
]),
|
|
321
|
+
_: 1
|
|
322
|
+
})) : (h(), q(u(de), {
|
|
327
323
|
key: 1,
|
|
328
|
-
title:
|
|
329
|
-
subtitle:
|
|
324
|
+
title: u(t)("permissionSet.noData.title"),
|
|
325
|
+
subtitle: u(t)("permissionSet.noData.subtitle")
|
|
330
326
|
}, null, 8, ["title", "subtitle"]))
|
|
331
327
|
])
|
|
332
328
|
], 64);
|
|
@@ -334,5 +330,5 @@ const Fe = { class: "flex flex-row items-center gap-8" }, Ve = /* @__PURE__ */ q
|
|
|
334
330
|
}
|
|
335
331
|
});
|
|
336
332
|
export {
|
|
337
|
-
|
|
333
|
+
De as default
|
|
338
334
|
};
|