@amateescu/portal-ui-components 0.0.31 → 0.0.32-beta1
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/{UserInfoDropdown-DtadP0e7.js → UserInfoDropdown-Cql8tlJU.js} +50 -50
- package/dist/assets/ConfirmationModal.css +1 -1
- package/dist/assets/ErrorModal.css +1 -1
- package/dist/assets/KpiCard.css +1 -1
- package/dist/assets/SideMenu.css +1 -1
- package/dist/assets/UserInfoDropdown.css +1 -1
- package/dist/assets/portal-theme.css +1 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.js +15 -16
- package/dist/components/CustomButton/CustomButton.js +10 -11
- package/dist/components/CustomFooter/CustomFooter.stories.js +6 -7
- package/dist/components/CustomPagination/CustomPagination.js +142 -143
- package/dist/components/ErrorModal/ErrorModal.js +11 -11
- package/dist/components/InfoModal/InfoModal.js +11 -12
- package/dist/components/KpiCard/KpiCard.js +1 -1
- package/dist/components/KpiWrapper/KpiWrapper.stories.js +10 -11
- package/dist/components/Login/Login.js +3 -4
- package/dist/components/SideMenu/SideMenu.js +11 -12
- package/dist/components/TotalDataGrid/TotalDataGrid.js +9 -10
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/main.js +1 -1
- package/package.json +5 -3
- package/src/theme/portal-theme.scss +43 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as l, jsxs as ot } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import '../../assets/theme.css';/* empty css */
|
|
2
|
+
import * as d from "react";
|
|
4
3
|
import { GridPagination as nt } from "@mui/x-data-grid";
|
|
5
4
|
import { g as Q, a as X, u as Y, s as R, c as A, b as T, d as Z, m as F, i as S, e as _, P as e } from "../../createSimplePaletteValueFilter-evt-Xthj.js";
|
|
6
|
-
import { u as st, a as
|
|
5
|
+
import { u as st, a as rt, b as j, i as B } from "../../useSlot-Baxtq84W.js";
|
|
7
6
|
import { c as E } from "../../createSvgIcon-CgFXfzFk.js";
|
|
8
|
-
import { B as
|
|
9
|
-
const H = (t) => /* @__PURE__ */
|
|
7
|
+
import { B as it } from "../../ButtonBase-DUKuDCWw.js";
|
|
8
|
+
const H = (t) => /* @__PURE__ */ d.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ d.createElement("g", { id: "arrow/chevron/</default-first" }, /* @__PURE__ */ d.createElement("path", { id: "vector", d: "M17.5 5L10.5 12L17.5 19M7.5 5L7.5 19", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), q = (t) => /* @__PURE__ */ d.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ d.createElement("g", { id: "arrow/chevron/>/end" }, /* @__PURE__ */ d.createElement("path", { id: "vector", d: "M7.5 4.99998L14.5 12L7.5 19M17.5 4.99998L17.5 19", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), J = (t) => /* @__PURE__ */ d.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ d.createElement("path", { d: "M1.5 1L8.5 8L1.5 15", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), K = (t) => /* @__PURE__ */ d.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ d.createElement("path", { d: "M8.5 15L1.5 8L8.5 1", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
10
9
|
function lt(t) {
|
|
11
10
|
return Q("MuiPagination", t);
|
|
12
11
|
}
|
|
@@ -16,69 +15,69 @@ function pt(t = {}) {
|
|
|
16
15
|
boundaryCount: a = 1,
|
|
17
16
|
componentName: o = "usePagination",
|
|
18
17
|
count: n = 1,
|
|
19
|
-
defaultPage:
|
|
20
|
-
disabled:
|
|
21
|
-
hideNextButton:
|
|
22
|
-
hidePrevButton:
|
|
23
|
-
onChange:
|
|
18
|
+
defaultPage: f = 1,
|
|
19
|
+
disabled: x = !1,
|
|
20
|
+
hideNextButton: p = !1,
|
|
21
|
+
hidePrevButton: c = !1,
|
|
22
|
+
onChange: b,
|
|
24
23
|
page: P,
|
|
25
|
-
showFirstButton:
|
|
24
|
+
showFirstButton: $ = !1,
|
|
26
25
|
showLastButton: z = !1,
|
|
27
26
|
siblingCount: C = 1,
|
|
28
27
|
...w
|
|
29
|
-
} = t, [
|
|
28
|
+
} = t, [u, g] = st({
|
|
30
29
|
controlled: P,
|
|
31
|
-
default:
|
|
30
|
+
default: f,
|
|
32
31
|
name: o,
|
|
33
32
|
state: "page"
|
|
34
|
-
}), O = (s,
|
|
35
|
-
P ||
|
|
36
|
-
},
|
|
37
|
-
const I =
|
|
33
|
+
}), O = (s, r) => {
|
|
34
|
+
P || g(r), b && b(s, r);
|
|
35
|
+
}, h = (s, r) => {
|
|
36
|
+
const I = r - s + 1;
|
|
38
37
|
return Array.from({
|
|
39
38
|
length: I
|
|
40
39
|
}, (V, W) => s + W);
|
|
41
|
-
},
|
|
40
|
+
}, v = h(1, Math.min(a, n)), M = h(Math.max(n - a + 1, a + 1), n), m = Math.max(
|
|
42
41
|
Math.min(
|
|
43
42
|
// Natural start
|
|
44
|
-
|
|
43
|
+
u - C,
|
|
45
44
|
// Lower boundary when page is high
|
|
46
45
|
n - a - C * 2 - 1
|
|
47
46
|
),
|
|
48
47
|
// Greater than startPages
|
|
49
48
|
a + 2
|
|
50
|
-
),
|
|
49
|
+
), y = Math.min(
|
|
51
50
|
Math.max(
|
|
52
51
|
// Natural end
|
|
53
|
-
|
|
52
|
+
u + C,
|
|
54
53
|
// Upper boundary when page is low
|
|
55
54
|
a + C * 2 + 2
|
|
56
55
|
),
|
|
57
56
|
// Less than endPages
|
|
58
57
|
n - a - 1
|
|
59
58
|
), N = [
|
|
60
|
-
|
|
61
|
-
...
|
|
62
|
-
...
|
|
59
|
+
...$ ? ["first"] : [],
|
|
60
|
+
...c ? [] : ["previous"],
|
|
61
|
+
...v,
|
|
63
62
|
// Start ellipsis
|
|
64
63
|
// eslint-disable-next-line no-nested-ternary
|
|
65
64
|
...m > a + 2 ? ["start-ellipsis"] : a + 1 < n - a ? [a + 1] : [],
|
|
66
65
|
// Sibling pages
|
|
67
|
-
|
|
66
|
+
...h(m, y),
|
|
68
67
|
// End ellipsis
|
|
69
68
|
// eslint-disable-next-line no-nested-ternary
|
|
70
|
-
...
|
|
69
|
+
...y < n - a - 1 ? ["end-ellipsis"] : n - a > a ? [n - a] : [],
|
|
71
70
|
...M,
|
|
72
|
-
...
|
|
71
|
+
...p ? [] : ["next"],
|
|
73
72
|
...z ? ["last"] : []
|
|
74
|
-
],
|
|
73
|
+
], L = (s) => {
|
|
75
74
|
switch (s) {
|
|
76
75
|
case "first":
|
|
77
76
|
return 1;
|
|
78
77
|
case "previous":
|
|
79
|
-
return
|
|
78
|
+
return u - 1;
|
|
80
79
|
case "next":
|
|
81
|
-
return
|
|
80
|
+
return u + 1;
|
|
82
81
|
case "last":
|
|
83
82
|
return n;
|
|
84
83
|
default:
|
|
@@ -87,22 +86,22 @@ function pt(t = {}) {
|
|
|
87
86
|
};
|
|
88
87
|
return {
|
|
89
88
|
items: N.map((s) => typeof s == "number" ? {
|
|
90
|
-
onClick: (
|
|
91
|
-
O(
|
|
89
|
+
onClick: (r) => {
|
|
90
|
+
O(r, s);
|
|
92
91
|
},
|
|
93
92
|
type: "page",
|
|
94
93
|
page: s,
|
|
95
|
-
selected: s ===
|
|
96
|
-
disabled:
|
|
97
|
-
"aria-current": s ===
|
|
94
|
+
selected: s === u,
|
|
95
|
+
disabled: x,
|
|
96
|
+
"aria-current": s === u ? "page" : void 0
|
|
98
97
|
} : {
|
|
99
|
-
onClick: (
|
|
100
|
-
O(
|
|
98
|
+
onClick: (r) => {
|
|
99
|
+
O(r, L(s));
|
|
101
100
|
},
|
|
102
101
|
type: s,
|
|
103
|
-
page:
|
|
102
|
+
page: L(s),
|
|
104
103
|
selected: !1,
|
|
105
|
-
disabled:
|
|
104
|
+
disabled: x || !s.includes("ellipsis") && (s === "next" || s === "last" ? u >= n : u <= 1)
|
|
106
105
|
}),
|
|
107
106
|
...w
|
|
108
107
|
};
|
|
@@ -110,7 +109,7 @@ function pt(t = {}) {
|
|
|
110
109
|
function ct(t) {
|
|
111
110
|
return Q("MuiPaginationItem", t);
|
|
112
111
|
}
|
|
113
|
-
const
|
|
112
|
+
const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), dt = E(/* @__PURE__ */ l("path", {
|
|
114
113
|
d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
115
114
|
}), "FirstPage"), ut = E(/* @__PURE__ */ l("path", {
|
|
116
115
|
d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
@@ -128,13 +127,13 @@ const r = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
128
127
|
classes: a,
|
|
129
128
|
color: o,
|
|
130
129
|
disabled: n,
|
|
131
|
-
selected:
|
|
132
|
-
size:
|
|
133
|
-
shape:
|
|
134
|
-
type:
|
|
135
|
-
variant:
|
|
130
|
+
selected: f,
|
|
131
|
+
size: x,
|
|
132
|
+
shape: p,
|
|
133
|
+
type: c,
|
|
134
|
+
variant: b
|
|
136
135
|
} = t, P = {
|
|
137
|
-
root: ["root", `size${T(
|
|
136
|
+
root: ["root", `size${T(x)}`, b, p, o !== "standard" && `color${T(o)}`, o !== "standard" && `${b}${T(o)}`, n && "disabled", f && "selected", {
|
|
138
137
|
page: "page",
|
|
139
138
|
first: "firstLast",
|
|
140
139
|
last: "firstLast",
|
|
@@ -142,7 +141,7 @@ const r = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
142
141
|
"end-ellipsis": "ellipsis",
|
|
143
142
|
previous: "previousNext",
|
|
144
143
|
next: "previousNext"
|
|
145
|
-
}[
|
|
144
|
+
}[c]],
|
|
146
145
|
icon: ["icon"]
|
|
147
146
|
};
|
|
148
147
|
return Z(P, ct, a);
|
|
@@ -162,7 +161,7 @@ const r = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
162
161
|
margin: "0 3px",
|
|
163
162
|
color: (t.vars || t).palette.text.primary,
|
|
164
163
|
height: "auto",
|
|
165
|
-
[`&.${
|
|
164
|
+
[`&.${i.disabled}`]: {
|
|
166
165
|
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
167
166
|
},
|
|
168
167
|
variants: [{
|
|
@@ -186,7 +185,7 @@ const r = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
186
185
|
fontSize: t.typography.pxToRem(15)
|
|
187
186
|
}
|
|
188
187
|
}]
|
|
189
|
-
}))), yt = R(
|
|
188
|
+
}))), yt = R(it, {
|
|
190
189
|
name: "MuiPaginationItem",
|
|
191
190
|
slot: "Root",
|
|
192
191
|
overridesResolver: tt
|
|
@@ -202,10 +201,10 @@ const r = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
202
201
|
padding: "0 6px",
|
|
203
202
|
margin: "0 3px",
|
|
204
203
|
color: (t.vars || t).palette.text.primary,
|
|
205
|
-
[`&.${
|
|
204
|
+
[`&.${i.focusVisible}`]: {
|
|
206
205
|
backgroundColor: (t.vars || t).palette.action.focus
|
|
207
206
|
},
|
|
208
|
-
[`&.${
|
|
207
|
+
[`&.${i.disabled}`]: {
|
|
209
208
|
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
210
209
|
},
|
|
211
210
|
transition: t.transitions.create(["color", "background-color"], {
|
|
@@ -218,7 +217,7 @@ const r = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
218
217
|
backgroundColor: "transparent"
|
|
219
218
|
}
|
|
220
219
|
},
|
|
221
|
-
[`&.${
|
|
220
|
+
[`&.${i.selected}`]: {
|
|
222
221
|
backgroundColor: (t.vars || t).palette.action.selected,
|
|
223
222
|
"&:hover": {
|
|
224
223
|
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : S(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
|
|
@@ -227,10 +226,10 @@ const r = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
227
226
|
backgroundColor: (t.vars || t).palette.action.selected
|
|
228
227
|
}
|
|
229
228
|
},
|
|
230
|
-
[`&.${
|
|
229
|
+
[`&.${i.focusVisible}`]: {
|
|
231
230
|
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : S(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
|
|
232
231
|
},
|
|
233
|
-
[`&.${
|
|
232
|
+
[`&.${i.disabled}`]: {
|
|
234
233
|
opacity: 1,
|
|
235
234
|
color: (t.vars || t).palette.action.disabled,
|
|
236
235
|
backgroundColor: (t.vars || t).palette.action.selected
|
|
@@ -271,8 +270,8 @@ const r = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
271
270
|
},
|
|
272
271
|
style: {
|
|
273
272
|
border: t.vars ? `1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${t.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
|
|
274
|
-
[`&.${
|
|
275
|
-
[`&.${
|
|
273
|
+
[`&.${i.selected}`]: {
|
|
274
|
+
[`&.${i.disabled}`]: {
|
|
276
275
|
borderColor: (t.vars || t).palette.action.disabledBackground,
|
|
277
276
|
color: (t.vars || t).palette.action.disabled
|
|
278
277
|
}
|
|
@@ -283,8 +282,8 @@ const r = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
283
282
|
variant: "text"
|
|
284
283
|
},
|
|
285
284
|
style: {
|
|
286
|
-
[`&.${
|
|
287
|
-
[`&.${
|
|
285
|
+
[`&.${i.selected}`]: {
|
|
286
|
+
[`&.${i.disabled}`]: {
|
|
288
287
|
color: (t.vars || t).palette.action.disabled
|
|
289
288
|
}
|
|
290
289
|
}
|
|
@@ -295,7 +294,7 @@ const r = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
295
294
|
color: a
|
|
296
295
|
},
|
|
297
296
|
style: {
|
|
298
|
-
[`&.${
|
|
297
|
+
[`&.${i.selected}`]: {
|
|
299
298
|
color: (t.vars || t).palette[a].contrastText,
|
|
300
299
|
backgroundColor: (t.vars || t).palette[a].main,
|
|
301
300
|
"&:hover": {
|
|
@@ -305,10 +304,10 @@ const r = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
305
304
|
backgroundColor: (t.vars || t).palette[a].main
|
|
306
305
|
}
|
|
307
306
|
},
|
|
308
|
-
[`&.${
|
|
307
|
+
[`&.${i.focusVisible}`]: {
|
|
309
308
|
backgroundColor: (t.vars || t).palette[a].dark
|
|
310
309
|
},
|
|
311
|
-
[`&.${
|
|
310
|
+
[`&.${i.disabled}`]: {
|
|
312
311
|
color: (t.vars || t).palette.action.disabled
|
|
313
312
|
}
|
|
314
313
|
}
|
|
@@ -319,7 +318,7 @@ const r = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
319
318
|
color: a
|
|
320
319
|
},
|
|
321
320
|
style: {
|
|
322
|
-
[`&.${
|
|
321
|
+
[`&.${i.selected}`]: {
|
|
323
322
|
color: (t.vars || t).palette[a].main,
|
|
324
323
|
border: `1px solid ${t.vars ? `rgba(${t.vars.palette[a].mainChannel} / 0.5)` : S(t.palette[a].main, 0.5)}`,
|
|
325
324
|
backgroundColor: t.vars ? `rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.activatedOpacity})` : S(t.palette[a].main, t.palette.action.activatedOpacity),
|
|
@@ -330,7 +329,7 @@ const r = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
330
329
|
backgroundColor: "transparent"
|
|
331
330
|
}
|
|
332
331
|
},
|
|
333
|
-
[`&.${
|
|
332
|
+
[`&.${i.focusVisible}`]: {
|
|
334
333
|
backgroundColor: t.vars ? `rgba(${t.vars.palette[a].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))` : S(t.palette[a].main, t.palette.action.activatedOpacity + t.palette.action.focusOpacity)
|
|
335
334
|
}
|
|
336
335
|
}
|
|
@@ -359,87 +358,87 @@ const r = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
359
358
|
fontSize: t.typography.pxToRem(22)
|
|
360
359
|
}
|
|
361
360
|
}]
|
|
362
|
-
}))), U = /* @__PURE__ */
|
|
361
|
+
}))), U = /* @__PURE__ */ d.forwardRef(function(a, o) {
|
|
363
362
|
const n = Y({
|
|
364
363
|
props: a,
|
|
365
364
|
name: "MuiPaginationItem"
|
|
366
365
|
}), {
|
|
367
|
-
className:
|
|
368
|
-
color:
|
|
369
|
-
component:
|
|
370
|
-
components:
|
|
371
|
-
disabled:
|
|
366
|
+
className: f,
|
|
367
|
+
color: x = "standard",
|
|
368
|
+
component: p,
|
|
369
|
+
components: c = {},
|
|
370
|
+
disabled: b = !1,
|
|
372
371
|
page: P,
|
|
373
|
-
selected:
|
|
372
|
+
selected: $ = !1,
|
|
374
373
|
shape: z = "circular",
|
|
375
374
|
size: C = "medium",
|
|
376
375
|
slots: w = {},
|
|
377
|
-
slotProps:
|
|
378
|
-
type:
|
|
376
|
+
slotProps: u = {},
|
|
377
|
+
type: g = "page",
|
|
379
378
|
variant: O = "text",
|
|
380
|
-
|
|
381
|
-
} = n,
|
|
379
|
+
...h
|
|
380
|
+
} = n, v = {
|
|
382
381
|
...n,
|
|
383
|
-
color:
|
|
384
|
-
disabled:
|
|
385
|
-
selected:
|
|
382
|
+
color: x,
|
|
383
|
+
disabled: b,
|
|
384
|
+
selected: $,
|
|
386
385
|
shape: z,
|
|
387
386
|
size: C,
|
|
388
|
-
type:
|
|
387
|
+
type: g,
|
|
389
388
|
variant: O
|
|
390
|
-
}, M =
|
|
389
|
+
}, M = rt(), m = ft(v), y = {
|
|
391
390
|
slots: {
|
|
392
|
-
previous: w.previous ??
|
|
393
|
-
next: w.next ??
|
|
394
|
-
first: w.first ??
|
|
395
|
-
last: w.last ??
|
|
391
|
+
previous: w.previous ?? c.previous,
|
|
392
|
+
next: w.next ?? c.next,
|
|
393
|
+
first: w.first ?? c.first,
|
|
394
|
+
last: w.last ?? c.last
|
|
396
395
|
},
|
|
397
|
-
slotProps:
|
|
398
|
-
}, [N,
|
|
396
|
+
slotProps: u
|
|
397
|
+
}, [N, L] = j("previous", {
|
|
399
398
|
elementType: gt,
|
|
400
|
-
externalForwardedProps:
|
|
401
|
-
ownerState:
|
|
399
|
+
externalForwardedProps: y,
|
|
400
|
+
ownerState: v
|
|
402
401
|
}), [k, s] = j("next", {
|
|
403
402
|
elementType: vt,
|
|
404
|
-
externalForwardedProps:
|
|
405
|
-
ownerState:
|
|
406
|
-
}), [
|
|
403
|
+
externalForwardedProps: y,
|
|
404
|
+
ownerState: v
|
|
405
|
+
}), [r, I] = j("first", {
|
|
407
406
|
elementType: dt,
|
|
408
|
-
externalForwardedProps:
|
|
409
|
-
ownerState:
|
|
407
|
+
externalForwardedProps: y,
|
|
408
|
+
ownerState: v
|
|
410
409
|
}), [V, W] = j("last", {
|
|
411
410
|
elementType: ut,
|
|
412
|
-
externalForwardedProps:
|
|
413
|
-
ownerState:
|
|
411
|
+
externalForwardedProps: y,
|
|
412
|
+
ownerState: v
|
|
414
413
|
}), D = M ? {
|
|
415
414
|
previous: "next",
|
|
416
415
|
next: "previous",
|
|
417
416
|
first: "last",
|
|
418
417
|
last: "first"
|
|
419
|
-
}[
|
|
418
|
+
}[g] : g, G = {
|
|
420
419
|
previous: N,
|
|
421
420
|
next: k,
|
|
422
|
-
first:
|
|
421
|
+
first: r,
|
|
423
422
|
last: V
|
|
424
423
|
}[D], at = {
|
|
425
|
-
previous:
|
|
424
|
+
previous: L,
|
|
426
425
|
next: s,
|
|
427
426
|
first: I,
|
|
428
427
|
last: W
|
|
429
428
|
}[D];
|
|
430
|
-
return
|
|
429
|
+
return g === "start-ellipsis" || g === "end-ellipsis" ? /* @__PURE__ */ l(bt, {
|
|
431
430
|
ref: o,
|
|
432
|
-
ownerState:
|
|
433
|
-
className: A(m.root,
|
|
431
|
+
ownerState: v,
|
|
432
|
+
className: A(m.root, f),
|
|
434
433
|
children: "…"
|
|
435
434
|
}) : /* @__PURE__ */ ot(yt, {
|
|
436
435
|
ref: o,
|
|
437
|
-
ownerState:
|
|
438
|
-
component:
|
|
439
|
-
disabled:
|
|
440
|
-
className: A(m.root,
|
|
441
|
-
|
|
442
|
-
children: [
|
|
436
|
+
ownerState: v,
|
|
437
|
+
component: p,
|
|
438
|
+
disabled: b,
|
|
439
|
+
className: A(m.root, f),
|
|
440
|
+
...h,
|
|
441
|
+
children: [g === "page" && P, G ? /* @__PURE__ */ l(xt, {
|
|
443
442
|
...at,
|
|
444
443
|
className: m.icon,
|
|
445
444
|
as: G
|
|
@@ -581,72 +580,72 @@ const mt = (t) => {
|
|
|
581
580
|
function wt(t, a, o) {
|
|
582
581
|
return t === "page" ? `${o ? "" : "Go to "}page ${a}` : `Go to ${t} page`;
|
|
583
582
|
}
|
|
584
|
-
const et = /* @__PURE__ */
|
|
583
|
+
const et = /* @__PURE__ */ d.forwardRef(function(a, o) {
|
|
585
584
|
const n = Y({
|
|
586
585
|
props: a,
|
|
587
586
|
name: "MuiPagination"
|
|
588
587
|
}), {
|
|
589
|
-
boundaryCount:
|
|
590
|
-
className:
|
|
591
|
-
color:
|
|
592
|
-
count:
|
|
593
|
-
defaultPage:
|
|
588
|
+
boundaryCount: f = 1,
|
|
589
|
+
className: x,
|
|
590
|
+
color: p = "standard",
|
|
591
|
+
count: c = 1,
|
|
592
|
+
defaultPage: b = 1,
|
|
594
593
|
disabled: P = !1,
|
|
595
|
-
getItemAriaLabel:
|
|
594
|
+
getItemAriaLabel: $ = wt,
|
|
596
595
|
hideNextButton: z = !1,
|
|
597
596
|
hidePrevButton: C = !1,
|
|
598
597
|
onChange: w,
|
|
599
|
-
page:
|
|
600
|
-
renderItem:
|
|
601
|
-
...
|
|
598
|
+
page: u,
|
|
599
|
+
renderItem: g = (r) => /* @__PURE__ */ l(U, {
|
|
600
|
+
...r
|
|
602
601
|
}),
|
|
603
602
|
shape: O = "circular",
|
|
604
|
-
showFirstButton:
|
|
605
|
-
showLastButton:
|
|
603
|
+
showFirstButton: h = !1,
|
|
604
|
+
showLastButton: v = !1,
|
|
606
605
|
siblingCount: M = 1,
|
|
607
606
|
size: m = "medium",
|
|
608
|
-
variant:
|
|
607
|
+
variant: y = "text",
|
|
609
608
|
...N
|
|
610
609
|
} = n, {
|
|
611
|
-
items:
|
|
610
|
+
items: L
|
|
612
611
|
} = pt({
|
|
613
612
|
...n,
|
|
614
613
|
componentName: "Pagination"
|
|
615
614
|
}), k = {
|
|
616
615
|
...n,
|
|
617
|
-
boundaryCount:
|
|
618
|
-
color:
|
|
619
|
-
count:
|
|
620
|
-
defaultPage:
|
|
616
|
+
boundaryCount: f,
|
|
617
|
+
color: p,
|
|
618
|
+
count: c,
|
|
619
|
+
defaultPage: b,
|
|
621
620
|
disabled: P,
|
|
622
|
-
getItemAriaLabel:
|
|
621
|
+
getItemAriaLabel: $,
|
|
623
622
|
hideNextButton: z,
|
|
624
623
|
hidePrevButton: C,
|
|
625
|
-
renderItem:
|
|
624
|
+
renderItem: g,
|
|
626
625
|
shape: O,
|
|
627
|
-
showFirstButton:
|
|
628
|
-
showLastButton:
|
|
626
|
+
showFirstButton: h,
|
|
627
|
+
showLastButton: v,
|
|
629
628
|
siblingCount: M,
|
|
630
629
|
size: m,
|
|
631
|
-
variant:
|
|
630
|
+
variant: y
|
|
632
631
|
}, s = mt(k);
|
|
633
632
|
return /* @__PURE__ */ l(Pt, {
|
|
634
633
|
"aria-label": "pagination navigation",
|
|
635
|
-
className: A(s.root,
|
|
634
|
+
className: A(s.root, x),
|
|
636
635
|
ownerState: k,
|
|
637
636
|
ref: o,
|
|
638
637
|
...N,
|
|
639
638
|
children: /* @__PURE__ */ l(Ct, {
|
|
640
639
|
className: s.ul,
|
|
641
640
|
ownerState: k,
|
|
642
|
-
children:
|
|
643
|
-
children:
|
|
644
|
-
...
|
|
645
|
-
color:
|
|
646
|
-
"aria-label":
|
|
641
|
+
children: L.map((r, I) => /* @__PURE__ */ l("li", {
|
|
642
|
+
children: g({
|
|
643
|
+
...r,
|
|
644
|
+
color: p,
|
|
645
|
+
"aria-label": $(r.type, r.page, r.selected),
|
|
647
646
|
shape: O,
|
|
648
647
|
size: m,
|
|
649
|
-
variant:
|
|
648
|
+
variant: y
|
|
650
649
|
})
|
|
651
650
|
}, I))
|
|
652
651
|
})
|
|
@@ -771,18 +770,18 @@ function Ot({
|
|
|
771
770
|
pageCount: a,
|
|
772
771
|
page: o,
|
|
773
772
|
onPageChange: n,
|
|
774
|
-
className:
|
|
773
|
+
className: f
|
|
775
774
|
}) {
|
|
776
|
-
return /* @__PURE__ */ l(
|
|
775
|
+
return localStorage.getItem("theme") === "portal-theme" ? import("../../portal-theme-BarSJQdA.js") : import("../../theme-94RKb7HE.js"), /* @__PURE__ */ l(
|
|
777
776
|
et,
|
|
778
777
|
{
|
|
779
778
|
showFirstButton: !0,
|
|
780
779
|
showLastButton: !0,
|
|
781
|
-
className:
|
|
780
|
+
className: f,
|
|
782
781
|
count: a,
|
|
783
782
|
page: o + 1,
|
|
784
|
-
onChange: (p,
|
|
785
|
-
n(p,
|
|
783
|
+
onChange: (p, c) => {
|
|
784
|
+
n(p, c - 1);
|
|
786
785
|
},
|
|
787
786
|
boundaryCount: 0,
|
|
788
787
|
siblingCount: 1,
|
|
@@ -809,10 +808,10 @@ function Ot({
|
|
|
809
808
|
}
|
|
810
809
|
);
|
|
811
810
|
}
|
|
812
|
-
function
|
|
811
|
+
function zt({ isRtl: t, pageCount: a }) {
|
|
813
812
|
return /* @__PURE__ */ l(nt, { ActionsComponent: (o) => /* @__PURE__ */ l(Ot, { isRtl: t, pageCount: a, ...o }) });
|
|
814
813
|
}
|
|
815
814
|
export {
|
|
816
|
-
|
|
815
|
+
zt as CustomPagination,
|
|
817
816
|
Ot as Pagination
|
|
818
817
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const p = "_flexRowCenter_1ixx3_43", d = "_text18_1ixx3_57", m = "_content_1ixx3_61", t = {
|
|
2
|
+
import { useState as i } from "react";
|
|
3
|
+
import { M as m } from "../../index-Dz00OoV7.js";
|
|
4
|
+
import '../../assets/ErrorModal.css';const p = "_flexRowCenter_1wx1z_85", x = "_text18_1wx1z_99", d = "_content_1wx1z_103", t = {
|
|
6
5
|
flexRowCenter: p,
|
|
7
|
-
text18:
|
|
8
|
-
content:
|
|
9
|
-
},
|
|
10
|
-
|
|
6
|
+
text18: x,
|
|
7
|
+
content: d
|
|
8
|
+
}, _ = ({ error: o, resetErrorBoundary: n, title: r, tryAgain: l, cancel: c }) => {
|
|
9
|
+
localStorage.getItem("theme") === "portal-theme" ? import("../../portal-theme-BarSJQdA.js") : import("../../theme-94RKb7HE.js");
|
|
10
|
+
const [s, a] = i(!0), h = () => {
|
|
11
11
|
a(!1);
|
|
12
12
|
};
|
|
13
13
|
return /* @__PURE__ */ e(
|
|
14
|
-
|
|
14
|
+
m,
|
|
15
15
|
{
|
|
16
16
|
title: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("p", { className: t.text18, children: r }) }),
|
|
17
17
|
centered: !0,
|
|
18
18
|
open: s,
|
|
19
19
|
onOk: n,
|
|
20
|
-
onCancel:
|
|
20
|
+
onCancel: h,
|
|
21
21
|
closeIcon: !0,
|
|
22
22
|
okText: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("span", { children: l }) }),
|
|
23
23
|
okButtonProps: {
|
|
@@ -37,5 +37,5 @@ const p = "_flexRowCenter_1ixx3_43", d = "_text18_1ixx3_57", m = "_content_1ixx3
|
|
|
37
37
|
);
|
|
38
38
|
};
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
_ as ErrorModal
|
|
41
41
|
};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import { S as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
content: h
|
|
3
|
+
import { S as m } from "../../VModalIcon-D7L4bQLO.js";
|
|
4
|
+
import { M as i } from "../../index-Dz00OoV7.js";
|
|
5
|
+
import '../../assets/ErrorModal.css';const p = (o) => /* @__PURE__ */ r.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...o }, /* @__PURE__ */ r.createElement("path", { d: "M13 16H12V12H11M12 8H12.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), x = "_flexRowCenter_1wx1z_85", d = "_mr10_1wx1z_91", h = "_text18_1wx1z_99", f = "_content_1wx1z_103", t = {
|
|
6
|
+
flexRowCenter: x,
|
|
7
|
+
mr10: d,
|
|
8
|
+
text18: h,
|
|
9
|
+
content: f
|
|
11
10
|
};
|
|
12
11
|
function k({ modalOpen: o, contentText: s, setModalOpen: l, title: c, okText: a }) {
|
|
13
|
-
return /* @__PURE__ */ e(
|
|
14
|
-
|
|
12
|
+
return localStorage.getItem("theme") === "portal-theme" ? import("../../portal-theme-BarSJQdA.js") : import("../../theme-94RKb7HE.js"), /* @__PURE__ */ e(
|
|
13
|
+
i,
|
|
15
14
|
{
|
|
16
15
|
title: /* @__PURE__ */ n("span", { className: t.flexRowCenter, children: [
|
|
17
|
-
/* @__PURE__ */ e(
|
|
16
|
+
/* @__PURE__ */ e(p, { className: t.mr10 }),
|
|
18
17
|
/* @__PURE__ */ e("p", { className: t.text18, children: c })
|
|
19
18
|
] }),
|
|
20
19
|
centered: !0,
|
|
@@ -22,7 +21,7 @@ function k({ modalOpen: o, contentText: s, setModalOpen: l, title: c, okText: a
|
|
|
22
21
|
onOk: () => l(!1),
|
|
23
22
|
closeIcon: !1,
|
|
24
23
|
okText: /* @__PURE__ */ n("span", { className: t.flexRowCenter, children: [
|
|
25
|
-
/* @__PURE__ */ e(
|
|
24
|
+
/* @__PURE__ */ e(m, {}),
|
|
26
25
|
/* @__PURE__ */ e("span", { children: a })
|
|
27
26
|
] }),
|
|
28
27
|
okButtonProps: {
|
|
@@ -2383,7 +2383,7 @@ const Dn = (e) => {
|
|
|
2383
2383
|
Ke.Grid = Qt;
|
|
2384
2384
|
Ke.Meta = Dn;
|
|
2385
2385
|
process.env.NODE_ENV !== "production" && (Ke.displayName = "Card");
|
|
2386
|
-
const Bn = "
|
|
2386
|
+
const Bn = "_kpiCard_rhgq4_85", jn = "_width430_rhgq4_91", An = "_width384_rhgq4_100", Gn = "_flexCol_rhgq4_104", Hn = "_flexRow_rhgq4_109", Wn = "_title_rhgq4_114", Vn = "_content_rhgq4_140", Ce = {
|
|
2387
2387
|
kpiCard: Bn,
|
|
2388
2388
|
width430: jn,
|
|
2389
2389
|
width384: An,
|