@amateescu/portal-ui-components 0.0.32-beta1 → 0.0.33
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-Cql8tlJU.js → UserInfoDropdown-GTCkmg6H.js} +2 -2
- 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/{theme.css → globals.css} +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.js +17 -17
- package/dist/components/CustomButton/CustomButton.js +10 -10
- package/dist/components/CustomFooter/CustomFooter.stories.js +7 -6
- package/dist/components/CustomPagination/CustomPagination.js +162 -157
- package/dist/components/ErrorModal/ErrorModal.js +10 -11
- package/dist/components/InfoModal/InfoModal.js +18 -18
- package/dist/components/KpiCard/KpiCard.js +1 -1
- package/dist/components/KpiWrapper/KpiWrapper.stories.js +11 -10
- package/dist/components/Login/Login.js +2 -2
- package/dist/components/SideMenu/SideMenu.js +33 -33
- package/dist/components/TotalDataGrid/TotalDataGrid.js +11 -11
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
- package/dist/components/index.js +25 -24
- package/dist/main.js +46 -45
- package/package.json +3 -7
- package/dist/assets/portal-theme.css +0 -1
- package/src/theme/portal-theme.scss +0 -43
- package/src/theme/theme.scss +0 -43
|
@@ -1,27 +1,27 @@
|
|
|
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 { M as
|
|
5
|
-
import '../../assets/ErrorModal.css';const
|
|
6
|
-
flexRowCenter:
|
|
7
|
-
mr10:
|
|
8
|
-
text18:
|
|
9
|
-
content:
|
|
3
|
+
import { S as i } from "../../VModalIcon-D7L4bQLO.js";
|
|
4
|
+
import { M as m } from "../../index-Dz00OoV7.js";
|
|
5
|
+
import '../../assets/ErrorModal.css';const d = (t) => /* @__PURE__ */ r.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__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: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), f = "_flexRowCenter_ufgj5_1", p = "_mr10_ufgj5_7", x = "_text18_ufgj5_15", h = "_content_ufgj5_19", o = {
|
|
6
|
+
flexRowCenter: f,
|
|
7
|
+
mr10: p,
|
|
8
|
+
text18: x,
|
|
9
|
+
content: h
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
return
|
|
13
|
-
|
|
11
|
+
function w({ modalOpen: t, contentText: s, setModalOpen: l, title: c, okText: a }) {
|
|
12
|
+
return /* @__PURE__ */ e(
|
|
13
|
+
m,
|
|
14
14
|
{
|
|
15
|
-
title: /* @__PURE__ */ n("span", { className:
|
|
16
|
-
/* @__PURE__ */ e(
|
|
17
|
-
/* @__PURE__ */ e("p", { className:
|
|
15
|
+
title: /* @__PURE__ */ n("span", { className: o.flexRowCenter, children: [
|
|
16
|
+
/* @__PURE__ */ e(d, { className: o.mr10, color: "var(--color-primary)" }),
|
|
17
|
+
/* @__PURE__ */ e("p", { className: o.text18, children: c })
|
|
18
18
|
] }),
|
|
19
19
|
centered: !0,
|
|
20
|
-
open:
|
|
20
|
+
open: t,
|
|
21
21
|
onOk: () => l(!1),
|
|
22
22
|
closeIcon: !1,
|
|
23
|
-
okText: /* @__PURE__ */ n("span", { className:
|
|
24
|
-
/* @__PURE__ */ e(
|
|
23
|
+
okText: /* @__PURE__ */ n("span", { className: o.flexRowCenter, children: [
|
|
24
|
+
/* @__PURE__ */ e(i, {}),
|
|
25
25
|
/* @__PURE__ */ e("span", { children: a })
|
|
26
26
|
] }),
|
|
27
27
|
okButtonProps: {
|
|
@@ -35,10 +35,10 @@ function k({ modalOpen: o, contentText: s, setModalOpen: l, title: c, okText: a
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
zIndex: 2e3,
|
|
38
|
-
children: /* @__PURE__ */ e("p", { className:
|
|
38
|
+
children: /* @__PURE__ */ e("p", { className: o.content, children: s })
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
42
|
export {
|
|
43
|
-
|
|
43
|
+
w as InfoModal
|
|
44
44
|
};
|
|
@@ -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_w4qw3_1", jn = "_width430_w4qw3_7", An = "_width384_w4qw3_16", Gn = "_flexCol_w4qw3_20", Hn = "_flexRow_w4qw3_25", Wn = "_title_w4qw3_30", Vn = "_content_w4qw3_56", Ce = {
|
|
2387
2387
|
kpiCard: Bn,
|
|
2388
2388
|
width430: jn,
|
|
2389
2389
|
width384: An,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { S as e } from "../../InvencoGVR-qnTq-d6S.js";
|
|
3
|
+
import '../../assets/SideMenu.css';import '../../assets/globals.css';/* empty css */
|
|
3
4
|
import "react";
|
|
4
5
|
import "@mui/x-data-grid";
|
|
5
6
|
import { KpiCard as i } from "../KpiCard/KpiCard.js";
|
|
6
7
|
import { KpiWrapper as n } from "./KpiWrapper.js";
|
|
7
8
|
import "i18next";
|
|
8
|
-
|
|
9
|
-
const
|
|
9
|
+
/* empty css */
|
|
10
|
+
const m = {
|
|
10
11
|
title: "Kpi Wrapper",
|
|
11
12
|
component: n,
|
|
12
13
|
tags: ["autodocs"],
|
|
@@ -19,7 +20,7 @@ const s = {
|
|
|
19
20
|
padding: "10px 10px"
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
},
|
|
23
|
+
}, K = {}, u = {
|
|
23
24
|
args: {
|
|
24
25
|
children: [
|
|
25
26
|
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
@@ -27,7 +28,7 @@ const s = {
|
|
|
27
28
|
/* @__PURE__ */ t(i, { title: "Kpi Card 3", content: "Kpi Card Content 3", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 })
|
|
28
29
|
]
|
|
29
30
|
}
|
|
30
|
-
},
|
|
31
|
+
}, g = {
|
|
31
32
|
args: {
|
|
32
33
|
children: [
|
|
33
34
|
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
@@ -36,7 +37,7 @@ const s = {
|
|
|
36
37
|
/* @__PURE__ */ t(i, { title: "Kpi Card 4", content: "Kpi Card Content 4", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 })
|
|
37
38
|
]
|
|
38
39
|
}
|
|
39
|
-
},
|
|
40
|
+
}, w = {
|
|
40
41
|
args: {
|
|
41
42
|
children: [
|
|
42
43
|
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
@@ -47,9 +48,9 @@ const s = {
|
|
|
47
48
|
render: (r) => /* @__PURE__ */ t("div", { dir: "rtl", style: { margin: "20px 20px" }, children: /* @__PURE__ */ t(n, { ...r }) })
|
|
48
49
|
};
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
K as Default,
|
|
52
|
+
w as RTL,
|
|
53
|
+
u as With3Kpis,
|
|
54
|
+
g as With4Kpis,
|
|
55
|
+
m as default
|
|
55
56
|
};
|
|
@@ -8848,7 +8848,7 @@ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
|
|
8848
8848
|
});
|
|
8849
8849
|
const ui = ke(/* @__PURE__ */ v("path", {
|
|
8850
8850
|
d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"
|
|
8851
|
-
}), "LockOutlined"), Si = ({ title: t, disableAll: o, error: n, setError: r, handleSubmit: i, version: s }) =>
|
|
8851
|
+
}), "LockOutlined"), Si = ({ title: t, disableAll: o, error: n, setError: r, handleSubmit: i, version: s }) => /* @__PURE__ */ ce(Ko, { component: "main", maxWidth: "xs", children: [
|
|
8852
8852
|
/* @__PURE__ */ v(Xo, {}),
|
|
8853
8853
|
/* @__PURE__ */ ce(
|
|
8854
8854
|
oo,
|
|
@@ -8906,7 +8906,7 @@ const ui = ke(/* @__PURE__ */ v("path", {
|
|
|
8906
8906
|
]
|
|
8907
8907
|
}
|
|
8908
8908
|
)
|
|
8909
|
-
] })
|
|
8909
|
+
] });
|
|
8910
8910
|
export {
|
|
8911
8911
|
Si as Login
|
|
8912
8912
|
};
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { M as R, S as N, U as h } from "../../UserInfoDropdown-
|
|
1
|
+
import { jsxs as o, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { M as R, S as N, U as h } from "../../UserInfoDropdown-GTCkmg6H.js";
|
|
4
4
|
import { S as H } from "../../InvencoGVR-qnTq-d6S.js";
|
|
5
5
|
import '../../assets/SideMenu.css';/* empty css */
|
|
6
|
-
const v = (
|
|
7
|
-
logo:
|
|
6
|
+
const v = (n) => /* @__PURE__ */ l.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ l.createElement("path", { d: "M11 19L4 12L11 5M19 19L12 12L19 5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), p = (n) => /* @__PURE__ */ l.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ l.createElement("path", { d: "M13 5L20 12L13 19M5 5L12 12L5 19", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), V = (n) => /* @__PURE__ */ l.createElement("svg", { width: 28, height: 27, viewBox: "0 0 28 27", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ l.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.5 4V9C10.5 9.55228 10.0523 10 9.5 10H4.5L6.5 12H9.5C11.1569 12 12.5 10.6569 12.5 9V6L10.5 4Z", fill: "#12121A" }), /* @__PURE__ */ l.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.5 6V0L8.5 2V7.75C8.5 7.88807 8.38807 8 8.25 8H2.5L0.5 6H6.5Z", fill: "#12121A" }), /* @__PURE__ */ l.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.5 4V9C17.5 9.55228 17.9477 10 18.5 10H23.5L21.5 12H18.5C16.8431 12 15.5 10.6569 15.5 9V6L17.5 4Z", fill: "#12121A" }), /* @__PURE__ */ l.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.5 6V0L19.5 2V7.75C19.5 7.88807 19.6119 8 19.75 8H25.5L27.5 6H21.5Z", fill: "#12121A" }), /* @__PURE__ */ l.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.5 23V18C10.5 17.4477 10.0523 17 9.5 17H4.5L6.5 15H9.5C11.1569 15 12.5 16.3431 12.5 18V21L10.5 23Z", fill: "#12121A" }), /* @__PURE__ */ l.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.5 21V27L8.5 25V19.25C8.5 19.1119 8.38807 19 8.25 19H2.5L0.5 21H6.5Z", fill: "#12121A" })), Z = ({
|
|
7
|
+
logo: n,
|
|
8
8
|
title: u,
|
|
9
|
-
softwareName:
|
|
10
|
-
majorVersion:
|
|
11
|
-
menuItems:
|
|
9
|
+
softwareName: t,
|
|
10
|
+
majorVersion: L,
|
|
11
|
+
menuItems: f,
|
|
12
12
|
userInfoDropdownItems: c,
|
|
13
|
-
collapsed:
|
|
13
|
+
collapsed: r,
|
|
14
14
|
username: a,
|
|
15
15
|
isRtl: d,
|
|
16
|
-
openKeys:
|
|
17
|
-
toggleCollapsed:
|
|
18
|
-
onClick:
|
|
16
|
+
openKeys: w,
|
|
17
|
+
toggleCollapsed: i,
|
|
18
|
+
onClick: g,
|
|
19
19
|
handleMenuClickUserInfo: s,
|
|
20
|
-
handleOpenChange:
|
|
20
|
+
handleOpenChange: C
|
|
21
21
|
}) => {
|
|
22
|
-
const m = /@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,
|
|
23
|
-
return
|
|
24
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { children:
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
27
|
-
/* @__PURE__ */
|
|
22
|
+
const m = /@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, x = r ? 54 : 250, k = r ? 50 : 250;
|
|
23
|
+
return /* @__PURE__ */ o("div", { style: { width: x }, className: "main-container", children: [
|
|
24
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { children: r ? /* @__PURE__ */ e("div", { className: "flex-col-center mt-15", children: d ? /* @__PURE__ */ e(v, { onClick: i, className: "pointer", color: "var(--color-primary)" }) : /* @__PURE__ */ e(p, { onClick: i, className: "pointer", color: "var(--color-primary)" }) }) : /* @__PURE__ */ o("div", { className: "space-around-center", children: [
|
|
25
|
+
/* @__PURE__ */ o("div", { className: "flex-row-center", children: [
|
|
26
|
+
n,
|
|
27
|
+
/* @__PURE__ */ o("h4", { className: "station ml-5", children: [
|
|
28
28
|
u,
|
|
29
|
-
|
|
29
|
+
t ? /* @__PURE__ */ o(M, { children: [
|
|
30
30
|
/* @__PURE__ */ e("br", {}),
|
|
31
31
|
" ",
|
|
32
|
-
|
|
32
|
+
t,
|
|
33
33
|
": ",
|
|
34
|
-
|
|
34
|
+
L
|
|
35
35
|
] }) : ""
|
|
36
36
|
] })
|
|
37
37
|
] }),
|
|
38
|
-
d ? /* @__PURE__ */ e(p, { onClick:
|
|
38
|
+
d ? /* @__PURE__ */ e(p, { onClick: i, className: "pointer", color: "var(--color-primary)" }) : /* @__PURE__ */ e(v, { onClick: i, className: "pointer", color: "var(--color-primary)" })
|
|
39
39
|
] }) }) }),
|
|
40
40
|
/* @__PURE__ */ e(
|
|
41
41
|
R,
|
|
42
42
|
{
|
|
43
|
-
onClick:
|
|
43
|
+
onClick: g,
|
|
44
44
|
mode: "inline",
|
|
45
|
-
onOpenChange:
|
|
46
|
-
openKeys:
|
|
45
|
+
onOpenChange: C,
|
|
46
|
+
openKeys: w,
|
|
47
47
|
selectedKeys: [location.pathname.slice(location.pathname.lastIndexOf("/"), location.pathname.length)],
|
|
48
|
-
items:
|
|
49
|
-
expandIcon: /* @__PURE__ */ e(N, {}),
|
|
48
|
+
items: r ? void 0 : f,
|
|
49
|
+
expandIcon: /* @__PURE__ */ e(N, { color: "var(--color-primary)" }),
|
|
50
50
|
style: {
|
|
51
|
-
height:
|
|
51
|
+
height: r ? "82vh" : "80vh",
|
|
52
52
|
//menuHeight,
|
|
53
|
-
width:
|
|
53
|
+
width: k,
|
|
54
54
|
backgroundColor: "var(--color-background)",
|
|
55
55
|
border: "none"
|
|
56
56
|
},
|
|
57
57
|
className: "menu side-menu"
|
|
58
58
|
}
|
|
59
59
|
),
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
r ? /* @__PURE__ */ e("div", { className: "flex-col-center mb-30", children: /* @__PURE__ */ e(h, { user: a.replace(m, ""), collapsed: !0, items: c, handleMenuClick: s }) }) : /* @__PURE__ */ e("div", { className: "user-logo-container", children: /* @__PURE__ */ e(h, { user: a.replace(m, ""), collapsed: !1, items: c, handleMenuClick: s }) }),
|
|
61
|
+
r ? /* @__PURE__ */ e("div", { className: "flex-col-center mb-30", children: /* @__PURE__ */ e(V, {}) }) : /* @__PURE__ */ e("div", { className: "logo-small-container", children: /* @__PURE__ */ e(H, {}) })
|
|
62
62
|
] });
|
|
63
63
|
};
|
|
64
64
|
export {
|
|
65
|
-
|
|
65
|
+
Z as SideMenu
|
|
66
66
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { DataGrid as l, gridClasses as o } from "@mui/x-data-grid";
|
|
3
|
-
const
|
|
3
|
+
const c = ({
|
|
4
4
|
rows: r,
|
|
5
|
-
isFetching:
|
|
6
|
-
columnsDefinitions:
|
|
7
|
-
}) =>
|
|
5
|
+
isFetching: n,
|
|
6
|
+
columnsDefinitions: e
|
|
7
|
+
}) => /* @__PURE__ */ t(
|
|
8
8
|
l,
|
|
9
9
|
{
|
|
10
|
-
loading: (!r || !r.length) &&
|
|
11
|
-
rows: r.map((
|
|
12
|
-
columns:
|
|
13
|
-
getRowClassName: (
|
|
10
|
+
loading: (!r || !r.length) && n,
|
|
11
|
+
rows: r.map((a, i) => (a.id = i, a)),
|
|
12
|
+
columns: e,
|
|
13
|
+
getRowClassName: (a) => a.id === r.length - 1 ? "last-row" : "",
|
|
14
14
|
sx: {
|
|
15
15
|
"& .last-row": {
|
|
16
16
|
"& .MuiDataGrid-cellContent": {
|
|
@@ -115,7 +115,7 @@ const p = ({
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
)
|
|
118
|
+
);
|
|
119
119
|
export {
|
|
120
|
-
|
|
120
|
+
c as TotalDataGrid
|
|
121
121
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { userInfoDropdownItems as s } from "../../mock.js";
|
|
3
|
-
import { U as o } from "../../UserInfoDropdown-
|
|
3
|
+
import { U as o } from "../../UserInfoDropdown-GTCkmg6H.js";
|
|
4
4
|
const n = {
|
|
5
5
|
title: "User Info Dropdown",
|
|
6
6
|
component: o,
|
package/dist/components/index.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import '../assets/globals.css';/* empty css */
|
|
2
|
+
import { ConfirmationModal as m } from "./ConfirmationModal/ConfirmationModal.js";
|
|
3
|
+
import { CustomButton as e } from "./CustomButton/CustomButton.js";
|
|
4
|
+
import { CustomFooter as a } from "./CustomFooter/CustomFooter.js";
|
|
4
5
|
import { CustomPagination as n } from "./CustomPagination/CustomPagination.js";
|
|
5
|
-
import { ErrorModal as
|
|
6
|
-
import { InfoModal as
|
|
7
|
-
import { KpiCard as
|
|
8
|
-
import { KpiWrapper as
|
|
9
|
-
import { LoadingAnimation as
|
|
10
|
-
import { Login as
|
|
11
|
-
import { SideMenu as
|
|
12
|
-
import { TotalDataGrid as
|
|
13
|
-
import { U as
|
|
6
|
+
import { ErrorModal as d } from "./ErrorModal/ErrorModal.js";
|
|
7
|
+
import { InfoModal as u } from "./InfoModal/InfoModal.js";
|
|
8
|
+
import { KpiCard as l } from "./KpiCard/KpiCard.js";
|
|
9
|
+
import { KpiWrapper as g } from "./KpiWrapper/KpiWrapper.js";
|
|
10
|
+
import { LoadingAnimation as I } from "./LoadingAnimation/LoadingAnimation.js";
|
|
11
|
+
import { Login as L } from "./Login/Login.js";
|
|
12
|
+
import { SideMenu as w } from "./SideMenu/SideMenu.js";
|
|
13
|
+
import { TotalDataGrid as B } from "./TotalDataGrid/TotalDataGrid.js";
|
|
14
|
+
import { U as F } from "../UserInfoDropdown-GTCkmg6H.js";
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
m as ConfirmationModal,
|
|
17
|
+
e as CustomButton,
|
|
18
|
+
a as CustomFooter,
|
|
18
19
|
n as CustomPagination,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
d as ErrorModal,
|
|
21
|
+
u as InfoModal,
|
|
22
|
+
l as KpiCard,
|
|
23
|
+
g as KpiWrapper,
|
|
24
|
+
I as LoadingAnimation,
|
|
25
|
+
L as Login,
|
|
26
|
+
w as SideMenu,
|
|
27
|
+
B as TotalDataGrid,
|
|
28
|
+
F as UserInfoDropdown
|
|
28
29
|
};
|
package/dist/main.js
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
1
|
+
import './assets/globals.css';/* empty css */
|
|
2
|
+
import { ConfirmationModal as t } from "./components/ConfirmationModal/ConfirmationModal.js";
|
|
3
|
+
import { CustomButton as p } from "./components/CustomButton/CustomButton.js";
|
|
4
|
+
import { CustomFooter as a } from "./components/CustomFooter/CustomFooter.js";
|
|
5
|
+
import { CustomPagination as i } from "./components/CustomPagination/CustomPagination.js";
|
|
6
|
+
import { ErrorModal as u } from "./components/ErrorModal/ErrorModal.js";
|
|
7
|
+
import { InfoModal as l } from "./components/InfoModal/InfoModal.js";
|
|
8
|
+
import { KpiCard as c } from "./components/KpiCard/KpiCard.js";
|
|
9
|
+
import { KpiWrapper as C } from "./components/KpiWrapper/KpiWrapper.js";
|
|
10
|
+
import { LoadingAnimation as M } from "./components/LoadingAnimation/LoadingAnimation.js";
|
|
11
|
+
import { Login as U } from "./components/Login/Login.js";
|
|
12
|
+
import { SideMenu as y } from "./components/SideMenu/SideMenu.js";
|
|
13
|
+
import { TotalDataGrid as D } from "./components/TotalDataGrid/TotalDataGrid.js";
|
|
14
|
+
import { U as K } from "./UserInfoDropdown-GTCkmg6H.js";
|
|
15
|
+
import { chunkArray as k } from "./portal-utils/chunkArray.js";
|
|
16
|
+
import { cn as w } from "./portal-utils/cn.js";
|
|
17
|
+
import { currency as E, date as F, datetime as G, decimal as S, fuelUnitPrice as T, fuelVolume as V, hours as W, number as j, time as q } from "./portal-utils/formatters.js";
|
|
18
|
+
import { LogLevel as H, createLogger as J } from "./portal-utils/loggerService.js";
|
|
19
|
+
import { getPageCount as O } from "./portal-utils/pageCount.js";
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
21
|
+
t as ConfirmationModal,
|
|
22
|
+
p as CustomButton,
|
|
23
|
+
a as CustomFooter,
|
|
24
|
+
i as CustomPagination,
|
|
25
|
+
u as ErrorModal,
|
|
26
|
+
l as InfoModal,
|
|
27
|
+
c as KpiCard,
|
|
28
|
+
C as KpiWrapper,
|
|
29
|
+
M as LoadingAnimation,
|
|
30
|
+
H as LogLevel,
|
|
31
|
+
U as Login,
|
|
32
|
+
y as SideMenu,
|
|
33
|
+
D as TotalDataGrid,
|
|
34
|
+
K as UserInfoDropdown,
|
|
35
|
+
k as chunkArray,
|
|
36
|
+
w as cn,
|
|
37
|
+
J as createLogger,
|
|
38
|
+
E as currency,
|
|
39
|
+
F as date,
|
|
40
|
+
G as datetime,
|
|
41
|
+
S as decimal,
|
|
42
|
+
T as fuelUnitPrice,
|
|
43
|
+
V as fuelVolume,
|
|
44
|
+
O as getPageCount,
|
|
45
|
+
W as hours,
|
|
46
|
+
j as number,
|
|
47
|
+
q as time
|
|
47
48
|
};
|
package/package.json
CHANGED
|
@@ -2,19 +2,15 @@
|
|
|
2
2
|
"name": "@amateescu/portal-ui-components",
|
|
3
3
|
"main": "dist/main.js",
|
|
4
4
|
"types": "dist/main.d.ts",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.33",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
"src/theme/theme.scss",
|
|
10
|
-
"src/theme/portal-theme.scss"
|
|
8
|
+
"dist"
|
|
11
9
|
],
|
|
12
10
|
"exports": {
|
|
13
11
|
"./components": "./dist/components/index.js",
|
|
14
12
|
"./types": "./dist/types/index.js",
|
|
15
|
-
"./portal-utils": "./dist/portal-utils/index.js"
|
|
16
|
-
"./theme.css": "./dist/assets/theme.css",
|
|
17
|
-
"./portal-theme.css": "./dist/assets/portal-theme.css"
|
|
13
|
+
"./portal-utils": "./dist/portal-utils/index.js"
|
|
18
14
|
},
|
|
19
15
|
"scripts": {
|
|
20
16
|
"build": "tsc && vite build",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root{--color-primary: #cbddf3;--color-secondary: #626367;--color-background: #f0f0f0;--color-background-secondary: #f3f6f8;--color-text: #12121a;--color-text-secondary: #111111;--color-text-light: #777;--color-text-dark: #333;--color-border: #ddd;--color-highlight: #05a952;--color-highlight-data-grid: rgba(5,169,82,.10196);--color-mui-selected: #F5F7FB;--color-warning: #eea63c;--color-critical: #f95048;--color-neutral: #fafafa;--color-red: red;--color-gray: #e0e0e0;--color-blue: #0054EE;--color-light-gray-blue: #E6EBEF;--color-very-light-gray: #DBDBDB;--color-white: white;--color-green: green;--color-ant-theme: #00b96b;--color-avatar: #41b06e;--font-size-xxsmall: 8px;--font-size-9: 9px;--font-size-xsmall: 10px;--font-size-small: 12px;--font-size-normal: 13px;--font-size-medium: 14px;--font-size-large: 16px;--font-size-xlarge: 18px;--font-size-xxlarge: 20px;--font-size-xxxlarge: 21px;--font-size-22: 22px;--font-size-kpi-card: 32px;--font-bolded: 600;--font-500: 500;--font-400: 400}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--color-primary: #cbddf3;
|
|
3
|
-
--color-secondary: #626367;
|
|
4
|
-
--color-background: #f0f0f0;
|
|
5
|
-
--color-background-secondary: #f3f6f8;
|
|
6
|
-
--color-text: #12121a;
|
|
7
|
-
--color-text-secondary: #111111;
|
|
8
|
-
--color-text-light: #777;
|
|
9
|
-
--color-text-dark: #333;
|
|
10
|
-
--color-border: #ddd;
|
|
11
|
-
--color-highlight: #05a952;
|
|
12
|
-
--color-highlight-data-grid: #05a9521a; //data-grid row selection
|
|
13
|
-
--color-mui-selected: #F5F7FB;
|
|
14
|
-
--color-warning: #eea63c;
|
|
15
|
-
--color-critical: #f95048;
|
|
16
|
-
--color-neutral: #fafafa;
|
|
17
|
-
--color-red: red;
|
|
18
|
-
--color-gray: #e0e0e0;
|
|
19
|
-
--color-blue: #0054EE; //clear filters
|
|
20
|
-
--color-light-gray-blue: #E6EBEF;
|
|
21
|
-
--color-very-light-gray: #DBDBDB;
|
|
22
|
-
--color-white: white;
|
|
23
|
-
--color-green: green;
|
|
24
|
-
--color-ant-theme: #00b96b;
|
|
25
|
-
--color-avatar: #41b06e;
|
|
26
|
-
|
|
27
|
-
--font-size-xxsmall: 8px;
|
|
28
|
-
--font-size-9: 9px;
|
|
29
|
-
--font-size-xsmall: 10px;
|
|
30
|
-
--font-size-small: 12px;
|
|
31
|
-
--font-size-normal: 13px;
|
|
32
|
-
--font-size-medium: 14px;
|
|
33
|
-
--font-size-large: 16px;
|
|
34
|
-
--font-size-xlarge: 18px;
|
|
35
|
-
--font-size-xxlarge: 20px;
|
|
36
|
-
--font-size-xxxlarge: 21px;
|
|
37
|
-
--font-size-22: 22px;
|
|
38
|
-
--font-size-kpi-card: 32px;
|
|
39
|
-
|
|
40
|
-
--font-bolded: 600;
|
|
41
|
-
--font-500: 500;
|
|
42
|
-
--font-400: 400;
|
|
43
|
-
}
|
package/src/theme/theme.scss
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--color-primary: #045529;
|
|
3
|
-
--color-secondary: #626367;
|
|
4
|
-
--color-background: #f0f0f0;
|
|
5
|
-
--color-background-secondary: #f3f6f8;
|
|
6
|
-
--color-text: #12121a;
|
|
7
|
-
--color-text-secondary: #111111;
|
|
8
|
-
--color-text-light: #777;
|
|
9
|
-
--color-text-dark: #333;
|
|
10
|
-
--color-border: #ddd;
|
|
11
|
-
--color-highlight: #05a952;
|
|
12
|
-
--color-highlight-data-grid: #05a9521a; //data-grid row selection
|
|
13
|
-
--color-mui-selected: #F5F7FB;
|
|
14
|
-
--color-warning: #eea63c;
|
|
15
|
-
--color-critical: #f95048;
|
|
16
|
-
--color-neutral: #fafafa;
|
|
17
|
-
--color-red: red;
|
|
18
|
-
--color-gray: #e0e0e0;
|
|
19
|
-
--color-blue: #0054EE; //clear filters
|
|
20
|
-
--color-light-gray-blue: #E6EBEF;
|
|
21
|
-
--color-very-light-gray: #DBDBDB;
|
|
22
|
-
--color-white: white;
|
|
23
|
-
--color-green: green;
|
|
24
|
-
--color-ant-theme: #00b96b;
|
|
25
|
-
--color-avatar: #41b06e;
|
|
26
|
-
|
|
27
|
-
--font-size-xxsmall: 8px;
|
|
28
|
-
--font-size-9: 9px;
|
|
29
|
-
--font-size-xsmall: 10px;
|
|
30
|
-
--font-size-small: 12px;
|
|
31
|
-
--font-size-normal: 13px;
|
|
32
|
-
--font-size-medium: 14px;
|
|
33
|
-
--font-size-large: 16px;
|
|
34
|
-
--font-size-xlarge: 18px;
|
|
35
|
-
--font-size-xxlarge: 20px;
|
|
36
|
-
--font-size-xxxlarge: 21px;
|
|
37
|
-
--font-size-22: 22px;
|
|
38
|
-
--font-size-kpi-card: 32px;
|
|
39
|
-
|
|
40
|
-
--font-bolded: 600;
|
|
41
|
-
--font-500: 500;
|
|
42
|
-
--font-400: 400;
|
|
43
|
-
}
|