@gen-epix/ui-client-common 4.0.2 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/CrudPage.js +183 -183
- package/dist/_chunks/CrudPage.js.map +1 -1
- package/dist/_chunks/GeoFilter.js.map +1 -1
- package/dist/_chunks/QueryClientProvider.js +1 -1
- package/dist/_chunks/QueryClientProvider.js.map +1 -1
- package/dist/_chunks/Table.js +622 -603
- package/dist/_chunks/Table.js.map +1 -1
- package/dist/_chunks/TextFilter.js.map +1 -1
- package/dist/_chunks/UserInvitationsAdminPage.js +97 -97
- package/dist/_chunks/chunk-BV7QT456.js +1 -1
- package/dist/_chunks/chunk-BV7QT456.js.map +1 -1
- package/dist/_chunks/middleware.js +1 -1
- package/dist/_chunks/middleware.js.map +1 -1
- package/dist/_chunks/react-oidc-context.js +1 -1
- package/dist/_chunks/react-oidc-context.js.map +1 -1
- package/dist/_chunks/react.js +1 -1
- package/dist/_chunks/react.js.map +1 -1
- package/dist/_chunks/useColumnsMenu.js +2 -2
- package/dist/_chunks/useColumnsMenu.js.map +1 -1
- package/dist/_chunks/useMutation.js +1 -1
- package/dist/_chunks/useMutation.js.map +1 -1
- package/dist/_chunks/useQueryMemo.js +4 -4
- package/dist/_chunks/useQueryMemo.js.map +1 -1
- package/dist/_chunks/vanilla.js +1 -1
- package/dist/_chunks/vanilla.js.map +1 -1
- package/dist/_chunks/yup.js +23 -23
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/classes/filters/DateFilter.d.ts +2 -2
- package/dist/classes/filters/GeoFilter.d.ts +2 -2
- package/dist/classes/filters/MultiSelectFilter.d.ts +2 -2
- package/dist/classes/filters/NumberRangeFilter.d.ts +2 -2
- package/dist/classes/filters/TextFilter.d.ts +2 -2
- package/dist/components/app/App/index.js +2 -2
- package/dist/components/app/App/index.js.map +1 -1
- package/dist/components/ui/OrganizationSwitcherDialog/index.js +31 -31
- package/dist/components/ui/UserFeedbackDialog/index.js +35 -35
- package/dist/theme/demoTheme/index.js +1 -1
- package/dist/theme/demoTheme/index.js.map +1 -1
- package/package.json +66 -65
- package/dist/_chunks/index.esm.js +0 -1284
- package/dist/_chunks/index.esm.js.map +0 -1
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import { ConfigService as e } from "../../../classes/services/ConfigService/index.js";
|
|
2
2
|
import { AuthorizationService as t } from "../../../classes/services/AuthorizationService/index.js";
|
|
3
3
|
import { LogService as n } from "../../../classes/services/LogService/index.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
4
|
+
import { NotificationService as r } from "../../../classes/services/NotificationService/index.js";
|
|
5
|
+
import { t as i } from "../../../_chunks/yup.js";
|
|
6
|
+
import { NavigationHistoryService as a } from "../../../classes/services/NavigationHistoryService/index.js";
|
|
7
|
+
import { UserSettingsService as o } from "../../../classes/services/UserSettingsService/index.js";
|
|
8
|
+
import { Box as s, Typography as c } from "@mui/material";
|
|
9
|
+
import { useCallback as l, useEffect as u, useMemo as d } from "react";
|
|
10
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
|
+
import { useTranslation as m } from "react-i18next";
|
|
12
|
+
import { object as h, string as g } from "yup";
|
|
13
|
+
import { TestIdUtil as _ } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
14
|
+
import { FORM_FIELD_DEFINITION_TYPE as v } from "@gen-epix/ui-core-form/models/form";
|
|
15
|
+
import { SchemaUtil as y } from "@gen-epix/ui-core-form/utils/SchemaUtil";
|
|
16
|
+
import { useForm as b } from "react-hook-form";
|
|
17
17
|
import { withDialog as x } from "@gen-epix/ui-core-components/hoc/withDialog";
|
|
18
18
|
import { GenericForm as S } from "@gen-epix/ui-core-form/components/helpers/GenericForm";
|
|
19
19
|
//#region src/components/ui/UserFeedbackDialog/UserFeedbackDialog.tsx
|
|
20
20
|
var C = x(({ onActionsChange: x, onClose: C, onTitleChange: w }) => {
|
|
21
|
-
let { t: T } =
|
|
22
|
-
email:
|
|
23
|
-
message:
|
|
24
|
-
name:
|
|
25
|
-
}), []), D =
|
|
26
|
-
resolver:
|
|
21
|
+
let { t: T } = m(), E = d(() => h().shape({
|
|
22
|
+
email: g().email().required().max(200),
|
|
23
|
+
message: g().freeFormText().required().max(5e3),
|
|
24
|
+
name: y.name
|
|
25
|
+
}), []), D = b({
|
|
26
|
+
resolver: i(E),
|
|
27
27
|
values: {
|
|
28
28
|
email: t.getInstance().user?.email ?? t.getInstance().user?.key ?? "",
|
|
29
29
|
message: "",
|
|
30
30
|
name: t.getInstance().user?.name ?? ""
|
|
31
31
|
}
|
|
32
32
|
}), { handleSubmit: O } = D;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
u(() => {
|
|
34
|
+
o.getInstance().showShowUserFeedbackTooltip = !1;
|
|
35
35
|
}, []);
|
|
36
|
-
let k =
|
|
36
|
+
let k = d(() => [
|
|
37
37
|
{
|
|
38
|
-
definition:
|
|
38
|
+
definition: v.TEXTFIELD,
|
|
39
39
|
label: T`Name`,
|
|
40
40
|
name: "name"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
definition:
|
|
43
|
+
definition: v.TEXTFIELD,
|
|
44
44
|
label: T`Email`,
|
|
45
45
|
name: "email"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
definition:
|
|
48
|
+
definition: v.TEXTFIELD,
|
|
49
49
|
label: T`Your message`,
|
|
50
50
|
multiline: !0,
|
|
51
51
|
name: "message",
|
|
52
52
|
rows: 15
|
|
53
53
|
}
|
|
54
54
|
], [T]);
|
|
55
|
-
|
|
55
|
+
u(() => {
|
|
56
56
|
w(T`Feedback`);
|
|
57
57
|
}, [w, T]);
|
|
58
|
-
let A =
|
|
59
|
-
let t =
|
|
58
|
+
let A = l((e) => {
|
|
59
|
+
let t = a.getInstance().navigationHistory;
|
|
60
60
|
n.getInstance().log([{
|
|
61
61
|
detail: {
|
|
62
62
|
...e,
|
|
@@ -64,21 +64,21 @@ var C = x(({ onActionsChange: x, onClose: C, onTitleChange: w }) => {
|
|
|
64
64
|
},
|
|
65
65
|
level: "INFO",
|
|
66
66
|
topic: "USER_FEEDBACK"
|
|
67
|
-
}]), n.getInstance().flushLog(),
|
|
67
|
+
}]), n.getInstance().flushLog(), r.getInstance().showNotification({
|
|
68
68
|
message: T`Thank you for sharing your feedback with us`,
|
|
69
69
|
severity: "success"
|
|
70
70
|
}), C();
|
|
71
71
|
}, [C, T]);
|
|
72
|
-
return
|
|
72
|
+
return u(() => {
|
|
73
73
|
x([{
|
|
74
|
-
...
|
|
74
|
+
..._.createAttributes("UserFeedbackDialog-close"),
|
|
75
75
|
autoFocus: !0,
|
|
76
76
|
color: "primary",
|
|
77
77
|
label: T`Cancel`,
|
|
78
78
|
onClick: C,
|
|
79
79
|
variant: "outlined"
|
|
80
80
|
}, {
|
|
81
|
-
...
|
|
81
|
+
..._.createAttributes("UserFeedbackDialog-send"),
|
|
82
82
|
autoFocus: !0,
|
|
83
83
|
color: "secondary",
|
|
84
84
|
label: T`Send`,
|
|
@@ -91,13 +91,13 @@ var C = x(({ onActionsChange: x, onClose: C, onTitleChange: w }) => {
|
|
|
91
91
|
C,
|
|
92
92
|
A,
|
|
93
93
|
T
|
|
94
|
-
]), /* @__PURE__ */
|
|
94
|
+
]), /* @__PURE__ */ p(s, { children: [/* @__PURE__ */ f(s, {
|
|
95
95
|
sx: { marginBottom: 2 },
|
|
96
|
-
children: /* @__PURE__ */
|
|
96
|
+
children: /* @__PURE__ */ f(c, {
|
|
97
97
|
component: "p",
|
|
98
98
|
children: T("Please help make {{applicationName}} better by sharing your feedback with us. You may use this form as many times as you like.", { applicationName: e.getInstance().config.applicationName })
|
|
99
99
|
})
|
|
100
|
-
}), /* @__PURE__ */
|
|
100
|
+
}), /* @__PURE__ */ f(S, {
|
|
101
101
|
formFieldDefinitions: k,
|
|
102
102
|
formMethods: D,
|
|
103
103
|
onSubmit: O(A),
|