@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.
Files changed (41) hide show
  1. package/dist/_chunks/CrudPage.js +183 -183
  2. package/dist/_chunks/CrudPage.js.map +1 -1
  3. package/dist/_chunks/GeoFilter.js.map +1 -1
  4. package/dist/_chunks/QueryClientProvider.js +1 -1
  5. package/dist/_chunks/QueryClientProvider.js.map +1 -1
  6. package/dist/_chunks/Table.js +622 -603
  7. package/dist/_chunks/Table.js.map +1 -1
  8. package/dist/_chunks/TextFilter.js.map +1 -1
  9. package/dist/_chunks/UserInvitationsAdminPage.js +97 -97
  10. package/dist/_chunks/chunk-BV7QT456.js +1 -1
  11. package/dist/_chunks/chunk-BV7QT456.js.map +1 -1
  12. package/dist/_chunks/middleware.js +1 -1
  13. package/dist/_chunks/middleware.js.map +1 -1
  14. package/dist/_chunks/react-oidc-context.js +1 -1
  15. package/dist/_chunks/react-oidc-context.js.map +1 -1
  16. package/dist/_chunks/react.js +1 -1
  17. package/dist/_chunks/react.js.map +1 -1
  18. package/dist/_chunks/useColumnsMenu.js +2 -2
  19. package/dist/_chunks/useColumnsMenu.js.map +1 -1
  20. package/dist/_chunks/useMutation.js +1 -1
  21. package/dist/_chunks/useMutation.js.map +1 -1
  22. package/dist/_chunks/useQueryMemo.js +4 -4
  23. package/dist/_chunks/useQueryMemo.js.map +1 -1
  24. package/dist/_chunks/vanilla.js +1 -1
  25. package/dist/_chunks/vanilla.js.map +1 -1
  26. package/dist/_chunks/yup.js +23 -23
  27. package/dist/_chunks/yup.js.map +1 -1
  28. package/dist/classes/filters/DateFilter.d.ts +2 -2
  29. package/dist/classes/filters/GeoFilter.d.ts +2 -2
  30. package/dist/classes/filters/MultiSelectFilter.d.ts +2 -2
  31. package/dist/classes/filters/NumberRangeFilter.d.ts +2 -2
  32. package/dist/classes/filters/TextFilter.d.ts +2 -2
  33. package/dist/components/app/App/index.js +2 -2
  34. package/dist/components/app/App/index.js.map +1 -1
  35. package/dist/components/ui/OrganizationSwitcherDialog/index.js +31 -31
  36. package/dist/components/ui/UserFeedbackDialog/index.js +35 -35
  37. package/dist/theme/demoTheme/index.js +1 -1
  38. package/dist/theme/demoTheme/index.js.map +1 -1
  39. package/package.json +66 -65
  40. package/dist/_chunks/index.esm.js +0 -1284
  41. 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 { a as r } from "../../../_chunks/index.esm.js";
5
- import { NotificationService as i } from "../../../classes/services/NotificationService/index.js";
6
- import { t as a } from "../../../_chunks/yup.js";
7
- import { NavigationHistoryService as o } from "../../../classes/services/NavigationHistoryService/index.js";
8
- import { UserSettingsService as s } from "../../../classes/services/UserSettingsService/index.js";
9
- import { Box as c, Typography as l } from "@mui/material";
10
- import { useCallback as u, useEffect as d, useMemo as f } from "react";
11
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
12
- import { useTranslation as h } from "react-i18next";
13
- import { object as g, string as _ } from "yup";
14
- import { TestIdUtil as v } from "@gen-epix/ui-core/utils/TestIdUtil";
15
- import { FORM_FIELD_DEFINITION_TYPE as y } from "@gen-epix/ui-core-form/models/form";
16
- import { SchemaUtil as b } from "@gen-epix/ui-core-form/utils/SchemaUtil";
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 } = h(), E = f(() => g().shape({
22
- email: _().email().required().max(200),
23
- message: _().freeFormText().required().max(5e3),
24
- name: b.name
25
- }), []), D = r({
26
- resolver: a(E),
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
- d(() => {
34
- s.getInstance().showShowUserFeedbackTooltip = !1;
33
+ u(() => {
34
+ o.getInstance().showShowUserFeedbackTooltip = !1;
35
35
  }, []);
36
- let k = f(() => [
36
+ let k = d(() => [
37
37
  {
38
- definition: y.TEXTFIELD,
38
+ definition: v.TEXTFIELD,
39
39
  label: T`Name`,
40
40
  name: "name"
41
41
  },
42
42
  {
43
- definition: y.TEXTFIELD,
43
+ definition: v.TEXTFIELD,
44
44
  label: T`Email`,
45
45
  name: "email"
46
46
  },
47
47
  {
48
- definition: y.TEXTFIELD,
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
- d(() => {
55
+ u(() => {
56
56
  w(T`Feedback`);
57
57
  }, [w, T]);
58
- let A = u((e) => {
59
- let t = o.getInstance().navigationHistory;
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(), i.getInstance().showNotification({
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 d(() => {
72
+ return u(() => {
73
73
  x([{
74
- ...v.createAttributes("UserFeedbackDialog-close"),
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
- ...v.createAttributes("UserFeedbackDialog-send"),
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__ */ m(c, { children: [/* @__PURE__ */ p(c, {
94
+ ]), /* @__PURE__ */ p(s, { children: [/* @__PURE__ */ f(s, {
95
95
  sx: { marginBottom: 2 },
96
- children: /* @__PURE__ */ p(l, {
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__ */ p(S, {
100
+ }), /* @__PURE__ */ f(S, {
101
101
  formFieldDefinitions: k,
102
102
  formMethods: D,
103
103
  onSubmit: O(A),
@@ -313,7 +313,7 @@ var t = "data:font/woff2;base64,d09GMgABAAAAC2dAABUAAAAZt9gAC2a/AAEAAAAAAAAAAAAA
313
313
  mode: e,
314
314
  primary: {
315
315
  contrastText: "#fff",
316
- main: "#3f51b5"
316
+ main: "#154273"
317
317
  },
318
318
  secondary: {
319
319
  contrastText: "#fff",