@feedmepos/mf-hrm-portal 2.2.2-dev → 2.2.2-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/{ApprovalCodeList-B9O8QzzI.js → ApprovalCodeList-BjRRA_sc.js} +2 -2
- package/dist/{AuditLogList-CtFEXKWZ.js → AuditLogList-B8kE39lt.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C9MYbxum.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Ba8w1BwT.js} +2 -2
- package/dist/{EmployeeList-BFxMwFJq.js → EmployeeList-7e069yPp.js} +66 -65
- package/dist/{GrantUserList-CZtmMRoS.js → GrantUserList-CTYamty5.js} +3 -3
- package/dist/{Main-on0TXkQt.js → Main-B-3s0bf_.js} +5 -5
- package/dist/{Main-DD6IthCS.js → Main-DcPLufZ5.js} +2 -2
- package/dist/{Main-B622Z4q4.js → Main-DfeNUiyv.js} +9 -9
- package/dist/{PermissionSetList-FCX3TBoi.js → PermissionSetList-CNujxzHF.js} +77 -76
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cl_YNh0k.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cq9xp1TW.js} +585 -580
- package/dist/RoleList-YaY7Np_9.js +739 -0
- package/dist/{TeamMemberList-BAU7Y3jh.js → TeamMemberList-B-I3KjnH.js} +305 -305
- package/dist/{TimesheetList-DtFBWhma.js → TimesheetList-BTsvEiD6.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-Tatn3jUv.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CJYgeUxK.js} +2 -2
- package/dist/{app-Bbf6hEPt.js → app-C3u5orep.js} +16 -12
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-BAnGg8q2.js → dayjs.min-B-sLuqme.js} +1 -1
- package/dist/{employee-DVSD3L51.js → employee-DaduVi88.js} +3 -3
- package/dist/{iteration-BTZViJtd.js → iteration-Cii8ZeX3.js} +1 -1
- package/dist/{lodash-Cgdk4_YL.js → lodash-BifZ3B1q.js} +1 -1
- package/dist/{role-CXVpO6fB.js → role-tzqciGzt.js} +1 -1
- package/dist/{rule-TR3MVo-b.js → rule-GhzA0R9H.js} +287 -260
- package/dist/src/api/user/index.d.ts +2 -2
- package/dist/src/composables/useReportPermissions.d.ts +1 -0
- package/dist/src/helpers/rule.d.ts +2 -0
- package/dist/src/types/role.d.ts +1 -0
- package/dist/src/views/hr/locales/index.d.ts +12 -8
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/useReportPermissions-BRLy3D7v.js +82 -0
- package/package.json +2 -2
- package/dist/RoleList-p_9KHzqF.js +0 -725
- package/dist/useReportPermissions-BpAFyO17.js +0 -71
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as
|
|
2
|
-
import { useI18n as se, useCoreStore as
|
|
1
|
+
import { defineComponent as Z, ref as v, computed as b, watch as ue, resolveComponent as h, createBlock as de, openBlock as ee, unref as r, withCtx as C, createVNode as m, createElementVNode as y, toDisplayString as G, nextTick as pe, onMounted as fe, createElementBlock as ve, Fragment as Se, h as S } from "vue";
|
|
2
|
+
import { useI18n as se, useCoreStore as be } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as H } from "@feedmepos/ui-library";
|
|
4
|
-
import { b as Q, _ as
|
|
4
|
+
import { b as Q, _ as he } from "./app-C3u5orep.js";
|
|
5
5
|
import { _ as _e } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
6
6
|
import { u as ge, _ as Pe } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
7
|
-
import { u as ie, c as M, i as ae, p as Y, j as ye, d as we, m as
|
|
8
|
-
import { l as
|
|
9
|
-
import { c as
|
|
10
|
-
import { u as
|
|
11
|
-
import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { u as ie, c as M, i as ae, p as Y, j as ye, d as we, m as A, q as xe, v as Fe, n as ke, o as Ce, x as Ie } from "./rule-GhzA0R9H.js";
|
|
8
|
+
import { l as T } from "./lodash-BifZ3B1q.js";
|
|
9
|
+
import { c as Ve } from "./iteration-Cii8ZeX3.js";
|
|
10
|
+
import { u as Re } from "./useLoading-CXzTpIVv.js";
|
|
11
|
+
import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cq9xp1TW.js";
|
|
12
12
|
import { A as je } from "./restaurant-BTpBmfBV.js";
|
|
13
13
|
const Te = { class: "flex w-full items-center justify-between" }, $e = { class: "fm-typo-en-title-md-600" }, Be = { class: "fm-typo-en-title-sm-600 mt-24" }, Le = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
|
|
14
14
|
__name: "PermissionSetForm",
|
|
@@ -18,19 +18,19 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
18
18
|
default: () => ({})
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
setup(K, { expose:
|
|
22
|
-
const o = K, { t: i } = se(),
|
|
21
|
+
setup(K, { expose: D }) {
|
|
22
|
+
const o = K, { t: i } = se(), f = v(!1), $ = b(() => {
|
|
23
23
|
var e;
|
|
24
24
|
return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.title") : i("permissionSet.form.create.title");
|
|
25
|
-
}), I =
|
|
25
|
+
}), I = v(), q = oe(), w = te(), { breakpoints: V } = ne(), R = Re(q), l = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), B = [(e) => !!e || i("permissionSet.form.nameRequired")], N = b(() => {
|
|
26
26
|
var e;
|
|
27
27
|
return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.confirmButtonLabel") : i("permissionSet.form.create.confirmButtonLabel");
|
|
28
|
-
}),
|
|
28
|
+
}), O = b(
|
|
29
29
|
() => l.permissionSets.value.filter((e) => {
|
|
30
30
|
var s;
|
|
31
31
|
return e.id !== ((s = o.modelValue) == null ? void 0 : s.id);
|
|
32
32
|
}).map((e) => ({ label: e.name, value: e.id }))
|
|
33
|
-
), E =
|
|
33
|
+
), E = b(
|
|
34
34
|
() => M(a.value, l.permissionSets.value)
|
|
35
35
|
), {
|
|
36
36
|
fetchCustomReportPermissions: n,
|
|
@@ -38,46 +38,46 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
38
38
|
isLoaded: c
|
|
39
39
|
} = ae(), _ = new Set(
|
|
40
40
|
Y.filter((e) => e.subject.startsWith(ye)).map((e) => e.subject)
|
|
41
|
-
), g =
|
|
41
|
+
), g = b(() => {
|
|
42
42
|
const e = new Set(_);
|
|
43
43
|
for (const s of t.value) e.add(s.subject);
|
|
44
44
|
return e;
|
|
45
|
-
}),
|
|
45
|
+
}), z = b(() => {
|
|
46
46
|
const e = /* @__PURE__ */ new Set();
|
|
47
47
|
for (const s of Y)
|
|
48
48
|
s.category === Q.reports && e.add(s.subject);
|
|
49
49
|
for (const s of t.value)
|
|
50
50
|
s.category === Q.reports && e.add(s.subject);
|
|
51
51
|
return e;
|
|
52
|
-
}), P =
|
|
53
|
-
async function
|
|
52
|
+
}), P = v({ name: "", permissionSetIds: [], userPermissions: [] });
|
|
53
|
+
async function U() {
|
|
54
54
|
var s, u;
|
|
55
|
-
await pe(),
|
|
55
|
+
await pe(), f.value = !f.value, d.value = { ...o.modelValue }, a.value = ((s = o.modelValue) == null ? void 0 : s.permissionSetIds) ?? [];
|
|
56
56
|
const e = ((u = o.modelValue) == null ? void 0 : u.permissions) ?? [];
|
|
57
57
|
p.value = we(
|
|
58
|
-
|
|
58
|
+
A(E.value),
|
|
59
59
|
e
|
|
60
60
|
), P.value = {
|
|
61
61
|
name: d.value.name ?? "",
|
|
62
62
|
permissionSetIds: [...a.value],
|
|
63
|
-
userPermissions:
|
|
63
|
+
userPermissions: Ve(p.value)
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
ue(
|
|
66
|
+
ue(f, async (e) => {
|
|
67
67
|
e && await n();
|
|
68
68
|
});
|
|
69
|
-
const
|
|
70
|
-
() => !
|
|
69
|
+
const W = ge(
|
|
70
|
+
() => !T.isEqual(d.value.name ?? "", P.value.name) || !T.isEqual(a.value, P.value.permissionSetIds) || !T.isEqual(p.value, P.value.userPermissions),
|
|
71
71
|
() => {
|
|
72
|
-
|
|
72
|
+
f.value = !1;
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
75
|
function re() {
|
|
76
|
-
const e =
|
|
76
|
+
const e = A(E.value), s = c.value ? g.value : _, u = xe(p.value, s), x = Fe(u, z.value), F = ke(x);
|
|
77
77
|
return Ce(e, F);
|
|
78
78
|
}
|
|
79
79
|
function J(e) {
|
|
80
|
-
return
|
|
80
|
+
return A(
|
|
81
81
|
M(e, l.permissionSets.value)
|
|
82
82
|
);
|
|
83
83
|
}
|
|
@@ -86,8 +86,8 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
86
86
|
}
|
|
87
87
|
function le(e) {
|
|
88
88
|
const s = [...e ?? []];
|
|
89
|
-
if (
|
|
90
|
-
const u = !
|
|
89
|
+
if (T.isEqual(s, a.value)) return;
|
|
90
|
+
const u = !T.isEqual(
|
|
91
91
|
p.value,
|
|
92
92
|
J(a.value)
|
|
93
93
|
);
|
|
@@ -98,7 +98,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
98
98
|
w.open({
|
|
99
99
|
title: i("permissionSet.form.overrideInherited.title"),
|
|
100
100
|
message: i("permissionSet.form.overrideInherited.message"),
|
|
101
|
-
minWidth:
|
|
101
|
+
minWidth: V.value.lg ? 588 : 0,
|
|
102
102
|
primaryActions: {
|
|
103
103
|
text: i("permissionSet.form.overrideInherited.override"),
|
|
104
104
|
close: !1
|
|
@@ -113,11 +113,11 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
113
113
|
}
|
|
114
114
|
async function me() {
|
|
115
115
|
var u, x;
|
|
116
|
-
const e = await ((u = I.value) == null ? void 0 : u.validateInputsWithoutSubmit()), s = (x =
|
|
117
|
-
!(e != null && e.length) && s &&
|
|
118
|
-
var
|
|
116
|
+
const e = await ((u = I.value) == null ? void 0 : u.validateInputsWithoutSubmit()), s = (x = be().currentBusiness.value) == null ? void 0 : x.id;
|
|
117
|
+
!(e != null && e.length) && s && R.minor(async () => {
|
|
118
|
+
var L;
|
|
119
119
|
const F = re();
|
|
120
|
-
if ((
|
|
120
|
+
if ((L = o.modelValue) != null && L.id) {
|
|
121
121
|
const k = {
|
|
122
122
|
name: d.value.name,
|
|
123
123
|
permissions: F,
|
|
@@ -134,34 +134,35 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
134
134
|
};
|
|
135
135
|
await l.createPermissionSet(k);
|
|
136
136
|
}
|
|
137
|
-
|
|
137
|
+
f.value = !1;
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
-
return
|
|
141
|
-
trigger:
|
|
140
|
+
return D({
|
|
141
|
+
trigger: U
|
|
142
142
|
}), (e, s) => {
|
|
143
|
-
const u =
|
|
143
|
+
const u = h("FmIcon"), x = h("FmTextField"), F = h("FmSelect"), L = h("FmForm"), k = h("FmButton"), ce = h("FmSideSheet");
|
|
144
144
|
return ee(), de(ce, {
|
|
145
|
-
|
|
145
|
+
modelValue: f.value,
|
|
146
|
+
"onUpdate:modelValue": s[2] || (s[2] = (j) => f.value = j),
|
|
146
147
|
"max-width": 960,
|
|
147
148
|
"close-button": !1,
|
|
148
|
-
"onOn:clickedAway": r(
|
|
149
|
+
"onOn:clickedAway": r(W)
|
|
149
150
|
}, {
|
|
150
151
|
"side-sheet-header": C(() => [
|
|
151
152
|
y("div", Te, [
|
|
152
|
-
y("p", $e, G(
|
|
153
|
+
y("p", $e, G($.value), 1),
|
|
153
154
|
m(u, {
|
|
154
155
|
name: "close",
|
|
155
156
|
size: "md",
|
|
156
157
|
class: "cursor-pointer",
|
|
157
|
-
onClick: r(
|
|
158
|
+
onClick: r(W)
|
|
158
159
|
}, null, 8, ["onClick"])
|
|
159
160
|
])
|
|
160
161
|
]),
|
|
161
162
|
"side-sheet-footer": C(() => [
|
|
162
163
|
y("div", Le, [
|
|
163
164
|
m(k, {
|
|
164
|
-
label:
|
|
165
|
+
label: N.value,
|
|
165
166
|
size: "md",
|
|
166
167
|
variant: "primary",
|
|
167
168
|
type: "submit",
|
|
@@ -171,29 +172,29 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
171
172
|
label: r(i)("common.cancel"),
|
|
172
173
|
size: "md",
|
|
173
174
|
variant: "secondary",
|
|
174
|
-
onClick: r(
|
|
175
|
+
onClick: r(W)
|
|
175
176
|
}, null, 8, ["label", "onClick"])
|
|
176
177
|
])
|
|
177
178
|
]),
|
|
178
179
|
default: C(() => [
|
|
179
|
-
m(
|
|
180
|
+
m(L, {
|
|
180
181
|
ref_key: "formRef",
|
|
181
182
|
ref: I
|
|
182
183
|
}, {
|
|
183
184
|
default: C(() => [
|
|
184
185
|
m(x, {
|
|
185
186
|
modelValue: d.value.name,
|
|
186
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
187
|
+
"onUpdate:modelValue": s[0] || (s[0] = (j) => d.value.name = j),
|
|
187
188
|
label: r(i)("permissionSet.form.name"),
|
|
188
189
|
placeholder: r(i)("permissionSet.form.namePlaceholder"),
|
|
189
|
-
rules:
|
|
190
|
+
rules: B
|
|
190
191
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
191
192
|
m(F, {
|
|
192
193
|
"model-value": a.value,
|
|
193
194
|
multiselect: "",
|
|
194
195
|
searchable: "",
|
|
195
196
|
"search-debounce": 300,
|
|
196
|
-
items:
|
|
197
|
+
items: O.value,
|
|
197
198
|
label: r(i)("permissionSet.form.includedSets"),
|
|
198
199
|
placeholder: r(i)("permissionSet.form.includedSetsPlaceholder"),
|
|
199
200
|
class: "mt-16",
|
|
@@ -202,7 +203,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
202
203
|
y("div", Be, G(r(i)("team.memberForm.permissions.title")), 1),
|
|
203
204
|
m(Ee, {
|
|
204
205
|
modelValue: p.value,
|
|
205
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
206
|
+
"onUpdate:modelValue": s[1] || (s[1] = (j) => p.value = j),
|
|
206
207
|
"inherit-permissions": E.value,
|
|
207
208
|
class: "mt-16"
|
|
208
209
|
}, null, 8, ["modelValue", "inherit-permissions"])
|
|
@@ -211,29 +212,29 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
211
212
|
}, 512)
|
|
212
213
|
]),
|
|
213
214
|
_: 1
|
|
214
|
-
}, 8, ["
|
|
215
|
+
}, 8, ["modelValue", "onOn:clickedAway"]);
|
|
215
216
|
};
|
|
216
217
|
}
|
|
217
218
|
}), De = { class: "space-y-8" }, qe = { class: "flex justify-end xs:px-16" }, Ne = { class: "flex flex-col h-full overflow-auto" }, Ze = /* @__PURE__ */ Z({
|
|
218
219
|
__name: "PermissionSetList",
|
|
219
|
-
setup(K, { expose:
|
|
220
|
-
const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions:
|
|
220
|
+
setup(K, { expose: D }) {
|
|
221
|
+
const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), I = te(), { breakpoints: q } = ne(), w = v(""), V = b(() => {
|
|
221
222
|
var n;
|
|
222
223
|
return (n = d.value) == null ? void 0 : n.filter((t) => {
|
|
223
224
|
const c = w.value.toLowerCase();
|
|
224
225
|
return t.name.toLowerCase().includes(c);
|
|
225
226
|
});
|
|
226
|
-
}),
|
|
227
|
+
}), R = v(), l = ie(), d = b(
|
|
227
228
|
() => l.permissionSets.value
|
|
228
|
-
), a =
|
|
229
|
+
), a = v();
|
|
229
230
|
async function p() {
|
|
230
231
|
await l.readPermissionSets();
|
|
231
232
|
}
|
|
232
|
-
function
|
|
233
|
+
function B(n) {
|
|
233
234
|
var t;
|
|
234
|
-
a.value = n, (t =
|
|
235
|
+
a.value = n, (t = R.value) == null || t.trigger();
|
|
235
236
|
}
|
|
236
|
-
const
|
|
237
|
+
const N = [
|
|
237
238
|
{
|
|
238
239
|
accessorKey: "name",
|
|
239
240
|
header: () => o("permissionSet.table.columns.name")
|
|
@@ -246,7 +247,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
246
247
|
const t = n.row.original, c = M(
|
|
247
248
|
[t.id],
|
|
248
249
|
l.permissionSets.value
|
|
249
|
-
), _ =
|
|
250
|
+
), _ = A(c), g = _.length, z = Ie(
|
|
250
251
|
_,
|
|
251
252
|
i.value
|
|
252
253
|
);
|
|
@@ -262,8 +263,8 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
262
263
|
}),
|
|
263
264
|
content: () => S("div", [
|
|
264
265
|
o("team.labels.permission"),
|
|
265
|
-
...
|
|
266
|
-
(P,
|
|
266
|
+
...z.map(
|
|
267
|
+
(P, U) => S("div", { key: `${P}-${U}` }, `- ${P}`)
|
|
267
268
|
)
|
|
268
269
|
])
|
|
269
270
|
}
|
|
@@ -289,7 +290,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
289
290
|
[
|
|
290
291
|
S(Pe, {
|
|
291
292
|
items: [
|
|
292
|
-
{ label: o("common.update"), onClick: () =>
|
|
293
|
+
{ label: o("common.update"), onClick: () => B(t) },
|
|
293
294
|
{
|
|
294
295
|
label: o("common.remove"),
|
|
295
296
|
onClick: () => E(t),
|
|
@@ -303,15 +304,15 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
303
304
|
enableSorting: !1
|
|
304
305
|
}
|
|
305
306
|
];
|
|
306
|
-
function
|
|
307
|
+
function O() {
|
|
307
308
|
var n;
|
|
308
|
-
a.value = void 0, (n =
|
|
309
|
+
a.value = void 0, (n = R.value) == null || n.trigger();
|
|
309
310
|
}
|
|
310
311
|
async function E(n) {
|
|
311
312
|
I.open({
|
|
312
313
|
title: o("permissionSet.form.delete.title"),
|
|
313
314
|
message: o("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
|
|
314
|
-
minWidth:
|
|
315
|
+
minWidth: q.value.lg ? 588 : 0,
|
|
315
316
|
primaryActions: {
|
|
316
317
|
text: o("common.remove"),
|
|
317
318
|
close: !1,
|
|
@@ -320,7 +321,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
320
321
|
secondaryActions: { text: o("common.cancel"), close: !0 }
|
|
321
322
|
}).onPrimary(async () => {
|
|
322
323
|
try {
|
|
323
|
-
await l.deletePermissionSet(n.id),
|
|
324
|
+
await l.deletePermissionSet(n.id), $.open({
|
|
324
325
|
message: o("permissionSet.form.delete.successMessage", { permissionSetName: n.name }),
|
|
325
326
|
type: "success"
|
|
326
327
|
});
|
|
@@ -328,21 +329,21 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
328
329
|
const c = t instanceof je && t.status === 409 ? t.message.includes("referenced by") ? o("permissionSet.form.delete.setReferencedConflictError", {
|
|
329
330
|
permissionSetName: n.name
|
|
330
331
|
}) : o("permissionSet.form.delete.conflictError", { permissionSetName: n.name }) : t instanceof Error ? t.message : `${t}`;
|
|
331
|
-
|
|
332
|
+
$.open({ message: c, type: "error" });
|
|
332
333
|
}
|
|
333
334
|
I.close();
|
|
334
335
|
});
|
|
335
336
|
}
|
|
336
337
|
return fe(() => {
|
|
337
|
-
p(),
|
|
338
|
-
}),
|
|
339
|
-
create:
|
|
338
|
+
p(), f();
|
|
339
|
+
}), D({
|
|
340
|
+
create: O
|
|
340
341
|
}), (n, t) => {
|
|
341
|
-
const c =
|
|
342
|
+
const c = h("FmSearch"), _ = h("FmTable");
|
|
342
343
|
return ee(), ve(Se, null, [
|
|
343
344
|
m(Ae, {
|
|
344
345
|
ref_key: "permissionSetFormRef",
|
|
345
|
-
ref:
|
|
346
|
+
ref: R,
|
|
346
347
|
"model-value": a.value
|
|
347
348
|
}, null, 8, ["model-value"]),
|
|
348
349
|
y("div", De, [
|
|
@@ -355,26 +356,26 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
355
356
|
placeholder: r(o)("permissionSet.search.placeholder")
|
|
356
357
|
}, null, 8, ["modelValue", "placeholder"])
|
|
357
358
|
]),
|
|
358
|
-
m(
|
|
359
|
+
m(he, null, {
|
|
359
360
|
default: C(() => [
|
|
360
361
|
y("div", Ne, [
|
|
361
362
|
m(_e, {
|
|
362
363
|
"is-loading": r(l).isLoading.value,
|
|
363
|
-
"is-empty":
|
|
364
|
+
"is-empty": V.value.length === 0,
|
|
364
365
|
"collapse-at": !1,
|
|
365
366
|
title: r(o)("permissionSet.noData.title"),
|
|
366
367
|
subtitle: r(o)("permissionSet.noData.subtitle")
|
|
367
368
|
}, {
|
|
368
369
|
default: C(() => [
|
|
369
370
|
m(_, {
|
|
370
|
-
"column-defs":
|
|
371
|
-
"row-data":
|
|
372
|
-
"page-size":
|
|
371
|
+
"column-defs": N,
|
|
372
|
+
"row-data": V.value,
|
|
373
|
+
"page-size": V.value.length,
|
|
373
374
|
loading: r(l).isLoading.value,
|
|
374
375
|
"pin-header-row": "",
|
|
375
376
|
"hide-footer": "",
|
|
376
377
|
"shrink-at": !1,
|
|
377
|
-
onRowClick: t[1] || (t[1] = (g) =>
|
|
378
|
+
onRowClick: t[1] || (t[1] = (g) => B(g.original))
|
|
378
379
|
}, null, 8, ["row-data", "page-size", "loading"])
|
|
379
380
|
]),
|
|
380
381
|
_: 1
|