@archbase/security-ui 3.0.25 → 4.0.1
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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +671 -656
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Modal as
|
|
2
|
-
import { useFocusTrap as
|
|
3
|
-
import { getI18nextInstance as
|
|
4
|
-
import { ArchbaseEdit as re, ArchbaseNotifications as Y, ArchbasePasswordEdit as
|
|
5
|
-
import { useArchbaseV1V2Compatibility as le, useArchbaseDataSourceListener as
|
|
6
|
-
import { useState as
|
|
7
|
-
import { IconArrowRight as
|
|
8
|
-
import { UserGroupDto as
|
|
9
|
-
import { DateTimePicker as
|
|
10
|
-
import { ArchbaseSpaceFixed as
|
|
11
|
-
var
|
|
1
|
+
import { Modal as ke, ScrollArea as Re, Stack as ne, Grid as T, Group as G, Button as U, Paper as X, Box as Qe, Text as H, List as Fe, Checkbox as Ye, Tooltip as ie, ActionIcon as B, Flex as oe, Space as lr, Input as pe, useTree as Xe, useMantineColorScheme as Oe, TextInput as Ke, Tree as _e, Badge as Ae, Tabs as de, RingProgress as Or } from "@mantine/core";
|
|
2
|
+
import { useFocusTrap as Pe, useDebouncedValue as er } from "@mantine/hooks";
|
|
3
|
+
import { getI18nextInstance as a, ARCHBASE_IOC_API_TYPE as K, emit as ze, builder as we, convertDateToISOString as Br, processErrorMessage as Te, getKeyByEnumValue as ue, useArchbaseTheme as cr, useArchbaseValidator as Wr, useArchbaseTranslation as qr, processDetailErrorMessage as Ie } from "@archbase/core";
|
|
4
|
+
import { ArchbaseEdit as re, ArchbaseNotifications as Y, ArchbasePasswordEdit as Hr, ArchbaseSelect as Jr, ArchbaseCheckbox as xe, ArchbaseAvatarEdit as Zr, ArchbaseAsyncSelect as Qr, Columns as be, ArchbaseDataGridColumn as b, ArchbaseDataGrid as je, ArchbaseDialog as _ } from "@archbase/components";
|
|
5
|
+
import { useArchbaseV1V2Compatibility as le, useArchbaseDataSourceListener as rr, useArchbaseRemoteServiceApi as ee, useArchbaseRemoteDataSource as se, ArchbaseDataSource as Yr, useArchbaseStore as dr, useArchbaseDataSource as Xr } from "@archbase/data";
|
|
6
|
+
import { useState as M, useCallback as ge, useEffect as Ee, forwardRef as Kr, useMemo as me, useRef as ye } from "react";
|
|
7
|
+
import { IconArrowRight as ur, IconArrowLeft as hr, IconChevronDown as tr, IconBorderCornerSquare as ar, IconEye as Ve, IconEdit as fe, IconTrashX as Ce, IconShieldCheckered as Le, IconPlus as De } from "@tabler/icons-react";
|
|
8
|
+
import { UserGroupDto as or, SecurityType as F, UserDto as _r, GroupDto as et, ProfileDto as rt, ApiTokenDto as tt } from "@archbase/security";
|
|
9
|
+
import { DateTimePicker as at } from "@mantine/dates";
|
|
10
|
+
import { ArchbaseSpaceFixed as ot, ArchbaseSpaceFill as st, ArchbaseSpaceBottom as nt } from "@archbase/layout";
|
|
11
|
+
var Ue = { exports: {} }, ve = {};
|
|
12
12
|
/**
|
|
13
13
|
* @license React
|
|
14
14
|
* react-jsx-runtime.production.js
|
|
@@ -18,60 +18,60 @@ var Le = { exports: {} }, Se = {};
|
|
|
18
18
|
* This source code is licensed under the MIT license found in the
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
20
|
*/
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
if (
|
|
24
|
-
return
|
|
25
|
-
|
|
21
|
+
var sr;
|
|
22
|
+
function it() {
|
|
23
|
+
if (sr)
|
|
24
|
+
return ve;
|
|
25
|
+
sr = 1;
|
|
26
26
|
var r = Symbol.for("react.transitional.element"), c = Symbol.for("react.fragment");
|
|
27
|
-
function
|
|
27
|
+
function j(C, o, p) {
|
|
28
28
|
var u = null;
|
|
29
|
-
if (
|
|
30
|
-
|
|
31
|
-
for (var
|
|
32
|
-
|
|
29
|
+
if (p !== void 0 && (u = "" + p), o.key !== void 0 && (u = "" + o.key), "key" in o) {
|
|
30
|
+
p = {};
|
|
31
|
+
for (var v in o)
|
|
32
|
+
v !== "key" && (p[v] = o[v]);
|
|
33
33
|
} else
|
|
34
|
-
|
|
35
|
-
return
|
|
34
|
+
p = o;
|
|
35
|
+
return o = p.ref, {
|
|
36
36
|
$$typeof: r,
|
|
37
|
-
type:
|
|
37
|
+
type: C,
|
|
38
38
|
key: u,
|
|
39
|
-
ref:
|
|
40
|
-
props:
|
|
39
|
+
ref: o !== void 0 ? o : null,
|
|
40
|
+
props: p
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return ve.Fragment = c, ve.jsx = j, ve.jsxs = j, ve;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
45
|
+
var nr;
|
|
46
|
+
function lt() {
|
|
47
|
+
return nr || (nr = 1, Ue.exports = it()), Ue.exports;
|
|
48
48
|
}
|
|
49
|
-
var e =
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
const c = { ...r.options ?? {} },
|
|
53
|
-
r.onCustomSave ? r.onCustomSave(r.dataSource.current, (
|
|
54
|
-
|
|
49
|
+
var e = lt();
|
|
50
|
+
const ct = (r) => {
|
|
51
|
+
Pe();
|
|
52
|
+
const c = { ...r.options ?? {} }, j = () => {
|
|
53
|
+
r.onCustomSave ? r.onCustomSave(r.dataSource.current, (o) => {
|
|
54
|
+
o && r.onAfterSave && r.onAfterSave(r.dataSource.current), r.onClickOk(r.dataSource.current, o);
|
|
55
55
|
}) : r.onClickOk(r.dataSource.current, !0);
|
|
56
|
-
},
|
|
56
|
+
}, C = () => {
|
|
57
57
|
r.onClickCancel(r.dataSource.current);
|
|
58
58
|
};
|
|
59
59
|
return /* @__PURE__ */ e.jsx(
|
|
60
|
-
|
|
60
|
+
ke,
|
|
61
61
|
{
|
|
62
62
|
opened: r.opened,
|
|
63
|
-
onClose:
|
|
64
|
-
title:
|
|
63
|
+
onClose: C,
|
|
64
|
+
title: a().t("archbase:Perfil"),
|
|
65
65
|
size: "60%",
|
|
66
66
|
styles: { content: { maxWidth: 1e3 } },
|
|
67
|
-
children: /* @__PURE__ */ e.jsx(
|
|
67
|
+
children: /* @__PURE__ */ e.jsx(Re, { style: { height: "460px" }, children: /* @__PURE__ */ e.jsxs(ne, { w: "98%", children: [
|
|
68
68
|
c?.customContentBefore && /* @__PURE__ */ e.jsx(e.Fragment, { children: c.customContentBefore }),
|
|
69
69
|
/* @__PURE__ */ e.jsxs(T, { children: [
|
|
70
70
|
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 12, lg: 12 }, children: /* @__PURE__ */ e.jsx(
|
|
71
71
|
re,
|
|
72
72
|
{
|
|
73
|
-
label: `${
|
|
74
|
-
placeholder: `${
|
|
73
|
+
label: `${a().t("archbase:Nome do perfil")}`,
|
|
74
|
+
placeholder: `${a().t("archbase:Informe o nome do perfil")}`,
|
|
75
75
|
dataSource: r.dataSource,
|
|
76
76
|
dataField: "name"
|
|
77
77
|
}
|
|
@@ -79,31 +79,31 @@ const ca = (r) => {
|
|
|
79
79
|
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 12, lg: 12 }, children: /* @__PURE__ */ e.jsx(
|
|
80
80
|
re,
|
|
81
81
|
{
|
|
82
|
-
label: `${
|
|
83
|
-
placeholder: `${
|
|
82
|
+
label: `${a().t("archbase:Descrição do perfil")}`,
|
|
83
|
+
placeholder: `${a().t("archbase:Informe a descrição do perfil")}`,
|
|
84
84
|
dataSource: r.dataSource,
|
|
85
85
|
dataField: "description"
|
|
86
86
|
}
|
|
87
87
|
) })
|
|
88
88
|
] }),
|
|
89
89
|
c?.customContentAfter && /* @__PURE__ */ e.jsx(e.Fragment, { children: c.customContentAfter }),
|
|
90
|
-
/* @__PURE__ */ e.jsxs(
|
|
91
|
-
/* @__PURE__ */ e.jsx(
|
|
92
|
-
/* @__PURE__ */ e.jsx(
|
|
90
|
+
/* @__PURE__ */ e.jsxs(G, { justify: "flex-end", mt: "md", children: [
|
|
91
|
+
/* @__PURE__ */ e.jsx(U, { variant: "default", onClick: C, children: a().t("archbase:Cancelar") }),
|
|
92
|
+
/* @__PURE__ */ e.jsx(U, { onClick: j, children: a().t("archbase:Salvar") })
|
|
93
93
|
] })
|
|
94
94
|
] }) })
|
|
95
95
|
}
|
|
96
96
|
);
|
|
97
97
|
};
|
|
98
|
-
function
|
|
98
|
+
function dt({
|
|
99
99
|
availableItemsDS: r,
|
|
100
100
|
assignedItemsDS: c,
|
|
101
|
-
idFieldAvailable:
|
|
102
|
-
labelFieldAvailable:
|
|
103
|
-
idFieldAssigned:
|
|
104
|
-
labelFieldAssigned:
|
|
101
|
+
idFieldAvailable: j,
|
|
102
|
+
labelFieldAvailable: C,
|
|
103
|
+
idFieldAssigned: o,
|
|
104
|
+
labelFieldAssigned: p,
|
|
105
105
|
handleCreateAssociationObject: u,
|
|
106
|
-
width:
|
|
106
|
+
width: v = "400px",
|
|
107
107
|
height: E = "200px",
|
|
108
108
|
titleAvailable: h = "Disponíveis",
|
|
109
109
|
titleAssigned: y = "Selecionados"
|
|
@@ -114,47 +114,47 @@ function da({
|
|
|
114
114
|
void 0,
|
|
115
115
|
[]
|
|
116
116
|
);
|
|
117
|
-
const
|
|
117
|
+
const I = le(
|
|
118
118
|
"ArchbaseDualListSelector-Assigned",
|
|
119
119
|
c,
|
|
120
120
|
void 0,
|
|
121
121
|
[]
|
|
122
|
-
), [
|
|
123
|
-
r &&
|
|
122
|
+
), [n, g] = M([]), [x, te] = M([]), [J, ae] = M([]), [Q, P] = M([]), N = ge(() => {
|
|
123
|
+
r && g(r.browseRecords()), c && te(c.browseRecords());
|
|
124
124
|
}, [r, c]);
|
|
125
|
-
|
|
125
|
+
rr({
|
|
126
126
|
dataSource: r,
|
|
127
127
|
listener: () => N()
|
|
128
|
-
}),
|
|
128
|
+
}), rr({
|
|
129
129
|
dataSource: c,
|
|
130
130
|
listener: () => N()
|
|
131
|
-
}),
|
|
131
|
+
}), Ee(() => {
|
|
132
132
|
N();
|
|
133
133
|
}, [N]);
|
|
134
|
-
const
|
|
135
|
-
d((m) => m.includes(
|
|
134
|
+
const D = (d, f) => typeof f == "function" ? f(d) : d[f], q = (d, f) => typeof f == "function" ? f(d) : d[f], s = (d, f) => {
|
|
135
|
+
d((m) => m.includes(f) ? m.filter((he) => he !== f) : [...m, f]);
|
|
136
136
|
}, w = () => {
|
|
137
137
|
J.forEach((d) => {
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
140
|
-
const m = u(
|
|
141
|
-
|
|
138
|
+
const f = n.find((m) => D(m, j) === d);
|
|
139
|
+
if (f) {
|
|
140
|
+
const m = u(f);
|
|
141
|
+
I.isDataSourceV2 ? (c.insert(m), c.save()) : (c.insert(m), c.save(), I.v1State.forceUpdate());
|
|
142
142
|
}
|
|
143
|
-
}),
|
|
143
|
+
}), ae([]);
|
|
144
144
|
}, O = () => {
|
|
145
145
|
Q.forEach((d) => {
|
|
146
|
-
const
|
|
147
|
-
if (
|
|
148
|
-
const m = typeof
|
|
149
|
-
|
|
146
|
+
const f = x.find((m) => D(m, o) === d);
|
|
147
|
+
if (f) {
|
|
148
|
+
const m = typeof o == "function" ? { customId: o(f) } : { [o]: d };
|
|
149
|
+
I.isDataSourceV2 ? c.remove(() => c.locate(m)) : (c.remove(() => c.locate(m)), I.v1State.forceUpdate());
|
|
150
150
|
}
|
|
151
|
-
}),
|
|
151
|
+
}), P([]);
|
|
152
152
|
};
|
|
153
|
-
return /* @__PURE__ */ e.jsxs(X, { withBorder: !0, style: { display: "flex", width:
|
|
154
|
-
/* @__PURE__ */ e.jsxs(
|
|
153
|
+
return /* @__PURE__ */ e.jsxs(X, { withBorder: !0, style: { display: "flex", width: v, height: E }, children: [
|
|
154
|
+
/* @__PURE__ */ e.jsxs(Qe, { style: { minWidth: "44%", minHeight: E }, children: [
|
|
155
155
|
/* @__PURE__ */ e.jsx(H, { children: h }),
|
|
156
156
|
/* @__PURE__ */ e.jsx(
|
|
157
|
-
|
|
157
|
+
Fe,
|
|
158
158
|
{
|
|
159
159
|
spacing: "xs",
|
|
160
160
|
size: "sm",
|
|
@@ -166,28 +166,28 @@ function da({
|
|
|
166
166
|
overflowX: "hidden",
|
|
167
167
|
height: "calc(100% - 32px)"
|
|
168
168
|
},
|
|
169
|
-
children:
|
|
170
|
-
|
|
169
|
+
children: n.map((d) => /* @__PURE__ */ e.jsx(Fe.Item, { children: /* @__PURE__ */ e.jsx(
|
|
170
|
+
Ye,
|
|
171
171
|
{
|
|
172
|
-
label: q(d,
|
|
173
|
-
checked: J.includes(
|
|
174
|
-
onChange: () =>
|
|
175
|
-
disabled:
|
|
176
|
-
(
|
|
172
|
+
label: q(d, C),
|
|
173
|
+
checked: J.includes(D(d, j)),
|
|
174
|
+
onChange: () => s(ae, D(d, j)),
|
|
175
|
+
disabled: x.some(
|
|
176
|
+
(f) => D(f, o) === D(d, j)
|
|
177
177
|
)
|
|
178
178
|
}
|
|
179
|
-
) },
|
|
179
|
+
) }, D(d, j)))
|
|
180
180
|
}
|
|
181
181
|
)
|
|
182
182
|
] }),
|
|
183
183
|
/* @__PURE__ */ e.jsxs(ne, { gap: 5, style: { minWidth: "10%" }, justify: "center", align: "center", children: [
|
|
184
|
-
/* @__PURE__ */ e.jsx(ie, { label: "Adicionar", children: /* @__PURE__ */ e.jsx(B, { onClick: w, disabled: !J.length, children: /* @__PURE__ */ e.jsx(
|
|
185
|
-
/* @__PURE__ */ e.jsx(ie, { label: "Remover", children: /* @__PURE__ */ e.jsx(B, { onClick: O, disabled: !Q.length, children: /* @__PURE__ */ e.jsx(
|
|
184
|
+
/* @__PURE__ */ e.jsx(ie, { label: "Adicionar", children: /* @__PURE__ */ e.jsx(B, { onClick: w, disabled: !J.length, children: /* @__PURE__ */ e.jsx(ur, {}) }) }),
|
|
185
|
+
/* @__PURE__ */ e.jsx(ie, { label: "Remover", children: /* @__PURE__ */ e.jsx(B, { onClick: O, disabled: !Q.length, children: /* @__PURE__ */ e.jsx(hr, {}) }) })
|
|
186
186
|
] }),
|
|
187
|
-
/* @__PURE__ */ e.jsxs(
|
|
187
|
+
/* @__PURE__ */ e.jsxs(Qe, { style: { minWidth: "44%", minHeight: E }, children: [
|
|
188
188
|
/* @__PURE__ */ e.jsx(H, { children: y }),
|
|
189
189
|
/* @__PURE__ */ e.jsx(
|
|
190
|
-
|
|
190
|
+
Fe,
|
|
191
191
|
{
|
|
192
192
|
spacing: "xs",
|
|
193
193
|
size: "sm",
|
|
@@ -199,25 +199,25 @@ function da({
|
|
|
199
199
|
overflowX: "hidden",
|
|
200
200
|
height: "calc(100% - 32px)"
|
|
201
201
|
},
|
|
202
|
-
children:
|
|
203
|
-
|
|
202
|
+
children: x.map((d) => /* @__PURE__ */ e.jsx(Fe.Item, { children: /* @__PURE__ */ e.jsx(
|
|
203
|
+
Ye,
|
|
204
204
|
{
|
|
205
|
-
label: q(d,
|
|
206
|
-
checked: Q.includes(
|
|
207
|
-
onChange: () =>
|
|
205
|
+
label: q(d, p),
|
|
206
|
+
checked: Q.includes(D(d, o)),
|
|
207
|
+
onChange: () => s(P, D(d, o))
|
|
208
208
|
}
|
|
209
|
-
) },
|
|
209
|
+
) }, D(d, o)))
|
|
210
210
|
}
|
|
211
211
|
)
|
|
212
212
|
] })
|
|
213
213
|
] });
|
|
214
214
|
}
|
|
215
|
-
const
|
|
216
|
-
({ image: r, label: c, description:
|
|
217
|
-
/* @__PURE__ */ e.jsx(H, { size: "sm", fw: 600, children:
|
|
218
|
-
/* @__PURE__ */ e.jsx(
|
|
215
|
+
const ut = Kr(
|
|
216
|
+
({ image: r, label: c, description: j, origin: C, ...o }, p) => /* @__PURE__ */ e.jsx("div", { ref: p, ...o, children: /* @__PURE__ */ e.jsxs(oe, { children: [
|
|
217
|
+
/* @__PURE__ */ e.jsx(H, { size: "sm", fw: 600, children: C ? C.name : "" }),
|
|
218
|
+
/* @__PURE__ */ e.jsx(lr, { w: "lg" })
|
|
219
219
|
] }) })
|
|
220
|
-
),
|
|
220
|
+
), ht = {
|
|
221
221
|
// Campos de identificação
|
|
222
222
|
showNickname: !0,
|
|
223
223
|
// Campos de perfil e grupos
|
|
@@ -237,81 +237,96 @@ const ua = Xr(
|
|
|
237
237
|
avatarMaxSizeKB: 2e3,
|
|
238
238
|
avatarImageQuality: 1,
|
|
239
239
|
allowEditEmail: !0
|
|
240
|
-
},
|
|
241
|
-
const c =
|
|
240
|
+
}, pt = (r) => {
|
|
241
|
+
const c = Pe(), [j, C] = M(""), o = { ...ht, ...r.options ?? {} }, p = ee(K.Group), { dataSource: u } = se({
|
|
242
242
|
name: "dsGroups",
|
|
243
|
-
service:
|
|
243
|
+
service: p,
|
|
244
244
|
pageSize: 9999,
|
|
245
245
|
loadOnStart: !0,
|
|
246
246
|
sort: ["name:asc"],
|
|
247
|
-
onError: (
|
|
248
|
-
Y.showError(
|
|
247
|
+
onError: (n, g) => {
|
|
248
|
+
Y.showError(a().t("archbase:WARNING"), n, g);
|
|
249
249
|
}
|
|
250
|
-
}),
|
|
250
|
+
}), v = ee(K.Profile), { dataSource: E } = se({
|
|
251
251
|
name: "dsProfiles",
|
|
252
|
-
service:
|
|
252
|
+
service: v,
|
|
253
253
|
pageSize: 9999,
|
|
254
254
|
loadOnStart: !0,
|
|
255
255
|
sort: ["name:asc"],
|
|
256
|
-
onError: (
|
|
257
|
-
Y.showError(
|
|
256
|
+
onError: (n, g) => {
|
|
257
|
+
Y.showError(a().t("archbase:WARNING"), n, g);
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
Ee(() => {
|
|
261
|
+
C("");
|
|
262
262
|
}, [r.dataSource.getFieldValue("password")]);
|
|
263
|
-
const h = () => {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
263
|
+
const h = async () => {
|
|
264
|
+
if (r.dataSource.isInserting()) {
|
|
265
|
+
if (o.userDefaultProfile) {
|
|
266
|
+
const n = ze(we.eq("name", o.userDefaultProfile)), g = await v.findAllWithFilter(n, 0, 1);
|
|
267
|
+
g && g.content.length > 0 && r.dataSource.setFieldValue("profile", g.content[0]);
|
|
268
|
+
}
|
|
269
|
+
if (o.userDefaultGroups) {
|
|
270
|
+
const n = ze(we.in("name", o.userDefaultGroups)), g = await p.findAllWithFilter(n, 0, 500);
|
|
271
|
+
g && g.content.length > 0 && r.dataSource.setFieldValue("groups", g.content.map((x) => or.newInstance(x)));
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
Ee(() => {
|
|
276
|
+
r.opened && h();
|
|
277
|
+
}, [r.opened]);
|
|
278
|
+
const y = () => {
|
|
279
|
+
const n = r.dataSource.current;
|
|
280
|
+
if (!n.password && r.dataSource.isInserting()) {
|
|
281
|
+
C(a().t("archbase:Informe a senha"));
|
|
267
282
|
return;
|
|
268
283
|
}
|
|
269
|
-
r.onCustomSave ? r.onCustomSave(
|
|
270
|
-
|
|
271
|
-
}) : r.onClickOk(
|
|
272
|
-
},
|
|
284
|
+
r.onCustomSave ? r.onCustomSave(n, (g) => {
|
|
285
|
+
g && r.onAfterSave && r.onAfterSave(n), r.onClickOk(n, g);
|
|
286
|
+
}) : r.onClickOk(n, !0);
|
|
287
|
+
}, I = () => {
|
|
273
288
|
r.onClickCancel(r.dataSource.current);
|
|
274
289
|
};
|
|
275
290
|
return /* @__PURE__ */ e.jsxs(
|
|
276
|
-
|
|
291
|
+
ke,
|
|
277
292
|
{
|
|
278
293
|
opened: r.opened,
|
|
279
|
-
onClose:
|
|
280
|
-
title:
|
|
294
|
+
onClose: I,
|
|
295
|
+
title: a().t("archbase:Usuário"),
|
|
281
296
|
size: "80%",
|
|
282
297
|
styles: { content: { maxWidth: 1e3 } },
|
|
283
298
|
children: [
|
|
284
|
-
/* @__PURE__ */ e.jsx(
|
|
285
|
-
|
|
299
|
+
/* @__PURE__ */ e.jsx(Re, { ref: c, style: { height: "500px" }, children: /* @__PURE__ */ e.jsxs(ne, { w: "98%", children: [
|
|
300
|
+
o?.customContentBefore && /* @__PURE__ */ e.jsx(e.Fragment, { children: o.customContentBefore(r.dataSource.current) }),
|
|
286
301
|
/* @__PURE__ */ e.jsxs(T, { children: [
|
|
287
|
-
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsxs(
|
|
302
|
+
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsxs(G, { children: [
|
|
288
303
|
/* @__PURE__ */ e.jsx(
|
|
289
304
|
re,
|
|
290
305
|
{
|
|
291
|
-
label: `${
|
|
292
|
-
placeholder: `${
|
|
306
|
+
label: `${a().t("archbase:Nome completo")}`,
|
|
307
|
+
placeholder: `${a().t("archbase:Informe o nome completo do usuário")}`,
|
|
293
308
|
dataSource: r.dataSource,
|
|
294
309
|
dataField: "name",
|
|
295
310
|
required: !0,
|
|
296
311
|
width: "calc(100% - 208px)"
|
|
297
312
|
}
|
|
298
313
|
),
|
|
299
|
-
|
|
314
|
+
o.showNickname && /* @__PURE__ */ e.jsx(
|
|
300
315
|
re,
|
|
301
316
|
{
|
|
302
|
-
label: `${
|
|
303
|
-
placeholder: `${
|
|
317
|
+
label: `${a().t("archbase:Apelido")}`,
|
|
318
|
+
placeholder: `${a().t("archbase:Apelido")}`,
|
|
304
319
|
dataSource: r.dataSource,
|
|
305
320
|
dataField: "nickname",
|
|
306
|
-
required:
|
|
321
|
+
required: o.requiredNickname
|
|
307
322
|
}
|
|
308
323
|
)
|
|
309
324
|
] }) }),
|
|
310
325
|
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsx(
|
|
311
326
|
re,
|
|
312
327
|
{
|
|
313
|
-
label: `${
|
|
314
|
-
placeholder: `${
|
|
328
|
+
label: `${a().t("archbase:Descrição do usuário")}`,
|
|
329
|
+
placeholder: `${a().t("archbase:Informe a descrição do usuário")}`,
|
|
315
330
|
dataSource: r.dataSource,
|
|
316
331
|
dataField: "description",
|
|
317
332
|
required: !0
|
|
@@ -322,115 +337,115 @@ const ua = Xr(
|
|
|
322
337
|
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsx(
|
|
323
338
|
re,
|
|
324
339
|
{
|
|
325
|
-
label: `${
|
|
326
|
-
placeholder: `${
|
|
340
|
+
label: `${a().t("archbase:E-mail")}`,
|
|
341
|
+
placeholder: `${a().t("archbase:Informe o e-mail do usuário")}`,
|
|
327
342
|
dataSource: r.dataSource,
|
|
328
|
-
onChangeValue: (
|
|
343
|
+
onChangeValue: (n) => r.dataSource.setFieldValue("userName", n),
|
|
329
344
|
dataField: "email",
|
|
330
|
-
readOnly: r.dataSource.isEditing() ? !
|
|
345
|
+
readOnly: r.dataSource.isEditing() ? !o.allowEditEmail : !1,
|
|
331
346
|
required: !0
|
|
332
347
|
}
|
|
333
348
|
) }),
|
|
334
349
|
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsx(
|
|
335
|
-
|
|
350
|
+
Hr,
|
|
336
351
|
{
|
|
337
|
-
label: `${
|
|
352
|
+
label: `${a().t("archbase:Senha usuário")}`,
|
|
338
353
|
dataSource: r.dataSource,
|
|
339
354
|
dataField: "password",
|
|
340
|
-
error:
|
|
355
|
+
error: j,
|
|
341
356
|
required: r.dataSource.getFieldValue("isNewUser")
|
|
342
357
|
}
|
|
343
358
|
) })
|
|
344
359
|
] }),
|
|
345
|
-
/* @__PURE__ */ e.jsx(T, { children:
|
|
346
|
-
|
|
360
|
+
/* @__PURE__ */ e.jsx(T, { children: o.showProfile && /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsx(
|
|
361
|
+
Jr,
|
|
347
362
|
{
|
|
348
|
-
label: `${
|
|
363
|
+
label: `${a().t("archbase:Perfil do usuário")}`,
|
|
349
364
|
dataSource: r.dataSource,
|
|
350
365
|
dataField: "profile",
|
|
351
366
|
options: E,
|
|
352
367
|
allowDeselect: !0,
|
|
353
368
|
optionsLabelField: "nome",
|
|
354
|
-
itemComponent:
|
|
355
|
-
getOptionLabel: (
|
|
356
|
-
getOptionValue: (
|
|
369
|
+
itemComponent: ut,
|
|
370
|
+
getOptionLabel: (n) => n.name,
|
|
371
|
+
getOptionValue: (n) => n.id
|
|
357
372
|
}
|
|
358
373
|
) }) }),
|
|
359
374
|
/* @__PURE__ */ e.jsxs(T, { children: [
|
|
360
|
-
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12 }, children:
|
|
375
|
+
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12 }, children: o.showAccountConfigLabel && /* @__PURE__ */ e.jsx(H, { fz: 14, fw: 500, children: "Informe" }) }),
|
|
361
376
|
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 4, lg: 4 }, children: /* @__PURE__ */ e.jsxs(ne, { gap: "lg", children: [
|
|
362
|
-
|
|
377
|
+
o.showChangePasswordOnNextLogin && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
|
|
363
378
|
xe,
|
|
364
379
|
{
|
|
365
380
|
dataSource: r.dataSource,
|
|
366
381
|
dataField: "changePasswordOnNextLogin",
|
|
367
|
-
label: `${
|
|
382
|
+
label: `${a().t("archbase:Deve alterar senha próximo login ?")}`
|
|
368
383
|
}
|
|
369
384
|
) }),
|
|
370
|
-
|
|
385
|
+
o.showAllowPasswordChange && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
|
|
371
386
|
xe,
|
|
372
387
|
{
|
|
373
388
|
dataSource: r.dataSource,
|
|
374
389
|
dataField: "allowPasswordChange",
|
|
375
|
-
label: `${
|
|
390
|
+
label: `${a().t("archbase:Pode alterar a senha ?")}`
|
|
376
391
|
}
|
|
377
392
|
) }),
|
|
378
|
-
|
|
393
|
+
o.showPasswordNeverExpires && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
|
|
379
394
|
xe,
|
|
380
395
|
{
|
|
381
396
|
dataSource: r.dataSource,
|
|
382
397
|
dataField: "passwordNeverExpires",
|
|
383
|
-
label: `${
|
|
398
|
+
label: `${a().t("archbase:Senha nunca expira ?")}`
|
|
384
399
|
}
|
|
385
400
|
) })
|
|
386
401
|
] }) }),
|
|
387
402
|
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 4, lg: 4 }, children: /* @__PURE__ */ e.jsxs(ne, { gap: "lg", children: [
|
|
388
|
-
|
|
403
|
+
o.showAccountDeactivated && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
|
|
389
404
|
xe,
|
|
390
405
|
{
|
|
391
406
|
dataSource: r.dataSource,
|
|
392
407
|
dataField: "accountDeactivated",
|
|
393
|
-
label: `${
|
|
408
|
+
label: `${a().t("archbase:Conta desativada ?")}`
|
|
394
409
|
}
|
|
395
410
|
) }),
|
|
396
|
-
|
|
411
|
+
o.showAccountLocked && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
|
|
397
412
|
xe,
|
|
398
413
|
{
|
|
399
414
|
dataSource: r.dataSource,
|
|
400
415
|
dataField: "accountLocked",
|
|
401
|
-
label: `${
|
|
416
|
+
label: `${a().t("archbase:Conta bloqueada ?")}`
|
|
402
417
|
}
|
|
403
418
|
) }),
|
|
404
|
-
|
|
419
|
+
o.showIsAdministrator && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
|
|
405
420
|
xe,
|
|
406
421
|
{
|
|
407
422
|
dataSource: r.dataSource,
|
|
408
423
|
dataField: "isAdministrator",
|
|
409
|
-
label: `${
|
|
424
|
+
label: `${a().t("archbase:Administrador ?")}`
|
|
410
425
|
}
|
|
411
426
|
) })
|
|
412
427
|
] }) }),
|
|
413
428
|
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 4, lg: 4 }, children: /* @__PURE__ */ e.jsx(ne, { gap: "lg", children: /* @__PURE__ */ e.jsx(
|
|
414
|
-
|
|
429
|
+
Zr,
|
|
415
430
|
{
|
|
416
|
-
label:
|
|
431
|
+
label: a().t("archbase:Foto do usuário"),
|
|
417
432
|
dataSource: r.dataSource,
|
|
418
433
|
dataField: "avatar",
|
|
419
434
|
width: 120,
|
|
420
435
|
height: 120,
|
|
421
|
-
maxSizeKB:
|
|
422
|
-
imageQuality:
|
|
436
|
+
maxSizeKB: o.avatarMaxSizeKB,
|
|
437
|
+
imageQuality: o.avatarImageQuality
|
|
423
438
|
}
|
|
424
439
|
) }) })
|
|
425
440
|
] }),
|
|
426
|
-
|
|
441
|
+
o.showGroups && /* @__PURE__ */ e.jsxs(T, { children: [
|
|
427
442
|
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12 }, children: /* @__PURE__ */ e.jsx(H, { fz: 14, fw: 500, children: "Grupos" }) }),
|
|
428
443
|
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12 }, children: /* @__PURE__ */ e.jsx(
|
|
429
|
-
|
|
444
|
+
dt,
|
|
430
445
|
{
|
|
431
|
-
titleAvailable:
|
|
432
|
-
titleAssigned:
|
|
433
|
-
assignedItemsDS: new
|
|
446
|
+
titleAvailable: a().t("archbase:Disponíveis"),
|
|
447
|
+
titleAssigned: a().t("archbase:Selecionados"),
|
|
448
|
+
assignedItemsDS: new Yr("dsDualList", {
|
|
434
449
|
records: r.dataSource.getFieldValue("groups"),
|
|
435
450
|
grandTotalRecords: r.dataSource.getFieldValue("groups").length,
|
|
436
451
|
currentPage: 0,
|
|
@@ -440,49 +455,49 @@ const ua = Xr(
|
|
|
440
455
|
width: "100%",
|
|
441
456
|
height: "200px",
|
|
442
457
|
availableItemsDS: u,
|
|
443
|
-
handleCreateAssociationObject: (
|
|
444
|
-
idFieldAssigned: (
|
|
458
|
+
handleCreateAssociationObject: (n) => or.newInstance(n),
|
|
459
|
+
idFieldAssigned: (n) => n && n.group ? n.group.id : "",
|
|
445
460
|
idFieldAvailable: "id",
|
|
446
|
-
labelFieldAssigned: (
|
|
461
|
+
labelFieldAssigned: (n) => n && n.group ? n.group.name : "",
|
|
447
462
|
labelFieldAvailable: "name"
|
|
448
463
|
}
|
|
449
464
|
) })
|
|
450
465
|
] }),
|
|
451
|
-
|
|
452
|
-
/* @__PURE__ */ e.jsx(
|
|
466
|
+
o?.customContentAfter && /* @__PURE__ */ e.jsx(e.Fragment, { children: o.customContentAfter(r.dataSource.current) }),
|
|
467
|
+
/* @__PURE__ */ e.jsx(lr, { h: "12px" })
|
|
453
468
|
] }) }),
|
|
454
|
-
/* @__PURE__ */ e.jsxs(
|
|
455
|
-
/* @__PURE__ */ e.jsx(
|
|
456
|
-
/* @__PURE__ */ e.jsx(
|
|
469
|
+
/* @__PURE__ */ e.jsxs(G, { justify: "flex-end", mt: "md", children: [
|
|
470
|
+
/* @__PURE__ */ e.jsx(U, { variant: "default", onClick: I, children: a().t("archbase:Cancelar") }),
|
|
471
|
+
/* @__PURE__ */ e.jsx(U, { onClick: y, children: a().t("archbase:Salvar") })
|
|
457
472
|
] })
|
|
458
473
|
]
|
|
459
474
|
}
|
|
460
475
|
);
|
|
461
|
-
},
|
|
462
|
-
|
|
463
|
-
const c = { ...r.options ?? {} },
|
|
464
|
-
r.onCustomSave ? r.onCustomSave(r.dataSource.current, (
|
|
465
|
-
|
|
476
|
+
}, xt = (r) => {
|
|
477
|
+
Pe();
|
|
478
|
+
const c = { ...r.options ?? {} }, j = () => {
|
|
479
|
+
r.onCustomSave ? r.onCustomSave(r.dataSource.current, (o) => {
|
|
480
|
+
o && r.onAfterSave && r.onAfterSave(r.dataSource.current), r.onClickOk(r.dataSource.current, o);
|
|
466
481
|
}) : r.onClickOk(r.dataSource.current, !0);
|
|
467
|
-
},
|
|
482
|
+
}, C = () => {
|
|
468
483
|
r.onClickCancel(r.dataSource.current);
|
|
469
484
|
};
|
|
470
485
|
return /* @__PURE__ */ e.jsx(
|
|
471
|
-
|
|
486
|
+
ke,
|
|
472
487
|
{
|
|
473
488
|
opened: r.opened,
|
|
474
|
-
onClose:
|
|
475
|
-
title:
|
|
489
|
+
onClose: C,
|
|
490
|
+
title: a().t("archbase:Grupo"),
|
|
476
491
|
size: "60%",
|
|
477
492
|
styles: { content: { maxWidth: 1e3 } },
|
|
478
|
-
children: /* @__PURE__ */ e.jsx(
|
|
493
|
+
children: /* @__PURE__ */ e.jsx(Re, { style: { height: "460px" }, children: /* @__PURE__ */ e.jsxs(ne, { w: "98%", children: [
|
|
479
494
|
c?.customContentBefore && /* @__PURE__ */ e.jsx(e.Fragment, { children: r.options.customContentBefore }),
|
|
480
495
|
/* @__PURE__ */ e.jsxs(T, { children: [
|
|
481
496
|
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12 }, children: /* @__PURE__ */ e.jsx(
|
|
482
497
|
re,
|
|
483
498
|
{
|
|
484
|
-
label: `${
|
|
485
|
-
placeholder: `${
|
|
499
|
+
label: `${a().t("archbase:Nome do grupo")}`,
|
|
500
|
+
placeholder: `${a().t("archbase:Informe o nome do grupo")}`,
|
|
486
501
|
dataSource: r.dataSource,
|
|
487
502
|
dataField: "name"
|
|
488
503
|
}
|
|
@@ -490,54 +505,54 @@ const ua = Xr(
|
|
|
490
505
|
/* @__PURE__ */ e.jsx(T.Col, { span: { base: 12 }, children: /* @__PURE__ */ e.jsx(
|
|
491
506
|
re,
|
|
492
507
|
{
|
|
493
|
-
label: `${
|
|
494
|
-
placeholder: `${
|
|
508
|
+
label: `${a().t("archbase:Descrição do grupo")}`,
|
|
509
|
+
placeholder: `${a().t("archbase:Informe a descrição do grupo")}`,
|
|
495
510
|
dataSource: r.dataSource,
|
|
496
511
|
dataField: "description"
|
|
497
512
|
}
|
|
498
513
|
) })
|
|
499
514
|
] }),
|
|
500
515
|
c?.customContentAfter && /* @__PURE__ */ e.jsx(e.Fragment, { children: r.options.customContentAfter }),
|
|
501
|
-
/* @__PURE__ */ e.jsxs(
|
|
502
|
-
/* @__PURE__ */ e.jsx(
|
|
503
|
-
/* @__PURE__ */ e.jsx(
|
|
516
|
+
/* @__PURE__ */ e.jsxs(G, { justify: "flex-end", mt: "md", children: [
|
|
517
|
+
/* @__PURE__ */ e.jsx(U, { variant: "default", onClick: C, children: a().t("archbase:Cancelar") }),
|
|
518
|
+
/* @__PURE__ */ e.jsx(U, { onClick: j, children: a().t("archbase:Salvar") })
|
|
504
519
|
] })
|
|
505
520
|
] }) })
|
|
506
521
|
}
|
|
507
522
|
);
|
|
508
|
-
},
|
|
523
|
+
}, mt = ({ image: r, label: c, description: j, ...C }) => /* @__PURE__ */ e.jsx("div", { ...C, children: /* @__PURE__ */ e.jsxs(G, { grow: !0, children: [
|
|
509
524
|
/* @__PURE__ */ e.jsx("img", { style: { maxWidth: "32px" }, src: r }),
|
|
510
525
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
511
526
|
/* @__PURE__ */ e.jsx(H, { size: "sm", children: c }),
|
|
512
|
-
/* @__PURE__ */ e.jsx(H, { size: "xs", opacity: 0.65, children:
|
|
527
|
+
/* @__PURE__ */ e.jsx(H, { size: "xs", opacity: 0.65, children: j })
|
|
513
528
|
] })
|
|
514
|
-
] }) }),
|
|
515
|
-
|
|
516
|
-
const [c,
|
|
529
|
+
] }) }), ft = (r) => {
|
|
530
|
+
Pe();
|
|
531
|
+
const [c, j] = M(), C = ee(K.User), o = le(
|
|
517
532
|
"ApiTokenModal",
|
|
518
533
|
r.dataSource,
|
|
519
534
|
"expirationDate",
|
|
520
535
|
""
|
|
521
|
-
),
|
|
536
|
+
), p = (h) => {
|
|
522
537
|
if (!h)
|
|
523
|
-
|
|
538
|
+
o.handleValueChange(void 0);
|
|
524
539
|
else {
|
|
525
|
-
const y = typeof h == "string" ? new Date(h) : h,
|
|
526
|
-
|
|
540
|
+
const y = typeof h == "string" ? new Date(h) : h, I = Br(y);
|
|
541
|
+
o.handleValueChange(I);
|
|
527
542
|
}
|
|
528
|
-
|
|
529
|
-
}, u = async (h, y) => new Promise(async (
|
|
543
|
+
j(h);
|
|
544
|
+
}, u = async (h, y) => new Promise(async (I, n) => {
|
|
530
545
|
try {
|
|
531
|
-
const
|
|
532
|
-
|
|
533
|
-
options:
|
|
534
|
-
page:
|
|
535
|
-
totalPages:
|
|
546
|
+
const g = ze(we.or(we.eq("name", `^*${y.trim()}*`))), x = await C.findAllWithFilter(g, h, 20);
|
|
547
|
+
I({
|
|
548
|
+
options: x.content,
|
|
549
|
+
page: x.pageable.pageNumber,
|
|
550
|
+
totalPages: x.totalPages
|
|
536
551
|
});
|
|
537
|
-
} catch (
|
|
538
|
-
|
|
552
|
+
} catch (g) {
|
|
553
|
+
n(Te(g));
|
|
539
554
|
}
|
|
540
|
-
}),
|
|
555
|
+
}), v = () => {
|
|
541
556
|
r.onCustomSave ? r.onCustomSave(r.dataSource.current, (h) => {
|
|
542
557
|
h && r.onAfterSave && r.onAfterSave(r.dataSource.current), r.onClickOk(r.dataSource.current, h);
|
|
543
558
|
}) : r.onClickOk(r.dataSource.current, !0);
|
|
@@ -545,19 +560,19 @@ const ua = Xr(
|
|
|
545
560
|
r.onClickCancel(r.dataSource.current);
|
|
546
561
|
};
|
|
547
562
|
return /* @__PURE__ */ e.jsxs(
|
|
548
|
-
|
|
563
|
+
ke,
|
|
549
564
|
{
|
|
550
565
|
opened: r.opened,
|
|
551
566
|
onClose: E,
|
|
552
|
-
title:
|
|
567
|
+
title: a().t("archbase:Token de API"),
|
|
553
568
|
size: "50%",
|
|
554
569
|
children: [
|
|
555
|
-
/* @__PURE__ */ e.jsxs(
|
|
570
|
+
/* @__PURE__ */ e.jsxs(Re, { style: { height: "300px" }, children: [
|
|
556
571
|
/* @__PURE__ */ e.jsx(
|
|
557
572
|
re,
|
|
558
573
|
{
|
|
559
|
-
label: `${
|
|
560
|
-
placeholder: `${
|
|
574
|
+
label: `${a().t("archbase:Nome do token")}`,
|
|
575
|
+
placeholder: `${a().t("archbase:Informe o nome do token")}`,
|
|
561
576
|
dataSource: r.dataSource,
|
|
562
577
|
dataField: "name"
|
|
563
578
|
}
|
|
@@ -565,93 +580,93 @@ const ua = Xr(
|
|
|
565
580
|
/* @__PURE__ */ e.jsx(
|
|
566
581
|
re,
|
|
567
582
|
{
|
|
568
|
-
label: `${
|
|
569
|
-
placeholder: `${
|
|
583
|
+
label: `${a().t("archbase:Descrição do token")}`,
|
|
584
|
+
placeholder: `${a().t("archbase:Informe a descrição do token")}`,
|
|
570
585
|
dataSource: r.dataSource,
|
|
571
586
|
dataField: "description"
|
|
572
587
|
}
|
|
573
588
|
),
|
|
574
589
|
/* @__PURE__ */ e.jsx(
|
|
575
|
-
|
|
590
|
+
at,
|
|
576
591
|
{
|
|
577
592
|
withSeconds: !0,
|
|
578
593
|
value: c,
|
|
579
|
-
onChange:
|
|
594
|
+
onChange: p,
|
|
580
595
|
label: "Data/hora expiração",
|
|
581
596
|
placeholder: "Selecione a data de expiração"
|
|
582
597
|
}
|
|
583
598
|
),
|
|
584
599
|
/* @__PURE__ */ e.jsx(
|
|
585
|
-
|
|
600
|
+
Qr,
|
|
586
601
|
{
|
|
587
|
-
label: `${
|
|
602
|
+
label: `${a().t("archbase:Usuário")}`,
|
|
588
603
|
dataSource: r.dataSource,
|
|
589
604
|
dataField: "user",
|
|
590
|
-
placeholder: `${
|
|
605
|
+
placeholder: `${a().t("archbase:Digite aqui o nome do usuário")}`,
|
|
591
606
|
getOptionLabel: (h) => h && h.email ? h.email : "",
|
|
592
607
|
getOptionValue: (h) => h && h.id ? h.id.toString() : "",
|
|
593
608
|
getOptions: u,
|
|
594
609
|
debounceTime: 500,
|
|
595
610
|
minCharsToSearch: 1,
|
|
596
|
-
itemComponent:
|
|
611
|
+
itemComponent: mt
|
|
597
612
|
}
|
|
598
613
|
)
|
|
599
614
|
] }),
|
|
600
|
-
/* @__PURE__ */ e.jsxs(
|
|
601
|
-
/* @__PURE__ */ e.jsx(
|
|
602
|
-
/* @__PURE__ */ e.jsx(
|
|
615
|
+
/* @__PURE__ */ e.jsxs(G, { justify: "flex-end", mt: "md", children: [
|
|
616
|
+
/* @__PURE__ */ e.jsx(U, { variant: "default", onClick: E, children: a().t("archbase:Cancelar") }),
|
|
617
|
+
/* @__PURE__ */ e.jsx(U, { onClick: v, children: a().t("archbase:Salvar") })
|
|
603
618
|
] })
|
|
604
619
|
]
|
|
605
620
|
}
|
|
606
621
|
);
|
|
607
|
-
},
|
|
622
|
+
}, ir = (r) => {
|
|
608
623
|
const c = "->";
|
|
609
|
-
return r.includes(c) ? r.split(c).map((
|
|
624
|
+
return r.includes(c) ? r.split(c).map((o) => o.trim()).map((o) => a().t(o)).join(` ${c} `) : a().t(r);
|
|
610
625
|
};
|
|
611
|
-
function
|
|
612
|
-
const
|
|
613
|
-
value:
|
|
614
|
-
label:
|
|
615
|
-
children:
|
|
616
|
-
value:
|
|
617
|
-
label:
|
|
626
|
+
function Me({ dataSource: r, opened: c, close: j }) {
|
|
627
|
+
const C = me(() => r?.getFieldValue("name") || "", [r]), o = me(() => r?.getFieldValue("id") || "", [r]), p = me(() => r?.getFieldValue("type") || "", [r]), u = Xe(), v = Xe(), [E, h] = M([]), [y, I] = M([]), [n, g] = M(), [x, te] = M(), [J, ae] = M(""), [Q] = er(J, 200), [P, N] = M(""), [D] = er(P, 200), q = ee(K.Resource), { colorScheme: s } = Oe(), w = s === "dark" ? "var(--mantine-primary-color-7)" : "var(--mantine-primary-color-4)", O = me(() => y.sort((i, l) => i.resourceDescription.localeCompare(l.resourceDescription)).map((i) => ({
|
|
628
|
+
value: i.resourceId,
|
|
629
|
+
label: i.resourceDescription,
|
|
630
|
+
children: i.permissions.filter((l) => l.actionDescription.toLowerCase().includes(D.toLowerCase())).sort((l, $) => l.actionDescription.localeCompare($.actionDescription)).map((l) => ({
|
|
631
|
+
value: l.actionId,
|
|
632
|
+
label: l.actionDescription,
|
|
618
633
|
nodeProps: {
|
|
619
|
-
permissionId:
|
|
620
|
-
types:
|
|
621
|
-
owner:
|
|
634
|
+
permissionId: l.permissionId,
|
|
635
|
+
types: l.types ?? [],
|
|
636
|
+
owner: i
|
|
622
637
|
}
|
|
623
638
|
}))
|
|
624
|
-
})), [y,
|
|
625
|
-
value:
|
|
626
|
-
label:
|
|
627
|
-
children:
|
|
628
|
-
const
|
|
639
|
+
})), [y, D]), d = me(() => y.map((i) => i.permissions.map((l) => l.actionId)).flat(), [y]), f = me(() => E.sort((i, l) => i.resourceDescription.localeCompare(l.resourceDescription)).map((i) => ({
|
|
640
|
+
value: i.resourceId,
|
|
641
|
+
label: i.resourceDescription,
|
|
642
|
+
children: i.permissions.filter((l) => l.actionDescription.toLowerCase().includes(Q.toLowerCase())).sort((l, $) => l.actionDescription.localeCompare($.actionDescription)).map((l) => {
|
|
643
|
+
const $ = y.find((S) => S.resourceId === i.resourceId)?.permissions.find((S) => S.actionId === l.actionId);
|
|
629
644
|
return {
|
|
630
|
-
value:
|
|
631
|
-
label:
|
|
645
|
+
value: l.actionId,
|
|
646
|
+
label: l.actionDescription,
|
|
632
647
|
nodeProps: {
|
|
633
|
-
granted: d.includes(
|
|
634
|
-
owner:
|
|
648
|
+
granted: d.includes(l.actionId) && $?.types?.includes(ue(F, p)),
|
|
649
|
+
owner: i
|
|
635
650
|
}
|
|
636
651
|
};
|
|
637
652
|
})
|
|
638
|
-
})), [E, y, d,
|
|
639
|
-
if (
|
|
640
|
-
const
|
|
641
|
-
h(
|
|
653
|
+
})), [E, y, d, p, Q]), m = ge(async () => {
|
|
654
|
+
if (o) {
|
|
655
|
+
const i = await q.getPermissionsBySecurityId(o, p), l = await q.getAllPermissionsAvailable();
|
|
656
|
+
h(l), I(i);
|
|
642
657
|
}
|
|
643
|
-
}, [
|
|
644
|
-
|
|
645
|
-
if (
|
|
646
|
-
|
|
658
|
+
}, [o, p]), he = ge(() => {
|
|
659
|
+
n?.value && o && q.createPermission(o, n.value, p).then((i) => {
|
|
660
|
+
if (i) {
|
|
661
|
+
I((z) => {
|
|
647
662
|
let k;
|
|
648
|
-
return z.map((A) => A.resourceId).includes(
|
|
663
|
+
return z.map((A) => A.resourceId).includes(i.resourceId) ? k = z.map((A) => A.resourceId === i.resourceId ? A.permissions.map((R) => R.actionId).includes(n.value) ? {
|
|
649
664
|
...A,
|
|
650
665
|
permissions: A.permissions.map(
|
|
651
|
-
(R) => R.actionId ===
|
|
666
|
+
(R) => R.actionId === n.value ? {
|
|
652
667
|
...R,
|
|
653
|
-
permissionId:
|
|
654
|
-
types: [...R.types ?? [], ue(F,
|
|
668
|
+
permissionId: i.permissionId,
|
|
669
|
+
types: [...R.types ?? [], ue(F, p)]
|
|
655
670
|
} : R
|
|
656
671
|
)
|
|
657
672
|
} : {
|
|
@@ -659,99 +674,99 @@ function Ve({ dataSource: r, opened: c, close: g }) {
|
|
|
659
674
|
permissions: [
|
|
660
675
|
...A.permissions ?? [],
|
|
661
676
|
{
|
|
662
|
-
actionId:
|
|
663
|
-
actionDescription:
|
|
664
|
-
permissionId:
|
|
665
|
-
types: [ue(F,
|
|
677
|
+
actionId: i.actionId,
|
|
678
|
+
actionDescription: i.actionDescription,
|
|
679
|
+
permissionId: i.permissionId,
|
|
680
|
+
types: [ue(F, p)]
|
|
666
681
|
}
|
|
667
682
|
]
|
|
668
683
|
} : A) : k = [
|
|
669
684
|
...z,
|
|
670
685
|
{
|
|
671
|
-
resourceId:
|
|
672
|
-
resourceDescription:
|
|
686
|
+
resourceId: i.resourceId,
|
|
687
|
+
resourceDescription: i.resourceDescription,
|
|
673
688
|
permissions: [
|
|
674
689
|
{
|
|
675
|
-
actionId:
|
|
676
|
-
actionDescription:
|
|
677
|
-
permissionId:
|
|
678
|
-
types: [ue(F,
|
|
690
|
+
actionId: i.actionId,
|
|
691
|
+
actionDescription: i.actionDescription,
|
|
692
|
+
permissionId: i.permissionId,
|
|
693
|
+
types: [ue(F, p)]
|
|
679
694
|
}
|
|
680
695
|
]
|
|
681
696
|
}
|
|
682
697
|
], k;
|
|
683
698
|
});
|
|
684
|
-
const
|
|
685
|
-
S?.value && u.select(S.value),
|
|
699
|
+
const l = f.filter((z) => z.value === n?.nodeProps?.owner?.resourceId).map((z) => z.children).flat(), $ = l.map((z) => z.value).indexOf(n.value), S = l.find((z, k) => !z?.nodeProps?.granted && z?.value !== n.value && (l.length > $ + 1 ? k > $ : !0));
|
|
700
|
+
S?.value && u.select(S.value), v.expand(i.resourceId), g(S);
|
|
686
701
|
}
|
|
687
702
|
});
|
|
688
|
-
}, [
|
|
689
|
-
|
|
690
|
-
|
|
703
|
+
}, [n, o, p, q, f, E, y, u, v]), ce = ge(() => {
|
|
704
|
+
x?.nodeProps?.permissionId && q.deletePermission(x.nodeProps.permissionId).then(() => {
|
|
705
|
+
I((S) => [...S].filter((k) => {
|
|
691
706
|
let A = !0;
|
|
692
707
|
return k.permissions?.forEach((R) => {
|
|
693
|
-
R.permissionId !== void 0 && R.permissionId ===
|
|
708
|
+
R.permissionId !== void 0 && R.permissionId === x?.nodeProps?.permissionId && k.permissions.length === 1 && R?.types?.length === 1 && R.types[0] === ue(F, p) && (A = !1);
|
|
694
709
|
}), A;
|
|
695
710
|
}).map((k) => {
|
|
696
|
-
const A =
|
|
697
|
-
return k.resourceId === A.resourceId ?
|
|
711
|
+
const A = x?.nodeProps?.owner;
|
|
712
|
+
return k.resourceId === A.resourceId ? x?.nodeProps?.types?.length === 1 ? {
|
|
698
713
|
...k,
|
|
699
|
-
permissions: [...(k.permissions ?? []).filter((R) => R.permissionId !==
|
|
714
|
+
permissions: [...(k.permissions ?? []).filter((R) => R.permissionId !== x?.nodeProps?.permissionId)]
|
|
700
715
|
} : {
|
|
701
716
|
...k,
|
|
702
|
-
permissions: (k.permissions ?? []).map((R) => R.actionId ===
|
|
717
|
+
permissions: (k.permissions ?? []).map((R) => R.actionId === x.value ? {
|
|
703
718
|
actionId: R.actionId,
|
|
704
719
|
actionDescription: R.actionDescription,
|
|
705
|
-
types: [...R.types?.filter((
|
|
720
|
+
types: [...R.types?.filter((V) => V && V !== ue(F, p)) ?? []]
|
|
706
721
|
} : R)
|
|
707
722
|
} : k;
|
|
708
723
|
}));
|
|
709
|
-
const
|
|
710
|
-
|
|
724
|
+
const i = O.filter((S) => S.value === x?.nodeProps?.owner?.resourceId).map((S) => S.children).flat(), l = i.map((S) => S.value).indexOf(x.value), $ = i.find((S, z) => S?.nodeProps?.types.includes(ue(F, p)) && S?.value !== x.value && (i.length > l + 1 ? z > l : !0));
|
|
725
|
+
$?.value && v.select($.value), te($);
|
|
711
726
|
});
|
|
712
|
-
}, [
|
|
713
|
-
return
|
|
714
|
-
c && r && (
|
|
715
|
-
}, [c,
|
|
716
|
-
/* @__PURE__ */ e.jsx(
|
|
727
|
+
}, [x, q, p, O, y, v]);
|
|
728
|
+
return Ee(() => {
|
|
729
|
+
c && r && (g(void 0), te(void 0), ae(""), N(""), v.collapseAllNodes(), u.collapseAllNodes(), m());
|
|
730
|
+
}, [c, p, o, m]), r ? /* @__PURE__ */ e.jsx(ke, { opened: c, onClose: j, title: `${a().t(`archbase:${p}`)}: ${C}`, size: "80%", styles: { root: { overflow: "hidden" } }, children: /* @__PURE__ */ e.jsxs(ot, { height: "540px", children: [
|
|
731
|
+
/* @__PURE__ */ e.jsx(st, { children: /* @__PURE__ */ e.jsx(Re, { h: "500px", children: /* @__PURE__ */ e.jsx(X, { withBorder: !0, my: 20, p: 20, children: /* @__PURE__ */ e.jsxs(T, { columns: 20, children: [
|
|
717
732
|
/* @__PURE__ */ e.jsxs(T.Col, { span: 9, children: [
|
|
718
|
-
/* @__PURE__ */ e.jsxs(
|
|
719
|
-
/* @__PURE__ */ e.jsx(H, { children:
|
|
733
|
+
/* @__PURE__ */ e.jsxs(G, { mb: 20, children: [
|
|
734
|
+
/* @__PURE__ */ e.jsx(H, { children: a().t("archbase:Available") }),
|
|
720
735
|
/* @__PURE__ */ e.jsx(
|
|
721
|
-
|
|
736
|
+
Ke,
|
|
722
737
|
{
|
|
723
738
|
size: "xs",
|
|
724
739
|
value: J,
|
|
725
|
-
onChange: (
|
|
726
|
-
placeholder:
|
|
740
|
+
onChange: (i) => ae(i.target.value),
|
|
741
|
+
placeholder: a().t("archbase:Filter available permissions")
|
|
727
742
|
}
|
|
728
743
|
)
|
|
729
744
|
] }),
|
|
730
745
|
/* @__PURE__ */ e.jsx(
|
|
731
|
-
|
|
746
|
+
_e,
|
|
732
747
|
{
|
|
733
|
-
data:
|
|
748
|
+
data: f,
|
|
734
749
|
selectOnClick: !0,
|
|
735
750
|
allowRangeSelection: !1,
|
|
736
751
|
tree: u,
|
|
737
|
-
renderNode: ({ level:
|
|
738
|
-
const A =
|
|
739
|
-
|
|
740
|
-
}, [
|
|
752
|
+
renderNode: ({ level: i, node: l, expanded: $, hasChildren: S, selected: z, elementProps: k }) => {
|
|
753
|
+
const A = l?.nodeProps?.granted, R = A ? "dimmed" : void 0, V = A ? "line-through" : void 0, $e = ge((W) => {
|
|
754
|
+
g(l), k.onClick(W);
|
|
755
|
+
}, [l, k.onClick]);
|
|
741
756
|
return /* @__PURE__ */ e.jsxs(
|
|
742
|
-
|
|
757
|
+
G,
|
|
743
758
|
{
|
|
744
759
|
ml: S ? 0 : 5,
|
|
745
760
|
gap: 5,
|
|
746
761
|
...k,
|
|
747
|
-
bg: z &&
|
|
748
|
-
onClick:
|
|
762
|
+
bg: z && i === 2 ? w : "",
|
|
763
|
+
onClick: $e,
|
|
749
764
|
children: [
|
|
750
765
|
S && /* @__PURE__ */ e.jsx(
|
|
751
|
-
|
|
766
|
+
tr,
|
|
752
767
|
{
|
|
753
768
|
size: 18,
|
|
754
|
-
style: { transform:
|
|
769
|
+
style: { transform: $ ? "rotate(0deg)" : "rotate(-90deg)" }
|
|
755
770
|
}
|
|
756
771
|
),
|
|
757
772
|
!S && /* @__PURE__ */ e.jsx(
|
|
@@ -765,8 +780,8 @@ function Ve({ dataSource: r, opened: c, close: g }) {
|
|
|
765
780
|
H,
|
|
766
781
|
{
|
|
767
782
|
c: R,
|
|
768
|
-
td:
|
|
769
|
-
children:
|
|
783
|
+
td: V,
|
|
784
|
+
children: ir(l.label)
|
|
770
785
|
}
|
|
771
786
|
)
|
|
772
787
|
]
|
|
@@ -777,47 +792,47 @@ function Ve({ dataSource: r, opened: c, close: g }) {
|
|
|
777
792
|
)
|
|
778
793
|
] }),
|
|
779
794
|
/* @__PURE__ */ e.jsx(T.Col, { span: 2, children: /* @__PURE__ */ e.jsxs(ne, { gap: 5, style: { minWidth: "10%" }, justify: "center", align: "center", h: "100%", children: [
|
|
780
|
-
/* @__PURE__ */ e.jsx(ie, { label:
|
|
781
|
-
/* @__PURE__ */ e.jsx(ie, { label:
|
|
795
|
+
/* @__PURE__ */ e.jsx(ie, { label: a().t("archbase:Add"), children: /* @__PURE__ */ e.jsx(B, { onClick: he, disabled: !n || n?.nodeProps?.granted || !n.nodeProps, children: /* @__PURE__ */ e.jsx(ur, {}) }) }),
|
|
796
|
+
/* @__PURE__ */ e.jsx(ie, { label: a().t("archbase:Remove"), children: /* @__PURE__ */ e.jsx(B, { onClick: ce, disabled: !x || !x?.nodeProps?.permissionId || !x.nodeProps, children: /* @__PURE__ */ e.jsx(hr, {}) }) })
|
|
782
797
|
] }) }),
|
|
783
798
|
/* @__PURE__ */ e.jsxs(T.Col, { span: 9, children: [
|
|
784
|
-
/* @__PURE__ */ e.jsxs(
|
|
785
|
-
/* @__PURE__ */ e.jsx(H, { children:
|
|
799
|
+
/* @__PURE__ */ e.jsxs(G, { mb: 20, children: [
|
|
800
|
+
/* @__PURE__ */ e.jsx(H, { children: a().t("archbase:Granted") }),
|
|
786
801
|
/* @__PURE__ */ e.jsx(
|
|
787
|
-
|
|
802
|
+
Ke,
|
|
788
803
|
{
|
|
789
804
|
size: "xs",
|
|
790
|
-
value:
|
|
791
|
-
onChange: (
|
|
792
|
-
placeholder:
|
|
805
|
+
value: P,
|
|
806
|
+
onChange: (i) => N(i.target.value),
|
|
807
|
+
placeholder: a().t("archbase:Filter granted permissions")
|
|
793
808
|
}
|
|
794
809
|
)
|
|
795
810
|
] }),
|
|
796
811
|
/* @__PURE__ */ e.jsx(
|
|
797
|
-
|
|
812
|
+
_e,
|
|
798
813
|
{
|
|
799
814
|
data: O,
|
|
800
815
|
selectOnClick: !0,
|
|
801
816
|
allowRangeSelection: !1,
|
|
802
|
-
tree:
|
|
803
|
-
renderNode: ({ level:
|
|
817
|
+
tree: v,
|
|
818
|
+
renderNode: ({ level: i, node: l, expanded: $, hasChildren: S, selected: z, elementProps: k }) => {
|
|
804
819
|
const A = ge((R) => {
|
|
805
|
-
|
|
806
|
-
}, [
|
|
820
|
+
te(l), k.onClick(R);
|
|
821
|
+
}, [l, k.onClick]);
|
|
807
822
|
return /* @__PURE__ */ e.jsxs(
|
|
808
|
-
|
|
823
|
+
G,
|
|
809
824
|
{
|
|
810
825
|
ml: S ? 0 : 5,
|
|
811
826
|
gap: 5,
|
|
812
827
|
...k,
|
|
813
|
-
bg: z &&
|
|
828
|
+
bg: z && i === 2 ? w : "",
|
|
814
829
|
onClick: A,
|
|
815
830
|
children: [
|
|
816
831
|
S && /* @__PURE__ */ e.jsx(
|
|
817
|
-
|
|
832
|
+
tr,
|
|
818
833
|
{
|
|
819
834
|
size: 18,
|
|
820
|
-
style: { transform:
|
|
835
|
+
style: { transform: $ ? "rotate(0deg)" : "rotate(-90deg)" }
|
|
821
836
|
}
|
|
822
837
|
),
|
|
823
838
|
!S && /* @__PURE__ */ e.jsx(
|
|
@@ -827,10 +842,10 @@ function Ve({ dataSource: r, opened: c, close: g }) {
|
|
|
827
842
|
style: { transform: "rotate(-90deg)", marginTop: "-5px" }
|
|
828
843
|
}
|
|
829
844
|
),
|
|
830
|
-
/* @__PURE__ */ e.jsx(H, { children:
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
845
|
+
/* @__PURE__ */ e.jsx(H, { children: ir(l.label) }),
|
|
846
|
+
l?.nodeProps?.types?.includes("USER") && /* @__PURE__ */ e.jsx(Ae, { color: "blue", children: a().t("archbase:user") }),
|
|
847
|
+
l?.nodeProps?.types?.includes("GROUP") && /* @__PURE__ */ e.jsx(Ae, { color: "orange", children: a().t("archbase:group") }),
|
|
848
|
+
l?.nodeProps?.types?.includes("PROFILE") && /* @__PURE__ */ e.jsx(Ae, { color: "pink", children: a().t("archbase:profile") })
|
|
834
849
|
]
|
|
835
850
|
}
|
|
836
851
|
);
|
|
@@ -839,19 +854,19 @@ function Ve({ dataSource: r, opened: c, close: g }) {
|
|
|
839
854
|
)
|
|
840
855
|
] })
|
|
841
856
|
] }) }) }) }),
|
|
842
|
-
/* @__PURE__ */ e.jsx(
|
|
857
|
+
/* @__PURE__ */ e.jsx(nt, { size: "40px", children: /* @__PURE__ */ e.jsx(G, { justify: "flex-end", children: /* @__PURE__ */ e.jsx(U, { onClick: j, children: a().t("archbase:Close") }) }) })
|
|
843
858
|
] }) }) : null;
|
|
844
859
|
}
|
|
845
|
-
const
|
|
846
|
-
function
|
|
860
|
+
const Ne = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABMCAMAAAD5ogFjAAABj1BMVEUAAADMzMzLy8vAwMDLy8vLy8vLy8vMzMzKysrR0dHPz8/MzMzNzc3KysrMzMzKysrLy8vLy8vLy8vJycnR0dHMzMzPz8/Ozs7MzMxPT0/Nzc1UVFTJyclTU1PMzMzKysrMzMzJycldXV1iYmLMzMzIyMhNTU1NTU3MzMzLy8vNzc3MzMxVVVXLy8vMzMzLy8vLy8tNTU3MzMzOzs5QUFDLy8vKyspRUVFRUVHMzMxZWVlycnLLy8tUVFTJycnKyspZWVlXV1dhYWHGxsZMTExQUFBPT0/Ozs7Ly8vPz89SUlJSUlLMzMxVVVVWVlZVVVXKysptbW1bW1t6enpmZmbLy8tKSkrQ0NDOzs5FRUXNzc1NTU3S0tLU1NRHR0dSUlKzs7ORkZF4eHhPT0/Jycm9vb26urp8fHxYWFisrKylpaWdnZ11dXVubm5fX1+8vLy3t7ehoaFkZGRVVVXBwcG/v7+vr6+ZmZmUlJSNjY2GhoZzc3NcXFzGxsbDw8Ofn5+WlpaBgYGwsLCpqalqampaWRCJAAAAVXRSTlMA+YUG1M7Df1AQ8urbdWdiXjo2HQkE+/vu4qqIcV1bRDEpIRwXFO/q2ZiObWJZSiv+9uTe3cq8s6qkgX55b1pWR0YVDfvJyLCcmZWTi2lZVz82LRcUQGGNCgAAA9pJREFUWMPll2db2zAQgJ0AgUIYDSl7tZRZ6N57793akizZCSSEEJKw9yi0/eHtEwgid5IxfOX9mnvenM93J8s4tZw5391Q3/Hu0mj3lTMnllys+hi6HqBCCCIEDVwPDVddPEEqXW9qiEOoeQAlDqlpGz1eYo2VYSFsE2ELcSPY6FvTV1njUFMDdVqCff48DWGgAdhOuMtPie8JrUaWq+3I5zs76Jg+cG50e3seVxPTF6S63svT0URNn1BSqffUEhvHE/ofgn8x9aZLKJpcja/sZnO57Pp0yqbIVKv2VDUBD93amedsn0QuA1U2eazynG8BceRPnrnWAczdmAERtLoHe6IhAaJWLWaVwNLLBPxXxQskCjogZse1ICz2G+TkDKNGbAb5THELwzaXQB2bzpZ6zt0GD5acZ5bKNA4LGSorET2BDz/NLDVT0FQywGW34GT81YhYForKo4dbCHjsVMLSEJuxgWnUkMAKkTmmE7E52ExhuX2vBGDzj+lFa7AKzRHUQ1K0qheNQZETPHj3FQSKfulF0zCYlpcVpyyAlseypcOdojC6uThxdQLt94mYTpRI2WjvduyL3kqRbGxXk1A+iYJFmywRhEyCIuEZwUXqq7Hxb+M60QYOtlsaZa3BT7PazuZxisP3VkA3/MX79a8QHH5574iWtfbZ2RDRUBDVA5HPzsbvvw6LaMZraLGodu9YdEzPhsRrBCIq985FLDKpto8mKY4WD+VWQymlXWVjpydshaiuILpcEKGxjSkfLE4VwaSqIOq5aioQ40w1IMRUEUEjgrctXkaqEZFDi1lccL1fGd5s94RKRLMMJZSTHrBGcEfiMxJ3Ne5HeYhg7CX03vgsVUZGiuesLBJqSrzUcNxgFBxHMGA2gVeRAjFkFOkJmCqSebekqzeTyrDmQ182IV8NEJtQNtytc+irBn5rwUHLqMJEvSGJlitCCCr2BsVRNFzyGdklcEQcHwAZop58SRmqEt2aZ3iJpChMuyJqlPC1CQRs51RDm08RdIAAhpzD6dCpvPpjNJ2hh5NyhvCFb5DIq0F83NKd/VY2LlWkXHFXjlTTfU1qlzNLC+OTs8Tev0JElHfZQkpkaT0GNEiVWJ8oqIjm8vdQ2GR7bAFrsGphbZHYQnthC5orm8y1fOCy9Fhy2NDyANVYr3IfGB6MXOM+Rdc+GZ48venLxG8+M46g9y734bl7wTiazlZ+hKZ1xPBFb/sA99D0t/cafrnQ3sq50sJb2+FTefOz804/50DC+++MPDeOTe+XD68GeJGXA6/ff4bJ+OfHt2edj+7ff9T59Ptz47TyD0dpv5fjoIC3AAAAAElFTkSuQmCC", bt = (r) => r.groups ? /* @__PURE__ */ e.jsx("div", { style: { display: "flex" }, children: r.groups ? r.groups.map((c, j) => /* @__PURE__ */ e.jsx("div", { style: { paddingRight: "2px" }, children: /* @__PURE__ */ e.jsx(Ae, { color: "blue", children: c.group?.name }) }, j)) : null }) : null, jt = (r) => r.profile ? /* @__PURE__ */ e.jsx(Ae, { color: "green", children: r.profile?.name }) : null;
|
|
861
|
+
function Ft({
|
|
847
862
|
height: r = "400px",
|
|
848
863
|
width: c = "100%",
|
|
849
|
-
createEntitiesWithId:
|
|
850
|
-
userModalOptions:
|
|
851
|
-
profileModalOptions:
|
|
852
|
-
groupModalOptions:
|
|
864
|
+
createEntitiesWithId: j = !0,
|
|
865
|
+
userModalOptions: C,
|
|
866
|
+
profileModalOptions: o,
|
|
867
|
+
groupModalOptions: p
|
|
853
868
|
}) {
|
|
854
|
-
const u =
|
|
869
|
+
const u = cr(), v = dr("securityStore"), E = Wr(), { colorScheme: h } = Oe(), [y, I] = M(void 0), [n, g] = M("users"), x = ee(K.User), te = ee(K.Group), J = ee(K.Resource), ae = ee(K.Profile), [Q, P] = M(""), [N, D] = M(""), q = ee(K.AccessToken), { t: s } = qr(), w = le(
|
|
855
870
|
"ArchbaseSecurityView-Users",
|
|
856
871
|
void 0,
|
|
857
872
|
// Will be set when dsUsers is available
|
|
@@ -869,91 +884,91 @@ function Fa({
|
|
|
869
884
|
// Will be set when dsProfiles is available
|
|
870
885
|
void 0,
|
|
871
886
|
void 0
|
|
872
|
-
),
|
|
887
|
+
), f = ye(null), m = ye(null), he = ye(null), ce = ye(null), i = ye(null), l = (t) => t.id, $ = (t) => t.id, S = (t) => t.id, z = (t) => t.id, k = (t) => t.id, { dataSource: A, isLoading: R } = se({
|
|
873
888
|
name: "accessTokenApi",
|
|
874
889
|
service: q,
|
|
875
|
-
store:
|
|
890
|
+
store: v,
|
|
876
891
|
validator: E,
|
|
877
892
|
pageSize: 25,
|
|
878
893
|
loadOnStart: !0,
|
|
879
|
-
filter:
|
|
894
|
+
filter: ze(we.or(we.eq("revoked", "false"))),
|
|
880
895
|
sort: ["user.email", "expirationTime:desc"],
|
|
881
|
-
onLoadComplete: (
|
|
896
|
+
onLoadComplete: (t) => {
|
|
882
897
|
},
|
|
883
|
-
onDestroy: (
|
|
898
|
+
onDestroy: (t) => {
|
|
884
899
|
},
|
|
885
|
-
onError: (
|
|
886
|
-
|
|
900
|
+
onError: (t, L) => {
|
|
901
|
+
I(t), Y.showError(`${s("archbase:WARNING")}`, t, L);
|
|
887
902
|
}
|
|
888
|
-
}), { dataSource:
|
|
903
|
+
}), { dataSource: V, isLoading: $e } = se({
|
|
889
904
|
name: "dsUsers",
|
|
890
|
-
service:
|
|
891
|
-
store:
|
|
905
|
+
service: x,
|
|
906
|
+
store: v,
|
|
892
907
|
validator: E,
|
|
893
908
|
pageSize: 25,
|
|
894
909
|
loadOnStart: !0,
|
|
895
|
-
onLoadComplete: (
|
|
910
|
+
onLoadComplete: (t) => {
|
|
896
911
|
},
|
|
897
|
-
onDestroy: (
|
|
912
|
+
onDestroy: (t) => {
|
|
898
913
|
},
|
|
899
|
-
onError: (
|
|
900
|
-
|
|
914
|
+
onError: (t, L) => {
|
|
915
|
+
I(t), Y.showError(`${s("archbase:WARNING")}`, t, L);
|
|
901
916
|
}
|
|
902
|
-
}), { dataSource: W, isLoading:
|
|
917
|
+
}), { dataSource: W, isLoading: pr } = se({
|
|
903
918
|
name: "dsGroups",
|
|
904
|
-
service:
|
|
905
|
-
store:
|
|
919
|
+
service: te,
|
|
920
|
+
store: v,
|
|
906
921
|
validator: E,
|
|
907
922
|
pageSize: 25,
|
|
908
923
|
loadOnStart: !0,
|
|
909
|
-
onLoadComplete: (
|
|
924
|
+
onLoadComplete: (t) => {
|
|
910
925
|
},
|
|
911
|
-
onDestroy: (
|
|
926
|
+
onDestroy: (t) => {
|
|
912
927
|
},
|
|
913
|
-
onError: (
|
|
914
|
-
|
|
928
|
+
onError: (t, L) => {
|
|
929
|
+
I(t), Y.showError(`${s("archbase:WARNING")}`, t, L);
|
|
915
930
|
}
|
|
916
|
-
}), { dataSource: Z, isLoading:
|
|
931
|
+
}), { dataSource: Z, isLoading: xr } = se({
|
|
917
932
|
name: "dsProfile",
|
|
918
|
-
service:
|
|
919
|
-
store:
|
|
933
|
+
service: ae,
|
|
934
|
+
store: v,
|
|
920
935
|
validator: E,
|
|
921
936
|
pageSize: 25,
|
|
922
937
|
loadOnStart: !0,
|
|
923
|
-
onLoadComplete: (
|
|
938
|
+
onLoadComplete: (t) => {
|
|
924
939
|
},
|
|
925
|
-
onDestroy: (
|
|
940
|
+
onDestroy: (t) => {
|
|
926
941
|
},
|
|
927
|
-
onError: (
|
|
928
|
-
|
|
942
|
+
onError: (t, L) => {
|
|
943
|
+
I(t), Y.showError(`${s("archbase:WARNING")}`, t, L);
|
|
929
944
|
}
|
|
930
|
-
}), { dataSource:
|
|
945
|
+
}), { dataSource: mr, isLoading: fr } = se({
|
|
931
946
|
name: "dsResources",
|
|
932
947
|
service: J,
|
|
933
|
-
store:
|
|
948
|
+
store: v,
|
|
934
949
|
validator: E,
|
|
935
950
|
pageSize: 25,
|
|
936
951
|
loadOnStart: !0,
|
|
937
|
-
onLoadComplete: (
|
|
952
|
+
onLoadComplete: (t) => {
|
|
938
953
|
},
|
|
939
|
-
onDestroy: (
|
|
954
|
+
onDestroy: (t) => {
|
|
940
955
|
},
|
|
941
|
-
onError: (
|
|
942
|
-
|
|
956
|
+
onError: (t, L) => {
|
|
957
|
+
I(t), Y.showError(`${s("archbase:WARNING")}`, t, L);
|
|
943
958
|
}
|
|
944
|
-
}),
|
|
959
|
+
}), Se = `calc(${r} - 40px)`, br = /* @__PURE__ */ e.jsxs(be, { children: [
|
|
945
960
|
/* @__PURE__ */ e.jsx(
|
|
946
|
-
|
|
961
|
+
b,
|
|
947
962
|
{
|
|
948
963
|
dataField: "user.avatar",
|
|
949
964
|
dataType: "image",
|
|
950
965
|
size: 80,
|
|
951
|
-
header: `${
|
|
952
|
-
render: (
|
|
966
|
+
header: `${s("archbase:Foto")}`,
|
|
967
|
+
render: (t) => /* @__PURE__ */ e.jsx(
|
|
953
968
|
"img",
|
|
954
969
|
{
|
|
955
970
|
style: { borderRadius: 50, height: "32px", maxHeight: "32px" },
|
|
956
|
-
src:
|
|
971
|
+
src: t.row.user && t.row.user.avatar ? atob(t.row.user.avatar) : Ne
|
|
957
972
|
}
|
|
958
973
|
),
|
|
959
974
|
inputFilterType: "text",
|
|
@@ -961,77 +976,77 @@ function Fa({
|
|
|
961
976
|
}
|
|
962
977
|
),
|
|
963
978
|
/* @__PURE__ */ e.jsx(
|
|
964
|
-
|
|
979
|
+
b,
|
|
965
980
|
{
|
|
966
981
|
dataField: "user.userName",
|
|
967
982
|
dataType: "text",
|
|
968
983
|
size: 300,
|
|
969
|
-
header: `${
|
|
984
|
+
header: `${s("archbase:Nome de Usuário")}`,
|
|
970
985
|
inputFilterType: "text"
|
|
971
986
|
}
|
|
972
987
|
),
|
|
973
988
|
/* @__PURE__ */ e.jsx(
|
|
974
|
-
|
|
989
|
+
b,
|
|
975
990
|
{
|
|
976
991
|
dataField: "user.email",
|
|
977
992
|
dataType: "text",
|
|
978
|
-
header: `${
|
|
993
|
+
header: `${s("archbase:Email")}`,
|
|
979
994
|
size: 300,
|
|
980
995
|
inputFilterType: "text"
|
|
981
996
|
}
|
|
982
997
|
),
|
|
983
998
|
/* @__PURE__ */ e.jsx(
|
|
984
|
-
|
|
999
|
+
b,
|
|
985
1000
|
{
|
|
986
1001
|
dataField: "expirationDate",
|
|
987
1002
|
dataType: "text",
|
|
988
1003
|
size: 300,
|
|
989
|
-
header: `${
|
|
990
|
-
render: (
|
|
1004
|
+
header: `${s("archbase:Expira em")}`,
|
|
1005
|
+
render: (t) => /* @__PURE__ */ e.jsx(H, { size: "sm", children: t.row.expirationDate }),
|
|
991
1006
|
inputFilterType: "text"
|
|
992
1007
|
}
|
|
993
1008
|
),
|
|
994
1009
|
/* @__PURE__ */ e.jsx(
|
|
995
|
-
|
|
1010
|
+
b,
|
|
996
1011
|
{
|
|
997
1012
|
dataField: "revoked",
|
|
998
1013
|
dataType: "boolean",
|
|
999
|
-
header: `${
|
|
1014
|
+
header: `${s("archbase:Revogado ?")}`,
|
|
1000
1015
|
inputFilterType: "checkbox"
|
|
1001
1016
|
}
|
|
1002
1017
|
),
|
|
1003
1018
|
/* @__PURE__ */ e.jsx(
|
|
1004
|
-
|
|
1019
|
+
b,
|
|
1005
1020
|
{
|
|
1006
1021
|
dataField: "expired",
|
|
1007
1022
|
dataType: "boolean",
|
|
1008
|
-
header: `${
|
|
1023
|
+
header: `${s("archbase:Expirado ?")}`,
|
|
1009
1024
|
inputFilterType: "checkbox"
|
|
1010
1025
|
}
|
|
1011
1026
|
),
|
|
1012
1027
|
/* @__PURE__ */ e.jsx(
|
|
1013
|
-
|
|
1028
|
+
b,
|
|
1014
1029
|
{
|
|
1015
1030
|
dataField: "token",
|
|
1016
1031
|
dataType: "text",
|
|
1017
|
-
header: `${
|
|
1032
|
+
header: `${s("archbase:Token Acesso")}`,
|
|
1018
1033
|
size: 300,
|
|
1019
1034
|
inputFilterType: "text"
|
|
1020
1035
|
}
|
|
1021
1036
|
)
|
|
1022
|
-
] }),
|
|
1037
|
+
] }), jr = /* @__PURE__ */ e.jsxs(be, { children: [
|
|
1023
1038
|
/* @__PURE__ */ e.jsx(
|
|
1024
|
-
|
|
1039
|
+
b,
|
|
1025
1040
|
{
|
|
1026
1041
|
dataField: "avatar",
|
|
1027
1042
|
dataType: "image",
|
|
1028
1043
|
size: 80,
|
|
1029
|
-
header: `${
|
|
1030
|
-
render: (
|
|
1044
|
+
header: `${s("archbase:Foto")}`,
|
|
1045
|
+
render: (t) => /* @__PURE__ */ e.jsx(
|
|
1031
1046
|
"img",
|
|
1032
1047
|
{
|
|
1033
1048
|
style: { borderRadius: 50, height: "32px", maxHeight: "32px" },
|
|
1034
|
-
src:
|
|
1049
|
+
src: t.row.avatar ? atob(t.row.avatar) : Ne
|
|
1035
1050
|
}
|
|
1036
1051
|
),
|
|
1037
1052
|
enableSorting: !1,
|
|
@@ -1041,337 +1056,337 @@ function Fa({
|
|
|
1041
1056
|
}
|
|
1042
1057
|
),
|
|
1043
1058
|
/* @__PURE__ */ e.jsx(
|
|
1044
|
-
|
|
1059
|
+
b,
|
|
1045
1060
|
{
|
|
1046
1061
|
dataField: "name",
|
|
1047
1062
|
dataType: "text",
|
|
1048
1063
|
size: 300,
|
|
1049
|
-
header: `${
|
|
1064
|
+
header: `${s("archbase:Nome")}`,
|
|
1050
1065
|
inputFilterType: "text"
|
|
1051
1066
|
}
|
|
1052
1067
|
),
|
|
1053
1068
|
/* @__PURE__ */ e.jsx(
|
|
1054
|
-
|
|
1069
|
+
b,
|
|
1055
1070
|
{
|
|
1056
1071
|
dataField: "nickname",
|
|
1057
1072
|
dataType: "text",
|
|
1058
1073
|
size: 120,
|
|
1059
|
-
header: `${
|
|
1074
|
+
header: `${s("archbase:Apelido")}`,
|
|
1060
1075
|
inputFilterType: "text"
|
|
1061
1076
|
}
|
|
1062
1077
|
),
|
|
1063
1078
|
/* @__PURE__ */ e.jsx(
|
|
1064
|
-
|
|
1079
|
+
b,
|
|
1065
1080
|
{
|
|
1066
1081
|
dataField: "email",
|
|
1067
1082
|
dataType: "text",
|
|
1068
|
-
header: `${
|
|
1083
|
+
header: `${s("archbase:Email")}`,
|
|
1069
1084
|
size: 300,
|
|
1070
1085
|
inputFilterType: "text"
|
|
1071
1086
|
}
|
|
1072
1087
|
),
|
|
1073
1088
|
/* @__PURE__ */ e.jsx(
|
|
1074
|
-
|
|
1089
|
+
b,
|
|
1075
1090
|
{
|
|
1076
1091
|
dataField: "profile.name",
|
|
1077
1092
|
dataType: "text",
|
|
1078
|
-
header: `${
|
|
1093
|
+
header: `${s("archbase:Perfil")}`,
|
|
1079
1094
|
size: 200,
|
|
1080
|
-
render: (
|
|
1095
|
+
render: (t) => jt(t.row),
|
|
1081
1096
|
inputFilterType: "text"
|
|
1082
1097
|
}
|
|
1083
1098
|
),
|
|
1084
1099
|
/* @__PURE__ */ e.jsx(
|
|
1085
|
-
|
|
1100
|
+
b,
|
|
1086
1101
|
{
|
|
1087
1102
|
dataField: "groups",
|
|
1088
1103
|
dataType: "text",
|
|
1089
1104
|
size: 300,
|
|
1090
|
-
header: `${
|
|
1091
|
-
render: (
|
|
1105
|
+
header: `${s("archbase:Grupos")}`,
|
|
1106
|
+
render: (t) => bt(t.row),
|
|
1092
1107
|
enableSorting: !1,
|
|
1093
1108
|
enableColumnFilter: !1,
|
|
1094
1109
|
enableGlobalFilter: !1
|
|
1095
1110
|
}
|
|
1096
1111
|
),
|
|
1097
1112
|
/* @__PURE__ */ e.jsx(
|
|
1098
|
-
|
|
1113
|
+
b,
|
|
1099
1114
|
{
|
|
1100
1115
|
dataField: "isAdministrator",
|
|
1101
1116
|
dataType: "boolean",
|
|
1102
|
-
header: `${
|
|
1117
|
+
header: `${s("archbase:Admin ?")}`,
|
|
1103
1118
|
inputFilterType: "checkbox"
|
|
1104
1119
|
}
|
|
1105
1120
|
),
|
|
1106
1121
|
/* @__PURE__ */ e.jsx(
|
|
1107
|
-
|
|
1122
|
+
b,
|
|
1108
1123
|
{
|
|
1109
1124
|
dataField: "changePasswordOnNextLogin",
|
|
1110
1125
|
dataType: "boolean",
|
|
1111
|
-
header: `${
|
|
1126
|
+
header: `${s("archbase:Alt.senha próximo login?")}`,
|
|
1112
1127
|
inputFilterType: "checkbox",
|
|
1113
1128
|
size: 120
|
|
1114
1129
|
}
|
|
1115
1130
|
),
|
|
1116
1131
|
/* @__PURE__ */ e.jsx(
|
|
1117
|
-
|
|
1132
|
+
b,
|
|
1118
1133
|
{
|
|
1119
1134
|
dataField: "allowPasswordChange",
|
|
1120
1135
|
dataType: "boolean",
|
|
1121
|
-
header: `${
|
|
1136
|
+
header: `${s("archbase:Pode alterar senha?")}`,
|
|
1122
1137
|
inputFilterType: "checkbox",
|
|
1123
1138
|
size: 120
|
|
1124
1139
|
}
|
|
1125
1140
|
),
|
|
1126
1141
|
/* @__PURE__ */ e.jsx(
|
|
1127
|
-
|
|
1142
|
+
b,
|
|
1128
1143
|
{
|
|
1129
1144
|
dataField: "allowMultipleLogins",
|
|
1130
1145
|
dataType: "boolean",
|
|
1131
|
-
header: `${
|
|
1146
|
+
header: `${s("archbase:Permite multiplos logins?")}`,
|
|
1132
1147
|
inputFilterType: "checkbox",
|
|
1133
1148
|
size: 120
|
|
1134
1149
|
}
|
|
1135
1150
|
),
|
|
1136
1151
|
/* @__PURE__ */ e.jsx(
|
|
1137
|
-
|
|
1152
|
+
b,
|
|
1138
1153
|
{
|
|
1139
1154
|
dataField: "passwordNeverExpires",
|
|
1140
1155
|
dataType: "boolean",
|
|
1141
|
-
header: `${
|
|
1156
|
+
header: `${s("archbase:Senha nunca expira?")}`,
|
|
1142
1157
|
inputFilterType: "checkbox",
|
|
1143
1158
|
size: 120
|
|
1144
1159
|
}
|
|
1145
1160
|
),
|
|
1146
1161
|
/* @__PURE__ */ e.jsx(
|
|
1147
|
-
|
|
1162
|
+
b,
|
|
1148
1163
|
{
|
|
1149
1164
|
dataField: "accountDeactivated",
|
|
1150
1165
|
dataType: "boolean",
|
|
1151
|
-
header: `${
|
|
1166
|
+
header: `${s("archbase:Desativado?")}`,
|
|
1152
1167
|
inputFilterType: "checkbox",
|
|
1153
1168
|
size: 120
|
|
1154
1169
|
}
|
|
1155
1170
|
),
|
|
1156
1171
|
/* @__PURE__ */ e.jsx(
|
|
1157
|
-
|
|
1172
|
+
b,
|
|
1158
1173
|
{
|
|
1159
1174
|
dataField: "accountLocked",
|
|
1160
1175
|
dataType: "boolean",
|
|
1161
|
-
header: `${
|
|
1176
|
+
header: `${s("archbase:Bloqueado?")}`,
|
|
1162
1177
|
inputFilterType: "checkbox",
|
|
1163
1178
|
size: 120
|
|
1164
1179
|
}
|
|
1165
1180
|
),
|
|
1166
1181
|
/* @__PURE__ */ e.jsx(
|
|
1167
|
-
|
|
1182
|
+
b,
|
|
1168
1183
|
{
|
|
1169
1184
|
dataField: "unlimitedAccessHours",
|
|
1170
1185
|
dataType: "boolean",
|
|
1171
|
-
header: `${
|
|
1186
|
+
header: `${s("archbase:Horário acesso ilimitado?")}`,
|
|
1172
1187
|
inputFilterType: "checkbox",
|
|
1173
1188
|
size: 140
|
|
1174
1189
|
}
|
|
1175
1190
|
)
|
|
1176
|
-
] }),
|
|
1191
|
+
] }), gr = /* @__PURE__ */ e.jsxs(be, { children: [
|
|
1177
1192
|
/* @__PURE__ */ e.jsx(
|
|
1178
|
-
|
|
1193
|
+
b,
|
|
1179
1194
|
{
|
|
1180
1195
|
dataField: "name",
|
|
1181
1196
|
dataType: "text",
|
|
1182
1197
|
size: 300,
|
|
1183
|
-
header: `${
|
|
1198
|
+
header: `${s("archbase:Nome do grupo")}`,
|
|
1184
1199
|
inputFilterType: "text"
|
|
1185
1200
|
}
|
|
1186
1201
|
),
|
|
1187
1202
|
/* @__PURE__ */ e.jsx(
|
|
1188
|
-
|
|
1203
|
+
b,
|
|
1189
1204
|
{
|
|
1190
1205
|
dataField: "description",
|
|
1191
1206
|
dataType: "text",
|
|
1192
|
-
header: `${
|
|
1207
|
+
header: `${s("archbase:Descrição")}`,
|
|
1193
1208
|
size: 800,
|
|
1194
1209
|
inputFilterType: "text"
|
|
1195
1210
|
}
|
|
1196
1211
|
)
|
|
1197
|
-
] }),
|
|
1212
|
+
] }), yr = /* @__PURE__ */ e.jsxs(be, { children: [
|
|
1198
1213
|
/* @__PURE__ */ e.jsx(
|
|
1199
|
-
|
|
1214
|
+
b,
|
|
1200
1215
|
{
|
|
1201
1216
|
dataField: "name",
|
|
1202
1217
|
dataType: "text",
|
|
1203
1218
|
size: 300,
|
|
1204
|
-
header: `${
|
|
1219
|
+
header: `${s("archbase:Nome do perfil")}`,
|
|
1205
1220
|
inputFilterType: "text"
|
|
1206
1221
|
}
|
|
1207
1222
|
),
|
|
1208
1223
|
/* @__PURE__ */ e.jsx(
|
|
1209
|
-
|
|
1224
|
+
b,
|
|
1210
1225
|
{
|
|
1211
1226
|
dataField: "description",
|
|
1212
1227
|
dataType: "text",
|
|
1213
|
-
header: `${
|
|
1228
|
+
header: `${s("archbase:Descrição")}`,
|
|
1214
1229
|
size: 800,
|
|
1215
1230
|
inputFilterType: "text"
|
|
1216
1231
|
}
|
|
1217
1232
|
)
|
|
1218
|
-
] }),
|
|
1233
|
+
] }), wr = /* @__PURE__ */ e.jsxs(be, { children: [
|
|
1219
1234
|
/* @__PURE__ */ e.jsx(
|
|
1220
|
-
|
|
1235
|
+
b,
|
|
1221
1236
|
{
|
|
1222
1237
|
dataField: "name",
|
|
1223
1238
|
dataType: "text",
|
|
1224
1239
|
size: 300,
|
|
1225
|
-
header: `${
|
|
1240
|
+
header: `${s("archbase:Nome do recurso")}`,
|
|
1226
1241
|
inputFilterType: "text"
|
|
1227
1242
|
}
|
|
1228
1243
|
),
|
|
1229
1244
|
/* @__PURE__ */ e.jsx(
|
|
1230
|
-
|
|
1245
|
+
b,
|
|
1231
1246
|
{
|
|
1232
1247
|
dataField: "description",
|
|
1233
1248
|
dataType: "text",
|
|
1234
|
-
header: `${
|
|
1249
|
+
header: `${s("archbase:Descrição")}`,
|
|
1235
1250
|
size: 800,
|
|
1236
1251
|
inputFilterType: "text"
|
|
1237
1252
|
}
|
|
1238
1253
|
)
|
|
1239
|
-
] }),
|
|
1240
|
-
const
|
|
1241
|
-
|
|
1242
|
-
},
|
|
1243
|
-
|
|
1244
|
-
},
|
|
1245
|
-
|
|
1246
|
-
`${
|
|
1247
|
-
`${
|
|
1254
|
+
] }), Sr = () => {
|
|
1255
|
+
const t = _r.newInstance();
|
|
1256
|
+
j || (t.id = void 0), V.insert(t), V && !w.isDataSourceV2 && w.v1State.forceUpdate(), P(F.USER);
|
|
1257
|
+
}, vr = (t) => {
|
|
1258
|
+
V.isEmpty() || V.gotoRecordByData(t) && (V.edit(), w.isDataSourceV2 || w.v1State.forceUpdate(), P(F.USER));
|
|
1259
|
+
}, Cr = (t) => {
|
|
1260
|
+
V.isEmpty() || V.gotoRecordByData(t) && _.showConfirmDialogYesNo(
|
|
1261
|
+
`${s("archbase:Confirme")}`,
|
|
1262
|
+
`${s("archbase:Deseja remover o usuário ")}${t.name} ?`,
|
|
1248
1263
|
() => {
|
|
1249
|
-
|
|
1264
|
+
V.remove(), w.isDataSourceV2 || w.v1State.forceUpdate();
|
|
1250
1265
|
},
|
|
1251
1266
|
() => {
|
|
1252
1267
|
}
|
|
1253
1268
|
);
|
|
1254
|
-
},
|
|
1255
|
-
|
|
1256
|
-
},
|
|
1257
|
-
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () =>
|
|
1258
|
-
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () =>
|
|
1259
|
-
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () =>
|
|
1260
|
-
/* @__PURE__ */ e.jsx(ie, { withinPortal: !0, withArrow: !0, position: "left", label: `${
|
|
1261
|
-
] }),
|
|
1262
|
-
const
|
|
1263
|
-
|
|
1264
|
-
},
|
|
1265
|
-
W.isEmpty() || W.gotoRecordByData(
|
|
1266
|
-
},
|
|
1267
|
-
W.isEmpty() || W.gotoRecordByData(
|
|
1268
|
-
`${
|
|
1269
|
-
`${
|
|
1269
|
+
}, Ar = (t) => {
|
|
1270
|
+
V.isEmpty() || V.gotoRecordByData(t) && P(F.USER);
|
|
1271
|
+
}, Tr = (t) => /* @__PURE__ */ e.jsxs(G, { gap: 1, wrap: "nowrap", children: [
|
|
1272
|
+
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Ar(t), children: /* @__PURE__ */ e.jsx(Ve, { size: 20, color: h === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
|
|
1273
|
+
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => vr(t), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: h === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
|
|
1274
|
+
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Cr(t), children: /* @__PURE__ */ e.jsx(Ce, { size: 20, color: h === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
|
|
1275
|
+
/* @__PURE__ */ e.jsx(ie, { withinPortal: !0, withArrow: !0, position: "left", label: `${s("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: He, children: /* @__PURE__ */ e.jsx(Le, { size: 20, color: h === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) })
|
|
1276
|
+
] }), kr = () => {
|
|
1277
|
+
const t = et.newInstance();
|
|
1278
|
+
j || (t.id = void 0), W.insert(t), W && !O.isDataSourceV2 && O.v1State.forceUpdate(), P(F.GROUP);
|
|
1279
|
+
}, Rr = (t) => {
|
|
1280
|
+
W.isEmpty() || W.gotoRecordByData(t) && (W.edit(), P(F.GROUP));
|
|
1281
|
+
}, Fr = (t) => {
|
|
1282
|
+
W.isEmpty() || W.gotoRecordByData(t) && _.showConfirmDialogYesNo(
|
|
1283
|
+
`${s("archbase:Confirme")}`,
|
|
1284
|
+
`${s("archbase:Deseja remover o grupo ")}${t.name} ?`,
|
|
1270
1285
|
() => {
|
|
1271
1286
|
W.remove();
|
|
1272
1287
|
},
|
|
1273
1288
|
() => {
|
|
1274
1289
|
}
|
|
1275
1290
|
);
|
|
1276
|
-
},
|
|
1277
|
-
W.isEmpty() || W.gotoRecordByData(
|
|
1278
|
-
},
|
|
1279
|
-
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () =>
|
|
1280
|
-
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () =>
|
|
1281
|
-
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () =>
|
|
1282
|
-
/* @__PURE__ */ e.jsx(ie, { withinPortal: !0, withArrow: !0, position: "left", label: `${
|
|
1283
|
-
] }),
|
|
1284
|
-
|
|
1285
|
-
}, Be = () => {
|
|
1286
|
-
D("");
|
|
1291
|
+
}, Ir = (t) => {
|
|
1292
|
+
W.isEmpty() || W.gotoRecordByData(t) && P(F.GROUP);
|
|
1293
|
+
}, Dr = (t) => /* @__PURE__ */ e.jsxs(G, { gap: 1, wrap: "nowrap", children: [
|
|
1294
|
+
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Ir(t), children: /* @__PURE__ */ e.jsx(Ve, { size: 20, color: h === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
|
|
1295
|
+
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Rr(t), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: h === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
|
|
1296
|
+
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Fr(t), children: /* @__PURE__ */ e.jsx(Ce, { size: 20, color: h === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
|
|
1297
|
+
/* @__PURE__ */ e.jsx(ie, { withinPortal: !0, withArrow: !0, position: "left", label: `${s("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: Je, children: /* @__PURE__ */ e.jsx(Le, { size: 20, color: h === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) })
|
|
1298
|
+
] }), Be = () => {
|
|
1299
|
+
P("");
|
|
1287
1300
|
}, We = () => {
|
|
1288
|
-
|
|
1301
|
+
P("");
|
|
1302
|
+
}, qe = () => {
|
|
1303
|
+
P("");
|
|
1289
1304
|
}, zr = () => {
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1292
|
-
}, Er = (
|
|
1293
|
-
Z.isEmpty() || Z.gotoRecordByData(
|
|
1294
|
-
},
|
|
1295
|
-
Z.isEmpty() || Z.gotoRecordByData(
|
|
1296
|
-
`${
|
|
1297
|
-
`${
|
|
1305
|
+
const t = rt.newInstance();
|
|
1306
|
+
j || (t.id = void 0), Z.insert(t), Z && !d.isDataSourceV2 && d.v1State.forceUpdate(), P(F.PROFILE);
|
|
1307
|
+
}, Er = (t) => {
|
|
1308
|
+
Z.isEmpty() || Z.gotoRecordByData(t) && (Z.edit(), P(F.PROFILE));
|
|
1309
|
+
}, Pr = (t) => {
|
|
1310
|
+
Z.isEmpty() || Z.gotoRecordByData(t) && _.showConfirmDialogYesNo(
|
|
1311
|
+
`${s("archbase:Confirme")}`,
|
|
1312
|
+
`${s("archbase:Deseja remover o perfil ")}${t.name} ?`,
|
|
1298
1313
|
() => {
|
|
1299
1314
|
Z.remove();
|
|
1300
1315
|
},
|
|
1301
1316
|
() => {
|
|
1302
1317
|
}
|
|
1303
1318
|
);
|
|
1304
|
-
},
|
|
1305
|
-
Z.isEmpty() || Z.gotoRecordByData(
|
|
1306
|
-
},
|
|
1307
|
-
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () =>
|
|
1308
|
-
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Er(
|
|
1309
|
-
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () =>
|
|
1310
|
-
/* @__PURE__ */ e.jsx(ie, { withinPortal: !0, withArrow: !0, position: "left", label: `${
|
|
1311
|
-
] }),
|
|
1319
|
+
}, $r = (t) => {
|
|
1320
|
+
Z.isEmpty() || Z.gotoRecordByData(t) && P(F.PROFILE);
|
|
1321
|
+
}, Gr = (t) => /* @__PURE__ */ e.jsxs(G, { gap: 1, wrap: "nowrap", children: [
|
|
1322
|
+
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => $r(t), children: /* @__PURE__ */ e.jsx(Ve, { size: 20, color: h === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
|
|
1323
|
+
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Er(t), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: h === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
|
|
1324
|
+
/* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Pr(t), children: /* @__PURE__ */ e.jsx(Ce, { size: 20, color: h === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
|
|
1325
|
+
/* @__PURE__ */ e.jsx(ie, { withinPortal: !0, withArrow: !0, position: "left", label: `${s("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: Ze, children: /* @__PURE__ */ e.jsx(Le, { size: 20, color: h === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) })
|
|
1326
|
+
] }), Vr = () => {
|
|
1312
1327
|
A.getCurrentRecord() && _.showConfirmDialogYesNo(
|
|
1313
|
-
`${
|
|
1314
|
-
`${
|
|
1328
|
+
`${s("archbase:Confirme")}`,
|
|
1329
|
+
`${s("archbase:Deseja revogar o token de Acesso do usuário ")}${A.getCurrentRecord().user.name} ?`,
|
|
1315
1330
|
async () => {
|
|
1316
1331
|
await q.revoke(A.getCurrentRecord().token).then(async () => {
|
|
1317
1332
|
Y.showSuccess(
|
|
1318
|
-
`${
|
|
1319
|
-
`${
|
|
1333
|
+
`${s("mentors:Informação")}`,
|
|
1334
|
+
`${s("mentors:Token de Acesso revogado com sucesso!")}`
|
|
1320
1335
|
), A.refreshData();
|
|
1321
|
-
}).catch((
|
|
1336
|
+
}).catch((t) => {
|
|
1322
1337
|
_.showErrorWithDetails(
|
|
1323
|
-
`${
|
|
1324
|
-
|
|
1325
|
-
|
|
1338
|
+
`${s("mentors:Atenção")}`,
|
|
1339
|
+
Te(t),
|
|
1340
|
+
Ie(t)
|
|
1326
1341
|
);
|
|
1327
1342
|
});
|
|
1328
1343
|
},
|
|
1329
1344
|
() => {
|
|
1330
1345
|
}
|
|
1331
1346
|
);
|
|
1332
|
-
}, qe = () => {
|
|
1333
|
-
I(F.USER);
|
|
1334
1347
|
}, He = () => {
|
|
1335
|
-
|
|
1348
|
+
D(F.USER);
|
|
1336
1349
|
}, Je = () => {
|
|
1337
|
-
|
|
1338
|
-
},
|
|
1339
|
-
|
|
1350
|
+
D(F.GROUP);
|
|
1351
|
+
}, Ze = () => {
|
|
1352
|
+
D(F.PROFILE);
|
|
1353
|
+
}, Ge = () => {
|
|
1354
|
+
D("");
|
|
1340
1355
|
}, Lr = () => /* @__PURE__ */ e.jsxs(oe, { justify: "space-between", style: { width: "50%" }, children: [
|
|
1341
|
-
/* @__PURE__ */ e.jsxs(
|
|
1342
|
-
/* @__PURE__ */ e.jsx(
|
|
1343
|
-
/* @__PURE__ */ e.jsx(
|
|
1356
|
+
/* @__PURE__ */ e.jsxs(G, { align: "end", gap: "4px", wrap: "nowrap", children: [
|
|
1357
|
+
/* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(De, {}), onClick: Sr, children: `${s("archbase:New")}` }),
|
|
1358
|
+
/* @__PURE__ */ e.jsx(U, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: He, children: `${s("archbase:Edit permissions")}` })
|
|
1344
1359
|
] }),
|
|
1345
1360
|
/* @__PURE__ */ e.jsx(oe, { align: "flex-start", justify: "flex-end", style: { width: "200px" } })
|
|
1346
|
-
] }),
|
|
1347
|
-
/* @__PURE__ */ e.jsxs(
|
|
1348
|
-
/* @__PURE__ */ e.jsx(
|
|
1349
|
-
/* @__PURE__ */ e.jsx(
|
|
1361
|
+
] }), Ur = () => /* @__PURE__ */ e.jsxs(oe, { justify: "space-between", style: { width: "50%" }, children: [
|
|
1362
|
+
/* @__PURE__ */ e.jsxs(G, { align: "end", gap: "4px", wrap: "nowrap", children: [
|
|
1363
|
+
/* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(De, {}), onClick: kr, children: `${s("archbase:New")}` }),
|
|
1364
|
+
/* @__PURE__ */ e.jsx(U, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: Je, children: `${s("archbase:Edit permissions")}` })
|
|
1350
1365
|
] }),
|
|
1351
1366
|
/* @__PURE__ */ e.jsx(oe, { align: "flex-start", justify: "flex-end", style: { width: "200px" } })
|
|
1352
|
-
] }),
|
|
1353
|
-
/* @__PURE__ */ e.jsxs(
|
|
1354
|
-
/* @__PURE__ */ e.jsx(
|
|
1355
|
-
/* @__PURE__ */ e.jsx(
|
|
1367
|
+
] }), Mr = () => /* @__PURE__ */ e.jsxs(oe, { justify: "space-between", style: { width: "50%" }, children: [
|
|
1368
|
+
/* @__PURE__ */ e.jsxs(G, { align: "end", gap: "4px", wrap: "nowrap", children: [
|
|
1369
|
+
/* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(De, {}), onClick: zr, children: `${s("archbase:New")}` }),
|
|
1370
|
+
/* @__PURE__ */ e.jsx(U, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: Ze, children: `${s("archbase:Edit permissions")}` })
|
|
1356
1371
|
] }),
|
|
1357
1372
|
/* @__PURE__ */ e.jsx(oe, { align: "flex-start", justify: "flex-end", style: { width: "200px" } })
|
|
1358
|
-
] }),
|
|
1359
|
-
|
|
1373
|
+
] }), Nr = () => /* @__PURE__ */ e.jsx(oe, { justify: "space-between", style: { width: "50%" }, children: /* @__PURE__ */ e.jsx(G, { align: "start", gap: "4px", wrap: "nowrap", children: /* @__PURE__ */ e.jsx(
|
|
1374
|
+
U,
|
|
1360
1375
|
{
|
|
1361
1376
|
disabled: !A.getCurrentRecord(),
|
|
1362
1377
|
color: "red",
|
|
1363
|
-
leftSection: /* @__PURE__ */ e.jsx(
|
|
1364
|
-
onClick:
|
|
1365
|
-
children: `${
|
|
1378
|
+
leftSection: /* @__PURE__ */ e.jsx(Ce, {}),
|
|
1379
|
+
onClick: Vr,
|
|
1380
|
+
children: `${s("archbase:Revoke")}`
|
|
1366
1381
|
}
|
|
1367
1382
|
) }) });
|
|
1368
1383
|
return /* @__PURE__ */ e.jsxs(X, { p: "md", style: { height: r, display: "flex", flexDirection: "column" }, children: [
|
|
1369
|
-
/* @__PURE__ */ e.jsx(de, { variant: "pills", value:
|
|
1370
|
-
/* @__PURE__ */ e.jsx(de.Tab, { value: "users", children: `${
|
|
1371
|
-
/* @__PURE__ */ e.jsx(de.Tab, { value: "groups", children: `${
|
|
1372
|
-
/* @__PURE__ */ e.jsx(de.Tab, { value: "profiles", children: `${
|
|
1373
|
-
/* @__PURE__ */ e.jsx(de.Tab, { value: "resources", children: `${
|
|
1374
|
-
/* @__PURE__ */ e.jsx(de.Tab, { value: "accessTokens", children: `${
|
|
1384
|
+
/* @__PURE__ */ e.jsx(de, { variant: "pills", value: n, onChange: g, children: /* @__PURE__ */ e.jsxs(de.List, { children: [
|
|
1385
|
+
/* @__PURE__ */ e.jsx(de.Tab, { value: "users", children: `${s("Usuários")}` }),
|
|
1386
|
+
/* @__PURE__ */ e.jsx(de.Tab, { value: "groups", children: `${s("Grupos")}` }),
|
|
1387
|
+
/* @__PURE__ */ e.jsx(de.Tab, { value: "profiles", children: `${s("Perfis")}` }),
|
|
1388
|
+
/* @__PURE__ */ e.jsx(de.Tab, { value: "resources", children: `${s("Recursos")}` }),
|
|
1389
|
+
/* @__PURE__ */ e.jsx(de.Tab, { value: "accessTokens", children: `${s("Tokens Acesso")}` })
|
|
1375
1390
|
] }) }),
|
|
1376
1391
|
/* @__PURE__ */ e.jsx(
|
|
1377
1392
|
X,
|
|
@@ -1379,8 +1394,8 @@ function Fa({
|
|
|
1379
1394
|
withBorder: !0,
|
|
1380
1395
|
mt: "md",
|
|
1381
1396
|
style: {
|
|
1382
|
-
height:
|
|
1383
|
-
display:
|
|
1397
|
+
height: Se,
|
|
1398
|
+
display: n === "users" ? "flex" : "none",
|
|
1384
1399
|
width: "100%",
|
|
1385
1400
|
flex: 1,
|
|
1386
1401
|
minHeight: 0,
|
|
@@ -1389,25 +1404,25 @@ function Fa({
|
|
|
1389
1404
|
children: /* @__PURE__ */ e.jsx(
|
|
1390
1405
|
je,
|
|
1391
1406
|
{
|
|
1392
|
-
gridRef:
|
|
1407
|
+
gridRef: f,
|
|
1393
1408
|
printTitle: "Usuários",
|
|
1394
1409
|
width: "100%",
|
|
1395
1410
|
height: "100%",
|
|
1396
1411
|
withBorder: !1,
|
|
1397
|
-
dataSource:
|
|
1412
|
+
dataSource: V,
|
|
1398
1413
|
withColumnBorders: !0,
|
|
1399
1414
|
striped: !0,
|
|
1400
1415
|
enableTopToolbar: !0,
|
|
1401
1416
|
enableRowActions: !0,
|
|
1402
1417
|
pageSize: 50,
|
|
1403
|
-
isLoading:
|
|
1418
|
+
isLoading: $e,
|
|
1404
1419
|
isError: !!y,
|
|
1405
1420
|
error: y,
|
|
1406
1421
|
enableGlobalFilter: !0,
|
|
1407
|
-
getRowId:
|
|
1422
|
+
getRowId: l,
|
|
1408
1423
|
toolbarLeftContent: Lr(),
|
|
1409
|
-
renderRowActions:
|
|
1410
|
-
children:
|
|
1424
|
+
renderRowActions: Tr,
|
|
1425
|
+
children: jr
|
|
1411
1426
|
}
|
|
1412
1427
|
)
|
|
1413
1428
|
}
|
|
@@ -1418,8 +1433,8 @@ function Fa({
|
|
|
1418
1433
|
withBorder: !0,
|
|
1419
1434
|
mt: "md",
|
|
1420
1435
|
style: {
|
|
1421
|
-
height:
|
|
1422
|
-
display:
|
|
1436
|
+
height: Se,
|
|
1437
|
+
display: n === "groups" ? "flex" : "none",
|
|
1423
1438
|
flex: 1,
|
|
1424
1439
|
minHeight: 0,
|
|
1425
1440
|
overflow: "auto"
|
|
@@ -1438,14 +1453,14 @@ function Fa({
|
|
|
1438
1453
|
enableTopToolbar: !0,
|
|
1439
1454
|
enableRowActions: !0,
|
|
1440
1455
|
pageSize: 50,
|
|
1441
|
-
isLoading:
|
|
1456
|
+
isLoading: pr,
|
|
1442
1457
|
isError: !!y,
|
|
1443
1458
|
error: y,
|
|
1444
1459
|
enableGlobalFilter: !0,
|
|
1445
|
-
getRowId:
|
|
1446
|
-
renderRowActions:
|
|
1447
|
-
children:
|
|
1448
|
-
toolbarLeftContent:
|
|
1460
|
+
getRowId: $,
|
|
1461
|
+
renderRowActions: Dr,
|
|
1462
|
+
children: gr,
|
|
1463
|
+
toolbarLeftContent: Ur()
|
|
1449
1464
|
}
|
|
1450
1465
|
)
|
|
1451
1466
|
}
|
|
@@ -1456,8 +1471,8 @@ function Fa({
|
|
|
1456
1471
|
withBorder: !0,
|
|
1457
1472
|
mt: "md",
|
|
1458
1473
|
style: {
|
|
1459
|
-
height:
|
|
1460
|
-
display:
|
|
1474
|
+
height: Se,
|
|
1475
|
+
display: n === "profiles" ? "flex" : "none",
|
|
1461
1476
|
flex: 1,
|
|
1462
1477
|
minHeight: 0,
|
|
1463
1478
|
overflow: "auto"
|
|
@@ -1476,14 +1491,14 @@ function Fa({
|
|
|
1476
1491
|
enableTopToolbar: !0,
|
|
1477
1492
|
enableRowActions: !0,
|
|
1478
1493
|
pageSize: 50,
|
|
1479
|
-
isLoading:
|
|
1494
|
+
isLoading: xr,
|
|
1480
1495
|
isError: !!y,
|
|
1481
1496
|
error: y,
|
|
1482
1497
|
enableGlobalFilter: !0,
|
|
1483
1498
|
getRowId: S,
|
|
1484
|
-
toolbarLeftContent:
|
|
1485
|
-
renderRowActions:
|
|
1486
|
-
children:
|
|
1499
|
+
toolbarLeftContent: Mr(),
|
|
1500
|
+
renderRowActions: Gr,
|
|
1501
|
+
children: yr
|
|
1487
1502
|
}
|
|
1488
1503
|
)
|
|
1489
1504
|
}
|
|
@@ -1494,8 +1509,8 @@ function Fa({
|
|
|
1494
1509
|
withBorder: !0,
|
|
1495
1510
|
mt: "md",
|
|
1496
1511
|
style: {
|
|
1497
|
-
height:
|
|
1498
|
-
display:
|
|
1512
|
+
height: Se,
|
|
1513
|
+
display: n === "resources" ? "flex" : "none",
|
|
1499
1514
|
flex: 1,
|
|
1500
1515
|
minHeight: 0,
|
|
1501
1516
|
overflow: "auto"
|
|
@@ -1508,18 +1523,18 @@ function Fa({
|
|
|
1508
1523
|
width: "100%",
|
|
1509
1524
|
height: "100%",
|
|
1510
1525
|
withBorder: !1,
|
|
1511
|
-
dataSource:
|
|
1526
|
+
dataSource: mr,
|
|
1512
1527
|
withColumnBorders: !0,
|
|
1513
1528
|
striped: !1,
|
|
1514
1529
|
enableTopToolbar: !0,
|
|
1515
1530
|
enableRowActions: !1,
|
|
1516
1531
|
pageSize: 50,
|
|
1517
|
-
isLoading:
|
|
1532
|
+
isLoading: fr,
|
|
1518
1533
|
isError: !!y,
|
|
1519
1534
|
error: y,
|
|
1520
1535
|
enableGlobalFilter: !0,
|
|
1521
1536
|
getRowId: z,
|
|
1522
|
-
children:
|
|
1537
|
+
children: wr
|
|
1523
1538
|
}
|
|
1524
1539
|
)
|
|
1525
1540
|
}
|
|
@@ -1530,8 +1545,8 @@ function Fa({
|
|
|
1530
1545
|
withBorder: !0,
|
|
1531
1546
|
mt: "md",
|
|
1532
1547
|
style: {
|
|
1533
|
-
height:
|
|
1534
|
-
display:
|
|
1548
|
+
height: Se,
|
|
1549
|
+
display: n === "accessTokens" ? "flex" : "none",
|
|
1535
1550
|
width: "100%",
|
|
1536
1551
|
flex: 1,
|
|
1537
1552
|
minHeight: 0,
|
|
@@ -1540,7 +1555,7 @@ function Fa({
|
|
|
1540
1555
|
children: /* @__PURE__ */ e.jsx(
|
|
1541
1556
|
je,
|
|
1542
1557
|
{
|
|
1543
|
-
gridRef:
|
|
1558
|
+
gridRef: i,
|
|
1544
1559
|
printTitle: "Tokens de API",
|
|
1545
1560
|
width: "100%",
|
|
1546
1561
|
height: "100%",
|
|
@@ -1556,83 +1571,83 @@ function Fa({
|
|
|
1556
1571
|
error: y,
|
|
1557
1572
|
enableGlobalFilter: !0,
|
|
1558
1573
|
getRowId: k,
|
|
1559
|
-
toolbarLeftContent:
|
|
1560
|
-
children:
|
|
1574
|
+
toolbarLeftContent: Nr(),
|
|
1575
|
+
children: br
|
|
1561
1576
|
}
|
|
1562
1577
|
)
|
|
1563
1578
|
}
|
|
1564
1579
|
),
|
|
1565
1580
|
Q === F.USER ? /* @__PURE__ */ e.jsx(
|
|
1566
|
-
|
|
1581
|
+
pt,
|
|
1567
1582
|
{
|
|
1568
|
-
onClickOk:
|
|
1583
|
+
onClickOk: Be,
|
|
1569
1584
|
opened: !0,
|
|
1570
|
-
dataSource:
|
|
1571
|
-
onClickCancel:
|
|
1572
|
-
options:
|
|
1585
|
+
dataSource: V,
|
|
1586
|
+
onClickCancel: Be,
|
|
1587
|
+
options: C
|
|
1573
1588
|
}
|
|
1574
1589
|
) : null,
|
|
1575
1590
|
Q === F.GROUP ? /* @__PURE__ */ e.jsx(
|
|
1576
|
-
|
|
1591
|
+
xt,
|
|
1577
1592
|
{
|
|
1578
|
-
onClickOk:
|
|
1593
|
+
onClickOk: We,
|
|
1579
1594
|
opened: !0,
|
|
1580
1595
|
dataSource: W,
|
|
1581
|
-
onClickCancel:
|
|
1582
|
-
options:
|
|
1596
|
+
onClickCancel: We,
|
|
1597
|
+
options: p
|
|
1583
1598
|
}
|
|
1584
1599
|
) : null,
|
|
1585
1600
|
Q === F.PROFILE ? /* @__PURE__ */ e.jsx(
|
|
1586
|
-
|
|
1601
|
+
ct,
|
|
1587
1602
|
{
|
|
1588
|
-
onClickOk:
|
|
1603
|
+
onClickOk: qe,
|
|
1589
1604
|
opened: !0,
|
|
1590
1605
|
dataSource: Z,
|
|
1591
|
-
onClickCancel:
|
|
1592
|
-
options:
|
|
1606
|
+
onClickCancel: qe,
|
|
1607
|
+
options: o
|
|
1593
1608
|
}
|
|
1594
1609
|
) : null,
|
|
1595
1610
|
N === F.USER ? /* @__PURE__ */ e.jsx(
|
|
1596
|
-
|
|
1611
|
+
Me,
|
|
1597
1612
|
{
|
|
1598
|
-
dataSource:
|
|
1613
|
+
dataSource: V,
|
|
1599
1614
|
opened: !!N,
|
|
1600
|
-
close:
|
|
1615
|
+
close: Ge
|
|
1601
1616
|
}
|
|
1602
1617
|
) : null,
|
|
1603
1618
|
N === F.GROUP ? /* @__PURE__ */ e.jsx(
|
|
1604
|
-
|
|
1619
|
+
Me,
|
|
1605
1620
|
{
|
|
1606
1621
|
dataSource: W,
|
|
1607
1622
|
opened: !!N,
|
|
1608
|
-
close:
|
|
1623
|
+
close: Ge
|
|
1609
1624
|
}
|
|
1610
1625
|
) : null,
|
|
1611
1626
|
N === F.PROFILE ? /* @__PURE__ */ e.jsx(
|
|
1612
|
-
|
|
1627
|
+
Me,
|
|
1613
1628
|
{
|
|
1614
1629
|
dataSource: Z,
|
|
1615
1630
|
opened: !!N,
|
|
1616
|
-
close:
|
|
1631
|
+
close: Ge
|
|
1617
1632
|
}
|
|
1618
1633
|
) : null
|
|
1619
1634
|
] });
|
|
1620
1635
|
}
|
|
1621
|
-
function
|
|
1622
|
-
|
|
1623
|
-
const
|
|
1636
|
+
function It({ height: r = "400px", width: c = "100%" }) {
|
|
1637
|
+
cr();
|
|
1638
|
+
const j = dr("apiTokenStore"), C = { validateEntity: () => [] }, { colorScheme: o } = Oe(), [p, u] = M(void 0), v = ee(K.ApiToken), [E, h] = M(""), y = ye(null), I = (w) => w.id, { dataSource: n } = Xr({
|
|
1624
1639
|
initialData: [],
|
|
1625
1640
|
name: "dataSource"
|
|
1626
|
-
}),
|
|
1641
|
+
}), g = le(
|
|
1627
1642
|
"ArchbaseApiTokenView-LocalDataSource",
|
|
1628
|
-
|
|
1643
|
+
n,
|
|
1629
1644
|
void 0,
|
|
1630
1645
|
void 0
|
|
1631
|
-
), { dataSource:
|
|
1646
|
+
), { dataSource: x, isLoading: te } = se({
|
|
1632
1647
|
name: "dsApiToken",
|
|
1633
|
-
service:
|
|
1634
|
-
store:
|
|
1635
|
-
validator:
|
|
1648
|
+
service: v,
|
|
1649
|
+
store: j,
|
|
1650
|
+
validator: C,
|
|
1636
1651
|
pageSize: 25,
|
|
1637
1652
|
loadOnStart: !0,
|
|
1638
1653
|
onLoadComplete: (w) => {
|
|
@@ -1640,16 +1655,16 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
|
|
|
1640
1655
|
onDestroy: (w) => {
|
|
1641
1656
|
},
|
|
1642
1657
|
onError: (w, O) => {
|
|
1643
|
-
u(w), Y.showError(
|
|
1658
|
+
u(w), Y.showError(a().t("archbase:WARNING"), w, O);
|
|
1644
1659
|
}
|
|
1645
1660
|
}), J = le(
|
|
1646
1661
|
"ArchbaseApiTokenView-RemoteDataSource",
|
|
1647
|
-
|
|
1662
|
+
x,
|
|
1648
1663
|
void 0,
|
|
1649
1664
|
void 0
|
|
1650
|
-
),
|
|
1665
|
+
), ae = `calc(${r} - 40px)`, Q = /* @__PURE__ */ e.jsxs(be, { children: [
|
|
1651
1666
|
/* @__PURE__ */ e.jsx(
|
|
1652
|
-
|
|
1667
|
+
b,
|
|
1653
1668
|
{
|
|
1654
1669
|
dataField: "user.avatar",
|
|
1655
1670
|
dataType: "image",
|
|
@@ -1659,7 +1674,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
|
|
|
1659
1674
|
"img",
|
|
1660
1675
|
{
|
|
1661
1676
|
style: { borderRadius: 50, height: "32px", maxHeight: "32px" },
|
|
1662
|
-
src: w.row.user && w.row.user.avatar ? atob(w.row.user.avatar) :
|
|
1677
|
+
src: w.row.user && w.row.user.avatar ? atob(w.row.user.avatar) : Ne
|
|
1663
1678
|
}
|
|
1664
1679
|
),
|
|
1665
1680
|
inputFilterType: "text",
|
|
@@ -1667,7 +1682,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
|
|
|
1667
1682
|
}
|
|
1668
1683
|
),
|
|
1669
1684
|
/* @__PURE__ */ e.jsx(
|
|
1670
|
-
|
|
1685
|
+
b,
|
|
1671
1686
|
{
|
|
1672
1687
|
dataField: "user.userName",
|
|
1673
1688
|
dataType: "text",
|
|
@@ -1677,7 +1692,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
|
|
|
1677
1692
|
}
|
|
1678
1693
|
),
|
|
1679
1694
|
/* @__PURE__ */ e.jsx(
|
|
1680
|
-
|
|
1695
|
+
b,
|
|
1681
1696
|
{
|
|
1682
1697
|
dataField: "user.email",
|
|
1683
1698
|
dataType: "text",
|
|
@@ -1687,7 +1702,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
|
|
|
1687
1702
|
}
|
|
1688
1703
|
),
|
|
1689
1704
|
/* @__PURE__ */ e.jsx(
|
|
1690
|
-
|
|
1705
|
+
b,
|
|
1691
1706
|
{
|
|
1692
1707
|
dataField: "token",
|
|
1693
1708
|
dataType: "text",
|
|
@@ -1698,7 +1713,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
|
|
|
1698
1713
|
}
|
|
1699
1714
|
),
|
|
1700
1715
|
/* @__PURE__ */ e.jsx(
|
|
1701
|
-
|
|
1716
|
+
b,
|
|
1702
1717
|
{
|
|
1703
1718
|
dataField: "tenantId",
|
|
1704
1719
|
dataType: "text",
|
|
@@ -1709,7 +1724,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
|
|
|
1709
1724
|
}
|
|
1710
1725
|
),
|
|
1711
1726
|
/* @__PURE__ */ e.jsx(
|
|
1712
|
-
|
|
1727
|
+
b,
|
|
1713
1728
|
{
|
|
1714
1729
|
dataField: "expirationDate",
|
|
1715
1730
|
dataType: "text",
|
|
@@ -1722,28 +1737,28 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
|
|
|
1722
1737
|
O.setHours(0, 0, 0, 0);
|
|
1723
1738
|
const d = new Date(w.row.expirationDate);
|
|
1724
1739
|
d.setHours(0, 0, 0, 0);
|
|
1725
|
-
const
|
|
1726
|
-
let ce = Math.max(0, Math.min(100, m / 365 * 100)),
|
|
1727
|
-
m < 0 ? (
|
|
1728
|
-
const
|
|
1729
|
-
return /* @__PURE__ */ e.jsx(ie, { label:
|
|
1740
|
+
const f = d.getTime() - O.getTime(), m = Math.ceil(f / (1e3 * 60 * 60 * 24));
|
|
1741
|
+
let ce = Math.max(0, Math.min(100, m / 365 * 100)), i = "green", l = "";
|
|
1742
|
+
m < 0 ? (i = "red", ce = 100, l = `Vencido há ${Math.abs(m)} dia${Math.abs(m) !== 1 ? "s" : ""}`) : m === 0 ? (i = "red", ce = 5, l = "Vence hoje") : m <= 7 ? (i = "red", l = `${m} dia${m !== 1 ? "s" : ""}`) : m <= 30 ? (i = "orange", l = `${m} dias`) : m <= 90 ? (i = "yellow", l = `${m} dias`) : (i = "green", l = `${m} dias`);
|
|
1743
|
+
const $ = m < 0 ? `Vencido em ${d.toLocaleDateString()}` : `Expira em ${d.toLocaleDateString()}`;
|
|
1744
|
+
return /* @__PURE__ */ e.jsx(ie, { label: $, withArrow: !0, children: /* @__PURE__ */ e.jsxs(G, { gap: "xs", wrap: "nowrap", children: [
|
|
1730
1745
|
/* @__PURE__ */ e.jsx(
|
|
1731
|
-
|
|
1746
|
+
Or,
|
|
1732
1747
|
{
|
|
1733
1748
|
size: 36,
|
|
1734
1749
|
thickness: 4,
|
|
1735
1750
|
roundCaps: !0,
|
|
1736
|
-
sections: [{ value: m < 0 ? 100 : ce, color:
|
|
1751
|
+
sections: [{ value: m < 0 ? 100 : ce, color: i }]
|
|
1737
1752
|
}
|
|
1738
1753
|
),
|
|
1739
|
-
/* @__PURE__ */ e.jsx(H, { size: "sm", c: m < 0 ? "red" : void 0, fw: m <= 7 ? 600 : void 0, children:
|
|
1754
|
+
/* @__PURE__ */ e.jsx(H, { size: "sm", c: m < 0 ? "red" : void 0, fw: m <= 7 ? 600 : void 0, children: l })
|
|
1740
1755
|
] }) });
|
|
1741
1756
|
},
|
|
1742
1757
|
inputFilterType: "text"
|
|
1743
1758
|
}
|
|
1744
1759
|
),
|
|
1745
1760
|
/* @__PURE__ */ e.jsx(
|
|
1746
|
-
|
|
1761
|
+
b,
|
|
1747
1762
|
{
|
|
1748
1763
|
dataField: "activated",
|
|
1749
1764
|
dataType: "boolean",
|
|
@@ -1752,7 +1767,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
|
|
|
1752
1767
|
}
|
|
1753
1768
|
),
|
|
1754
1769
|
/* @__PURE__ */ e.jsx(
|
|
1755
|
-
|
|
1770
|
+
b,
|
|
1756
1771
|
{
|
|
1757
1772
|
dataField: "revoked",
|
|
1758
1773
|
dataType: "boolean",
|
|
@@ -1760,65 +1775,65 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
|
|
|
1760
1775
|
inputFilterType: "checkbox"
|
|
1761
1776
|
}
|
|
1762
1777
|
)
|
|
1763
|
-
] }),
|
|
1764
|
-
|
|
1778
|
+
] }), P = () => {
|
|
1779
|
+
n.insert(tt.newInstance()), n && !g.isDataSourceV2 && g.v1State.forceUpdate(), h("apiToken");
|
|
1765
1780
|
}, N = () => {
|
|
1766
|
-
|
|
1767
|
-
`${
|
|
1768
|
-
`${
|
|
1781
|
+
x.getCurrentRecord() && _.showConfirmDialogYesNo(
|
|
1782
|
+
`${a().t("archbase:Confirme")}`,
|
|
1783
|
+
`${a().t("archbase:Deseja revogar o token de API do usuário ")}${x.getCurrentRecord().user.name} ?`,
|
|
1769
1784
|
async () => {
|
|
1770
|
-
await
|
|
1785
|
+
await v.revoke(x.getCurrentRecord().token).then(async () => {
|
|
1771
1786
|
Y.showSuccess(
|
|
1772
|
-
`${
|
|
1773
|
-
`${
|
|
1774
|
-
),
|
|
1787
|
+
`${a().t("mentors:Informação")}`,
|
|
1788
|
+
`${a().t("mentors:Token de API revogado com sucesso!")}`
|
|
1789
|
+
), x.refreshData(), x && !J.isDataSourceV2 && J.v1State.forceUpdate();
|
|
1775
1790
|
}).catch((w) => {
|
|
1776
1791
|
_.showErrorWithDetails(
|
|
1777
|
-
`${
|
|
1778
|
-
|
|
1779
|
-
|
|
1792
|
+
`${a().t("mentors:Atenção")}`,
|
|
1793
|
+
Te(w),
|
|
1794
|
+
Ie(w)
|
|
1780
1795
|
);
|
|
1781
1796
|
});
|
|
1782
1797
|
},
|
|
1783
1798
|
() => {
|
|
1784
1799
|
}
|
|
1785
1800
|
);
|
|
1786
|
-
},
|
|
1801
|
+
}, D = () => {
|
|
1787
1802
|
h("");
|
|
1788
1803
|
}, q = async (w, O) => {
|
|
1789
|
-
const d =
|
|
1804
|
+
const d = n.getCurrentRecord();
|
|
1790
1805
|
if (d)
|
|
1791
1806
|
try {
|
|
1792
|
-
if (
|
|
1807
|
+
if (n.validate(), !d.user || !d.user.email) {
|
|
1793
1808
|
_.showErrorWithDetails(
|
|
1794
|
-
`${
|
|
1795
|
-
`${
|
|
1809
|
+
`${a().t("archbase:WARNING")}`,
|
|
1810
|
+
`${a().t("archbase:Selecione um usuário para o token de API")}`,
|
|
1796
1811
|
""
|
|
1797
1812
|
);
|
|
1798
1813
|
return;
|
|
1799
1814
|
}
|
|
1800
|
-
await
|
|
1801
|
-
|
|
1802
|
-
`${
|
|
1803
|
-
`${
|
|
1815
|
+
await v.create(d.user.email, d.expirationDate, d.name, d.description).then(async (f) => {
|
|
1816
|
+
n.cancel(), n && !g.isDataSourceV2 && g.v1State.forceUpdate(), x.append(f), x && !J.isDataSourceV2 && J.v1State.forceUpdate(), Y.showSuccess(
|
|
1817
|
+
`${a().t("mentors:Informação")}`,
|
|
1818
|
+
`${a().t("mentors:Token de API gerado com sucesso!")}`
|
|
1804
1819
|
), O && O(!0);
|
|
1805
|
-
}).catch((
|
|
1820
|
+
}).catch((f) => {
|
|
1806
1821
|
_.showErrorWithDetails(
|
|
1807
|
-
`${
|
|
1808
|
-
|
|
1809
|
-
|
|
1822
|
+
`${a().t("mentors:Atenção")}`,
|
|
1823
|
+
Te(f),
|
|
1824
|
+
Ie(f)
|
|
1810
1825
|
);
|
|
1811
1826
|
});
|
|
1812
|
-
} catch (
|
|
1827
|
+
} catch (f) {
|
|
1813
1828
|
_.showErrorWithDetails(
|
|
1814
|
-
`${
|
|
1815
|
-
|
|
1816
|
-
|
|
1829
|
+
`${a().t("mentors:Atenção")}`,
|
|
1830
|
+
Te(f),
|
|
1831
|
+
Ie(f)
|
|
1817
1832
|
);
|
|
1818
1833
|
}
|
|
1819
|
-
},
|
|
1820
|
-
/* @__PURE__ */ e.jsx(
|
|
1821
|
-
/* @__PURE__ */ e.jsx(
|
|
1834
|
+
}, s = () => /* @__PURE__ */ e.jsx(oe, { justify: "space-between", style: { width: "50%" }, children: /* @__PURE__ */ e.jsxs(G, { align: "start", gap: "2px", wrap: "nowrap", children: [
|
|
1835
|
+
/* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(De, {}), onClick: P, children: a().t("archbase:New") }),
|
|
1836
|
+
/* @__PURE__ */ e.jsx(U, { disabled: !x.getCurrentRecord(), color: "red", leftSection: /* @__PURE__ */ e.jsx(Ce, {}), onClick: N, children: a().t("archbase:Revoke") })
|
|
1822
1837
|
] }) });
|
|
1823
1838
|
return /* @__PURE__ */ e.jsxs(X, { p: "md", style: { height: r, display: "flex", flexDirection: "column" }, children: [
|
|
1824
1839
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1826,7 +1841,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
|
|
|
1826
1841
|
{
|
|
1827
1842
|
withBorder: !0,
|
|
1828
1843
|
style: {
|
|
1829
|
-
height:
|
|
1844
|
+
height: ae,
|
|
1830
1845
|
display: "flex",
|
|
1831
1846
|
width: "100%",
|
|
1832
1847
|
flex: 1,
|
|
@@ -1841,44 +1856,44 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
|
|
|
1841
1856
|
width: "100%",
|
|
1842
1857
|
height: "100%",
|
|
1843
1858
|
withBorder: !1,
|
|
1844
|
-
dataSource:
|
|
1859
|
+
dataSource: x,
|
|
1845
1860
|
withColumnBorders: !0,
|
|
1846
1861
|
striped: !0,
|
|
1847
1862
|
enableTopToolbar: !0,
|
|
1848
1863
|
enableRowActions: !1,
|
|
1849
1864
|
pageSize: 50,
|
|
1850
|
-
isLoading:
|
|
1851
|
-
isError: !!
|
|
1852
|
-
error:
|
|
1865
|
+
isLoading: te,
|
|
1866
|
+
isError: !!p,
|
|
1867
|
+
error: p,
|
|
1853
1868
|
enableGlobalFilter: !0,
|
|
1854
|
-
getRowId:
|
|
1855
|
-
toolbarLeftContent:
|
|
1869
|
+
getRowId: I,
|
|
1870
|
+
toolbarLeftContent: s(),
|
|
1856
1871
|
children: Q
|
|
1857
1872
|
}
|
|
1858
1873
|
)
|
|
1859
1874
|
}
|
|
1860
1875
|
),
|
|
1861
1876
|
E === "apiToken" ? /* @__PURE__ */ e.jsx(
|
|
1862
|
-
|
|
1877
|
+
ft,
|
|
1863
1878
|
{
|
|
1864
|
-
onClickOk:
|
|
1879
|
+
onClickOk: D,
|
|
1865
1880
|
opened: !0,
|
|
1866
|
-
dataSource:
|
|
1881
|
+
dataSource: n,
|
|
1867
1882
|
onCustomSave: q,
|
|
1868
|
-
onClickCancel:
|
|
1883
|
+
onClickCancel: D
|
|
1869
1884
|
}
|
|
1870
1885
|
) : null
|
|
1871
1886
|
] });
|
|
1872
1887
|
}
|
|
1873
1888
|
export {
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1889
|
+
ft as ApiTokenModal,
|
|
1890
|
+
It as ArchbaseApiTokenView,
|
|
1891
|
+
dt as ArchbaseDualListSelector,
|
|
1892
|
+
Ft as ArchbaseSecurityView,
|
|
1893
|
+
xt as GroupModal,
|
|
1894
|
+
Me as PermissionsSelectorModal,
|
|
1895
|
+
ct as ProfileModal,
|
|
1896
|
+
ut as RenderProfileUserItem,
|
|
1897
|
+
pt as UserModal
|
|
1883
1898
|
};
|
|
1884
1899
|
//# sourceMappingURL=index.js.map
|