@feedmepos/mf-hrm-portal 2.0.18 → 2.0.19
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-CfvB_c7-.js → AuditLogList-Bw3sRBhW.js} +4 -4
- package/dist/{EmployeeList-Whx8sBTA.js → EmployeeList-C4tVWPJE.js} +5 -5
- package/dist/{Main-CoGNATjU.js → Main-BC20s7cs.js} +4 -4
- package/dist/{Main-D2LWkcaI.js → Main-BPM7QyFL.js} +9 -9
- package/dist/{Main-C_Tm3462.js → Main-eN8MDWpv.js} +5 -5
- package/dist/{PermissionSetList-RYl82f1k.js → PermissionSetList-CPSRrCsu.js} +48 -48
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BiImcVpI.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXt721Zo.js} +860 -860
- package/dist/{RoleList-D0KdTM9G.js → RoleList-tRu19xyl.js} +7 -7
- package/dist/TeamMemberList-CvitYIKw.js +1114 -0
- package/dist/TeamMemberList.vue_vue_type_style_index_0_scoped_473cbd86_lang-BDjrD45a.js +34 -0
- package/dist/{TimesheetList-BzYGHK7n.js → TimesheetList-CdWXksIf.js} +6 -6
- package/dist/{app-BMnTcaqa.js → app-D6OxaCEx.js} +850 -850
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CTzjqhN9.js → dayjs.min-C0I-OiL6.js} +1 -1
- package/dist/{employee-DeAtPDRi.js → employee-yT17VCCS.js} +3 -3
- package/dist/{iteration-L53uoXdY.js → iteration-CcZFMm5X.js} +388 -387
- package/dist/{lodash-t9DlqugD.js → lodash-CW7MBjcM.js} +1 -1
- package/dist/{rule-BCN5fKAA.js → rule-6Lg9M_3I.js} +2 -2
- package/dist/src/api/account/index.d.ts +4 -0
- package/dist/src/api/index.d.ts +1 -0
- package/dist/src/composables/useSupportedCountries.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/{timesheet-D41pctAm.js → timesheet-CaSIm-Rv.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-fl7zMdUR.js → useAppStore-CONZvtGc.js} +1 -1
- package/dist/{useLoading-BbpH9pow.js → useLoading-cnpr1-pP.js} +1 -1
- package/dist/{useReportPermissions-qEea7Dnt.js → useReportPermissions-CNr0AdOf.js} +3 -3
- package/package.json +2 -2
- package/dist/TeamMemberList-DDBFCFlj.js +0 -1108
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as Ee, ref as p, computed as L, onMounted as ft, onBeforeUnmount as vt, watch as Q, resolveComponent as E, createElementBlock as y, openBlock as m, createBlock as oe, createCommentVNode as V, createElementVNode as l, Fragment as ee, renderList as se, withCtx as Y, createVNode as u, toDisplayString as i, unref as n, nextTick as pt } from "vue";
|
|
2
|
-
import { d as _ } from "./dayjs.min-
|
|
2
|
+
import { d as _ } from "./dayjs.min-C0I-OiL6.js";
|
|
3
3
|
import { useI18n as Ae, useCoreStore as bt } from "@feedmepos/mf-common";
|
|
4
|
-
import { G as Oe, _ as gt } from "./app-
|
|
4
|
+
import { G as Oe, _ as gt } from "./app-D6OxaCEx.js";
|
|
5
5
|
import { components as Ve } from "@feedmepos/ui-library";
|
|
6
|
-
import { g as ht, b as yt } from "./iteration-
|
|
6
|
+
import { g as ht, b as yt } from "./iteration-CcZFMm5X.js";
|
|
7
7
|
import { S as ce } from "./SelectFilter-DUj7GBtT.js";
|
|
8
8
|
import { _ as _t } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
9
9
|
import { _ as xt } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
10
|
-
import { t as Lt, p as Pe } from "./rule-
|
|
10
|
+
import { t as Lt, p as Pe } from "./rule-6Lg9M_3I.js";
|
|
11
11
|
import { defineStore as St } from "pinia";
|
|
12
12
|
const ge = [
|
|
13
13
|
{ key: "all", label: "All", subjectPrefixes: [] },
|
|
@@ -2,17 +2,17 @@ import { toRaw as De, defineComponent as Ie, ref as p, computed as w, watch as l
|
|
|
2
2
|
import { useCoreStore as Re, useI18n as Ce, RestaurantSelector as Ve } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Me, components as Le, useDialog as Ke, useBreakpoints as Ge, FmButtonVariant as je } from "@feedmepos/ui-library";
|
|
4
4
|
import { S as we, _ as We } from "./SelectFilter-DUj7GBtT.js";
|
|
5
|
-
import { _ as qe, a as He } from "./app-
|
|
5
|
+
import { _ as qe, a as He } from "./app-D6OxaCEx.js";
|
|
6
6
|
import { H as Je } from "./HorizontalSplitter-o860F4xM.js";
|
|
7
7
|
import { _ as Qe } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
8
8
|
import { u as Pe } from "./useSearch-B6WK1LBB.js";
|
|
9
9
|
import { u as Ye } from "./useDebounce-B8ZPVS5C.js";
|
|
10
|
-
import { u as $e, E as Ze } from "./employee-
|
|
11
|
-
import { l as Xe } from "./lodash-
|
|
10
|
+
import { u as $e, E as Ze } from "./employee-yT17VCCS.js";
|
|
11
|
+
import { l as Xe } from "./lodash-CW7MBjcM.js";
|
|
12
12
|
import { _ as Fe, a as Ee } from "./FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js";
|
|
13
13
|
import { u as ea } from "./useDiscardConfirm-BHni0LNu.js";
|
|
14
|
-
import { u as Ne } from "./useLoading-
|
|
15
|
-
import { u as be } from "./useAppStore-
|
|
14
|
+
import { u as Ne } from "./useLoading-cnpr1-pP.js";
|
|
15
|
+
import { u as be } from "./useAppStore-CONZvtGc.js";
|
|
16
16
|
/* empty css */
|
|
17
17
|
function xe(P) {
|
|
18
18
|
return JSON.parse(JSON.stringify(P));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref as S, defineComponent as J, computed as F, watch as ce, resolveComponent as h, createElementBlock as D, openBlock as I, Fragment as W, renderSlot as ge, createVNode as n, unref as s, withCtx as x, createElementVNode as l, toDisplayString as k, createBlock as K, isRef as ae, renderList as fe, createCommentVNode as ve, withModifiers as se, createTextVNode as re, normalizeClass as _e, h as _ } from "vue";
|
|
2
2
|
import { useCoreStore as Q, useI18n as X, RestaurantSelector as oe } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as ye } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
4
|
-
import { u as Y } from "./useAppStore-
|
|
4
|
+
import { u as Y } from "./useAppStore-CONZvtGc.js";
|
|
5
5
|
import { defineStore as Ue } from "pinia";
|
|
6
|
-
import { g as z, a as he, b as O } from "./iteration-
|
|
6
|
+
import { g as z, a as he, b as O } from "./iteration-CcZFMm5X.js";
|
|
7
7
|
import { useSnackbar as ie, components as E, useDialog as xe, useBreakpoints as be, FmButtonVariant as q } from "@feedmepos/ui-library";
|
|
8
8
|
import { S as ne } from "./SelectFilter-DUj7GBtT.js";
|
|
9
|
-
import { _ as we } from "./app-
|
|
9
|
+
import { _ as we } from "./app-D6OxaCEx.js";
|
|
10
10
|
import { H as ke } from "./HorizontalSplitter-o860F4xM.js";
|
|
11
11
|
import { _ as Ve } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
12
12
|
import { u as Fe } from "./useSearch-B6WK1LBB.js";
|
|
13
|
-
import { u as ue } from "./useLoading-
|
|
13
|
+
import { u as ue } from "./useLoading-cnpr1-pP.js";
|
|
14
14
|
import { _ as Ie, a as le } from "./FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js";
|
|
15
15
|
const H = {
|
|
16
16
|
async getGrantUsers() {
|
|
@@ -3,18 +3,18 @@ import { useRouter as lf, useRoute as of } from "vue-router";
|
|
|
3
3
|
import { useCoreStore as cf, useI18n as hf } from "@feedmepos/mf-common";
|
|
4
4
|
import { _ as uf } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
5
|
import { _ as vf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
|
-
import { u as pf } from "./useAppStore-
|
|
6
|
+
import { u as pf } from "./useAppStore-CONZvtGc.js";
|
|
7
7
|
import "@feedmepos/ui-library";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import "./employee-
|
|
10
|
-
import "./lodash-
|
|
11
|
-
import "./iteration-
|
|
9
|
+
import "./employee-yT17VCCS.js";
|
|
10
|
+
import "./lodash-CW7MBjcM.js";
|
|
11
|
+
import "./iteration-CcZFMm5X.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { R as vt } from "./app-
|
|
14
|
-
import "./rule-
|
|
15
|
-
import "./useReportPermissions-
|
|
16
|
-
import "./dayjs.min-
|
|
17
|
-
import "./timesheet-
|
|
13
|
+
import { R as vt } from "./app-D6OxaCEx.js";
|
|
14
|
+
import "./rule-6Lg9M_3I.js";
|
|
15
|
+
import "./useReportPermissions-CNr0AdOf.js";
|
|
16
|
+
import "./dayjs.min-C0I-OiL6.js";
|
|
17
|
+
import "./timesheet-CaSIm-Rv.js";
|
|
18
18
|
var In = {};
|
|
19
19
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
20
20
|
var Zt = {};
|
|
@@ -4,12 +4,12 @@ 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 "./rule-
|
|
8
|
-
import "./iteration-
|
|
9
|
-
import { R as v } from "./app-
|
|
10
|
-
import "./useAppStore-
|
|
7
|
+
import "./rule-6Lg9M_3I.js";
|
|
8
|
+
import "./iteration-CcZFMm5X.js";
|
|
9
|
+
import { R as v } from "./app-D6OxaCEx.js";
|
|
10
|
+
import "./useAppStore-CONZvtGc.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
|
|
12
|
+
import "./TeamMemberList.vue_vue_type_style_index_0_scoped_473cbd86_lang-BDjrD45a.js";
|
|
13
13
|
const w = { class: "space-y-24" }, K = /* @__PURE__ */ V({
|
|
14
14
|
__name: "Main",
|
|
15
15
|
setup(x) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as M, computed as S, resolveComponent as d, createElementBlock as $, openBlock as
|
|
1
|
+
import { defineComponent as M, computed as S, resolveComponent as d, createElementBlock as $, openBlock as P, createElementVNode as x, createVNode as m, toDisplayString as L, unref as c, withCtx as h, createTextVNode as oe, Fragment as H, renderList as ne, ref as _, watch as ae, createBlock as q, nextTick as ie, onMounted as re, h as z } from "vue";
|
|
2
2
|
import { useI18n as K, useCoreStore as le } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Q, useDialog as me, useBreakpoints as ce, components as ue, FmButtonColorThemeVariant as de, FmButtonVariant as pe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as fe } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
5
|
-
import { d as G, q as ve, u as Y, c as Z, p as J, i as Se, b as be, m as N, k as _e, l as
|
|
6
|
-
import { A as ye } from "./iteration-
|
|
7
|
-
import { u as Fe } from "./useLoading-
|
|
8
|
-
import {
|
|
9
|
-
import { a as Ve } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { d as G, q as ve, u as Y, c as Z, p as J, i as Se, b as be, m as N, k as _e, l as ge, s as he, n as Pe } from "./rule-6Lg9M_3I.js";
|
|
6
|
+
import { A as ye } from "./iteration-CcZFMm5X.js";
|
|
7
|
+
import { u as Fe } from "./useLoading-cnpr1-pP.js";
|
|
8
|
+
import { b as X } from "./app-D6OxaCEx.js";
|
|
9
|
+
import { a as Ve } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXt721Zo.js";
|
|
10
10
|
const we = { class: "flex flex-row items-center gap-8" }, xe = /* @__PURE__ */ M({
|
|
11
11
|
__name: "PermissionWithTooltip",
|
|
12
12
|
props: {
|
|
@@ -16,25 +16,25 @@ const we = { class: "flex flex-row items-center gap-8" }, xe = /* @__PURE__ */ M
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
setup(E) {
|
|
19
|
-
const { customReportPermissions: R } = G(), t = E,
|
|
19
|
+
const { customReportPermissions: R } = G(), t = E, a = S(() => ve(t.modelValue, R.value)), { t: i } = K();
|
|
20
20
|
return (k, C) => {
|
|
21
|
-
const
|
|
22
|
-
return
|
|
23
|
-
x("span", null, L(c(
|
|
21
|
+
const g = d("FmIcon"), y = d("FmTooltip");
|
|
22
|
+
return P(), $("div", we, [
|
|
23
|
+
x("span", null, L(c(i)("team.labels.allowed", { count: a.value.length })), 1),
|
|
24
24
|
m(y, {
|
|
25
25
|
variant: "plain",
|
|
26
26
|
placement: "top"
|
|
27
27
|
}, {
|
|
28
|
-
content:
|
|
28
|
+
content: h(() => [
|
|
29
29
|
x("div", null, [
|
|
30
|
-
oe(L(c(
|
|
31
|
-
(
|
|
30
|
+
oe(L(c(i)("team.labels.permission")) + " ", 1),
|
|
31
|
+
(P(!0), $(H, null, ne(a.value, (l, r) => (P(), $("div", {
|
|
32
32
|
key: `${l}-${r}`
|
|
33
33
|
}, " - " + L(l), 1))), 128))
|
|
34
34
|
])
|
|
35
35
|
]),
|
|
36
|
-
default:
|
|
37
|
-
m(
|
|
36
|
+
default: h(() => [
|
|
37
|
+
m(g, {
|
|
38
38
|
name: "info",
|
|
39
39
|
class: "cursor-pointer text-fm-color-neutral-gray-300"
|
|
40
40
|
})
|
|
@@ -53,12 +53,12 @@ const we = { class: "flex flex-row items-center gap-8" }, xe = /* @__PURE__ */ M
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
setup(E, { expose: R }) {
|
|
56
|
-
const t = E, { t:
|
|
56
|
+
const t = E, { t: a } = K(), i = _(!1), k = S(() => {
|
|
57
57
|
var e;
|
|
58
|
-
return (e = t.modelValue) != null && e.id ?
|
|
59
|
-
}), C = _(),
|
|
58
|
+
return (e = t.modelValue) != null && e.id ? a("permissionSet.form.update.title") : a("permissionSet.form.create.title");
|
|
59
|
+
}), C = _(), g = Q(), y = Fe(g), l = Y(), r = _({ ...t.modelValue }), p = _([]), f = _([]), A = [(e) => !!e || a("permissionSet.form.nameRequired")], D = S(() => {
|
|
60
60
|
var e;
|
|
61
|
-
return (e = t.modelValue) != null && e.id ?
|
|
61
|
+
return (e = t.modelValue) != null && e.id ? a("permissionSet.form.update.confirmButtonLabel") : a("permissionSet.form.create.confirmButtonLabel");
|
|
62
62
|
}), U = S(
|
|
63
63
|
() => l.permissionSets.value.filter((e) => {
|
|
64
64
|
var s;
|
|
@@ -86,19 +86,19 @@ const we = { class: "flex flex-row items-center gap-8" }, xe = /* @__PURE__ */ M
|
|
|
86
86
|
});
|
|
87
87
|
async function T() {
|
|
88
88
|
var s, v;
|
|
89
|
-
await
|
|
89
|
+
await ie(), i.value = !i.value, r.value = { ...t.modelValue }, p.value = ((s = t.modelValue) == null ? void 0 : s.permissionSetIds) ?? [];
|
|
90
90
|
const e = ((v = t.modelValue) == null ? void 0 : v.permissions) ?? [];
|
|
91
91
|
f.value = be(
|
|
92
92
|
N(F.value),
|
|
93
93
|
e
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
|
-
|
|
96
|
+
ae(i, async (e) => {
|
|
97
97
|
e && await W();
|
|
98
98
|
});
|
|
99
99
|
function ee() {
|
|
100
|
-
const e = N(F.value), s = o.value ? I.value : u, v = _e(f.value, s), V =
|
|
101
|
-
return
|
|
100
|
+
const e = N(F.value), s = o.value ? I.value : u, v = _e(f.value, s), V = ge(v, O.value), w = he(V);
|
|
101
|
+
return Pe(e, w);
|
|
102
102
|
}
|
|
103
103
|
function se() {
|
|
104
104
|
f.value = N(F.value);
|
|
@@ -126,23 +126,23 @@ const we = { class: "flex flex-row items-center gap-8" }, xe = /* @__PURE__ */ M
|
|
|
126
126
|
};
|
|
127
127
|
await l.createPermissionSet(B);
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
i.value = !1;
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
return R({
|
|
133
133
|
trigger: T
|
|
134
134
|
}), (e, s) => {
|
|
135
135
|
const v = d("FmTextField"), V = d("FmSelect"), w = d("FmForm"), j = d("FmButton"), B = d("FmSideSheet");
|
|
136
|
-
return
|
|
137
|
-
modelValue:
|
|
138
|
-
"onUpdate:modelValue": s[4] || (s[4] = (b) =>
|
|
136
|
+
return P(), q(B, {
|
|
137
|
+
modelValue: i.value,
|
|
138
|
+
"onUpdate:modelValue": s[4] || (s[4] = (b) => i.value = b),
|
|
139
139
|
"max-width": 560,
|
|
140
140
|
"dismiss-away": ""
|
|
141
141
|
}, {
|
|
142
|
-
"side-sheet-header":
|
|
142
|
+
"side-sheet-header": h(() => [
|
|
143
143
|
x("p", Re, L(k.value), 1)
|
|
144
144
|
]),
|
|
145
|
-
"side-sheet-footer":
|
|
145
|
+
"side-sheet-footer": h(() => [
|
|
146
146
|
x("div", ke, [
|
|
147
147
|
m(j, {
|
|
148
148
|
label: D.value,
|
|
@@ -152,24 +152,24 @@ const we = { class: "flex flex-row items-center gap-8" }, xe = /* @__PURE__ */ M
|
|
|
152
152
|
onClick: te
|
|
153
153
|
}, null, 8, ["label"]),
|
|
154
154
|
m(j, {
|
|
155
|
-
label: c(
|
|
155
|
+
label: c(a)("common.cancel"),
|
|
156
156
|
size: "md",
|
|
157
157
|
variant: "secondary",
|
|
158
|
-
onClick: s[3] || (s[3] = (b) =>
|
|
158
|
+
onClick: s[3] || (s[3] = (b) => i.value = !1)
|
|
159
159
|
}, null, 8, ["label"])
|
|
160
160
|
])
|
|
161
161
|
]),
|
|
162
|
-
default:
|
|
162
|
+
default: h(() => [
|
|
163
163
|
m(w, {
|
|
164
164
|
ref_key: "formRef",
|
|
165
165
|
ref: C
|
|
166
166
|
}, {
|
|
167
|
-
default:
|
|
167
|
+
default: h(() => [
|
|
168
168
|
m(v, {
|
|
169
169
|
modelValue: r.value.name,
|
|
170
170
|
"onUpdate:modelValue": s[0] || (s[0] = (b) => r.value.name = b),
|
|
171
|
-
label: c(
|
|
172
|
-
placeholder: c(
|
|
171
|
+
label: c(a)("permissionSet.form.name"),
|
|
172
|
+
placeholder: c(a)("permissionSet.form.namePlaceholder"),
|
|
173
173
|
rules: A
|
|
174
174
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
175
175
|
m(V, {
|
|
@@ -182,8 +182,8 @@ const we = { class: "flex flex-row items-center gap-8" }, xe = /* @__PURE__ */ M
|
|
|
182
182
|
searchable: "",
|
|
183
183
|
"search-debounce": 300,
|
|
184
184
|
items: U.value,
|
|
185
|
-
label: c(
|
|
186
|
-
placeholder: c(
|
|
185
|
+
label: c(a)("permissionSet.form.includedSets"),
|
|
186
|
+
placeholder: c(a)("permissionSet.form.includedSetsPlaceholder"),
|
|
187
187
|
class: "mt-16"
|
|
188
188
|
}, null, 8, ["modelValue", "items", "label", "placeholder"]),
|
|
189
189
|
m(Ve, {
|
|
@@ -203,10 +203,10 @@ const we = { class: "flex flex-row items-center gap-8" }, xe = /* @__PURE__ */ M
|
|
|
203
203
|
}), Ie = { class: "space-y-8" }, Te = { class: "flex justify-end xs:px-16" }, We = /* @__PURE__ */ M({
|
|
204
204
|
__name: "PermissionSetList",
|
|
205
205
|
setup(E, { expose: R }) {
|
|
206
|
-
const { t } = K(), { fetchCustomReportPermissions:
|
|
206
|
+
const { t } = K(), { fetchCustomReportPermissions: a } = G(), i = Q(), k = me(), { breakpoints: C } = ce(), g = _(""), y = S(() => {
|
|
207
207
|
var n;
|
|
208
208
|
return (n = p.value) == null ? void 0 : n.filter((o) => {
|
|
209
|
-
const u =
|
|
209
|
+
const u = g.value.toLowerCase();
|
|
210
210
|
return o.name.toLowerCase().includes(u);
|
|
211
211
|
});
|
|
212
212
|
}), l = _(), r = Y(), p = S(
|
|
@@ -275,7 +275,7 @@ const we = { class: "flex flex-row items-center gap-8" }, xe = /* @__PURE__ */ M
|
|
|
275
275
|
secondaryActions: { text: t("common.cancel"), close: !0 }
|
|
276
276
|
}).onPrimary(async () => {
|
|
277
277
|
try {
|
|
278
|
-
await r.deletePermissionSet(n.id),
|
|
278
|
+
await r.deletePermissionSet(n.id), i.open({
|
|
279
279
|
message: t("permissionSet.form.delete.successMessage", { permissionSetName: n.name }),
|
|
280
280
|
type: "success"
|
|
281
281
|
});
|
|
@@ -283,18 +283,18 @@ const we = { class: "flex flex-row items-center gap-8" }, xe = /* @__PURE__ */ M
|
|
|
283
283
|
const u = o instanceof ye && o.status === 409 ? o.message.includes("referenced by") ? t("permissionSet.form.delete.setReferencedConflictError", {
|
|
284
284
|
permissionSetName: n.name
|
|
285
285
|
}) : t("permissionSet.form.delete.conflictError", { permissionSetName: n.name }) : o instanceof Error ? o.message : `${o}`;
|
|
286
|
-
|
|
286
|
+
i.open({ message: u, type: "error" });
|
|
287
287
|
}
|
|
288
288
|
k.close();
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
return re(() => {
|
|
292
|
-
A(),
|
|
292
|
+
A(), a();
|
|
293
293
|
}), R({
|
|
294
294
|
create: F
|
|
295
295
|
}), (n, o) => {
|
|
296
296
|
const u = d("FmSearch"), I = d("FmTable"), O = d("FullWrapper");
|
|
297
|
-
return
|
|
297
|
+
return P(), $(H, null, [
|
|
298
298
|
m(Ce, {
|
|
299
299
|
ref_key: "permissionSetFormRef",
|
|
300
300
|
ref: l,
|
|
@@ -303,18 +303,18 @@ const we = { class: "flex flex-row items-center gap-8" }, xe = /* @__PURE__ */ M
|
|
|
303
303
|
x("div", Ie, [
|
|
304
304
|
x("div", Te, [
|
|
305
305
|
m(u, {
|
|
306
|
-
modelValue:
|
|
307
|
-
"onUpdate:modelValue": o[0] || (o[0] = (T) =>
|
|
306
|
+
modelValue: g.value,
|
|
307
|
+
"onUpdate:modelValue": o[0] || (o[0] = (T) => g.value = T),
|
|
308
308
|
class: "w-[320px] xs:w-full",
|
|
309
309
|
autofocus: "",
|
|
310
310
|
placeholder: c(t)("permissionSet.search.placeholder")
|
|
311
311
|
}, null, 8, ["modelValue", "placeholder"])
|
|
312
312
|
]),
|
|
313
|
-
p.value.length > 0 ? (
|
|
313
|
+
p.value.length > 0 ? (P(), q(O, {
|
|
314
314
|
key: 0,
|
|
315
315
|
class: "overflow-auto"
|
|
316
316
|
}, {
|
|
317
|
-
default:
|
|
317
|
+
default: h(() => [
|
|
318
318
|
m(I, {
|
|
319
319
|
"column-defs": U,
|
|
320
320
|
"row-data": y.value,
|
|
@@ -326,7 +326,7 @@ const we = { class: "flex flex-row items-center gap-8" }, xe = /* @__PURE__ */ M
|
|
|
326
326
|
}, null, 8, ["row-data", "page-size"])
|
|
327
327
|
]),
|
|
328
328
|
_: 1
|
|
329
|
-
})) : (
|
|
329
|
+
})) : (P(), q(c(fe), {
|
|
330
330
|
key: 1,
|
|
331
331
|
title: c(t)("permissionSet.noData.title"),
|
|
332
332
|
subtitle: c(t)("permissionSet.noData.subtitle")
|