@feedmepos/mf-hrm-portal 2.0.18-dev → 2.0.18-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.
Files changed (66) hide show
  1. package/dist/AuditLogList-CPG5uNyJ.js +980 -0
  2. package/dist/EmployeeList-CyF7_ax8.js +736 -0
  3. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +71 -0
  4. package/dist/HorizontalSplitter-o860F4xM.js +12 -0
  5. package/dist/{Main-CvW6Vu8N.js → Main-BwMCrfKS.js} +761 -758
  6. package/dist/Main-S5kR_LNV.js +85 -0
  7. package/dist/{Main-CleutFvF.js → Main-y2ea2vuC.js} +176 -183
  8. package/dist/PermissionSetList-C5oGIsQP.js +341 -0
  9. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-VaY4Fg_h.js +3480 -0
  10. package/dist/RoleList-C95uKJ8O.js +530 -0
  11. package/dist/TeamMemberList-CEqYCWn6.js +1114 -0
  12. package/dist/TeamMemberList.vue_vue_type_style_index_0_scoped_473cbd86_lang-DJ-znUI3.js +34 -0
  13. package/dist/{TimesheetList-WqqoKPbg.js → TimesheetList-DXtxCeNh.js} +126 -132
  14. package/dist/{app-R5EioPr4.js → app-BwtXEFgW.js} +711 -759
  15. package/dist/app.js +1 -1
  16. package/dist/{dayjs.min-CN15Ft3o.js → dayjs.min-uVMAR_wK.js} +1 -1
  17. package/dist/employee-ImeXt_Q7.js +204 -0
  18. package/dist/{iteration-UBGGRoxQ.js → iteration-BjJgU8cS.js} +4688 -4732
  19. package/dist/{lodash-CC6qHVUo.js → lodash-CSw3Ei7_.js} +1 -1
  20. package/dist/{rule-B519XbW6.js → rule-B6wBPpcM.js} +265 -263
  21. package/dist/src/api/account/index.d.ts +4 -0
  22. package/dist/src/api/audit-log/index.d.ts +0 -9
  23. package/dist/src/api/index.d.ts +1 -0
  24. package/dist/src/components/CheckboxInput.vue.d.ts +1 -1
  25. package/dist/src/components/CollapsibleWrapper.vue.d.ts +0 -2
  26. package/dist/src/composables/useBasePermission.d.ts +0 -1
  27. package/dist/src/composables/useRestaurantMap.d.ts +329 -2
  28. package/dist/src/composables/useSupportedCountries.d.ts +5 -0
  29. package/dist/src/stores/role.d.ts +7 -7
  30. package/dist/src/stores/team.d.ts +6 -6
  31. package/dist/src/types/restaurant.d.ts +0 -11
  32. package/dist/src/types/team.d.ts +1 -1
  33. package/dist/src/views/hr/locales/index.d.ts +0 -16
  34. package/dist/src/views/team/components/BasePermission.vue.d.ts +7 -3
  35. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +2 -2
  36. package/dist/src/views/team/locales/index.d.ts +0 -32
  37. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -5
  38. package/dist/style.css +1 -1
  39. package/dist/{timesheet-BylrXRfd.js → timesheet-D1f9XDxj.js} +2 -2
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/useAppStore-D7jswOfq.js +171 -0
  42. package/dist/useDebounce-B8ZPVS5C.js +15 -0
  43. package/dist/useDiscardConfirm-BHni0LNu.js +28 -0
  44. package/dist/{useLoading-rbrVwWuj.js → useLoading-kFlAIf6Y.js} +1 -1
  45. package/dist/{useReportPermissions-BOEZU86S.js → useReportPermissions-ClWD1GSr.js} +3 -3
  46. package/dist/useSearch-B6WK1LBB.js +15 -0
  47. package/package.json +1 -1
  48. package/dist/AuditLogList-CaoW9uYd.js +0 -1011
  49. package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +0 -58
  50. package/dist/EmployeeList-DcMvF9U5.js +0 -839
  51. package/dist/FormItem.vue_vue_type_script_setup_true_lang-CoorkndT.js +0 -34
  52. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
  53. package/dist/Main-D7k57uq5.js +0 -87
  54. package/dist/PermissionSetList-CM7kbWkO.js +0 -347
  55. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Ces9YwYB.js +0 -3443
  56. package/dist/RoleList-DR3eVJ9f.js +0 -545
  57. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
  58. package/dist/TeamMemberList-CZZv4Pu5.js +0 -1038
  59. package/dist/employee-DwQlWLkL.js +0 -204
  60. package/dist/src/api/restaurant/index.d.ts +0 -5
  61. package/dist/src/components/Skeleton.vue.d.ts +0 -7
  62. package/dist/src/stores/restaurant.d.ts +0 -181
  63. package/dist/team-BGLhgx5P.js +0 -33
  64. package/dist/useAppStore-Akl8AoVN.js +0 -171
  65. package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
  66. package/dist/useSearch-BAPEUu1R.js +0 -15
@@ -1,34 +0,0 @@
1
- import { createElementBlock as s, openBlock as n, createElementVNode as o, defineComponent as l, renderSlot as r, createCommentVNode as i, toDisplayString as c } from "vue";
2
- import { _ as a } from "./SelectFilter-DUj7GBtT.js";
3
- const d = {};
4
- function m(t, e) {
5
- return n(), s("div", null, [...e[0] || (e[0] = [
6
- o("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
7
- ])]);
8
- }
9
- const x = /* @__PURE__ */ a(d, [["render", m]]), p = { class: "space-y-8" }, _ = { class: "flex items-center justify-between" }, f = { class: "space-y-8" }, u = { class: "fm-typo-en-body-lg-600" }, y = {
10
- key: 0,
11
- class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
12
- }, g = /* @__PURE__ */ l({
13
- __name: "FormItem",
14
- props: {
15
- label: {},
16
- description: {}
17
- },
18
- setup(t) {
19
- return (e, b) => (n(), s("div", p, [
20
- o("div", _, [
21
- o("div", f, [
22
- o("p", u, c(t.label), 1),
23
- t.description ? (n(), s("p", y, c(t.description), 1)) : i("", !0)
24
- ]),
25
- r(e.$slots, "append")
26
- ]),
27
- r(e.$slots, "default")
28
- ]));
29
- }
30
- });
31
- export {
32
- x as H,
33
- g as _
34
- };
@@ -1,49 +0,0 @@
1
- import { defineComponent as c, createElementBlock as s, openBlock as l, normalizeClass as r, renderSlot as n, createCommentVNode as o, createVNode as d, createElementVNode as a, toDisplayString as i, withCtx as f } from "vue";
2
- const h = /* @__PURE__ */ c({
3
- __name: "FormColumn",
4
- props: {
5
- shrinkable: { type: Boolean }
6
- },
7
- setup(e) {
8
- return (t, m) => (l(), s("div", {
9
- class: r(["flex-1 flex flex-col space-y-24", { "min-h-0": e.shrinkable }])
10
- }, [
11
- n(t.$slots, "default")
12
- ], 2));
13
- }
14
- }), u = {
15
- key: 0,
16
- class: "flex flex-row justify-between items-center"
17
- }, y = { class: "space-y-4" }, p = { class: "fm-typo-en-title-sm-600" }, b = {
18
- key: 0,
19
- class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
20
- }, x = /* @__PURE__ */ c({
21
- __name: "FormSection",
22
- props: {
23
- title: {},
24
- subTitle: {},
25
- shrinkable: { type: Boolean }
26
- },
27
- setup(e) {
28
- return (t, m) => (l(), s("div", {
29
- class: r(["flex flex-col space-y-16", { "min-h-0": e.shrinkable }])
30
- }, [
31
- e.title ? (l(), s("div", u, [
32
- a("div", y, [
33
- a("p", p, i(e.title), 1),
34
- e.subTitle ? (l(), s("p", b, i(e.subTitle), 1)) : o("", !0)
35
- ]),
36
- n(t.$slots, "append-title")
37
- ])) : o("", !0),
38
- d(h, { shrinkable: e.shrinkable }, {
39
- default: f(() => [
40
- n(t.$slots, "default")
41
- ]),
42
- _: 3
43
- }, 8, ["shrinkable"])
44
- ], 2));
45
- }
46
- });
47
- export {
48
- x as _
49
- };
@@ -1,87 +0,0 @@
1
- import { defineComponent as A, ref as u, computed as R, watch as C, resolveComponent as s, createBlock as i, openBlock as c, withCtx as p, createElementVNode as S, createVNode as d, resolveDynamicComponent as T, createCommentVNode as k } from "vue";
2
- import { useRouter as F, useRoute as N } from "vue-router";
3
- import { useI18n as g } from "@feedmepos/mf-common";
4
- import { _ as h } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as w } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
6
- import { u as x } from "./iteration-UBGGRoxQ.js";
7
- import "@feedmepos/ui-library";
8
- import "./rule-B519XbW6.js";
9
- import "./lodash-CC6qHVUo.js";
10
- import "./useAppStore-Akl8AoVN.js";
11
- import { R as v } from "./app-R5EioPr4.js";
12
- /* empty css */
13
- /* empty css */
14
- import "./team-BGLhgx5P.js";
15
- const y = { class: "space-y-24" }, X = /* @__PURE__ */ A({
16
- __name: "Main",
17
- setup($) {
18
- const { t: a } = g(), f = F(), B = N(), { readRestaurants: L } = x(), _ = u(), b = u(), t = u("member");
19
- B.name === v.TEAM_ROLE ? t.value = "role" : t.value = "member", L();
20
- const r = R(() => l.value.find((e) => e.value === t.value) || l.value[0]);
21
- C(t, (e) => {
22
- e === "member" ? f.replace({ name: v.TEAM_MEMBER }) : e === "role" && f.replace({ name: v.TEAM_ROLE });
23
- });
24
- const l = R(() => [
25
- {
26
- label: a("team.title"),
27
- value: "member",
28
- createButtonLabel: a("team.actions.addMember"),
29
- createButtonAction: () => {
30
- var e;
31
- (e = _.value) == null || e.create();
32
- }
33
- },
34
- {
35
- label: a("permissionSet.title"),
36
- value: "role",
37
- createButtonLabel: a("permissionSet.createButtonLabel"),
38
- createButtonAction: () => {
39
- var e;
40
- (e = b.value) == null || e.create();
41
- }
42
- }
43
- ]);
44
- return (e, n) => {
45
- const E = s("FmSpacer"), M = s("FmTabs"), V = s("RouterView");
46
- return c(), i(w, {
47
- heading: r.value.label
48
- }, {
49
- "append-heading": p(() => {
50
- var o;
51
- return [
52
- d(E),
53
- (o = r.value) != null && o.createButtonLabel ? (c(), i(h, {
54
- key: 0,
55
- icon: "add",
56
- label: r.value.createButtonLabel,
57
- onClick: n[0] || (n[0] = (m) => r.value.createButtonAction())
58
- }, null, 8, ["label"])) : k("", !0)
59
- ];
60
- }),
61
- default: p(() => [
62
- S("div", y, [
63
- d(M, {
64
- modelValue: t.value,
65
- "onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o),
66
- items: l.value
67
- }, null, 8, ["modelValue", "items"]),
68
- d(V, null, {
69
- default: p(({ Component: o }) => [
70
- (c(), i(T(o), {
71
- ref: (m) => {
72
- t.value === "member" && (_.value = m), t.value === "role" && (b.value = m);
73
- }
74
- }, null, 512))
75
- ]),
76
- _: 1
77
- })
78
- ])
79
- ]),
80
- _: 1
81
- }, 8, ["heading"]);
82
- };
83
- }
84
- });
85
- export {
86
- X as default
87
- };
@@ -1,347 +0,0 @@
1
- import { defineComponent as H, ref as p, computed as b, watch as ne, resolveComponent as P, createBlock as M, openBlock as L, unref as m, withCtx as j, createVNode as f, createElementVNode as D, toDisplayString as ie, nextTick as ae, onMounted as le, createElementBlock as re, Fragment as me, h as S } from "vue";
2
- import { useI18n as Q, useCoreStore as ce } from "@feedmepos/mf-common";
3
- import { useSnackbar as Y, useDialog as ue, useBreakpoints as de, components as J } from "@feedmepos/ui-library";
4
- import { _ as pe } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
5
- import { u as fe, _ as ve } from "./useDiscardConfirm-DPhEV6v0.js";
6
- import { u as Z, c as ee, d as se, p as X, i as Se, b as be, m as A, k as Pe, l as he, s as _e, n as ge, q as ye } from "./rule-B519XbW6.js";
7
- import { l as W } from "./lodash-CC6qHVUo.js";
8
- import { d as we, A as Fe } from "./iteration-UBGGRoxQ.js";
9
- import { u as Ve } from "./useLoading-rbrVwWuj.js";
10
- import { d as G } from "./app-R5EioPr4.js";
11
- import { _ as ke } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Ces9YwYB.js";
12
- const xe = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-center justify-start gap-8" }, Re = /* @__PURE__ */ H({
13
- __name: "PermissionSetForm",
14
- props: {
15
- modelValue: {
16
- type: Object,
17
- default: () => ({})
18
- }
19
- },
20
- setup(K, { expose: N }) {
21
- const o = K, { t: a } = Q(), u = p(!1), B = b(() => {
22
- var e;
23
- return (e = o.modelValue) != null && e.id ? a("permissionSet.form.update.title") : a("permissionSet.form.create.title");
24
- }), k = p(), O = Y(), x = Ve(O), h = Z(), l = p({ ...o.modelValue }), i = p([]), c = p([]), C = [(e) => !!e || a("permissionSet.form.nameRequired")], U = b(() => {
25
- var e;
26
- return (e = o.modelValue) != null && e.id ? a("permissionSet.form.update.confirmButtonLabel") : a("permissionSet.form.create.confirmButtonLabel");
27
- }), T = b(
28
- () => h.permissionSets.value.filter((e) => {
29
- var s;
30
- return e.id !== ((s = o.modelValue) == null ? void 0 : s.id);
31
- }).map((e) => ({ label: e.name, value: e.id }))
32
- ), y = b(
33
- () => ee(i.value, h.permissionSets.value)
34
- ), {
35
- fetchCustomReportPermissions: q,
36
- customReportPermissions: $,
37
- isLoaded: n
38
- } = se(), t = new Set(
39
- X.filter((e) => e.subject.startsWith(Se)).map((e) => e.subject)
40
- ), r = b(() => {
41
- const e = new Set(t);
42
- for (const s of $.value) e.add(s.subject);
43
- return e;
44
- }), w = b(() => {
45
- const e = /* @__PURE__ */ new Set();
46
- for (const s of X)
47
- s.category === G.reports && e.add(s.subject);
48
- for (const s of $.value)
49
- s.category === G.reports && e.add(s.subject);
50
- return e;
51
- }), v = p({ name: "", permissionSetIds: [], userPermissions: [] });
52
- async function _() {
53
- var s, d;
54
- await ae(), u.value = !u.value, l.value = { ...o.modelValue }, i.value = ((s = o.modelValue) == null ? void 0 : s.permissionSetIds) ?? [];
55
- const e = ((d = o.modelValue) == null ? void 0 : d.permissions) ?? [];
56
- c.value = be(
57
- A(y.value),
58
- e
59
- ), v.value = {
60
- name: l.value.name ?? "",
61
- permissionSetIds: [...i.value],
62
- userPermissions: we(c.value)
63
- };
64
- }
65
- ne(u, async (e) => {
66
- e && await q();
67
- });
68
- const R = fe(
69
- () => !W.isEqual(l.value.name ?? "", v.value.name) || !W.isEqual(i.value, v.value.permissionSetIds) || !W.isEqual(c.value, v.value.userPermissions),
70
- () => {
71
- u.value = !1;
72
- }
73
- );
74
- function z() {
75
- const e = A(y.value), s = n.value ? r.value : t, d = Pe(c.value, s), F = he(d, w.value), V = _e(F);
76
- return ge(e, V);
77
- }
78
- function oe() {
79
- c.value = A(y.value);
80
- }
81
- async function te() {
82
- var d, F;
83
- const e = await ((d = k.value) == null ? void 0 : d.validateInputsWithoutSubmit()), s = (F = ce().currentBusiness.value) == null ? void 0 : F.id;
84
- !(e != null && e.length) && s && x.minor(async () => {
85
- var I;
86
- const V = z();
87
- if ((I = o.modelValue) != null && I.id) {
88
- const E = {
89
- name: l.value.name,
90
- permissions: V,
91
- permissionSetIds: i.value,
92
- businessId: l.value.businessId
93
- };
94
- await h.updatePermissionSet(o.modelValue.id, E);
95
- } else {
96
- const E = {
97
- name: l.value.name,
98
- businessId: s,
99
- permissions: V,
100
- permissionSetIds: i.value
101
- };
102
- await h.createPermissionSet(E);
103
- }
104
- u.value = !1;
105
- });
106
- }
107
- return N({
108
- trigger: _
109
- }), (e, s) => {
110
- const d = P("FmTextField"), F = P("FmSelect"), V = P("FmForm"), I = P("FmButton"), E = P("FmSideSheet");
111
- return L(), M(E, {
112
- modelValue: u.value,
113
- "onUpdate:modelValue": s[3] || (s[3] = (g) => u.value = g),
114
- "max-width": 960,
115
- "onOn:clickedAway": m(R)
116
- }, {
117
- "side-sheet-header": j(() => [
118
- D("p", xe, ie(B.value), 1)
119
- ]),
120
- "side-sheet-footer": j(() => [
121
- D("div", Ce, [
122
- f(I, {
123
- label: U.value,
124
- size: "md",
125
- variant: "primary",
126
- type: "submit",
127
- onClick: te
128
- }, null, 8, ["label"]),
129
- f(I, {
130
- label: m(a)("common.cancel"),
131
- size: "md",
132
- variant: "secondary",
133
- onClick: m(R)
134
- }, null, 8, ["label", "onClick"])
135
- ])
136
- ]),
137
- default: j(() => [
138
- f(V, {
139
- ref_key: "formRef",
140
- ref: k
141
- }, {
142
- default: j(() => [
143
- f(d, {
144
- modelValue: l.value.name,
145
- "onUpdate:modelValue": s[0] || (s[0] = (g) => l.value.name = g),
146
- label: m(a)("permissionSet.form.name"),
147
- placeholder: m(a)("permissionSet.form.namePlaceholder"),
148
- rules: C
149
- }, null, 8, ["modelValue", "label", "placeholder"]),
150
- f(F, {
151
- modelValue: i.value,
152
- "onUpdate:modelValue": [
153
- s[1] || (s[1] = (g) => i.value = g),
154
- oe
155
- ],
156
- multiselect: "",
157
- searchable: "",
158
- "search-debounce": 300,
159
- items: T.value,
160
- label: m(a)("permissionSet.form.includedSets"),
161
- placeholder: m(a)("permissionSet.form.includedSetsPlaceholder"),
162
- class: "mt-16"
163
- }, null, 8, ["modelValue", "items", "label", "placeholder"]),
164
- f(ke, {
165
- modelValue: c.value,
166
- "onUpdate:modelValue": s[2] || (s[2] = (g) => c.value = g),
167
- "inherit-permissions": y.value,
168
- class: "mt-24"
169
- }, null, 8, ["modelValue", "inherit-permissions"])
170
- ]),
171
- _: 1
172
- }, 512)
173
- ]),
174
- _: 1
175
- }, 8, ["modelValue", "onOn:clickedAway"]);
176
- };
177
- }
178
- }), Ie = { class: "space-y-8" }, Ee = { class: "flex justify-end xs:px-16" }, ze = /* @__PURE__ */ H({
179
- __name: "PermissionSetList",
180
- setup(K, { expose: N }) {
181
- const { t: o } = Q(), { customReportPermissions: a, fetchCustomReportPermissions: u } = se(), B = Y(), k = ue(), { breakpoints: O } = de(), x = p(""), h = b(() => {
182
- var n;
183
- return (n = c.value) == null ? void 0 : n.filter((t) => {
184
- const r = x.value.toLowerCase();
185
- return t.name.toLowerCase().includes(r);
186
- });
187
- }), l = p(), i = Z(), c = b(
188
- () => i.permissionSets.value
189
- ), C = p();
190
- async function U() {
191
- await i.readPermissionSets();
192
- }
193
- function T(n) {
194
- var t;
195
- C.value = n, (t = l.value) == null || t.trigger();
196
- }
197
- const y = [
198
- {
199
- accessorKey: "name",
200
- header: () => o("permissionSet.table.columns.name")
201
- },
202
- {
203
- accessorKey: "permission",
204
- header: () => o("permissionSet.table.columns.permissions"),
205
- enableSorting: !1,
206
- cell(n) {
207
- const t = n.row.original, r = ee(
208
- [t.id],
209
- i.permissionSets.value
210
- ), w = A(r), v = w.length, _ = ye(
211
- w,
212
- a.value
213
- );
214
- return S("div", { class: "flex items-center gap-8" }, [
215
- S("span", o("team.labels.allowed", { count: v })),
216
- S(
217
- J.FmTooltip,
218
- { variant: "plain", placement: "top" },
219
- {
220
- default: () => S(J.FmIcon, {
221
- name: "info",
222
- class: "cursor-pointer text-fm-color-neutral-gray-300"
223
- }),
224
- content: () => S("div", [
225
- o("team.labels.permission"),
226
- ..._.map(
227
- (R, z) => S("div", { key: `${R}-${z}` }, `- ${R}`)
228
- )
229
- ])
230
- }
231
- )
232
- ]);
233
- }
234
- },
235
- {
236
- id: "action",
237
- size: 52,
238
- meta: {
239
- cellClass: "pl-16",
240
- headerContentClass: "-mx-16"
241
- },
242
- cell(n) {
243
- const t = n.row.original;
244
- return S(
245
- "div",
246
- {
247
- class: "flex w-full items-center justify-end",
248
- onClick: (r) => r.stopPropagation()
249
- },
250
- [
251
- S(ve, {
252
- items: [
253
- { label: o("common.update"), onClick: () => T(t) },
254
- {
255
- label: o("common.remove"),
256
- onClick: () => $(t),
257
- itemClass: "text-fm-color-typo-error"
258
- }
259
- ]
260
- })
261
- ]
262
- );
263
- },
264
- enableSorting: !1
265
- }
266
- ];
267
- function q() {
268
- var n;
269
- C.value = void 0, (n = l.value) == null || n.trigger();
270
- }
271
- async function $(n) {
272
- k.open({
273
- title: o("permissionSet.form.delete.title"),
274
- message: o("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
275
- minWidth: O.value.lg ? 588 : 0,
276
- primaryActions: {
277
- text: o("common.remove"),
278
- close: !1,
279
- variant: "destructive"
280
- },
281
- secondaryActions: { text: o("common.cancel"), close: !0 }
282
- }).onPrimary(async () => {
283
- try {
284
- await i.deletePermissionSet(n.id), B.open({
285
- message: o("permissionSet.form.delete.successMessage", { permissionSetName: n.name }),
286
- type: "success"
287
- });
288
- } catch (t) {
289
- const r = t instanceof Fe && t.status === 409 ? t.message.includes("referenced by") ? o("permissionSet.form.delete.setReferencedConflictError", {
290
- permissionSetName: n.name
291
- }) : o("permissionSet.form.delete.conflictError", { permissionSetName: n.name }) : t instanceof Error ? t.message : `${t}`;
292
- B.open({ message: r, type: "error" });
293
- }
294
- k.close();
295
- });
296
- }
297
- return le(() => {
298
- U(), u();
299
- }), N({
300
- create: q
301
- }), (n, t) => {
302
- const r = P("FmSearch"), w = P("FmTable"), v = P("FullWrapper");
303
- return L(), re(me, null, [
304
- f(Re, {
305
- ref_key: "permissionSetFormRef",
306
- ref: l,
307
- "model-value": C.value
308
- }, null, 8, ["model-value"]),
309
- D("div", Ie, [
310
- D("div", Ee, [
311
- f(r, {
312
- modelValue: x.value,
313
- "onUpdate:modelValue": t[0] || (t[0] = (_) => x.value = _),
314
- class: "w-[320px] xs:w-full",
315
- autofocus: "",
316
- placeholder: m(o)("permissionSet.search.placeholder")
317
- }, null, 8, ["modelValue", "placeholder"])
318
- ]),
319
- c.value.length > 0 ? (L(), M(v, {
320
- key: 0,
321
- class: "overflow-auto"
322
- }, {
323
- default: j(() => [
324
- f(w, {
325
- "column-defs": y,
326
- "row-data": h.value,
327
- "page-size": h.value.length,
328
- "pin-header-row": "",
329
- "hide-footer": "",
330
- "shrink-at": !1,
331
- onRowClick: t[1] || (t[1] = (_) => T(_.original))
332
- }, null, 8, ["row-data", "page-size"])
333
- ]),
334
- _: 1
335
- })) : (L(), M(m(pe), {
336
- key: 1,
337
- title: m(o)("permissionSet.noData.title"),
338
- subtitle: m(o)("permissionSet.noData.subtitle")
339
- }, null, 8, ["title", "subtitle"]))
340
- ])
341
- ], 64);
342
- };
343
- }
344
- });
345
- export {
346
- ze as default
347
- };