qaema-ui 0.0.60 → 0.0.61
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/_virtual/index.js +5 -5
- package/dist/_virtual/index2.js +4 -4
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +4 -4
- package/dist/components/DropDownWithTable/Table/Table.js +35 -34
- package/dist/components/DropDownWithTable/Table/Table.types.d.ts +1 -0
- package/dist/components/StatCard.js +8 -7
- package/dist/components/Table/Table.js +39 -38
- package/dist/components/Table/Table.types.d.ts +1 -0
- package/dist/components/Table/components/CellComponents.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Alert.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/AlertHeading.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/AlertLink.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Button.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/CloseButton.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/Col.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Collapse.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Dropdown.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownDivider.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownHeader.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownItem.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownItemText.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownMenu.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownToggle.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Fade.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Feedback.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/FloatingLabel.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Form.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/FormCheck.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormCheckInput.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormCheckLabel.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormControl.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormFloating.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormLabel.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormRange.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormSelect.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormText.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Image.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/Nav.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavItem.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavLink.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Navbar.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavbarBrand.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavbarText.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavbarToggle.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Offcanvas.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasBody.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasHeader.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasTitle.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasToggling.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Toast.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/ToastBody.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/ToastHeader.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/divWithClassName.js +1 -1
- package/dist/node_modules/react-helmet-async/lib/index.esm.js +2 -2
- package/dist/node_modules/react-smooth/es6/Animate.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/package.json +1 -1
package/dist/_virtual/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var a =
|
|
4
|
-
const
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as t } from "../node_modules/react-helmet-async/node_modules/react-fast-compare/index.js";
|
|
3
|
+
var a = t();
|
|
4
|
+
const m = /* @__PURE__ */ r(a);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as o } from "../node_modules/
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as o } from "../node_modules/shallowequal/index.js";
|
|
3
|
+
var a = o();
|
|
4
|
+
const t = /* @__PURE__ */ r(a);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
package/dist/_virtual/index3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var a =
|
|
4
|
-
const
|
|
1
|
+
import { getDefaultExportFromCjs as s } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as r } from "../node_modules/classnames/index.js";
|
|
3
|
+
var a = r();
|
|
4
|
+
const t = /* @__PURE__ */ s(a);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as o } from "../node_modules/
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as o } from "../node_modules/prop-types/index.js";
|
|
3
|
+
var p = /* @__PURE__ */ o();
|
|
4
|
+
const s = /* @__PURE__ */ r(p);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -6,28 +6,28 @@ import Y from "../../Pagination.js";
|
|
|
6
6
|
import Z from "../../Typography.js";
|
|
7
7
|
import O, { CheckboxCell as H } from "./components/CellComponents.js";
|
|
8
8
|
import z from "./components/TableHead.js";
|
|
9
|
-
import { TableContainer as D, LoadingOverlay as k, TablesWrapper as F, DataScrollBox as R, StyledTable as w, TableBody as W, EmptyState as ee, TableRow as y, TableCellContainer as b, ActionsTable as te, TableFooter as
|
|
9
|
+
import { TableContainer as D, LoadingOverlay as k, TablesWrapper as F, DataScrollBox as R, StyledTable as w, TableBody as W, EmptyState as ee, TableRow as y, TableCellContainer as b, ActionsTable as te, TableFooter as se } from "./Table.styles.js";
|
|
10
10
|
function xe({
|
|
11
11
|
columns: T,
|
|
12
|
-
data:
|
|
12
|
+
data: s,
|
|
13
13
|
keyField: l,
|
|
14
14
|
selectable: j = !1,
|
|
15
|
-
onRowSelect:
|
|
15
|
+
onRowSelect: o,
|
|
16
16
|
rowActions: x,
|
|
17
17
|
stickyHeader: $ = !1,
|
|
18
18
|
loading: f = !1,
|
|
19
19
|
emptyStateMessage: I,
|
|
20
|
-
pagination:
|
|
20
|
+
pagination: n,
|
|
21
21
|
onRowClick: u,
|
|
22
22
|
rowClassName: p,
|
|
23
23
|
isRowDisabled: d,
|
|
24
|
-
breakpoint:
|
|
24
|
+
breakpoint: N = "md",
|
|
25
25
|
alignHeader: C = "start",
|
|
26
26
|
// Dropdown related props
|
|
27
|
-
isTableHeadVisible:
|
|
27
|
+
isTableHeadVisible: _ = !1,
|
|
28
28
|
isRowSelected: S
|
|
29
29
|
}) {
|
|
30
|
-
const [h, g] = v([]), [B,
|
|
30
|
+
const [h, g] = v([]), [B, a] = v(N), [K, A] = v(null), { t: M } = U();
|
|
31
31
|
L(() => {
|
|
32
32
|
const e = () => {
|
|
33
33
|
A(null);
|
|
@@ -38,31 +38,31 @@ function xe({
|
|
|
38
38
|
}, []), L(() => {
|
|
39
39
|
const e = () => {
|
|
40
40
|
const i = window.innerWidth;
|
|
41
|
-
i < 576 ?
|
|
41
|
+
i < 576 ? a("sm") : i < 992 ? a("md") : a("lg");
|
|
42
42
|
};
|
|
43
43
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
44
44
|
}, []);
|
|
45
|
-
const
|
|
46
|
-
h.length ===
|
|
45
|
+
const P = Q(() => T.filter((e) => typeof e.hidden == "function" ? !e.hidden(B) : !e.hidden), [T, B]), V = () => {
|
|
46
|
+
h.length === s.length ? g([]) : g([...s]), o && o(h.length === s.length ? [] : [...s]);
|
|
47
47
|
}, q = (e) => {
|
|
48
48
|
const i = h.filter((r) => e[l] === r[l]);
|
|
49
49
|
return i && i.length > 0;
|
|
50
50
|
}, G = (e) => {
|
|
51
|
-
const i = h.some((
|
|
51
|
+
const i = h.some((m) => m[l] === e[l]);
|
|
52
52
|
let r;
|
|
53
|
-
i ? r = h.filter((
|
|
53
|
+
i ? r = h.filter((m) => m[l] !== e[l]) : r = [...h, e], g(r), o && o(r);
|
|
54
54
|
};
|
|
55
55
|
return /* @__PURE__ */ t.jsxs(D, { children: [
|
|
56
56
|
f && /* @__PURE__ */ t.jsx(k, { children: /* @__PURE__ */ t.jsx(X, { size: "3rem" }) }),
|
|
57
57
|
/* @__PURE__ */ t.jsxs(F, { children: [
|
|
58
58
|
/* @__PURE__ */ t.jsx(R, { children: /* @__PURE__ */ t.jsxs(w, { children: [
|
|
59
|
-
|
|
59
|
+
_ && /* @__PURE__ */ t.jsx(
|
|
60
60
|
z,
|
|
61
61
|
{
|
|
62
|
-
data:
|
|
62
|
+
data: s,
|
|
63
63
|
handleSelectAll: V,
|
|
64
64
|
selectedRows: h,
|
|
65
|
-
visibleColumns:
|
|
65
|
+
visibleColumns: P,
|
|
66
66
|
alignHeader: C,
|
|
67
67
|
rowActions: void 0,
|
|
68
68
|
stickyHeader: $,
|
|
@@ -70,12 +70,12 @@ function xe({
|
|
|
70
70
|
loading: f
|
|
71
71
|
}
|
|
72
72
|
),
|
|
73
|
-
/* @__PURE__ */ t.jsx(W, { children:
|
|
74
|
-
const r = (d == null ? void 0 : d(e)) ?? !1,
|
|
73
|
+
/* @__PURE__ */ t.jsx(W, { children: s.length === 0 ? /* @__PURE__ */ t.jsx("tr", { children: /* @__PURE__ */ t.jsx("td", { colSpan: (j ? 1 : 0) + P.length, children: /* @__PURE__ */ t.jsx(ee, { children: /* @__PURE__ */ t.jsx(Z, { variant: "mdText", children: I ?? M("NO_DATA_AVAILABLE") }) }) }) }) : s == null ? void 0 : s.map((e, i) => {
|
|
74
|
+
const r = (d == null ? void 0 : d(e)) ?? !1, m = S ? S(e) : h.some((c) => c[l] === e[l]), E = e[l], J = (p == null ? void 0 : p(e, i)) ?? "";
|
|
75
75
|
return /* @__PURE__ */ t.jsxs(
|
|
76
76
|
y,
|
|
77
77
|
{
|
|
78
|
-
$selected:
|
|
78
|
+
$selected: m,
|
|
79
79
|
$disabled: r,
|
|
80
80
|
$clickable: !!u && !r,
|
|
81
81
|
onClick: () => !r && (u == null ? void 0 : u(e)),
|
|
@@ -93,13 +93,14 @@ function xe({
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
) }),
|
|
96
|
-
|
|
96
|
+
P.map((c) => /* @__PURE__ */ t.jsx(b, { $align: c.align, children: /* @__PURE__ */ t.jsx(
|
|
97
97
|
O,
|
|
98
98
|
{
|
|
99
99
|
column: c,
|
|
100
100
|
row: e,
|
|
101
101
|
type: c.cellType ?? "text",
|
|
102
102
|
align: c.align,
|
|
103
|
+
className: c.className,
|
|
103
104
|
width: c.width ?? "",
|
|
104
105
|
minWidth: c.minWidth ?? "",
|
|
105
106
|
maxWidth: c.maxWidth ?? ""
|
|
@@ -115,7 +116,7 @@ function xe({
|
|
|
115
116
|
/* @__PURE__ */ t.jsx(
|
|
116
117
|
z,
|
|
117
118
|
{
|
|
118
|
-
data:
|
|
119
|
+
data: s,
|
|
119
120
|
handleSelectAll: () => {
|
|
120
121
|
},
|
|
121
122
|
selectedRows: h,
|
|
@@ -127,7 +128,7 @@ function xe({
|
|
|
127
128
|
loading: f
|
|
128
129
|
}
|
|
129
130
|
),
|
|
130
|
-
/* @__PURE__ */ t.jsx(W, { children:
|
|
131
|
+
/* @__PURE__ */ t.jsx(W, { children: s.length === 0 ? /* @__PURE__ */ t.jsx("tr", { children: /* @__PURE__ */ t.jsx("td", { children: /* @__PURE__ */ t.jsx("div", { style: { height: "3.5rem" } }) }) }) : s == null ? void 0 : s.map((e) => {
|
|
131
132
|
const i = (d == null ? void 0 : d(e)) ?? !1;
|
|
132
133
|
return /* @__PURE__ */ t.jsx(y, { $disabled: i, children: /* @__PURE__ */ t.jsx(b, { $align: "center", $isActionCell: !0, children: /* @__PURE__ */ t.jsx(
|
|
133
134
|
O,
|
|
@@ -137,7 +138,7 @@ function xe({
|
|
|
137
138
|
iconOptions: {
|
|
138
139
|
keyField: l,
|
|
139
140
|
rowActions: x,
|
|
140
|
-
activeDropdown:
|
|
141
|
+
activeDropdown: K,
|
|
141
142
|
setActiveDropdown: A
|
|
142
143
|
}
|
|
143
144
|
}
|
|
@@ -145,21 +146,21 @@ function xe({
|
|
|
145
146
|
}) })
|
|
146
147
|
] })
|
|
147
148
|
] }),
|
|
148
|
-
|
|
149
|
+
n && n.enabled && /* @__PURE__ */ t.jsx(se, { children: /* @__PURE__ */ t.jsx(
|
|
149
150
|
Y,
|
|
150
151
|
{
|
|
151
|
-
currentPage:
|
|
152
|
-
totalPages:
|
|
153
|
-
onChange:
|
|
152
|
+
currentPage: n.currentPage,
|
|
153
|
+
totalPages: n.totalPages,
|
|
154
|
+
onChange: n.onPageChange,
|
|
154
155
|
disabled: f,
|
|
155
|
-
hidePrevButton:
|
|
156
|
-
hideNextButton:
|
|
157
|
-
siblingCount:
|
|
158
|
-
boundaryCount:
|
|
159
|
-
itemsPerPage:
|
|
160
|
-
totalItems:
|
|
161
|
-
itemsPerPageOptions:
|
|
162
|
-
onItemsPerPageChange:
|
|
156
|
+
hidePrevButton: n.hidePrevButton,
|
|
157
|
+
hideNextButton: n.hideNextButton,
|
|
158
|
+
siblingCount: n.siblingCount,
|
|
159
|
+
boundaryCount: n.boundaryCount,
|
|
160
|
+
itemsPerPage: n.pageSize,
|
|
161
|
+
totalItems: n.totalItems,
|
|
162
|
+
itemsPerPageOptions: n.itemsPerPageOptions,
|
|
163
|
+
onItemsPerPageChange: n.onItemsPerPageChange
|
|
163
164
|
}
|
|
164
165
|
) })
|
|
165
166
|
] });
|
|
@@ -7,10 +7,11 @@ import j from "../assets/svg/Riyal.svg.js";
|
|
|
7
7
|
const w = s.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
width: 100%;
|
|
10
|
-
height:
|
|
10
|
+
height: 5rem;
|
|
11
11
|
border-radius: ${({ theme: r }) => r.borderRadius.md};
|
|
12
12
|
border: 1px solid ${({ theme: r }) => r.colors.grey.n100};
|
|
13
|
-
overflow:
|
|
13
|
+
overflow-x: auto;
|
|
14
|
+
overflow-y: hidden;
|
|
14
15
|
background-color: ${({ theme: r }) => r.colors.grey.n50};
|
|
15
16
|
`, b = s.div`
|
|
16
17
|
/* border: 1px solid ${({ theme: r }) => r.colors.grey.n150}; */
|
|
@@ -19,7 +20,7 @@ const w = s.div`
|
|
|
19
20
|
flex-direction: column;
|
|
20
21
|
justify-content: center;
|
|
21
22
|
padding: 0.625rem ${({ theme: r }) => r.spacing.s};
|
|
22
|
-
|
|
23
|
+
|
|
23
24
|
background-color: ${({ theme: r }) => r.colors.grey.n50};
|
|
24
25
|
@media ${t.tablet} {
|
|
25
26
|
padding: ${({ theme: r }) => r.spacing.xxs} ${({ theme: r }) => r.spacing.xs};
|
|
@@ -108,11 +109,11 @@ const w = s.div`
|
|
|
108
109
|
state: n,
|
|
109
110
|
indicators: h,
|
|
110
111
|
variant: g = "currency",
|
|
111
|
-
icon:
|
|
112
|
-
$isLast:
|
|
112
|
+
icon: y,
|
|
113
|
+
$isLast: x
|
|
113
114
|
}) => {
|
|
114
115
|
const { arrow: c = !0, sign: l = !0, percentage: d = !0 } = h || {};
|
|
115
|
-
return /* @__PURE__ */ o.jsxs(b, { $isLast:
|
|
116
|
+
return /* @__PURE__ */ o.jsxs(b, { $isLast: x, children: [
|
|
116
117
|
/* @__PURE__ */ o.jsxs(v, { children: [
|
|
117
118
|
/* @__PURE__ */ o.jsx("span", { children: r }),
|
|
118
119
|
(c || l || d) && /* @__PURE__ */ o.jsx(z, { state: n, children: n === "positive" ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
@@ -126,7 +127,7 @@ const w = s.div`
|
|
|
126
127
|
] }) })
|
|
127
128
|
] }),
|
|
128
129
|
/* @__PURE__ */ o.jsxs(I, { children: [
|
|
129
|
-
g === "icon" ? /* @__PURE__ */ o.jsx(C, { children:
|
|
130
|
+
g === "icon" ? /* @__PURE__ */ o.jsx(C, { children: y }) : /* @__PURE__ */ o.jsx(k, { src: j, alt: "Riyal" }),
|
|
130
131
|
/* @__PURE__ */ o.jsxs(A, { children: [
|
|
131
132
|
e,
|
|
132
133
|
g !== "icon" && i && /* @__PURE__ */ o.jsxs(R, { children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useState as v, useEffect as E, useMemo as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import
|
|
2
|
+
import { useState as v, useEffect as E, useMemo as q } from "react";
|
|
3
|
+
import { useTranslation as G } from "react-i18next";
|
|
4
|
+
import J from "../Spinner.js";
|
|
5
5
|
import Q from "../Pagination.js";
|
|
6
6
|
import U from "../Typography.js";
|
|
7
7
|
import L, { CheckboxCell as X } from "./components/CellComponents.js";
|
|
@@ -9,22 +9,22 @@ import O from "./components/TableHead.js";
|
|
|
9
9
|
import { TableContainer as Y, LoadingOverlay as Z, TablesWrapper as H, DataScrollBox as D, StyledTable as k, TableBody as z, EmptyState as F, TableRow as W, TableCellContainer as b, ActionsTable as R, TableFooter as w } from "./Table.styles.js";
|
|
10
10
|
function de({
|
|
11
11
|
columns: T,
|
|
12
|
-
data:
|
|
12
|
+
data: c,
|
|
13
13
|
keyField: r,
|
|
14
|
-
selectable:
|
|
15
|
-
onRowSelect:
|
|
16
|
-
rowActions:
|
|
14
|
+
selectable: j = !1,
|
|
15
|
+
onRowSelect: m,
|
|
16
|
+
rowActions: x,
|
|
17
17
|
stickyHeader: $ = !1,
|
|
18
18
|
loading: a = !1,
|
|
19
19
|
emptyStateMessage: y,
|
|
20
20
|
pagination: n,
|
|
21
21
|
onRowClick: f,
|
|
22
|
-
rowClassName:
|
|
22
|
+
rowClassName: u,
|
|
23
23
|
isRowDisabled: d,
|
|
24
24
|
breakpoint: I = "md",
|
|
25
25
|
alignHeader: C = "start"
|
|
26
26
|
}) {
|
|
27
|
-
const [h, p] = v([]), [S, g] = v(I), [
|
|
27
|
+
const [h, p] = v([]), [S, g] = v(I), [N, B] = v(null), { t: _ } = G();
|
|
28
28
|
E(() => {
|
|
29
29
|
const e = () => {
|
|
30
30
|
B(null);
|
|
@@ -39,36 +39,36 @@ function de({
|
|
|
39
39
|
};
|
|
40
40
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
41
41
|
}, []);
|
|
42
|
-
const P =
|
|
43
|
-
h.length ===
|
|
44
|
-
},
|
|
42
|
+
const P = q(() => T.filter((e) => typeof e.hidden == "function" ? !e.hidden(S) : !e.hidden), [T, S]), K = () => {
|
|
43
|
+
h.length === c.length ? p([]) : p([...c]), m && m(h.length === c.length ? [] : [...c]);
|
|
44
|
+
}, M = (e) => {
|
|
45
45
|
const l = h.filter((s) => e[r] === s[r]);
|
|
46
46
|
return l && l.length > 0;
|
|
47
|
-
},
|
|
47
|
+
}, V = (e) => {
|
|
48
48
|
const l = h.some((o) => o[r] === e[r]);
|
|
49
49
|
let s;
|
|
50
|
-
l ? s = h.filter((o) => o[r] !== e[r]) : s = [...h, e], p(s),
|
|
50
|
+
l ? s = h.filter((o) => o[r] !== e[r]) : s = [...h, e], p(s), m && m(s);
|
|
51
51
|
};
|
|
52
52
|
return /* @__PURE__ */ t.jsxs(Y, { children: [
|
|
53
|
-
a && /* @__PURE__ */ t.jsx(Z, { children: /* @__PURE__ */ t.jsx(
|
|
53
|
+
a && /* @__PURE__ */ t.jsx(Z, { children: /* @__PURE__ */ t.jsx(J, { size: "3rem" }) }),
|
|
54
54
|
/* @__PURE__ */ t.jsxs(H, { children: [
|
|
55
55
|
/* @__PURE__ */ t.jsx(D, { children: /* @__PURE__ */ t.jsxs(k, { children: [
|
|
56
56
|
/* @__PURE__ */ t.jsx(
|
|
57
57
|
O,
|
|
58
58
|
{
|
|
59
|
-
data:
|
|
60
|
-
handleSelectAll:
|
|
59
|
+
data: c,
|
|
60
|
+
handleSelectAll: K,
|
|
61
61
|
selectedRows: h,
|
|
62
62
|
visibleColumns: P,
|
|
63
63
|
alignHeader: C,
|
|
64
64
|
rowActions: void 0,
|
|
65
65
|
stickyHeader: $,
|
|
66
|
-
selectable:
|
|
66
|
+
selectable: j,
|
|
67
67
|
loading: a
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
|
-
/* @__PURE__ */ t.jsx(z, { children:
|
|
71
|
-
const s = (d == null ? void 0 : d(e)) ?? !1, o = h.some((
|
|
70
|
+
/* @__PURE__ */ t.jsx(z, { children: c.length === 0 ? /* @__PURE__ */ t.jsx("tr", { children: /* @__PURE__ */ t.jsx("td", { colSpan: (j ? 1 : 0) + P.length, children: /* @__PURE__ */ t.jsx(F, { children: /* @__PURE__ */ t.jsx(U, { variant: "mdText", children: y ?? _("NO_DATA_AVAILABLE") }) }) }) }) : c.map((e, l) => {
|
|
71
|
+
const s = (d == null ? void 0 : d(e)) ?? !1, o = h.some((i) => i[r] === e[r]), A = e[r];
|
|
72
72
|
return /* @__PURE__ */ t.jsxs(
|
|
73
73
|
W,
|
|
74
74
|
{
|
|
@@ -76,55 +76,56 @@ function de({
|
|
|
76
76
|
$disabled: s,
|
|
77
77
|
$clickable: !!f && !s,
|
|
78
78
|
onClick: () => !s && (f == null ? void 0 : f(e)),
|
|
79
|
-
className: (
|
|
79
|
+
className: (u == null ? void 0 : u(e, l)) ?? "",
|
|
80
80
|
children: [
|
|
81
|
-
|
|
81
|
+
j && /* @__PURE__ */ t.jsx(b, { $align: "center", $isFirstColumn: !0, children: /* @__PURE__ */ t.jsx(
|
|
82
82
|
X,
|
|
83
83
|
{
|
|
84
84
|
checkBoxOptions: {
|
|
85
|
-
checked:
|
|
85
|
+
checked: M(e),
|
|
86
86
|
$variant: "primary",
|
|
87
87
|
$disabled: s,
|
|
88
88
|
$size: "sm",
|
|
89
|
-
onChange: () => !s &&
|
|
89
|
+
onChange: () => !s && V(e)
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
) }),
|
|
93
|
-
P.map((
|
|
93
|
+
P.map((i) => /* @__PURE__ */ t.jsx(b, { $align: i.align, children: /* @__PURE__ */ t.jsx(
|
|
94
94
|
L,
|
|
95
95
|
{
|
|
96
|
-
column:
|
|
96
|
+
column: i,
|
|
97
97
|
row: e,
|
|
98
|
-
type:
|
|
99
|
-
align:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
type: i.cellType ?? "text",
|
|
99
|
+
align: i.align,
|
|
100
|
+
className: i.className,
|
|
101
|
+
width: i.width ?? "",
|
|
102
|
+
minWidth: i.minWidth ?? "",
|
|
103
|
+
maxWidth: i.maxWidth ?? ""
|
|
103
104
|
}
|
|
104
|
-
) }, `${A}-${
|
|
105
|
+
) }, `${A}-${i.id}`))
|
|
105
106
|
]
|
|
106
107
|
},
|
|
107
108
|
A
|
|
108
109
|
);
|
|
109
110
|
}) })
|
|
110
111
|
] }) }),
|
|
111
|
-
|
|
112
|
+
x && x.length > 0 && /* @__PURE__ */ t.jsxs(R, { children: [
|
|
112
113
|
/* @__PURE__ */ t.jsx(
|
|
113
114
|
O,
|
|
114
115
|
{
|
|
115
|
-
data:
|
|
116
|
+
data: c,
|
|
116
117
|
handleSelectAll: () => {
|
|
117
118
|
},
|
|
118
119
|
selectedRows: h,
|
|
119
120
|
visibleColumns: [],
|
|
120
121
|
alignHeader: C,
|
|
121
|
-
rowActions:
|
|
122
|
+
rowActions: x,
|
|
122
123
|
stickyHeader: $,
|
|
123
124
|
selectable: !1,
|
|
124
125
|
loading: a
|
|
125
126
|
}
|
|
126
127
|
),
|
|
127
|
-
/* @__PURE__ */ t.jsx(z, { children:
|
|
128
|
+
/* @__PURE__ */ t.jsx(z, { children: c.length === 0 ? /* @__PURE__ */ t.jsx("tr", { children: /* @__PURE__ */ t.jsx("td", { children: /* @__PURE__ */ t.jsx("div", { style: { height: "3.5rem" } }) }) }) : c.map((e) => {
|
|
128
129
|
const l = (d == null ? void 0 : d(e)) ?? !1;
|
|
129
130
|
return /* @__PURE__ */ t.jsx(W, { $disabled: l, children: /* @__PURE__ */ t.jsx(b, { $align: "center", $isActionCell: !0, children: /* @__PURE__ */ t.jsx(
|
|
130
131
|
L,
|
|
@@ -133,8 +134,8 @@ function de({
|
|
|
133
134
|
type: "icon",
|
|
134
135
|
iconOptions: {
|
|
135
136
|
keyField: r,
|
|
136
|
-
rowActions:
|
|
137
|
-
activeDropdown:
|
|
137
|
+
rowActions: x,
|
|
138
|
+
activeDropdown: N,
|
|
138
139
|
setActiveDropdown: B
|
|
139
140
|
}
|
|
140
141
|
}
|
|
@@ -25,7 +25,7 @@ const i = g.div`
|
|
|
25
25
|
duplicate: /* @__PURE__ */ r.jsx(j, {}),
|
|
26
26
|
approve: /* @__PURE__ */ r.jsx(u, {}),
|
|
27
27
|
print: /* @__PURE__ */ r.jsx(u, {})
|
|
28
|
-
}, R = (e) => E[e.toLowerCase()] ?? null, D = ({ data: e, type: t, width: s, maxWidth: n, minWidth: o }) => /* @__PURE__ */ r.jsx(i, { width: s, maxWidth: n, minWidth: o, children: e && /* @__PURE__ */ r.jsx(d, { data: e, type: t, width: s }) }), L = ({ data: e, type: t, width: s, maxWidth: n, minWidth: o }) => /* @__PURE__ */ r.jsx(i, { width: s, maxWidth: n, minWidth: o, children: e && /* @__PURE__ */ r.jsx(d, { data: e, type: t, width: s }) }), M = ({ data: e, type: t, width: s, maxWidth: n, minWidth: o }) => /* @__PURE__ */ r.jsx(i, { width: s, maxWidth: n, minWidth: o, children: e && /* @__PURE__ */ r.jsx(d, { data: e, type: t, width: s }) }), S = ({ data: e, type: t, width: s, maxWidth: n, minWidth: o }) => /* @__PURE__ */ r.jsx(i, { width: s, maxWidth: n, minWidth: o, children: e && /* @__PURE__ */ r.jsx(d, { data: e, type: t, width: s }) }), V = ({ data: e, type: t, width: s, maxWidth: n, minWidth: o }) => /* @__PURE__ */ r.jsx(i, { width: s, maxWidth: n, minWidth: o, children: e && /* @__PURE__ */ r.jsx(b, { data: e, type: t, width: s }) }), H = ({ data: e, width: t, maxWidth: s, minWidth: n }) => /* @__PURE__ */ r.jsx(i, { width: t, maxWidth: s, minWidth: n, children: /* @__PURE__ */ r.jsx($, { value: e.value, direction: e.transactionType }) }), K = ({ checkBoxOptions: e, width: t, maxWidth: s, minWidth: n }) => {
|
|
28
|
+
}, R = (e) => E[e.toLowerCase()] ?? null, D = ({ data: e, type: t, width: s, maxWidth: n, minWidth: o }) => /* @__PURE__ */ r.jsx(i, { width: s, maxWidth: n, minWidth: o, children: e && /* @__PURE__ */ r.jsx(d, { data: e, type: t, width: s }) }), L = ({ data: e, type: t, width: s, maxWidth: n, minWidth: o }) => /* @__PURE__ */ r.jsx(i, { width: s, maxWidth: n, minWidth: o, children: e && /* @__PURE__ */ r.jsx(d, { data: e, type: t, width: s }) }), M = ({ data: e, type: t, width: s, maxWidth: n, minWidth: o }) => /* @__PURE__ */ r.jsx(i, { width: s, maxWidth: n, minWidth: o, children: e && /* @__PURE__ */ r.jsx(d, { data: e, type: t, width: s }) }), S = ({ data: e, type: t, width: s, maxWidth: n, minWidth: o, className: c }) => /* @__PURE__ */ r.jsx(i, { className: c, width: s, maxWidth: n, minWidth: o, children: e && /* @__PURE__ */ r.jsx(d, { data: e, type: t, width: s }) }), V = ({ data: e, type: t, width: s, maxWidth: n, minWidth: o }) => /* @__PURE__ */ r.jsx(i, { width: s, maxWidth: n, minWidth: o, children: e && /* @__PURE__ */ r.jsx(b, { data: e, type: t, width: s }) }), H = ({ data: e, width: t, maxWidth: s, minWidth: n }) => /* @__PURE__ */ r.jsx(i, { width: t, maxWidth: s, minWidth: n, children: /* @__PURE__ */ r.jsx($, { value: e.value, direction: e.transactionType }) }), K = ({ checkBoxOptions: e, width: t, maxWidth: s, minWidth: n }) => {
|
|
29
29
|
const o = e ? { ...e, name: e.name ?? "" } : void 0;
|
|
30
30
|
return /* @__PURE__ */ r.jsx(i, { width: t, maxWidth: s, minWidth: n, children: /* @__PURE__ */ r.jsx(F, { ...o }) });
|
|
31
31
|
}, P = ({ radioButtonOptions: e, width: t, maxWidth: s, minWidth: n }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import i from "../../../_virtual/
|
|
2
|
+
import i from "../../../_virtual/index3.js";
|
|
3
3
|
import { useBootstrapPrefix as l } from "./ThemeProvider.js";
|
|
4
4
|
import d from "./divWithClassName.js";
|
|
5
5
|
import { j as p } from "../../../_virtual/jsx-runtime.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import e from "../../../_virtual/
|
|
2
|
+
import e from "../../../_virtual/index3.js";
|
|
3
3
|
import i from "../../@restart/ui/esm/Anchor.js";
|
|
4
4
|
import { useBootstrapPrefix as p } from "./ThemeProvider.js";
|
|
5
5
|
import { j as f } from "../../../_virtual/jsx-runtime.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import o from "../../../_virtual/
|
|
1
|
+
import o from "../../../_virtual/index4.js";
|
|
2
2
|
import * as p from "react";
|
|
3
|
-
import n from "../../../_virtual/
|
|
3
|
+
import n from "../../../_virtual/index3.js";
|
|
4
4
|
import { j as i } from "../../../_virtual/jsx-runtime.js";
|
|
5
5
|
const m = {
|
|
6
6
|
/** An accessible label indicating the relevant information about the Close Button. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import $ from "../../../_virtual/
|
|
1
|
+
import $ from "../../../_virtual/index3.js";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import { useBootstrapPrefix as B, useBootstrapBreakpoints as h, useBootstrapMinBreakpoint as N } from "./ThemeProvider.js";
|
|
4
4
|
import { j } from "../../../_virtual/jsx-runtime.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import j from "../../../_virtual/
|
|
1
|
+
import j from "../../../_virtual/index3.js";
|
|
2
2
|
import d from "../../dom-helpers/esm/css.js";
|
|
3
3
|
import h, { useMemo as r } from "react";
|
|
4
4
|
import { ENTERED as G, ENTERING as L, EXITING as B, EXITED as M } from "../../react-transition-group/esm/Transition.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import p from "../../../_virtual/
|
|
2
|
+
import p from "../../../_virtual/index3.js";
|
|
3
3
|
import { useBootstrapPrefix as d } from "./ThemeProvider.js";
|
|
4
4
|
import { j as i } from "../../../_virtual/jsx-runtime.js";
|
|
5
5
|
const f = /* @__PURE__ */ m.forwardRef(({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as d from "react";
|
|
2
|
-
import m from "../../../_virtual/
|
|
2
|
+
import m from "../../../_virtual/index3.js";
|
|
3
3
|
import { useBootstrapPrefix as p } from "./ThemeProvider.js";
|
|
4
4
|
import { j as f } from "../../../_virtual/jsx-runtime.js";
|
|
5
5
|
const i = /* @__PURE__ */ d.forwardRef(({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import s from "../../../_virtual/
|
|
2
|
+
import s from "../../../_virtual/index3.js";
|
|
3
3
|
import { useBootstrapPrefix as p } from "./ThemeProvider.js";
|
|
4
4
|
import { j as d } from "../../../_virtual/jsx-runtime.js";
|
|
5
5
|
const f = /* @__PURE__ */ m.forwardRef(({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import a from "../../@restart/hooks/esm/useMergedRefs.js";
|
|
2
2
|
import d from "../../@restart/ui/esm/DropdownContext.js";
|
|
3
3
|
import { useDropdownToggle as g } from "../../@restart/ui/esm/DropdownToggle.js";
|
|
4
|
-
import l from "../../../_virtual/
|
|
4
|
+
import l from "../../../_virtual/index3.js";
|
|
5
5
|
import * as u from "react";
|
|
6
6
|
import { useContext as w } from "react";
|
|
7
7
|
import x from "./Button.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import i from "../../../_virtual/
|
|
1
|
+
import i from "../../../_virtual/index3.js";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import e from "../../../_virtual/
|
|
3
|
+
import e from "../../../_virtual/index4.js";
|
|
4
4
|
import { j as l } from "../../../_virtual/jsx-runtime.js";
|
|
5
5
|
const c = {
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import i from "../../../_virtual/
|
|
2
|
-
import o from "../../../_virtual/
|
|
1
|
+
import i from "../../../_virtual/index3.js";
|
|
2
|
+
import o from "../../../_virtual/index4.js";
|
|
3
3
|
import * as s from "react";
|
|
4
4
|
import f from "./FormCheck.js";
|
|
5
5
|
import l from "./FormControl.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import e from "../../../_virtual/
|
|
2
|
+
import e from "../../../_virtual/index3.js";
|
|
3
3
|
import { useBootstrapPrefix as f } from "./ThemeProvider.js";
|
|
4
4
|
import { j as i } from "../../../_virtual/jsx-runtime.js";
|
|
5
5
|
const p = /* @__PURE__ */ s.forwardRef(({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import f from "../../../_virtual/
|
|
1
|
+
import f from "../../../_virtual/index3.js";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import o from "../../../_virtual/
|
|
3
|
+
import o from "../../../_virtual/index4.js";
|
|
4
4
|
import { useBootstrapPrefix as u } from "./ThemeProvider.js";
|
|
5
5
|
import { j as p } from "../../../_virtual/jsx-runtime.js";
|
|
6
6
|
o.string, o.bool, o.bool, o.bool, o.bool;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import e from "../../../_virtual/
|
|
2
|
+
import e from "../../../_virtual/index3.js";
|
|
3
3
|
import { useBootstrapPrefix as p } from "./ThemeProvider.js";
|
|
4
4
|
import { j as f } from "../../../_virtual/jsx-runtime.js";
|
|
5
5
|
const i = /* @__PURE__ */ s.forwardRef(({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import m from "../../../_virtual/
|
|
2
|
+
import m from "../../../_virtual/index3.js";
|
|
3
3
|
import { useBootstrapPrefix as p } from "./ThemeProvider.js";
|
|
4
4
|
import { j as f } from "../../../_virtual/jsx-runtime.js";
|
|
5
5
|
const x = /* @__PURE__ */ e.forwardRef(({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
|
-
import m from "../../../_virtual/
|
|
2
|
+
import m from "../../../_virtual/index3.js";
|
|
3
3
|
import { useBootstrapPrefix as e } from "./ThemeProvider.js";
|
|
4
4
|
import { j as p } from "../../../_virtual/jsx-runtime.js";
|
|
5
5
|
const c = /* @__PURE__ */ t.forwardRef(({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import m from "../../../_virtual/
|
|
2
|
+
import m from "../../../_virtual/index3.js";
|
|
3
3
|
import f from "./divWithClassName.js";
|
|
4
4
|
import { useBootstrapPrefix as i } from "./ThemeProvider.js";
|
|
5
5
|
import { j as l } from "../../../_virtual/jsx-runtime.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import c from "../../../_virtual/
|
|
1
|
+
import c from "../../../_virtual/index3.js";
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import { ENTERING as t, EXITING as g, ENTERED as d } from "../../react-transition-group/esm/Transition.js";
|
|
4
4
|
import { getChildRef as N } from "../../@restart/ui/esm/utils.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as $ from "react";
|
|
2
2
|
import { useRef as l, useEffect as x, useCallback as k, useMemo as A } from "react";
|
|
3
|
-
import M from "../../../_virtual/
|
|
3
|
+
import M from "../../../_virtual/index3.js";
|
|
4
4
|
import b from "../../@restart/hooks/esm/useTimeout.js";
|
|
5
5
|
import q from "./ToastFade.js";
|
|
6
6
|
import w from "./ToastHeader.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import e from "../../../_virtual/
|
|
2
|
+
import e from "../../../_virtual/index3.js";
|
|
3
3
|
import { useBootstrapPrefix as p } from "./ThemeProvider.js";
|
|
4
4
|
import { j as d } from "../../../_virtual/jsx-runtime.js";
|
|
5
5
|
const f = /* @__PURE__ */ m.forwardRef(({
|
|
@@ -2,9 +2,9 @@ var Q = Object.defineProperty;
|
|
|
2
2
|
var X = (e, t, r) => t in e ? Q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var h = (e, t, r) => X(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import y, { Component as R } from "react";
|
|
5
|
-
import ee from "../../../_virtual/
|
|
5
|
+
import ee from "../../../_virtual/index.js";
|
|
6
6
|
import F from "../../../_virtual/browser.js";
|
|
7
|
-
import te from "../../../_virtual/
|
|
7
|
+
import te from "../../../_virtual/index2.js";
|
|
8
8
|
var Y = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(Y || {}), $ = {
|
|
9
9
|
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
10
10
|
script: { type: ["application/ld+json"] },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import x, { Children as w, cloneElement as z, PureComponent as F } from "react";
|
|
2
|
-
import a from "../../../_virtual/
|
|
2
|
+
import a from "../../../_virtual/index4.js";
|
|
3
3
|
import { deepEqual as H } from "../../fast-equals/dist/esm/index.js";
|
|
4
4
|
import L from "./AnimateManager.js";
|
|
5
5
|
import { configEasing as V } from "./easing.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import C from "../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
|
|
2
2
|
import D from "../../@babel/runtime/helpers/esm/inheritsLoose.js";
|
|
3
|
-
import o from "../../../_virtual/
|
|
3
|
+
import o from "../../../_virtual/index4.js";
|
|
4
4
|
import v from "react";
|
|
5
5
|
import b from "react-dom";
|
|
6
6
|
import T from "./config.js";
|