@feedmepos/mf-hrm-portal 2.3.2-dev.4 → 2.3.2-dev.6
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-BPTnWcra.js → ApprovalCodeList-ix9OeJEQ.js} +7 -7
- package/dist/{AuditLogList-CvEF4bit.js → AuditLogList-D5H_O9Q0.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CPX0sv64.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CuELLYY4.js} +10 -10
- package/dist/{EmployeeList-CANPsrQY.js → EmployeeList-DICzZjVM.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-mdfK9rtZ.js → FormSection.vue_vue_type_script_setup_true_lang-BQzSWAqC.js} +1 -1
- package/dist/{GrantUserList-DPj_6Wsg.js → GrantUserList-DoMN7Eks.js} +8 -8
- package/dist/{Main-Cob4hcf-.js → Main-CHIExpOV.js} +5 -5
- package/dist/{Main-BWRMirTY.js → Main-CQ42sYi9.js} +11 -11
- package/dist/{Main-DXcSgkhR.js → Main-DwYh9cxQ.js} +10 -10
- package/dist/{MyPosProfile-Bp7-pATz.js → MyPosProfile-DaUdREQX.js} +100 -111
- package/dist/{PermissionSetList-DvAW1q0c.js → PermissionSetList-B7WM9N-p.js} +66 -66
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BSVtyLlL.js +4207 -0
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C8hcooKP.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C7fnnbme.js} +1 -1
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-Bq8-aBSv.js → RoleForm.vue_vue_type_script_setup_true_lang-AbQIllkX.js} +30 -30
- package/dist/{RoleList-DsrHgU4s.js → RoleList-vQsHxlNc.js} +96 -105
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CRR18xmB.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-D52LhvGG.js} +1 -1
- package/dist/{ScheduleGeneralPage-C_Kj9wmp.js → ScheduleGeneralPage-BLqh7jH6.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-3oQ6lE86.js → ScheduleModal.vue_vue_type_script_setup_true_lang-C9doSgov.js} +4 -4
- package/dist/{SchedulePage-9dFXxWwZ.js → SchedulePage-YADV_6w9.js} +9 -9
- package/dist/{SchedulePositionPage-Dea5X8Sa.js → SchedulePositionPage-BowDQMG_.js} +3 -3
- package/dist/{SelectFilter-Dr9lB6Ta.js → SelectFilter-CBp1qxLd.js} +2 -3
- package/dist/{TeamMemberList-Bu9QNP9W.js → TeamMemberList-BoJ87moU.js} +184 -184
- package/dist/TimesheetList-BULw75oo.js +401 -0
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DIQ7kjG8.js → TimesheetList.vue_vue_type_style_index_0_scoped_c98b0b84_lang-VlnjH9aQ.js} +3 -3
- package/dist/{app-BHQJX4L4.js → app-DOFDND9j.js} +5454 -4639
- package/dist/app.js +1 -1
- package/dist/{approval-code-w0rZJeYU.js → approval-code-Dgj6S82q.js} +1 -1
- package/dist/{dayjs.min-C4H4diN8.js → dayjs.min-AoirQCgL.js} +16 -16
- package/dist/{employee-BEwUmdt6.js → employee-VB6YmuSS.js} +5 -5
- package/dist/{grant-user-DdxPMH5_.js → grant-user-C-ptrq7l.js} +1 -1
- package/dist/{iteration-DBHifssn.js → iteration-DmuDXP8U.js} +1 -1
- package/dist/{lodash-DqZsWm-0.js → lodash-CBFO-xTu.js} +1 -1
- package/dist/member-grant-CHOB8eQ_.js +54 -0
- package/dist/restaurant-DH2Fxzi7.js +52 -0
- package/dist/role-DUpHwRiY.js +97 -0
- package/dist/rule-aUPH1VOW.js +842 -0
- package/dist/src/api/my-pos-profile/index.d.ts +1 -3
- package/dist/src/helpers/permission-set.d.ts +1 -102
- package/dist/src/helpers/rule.d.ts +2 -2
- package/dist/src/stores/restaurant.d.ts +61 -1
- package/dist/src/types/my-pos-profile.d.ts +2 -3
- package/dist/src/views/audit-log/locales/index.d.ts +12 -0
- package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -4
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BUmFt2dT.js → useAppStore-DwmJbpf-.js} +1 -1
- package/dist/{useLoading-oHRj4RgU.js → useLoading-Dmlm4oSU.js} +1 -1
- package/dist/{useReportPermissions-CpcyfEuV.js → useReportPermissions-XPn-p57R.js} +5 -5
- package/package.json +3 -3
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DmbI5vgH.js +0 -4243
- package/dist/TimesheetList-B98l028z.js +0 -402
- package/dist/member-grant-DOigVnBR.js +0 -55
- package/dist/restaurant-2xCb2x26.js +0 -51
- package/dist/role-C8STcmLJ.js +0 -93
- package/dist/rule-BkL34-Ma.js +0 -788
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as v, computed as h, watch as ue, resolveComponent as b, createBlock as de, openBlock as ee, unref as r, withCtx as C, createVNode as m, createElementVNode as
|
|
1
|
+
import { defineComponent as Z, ref as v, computed as h, watch as ue, resolveComponent as b, createBlock as de, openBlock as ee, unref as r, withCtx as C, createVNode as m, createElementVNode as P, toDisplayString as J, nextTick as pe, onMounted as fe, createElementBlock as ve, Fragment as Se, h as S } from "vue";
|
|
2
2
|
import { useI18n as se, useCoreStore as he } from "@feedmepos/mf-common";
|
|
3
|
-
import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as
|
|
4
|
-
import { v as
|
|
3
|
+
import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as Q } from "@feedmepos/ui-library";
|
|
4
|
+
import { v as X, _ as be, n as _e } from "./app-DOFDND9j.js";
|
|
5
5
|
import { _ as ge } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as ie,
|
|
8
|
-
import { l as
|
|
9
|
-
import { c as Ve } from "./iteration-
|
|
6
|
+
import { _ as ye } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
7
|
+
import { u as ie, y as M, a as ae, p as Y, E as Pe, q as we, P as A, T as xe, F as Fe, I as ke, N as Ce, m as Ie } from "./rule-aUPH1VOW.js";
|
|
8
|
+
import { l as $ } from "./lodash-CBFO-xTu.js";
|
|
9
|
+
import { c as Ve } from "./iteration-DmuDXP8U.js";
|
|
10
10
|
import { u as Re } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
11
|
+
import { u as je } from "./useLoading-Dmlm4oSU.js";
|
|
12
|
+
import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BSVtyLlL.js";
|
|
13
|
+
const $e = { class: "flex w-full items-center justify-between" }, Le = { class: "fm-typo-en-title-md-600" }, Be = { class: "fm-typo-en-title-sm-600 mt-24" }, Te = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
|
|
14
14
|
__name: "PermissionSetForm",
|
|
15
15
|
props: {
|
|
16
16
|
modelValue: {
|
|
@@ -19,45 +19,45 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
setup(K, { expose: D }) {
|
|
22
|
-
const o = K, { t: i } = se(), f = v(!1),
|
|
22
|
+
const o = K, { t: i } = se(), f = v(!1), L = h(() => {
|
|
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 = v(),
|
|
25
|
+
}), I = v(), N = oe(), w = te(), { breakpoints: V } = ne(), R = je(N), l = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), B = [(e) => !!e || i("permissionSet.form.nameRequired")], q = h(() => {
|
|
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
|
+
}), z = h(
|
|
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
|
-
),
|
|
33
|
+
), j = h(
|
|
34
34
|
() => M(a.value, l.permissionSets.value)
|
|
35
35
|
), {
|
|
36
36
|
fetchCustomReportPermissions: n,
|
|
37
37
|
customReportPermissions: t,
|
|
38
38
|
isLoaded: c
|
|
39
39
|
} = ae(), _ = new Set(
|
|
40
|
-
Y.filter((e) => e.subject.startsWith(
|
|
40
|
+
Y.filter((e) => e.subject.startsWith(Pe)).map((e) => e.subject)
|
|
41
41
|
), g = h(() => {
|
|
42
42
|
const e = new Set(_);
|
|
43
43
|
for (const s of t.value) e.add(s.subject);
|
|
44
44
|
return e;
|
|
45
|
-
}),
|
|
45
|
+
}), O = h(() => {
|
|
46
46
|
const e = /* @__PURE__ */ new Set();
|
|
47
47
|
for (const s of Y)
|
|
48
|
-
s.category ===
|
|
48
|
+
s.category === X.reports && e.add(s.subject);
|
|
49
49
|
for (const s of t.value)
|
|
50
|
-
s.category ===
|
|
50
|
+
s.category === X.reports && e.add(s.subject);
|
|
51
51
|
return e;
|
|
52
|
-
}),
|
|
52
|
+
}), y = v({ name: "", permissionSetIds: [], userPermissions: [] });
|
|
53
53
|
async function U() {
|
|
54
54
|
var s, u;
|
|
55
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
|
-
A(
|
|
58
|
+
A(j.value),
|
|
59
59
|
e
|
|
60
|
-
),
|
|
60
|
+
), y.value = {
|
|
61
61
|
name: d.value.name ?? "",
|
|
62
62
|
permissionSetIds: [...a.value],
|
|
63
63
|
userPermissions: Ve(p.value)
|
|
@@ -67,32 +67,32 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
67
67
|
e && await n();
|
|
68
68
|
});
|
|
69
69
|
const W = Re(
|
|
70
|
-
() =>
|
|
70
|
+
() => !$.isEqual(d.value.name ?? "", y.value.name) || !$.isEqual(a.value, y.value.permissionSetIds) || !$.isEqual(p.value, y.value.userPermissions),
|
|
71
71
|
() => {
|
|
72
72
|
f.value = !1;
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
75
|
function re() {
|
|
76
|
-
const e = A(
|
|
76
|
+
const e = A(j.value), s = c.value ? g.value : _, u = xe(p.value, s), x = Fe(u, O.value), F = ke(x);
|
|
77
77
|
return Ce(e, F);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function G(e) {
|
|
80
80
|
return A(
|
|
81
81
|
M(e, l.permissionSets.value)
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
p.value =
|
|
84
|
+
function H(e) {
|
|
85
|
+
p.value = G(e);
|
|
86
86
|
}
|
|
87
87
|
function le(e) {
|
|
88
88
|
const s = [...e ?? []];
|
|
89
|
-
if (
|
|
90
|
-
const u =
|
|
89
|
+
if ($.isEqual(s, a.value)) return;
|
|
90
|
+
const u = !$.isEqual(
|
|
91
91
|
p.value,
|
|
92
|
-
|
|
92
|
+
G(a.value)
|
|
93
93
|
);
|
|
94
94
|
if (a.value = s, !u) {
|
|
95
|
-
|
|
95
|
+
H(s);
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
98
|
w.open({
|
|
@@ -108,16 +108,16 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
108
108
|
close: !0
|
|
109
109
|
}
|
|
110
110
|
}).onPrimary(() => {
|
|
111
|
-
|
|
111
|
+
H(s), w.close();
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
async function me() {
|
|
115
115
|
var u, x;
|
|
116
116
|
const e = await ((u = I.value) == null ? void 0 : u.validateInputsWithoutSubmit()), s = (x = he().currentBusiness.value) == null ? void 0 : x.id;
|
|
117
117
|
!(e != null && e.length) && s && R.minor(async () => {
|
|
118
|
-
var
|
|
118
|
+
var T;
|
|
119
119
|
const F = re();
|
|
120
|
-
if ((
|
|
120
|
+
if ((T = o.modelValue) != null && T.id) {
|
|
121
121
|
const k = {
|
|
122
122
|
name: d.value.name,
|
|
123
123
|
permissions: F,
|
|
@@ -140,17 +140,17 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
140
140
|
return D({
|
|
141
141
|
trigger: U
|
|
142
142
|
}), (e, s) => {
|
|
143
|
-
const u = b("FmIcon"), x = b("FmTextField"), F = b("FmSelect"),
|
|
143
|
+
const u = b("FmIcon"), x = b("FmTextField"), F = b("FmSelect"), T = b("FmForm"), k = b("FmButton"), ce = b("FmSideSheet");
|
|
144
144
|
return ee(), de(ce, {
|
|
145
145
|
modelValue: f.value,
|
|
146
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
146
|
+
"onUpdate:modelValue": s[2] || (s[2] = (E) => f.value = E),
|
|
147
147
|
"max-width": 960,
|
|
148
148
|
"close-button": !1,
|
|
149
149
|
"onOn:clickedAway": r(W)
|
|
150
150
|
}, {
|
|
151
151
|
"side-sheet-header": C(() => [
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
P("div", $e, [
|
|
153
|
+
P("p", Le, J(L.value), 1),
|
|
154
154
|
m(u, {
|
|
155
155
|
name: "close",
|
|
156
156
|
size: "md",
|
|
@@ -160,9 +160,9 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
160
160
|
])
|
|
161
161
|
]),
|
|
162
162
|
"side-sheet-footer": C(() => [
|
|
163
|
-
|
|
163
|
+
P("div", Te, [
|
|
164
164
|
m(k, {
|
|
165
|
-
label:
|
|
165
|
+
label: q.value,
|
|
166
166
|
size: "md",
|
|
167
167
|
variant: "primary",
|
|
168
168
|
type: "submit",
|
|
@@ -177,14 +177,14 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
177
177
|
])
|
|
178
178
|
]),
|
|
179
179
|
default: C(() => [
|
|
180
|
-
m(
|
|
180
|
+
m(T, {
|
|
181
181
|
ref_key: "formRef",
|
|
182
182
|
ref: I
|
|
183
183
|
}, {
|
|
184
184
|
default: C(() => [
|
|
185
185
|
m(x, {
|
|
186
186
|
modelValue: d.value.name,
|
|
187
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
187
|
+
"onUpdate:modelValue": s[0] || (s[0] = (E) => d.value.name = E),
|
|
188
188
|
label: r(i)("permissionSet.form.name"),
|
|
189
189
|
placeholder: r(i)("permissionSet.form.namePlaceholder"),
|
|
190
190
|
rules: B
|
|
@@ -194,17 +194,17 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
194
194
|
multiselect: "",
|
|
195
195
|
searchable: "",
|
|
196
196
|
"search-debounce": 300,
|
|
197
|
-
items:
|
|
197
|
+
items: z.value,
|
|
198
198
|
label: r(i)("permissionSet.form.includedSets"),
|
|
199
199
|
placeholder: r(i)("permissionSet.form.includedSetsPlaceholder"),
|
|
200
200
|
class: "mt-16",
|
|
201
201
|
"onUpdate:modelValue": le
|
|
202
202
|
}, null, 8, ["model-value", "items", "label", "placeholder"]),
|
|
203
|
-
|
|
204
|
-
m(
|
|
203
|
+
P("div", Be, J(r(i)("team.memberForm.permissions.title")), 1),
|
|
204
|
+
m(Ee, {
|
|
205
205
|
modelValue: p.value,
|
|
206
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
207
|
-
"inherit-permissions":
|
|
206
|
+
"onUpdate:modelValue": s[1] || (s[1] = (E) => p.value = E),
|
|
207
|
+
"inherit-permissions": j.value,
|
|
208
208
|
class: "mt-16"
|
|
209
209
|
}, null, 8, ["modelValue", "inherit-permissions"])
|
|
210
210
|
]),
|
|
@@ -215,10 +215,10 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
215
215
|
}, 8, ["modelValue", "onOn:clickedAway"]);
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
}), De = { class: "space-y-8" },
|
|
218
|
+
}), De = { class: "space-y-8" }, Ne = { class: "flex justify-end xs:px-16" }, qe = { class: "flex flex-col h-full overflow-auto" }, Ze = /* @__PURE__ */ Z({
|
|
219
219
|
__name: "PermissionSetList",
|
|
220
220
|
setup(K, { expose: D }) {
|
|
221
|
-
const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(),
|
|
221
|
+
const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), L = oe(), I = te(), { breakpoints: N } = ne(), w = v(""), V = h(() => {
|
|
222
222
|
var n;
|
|
223
223
|
return (n = d.value) == null ? void 0 : n.filter((t) => {
|
|
224
224
|
const c = w.value.toLowerCase();
|
|
@@ -234,7 +234,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
234
234
|
var t;
|
|
235
235
|
a.value = n, (t = R.value) == null || t.trigger();
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const q = [
|
|
238
238
|
{
|
|
239
239
|
accessorKey: "name",
|
|
240
240
|
header: () => o("permissionSet.table.columns.name")
|
|
@@ -247,24 +247,24 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
247
247
|
const t = n.row.original, c = M(
|
|
248
248
|
[t.id],
|
|
249
249
|
l.permissionSets.value
|
|
250
|
-
), _ = A(c), g = _.length,
|
|
250
|
+
), _ = A(c), g = _.length, O = Ie(
|
|
251
251
|
_,
|
|
252
252
|
i.value
|
|
253
253
|
);
|
|
254
254
|
return S("div", { class: "flex items-center gap-8" }, [
|
|
255
255
|
S("span", o("team.labels.allowed", { count: g })),
|
|
256
256
|
S(
|
|
257
|
-
|
|
257
|
+
Q.FmTooltip,
|
|
258
258
|
{ variant: "plain", placement: "top" },
|
|
259
259
|
{
|
|
260
|
-
default: () => S(
|
|
260
|
+
default: () => S(Q.FmIcon, {
|
|
261
261
|
name: "info",
|
|
262
262
|
class: "cursor-pointer text-fm-color-neutral-gray-300"
|
|
263
263
|
}),
|
|
264
264
|
content: () => S("div", [
|
|
265
265
|
o("team.labels.permission"),
|
|
266
|
-
...
|
|
267
|
-
(
|
|
266
|
+
...O.map(
|
|
267
|
+
(y, U) => S("div", { key: `${y}-${U}` }, `- ${y}`)
|
|
268
268
|
)
|
|
269
269
|
])
|
|
270
270
|
}
|
|
@@ -288,12 +288,12 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
288
288
|
onClick: (c) => c.stopPropagation()
|
|
289
289
|
},
|
|
290
290
|
[
|
|
291
|
-
S(
|
|
291
|
+
S(ye, {
|
|
292
292
|
items: [
|
|
293
293
|
{ label: o("common.update"), onClick: () => B(t) },
|
|
294
294
|
{
|
|
295
295
|
label: o("common.remove"),
|
|
296
|
-
onClick: () =>
|
|
296
|
+
onClick: () => j(t),
|
|
297
297
|
itemClass: "text-fm-color-typo-error"
|
|
298
298
|
}
|
|
299
299
|
]
|
|
@@ -304,15 +304,15 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
304
304
|
enableSorting: !1
|
|
305
305
|
}
|
|
306
306
|
];
|
|
307
|
-
function
|
|
307
|
+
function z() {
|
|
308
308
|
var n;
|
|
309
309
|
a.value = void 0, (n = R.value) == null || n.trigger();
|
|
310
310
|
}
|
|
311
|
-
async function
|
|
311
|
+
async function j(n) {
|
|
312
312
|
I.open({
|
|
313
313
|
title: o("permissionSet.form.delete.title"),
|
|
314
314
|
message: o("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
|
|
315
|
-
minWidth:
|
|
315
|
+
minWidth: N.value.lg ? 588 : 0,
|
|
316
316
|
primaryActions: {
|
|
317
317
|
text: o("common.remove"),
|
|
318
318
|
close: !1,
|
|
@@ -321,7 +321,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
321
321
|
secondaryActions: { text: o("common.cancel"), close: !0 }
|
|
322
322
|
}).onPrimary(async () => {
|
|
323
323
|
try {
|
|
324
|
-
await l.deletePermissionSet(n.id),
|
|
324
|
+
await l.deletePermissionSet(n.id), L.open({
|
|
325
325
|
message: o("permissionSet.form.delete.successMessage", { permissionSetName: n.name }),
|
|
326
326
|
type: "success"
|
|
327
327
|
});
|
|
@@ -329,7 +329,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
329
329
|
const c = t instanceof _e && t.status === 409 ? t.message.includes("referenced by") ? o("permissionSet.form.delete.setReferencedConflictError", {
|
|
330
330
|
permissionSetName: n.name
|
|
331
331
|
}) : o("permissionSet.form.delete.conflictError", { permissionSetName: n.name }) : t instanceof Error ? t.message : `${t}`;
|
|
332
|
-
|
|
332
|
+
L.open({ message: c, type: "error" });
|
|
333
333
|
}
|
|
334
334
|
I.close();
|
|
335
335
|
});
|
|
@@ -337,7 +337,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
337
337
|
return fe(() => {
|
|
338
338
|
p(), f();
|
|
339
339
|
}), D({
|
|
340
|
-
create:
|
|
340
|
+
create: z
|
|
341
341
|
}), (n, t) => {
|
|
342
342
|
const c = b("FmSearch"), _ = b("FmTable");
|
|
343
343
|
return ee(), ve(Se, null, [
|
|
@@ -346,8 +346,8 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
346
346
|
ref: R,
|
|
347
347
|
"model-value": a.value
|
|
348
348
|
}, null, 8, ["model-value"]),
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
P("div", De, [
|
|
350
|
+
P("div", Ne, [
|
|
351
351
|
m(c, {
|
|
352
352
|
modelValue: w.value,
|
|
353
353
|
"onUpdate:modelValue": t[0] || (t[0] = (g) => w.value = g),
|
|
@@ -358,7 +358,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
358
358
|
]),
|
|
359
359
|
m(be, null, {
|
|
360
360
|
default: C(() => [
|
|
361
|
-
|
|
361
|
+
P("div", qe, [
|
|
362
362
|
m(ge, {
|
|
363
363
|
"is-loading": r(l).isLoading.value,
|
|
364
364
|
"is-empty": V.value.length === 0,
|
|
@@ -368,7 +368,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
368
368
|
}, {
|
|
369
369
|
default: C(() => [
|
|
370
370
|
m(_, {
|
|
371
|
-
"column-defs":
|
|
371
|
+
"column-defs": q,
|
|
372
372
|
"row-data": V.value,
|
|
373
373
|
"page-size": V.value.length,
|
|
374
374
|
loading: r(l).isLoading.value,
|