@feedmepos/mf-hrm-portal 1.1.4-dev.4 → 2.0.0

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.
Files changed (51) hide show
  1. package/dist/AuditLogList-Cm3ueTso.js +474 -0
  2. package/dist/EmployeeList-vMcIqBU_.js +626 -0
  3. package/dist/{Main-CG_GcIEk.js → Main-CeGYov-a.js} +8 -8
  4. package/dist/{Main-BLV2Vfz1.js → Main-gHCENd4i.js} +27 -28
  5. package/dist/PermissionSetList-Dw69OYF4.js +323 -0
  6. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-bvPOPUhu.js +3092 -0
  7. package/dist/RoleList-D1CrixYc.js +497 -0
  8. package/dist/TeamMemberList-M0Q8CP4h.js +973 -0
  9. package/dist/{TimesheetList-FXfuZUMw.js → TimesheetList-BmOfy0pc.js} +25 -24
  10. package/dist/api/audit-log/index.d.ts +4 -0
  11. package/dist/api/index.d.ts +5 -0
  12. package/dist/api/report-query/index.d.ts +5 -0
  13. package/dist/api/team/index.d.ts +2 -5
  14. package/dist/app-RUdgf-7_.js +3286 -0
  15. package/dist/app.js +1 -1
  16. package/dist/composables/useReportPermissions.d.ts +14 -0
  17. package/dist/{dayjs.min-CxMnYvrg.js → dayjs.min-D9w2-Exz.js} +13 -13
  18. package/dist/employee-B3jBmvNJ.js +144 -0
  19. package/dist/helpers/permission-set.d.ts +37 -0
  20. package/dist/helpers/rule.d.ts +1 -1
  21. package/dist/index-BMVQbdBd.js +827 -0
  22. package/dist/index-BS6B6k7h.js +10340 -0
  23. package/dist/{lodash-Bbnb5Nlh.js → lodash-CglPbFKR.js} +1 -1
  24. package/dist/stores/permission-set.d.ts +15 -0
  25. package/dist/stores/team.d.ts +16 -4
  26. package/dist/style.css +1 -1
  27. package/dist/team-afjBSzOz.js +33 -0
  28. package/dist/{timesheet-pnAANVbk.js → timesheet-fOBJOS1i.js} +2 -2
  29. package/dist/tsconfig.app.tsbuildinfo +1 -1
  30. package/dist/types/audit-log.d.ts +1 -19
  31. package/dist/types/permission-set.d.ts +4 -0
  32. package/dist/types/report-query.d.ts +6 -0
  33. package/dist/{useAppStore-BJZiy3Q1.js → useAppStore-D-SLROq6.js} +34 -46
  34. package/dist/{useLoading-FywoIKYV.js → useLoading-CLQGJW7G.js} +1 -1
  35. package/dist/useReportPermissions-Cx4ghxj6.js +65 -0
  36. package/dist/views/audit-log/locales/index.d.ts +84 -0
  37. package/dist/views/team/locales/index.d.ts +32 -8
  38. package/package.json +4 -2
  39. package/dist/AuditLogList-CIlv-dA1.js +0 -316
  40. package/dist/EmployeeList-u_rDREgp.js +0 -607
  41. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C0HCpU2w.js +0 -3051
  42. package/dist/RoleList-B5L4I_kf.js +0 -497
  43. package/dist/RolePermissionList-BUHTx8KI.js +0 -285
  44. package/dist/TeamMemberList-BSpbwkTb.js +0 -951
  45. package/dist/app-BTdNT2Fz.js +0 -1637
  46. package/dist/employee-D9A-2noc.js +0 -172
  47. package/dist/index-DEH1isVF.js +0 -8058
  48. package/dist/team-D9GxbwvB.js +0 -26
  49. package/dist/types/permission.d.ts +0 -1
  50. /package/dist/views/team/{role/RolePermissionForm.vue.d.ts → permission-set/PermissionSetForm.vue.d.ts} +0 -0
  51. /package/dist/views/team/{role/RolePermissionList.vue.d.ts → permission-set/PermissionSetList.vue.d.ts} +0 -0
@@ -1,497 +0,0 @@
1
- import { defineComponent as ce, ref as T, computed as _, onMounted as pe, watch as xe, resolveComponent as y, createBlock as C, openBlock as p, unref as t, withCtx as b, createElementVNode as f, createVNode as c, createCommentVNode as re, createElementBlock as L, Fragment as q, renderList as G, toDisplayString as D, h as F, createTextVNode as ne, resolveDynamicComponent as ie, withModifiers as Fe, nextTick as ue } from "vue";
2
- import { e as E, r as K, h as le, f as Ce, a as me, c as j } from "./index-DEH1isVF.js";
3
- import { useI18n as ve, useCoreStore as fe } from "@feedmepos/mf-common";
4
- import { useSnackbar as _e, components as W, useDialog as Re, useBreakpoints as Ve, FmButtonColorThemeVariant as de, FmButtonVariant as we } from "@feedmepos/ui-library";
5
- import { _ as ke } from "./app-BTdNT2Fz.js";
6
- import { _ as Ie } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
- import { u as he } from "./useAppStore-BJZiy3Q1.js";
8
- import { u as Le, _ as se, a as Ue, b as Se } from "./useRestaurantMap-D5BNPLKh.js";
9
- import { l as z } from "./lodash-Bbnb5Nlh.js";
10
- import { u as $e } from "./useLoading-FywoIKYV.js";
11
- import { FullPosPermissions as Ee } from "@feedmepos/hrm-permission";
12
- const Te = { class: "fm-typo-en-title-md-600" }, Pe = { class: "space-y-40" }, Be = { class: "space-y-8" }, De = { class: "space-y-8" }, Me = {
13
- key: 0,
14
- class: "w-50 ml-5 flex flex-row items-start"
15
- }, Ae = { class: "m-2" }, Ne = { class: "flex gap-8 items-center justify-start" }, Oe = /* @__PURE__ */ ce({
16
- __name: "RoleForm",
17
- props: {
18
- id: {
19
- type: String,
20
- default: void 0
21
- }
22
- },
23
- setup(te, { expose: H }) {
24
- const { t: s } = ve(), Q = fe(), U = T(""), R = _(() => Q.restaurants.value.filter(({ profile: e }) => {
25
- const a = `${e.code ? e.code + "-" : ""}${e.legalName}`;
26
- return !U.value || a.toLowerCase().includes(U.value.toLowerCase());
27
- })), S = he(), J = _e(), X = $e(J), P = te, m = T(!1), Y = () => {
28
- m.value = !m.value, m.value && $();
29
- }, Z = _(() => P.id ? s("hr.role.form.update") : s("hr.role.form.add")), M = _(() => P.id ? s("common.update") : s("common.add")), A = _(() => Ee.filter(
30
- (e) => !(e.subject === E.F_RULE_SUBJECT.enum.report && !e.conditions)
31
- ).map((e) => K(e))), d = _(() => S.roles.value.find((e) => e._id == P.id)), V = () => ({
32
- name: "",
33
- restaurantIds: [],
34
- permissions: [],
35
- maxDiscountPercentage: 100
36
- }), l = T(V()), N = _(() => [
37
- {
38
- title: s("hr.role.labels.operation"),
39
- filter: (e) => e.isOrderOperation
40
- },
41
- {
42
- title: s("hr.role.labels.report"),
43
- filter: (e) => e.isReportPermission
44
- },
45
- {
46
- title: s("hr.role.labels.other"),
47
- filter: (e) => !e.isOrderOperation && !e.isReportPermission
48
- }
49
- ].map((e) => ({
50
- title: e.title,
51
- options: A.value.filter(e.filter).map(({ label: a, value: v }) => ({
52
- label: a,
53
- value: v
54
- }))
55
- }))), h = _(() => {
56
- var e;
57
- return le(((e = d.value) == null ? void 0 : e.permissions) || []);
58
- });
59
- function $() {
60
- var e;
61
- l.value = V(), l.value.name = ((e = d.value) == null ? void 0 : e.name) ?? "", h.value ? (l.value.restaurantIds = R.value.map((a) => a._id), l.value.permissions = A.value.map((a) => a.value)) : d.value && (l.value.restaurantIds = d.value.restaurants.map((a) => a.id), l.value.permissions = d.value.permissions.map(
62
- (a) => K(a).value
63
- ), l.value.maxDiscountPercentage = me(
64
- d.value.permissions
65
- ));
66
- }
67
- pe(() => {
68
- $();
69
- });
70
- const ee = T(""), ae = _(() => ({
71
- restaurantIds: l.value.restaurantIds,
72
- role: {
73
- name: l.value.name,
74
- permissions: Ce(l.value.permissions, l.value.maxDiscountPercentage)
75
- }
76
- })), o = () => {
77
- const e = ae.value;
78
- X.minor(
79
- async () => {
80
- d.value ? await S.updateRole(d.value._id, e) : await S.createRole(e);
81
- },
82
- {
83
- successMessage: d.value ? s("hr.role.add.successMessage", { name: e.role.name }) : s("hr.role.update.successMessage", { name: e.role.name })
84
- }
85
- ), m.value = !1;
86
- }, r = _(
87
- () => l.value.restaurantIds.filter((e) => R.value.some((a) => a._id === e))
88
- ), i = _(() => R.value.length > 0 && R.value.length === r.value.length), u = () => {
89
- const e = l.value.restaurantIds.filter((a) => !r.value.includes(a));
90
- i.value === !0 ? l.value.restaurantIds = e : l.value.restaurantIds = R.value.map((a) => a._id);
91
- }, g = (e) => e.map((v) => v.value).every((v) => l.value.permissions.includes(v)), w = (e) => {
92
- const a = l.value.permissions.filter(
93
- (v) => !e.map((B) => B.value).includes(v)
94
- );
95
- g(e) === !0 ? l.value.permissions = a : l.value.permissions = [...a, ...e.map((v) => v.value)];
96
- };
97
- xe(
98
- () => l.value.restaurantIds,
99
- (e) => {
100
- e.length > 0 && (ee.value = "");
101
- }
102
- );
103
- const O = Le(
104
- () => {
105
- var e, a, v, B;
106
- return !z.isEqual(l.value.name, ((e = d.value) == null ? void 0 : e.name) || V().name) || !z.isEqual(
107
- l.value.restaurantIds,
108
- ((a = d.value) == null ? void 0 : a.restaurants.map((k) => k.id)) || V().restaurantIds
109
- ) || !z.isEqual(
110
- l.value.permissions,
111
- ((v = d.value) == null ? void 0 : v.permissions.map((k) => K(k).value)) || V().permissions
112
- ) || !z.isEqual(
113
- l.value.maxDiscountPercentage,
114
- d.value ? me((B = d.value) == null ? void 0 : B.permissions) : V().maxDiscountPercentage
115
- );
116
- },
117
- () => {
118
- m.value = !1;
119
- }
120
- );
121
- return H({
122
- show: m,
123
- trigger: Y
124
- }), (e, a) => {
125
- const v = y("FmTextField"), B = y("FmSearch"), k = y("FmCheckbox"), ge = y("FmFormGroup"), be = y("FmCard"), oe = y("fm-button"), ye = y("fm-side-sheet");
126
- return p(), C(ye, {
127
- id: "unit-form",
128
- modelValue: m.value,
129
- "onUpdate:modelValue": a[7] || (a[7] = (n) => m.value = n),
130
- "is-container": t(W).FmForm,
131
- "is-container-props": {
132
- onValidationSuccess: o,
133
- blameFormChildOnValidationFailed: !0
134
- },
135
- "max-width": 560,
136
- "onOn:clickedAway": t(O)
137
- }, {
138
- "side-sheet-header": b(() => [
139
- f("p", Te, D(Z.value), 1)
140
- ]),
141
- "side-sheet-footer": b(() => [
142
- f("div", Ne, [
143
- c(oe, {
144
- label: M.value,
145
- size: "lg",
146
- type: "submit",
147
- variant: "primary",
148
- disabled: h.value
149
- }, null, 8, ["label", "disabled"]),
150
- c(oe, {
151
- label: t(s)("common.cancel"),
152
- size: "lg",
153
- variant: "tertiary",
154
- onClick: a[6] || (a[6] = () => m.value = !1)
155
- }, null, 8, ["label"])
156
- ])
157
- ]),
158
- default: b(() => [
159
- f("div", Pe, [
160
- c(se, { title: "Role detail" }, {
161
- default: b(() => [
162
- c(v, {
163
- modelValue: l.value.name,
164
- "onUpdate:modelValue": a[0] || (a[0] = (n) => l.value.name = n),
165
- autofocus: "",
166
- rules: [(n) => !!n || t(s)("hr.role.form.required")],
167
- label: t(s)("hr.role.form.name"),
168
- disabled: h.value
169
- }, null, 8, ["modelValue", "rules", "label", "disabled"])
170
- ]),
171
- _: 1
172
- }),
173
- c(se, {
174
- title: t(s)("hr.role.form.restaurant")
175
- }, {
176
- default: b(() => [
177
- c(B, {
178
- modelValue: U.value,
179
- "onUpdate:modelValue": a[1] || (a[1] = (n) => U.value = n),
180
- placeholder: t(s)("hr.restaurant.search.placeholder")
181
- }, null, 8, ["modelValue", "placeholder"]),
182
- c(ge, {
183
- modelValue: l.value.restaurantIds,
184
- "onUpdate:modelValue": a[3] || (a[3] = (n) => l.value.restaurantIds = n),
185
- rules: [(n) => n.length > 0 || t(s)("hr.role.form.atLeastOneRestaurant")]
186
- }, {
187
- default: b(() => [
188
- f("div", Be, [
189
- U.value ? re("", !0) : (p(), C(k, {
190
- key: 0,
191
- "model-value": i.value,
192
- label: "All",
193
- value: "1",
194
- disabled: h.value,
195
- "onUpdate:modelValue": u
196
- }, null, 8, ["model-value", "disabled"])),
197
- (p(!0), L(q, null, G(R.value, (n) => (p(), L("div", {
198
- key: n._id
199
- }, [
200
- c(k, {
201
- modelValue: l.value.restaurantIds,
202
- "onUpdate:modelValue": a[2] || (a[2] = (I) => l.value.restaurantIds = I),
203
- label: `${n.profile.code ? n.profile.code + "-" : ""}${n.profile.name}`,
204
- value: n._id,
205
- disabled: h.value
206
- }, null, 8, ["modelValue", "label", "value", "disabled"])
207
- ]))), 128))
208
- ])
209
- ]),
210
- _: 1
211
- }, 8, ["modelValue", "rules"])
212
- ]),
213
- _: 1
214
- }, 8, ["title"]),
215
- c(se, {
216
- title: t(s)("hr.role.form.permissions")
217
- }, {
218
- default: b(() => [
219
- (p(!0), L(q, null, G(N.value, (n) => (p(), C(be, {
220
- key: n.title,
221
- variant: "outlined",
222
- class: "p-16"
223
- }, {
224
- default: b(() => [
225
- c(Ue, {
226
- label: n.title
227
- }, {
228
- default: b(() => [
229
- f("div", De, [
230
- c(k, {
231
- "model-value": g(n.options),
232
- label: "All",
233
- value: "1",
234
- disabled: h.value,
235
- "onUpdate:modelValue": (I) => w(n.options)
236
- }, null, 8, ["model-value", "disabled", "onUpdate:modelValue"]),
237
- (p(!0), L(q, null, G(n.options, (I) => (p(), L("div", {
238
- key: I.value
239
- }, [
240
- c(k, {
241
- modelValue: l.value.permissions,
242
- "onUpdate:modelValue": a[4] || (a[4] = (x) => l.value.permissions = x),
243
- label: I.label,
244
- value: I.value,
245
- disabled: h.value
246
- }, null, 8, ["modelValue", "label", "value", "disabled"]),
247
- I.value === "order:discount" && l.value.permissions.includes(I.value) ? (p(), L("div", Me, [
248
- f("div", Ae, D(t(s)("hr.role.form.maxDiscountPercentage")), 1),
249
- c(v, {
250
- modelValue: l.value.maxDiscountPercentage,
251
- "onUpdate:modelValue": a[5] || (a[5] = (x) => l.value.maxDiscountPercentage = x),
252
- rules: [
253
- (x) => !!x || t(s)("hr.role.form.required"),
254
- (x) => !isNaN(x) || t(s)("hr.role.form.onlyContainsNumber"),
255
- (x) => x <= 100 || t(s)("hr.role.form.maxValueIs", { max: 100 }),
256
- (x) => x >= 0 || t(s)("hr.role.form.minValueIs", { min: 0 })
257
- ],
258
- "append-text": "%",
259
- disabled: h.value
260
- }, null, 8, ["modelValue", "rules", "disabled"])
261
- ])) : re("", !0)
262
- ]))), 128))
263
- ])
264
- ]),
265
- _: 2
266
- }, 1032, ["label"])
267
- ]),
268
- _: 2
269
- }, 1024))), 128))
270
- ]),
271
- _: 1
272
- }, 8, ["title"])
273
- ])
274
- ]),
275
- _: 1
276
- }, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"]);
277
- };
278
- }
279
- }), qe = {
280
- class: "space-y-8"
281
- }, Je = {
282
- class: "flex justify-end xs:px-16"
283
- }, je = {
284
- class: "pb-64 hidden xs:block"
285
- }, ze = {
286
- class: "space-y-4"
287
- }, Ge = {
288
- class: "fm-typo-en-body-lg-600"
289
- }, Ke = {
290
- class: "text-fm-color-typo-secondary"
291
- }, We = {
292
- class: "flex"
293
- }, He = {
294
- class: "flex"
295
- }, na = /* @__PURE__ */ ce({
296
- __name: "RoleList",
297
- setup(te, {
298
- expose: H
299
- }) {
300
- const {
301
- t: s
302
- } = ve(), Q = fe(), U = _(() => Q.restaurants.value), R = _(() => U.value.map((o) => o._id));
303
- function S(o, r) {
304
- const i = j(o, r);
305
- return ["-", "All"].includes(i) ? () => null : () => F(W.FmTooltip, {
306
- "z-index": "999",
307
- placement: "top",
308
- class: "ml-2"
309
- }, {
310
- content: () => F("div", {
311
- innerHTML: `
312
- ${s("hr.role.tooltip.labels.permission")}
313
- ${o.filter((u) => u.subject === r).map((u) => `<div>- ${K(u).label}</div>`).join("")}
314
- `
315
- }),
316
- default: () => F(W.FmIcon, {
317
- name: "info",
318
- color: de.NeutralGray400
319
- })
320
- });
321
- }
322
- function J(o, r) {
323
- const i = j(o, r);
324
- return () => i === "All" ? i : F("div", {
325
- class: "flex items-center"
326
- }, [i, S(o, r)()]);
327
- }
328
- const X = [{
329
- accessorKey: "name",
330
- header: () => s("hr.role.columns.name"),
331
- enableSorting: !1
332
- }, {
333
- accessorKey: "operation",
334
- header: () => s("hr.role.columns.operation"),
335
- cell: (o) => F(J(o.row.original.permissions, E.F_RULE_SUBJECT.enum.order)),
336
- enableSorting: !1
337
- }, {
338
- accessorKey: "report",
339
- header: () => s("hr.role.columns.report"),
340
- cell: (o) => F(J(o.row.original.permissions, E.F_RULE_SUBJECT.enum.report)),
341
- enableSorting: !1
342
- }, {
343
- accessorKey: "restaurants",
344
- header: () => s("hr.role.columns.restaurants"),
345
- cell: (o) => o.row.original.restaurants.map((r, i) => {
346
- const u = r.code, g = `${u ? u + " - " : ""}${r.name}`;
347
- return F("div", (i ? `
348
- ` : "") + g);
349
- }),
350
- enableSorting: !1
351
- }, {
352
- id: "action",
353
- size: 52,
354
- meta: {
355
- cellClass: "pl-16",
356
- headerContentClass: "-mx-16"
357
- },
358
- cell: (o) => F("div", {
359
- class: "w-full flex justify-end items-center"
360
- }, [F(W.FmButton, {
361
- prependIcon: "delete",
362
- variant: we.Tertiary,
363
- textColor: de.NeutralGray400,
364
- disabled: le(o.row.original.permissions),
365
- onClick: (r) => {
366
- r.stopPropagation(), l(o.row.original);
367
- }
368
- })])
369
- }], P = async (o) => {
370
- var r;
371
- $.value = o._id, await ue(), (r = h.value) == null || r.trigger();
372
- }, m = he(), Y = Se(), Z = _(() => (m.roles.value || []).filter((i) => i.restaurants.some((u) => R.value.includes(u.id))).map((i) => {
373
- const u = i.restaurants.map((g) => {
374
- const w = Y.value[g.id];
375
- return {
376
- ...g,
377
- code: w == null ? void 0 : w.profile.code
378
- };
379
- });
380
- return {
381
- ...i,
382
- restaurants: u
383
- };
384
- })), M = _(() => {
385
- var r;
386
- return (r = Z.value) == null ? void 0 : r.filter((i) => {
387
- const u = N.value.toLowerCase(), g = i.name.toLowerCase().includes(u), O = (i.restaurants || []).some((e) => {
388
- var a;
389
- return e.name.toLowerCase().includes(u) || ((a = e.code) == null ? void 0 : a.toLowerCase().includes(u));
390
- });
391
- return g || O;
392
- });
393
- }), A = Re(), d = _e(), {
394
- breakpoints: V
395
- } = Ve(), l = (o) => {
396
- A.open({
397
- title: s("hr.role.remove.title"),
398
- message: s("hr.role.remove.message", {
399
- name: o.name
400
- }),
401
- minWidth: V.value.lg ? 588 : 0,
402
- primaryActions: {
403
- text: s("common.remove"),
404
- close: !1,
405
- variant: "destructive"
406
- },
407
- secondaryActions: {
408
- text: s("common.cancel"),
409
- close: !0
410
- }
411
- }).onPrimary(async () => {
412
- await m.deleteRole(o).then(() => d.open({
413
- message: s("hr.role.remove.successMessage", {
414
- name: o.name
415
- }),
416
- type: "success"
417
- })).catch((r) => d.open({
418
- message: r,
419
- type: "error"
420
- })), A.close();
421
- });
422
- }, N = T(""), h = T(), $ = T(void 0);
423
- async function ee() {
424
- var o;
425
- $.value = void 0, await ue(), (o = h.value) == null || o.trigger();
426
- }
427
- async function ae() {
428
- m.roles.value.length === 0 && await m.readRoles();
429
- }
430
- return pe(() => {
431
- ae();
432
- }), H({
433
- create: ee
434
- }), (o, r) => {
435
- const i = y("FmSearch"), u = y("FmTable"), g = y("FmButton"), w = y("FmListItem"), O = y("FmList");
436
- return p(), L(q, null, [(p(), C(Oe, {
437
- id: $.value,
438
- key: $.value,
439
- ref_key: "roleFormRef",
440
- ref: h
441
- }, null, 8, ["id"])), f("div", qe, [f("div", Je, [c(i, {
442
- modelValue: N.value,
443
- "onUpdate:modelValue": r[0] || (r[0] = (e) => N.value = e),
444
- class: "w-[320px] xs:w-full",
445
- autofocus: "",
446
- placeholder: t(s)("hr.role.search.placeholder") + " / " + t(s)("hr.restaurant.search.placeholder")
447
- }, null, 8, ["modelValue", "placeholder"])]), t(m).roles.value.length > 0 || t(m).isLoading.value ? (p(), C(ke, {
448
- key: 0,
449
- class: "overflow-auto"
450
- }, {
451
- default: b(() => [c(u, {
452
- class: "xs:hidden",
453
- "column-defs": X,
454
- "row-data": M.value,
455
- "page-size": M.value.length,
456
- loading: t(m).isLoading.value,
457
- "pin-header-row": "",
458
- "hide-footer": "",
459
- "shrink-at": !1,
460
- onRowClick: r[1] || (r[1] = (e) => P(e.original))
461
- }, null, 8, ["row-data", "page-size", "loading"]), f("div", je, [c(O, {
462
- separator: ""
463
- }, {
464
- default: b(() => [(p(!0), L(q, null, G(M.value, (e) => (p(), C(w, {
465
- key: e._id,
466
- class: "py-12 px-16 items-center justify-between",
467
- onClick: (a) => P(e)
468
- }, {
469
- default: b(() => [f("div", ze, [f("p", Ge, D(e.name), 1), f("div", Ke, [f("p", null, D(t(s)("hr.role.labels.restaurantList", {
470
- items: e.restaurants.map((a) => a.name).join(", ")
471
- })), 1), f("p", We, [ne(D(t(s)("hr.role.labels.operationList", {
472
- items: t(j)(e.permissions, t(E.F_RULE_SUBJECT).enum.order)
473
- })) + " ", 1), (p(), C(ie(S(e.permissions, t(E.F_RULE_SUBJECT).enum.order))))]), f("p", He, [ne(D(t(s)("hr.role.labels.reportList", {
474
- items: t(j)(e.permissions, t(E.F_RULE_SUBJECT).enum.report)
475
- })) + " ", 1), (p(), C(ie(S(e.permissions, t(E.F_RULE_SUBJECT).enum.report))))])])]), c(g, {
476
- disabled: t(le)(e.permissions),
477
- icon: "delete",
478
- variant: "tertiary",
479
- "text-color": "neutral-gray-400",
480
- onClick: Fe((a) => l(e), ["stop"])
481
- }, null, 8, ["disabled", "onClick"])]),
482
- _: 2
483
- }, 1032, ["onClick"]))), 128))]),
484
- _: 1
485
- })])]),
486
- _: 1
487
- })) : (p(), C(t(Ie), {
488
- key: 1,
489
- title: t(s)("hr.role.noData.title"),
490
- subtitle: t(s)("hr.role.noData.subtitle")
491
- }, null, 8, ["title", "subtitle"]))])], 64);
492
- };
493
- }
494
- });
495
- export {
496
- na as default
497
- };