techsbcn-storybook 2.0.7 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/fields/ButtonComponent/ButtonComponent.d.ts +2 -0
- package/dist/components/modals/Drawers/DetailPanelComponent.d.ts +15 -0
- package/dist/components/navigation/AppBreadcrumbs/AppBreadcrumbs.d.ts +7 -0
- package/dist/components/notifications/SnackbarComponent.d.ts +12 -0
- package/dist/helpers/ErrorsHelper.d.ts +4 -0
- package/dist/helpers/NotificationHelper.d.ts +10 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +333 -175
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +309 -158
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/navigation/Breadcrumb.d.ts +8 -0
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var React8 = require('react');
|
|
4
4
|
var material = require('@mui/material');
|
|
5
5
|
var iconsMaterial = require('@mui/icons-material');
|
|
6
6
|
var lodash = require('lodash');
|
|
7
|
+
var CloseIcon = require('@mui/icons-material/Close');
|
|
8
|
+
var notistack = require('notistack');
|
|
7
9
|
var dayjs = require('dayjs');
|
|
8
10
|
var localizedFormat = require('dayjs/plugin/localizedFormat');
|
|
9
11
|
var timezone = require('dayjs/plugin/timezone');
|
|
@@ -40,7 +42,8 @@ function _interopNamespace(e) {
|
|
|
40
42
|
return Object.freeze(n);
|
|
41
43
|
}
|
|
42
44
|
|
|
43
|
-
var
|
|
45
|
+
var React8__default = /*#__PURE__*/_interopDefault(React8);
|
|
46
|
+
var CloseIcon__default = /*#__PURE__*/_interopDefault(CloseIcon);
|
|
44
47
|
var dayjs__default = /*#__PURE__*/_interopDefault(dayjs);
|
|
45
48
|
var localizedFormat__default = /*#__PURE__*/_interopDefault(localizedFormat);
|
|
46
49
|
var timezone__default = /*#__PURE__*/_interopDefault(timezone);
|
|
@@ -62,13 +65,13 @@ document.head.appendChild(document.createElement("style")).appendChild(document.
|
|
|
62
65
|
|
|
63
66
|
// src/components/wrappers/PublicFormWrapper/PublicFormWrapper.tsx
|
|
64
67
|
var PublicFormWrapper = (props) => {
|
|
65
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
66
69
|
material.Box,
|
|
67
70
|
{
|
|
68
71
|
className: `public-form-wrapper ${props.className ? props.className : ""}`,
|
|
69
72
|
sx: { height: "100%", display: "flex", justifyContent: "center", alignItems: "center" }
|
|
70
73
|
},
|
|
71
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ React8__default.default.createElement(material.Container, { maxWidth: "xs" }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "wrapper-box", sx: { p: 1 } }, props.children))
|
|
72
75
|
);
|
|
73
76
|
};
|
|
74
77
|
|
|
@@ -124,14 +127,14 @@ document.head.appendChild(document.createElement("style")).appendChild(document.
|
|
|
124
127
|
|
|
125
128
|
// src/components/tables/SearchComponent/SearchComponent.tsx
|
|
126
129
|
var ActionsList = (actions) => {
|
|
127
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { ml: "auto", justifyContent: "start", display: "flex", alignItems: "center", flexDirection: "row" } }, actions && actions.map((action, i) => /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { ml: 2, color: "primary.main" }, key: i, className: "btn-action main-color" }, action.action)));
|
|
128
131
|
};
|
|
129
132
|
var DoubleFilter = (filters) => {
|
|
130
|
-
return /* @__PURE__ */
|
|
133
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Grid, { container: true, spacing: 1, sx: { alignItems: "center" } }, filters.label && /* @__PURE__ */ React8__default.default.createElement(material.Grid, { size: { xs: 12, md: 3 } }, /* @__PURE__ */ React8__default.default.createElement(material.Box, null, filters.label)), /* @__PURE__ */ React8__default.default.createElement(material.Grid, { size: { xs: 12, md: filters.label ? 9 : 12 } }, /* @__PURE__ */ React8__default.default.createElement(material.Grid, { container: true, spacing: 1 }, /* @__PURE__ */ React8__default.default.createElement(material.Grid, { size: 6 }, filters.firstFilter), /* @__PURE__ */ React8__default.default.createElement(material.Grid, { size: 6 }, filters.secondFilter))));
|
|
131
134
|
};
|
|
132
135
|
var SearchComponent = (props) => {
|
|
133
|
-
const [isOpen, setIsOpen] =
|
|
134
|
-
const [anchorEl, setAnchorEl] =
|
|
136
|
+
const [isOpen, setIsOpen] = React8.useState(!props.searchBar && !!props.filters || props.fixedOpen);
|
|
137
|
+
const [anchorEl, setAnchorEl] = React8.useState(null);
|
|
135
138
|
const open = Boolean(anchorEl);
|
|
136
139
|
const handleClick = (event) => {
|
|
137
140
|
setAnchorEl(event.currentTarget);
|
|
@@ -140,7 +143,7 @@ var SearchComponent = (props) => {
|
|
|
140
143
|
setAnchorEl(null);
|
|
141
144
|
};
|
|
142
145
|
const randId = Math.random().toString(36).substring(7);
|
|
143
|
-
return /* @__PURE__ */
|
|
146
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: `search-component ${props.className}` }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { mb: props.divider ? 2 : 0, px: 2 } }, /* @__PURE__ */ React8__default.default.createElement(material.Grid, { container: true, sx: { alignItems: "center" } }, /* @__PURE__ */ React8__default.default.createElement(
|
|
144
147
|
material.Grid,
|
|
145
148
|
{
|
|
146
149
|
size: {
|
|
@@ -148,7 +151,7 @@ var SearchComponent = (props) => {
|
|
|
148
151
|
md: props.actions && props.searchBar ? 4 : props.searchBar ? 7 : props.actions ? 6 : 12
|
|
149
152
|
}
|
|
150
153
|
},
|
|
151
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ React8__default.default.createElement(
|
|
152
155
|
material.Box,
|
|
153
156
|
{
|
|
154
157
|
sx: {
|
|
@@ -159,7 +162,7 @@ var SearchComponent = (props) => {
|
|
|
159
162
|
},
|
|
160
163
|
props.title
|
|
161
164
|
)
|
|
162
|
-
), props.actions && /* @__PURE__ */
|
|
165
|
+
), props.actions && /* @__PURE__ */ React8__default.default.createElement(material.Grid, { size: { xs: props.title ? 4 : 12 }, sx: { display: { xs: "block", md: "none" } } }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: { xs: "none", md: "flex" } } }, ActionsList(props.actions)), /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: { xs: "flex", md: "none" } } }, props.actions.length > 1 ? /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { ml: "auto" } }, /* @__PURE__ */ React8__default.default.createElement(
|
|
163
166
|
material.IconButton,
|
|
164
167
|
{
|
|
165
168
|
"aria-label": "more",
|
|
@@ -169,8 +172,8 @@ var SearchComponent = (props) => {
|
|
|
169
172
|
"aria-haspopup": "true",
|
|
170
173
|
onClick: handleClick
|
|
171
174
|
},
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
), /* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ React8__default.default.createElement(iconsMaterial.MoreVert, null)
|
|
176
|
+
), /* @__PURE__ */ React8__default.default.createElement(
|
|
174
177
|
material.Menu,
|
|
175
178
|
{
|
|
176
179
|
id: `long-button-${randId}`,
|
|
@@ -184,8 +187,8 @@ var SearchComponent = (props) => {
|
|
|
184
187
|
onClose: handleClose,
|
|
185
188
|
className: "search-menu-actions"
|
|
186
189
|
},
|
|
187
|
-
props.actions.map((action, i) => /* @__PURE__ */
|
|
188
|
-
)) : /* @__PURE__ */
|
|
190
|
+
props.actions.map((action, i) => /* @__PURE__ */ React8__default.default.createElement(material.MenuItem, { key: i, className: "wrapper-actions" }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "btn-action main-color", sx: { color: "primary.main" } }, action.action)))
|
|
191
|
+
)) : /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { ml: "auto" }, className: `wrapper-actions ${props.title ? "min-action-width" : ""}` }, ActionsList(props.actions)))), (props.searchBar || props.filters || props.actions) && /* @__PURE__ */ React8__default.default.createElement(material.Grid, { size: { xs: 12, md: props.actions && props.searchBar ? 8 : props.actions ? 6 : 5 } }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: "flex", alignItems: "center" } }, /* @__PURE__ */ React8__default.default.createElement(
|
|
189
192
|
material.Box,
|
|
190
193
|
{
|
|
191
194
|
sx: {
|
|
@@ -196,16 +199,16 @@ var SearchComponent = (props) => {
|
|
|
196
199
|
}
|
|
197
200
|
},
|
|
198
201
|
props.searchBar,
|
|
199
|
-
!!props.fixedOpen || props.filters && props.searchBar && /* @__PURE__ */
|
|
202
|
+
!!props.fixedOpen || props.filters && props.searchBar && /* @__PURE__ */ React8__default.default.createElement(
|
|
200
203
|
material.Box,
|
|
201
204
|
{
|
|
202
205
|
onClick: () => setIsOpen(!isOpen),
|
|
203
206
|
className: "tune-btn main-background-color",
|
|
204
207
|
sx: { bgcolor: "primary.main", color: "primary.contrastText" }
|
|
205
208
|
},
|
|
206
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ React8__default.default.createElement(iconsMaterial.Tune, null)
|
|
207
210
|
)
|
|
208
|
-
), props.actions && /* @__PURE__ */
|
|
211
|
+
), props.actions && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: { xs: "none", md: "block" } }, className: "wrapper-actions" }, ActionsList(props.actions)))))), props.divider && /* @__PURE__ */ React8__default.default.createElement(material.Divider, null), /* @__PURE__ */ React8__default.default.createElement(material.Collapse, { in: isOpen }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "filters", sx: { px: 2, mt: 2, mb: props.divider ? 0 : 1 } }, /* @__PURE__ */ React8__default.default.createElement(material.Grid, { container: true, spacing: 3, sx: { justifyContent: "end" } }, props.filters && props.filters.length > 0 && props.filters.map((filter, i) => /* @__PURE__ */ React8__default.default.createElement(material.Grid, { key: i, size: { xs: 12, sm: props.filtersSize ?? 6, xl: props.filtersSize ?? 4 } }, filter.doubleFilter ? DoubleFilter(filter.doubleFilter) : filter.singleFilter))))));
|
|
209
212
|
};
|
|
210
213
|
|
|
211
214
|
// src/components/wrappers/LinearProgressComponent/LinearProgressComponent.scss
|
|
@@ -231,7 +234,7 @@ document.head.appendChild(document.createElement("style")).appendChild(document.
|
|
|
231
234
|
|
|
232
235
|
// src/components/wrappers/LinearProgressComponent/LinearProgressComponent.tsx
|
|
233
236
|
var LinearProgressComponent = () => {
|
|
234
|
-
return /* @__PURE__ */
|
|
237
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "linear-progress-component" }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "linear-progress-main-color main-background-color", sx: { bgcolor: "primary.main" } }), /* @__PURE__ */ React8__default.default.createElement(
|
|
235
238
|
material.LinearProgress,
|
|
236
239
|
{
|
|
237
240
|
classes: { bar: "main-background-color" },
|
|
@@ -275,14 +278,14 @@ document.head.appendChild(document.createElement("style")).appendChild(document.
|
|
|
275
278
|
// src/components/wrappers/MainWrapperComponent/MainWrapperComponent.tsx
|
|
276
279
|
var MainWrapperComponent = ({ enableTrimBar = false, ...rest }) => {
|
|
277
280
|
const props = { enableTrimBar, ...rest };
|
|
278
|
-
return /* @__PURE__ */
|
|
281
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "main-wrapper-component", sx: { height: props.height ?? "100%" } }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { height: "4px" } }, props.loadingProgressBar && /* @__PURE__ */ React8__default.default.createElement(LinearProgressComponent, null)), /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { py: 2 } }, props.loading ? /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: "flex", justifyContent: "center", px: 2 } }, /* @__PURE__ */ React8__default.default.createElement(material.CircularProgress, { className: "circular-progress-main-color", color: "primary" })) : /* @__PURE__ */ React8__default.default.createElement(React8__default.default.Fragment, null, props.headerProps && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { mb: props.divider ? 1.5 : 0 } }, /* @__PURE__ */ React8__default.default.createElement(SearchComponent, { ...props.headerProps, enableAfter: props.headerProps.enableAfter ?? true })), props.divider && /* @__PURE__ */ React8__default.default.createElement(material.Divider, null), props.children && !props.loadingChildren ? /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { pt: props.headerProps ? 2 : 0, px: 2 } }, /* @__PURE__ */ React8__default.default.createElement(
|
|
279
282
|
material.Box,
|
|
280
283
|
{
|
|
281
284
|
className: `${props.enableTrimBar ? "main-background-color-after" : ""}`,
|
|
282
285
|
sx: props.enableTrimBar ? { "&::after": { bgcolor: "primary.main" } } : void 0
|
|
283
286
|
},
|
|
284
287
|
props.children
|
|
285
|
-
)) : props.loadingChildren ? /* @__PURE__ */
|
|
288
|
+
)) : props.loadingChildren ? /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: "flex", justifyContent: "center", pt: props.headerProps ? 2 : 0, px: 2 } }, /* @__PURE__ */ React8__default.default.createElement(material.CircularProgress, { className: "circular-progress-main-color", color: "primary" })) : /* @__PURE__ */ React8__default.default.createElement(React8__default.default.Fragment, null))));
|
|
286
289
|
};
|
|
287
290
|
|
|
288
291
|
// src/components/tables/TableComponent/TableComponent.scss
|
|
@@ -537,8 +540,8 @@ var TextFieldComponent = ({
|
|
|
537
540
|
onMouseLeave,
|
|
538
541
|
...rest
|
|
539
542
|
}) => {
|
|
540
|
-
const [hover, setHover] =
|
|
541
|
-
return /* @__PURE__ */
|
|
543
|
+
const [hover, setHover] = React8__default.default.useState(false);
|
|
544
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "text-field-component", sx: { width: "100%" } }, /* @__PURE__ */ React8__default.default.createElement(
|
|
542
545
|
material.TextField,
|
|
543
546
|
{
|
|
544
547
|
...rest,
|
|
@@ -701,15 +704,15 @@ var toBase64 = (file) => {
|
|
|
701
704
|
});
|
|
702
705
|
};
|
|
703
706
|
var usePrevious = (value) => {
|
|
704
|
-
const ref2 =
|
|
705
|
-
|
|
707
|
+
const ref2 = React8.useRef(void 0);
|
|
708
|
+
React8.useEffect(() => {
|
|
706
709
|
ref2.current = value;
|
|
707
710
|
});
|
|
708
711
|
return ref2.current;
|
|
709
712
|
};
|
|
710
713
|
var useIsMounted = () => {
|
|
711
|
-
const isMounted =
|
|
712
|
-
|
|
714
|
+
const isMounted = React8.useRef(false);
|
|
715
|
+
React8.useEffect(() => {
|
|
713
716
|
isMounted.current = true;
|
|
714
717
|
return () => {
|
|
715
718
|
isMounted.current = false;
|
|
@@ -717,14 +720,37 @@ var useIsMounted = () => {
|
|
|
717
720
|
}, []);
|
|
718
721
|
return isMounted;
|
|
719
722
|
};
|
|
723
|
+
var NotificationContainer = (props) => /* @__PURE__ */ React8__default.default.createElement(
|
|
724
|
+
notistack.SnackbarProvider,
|
|
725
|
+
{
|
|
726
|
+
maxSnack: 5,
|
|
727
|
+
autoHideDuration: 5e3,
|
|
728
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
729
|
+
preventDuplicate: true,
|
|
730
|
+
...props
|
|
731
|
+
}
|
|
732
|
+
);
|
|
733
|
+
var addNotification = ({
|
|
734
|
+
message,
|
|
735
|
+
type = "default",
|
|
736
|
+
id,
|
|
737
|
+
duration = type === "error" ? null : 5e3
|
|
738
|
+
}) => notistack.enqueueSnackbar(message, {
|
|
739
|
+
variant: type,
|
|
740
|
+
key: id,
|
|
741
|
+
autoHideDuration: duration,
|
|
742
|
+
persist: duration === null,
|
|
743
|
+
action: duration === null ? (key) => /* @__PURE__ */ React8__default.default.createElement(material.IconButton, { size: "small", color: "inherit", "aria-label": "close", onClick: () => notistack.closeSnackbar(key) }, /* @__PURE__ */ React8__default.default.createElement(CloseIcon__default.default, { fontSize: "small" })) : void 0
|
|
744
|
+
});
|
|
745
|
+
var removeNotification = (id) => notistack.closeSnackbar(id);
|
|
720
746
|
|
|
721
747
|
// src/components/tables/ImageTableComponent/ImageTableComponent.tsx
|
|
722
748
|
var ImageTableComponent = (props) => {
|
|
723
|
-
const [loading, setLoading] =
|
|
724
|
-
const [image, setImage] =
|
|
749
|
+
const [loading, setLoading] = React8.useState(false);
|
|
750
|
+
const [image, setImage] = React8.useState();
|
|
725
751
|
const prevGuidState = usePrevious(props.guid);
|
|
726
752
|
const isMounted = useIsMounted();
|
|
727
|
-
|
|
753
|
+
React8.useEffect(() => {
|
|
728
754
|
if (prevGuidState !== props.guid) {
|
|
729
755
|
setLoading(true);
|
|
730
756
|
props.readFile(props.guid).then((result) => {
|
|
@@ -735,7 +761,7 @@ var ImageTableComponent = (props) => {
|
|
|
735
761
|
}).catch(() => setLoading(false));
|
|
736
762
|
}
|
|
737
763
|
}, [props, prevGuidState, isMounted]);
|
|
738
|
-
return /* @__PURE__ */
|
|
764
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "images-table-component" }, loading ? /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { textAlign: "center" } }, /* @__PURE__ */ React8__default.default.createElement(material.CircularProgress, { className: "main-color", color: "primary" })) : /* @__PURE__ */ React8__default.default.createElement(material.Avatar, { alt: "-", src: image, className: "img-table", variant: "square" }));
|
|
739
765
|
};
|
|
740
766
|
var ImageTableComponent_default = ImageTableComponent;
|
|
741
767
|
var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
@@ -745,8 +771,8 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
745
771
|
dayjs__default.default.extend(timezone__default.default);
|
|
746
772
|
const defaultFilters = JSON.parse(JSON.stringify(props.baseFilters));
|
|
747
773
|
const orderByKeyDefault = "id";
|
|
748
|
-
const [orderByKey, setOrderByKey] =
|
|
749
|
-
const [filters, setFilters] =
|
|
774
|
+
const [orderByKey, setOrderByKey] = React8.useState(orderByKeyDefault);
|
|
775
|
+
const [filters, setFilters] = React8.useState(defaultFilters);
|
|
750
776
|
const isSelected = (id) => JSON.parse(JSON.stringify(props.isCheckTable?.rowsChecked)).indexOf(id) !== -1;
|
|
751
777
|
const handleChangePage = (_event, newPage) => {
|
|
752
778
|
const newFilters = JSON.parse(JSON.stringify(filters));
|
|
@@ -821,9 +847,9 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
821
847
|
return `${column.priceFormat?.currencyStart ?? ""}${Number(value).toFixed(2).replace(".", ",").toLocaleString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1.")} ${!column.priceFormat?.currencyStart ? column.priceFormat?.currencyEnd ?? props.values.SYMBOL_EURO : ""}`;
|
|
822
848
|
if (column.isImage && value) {
|
|
823
849
|
if (column.isImage.isUrl) {
|
|
824
|
-
return /* @__PURE__ */
|
|
850
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Avatar, { alt: "-", src: value, className: "img-table", variant: "square" });
|
|
825
851
|
} else if (column.isImage.isGuid) {
|
|
826
|
-
return /* @__PURE__ */
|
|
852
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
827
853
|
ImageTableComponent_default,
|
|
828
854
|
{
|
|
829
855
|
guid: value,
|
|
@@ -849,7 +875,7 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
849
875
|
if (typeof value === "boolean") {
|
|
850
876
|
return String(value);
|
|
851
877
|
}
|
|
852
|
-
return /* @__PURE__ */
|
|
878
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Typography, { component: "span", sx: { whiteSpace: "break-spaces" } }, value);
|
|
853
879
|
};
|
|
854
880
|
const ObjectbyString = (o, s) => {
|
|
855
881
|
s = s.replace(/\[(\w+)\]/g, ".$1");
|
|
@@ -886,7 +912,7 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
886
912
|
rowEdit[fieldName] = e.target.value;
|
|
887
913
|
setUpdate();
|
|
888
914
|
};
|
|
889
|
-
return /* @__PURE__ */
|
|
915
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
890
916
|
TextFieldComponent,
|
|
891
917
|
{
|
|
892
918
|
...editableCell.isTextField.textFieldProps,
|
|
@@ -899,20 +925,20 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
899
925
|
return value;
|
|
900
926
|
}
|
|
901
927
|
};
|
|
902
|
-
return /* @__PURE__ */
|
|
928
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "table-component" }, /* @__PURE__ */ React8__default.default.createElement(material.Paper, { className: "paper-container" }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { p: 1, display: "flex" } }, props.isCheckTable && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: { xs: "block", md: "none" } }, className: "checkbox-cell" }, /* @__PURE__ */ React8__default.default.createElement(
|
|
903
929
|
material.Checkbox,
|
|
904
930
|
{
|
|
905
931
|
indeterminate: props.rows && JSON.parse(JSON.stringify(props.isCheckTable?.rowsChecked)).length > 0 && JSON.parse(JSON.stringify(props.isCheckTable?.rowsChecked)).length < props.rows.length,
|
|
906
932
|
checked: props.rows && props.rows.length > 0 && JSON.parse(JSON.stringify(props.isCheckTable?.rowsChecked)).length === props.rows.length,
|
|
907
933
|
onChange: handleSelectAllClick
|
|
908
934
|
}
|
|
909
|
-
)), props.showTotalCount && /* @__PURE__ */
|
|
935
|
+
)), props.showTotalCount && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { ml: "auto", mr: 1, alignSelf: "center" } }, props.totalCount, " ", props.values.RESULTS)), /* @__PURE__ */ React8__default.default.createElement(
|
|
910
936
|
material.TableContainer,
|
|
911
937
|
{
|
|
912
938
|
className: `table-container ${props.isBordered ? "table-bordered" : "table-simple"} ${props.withScroll ? "with-scroll" : ""}`
|
|
913
939
|
},
|
|
914
|
-
/* @__PURE__ */
|
|
915
|
-
return /* @__PURE__ */
|
|
940
|
+
/* @__PURE__ */ React8__default.default.createElement(material.Table, { stickyHeader: true, "aria-label": "sticky table", className: props.loading ? "loading" : "" }, /* @__PURE__ */ React8__default.default.createElement(material.TableHead, { sx: { display: { xs: "none", md: "table-header-group" } } }, /* @__PURE__ */ React8__default.default.createElement(material.TableRow, null, props.columns.map((column, columnIndex) => {
|
|
941
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
916
942
|
material.TableCell,
|
|
917
943
|
{
|
|
918
944
|
className: "table-column",
|
|
@@ -920,7 +946,7 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
920
946
|
align: column.align ? column.align : "center",
|
|
921
947
|
style: { width: column.width, minWidth: column.minWidth, maxWidth: column.maxWidth }
|
|
922
948
|
},
|
|
923
|
-
(column.orderBy || column.id) && column.id !== "actions" && !column.isCheck && !column.isActiveFunction && !column.noSort ? /* @__PURE__ */
|
|
949
|
+
(column.orderBy || column.id) && column.id !== "actions" && !column.isCheck && !column.isActiveFunction && !column.noSort ? /* @__PURE__ */ React8__default.default.createElement(
|
|
924
950
|
material.TableSortLabel,
|
|
925
951
|
{
|
|
926
952
|
className: "table-header-cell",
|
|
@@ -930,16 +956,16 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
930
956
|
hideSortIcon: true
|
|
931
957
|
},
|
|
932
958
|
column.label
|
|
933
|
-
) : column.isCheck ? /* @__PURE__ */
|
|
959
|
+
) : column.isCheck ? /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "checkbox-cell" }, /* @__PURE__ */ React8__default.default.createElement(
|
|
934
960
|
material.Checkbox,
|
|
935
961
|
{
|
|
936
962
|
indeterminate: props.rows && JSON.parse(JSON.stringify(props.isCheckTable?.rowsChecked)).length > 0 && JSON.parse(JSON.stringify(props.isCheckTable?.rowsChecked)).length < props.rows.length,
|
|
937
963
|
checked: props.rows && props.rows.length > 0 && JSON.parse(JSON.stringify(props.isCheckTable?.rowsChecked)).length === props.rows.length,
|
|
938
964
|
onChange: handleSelectAllClick
|
|
939
965
|
}
|
|
940
|
-
)) : /* @__PURE__ */
|
|
966
|
+
)) : /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "table-header-cell" }, column.label)
|
|
941
967
|
);
|
|
942
|
-
}))), /* @__PURE__ */
|
|
968
|
+
}))), /* @__PURE__ */ React8__default.default.createElement(material.TableBody, null, props.loading && /* @__PURE__ */ React8__default.default.createElement(material.TableRow, { className: "table-rows" }, /* @__PURE__ */ React8__default.default.createElement(
|
|
943
969
|
material.TableCell,
|
|
944
970
|
{
|
|
945
971
|
colSpan: props.columns.length,
|
|
@@ -949,11 +975,11 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
949
975
|
height: props.rows.length > 0 ? "auto" : "80px"
|
|
950
976
|
}
|
|
951
977
|
},
|
|
952
|
-
/* @__PURE__ */
|
|
978
|
+
/* @__PURE__ */ React8__default.default.createElement(material.CircularProgress, { className: "circular-progress-main-color", color: "primary" })
|
|
953
979
|
)), props.rows && props.rows.length > 0 ? props.rows.map((row, index) => {
|
|
954
980
|
const rowColor = props.rowsColorColumn && ObjectbyString(row, props.rowsColorColumn.columnName) === props.rowsColorColumn.columnValue ? `row-color-${props.rowsColorColumn.columnValue}` : props.isStriped && props.rows.length > 1 && index % 2 == 0 ? "main-background-color table-striped" : "";
|
|
955
981
|
const isRowSelected = props.isCheckTable?.rowsChecked && isSelected(row.id);
|
|
956
|
-
return /* @__PURE__ */
|
|
982
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
957
983
|
material.TableRow,
|
|
958
984
|
{
|
|
959
985
|
className: `table-rows ${rowColor} ${props.onClickRow || props.onClickRowData ? "row-click" : ""}`,
|
|
@@ -967,7 +993,7 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
967
993
|
props.columns.map((column, columnIndex) => {
|
|
968
994
|
const value = column.rowViewFormat ? checkFormat(row, column.rowViewFormat) : ObjectbyString(row, column.id ?? "");
|
|
969
995
|
const isItemSelected = column.isCheck && isSelected(row.id);
|
|
970
|
-
return /* @__PURE__ */
|
|
996
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
971
997
|
material.TableCell,
|
|
972
998
|
{
|
|
973
999
|
className: `table-cell ${column.cellClassName ? column.cellClassName(row) : ""}`,
|
|
@@ -980,8 +1006,8 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
980
1006
|
},
|
|
981
1007
|
onClick: () => !column.action && !column.isCheck && !column.isActiveFunction ? handleRowClick(row) : ""
|
|
982
1008
|
},
|
|
983
|
-
column.label !== "-" && /* @__PURE__ */
|
|
984
|
-
column.rowViewFormat ? /* @__PURE__ */
|
|
1009
|
+
column.label !== "-" && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: { xs: "inline-block", md: "none" } }, className: "label-cell" }, column.label),
|
|
1010
|
+
column.rowViewFormat ? /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "format-value" }, value) : column.action && Object.keys(row).length > 0 ? /* @__PURE__ */ React8__default.default.createElement(material.Box, null, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: "flex" }, className: "actions" }, column.action && column.action.map((action, i) => /* @__PURE__ */ React8__default.default.createElement(material.Box, { key: i }, action.onClick && /* @__PURE__ */ React8__default.default.createElement(
|
|
985
1011
|
material.Box,
|
|
986
1012
|
{
|
|
987
1013
|
className: "btn-action main-color-hover",
|
|
@@ -991,7 +1017,7 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
991
1017
|
onClick: () => action.onClick && action.onClick(row)
|
|
992
1018
|
},
|
|
993
1019
|
action.children
|
|
994
|
-
), action.onClickId && /* @__PURE__ */
|
|
1020
|
+
), action.onClickId && /* @__PURE__ */ React8__default.default.createElement(
|
|
995
1021
|
material.Box,
|
|
996
1022
|
{
|
|
997
1023
|
className: "btn-action main-color-hover",
|
|
@@ -1001,7 +1027,7 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
1001
1027
|
onClick: () => action.onClickId && action.onClickId(row.id)
|
|
1002
1028
|
},
|
|
1003
1029
|
action.children
|
|
1004
|
-
), !action.onClick && !action.onClickId && /* @__PURE__ */
|
|
1030
|
+
), !action.onClick && !action.onClickId && /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "btn-action" }, action.children))))) : column.isActiveFunction && Object.keys(row).length > 0 ? /* @__PURE__ */ React8__default.default.createElement(
|
|
1005
1031
|
material.Box,
|
|
1006
1032
|
{
|
|
1007
1033
|
className: "btn-action main-color-hover",
|
|
@@ -1011,31 +1037,31 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
1011
1037
|
onClick: () => column.isActiveFunction && column.isActiveFunction.onClickId(row.id)
|
|
1012
1038
|
},
|
|
1013
1039
|
value ? column.isActiveFunction.activeIcon : column.isActiveFunction.disabledIcon
|
|
1014
|
-
) : column.isCheck && Object.keys(row).length > 0 ? /* @__PURE__ */
|
|
1040
|
+
) : column.isCheck && Object.keys(row).length > 0 ? /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "checkbox-cell" }, /* @__PURE__ */ React8__default.default.createElement(
|
|
1015
1041
|
material.Checkbox,
|
|
1016
1042
|
{
|
|
1017
1043
|
checked: isItemSelected,
|
|
1018
1044
|
slotProps: { input: { "aria-labelledby": row.id } },
|
|
1019
1045
|
onChange: (event) => onCheckAction(event, row.id)
|
|
1020
1046
|
}
|
|
1021
|
-
)) : column.isEditableTableCell && Object.keys(row).length > 0 ? EditableTableCell(row, value, column.id, column.isEditableTableCell) : column.enumColumn && Object.keys(row).length > 0 ? /* @__PURE__ */
|
|
1047
|
+
)) : column.isEditableTableCell && Object.keys(row).length > 0 ? EditableTableCell(row, value, column.id, column.isEditableTableCell) : column.enumColumn && Object.keys(row).length > 0 ? /* @__PURE__ */ React8__default.default.createElement(
|
|
1022
1048
|
material.Box,
|
|
1023
1049
|
{
|
|
1024
1050
|
className: `${column.enumColumn.hasColor ? `${column.enumColumn.enumSuffix ? `${value.toLowerCase()}-${column.enumColumn.enumSuffix.toLowerCase()}` : value.toString().toLowerCase()}-type-color` : ""} format-value`
|
|
1025
1051
|
},
|
|
1026
1052
|
formatValue(value, column)
|
|
1027
|
-
) : column.isBoolean && Object.keys(row).length > 0 ? /* @__PURE__ */
|
|
1053
|
+
) : column.isBoolean && Object.keys(row).length > 0 ? /* @__PURE__ */ React8__default.default.createElement(
|
|
1028
1054
|
material.Box,
|
|
1029
1055
|
{
|
|
1030
1056
|
className: `${column.isBoolean.hasColor ? `${column.isBoolean.enumSuffix ? `${value.toString().toLowerCase()}-${column.isBoolean.enumSuffix.toLowerCase()}` : value.toString().toLowerCase()}-boolean-color` : ""} format-value`
|
|
1031
1057
|
},
|
|
1032
1058
|
formatValue(value, column)
|
|
1033
|
-
) : /* @__PURE__ */
|
|
1059
|
+
) : /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: `${column.isImage ? "" : "format-value"}` }, formatValue(value, column))
|
|
1034
1060
|
);
|
|
1035
1061
|
})
|
|
1036
1062
|
);
|
|
1037
|
-
}) : !props.loading ? /* @__PURE__ */
|
|
1038
|
-
), props.baseFilters && props.baseFilters.page && props.baseFilters.limit && /* @__PURE__ */
|
|
1063
|
+
}) : !props.loading ? /* @__PURE__ */ React8__default.default.createElement(material.TableRow, null, /* @__PURE__ */ React8__default.default.createElement(material.TableCell, { colSpan: props.columns.length }, /* @__PURE__ */ React8__default.default.createElement(material.Box, null, props.values.NO_RESULTS_FOUND))) : /* @__PURE__ */ React8__default.default.createElement(material.TableRow, null)))
|
|
1064
|
+
), props.baseFilters && props.baseFilters.page && props.baseFilters.limit && /* @__PURE__ */ React8__default.default.createElement(
|
|
1039
1065
|
material.TablePagination,
|
|
1040
1066
|
{
|
|
1041
1067
|
rowsPerPageOptions: [5, 10, 25, 100, 150],
|
|
@@ -1051,7 +1077,7 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
1051
1077
|
component: "div",
|
|
1052
1078
|
className: `table-pagination ${props.isBordered ? "table-bordered" : "table-simple"}`,
|
|
1053
1079
|
ActionsComponent: (_actions) => {
|
|
1054
|
-
return /* @__PURE__ */
|
|
1080
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { flexShrink: 0 }, className: "pagination" }, Math.ceil(_actions.count / _actions.rowsPerPage) > 1 && /* @__PURE__ */ React8__default.default.createElement(
|
|
1055
1081
|
material.Pagination,
|
|
1056
1082
|
{
|
|
1057
1083
|
count: Math.ceil(_actions.count / _actions.rowsPerPage),
|
|
@@ -1063,7 +1089,7 @@ var TableComponent = ({ showTotalCount = true, ...rest }) => {
|
|
|
1063
1089
|
hidePrevButton: true,
|
|
1064
1090
|
showFirstButton: true,
|
|
1065
1091
|
showLastButton: true,
|
|
1066
|
-
renderItem: (item) => /* @__PURE__ */
|
|
1092
|
+
renderItem: (item) => /* @__PURE__ */ React8__default.default.createElement(
|
|
1067
1093
|
material.PaginationItem,
|
|
1068
1094
|
{
|
|
1069
1095
|
classes: { selected: "main-background-color" },
|
|
@@ -1314,9 +1340,9 @@ var SimpleTableComponent = (props) => {
|
|
|
1314
1340
|
return `${column.priceFormat?.currencyStart ?? ""}${Number(value).toFixed(2).replace(".", ",").toLocaleString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1.")} ${!column.priceFormat?.currencyStart ? column.priceFormat?.currencyEnd ?? props.values.SYMBOL_EURO : ""}`;
|
|
1315
1341
|
if (column.isImage && value) {
|
|
1316
1342
|
if (column.isImage.isUrl) {
|
|
1317
|
-
return /* @__PURE__ */
|
|
1343
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Avatar, { alt: "-", src: value, className: "img-table", variant: "square" });
|
|
1318
1344
|
} else if (column.isImage.isGuid) {
|
|
1319
|
-
return /* @__PURE__ */
|
|
1345
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
1320
1346
|
ImageTableComponent_default,
|
|
1321
1347
|
{
|
|
1322
1348
|
guid: value,
|
|
@@ -1342,7 +1368,7 @@ var SimpleTableComponent = (props) => {
|
|
|
1342
1368
|
if (typeof value === "boolean") {
|
|
1343
1369
|
return String(value);
|
|
1344
1370
|
}
|
|
1345
|
-
return /* @__PURE__ */
|
|
1371
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Typography, { component: "span", sx: { whiteSpace: "break-spaces" } }, value);
|
|
1346
1372
|
};
|
|
1347
1373
|
const ObjectbyString = (o, s) => {
|
|
1348
1374
|
s = s.replace(/\[(\w+)\]/g, ".$1");
|
|
@@ -1380,7 +1406,7 @@ var SimpleTableComponent = (props) => {
|
|
|
1380
1406
|
rowEdit[fieldName] = e.target.value;
|
|
1381
1407
|
setUpdate();
|
|
1382
1408
|
};
|
|
1383
|
-
return /* @__PURE__ */
|
|
1409
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
1384
1410
|
TextFieldComponent,
|
|
1385
1411
|
{
|
|
1386
1412
|
...editableCell.isTextField.textFieldProps,
|
|
@@ -1393,29 +1419,29 @@ var SimpleTableComponent = (props) => {
|
|
|
1393
1419
|
return value;
|
|
1394
1420
|
}
|
|
1395
1421
|
};
|
|
1396
|
-
return /* @__PURE__ */
|
|
1422
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "table-simple-component" }, /* @__PURE__ */ React8__default.default.createElement(material.Paper, { className: "paper-container" }, props.isCheckTable && !props.isCheckTable.noCheckAllItems && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: { xs: "block", md: "none" } }, className: "checkbox-cell" }, /* @__PURE__ */ React8__default.default.createElement(
|
|
1397
1423
|
material.Checkbox,
|
|
1398
1424
|
{
|
|
1399
1425
|
indeterminate: props.rows && JSON.parse(JSON.stringify(props.isCheckTable?.rowsChecked)).length > 0 && JSON.parse(JSON.stringify(props.isCheckTable?.rowsChecked)).length < props.rows.length,
|
|
1400
1426
|
checked: props.rows && props.rows.length > 0 && JSON.parse(JSON.stringify(props.isCheckTable?.rowsChecked)).length === props.rows.length,
|
|
1401
1427
|
onChange: handleSelectAllClick
|
|
1402
1428
|
}
|
|
1403
|
-
)), /* @__PURE__ */
|
|
1429
|
+
)), /* @__PURE__ */ React8__default.default.createElement(
|
|
1404
1430
|
material.TableContainer,
|
|
1405
1431
|
{
|
|
1406
1432
|
className: `table-container ${props.isBordered ? "table-bordered" : "table-simple"}
|
|
1407
1433
|
${props.withScroll ? "with-scroll" : ""}`
|
|
1408
1434
|
},
|
|
1409
|
-
/* @__PURE__ */
|
|
1435
|
+
/* @__PURE__ */ React8__default.default.createElement(
|
|
1410
1436
|
material.Table,
|
|
1411
1437
|
{
|
|
1412
1438
|
stickyHeader: true,
|
|
1413
1439
|
"aria-label": "sticky table",
|
|
1414
1440
|
className: props.loading ? "loading" : props.className ? props.className : ""
|
|
1415
1441
|
},
|
|
1416
|
-
/* @__PURE__ */
|
|
1442
|
+
/* @__PURE__ */ React8__default.default.createElement(material.TableHead, { sx: { display: { xs: "none", md: "table-header-group" } } }, /* @__PURE__ */ React8__default.default.createElement(material.TableRow, null, props.columns.map((column, columnIndex) => {
|
|
1417
1443
|
if (column.id) {
|
|
1418
|
-
return /* @__PURE__ */
|
|
1444
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
1419
1445
|
material.TableCell,
|
|
1420
1446
|
{
|
|
1421
1447
|
className: "table-column",
|
|
@@ -1423,18 +1449,18 @@ var SimpleTableComponent = (props) => {
|
|
|
1423
1449
|
align: column.align ? column.align : "center",
|
|
1424
1450
|
style: { width: column.width, minWidth: column.minWidth, maxWidth: column.maxWidth }
|
|
1425
1451
|
},
|
|
1426
|
-
column.isCheck && !props.isCheckTable?.noCheckAllItems ? /* @__PURE__ */
|
|
1452
|
+
column.isCheck && !props.isCheckTable?.noCheckAllItems ? /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "checkbox-cell" }, /* @__PURE__ */ React8__default.default.createElement(
|
|
1427
1453
|
material.Checkbox,
|
|
1428
1454
|
{
|
|
1429
1455
|
indeterminate: props.rows && JSON.parse(JSON.stringify(props.isCheckTable?.rowsChecked)).length > 0 && JSON.parse(JSON.stringify(props.isCheckTable?.rowsChecked)).length < props.rows.length,
|
|
1430
1456
|
checked: props.rows && props.rows.length > 0 && JSON.parse(JSON.stringify(props.isCheckTable?.rowsChecked)).length === props.rows.length,
|
|
1431
1457
|
onChange: handleSelectAllClick
|
|
1432
1458
|
}
|
|
1433
|
-
)) : /* @__PURE__ */
|
|
1459
|
+
)) : /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "table-header-cell" }, column.label)
|
|
1434
1460
|
);
|
|
1435
1461
|
} else return null;
|
|
1436
1462
|
}))),
|
|
1437
|
-
/* @__PURE__ */
|
|
1463
|
+
/* @__PURE__ */ React8__default.default.createElement(material.TableBody, null, props.loading && /* @__PURE__ */ React8__default.default.createElement(material.TableRow, { className: "table-rows" }, /* @__PURE__ */ React8__default.default.createElement(
|
|
1438
1464
|
material.TableCell,
|
|
1439
1465
|
{
|
|
1440
1466
|
colSpan: props.columns.length,
|
|
@@ -1444,11 +1470,11 @@ var SimpleTableComponent = (props) => {
|
|
|
1444
1470
|
height: props.rows.length > 0 ? "auto" : "80px"
|
|
1445
1471
|
}
|
|
1446
1472
|
},
|
|
1447
|
-
/* @__PURE__ */
|
|
1473
|
+
/* @__PURE__ */ React8__default.default.createElement(material.CircularProgress, { className: "circular-progress-main-color", color: "primary" })
|
|
1448
1474
|
)), props.rows && props.rows.length > 0 ? props.rows.map((row, index) => {
|
|
1449
1475
|
const rowColor = props.rowsColorColumn && ObjectbyString(row, props.rowsColorColumn.columnName) === props.rowsColorColumn.columnValue ? `row-color-${props.rowsColorColumn.columnValue}` : props.isStriped && props.rows.length > 1 && index % 2 == 0 ? "main-background-color table-striped" : "";
|
|
1450
1476
|
const isRowSelected = props.isCheckTable?.rowsChecked && isSelected(row.id);
|
|
1451
|
-
return /* @__PURE__ */
|
|
1477
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
1452
1478
|
material.TableRow,
|
|
1453
1479
|
{
|
|
1454
1480
|
className: `table-rows ${rowColor} ${props.onClickRow || props.onClickRowData ? "row-click" : ""}`,
|
|
@@ -1462,7 +1488,7 @@ var SimpleTableComponent = (props) => {
|
|
|
1462
1488
|
props.columns.map((column, columnIndex) => {
|
|
1463
1489
|
const value = column.rowViewFormat ? checkFormat(row, column.rowViewFormat) : ObjectbyString(row, column.id ?? "");
|
|
1464
1490
|
const isItemSelected = column.isCheck && isSelected(row.id);
|
|
1465
|
-
return /* @__PURE__ */
|
|
1491
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
1466
1492
|
material.TableCell,
|
|
1467
1493
|
{
|
|
1468
1494
|
className: `table-cell ${column.cellClassName ? column.cellClassName(row) : ""}`,
|
|
@@ -1475,8 +1501,8 @@ var SimpleTableComponent = (props) => {
|
|
|
1475
1501
|
},
|
|
1476
1502
|
onClick: () => !column.action && !column.isCheck && !column.isActiveFunction ? handleRowClick(row) : ""
|
|
1477
1503
|
},
|
|
1478
|
-
column.label !== "-" && /* @__PURE__ */
|
|
1479
|
-
column.action && Object.keys(row).length > 0 ? /* @__PURE__ */
|
|
1504
|
+
column.label !== "-" && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: { xs: "inline-block", md: "none" } }, className: "label-cell" }, column.label),
|
|
1505
|
+
column.action && Object.keys(row).length > 0 ? /* @__PURE__ */ React8__default.default.createElement(material.Box, null, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: "flex" }, className: "actions" }, column.rowViewFormat ? /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "format-value" }, value) : column.action && column.action.map((action, i) => /* @__PURE__ */ React8__default.default.createElement(material.Box, { key: i }, action.onClick && /* @__PURE__ */ React8__default.default.createElement(
|
|
1480
1506
|
material.Box,
|
|
1481
1507
|
{
|
|
1482
1508
|
className: "btn-action main-color-hover",
|
|
@@ -1486,7 +1512,7 @@ var SimpleTableComponent = (props) => {
|
|
|
1486
1512
|
onClick: () => action.onClick && action.onClick(row)
|
|
1487
1513
|
},
|
|
1488
1514
|
action.children
|
|
1489
|
-
), action.onClickId && /* @__PURE__ */
|
|
1515
|
+
), action.onClickId && /* @__PURE__ */ React8__default.default.createElement(
|
|
1490
1516
|
material.Box,
|
|
1491
1517
|
{
|
|
1492
1518
|
className: "btn-action main-color-hover",
|
|
@@ -1496,7 +1522,7 @@ var SimpleTableComponent = (props) => {
|
|
|
1496
1522
|
onClick: () => action.onClickId && action.onClickId(row.id)
|
|
1497
1523
|
},
|
|
1498
1524
|
action.children
|
|
1499
|
-
), !action.onClick && !action.onClickId && /* @__PURE__ */
|
|
1525
|
+
), !action.onClick && !action.onClickId && /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "btn-action" }, action.children))))) : column.isActiveFunction && Object.keys(row).length > 0 ? /* @__PURE__ */ React8__default.default.createElement(
|
|
1500
1526
|
material.Box,
|
|
1501
1527
|
{
|
|
1502
1528
|
className: "btn-action main-color-hover",
|
|
@@ -1506,30 +1532,30 @@ var SimpleTableComponent = (props) => {
|
|
|
1506
1532
|
onClick: () => column.isActiveFunction && column.isActiveFunction.onClickId(row.id)
|
|
1507
1533
|
},
|
|
1508
1534
|
value ? column.isActiveFunction.activeIcon : column.isActiveFunction.disabledIcon
|
|
1509
|
-
) : column.isCheck && Object.keys(row).length > 0 ? /* @__PURE__ */
|
|
1535
|
+
) : column.isCheck && Object.keys(row).length > 0 ? /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "checkbox-cell" }, /* @__PURE__ */ React8__default.default.createElement(
|
|
1510
1536
|
material.Checkbox,
|
|
1511
1537
|
{
|
|
1512
1538
|
checked: isItemSelected,
|
|
1513
1539
|
slotProps: { input: { "aria-labelledby": row.id } },
|
|
1514
1540
|
onChange: (event) => props.isCheckTable?.onCheckedAction ? onCheckAction(event, row.id) : onCheckSingleAction(event, row.id)
|
|
1515
1541
|
}
|
|
1516
|
-
)) : column.isEditableTableCell && Object.keys(row).length > 0 ? EditableTableCell(row, value, column.id, column.isEditableTableCell) : column.enumColumn && Object.keys(row).length > 0 ? /* @__PURE__ */
|
|
1542
|
+
)) : column.isEditableTableCell && Object.keys(row).length > 0 ? EditableTableCell(row, value, column.id, column.isEditableTableCell) : column.enumColumn && Object.keys(row).length > 0 ? /* @__PURE__ */ React8__default.default.createElement(
|
|
1517
1543
|
material.Box,
|
|
1518
1544
|
{
|
|
1519
1545
|
className: `${column.enumColumn.hasColor ? `${column.enumColumn.enumSuffix ? `${value.toLowerCase()}-${column.enumColumn.enumSuffix.toLowerCase()}` : value.toString().toLowerCase()}-type-color` : ""} format-value`
|
|
1520
1546
|
},
|
|
1521
1547
|
formatValue(value, column)
|
|
1522
|
-
) : column.isBoolean && Object.keys(row).length > 0 ? /* @__PURE__ */
|
|
1548
|
+
) : column.isBoolean && Object.keys(row).length > 0 ? /* @__PURE__ */ React8__default.default.createElement(
|
|
1523
1549
|
material.Box,
|
|
1524
1550
|
{
|
|
1525
1551
|
className: `${column.isBoolean.hasColor ? `${column.isBoolean.enumSuffix ? `${value.toString().toLowerCase()}-${column.isBoolean.enumSuffix.toLowerCase()}` : value.toString().toLowerCase()}-boolean-color` : ""} format-value`
|
|
1526
1552
|
},
|
|
1527
1553
|
formatValue(value, column)
|
|
1528
|
-
) : /* @__PURE__ */
|
|
1554
|
+
) : /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: `${column.isImage ? "" : "format-value"}` }, formatValue(value, column))
|
|
1529
1555
|
);
|
|
1530
1556
|
})
|
|
1531
1557
|
);
|
|
1532
|
-
}) : !props.loading ? /* @__PURE__ */
|
|
1558
|
+
}) : !props.loading ? /* @__PURE__ */ React8__default.default.createElement(material.TableRow, null, /* @__PURE__ */ React8__default.default.createElement(material.TableCell, { colSpan: props.columns.length }, /* @__PURE__ */ React8__default.default.createElement(material.Box, null, props.values.NO_RESULTS_FOUND))) : /* @__PURE__ */ React8__default.default.createElement(material.TableRow, null))
|
|
1533
1559
|
)
|
|
1534
1560
|
)));
|
|
1535
1561
|
};
|
|
@@ -1549,7 +1575,7 @@ document.head.appendChild(document.createElement("style")).appendChild(document.
|
|
|
1549
1575
|
|
|
1550
1576
|
// src/components/layouts/MainLayoutSimple/MainLayoutSimple.tsx
|
|
1551
1577
|
var MainLayoutSimple = (props) => {
|
|
1552
|
-
return /* @__PURE__ */
|
|
1578
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: "flex", flexDirection: "row" }, className: "main-layout-simple" }, props.lateralComponent && props.lateralComponent, /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "main-wrapper", sx: { bgcolor: "background.default" } }, props.headerComponent && props.headerComponent, /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: `${props.lateralComponent ? "split-container" : ""}` }, /* @__PURE__ */ React8__default.default.createElement(material.Container, { maxWidth: false }, props.mainComponent))));
|
|
1553
1579
|
};
|
|
1554
1580
|
|
|
1555
1581
|
// src/components/layouts/SplitLayout/SplitLayout.scss
|
|
@@ -1578,7 +1604,7 @@ var SplitLayout = ({
|
|
|
1578
1604
|
children
|
|
1579
1605
|
}) => {
|
|
1580
1606
|
const heroImageUrl = imgUrl?.trim();
|
|
1581
|
-
return /* @__PURE__ */
|
|
1607
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Grid, { container: true, className: "split-layout", sx: { minHeight: "100vh" } }, heroImageUrl && /* @__PURE__ */ React8__default.default.createElement(
|
|
1582
1608
|
material.Grid,
|
|
1583
1609
|
{
|
|
1584
1610
|
component: "section",
|
|
@@ -1586,8 +1612,8 @@ var SplitLayout = ({
|
|
|
1586
1612
|
sx: { display: { xs: "none", md: "block" }, position: "relative", overflow: "hidden" },
|
|
1587
1613
|
"aria-hidden": "true"
|
|
1588
1614
|
},
|
|
1589
|
-
/* @__PURE__ */
|
|
1590
|
-
), /* @__PURE__ */
|
|
1615
|
+
/* @__PURE__ */ React8__default.default.createElement("img", { src: heroImageUrl, alt: "split-layout-image", className: "split-layout__media-image" })
|
|
1616
|
+
), /* @__PURE__ */ React8__default.default.createElement(
|
|
1591
1617
|
material.Grid,
|
|
1592
1618
|
{
|
|
1593
1619
|
component: "section",
|
|
@@ -1601,22 +1627,22 @@ var SplitLayout = ({
|
|
|
1601
1627
|
p: { xs: 2, sm: 2.5, md: 4 }
|
|
1602
1628
|
}
|
|
1603
1629
|
},
|
|
1604
|
-
/* @__PURE__ */
|
|
1630
|
+
/* @__PURE__ */ React8__default.default.createElement(material.Container, { className: "split-layout__content-wrap" }, children)
|
|
1605
1631
|
));
|
|
1606
1632
|
};
|
|
1607
1633
|
var NavIcon = (props) => {
|
|
1608
1634
|
if (props.iconClassName) {
|
|
1609
|
-
return /* @__PURE__ */
|
|
1635
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "pcoded-micon" }, /* @__PURE__ */ React8__default.default.createElement("i", { className: props.iconClassName }));
|
|
1610
1636
|
} else if (props.iconComponent) {
|
|
1611
|
-
return /* @__PURE__ */
|
|
1637
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "pcoded-micon" }, props.iconComponent);
|
|
1612
1638
|
}
|
|
1613
|
-
return /* @__PURE__ */
|
|
1639
|
+
return /* @__PURE__ */ React8__default.default.createElement(React8__default.default.Fragment, null);
|
|
1614
1640
|
};
|
|
1615
1641
|
|
|
1616
1642
|
// src/components/navigation/VerticalNav/VerticalNavItem.tsx
|
|
1617
1643
|
var VerticalNavItem = (props) => {
|
|
1618
1644
|
const { pathname } = reactRouter.useLocation();
|
|
1619
|
-
const hasPermission =
|
|
1645
|
+
const hasPermission = React8.useMemo(
|
|
1620
1646
|
() => checkPermission(props.item.persmisionAvailable, props.userPermisions),
|
|
1621
1647
|
[props.item.persmisionAvailable, props.userPermisions]
|
|
1622
1648
|
);
|
|
@@ -1624,7 +1650,7 @@ var VerticalNavItem = (props) => {
|
|
|
1624
1650
|
return null;
|
|
1625
1651
|
}
|
|
1626
1652
|
const isActive = !!reactRouter.matchPath({ path: `${props.item.route}/*` || "" }, pathname);
|
|
1627
|
-
return /* @__PURE__ */
|
|
1653
|
+
return /* @__PURE__ */ React8__default.default.createElement(reactRouter.NavLink, { to: props.item.route || "", className: `nav-link-item ${isActive ? "active" : ""}`, onClick: props.onHide }, /* @__PURE__ */ React8__default.default.createElement(
|
|
1628
1654
|
material.Box,
|
|
1629
1655
|
{
|
|
1630
1656
|
sx: (theme) => ({
|
|
@@ -1642,11 +1668,11 @@ var VerticalNavItem = (props) => {
|
|
|
1642
1668
|
}),
|
|
1643
1669
|
className: `nav-item ${isActive ? "main-background-color" : ""}`
|
|
1644
1670
|
},
|
|
1645
|
-
/* @__PURE__ */
|
|
1646
|
-
/* @__PURE__ */
|
|
1671
|
+
/* @__PURE__ */ React8__default.default.createElement(NavIcon, { iconClassName: props.item.iconClassName, iconComponent: props.item.iconComponent }),
|
|
1672
|
+
/* @__PURE__ */ React8__default.default.createElement(material.Box, { className: `nav-item-text` }, props.item.title)
|
|
1647
1673
|
));
|
|
1648
1674
|
};
|
|
1649
|
-
var VerticalNavItem_default =
|
|
1675
|
+
var VerticalNavItem_default = React8__default.default.memo(VerticalNavItem);
|
|
1650
1676
|
var needsToBeOpened = (pathname, item) => {
|
|
1651
1677
|
if (pathname) {
|
|
1652
1678
|
return isUrlInChildren(item, pathname);
|
|
@@ -1671,8 +1697,8 @@ var isUrlInChildren = (parent, url) => {
|
|
|
1671
1697
|
};
|
|
1672
1698
|
var VerticalNavItemCollapse = (props) => {
|
|
1673
1699
|
const { pathname } = reactRouter.useLocation();
|
|
1674
|
-
const [open, setOpen] =
|
|
1675
|
-
|
|
1700
|
+
const [open, setOpen] = React8.useState(() => needsToBeOpened(pathname, props.item));
|
|
1701
|
+
React8.useEffect(() => {
|
|
1676
1702
|
if (needsToBeOpened(pathname, props.item)) {
|
|
1677
1703
|
setOpen(true);
|
|
1678
1704
|
}
|
|
@@ -1680,26 +1706,26 @@ var VerticalNavItemCollapse = (props) => {
|
|
|
1680
1706
|
const handleClick = () => {
|
|
1681
1707
|
setOpen(!open);
|
|
1682
1708
|
};
|
|
1683
|
-
const hasPermission =
|
|
1709
|
+
const hasPermission = React8.useMemo(
|
|
1684
1710
|
() => checkPermission(props.item.persmisionAvailable, props.userPermisions),
|
|
1685
1711
|
[props.item.persmisionAvailable, props.userPermisions]
|
|
1686
1712
|
);
|
|
1687
1713
|
if (!hasPermission) {
|
|
1688
1714
|
return null;
|
|
1689
1715
|
}
|
|
1690
|
-
return /* @__PURE__ */
|
|
1716
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "nav-item-collapse" }, /* @__PURE__ */ React8__default.default.createElement(
|
|
1691
1717
|
material.Box,
|
|
1692
1718
|
{
|
|
1693
1719
|
sx: { p: 2, display: "flex", alignContent: "flex-end", alignItems: "center" },
|
|
1694
1720
|
className: `nav-item ${open ? "open" : ""} ${needsToBeOpened(pathname, props.item) ? "active" : ""}`,
|
|
1695
1721
|
onClick: handleClick
|
|
1696
1722
|
},
|
|
1697
|
-
/* @__PURE__ */
|
|
1698
|
-
/* @__PURE__ */
|
|
1699
|
-
/* @__PURE__ */
|
|
1700
|
-
), props.item.children && Array.isArray(props.item.children) && /* @__PURE__ */
|
|
1723
|
+
/* @__PURE__ */ React8__default.default.createElement(NavIcon, { iconClassName: props.item.iconClassName, iconComponent: props.item.iconComponent }),
|
|
1724
|
+
/* @__PURE__ */ React8__default.default.createElement(material.Box, { className: `nav-item-text` }, props.item.title),
|
|
1725
|
+
/* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { ml: "auto", display: "flex" } }, open ? /* @__PURE__ */ React8__default.default.createElement(iconsMaterial.ExpandMore, null) : /* @__PURE__ */ React8__default.default.createElement(iconsMaterial.ChevronRight, null))
|
|
1726
|
+
), props.item.children && Array.isArray(props.item.children) && /* @__PURE__ */ React8__default.default.createElement(material.Collapse, { in: open, className: "collapse-children" }, /* @__PURE__ */ React8__default.default.createElement(material.Box, null, /* @__PURE__ */ React8__default.default.createElement(material.Grid, { container: true }, props.item.children.map((item) => /* @__PURE__ */ React8__default.default.createElement(material.Grid, { key: item.id, size: 12 }, item.type === 1 /* Collapse */ && /* @__PURE__ */ React8__default.default.createElement(VerticalNavItemCollapse, { item, userPermisions: props.userPermisions, onHide: props.onHide }), item.type === 0 /* Item */ && /* @__PURE__ */ React8__default.default.createElement(VerticalNavItem_default, { item, userPermisions: props.userPermisions, onHide: props.onHide })))))));
|
|
1701
1727
|
};
|
|
1702
|
-
var VerticalNavItemCollapse_default =
|
|
1728
|
+
var VerticalNavItemCollapse_default = React8__default.default.memo(VerticalNavItemCollapse);
|
|
1703
1729
|
|
|
1704
1730
|
// src/components/navigation/VerticalNav/VerticalNav.scss
|
|
1705
1731
|
var css9 = `.vertical-navigation {
|
|
@@ -1761,7 +1787,7 @@ var NavigationType = /* @__PURE__ */ ((NavigationType2) => {
|
|
|
1761
1787
|
return NavigationType2;
|
|
1762
1788
|
})(NavigationType || {});
|
|
1763
1789
|
var VerticalNav = (props) => {
|
|
1764
|
-
return /* @__PURE__ */
|
|
1790
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Grid, { container: true, className: "vertical-navigation" }, props.items.map((item) => /* @__PURE__ */ React8__default.default.createElement(material.Grid, { key: item.id, size: { xs: 12, md: 12 }, className: "grid-item-navigation" }, item.type === 1 /* Collapse */ && /* @__PURE__ */ React8__default.default.createElement(VerticalNavItemCollapse_default, { item, userPermisions: props.userPermisions, onHide: props.onHide }), item.type === 0 /* Item */ && /* @__PURE__ */ React8__default.default.createElement(VerticalNavItem_default, { item, userPermisions: props.userPermisions, onHide: props.onHide }))));
|
|
1765
1791
|
};
|
|
1766
1792
|
|
|
1767
1793
|
// src/components/navigation/components/UserInfo.scss
|
|
@@ -1773,21 +1799,37 @@ document.head.appendChild(document.createElement("style")).appendChild(document.
|
|
|
1773
1799
|
|
|
1774
1800
|
// src/components/navigation/components/UserInfo.tsx
|
|
1775
1801
|
var UserInfo = (props) => {
|
|
1776
|
-
const [anchorEl, setAnchorEl] =
|
|
1802
|
+
const [anchorEl, setAnchorEl] = React8__default.default.useState(null);
|
|
1777
1803
|
const handleClick = (event) => {
|
|
1778
1804
|
setAnchorEl(event.currentTarget);
|
|
1779
1805
|
};
|
|
1780
1806
|
const handleClose = () => {
|
|
1781
1807
|
setAnchorEl(null);
|
|
1782
1808
|
};
|
|
1783
|
-
return /* @__PURE__ */
|
|
1809
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "user-info" }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: "flex", alignItems: "center" } }, props.photoURL && props.photoURL !== void 0 ? /* @__PURE__ */ React8__default.default.createElement(material.Avatar, { className: "avatar-user", src: props.photoURL }) : /* @__PURE__ */ React8__default.default.createElement(
|
|
1784
1810
|
material.Avatar,
|
|
1785
1811
|
{
|
|
1786
1812
|
className: "avatar-user main-background-color",
|
|
1787
1813
|
sx: { bgcolor: "primary.main", color: "primary.contrastText" }
|
|
1788
1814
|
},
|
|
1789
1815
|
props.displayName.charAt(0).toUpperCase()
|
|
1790
|
-
), /* @__PURE__ */
|
|
1816
|
+
), /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { ml: 1, width: "100%", display: "flex", alignItems: "center", alignContent: "flex-end" } }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "user-name" }, props.displayName), props.menuActions && props.menuActions.length > 0 && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { ml: "auto", display: "flex" }, className: "cursor-pointer" }, /* @__PURE__ */ React8__default.default.createElement(iconsMaterial.ExpandMore, { onClick: handleClick }), /* @__PURE__ */ React8__default.default.createElement(material.Menu, { anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleClose }, props.menuActions.map((item, i) => /* @__PURE__ */ React8__default.default.createElement(material.MenuItem, { key: i, onClick: item.action }, item.title)))))));
|
|
1817
|
+
};
|
|
1818
|
+
var AppBreadcrumbs = (props) => {
|
|
1819
|
+
const matches = reactRouter.useMatches();
|
|
1820
|
+
const crumbs = matches.flatMap((match) => {
|
|
1821
|
+
const breadcrumb = match.handle?.breadcrumb;
|
|
1822
|
+
if (!breadcrumb) return [];
|
|
1823
|
+
const result = typeof breadcrumb === "function" ? breadcrumb(match) : breadcrumb;
|
|
1824
|
+
return Array.isArray(result) ? result : [result];
|
|
1825
|
+
});
|
|
1826
|
+
if (!crumbs.length) {
|
|
1827
|
+
return null;
|
|
1828
|
+
}
|
|
1829
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Breadcrumbs, { "aria-label": "breadcrumb", separator: props.separator, maxItems: props.maxItems }, crumbs.map((crumb, index) => {
|
|
1830
|
+
const isLast = index === crumbs.length - 1;
|
|
1831
|
+
return isLast || !crumb.to ? /* @__PURE__ */ React8__default.default.createElement(material.Typography, { key: index, variant: "body2", sx: { color: isLast ? "text.primary" : "text.secondary" } }, crumb.label) : /* @__PURE__ */ React8__default.default.createElement(material.Link, { key: index, component: reactRouter.Link, to: crumb.to, underline: "hover", variant: "body2", color: "inherit" }, crumb.label);
|
|
1832
|
+
}));
|
|
1791
1833
|
};
|
|
1792
1834
|
|
|
1793
1835
|
// src/components/layouts/Standard/AppSidebar/AppSidebar.scss
|
|
@@ -1803,7 +1845,7 @@ document.head.appendChild(document.createElement("style")).appendChild(document.
|
|
|
1803
1845
|
|
|
1804
1846
|
// src/components/layouts/Standard/AppSidebar/AppSidebar.tsx
|
|
1805
1847
|
var AppSidebar = (props) => {
|
|
1806
|
-
return /* @__PURE__ */
|
|
1848
|
+
return /* @__PURE__ */ React8__default.default.createElement(React8__default.default.Fragment, null, /* @__PURE__ */ React8__default.default.createElement(
|
|
1807
1849
|
material.Drawer,
|
|
1808
1850
|
{
|
|
1809
1851
|
anchor: "left",
|
|
@@ -1812,8 +1854,8 @@ var AppSidebar = (props) => {
|
|
|
1812
1854
|
onClose: props.onHide,
|
|
1813
1855
|
sx: { display: { xs: "block", lg: "none" } }
|
|
1814
1856
|
},
|
|
1815
|
-
/* @__PURE__ */
|
|
1816
|
-
), /* @__PURE__ */
|
|
1857
|
+
/* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { height: "100%" }, className: "app-sidebar" }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: "flex", flexDirection: "column", height: "100vh" } }, props.headerComponents && /* @__PURE__ */ React8__default.default.createElement(React8__default.default.Fragment, null, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { p: "12px", flexShrink: 0 } }, props.headerComponents), /* @__PURE__ */ React8__default.default.createElement(material.Divider, null)), /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { overflow: "auto" } }, props.children), props.footerComponents && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { mt: "auto", flexShrink: 0 } }, props.footerComponents)))
|
|
1858
|
+
), /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: { xs: "none", lg: "block" } } }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { height: "100%" }, className: "app-sidebar" }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { position: "sticky", top: "0" } }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: "flex", flexDirection: "column", height: "100vh" } }, props.headerComponents && /* @__PURE__ */ React8__default.default.createElement(React8__default.default.Fragment, null, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { p: "12px", flexShrink: 0 } }, props.headerComponents), /* @__PURE__ */ React8__default.default.createElement(material.Divider, null)), /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { overflow: "auto" } }, props.children), props.footerComponents && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { mt: "auto", flexShrink: 0 } }, props.footerComponents))))));
|
|
1817
1859
|
};
|
|
1818
1860
|
|
|
1819
1861
|
// src/components/layouts/DrawerLayout/DrawerSidebar/DrawerSidebar.scss
|
|
@@ -1829,7 +1871,7 @@ document.head.appendChild(document.createElement("style")).appendChild(document.
|
|
|
1829
1871
|
|
|
1830
1872
|
// src/components/layouts/DrawerLayout/DrawerSidebar/DrawerSidebar.tsx
|
|
1831
1873
|
var DrawerSidebar = (props) => {
|
|
1832
|
-
return /* @__PURE__ */
|
|
1874
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Drawer, { anchor: "left", className: "drawer-nav", open: props.open, onClose: props.onHide }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { height: "100%" }, className: "drawer-sidebar" }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: "flex", flexDirection: "column", height: "100vh" } }, props.headerComponents && /* @__PURE__ */ React8__default.default.createElement(React8__default.default.Fragment, null, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { p: "12px", flexShrink: 0 } }, props.headerComponents), /* @__PURE__ */ React8__default.default.createElement(material.Divider, null)), /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { overflow: "auto" } }, props.children), props.footerComponents && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { mt: "auto", flexShrink: 0 } }, props.footerComponents))));
|
|
1833
1875
|
};
|
|
1834
1876
|
|
|
1835
1877
|
// src/components/layouts/Standard/AppHeader/AppHeader.scss
|
|
@@ -1850,7 +1892,7 @@ document.head.appendChild(document.createElement("style")).appendChild(document.
|
|
|
1850
1892
|
|
|
1851
1893
|
// src/components/layouts/Standard/AppHeader/AppHeader.tsx
|
|
1852
1894
|
var AppHeader = (props) => {
|
|
1853
|
-
return /* @__PURE__ */
|
|
1895
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
1854
1896
|
material.AppBar,
|
|
1855
1897
|
{
|
|
1856
1898
|
position: "sticky",
|
|
@@ -1859,7 +1901,7 @@ var AppHeader = (props) => {
|
|
|
1859
1901
|
},
|
|
1860
1902
|
className: `app-bar main-background-body ${props.className ?? ""}`
|
|
1861
1903
|
},
|
|
1862
|
-
/* @__PURE__ */
|
|
1904
|
+
/* @__PURE__ */ React8__default.default.createElement(material.Toolbar, { className: "app-toolbar" }, props.handleDrawerOpen && /* @__PURE__ */ React8__default.default.createElement(
|
|
1863
1905
|
material.IconButton,
|
|
1864
1906
|
{
|
|
1865
1907
|
sx: { display: { xs: `inline-flex`, lg: props.drawerVisible ? `inline-flex` : `none` } },
|
|
@@ -1868,7 +1910,7 @@ var AppHeader = (props) => {
|
|
|
1868
1910
|
"aria-label": "open drawer",
|
|
1869
1911
|
onClick: props.handleDrawerOpen
|
|
1870
1912
|
},
|
|
1871
|
-
/* @__PURE__ */
|
|
1913
|
+
/* @__PURE__ */ React8__default.default.createElement(MenuIcon__default.default, null)
|
|
1872
1914
|
), props.children)
|
|
1873
1915
|
);
|
|
1874
1916
|
};
|
|
@@ -1899,7 +1941,7 @@ document.head.appendChild(document.createElement("style")).appendChild(document.
|
|
|
1899
1941
|
// src/components/fields/ButtonComponent/ButtonComponent.tsx
|
|
1900
1942
|
var ButtonComponent = ({ component = "button", ...rest }) => {
|
|
1901
1943
|
const props = { component, ...rest };
|
|
1902
|
-
return /* @__PURE__ */
|
|
1944
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
1903
1945
|
material.Button,
|
|
1904
1946
|
{
|
|
1905
1947
|
type: props.type && props.type,
|
|
@@ -1925,7 +1967,7 @@ var ButtonComponent = ({ component = "button", ...rest }) => {
|
|
|
1925
1967
|
disabled: props.loading || props.disabled,
|
|
1926
1968
|
component: props.component
|
|
1927
1969
|
},
|
|
1928
|
-
props.loading ? /* @__PURE__ */
|
|
1970
|
+
props.loading ? /* @__PURE__ */ React8__default.default.createElement(
|
|
1929
1971
|
material.CircularProgress,
|
|
1930
1972
|
{
|
|
1931
1973
|
className: `${props.reverseColors ? "circular-progress-main-color" : ""}`,
|
|
@@ -2009,7 +2051,7 @@ var TextSimpleComponent = ({
|
|
|
2009
2051
|
}) => {
|
|
2010
2052
|
const props = { noBorders, isFormLabel, ...rest };
|
|
2011
2053
|
function SkeletonCompleteDefault(skeleton) {
|
|
2012
|
-
return skeleton.mineSkeleton ?? /* @__PURE__ */
|
|
2054
|
+
return skeleton.mineSkeleton ?? /* @__PURE__ */ React8__default.default.createElement(
|
|
2013
2055
|
material.Skeleton,
|
|
2014
2056
|
{
|
|
2015
2057
|
width: props.fullWidth ? "auto" : "200px",
|
|
@@ -2019,7 +2061,7 @@ var TextSimpleComponent = ({
|
|
|
2019
2061
|
}
|
|
2020
2062
|
);
|
|
2021
2063
|
}
|
|
2022
|
-
return /* @__PURE__ */
|
|
2064
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
2023
2065
|
material.Box,
|
|
2024
2066
|
{
|
|
2025
2067
|
className: "text-simple-component",
|
|
@@ -2029,8 +2071,8 @@ var TextSimpleComponent = ({
|
|
|
2029
2071
|
},
|
|
2030
2072
|
...props.componentBoxProps
|
|
2031
2073
|
},
|
|
2032
|
-
props.skeletonLabel ? /* @__PURE__ */
|
|
2033
|
-
/* @__PURE__ */
|
|
2074
|
+
props.skeletonLabel ? /* @__PURE__ */ React8__default.default.createElement(material.Skeleton, { width: "10%", animation: "wave" }) : props.label ? props.isFormLabel ? /* @__PURE__ */ React8__default.default.createElement(material.FormLabel, { className: `${props.classNameLabel ?? ""}` }, props.label) : /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: `${props.classNameLabel ?? ""}`, ...props.labelBoxProps }, props.label) : /* @__PURE__ */ React8__default.default.createElement(React8__default.default.Fragment, null),
|
|
2075
|
+
/* @__PURE__ */ React8__default.default.createElement(
|
|
2034
2076
|
material.Box,
|
|
2035
2077
|
{
|
|
2036
2078
|
sx: {
|
|
@@ -2044,15 +2086,15 @@ var TextSimpleComponent = ({
|
|
|
2044
2086
|
${props.noBorders || props.skeletonValue && props.skeletonValue.useSkeleton ? "no-border" : ""} ${props.error ? "has-error-border" : ""} ${props.startIcon ? "icon-padding" : props.endIcon ? "end-icon-padding" : ""}`,
|
|
2045
2087
|
...props.valueBoxProps
|
|
2046
2088
|
},
|
|
2047
|
-
props.skeletonValue && props.skeletonValue.useSkeleton ? /* @__PURE__ */
|
|
2089
|
+
props.skeletonValue && props.skeletonValue.useSkeleton ? /* @__PURE__ */ React8__default.default.createElement(SkeletonCompleteDefault, { ...props.skeletonValue }) : /* @__PURE__ */ React8__default.default.createElement(React8__default.default.Fragment, null, props.startIcon && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { mr: 1, display: "flex" } }, props.startIcon), props.isLoading ? /* @__PURE__ */ React8__default.default.createElement(material.CircularProgress, { className: "circular-progress-main-color", size: 20, color: "primary" }) : /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { width: props.fullWidth ? "100%" : "auto" } }, props.value), props.endIcon && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { ml: props.fullWidth ? "auto" : "1", display: "flex" } }, props.endIcon))
|
|
2048
2090
|
),
|
|
2049
|
-
props.helperText && /* @__PURE__ */
|
|
2091
|
+
props.helperText && /* @__PURE__ */ React8__default.default.createElement(
|
|
2050
2092
|
material.Box,
|
|
2051
2093
|
{
|
|
2052
2094
|
className: `helper-text ${props.error ? "has-error" : ""} ${props.noBorders || props.skeletonValue && props.skeletonValue.useSkeleton ? "no-border" : ""}`,
|
|
2053
2095
|
...props.helperBoxProps
|
|
2054
2096
|
},
|
|
2055
|
-
props.skeletonValue && props.skeletonValue.useSkeleton ? /* @__PURE__ */
|
|
2097
|
+
props.skeletonValue && props.skeletonValue.useSkeleton ? /* @__PURE__ */ React8__default.default.createElement(material.Skeleton, { width: "15%", animation: "wave" }) : props.helperText
|
|
2056
2098
|
)
|
|
2057
2099
|
);
|
|
2058
2100
|
};
|
|
@@ -2161,7 +2203,7 @@ var SelectField = ({
|
|
|
2161
2203
|
const getOptions = () => {
|
|
2162
2204
|
return props.addExtraOption ? [props.addExtraOption, ...props.options] : props.options;
|
|
2163
2205
|
};
|
|
2164
|
-
return /* @__PURE__ */
|
|
2206
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
2165
2207
|
material.Box,
|
|
2166
2208
|
{
|
|
2167
2209
|
className: "select-field",
|
|
@@ -2170,8 +2212,8 @@ var SelectField = ({
|
|
|
2170
2212
|
flexDirection: "column"
|
|
2171
2213
|
}
|
|
2172
2214
|
},
|
|
2173
|
-
props.label && /* @__PURE__ */
|
|
2174
|
-
/* @__PURE__ */
|
|
2215
|
+
props.label && /* @__PURE__ */ React8__default.default.createElement(material.FormLabel, { className: `${props.invalid ? "Mui-error" : ""}` }, props.label),
|
|
2216
|
+
/* @__PURE__ */ React8__default.default.createElement(
|
|
2175
2217
|
Select__default.default,
|
|
2176
2218
|
{
|
|
2177
2219
|
defaultValue: props.defaultOptions,
|
|
@@ -2203,7 +2245,7 @@ var SelectField = ({
|
|
|
2203
2245
|
styles: buildReactSelectStyles(theme)
|
|
2204
2246
|
}
|
|
2205
2247
|
),
|
|
2206
|
-
props.helperText && /* @__PURE__ */
|
|
2248
|
+
props.helperText && /* @__PURE__ */ React8__default.default.createElement(material.FormHelperText, { error: props.invalid, className: `helper-text ${props.invalid ? "has-error Mui-error" : ""}` }, props.helperText)
|
|
2207
2249
|
);
|
|
2208
2250
|
};
|
|
2209
2251
|
var SelectAsyncField = ({
|
|
@@ -2220,7 +2262,7 @@ var SelectAsyncField = ({
|
|
|
2220
2262
|
orderBy: "Id",
|
|
2221
2263
|
orderAsc: true
|
|
2222
2264
|
};
|
|
2223
|
-
const [filters, setFilters] =
|
|
2265
|
+
const [filters, setFilters] = React8.useState(props.filters ? props.filters : defaultFilters);
|
|
2224
2266
|
const loadOptions = async (search, _loadedOptions, additional) => {
|
|
2225
2267
|
const newFilters = filters;
|
|
2226
2268
|
newFilters.search = search;
|
|
@@ -2245,7 +2287,7 @@ var SelectAsyncField = ({
|
|
|
2245
2287
|
}
|
|
2246
2288
|
};
|
|
2247
2289
|
};
|
|
2248
|
-
return /* @__PURE__ */
|
|
2290
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
2249
2291
|
material.Box,
|
|
2250
2292
|
{
|
|
2251
2293
|
className: "select-field",
|
|
@@ -2254,8 +2296,8 @@ var SelectAsyncField = ({
|
|
|
2254
2296
|
flexDirection: "column"
|
|
2255
2297
|
}
|
|
2256
2298
|
},
|
|
2257
|
-
props.label && /* @__PURE__ */
|
|
2258
|
-
/* @__PURE__ */
|
|
2299
|
+
props.label && /* @__PURE__ */ React8__default.default.createElement(material.FormLabel, { className: `${props.invalid ? "Mui-error" : ""}` }, props.label),
|
|
2300
|
+
/* @__PURE__ */ React8__default.default.createElement(
|
|
2259
2301
|
reactSelectAsyncPaginate.AsyncPaginate,
|
|
2260
2302
|
{
|
|
2261
2303
|
defaultValue: props.defaultOptions,
|
|
@@ -2289,7 +2331,7 @@ var SelectAsyncField = ({
|
|
|
2289
2331
|
styles: buildReactSelectStyles(theme)
|
|
2290
2332
|
}
|
|
2291
2333
|
),
|
|
2292
|
-
props.helperText && /* @__PURE__ */
|
|
2334
|
+
props.helperText && /* @__PURE__ */ React8__default.default.createElement(material.FormHelperText, { error: props.invalid, className: `helper-text ${props.invalid ? "has-error Mui-error" : ""}` }, props.helperText)
|
|
2293
2335
|
);
|
|
2294
2336
|
};
|
|
2295
2337
|
var LoginForm = (props) => {
|
|
@@ -2297,7 +2339,7 @@ var LoginForm = (props) => {
|
|
|
2297
2339
|
login: yup2__namespace.string().required(props.requiredText.requiredTextLogin),
|
|
2298
2340
|
password: yup2__namespace.string().required(props.requiredText.requiredTextPassword)
|
|
2299
2341
|
});
|
|
2300
|
-
const [showPassword, setShownPassword] =
|
|
2342
|
+
const [showPassword, setShownPassword] = React8.useState(false);
|
|
2301
2343
|
const handleClickShowPassword = () => {
|
|
2302
2344
|
setShownPassword(!showPassword);
|
|
2303
2345
|
};
|
|
@@ -2310,12 +2352,12 @@ var LoginForm = (props) => {
|
|
|
2310
2352
|
} = reactHookForm.useForm({
|
|
2311
2353
|
resolver: yup.yupResolver(LoginSchema)
|
|
2312
2354
|
});
|
|
2313
|
-
return /* @__PURE__ */
|
|
2355
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { m: 2 } }, props.topComponent && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { m: 2 } }, props.topComponent), /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { my: 2 } }, /* @__PURE__ */ React8__default.default.createElement(material.Stack, { direction: "column", spacing: 1 }, /* @__PURE__ */ React8__default.default.createElement(material.Box, null, /* @__PURE__ */ React8__default.default.createElement(
|
|
2314
2356
|
reactHookForm.Controller,
|
|
2315
2357
|
{
|
|
2316
2358
|
control,
|
|
2317
2359
|
name: "login",
|
|
2318
|
-
render: ({ field: { onChange, name, ref: ref2 } }) => /* @__PURE__ */
|
|
2360
|
+
render: ({ field: { onChange, name, ref: ref2 } }) => /* @__PURE__ */ React8__default.default.createElement(
|
|
2319
2361
|
TextFieldComponent,
|
|
2320
2362
|
{
|
|
2321
2363
|
label: props.valuesText.labelLogin,
|
|
@@ -2339,12 +2381,12 @@ var LoginForm = (props) => {
|
|
|
2339
2381
|
}
|
|
2340
2382
|
)
|
|
2341
2383
|
}
|
|
2342
|
-
)), /* @__PURE__ */
|
|
2384
|
+
)), /* @__PURE__ */ React8__default.default.createElement(material.Box, null, /* @__PURE__ */ React8__default.default.createElement(
|
|
2343
2385
|
reactHookForm.Controller,
|
|
2344
2386
|
{
|
|
2345
2387
|
control,
|
|
2346
2388
|
name: "password",
|
|
2347
|
-
render: ({ field: { onChange, name, ref: ref2 } }) => /* @__PURE__ */
|
|
2389
|
+
render: ({ field: { onChange, name, ref: ref2 } }) => /* @__PURE__ */ React8__default.default.createElement(
|
|
2348
2390
|
TextFieldComponent,
|
|
2349
2391
|
{
|
|
2350
2392
|
label: props.valuesText.labelPassword,
|
|
@@ -2365,11 +2407,11 @@ var LoginForm = (props) => {
|
|
|
2365
2407
|
}
|
|
2366
2408
|
}
|
|
2367
2409
|
},
|
|
2368
|
-
endIcon: /* @__PURE__ */
|
|
2410
|
+
endIcon: /* @__PURE__ */ React8__default.default.createElement(material.IconButton, { "aria-label": "toggle password visibility", onClick: handleClickShowPassword, size: "small" }, showPassword ? /* @__PURE__ */ React8__default.default.createElement(iconsMaterial.Visibility, null) : /* @__PURE__ */ React8__default.default.createElement(iconsMaterial.VisibilityOff, null))
|
|
2369
2411
|
}
|
|
2370
2412
|
)
|
|
2371
2413
|
}
|
|
2372
|
-
)))), /* @__PURE__ */
|
|
2414
|
+
)))), /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { mb: 4 } }, /* @__PURE__ */ React8__default.default.createElement(
|
|
2373
2415
|
ButtonComponent,
|
|
2374
2416
|
{
|
|
2375
2417
|
label: props.valuesText.buttonText,
|
|
@@ -2377,7 +2419,7 @@ var LoginForm = (props) => {
|
|
|
2377
2419
|
className: "btn-login",
|
|
2378
2420
|
onClick: handleSubmit(props.onClick)
|
|
2379
2421
|
}
|
|
2380
|
-
)), props.bottomComponent && /* @__PURE__ */
|
|
2422
|
+
)), props.bottomComponent && /* @__PURE__ */ React8__default.default.createElement(material.Box, null, props.bottomComponent));
|
|
2381
2423
|
};
|
|
2382
2424
|
var ChangePasswordForm = (props) => {
|
|
2383
2425
|
const validationSchema = yup2__namespace.object().shape({
|
|
@@ -2396,19 +2438,19 @@ var ChangePasswordForm = (props) => {
|
|
|
2396
2438
|
} = reactHookForm.useForm({
|
|
2397
2439
|
resolver: yup.yupResolver(validationSchema)
|
|
2398
2440
|
});
|
|
2399
|
-
const [showPassword, setShownPassword] =
|
|
2441
|
+
const [showPassword, setShownPassword] = React8.useState(false);
|
|
2400
2442
|
const handleClickShowPassword = () => {
|
|
2401
2443
|
setShownPassword(!showPassword);
|
|
2402
2444
|
};
|
|
2403
2445
|
const handleMouseDownPassword = (event) => {
|
|
2404
2446
|
event.preventDefault();
|
|
2405
2447
|
};
|
|
2406
|
-
return /* @__PURE__ */
|
|
2448
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { m: 2 } }, props.topComponent && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { m: 2 } }, props.topComponent), /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { my: 2 } }, /* @__PURE__ */ React8__default.default.createElement(material.Stack, { direction: "column", spacing: 1 }, /* @__PURE__ */ React8__default.default.createElement(material.Box, null, /* @__PURE__ */ React8__default.default.createElement(
|
|
2407
2449
|
reactHookForm.Controller,
|
|
2408
2450
|
{
|
|
2409
2451
|
control,
|
|
2410
2452
|
name: "password",
|
|
2411
|
-
render: ({ field: { onChange, name, ref: ref2 } }) => /* @__PURE__ */
|
|
2453
|
+
render: ({ field: { onChange, name, ref: ref2 } }) => /* @__PURE__ */ React8__default.default.createElement(
|
|
2412
2454
|
TextFieldComponent,
|
|
2413
2455
|
{
|
|
2414
2456
|
label: props.valuesText.labelPassword,
|
|
@@ -2429,7 +2471,7 @@ var ChangePasswordForm = (props) => {
|
|
|
2429
2471
|
}
|
|
2430
2472
|
}
|
|
2431
2473
|
},
|
|
2432
|
-
endIcon: /* @__PURE__ */
|
|
2474
|
+
endIcon: /* @__PURE__ */ React8__default.default.createElement(
|
|
2433
2475
|
material.IconButton,
|
|
2434
2476
|
{
|
|
2435
2477
|
"aria-label": "toggle password visibility",
|
|
@@ -2437,17 +2479,17 @@ var ChangePasswordForm = (props) => {
|
|
|
2437
2479
|
onMouseDown: handleMouseDownPassword,
|
|
2438
2480
|
size: "small"
|
|
2439
2481
|
},
|
|
2440
|
-
showPassword ? /* @__PURE__ */
|
|
2482
|
+
showPassword ? /* @__PURE__ */ React8__default.default.createElement(iconsMaterial.Visibility, null) : /* @__PURE__ */ React8__default.default.createElement(iconsMaterial.VisibilityOff, null)
|
|
2441
2483
|
)
|
|
2442
2484
|
}
|
|
2443
2485
|
)
|
|
2444
2486
|
}
|
|
2445
|
-
)), /* @__PURE__ */
|
|
2487
|
+
)), /* @__PURE__ */ React8__default.default.createElement(material.Box, null, /* @__PURE__ */ React8__default.default.createElement(
|
|
2446
2488
|
reactHookForm.Controller,
|
|
2447
2489
|
{
|
|
2448
2490
|
control,
|
|
2449
2491
|
name: "passwordConfirmation",
|
|
2450
|
-
render: ({ field: { onChange, name, ref: ref2 } }) => /* @__PURE__ */
|
|
2492
|
+
render: ({ field: { onChange, name, ref: ref2 } }) => /* @__PURE__ */ React8__default.default.createElement(
|
|
2451
2493
|
TextFieldComponent,
|
|
2452
2494
|
{
|
|
2453
2495
|
label: props.valuesText.labelSamePassword,
|
|
@@ -2468,7 +2510,7 @@ var ChangePasswordForm = (props) => {
|
|
|
2468
2510
|
}
|
|
2469
2511
|
}
|
|
2470
2512
|
},
|
|
2471
|
-
endIcon: /* @__PURE__ */
|
|
2513
|
+
endIcon: /* @__PURE__ */ React8__default.default.createElement(
|
|
2472
2514
|
material.IconButton,
|
|
2473
2515
|
{
|
|
2474
2516
|
"aria-label": "toggle password visibility",
|
|
@@ -2476,12 +2518,12 @@ var ChangePasswordForm = (props) => {
|
|
|
2476
2518
|
onMouseDown: handleMouseDownPassword,
|
|
2477
2519
|
size: "small"
|
|
2478
2520
|
},
|
|
2479
|
-
showPassword ? /* @__PURE__ */
|
|
2521
|
+
showPassword ? /* @__PURE__ */ React8__default.default.createElement(iconsMaterial.Visibility, null) : /* @__PURE__ */ React8__default.default.createElement(iconsMaterial.VisibilityOff, null)
|
|
2480
2522
|
)
|
|
2481
2523
|
}
|
|
2482
2524
|
)
|
|
2483
2525
|
}
|
|
2484
|
-
)))), /* @__PURE__ */
|
|
2526
|
+
)))), /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { mb: 4 } }, /* @__PURE__ */ React8__default.default.createElement(
|
|
2485
2527
|
ButtonComponent,
|
|
2486
2528
|
{
|
|
2487
2529
|
label: props.valuesText.buttonText,
|
|
@@ -2489,7 +2531,7 @@ var ChangePasswordForm = (props) => {
|
|
|
2489
2531
|
onClick: handleSubmit(props.onClick),
|
|
2490
2532
|
loading: props.loading
|
|
2491
2533
|
}
|
|
2492
|
-
)), props.bottomComponent && /* @__PURE__ */
|
|
2534
|
+
)), props.bottomComponent && /* @__PURE__ */ React8__default.default.createElement(material.Box, null, props.bottomComponent));
|
|
2493
2535
|
};
|
|
2494
2536
|
var ResetPasswordForm = (props) => {
|
|
2495
2537
|
const ResetSchema = yup2__namespace.object().shape({
|
|
@@ -2504,12 +2546,12 @@ var ResetPasswordForm = (props) => {
|
|
|
2504
2546
|
} = reactHookForm.useForm({
|
|
2505
2547
|
resolver: yup.yupResolver(ResetSchema)
|
|
2506
2548
|
});
|
|
2507
|
-
return /* @__PURE__ */
|
|
2549
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { m: 2 } }, props.topComponent && /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { m: 2 } }, props.topComponent), /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { my: 2 } }, /* @__PURE__ */ React8__default.default.createElement(
|
|
2508
2550
|
reactHookForm.Controller,
|
|
2509
2551
|
{
|
|
2510
2552
|
control,
|
|
2511
2553
|
name: "email",
|
|
2512
|
-
render: ({ field: { onChange, name, ref: ref2 } }) => /* @__PURE__ */
|
|
2554
|
+
render: ({ field: { onChange, name, ref: ref2 } }) => /* @__PURE__ */ React8__default.default.createElement(
|
|
2513
2555
|
TextFieldComponent,
|
|
2514
2556
|
{
|
|
2515
2557
|
label: props.valuesText.label,
|
|
@@ -2533,7 +2575,7 @@ var ResetPasswordForm = (props) => {
|
|
|
2533
2575
|
}
|
|
2534
2576
|
)
|
|
2535
2577
|
}
|
|
2536
|
-
)), /* @__PURE__ */
|
|
2578
|
+
)), /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { mb: 4 } }, /* @__PURE__ */ React8__default.default.createElement(
|
|
2537
2579
|
ButtonComponent,
|
|
2538
2580
|
{
|
|
2539
2581
|
label: props.valuesText.buttonText,
|
|
@@ -2541,7 +2583,7 @@ var ResetPasswordForm = (props) => {
|
|
|
2541
2583
|
onClick: handleSubmit(props.onClick),
|
|
2542
2584
|
loading: props.loading
|
|
2543
2585
|
}
|
|
2544
|
-
)), props.bottomComponent && /* @__PURE__ */
|
|
2586
|
+
)), props.bottomComponent && /* @__PURE__ */ React8__default.default.createElement(material.Box, null, props.bottomComponent));
|
|
2545
2587
|
};
|
|
2546
2588
|
var ModalComponent = ({
|
|
2547
2589
|
modalSize = "sm",
|
|
@@ -2553,7 +2595,7 @@ var ModalComponent = ({
|
|
|
2553
2595
|
...rest
|
|
2554
2596
|
}) => {
|
|
2555
2597
|
const props = { modalSize, fullWidth, loading, dividers, crossAvailable, buttonActionsAlign, ...rest };
|
|
2556
|
-
return /* @__PURE__ */
|
|
2598
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
2557
2599
|
material.Dialog,
|
|
2558
2600
|
{
|
|
2559
2601
|
open: props.setShow,
|
|
@@ -2568,17 +2610,17 @@ var ModalComponent = ({
|
|
|
2568
2610
|
scroll: "body",
|
|
2569
2611
|
slotProps: { paper: { sx: { overflowY: "unset" } } }
|
|
2570
2612
|
},
|
|
2571
|
-
/* @__PURE__ */
|
|
2613
|
+
/* @__PURE__ */ React8__default.default.createElement(material.DialogTitle, { id: "modal-title" }, /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: "flex", alignItems: "center" } }, props.title, props.onHide && props.crossAvailable && /* @__PURE__ */ React8__default.default.createElement(
|
|
2572
2614
|
material.Box,
|
|
2573
2615
|
{
|
|
2574
2616
|
sx: {
|
|
2575
2617
|
margin: "-1rem -1rem -1rem auto"
|
|
2576
2618
|
}
|
|
2577
2619
|
},
|
|
2578
|
-
/* @__PURE__ */
|
|
2620
|
+
/* @__PURE__ */ React8__default.default.createElement(material.IconButton, { "aria-label": "close", onClick: props.onHide }, /* @__PURE__ */ React8__default.default.createElement(iconsMaterial.Close, null))
|
|
2579
2621
|
))),
|
|
2580
|
-
props.children && /* @__PURE__ */
|
|
2581
|
-
/* @__PURE__ */
|
|
2622
|
+
props.children && /* @__PURE__ */ React8__default.default.createElement(material.DialogContent, { sx: { overflowY: "unset" }, id: "modal-description", dividers: props.dividers }, props.children),
|
|
2623
|
+
/* @__PURE__ */ React8__default.default.createElement(material.DialogActions, { sx: { justifyContent: props.buttonActionsAlign } }, props.cancelButton && /* @__PURE__ */ React8__default.default.createElement(
|
|
2582
2624
|
ButtonComponent,
|
|
2583
2625
|
{
|
|
2584
2626
|
disabled: props.loading,
|
|
@@ -2586,7 +2628,7 @@ var ModalComponent = ({
|
|
|
2586
2628
|
onClick: props.cancelButton.onClick ? props.cancelButton.onClick : props.onHide,
|
|
2587
2629
|
...props.cancelButton
|
|
2588
2630
|
}
|
|
2589
|
-
), props.submitButton && /* @__PURE__ */
|
|
2631
|
+
), props.submitButton && /* @__PURE__ */ React8__default.default.createElement(
|
|
2590
2632
|
ButtonComponent,
|
|
2591
2633
|
{
|
|
2592
2634
|
className: `btn-modal-submit main-background-color ${props.submitButton.className ? props.submitButton.className : ""}`,
|
|
@@ -2596,12 +2638,104 @@ var ModalComponent = ({
|
|
|
2596
2638
|
))
|
|
2597
2639
|
);
|
|
2598
2640
|
};
|
|
2641
|
+
|
|
2642
|
+
// src/components/modals/Drawers/DetailPanelComponent.scss
|
|
2643
|
+
var css17 = `.detail-panel .MuiDrawer-paper {
|
|
2644
|
+
display: flex;
|
|
2645
|
+
flex-direction: column;
|
|
2646
|
+
}
|
|
2647
|
+
.detail-panel__header {
|
|
2648
|
+
display: flex;
|
|
2649
|
+
align-items: center;
|
|
2650
|
+
justify-content: space-between;
|
|
2651
|
+
}
|
|
2652
|
+
.detail-panel__content {
|
|
2653
|
+
flex: 1;
|
|
2654
|
+
overflow-y: auto;
|
|
2655
|
+
}
|
|
2656
|
+
.detail-panel__actions {
|
|
2657
|
+
display: flex;
|
|
2658
|
+
}
|
|
2659
|
+
.detail-panel ::-webkit-scrollbar {
|
|
2660
|
+
display: block;
|
|
2661
|
+
width: 8px;
|
|
2662
|
+
}
|
|
2663
|
+
.detail-panel ::-webkit-scrollbar-thumb {
|
|
2664
|
+
border-radius: 4px;
|
|
2665
|
+
}
|
|
2666
|
+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRldGFpbFBhbmVsQ29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0U7RUFDRTtFQUNBOztBQUdGO0VBQ0U7RUFDQTtFQUNBOztBQUdGO0VBQ0U7RUFDQTs7QUFHRjtFQUNFOztBQUdGO0VBQ0U7RUFDQTs7QUFHRjtFQUNFIiwic291cmNlc0NvbnRlbnQiOlsiLmRldGFpbC1wYW5lbCB7XHJcbiAgLk11aURyYXdlci1wYXBlciB7XHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcclxuICB9XHJcblxyXG4gICZfX2hlYWRlciB7XHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcclxuICB9XHJcblxyXG4gICZfX2NvbnRlbnQge1xyXG4gICAgZmxleDogMTtcclxuICAgIG92ZXJmbG93LXk6IGF1dG87XHJcbiAgfVxyXG5cclxuICAmX19hY3Rpb25zIHtcclxuICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgfVxyXG5cclxuICA6Oi13ZWJraXQtc2Nyb2xsYmFyIHtcclxuICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgd2lkdGg6IDhweDtcclxuICB9XHJcblxyXG4gIDo6LXdlYmtpdC1zY3JvbGxiYXItdGh1bWIge1xyXG4gICAgYm9yZGVyLXJhZGl1czogNHB4O1xyXG4gIH1cclxufVxyXG4iXX0= */`;
|
|
2667
|
+
document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css17));
|
|
2668
|
+
var DetailPanelComponent = ({
|
|
2669
|
+
open,
|
|
2670
|
+
onClose,
|
|
2671
|
+
title,
|
|
2672
|
+
anchor = "left",
|
|
2673
|
+
actions,
|
|
2674
|
+
children,
|
|
2675
|
+
doublePanel = false,
|
|
2676
|
+
disableBackdropClose = false
|
|
2677
|
+
}) => {
|
|
2678
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
2679
|
+
material.Drawer,
|
|
2680
|
+
{
|
|
2681
|
+
anchor,
|
|
2682
|
+
open,
|
|
2683
|
+
onClose: (_event, reason) => {
|
|
2684
|
+
if (disableBackdropClose && reason === "backdropClick") return;
|
|
2685
|
+
onClose();
|
|
2686
|
+
},
|
|
2687
|
+
className: "detail-panel",
|
|
2688
|
+
slotProps: {
|
|
2689
|
+
paper: {
|
|
2690
|
+
sx: {
|
|
2691
|
+
width: { xs: "100%", sm: "75%" },
|
|
2692
|
+
"& ::-webkit-scrollbar-thumb": { backgroundColor: "primary.main" }
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
},
|
|
2697
|
+
/* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "detail-panel__header", sx: { px: { xs: 2, md: 3 }, py: 1.5 } }, /* @__PURE__ */ React8__default.default.createElement(material.Typography, { variant: "h6", component: "h2", noWrap: true }, title), /* @__PURE__ */ React8__default.default.createElement(material.IconButton, { "aria-label": "close", onClick: onClose }, /* @__PURE__ */ React8__default.default.createElement(iconsMaterial.Close, null))),
|
|
2698
|
+
/* @__PURE__ */ React8__default.default.createElement(material.Divider, null),
|
|
2699
|
+
/* @__PURE__ */ React8__default.default.createElement(
|
|
2700
|
+
material.Grid,
|
|
2701
|
+
{
|
|
2702
|
+
className: "detail-panel__content",
|
|
2703
|
+
sx: doublePanel ? {
|
|
2704
|
+
display: "grid",
|
|
2705
|
+
gridTemplateColumns: { xs: "1fr", md: "1fr 1fr" },
|
|
2706
|
+
gridTemplateRows: { sm: "minmax(0, 1fr)" },
|
|
2707
|
+
overflowY: { sm: "hidden" },
|
|
2708
|
+
"& > *": { p: { xs: 2, md: 3 }, overflowY: { sm: "auto" } },
|
|
2709
|
+
"& > :first-child": {
|
|
2710
|
+
borderStyle: "solid",
|
|
2711
|
+
borderColor: "divider",
|
|
2712
|
+
borderWidth: { xs: "0 0 1px 0", md: "0 1px 0 0" }
|
|
2713
|
+
}
|
|
2714
|
+
} : { p: { xs: 2, md: 3 } }
|
|
2715
|
+
},
|
|
2716
|
+
children
|
|
2717
|
+
),
|
|
2718
|
+
actions && /* @__PURE__ */ React8__default.default.createElement(React8__default.default.Fragment, null, /* @__PURE__ */ React8__default.default.createElement(material.Divider, null), /* @__PURE__ */ React8__default.default.createElement(
|
|
2719
|
+
material.Box,
|
|
2720
|
+
{
|
|
2721
|
+
className: "detail-panel__actions",
|
|
2722
|
+
sx: {
|
|
2723
|
+
px: { xs: 2, md: 3 },
|
|
2724
|
+
py: 1.5,
|
|
2725
|
+
gap: 1,
|
|
2726
|
+
justifyContent: anchor === "right" ? "flex-start" : "flex-end"
|
|
2727
|
+
}
|
|
2728
|
+
},
|
|
2729
|
+
actions
|
|
2730
|
+
))
|
|
2731
|
+
);
|
|
2732
|
+
};
|
|
2599
2733
|
var TabsComponent = (props) => {
|
|
2600
|
-
const [value, setValue] =
|
|
2734
|
+
const [value, setValue] = React8__default.default.useState(props.tabActive.toString());
|
|
2601
2735
|
const handleChange = (_event, newValue) => {
|
|
2602
2736
|
setValue(newValue);
|
|
2603
2737
|
};
|
|
2604
|
-
return /* @__PURE__ */
|
|
2738
|
+
return /* @__PURE__ */ React8__default.default.createElement(MainWrapperComponent, null, /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "tabs-component" }, /* @__PURE__ */ React8__default.default.createElement(lab.TabContext, { value }, /* @__PURE__ */ React8__default.default.createElement(lab.TabList, { onChange: handleChange }, props.tabs.sort((a, b) => a.value - b.value).map((tabLabel) => /* @__PURE__ */ React8__default.default.createElement(
|
|
2605
2739
|
material.Tab,
|
|
2606
2740
|
{
|
|
2607
2741
|
classes: { selected: "main-background-color" },
|
|
@@ -2610,7 +2744,7 @@ var TabsComponent = (props) => {
|
|
|
2610
2744
|
label: tabLabel.label,
|
|
2611
2745
|
value: tabLabel.value.toString()
|
|
2612
2746
|
}
|
|
2613
|
-
))), props.tabsComponent.sort((a, b) => a.value - b.value).map((tabComponent) => /* @__PURE__ */
|
|
2747
|
+
))), props.tabsComponent.sort((a, b) => a.value - b.value).map((tabComponent) => /* @__PURE__ */ React8__default.default.createElement(lab.TabPanel, { key: tabComponent.value, value: tabComponent.value.toString() }, tabComponent.component)))));
|
|
2614
2748
|
};
|
|
2615
2749
|
var toDayjs = (v, format) => {
|
|
2616
2750
|
if (v == null || v === "") return null;
|
|
@@ -2630,9 +2764,9 @@ var DatePickerComponent = ({
|
|
|
2630
2764
|
format,
|
|
2631
2765
|
...rest
|
|
2632
2766
|
}) => {
|
|
2633
|
-
const [value, setValue] =
|
|
2634
|
-
const [hover, setHover] =
|
|
2635
|
-
|
|
2767
|
+
const [value, setValue] = React8__default.default.useState(toDayjs(valueProp, format));
|
|
2768
|
+
const [hover, setHover] = React8__default.default.useState(false);
|
|
2769
|
+
React8.useEffect(() => {
|
|
2636
2770
|
setValue(toDayjs(valueProp, format));
|
|
2637
2771
|
}, [valueProp, format]);
|
|
2638
2772
|
const {
|
|
@@ -2647,7 +2781,7 @@ var DatePickerComponent = ({
|
|
|
2647
2781
|
onMouseLeave,
|
|
2648
2782
|
...textFieldRest
|
|
2649
2783
|
} = textField ?? {};
|
|
2650
|
-
return /* @__PURE__ */
|
|
2784
|
+
return /* @__PURE__ */ React8__default.default.createElement(material.Box, { className: "data-picker-component", sx: { width: "100%" } }, /* @__PURE__ */ React8__default.default.createElement(xDatePickers.LocalizationProvider, { dateAdapter: AdapterDayjs.AdapterDayjs }, /* @__PURE__ */ React8__default.default.createElement(
|
|
2651
2785
|
xDatePickers.DatePicker,
|
|
2652
2786
|
{
|
|
2653
2787
|
...rest,
|
|
@@ -2712,7 +2846,7 @@ var DatePickerComponent = ({
|
|
|
2712
2846
|
};
|
|
2713
2847
|
|
|
2714
2848
|
// src/components/wrappers/CardComponent/CardComponent.scss
|
|
2715
|
-
var
|
|
2849
|
+
var css18 = `.card-component {
|
|
2716
2850
|
box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08);
|
|
2717
2851
|
}
|
|
2718
2852
|
.card-component.gradiant-green {
|
|
@@ -2734,13 +2868,13 @@ var css17 = `.card-component {
|
|
|
2734
2868
|
color: white;
|
|
2735
2869
|
}
|
|
2736
2870
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNhcmRDb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJOztBQUdBO0VBQ0k7RUFDQTs7QUFFSjtFQUNJO0VBQ0E7O0FBRUo7RUFDSTtFQUNBOztBQUVKO0VBQ0k7O0FBRUo7RUFDSSIsInNvdXJjZXNDb250ZW50IjpbIi5jYXJkLWNvbXBvbmVudHtcclxuICAgIGJveC1zaGFkb3c6IDAgMXB4IDIwcHggMCByZ2IoNjkgOTAgMTAwIC8gOCUpO1xyXG4gICAgLy9iYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcclxuXHJcbiAgICAmLmdyYWRpYW50LWdyZWVue1xyXG4gICAgICAgIGJhY2tncm91bmQ6IGxpbmVhci1ncmFkaWVudCgtMTM1ZGVnLCAjMWRlOWI2LCAjMWRjNGU5KTtcclxuICAgICAgICBjb2xvcjogd2hpdGU7XHJcbiAgICB9XHJcbiAgICAmLmdyYWRpYW50LXZpb2xldHtcclxuICAgICAgICBiYWNrZ3JvdW5kOiBsaW5lYXItZ3JhZGllbnQoLTEzNWRlZywjODk5ZmQ0LCNhMzg5ZDQpO1xyXG4gICAgICAgIGNvbG9yOiB3aGl0ZTtcclxuICAgIH1cclxuICAgICYuZ3JleXtcclxuICAgICAgICBiYWNrZ3JvdW5kOiAjQTlBOUE5O1xyXG4gICAgICAgIGNvbG9yOiB3aGl0ZTtcclxuICAgIH1cclxuICAgICYubWFpbi1iYWNrZ3JvdW5kLWNvbG9ye1xyXG4gICAgICAgIGNvbG9yOiB3aGl0ZTtcclxuICAgIH1cclxuICAgIC5NdWlDaXJjdWxhclByb2dyZXNzLXJvb3R7XHJcbiAgICAgICAgY29sb3I6d2hpdGU7XHJcbiAgICB9XHJcbn0iXX0= */`;
|
|
2737
|
-
document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(
|
|
2871
|
+
document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css18));
|
|
2738
2872
|
|
|
2739
2873
|
// src/components/wrappers/CardComponent/CardComponent.tsx
|
|
2740
2874
|
var CardComponent = ({ backgroundType = "white", ...rest }) => {
|
|
2741
2875
|
const props = { backgroundType, ...rest };
|
|
2742
2876
|
const isPrimary = props.backgroundType === "primary";
|
|
2743
|
-
return /* @__PURE__ */
|
|
2877
|
+
return /* @__PURE__ */ React8__default.default.createElement(
|
|
2744
2878
|
material.Box,
|
|
2745
2879
|
{
|
|
2746
2880
|
className: `card-component ${props.onClick ? "cursor-pointer" : ""} ${isPrimary ? "" : props.backgroundType}
|
|
@@ -2751,7 +2885,7 @@ var CardComponent = ({ backgroundType = "white", ...rest }) => {
|
|
|
2751
2885
|
},
|
|
2752
2886
|
onClick: props.onClick
|
|
2753
2887
|
},
|
|
2754
|
-
/* @__PURE__ */
|
|
2888
|
+
/* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { p: 3.125, py: 3.75, height: "100%" } }, props.loading ? /* @__PURE__ */ React8__default.default.createElement(material.Box, { sx: { display: "flex", justifyContent: "center", alignItems: "center", height: "100%" } }, /* @__PURE__ */ React8__default.default.createElement(
|
|
2755
2889
|
material.CircularProgress,
|
|
2756
2890
|
{
|
|
2757
2891
|
className: `${props.backgroundType === "white" ? "circular-progress-main-color" : ""}`,
|
|
@@ -2760,6 +2894,24 @@ var CardComponent = ({ backgroundType = "white", ...rest }) => {
|
|
|
2760
2894
|
)) : props.children && props.children)
|
|
2761
2895
|
);
|
|
2762
2896
|
};
|
|
2897
|
+
var SnackbarComponent = ({
|
|
2898
|
+
open,
|
|
2899
|
+
message,
|
|
2900
|
+
onClose,
|
|
2901
|
+
severity = "info",
|
|
2902
|
+
autoHideDuration = 5e3,
|
|
2903
|
+
anchorOrigin = { vertical: "bottom", horizontal: "right" },
|
|
2904
|
+
action
|
|
2905
|
+
}) => /* @__PURE__ */ React8__default.default.createElement(
|
|
2906
|
+
material.Snackbar,
|
|
2907
|
+
{
|
|
2908
|
+
open,
|
|
2909
|
+
autoHideDuration,
|
|
2910
|
+
anchorOrigin,
|
|
2911
|
+
onClose: (_, reason) => reason !== "clickaway" && onClose()
|
|
2912
|
+
},
|
|
2913
|
+
/* @__PURE__ */ React8__default.default.createElement(material.Alert, { severity, variant: "filled", onClose, action, sx: { width: "100%" } }, message)
|
|
2914
|
+
);
|
|
2763
2915
|
|
|
2764
2916
|
// src/interfaces/search/SearchFilters.tsx
|
|
2765
2917
|
var SearchBaseDefaults = {
|
|
@@ -2770,12 +2922,14 @@ var SearchBaseDefaults = {
|
|
|
2770
2922
|
orderAsc: true
|
|
2771
2923
|
};
|
|
2772
2924
|
|
|
2925
|
+
exports.AppBreadcrumbs = AppBreadcrumbs;
|
|
2773
2926
|
exports.AppHeader = AppHeader;
|
|
2774
2927
|
exports.AppSidebar = AppSidebar;
|
|
2775
2928
|
exports.ButtonComponent = ButtonComponent;
|
|
2776
2929
|
exports.CardComponent = CardComponent;
|
|
2777
2930
|
exports.ChangePasswordForm = ChangePasswordForm;
|
|
2778
2931
|
exports.DatePickerComponent = DatePickerComponent;
|
|
2932
|
+
exports.DetailPanelComponent = DetailPanelComponent;
|
|
2779
2933
|
exports.DrawerSidebar = DrawerSidebar;
|
|
2780
2934
|
exports.GroupBy = GroupBy;
|
|
2781
2935
|
exports.LinearProgressComponent = LinearProgressComponent;
|
|
@@ -2784,6 +2938,7 @@ exports.MainLayoutSimple = MainLayoutSimple;
|
|
|
2784
2938
|
exports.MainWrapperComponent = MainWrapperComponent;
|
|
2785
2939
|
exports.ModalComponent = ModalComponent;
|
|
2786
2940
|
exports.NavigationType = NavigationType;
|
|
2941
|
+
exports.NotificationContainer = NotificationContainer;
|
|
2787
2942
|
exports.PublicFormWrapper = PublicFormWrapper;
|
|
2788
2943
|
exports.ResetPasswordForm = ResetPasswordForm;
|
|
2789
2944
|
exports.SearchBaseDefaults = SearchBaseDefaults;
|
|
@@ -2791,6 +2946,7 @@ exports.SearchComponent = SearchComponent;
|
|
|
2791
2946
|
exports.SelectAsyncField = SelectAsyncField;
|
|
2792
2947
|
exports.SelectField = SelectField;
|
|
2793
2948
|
exports.SimpleTableComponent = SimpleTableComponent;
|
|
2949
|
+
exports.SnackbarComponent = SnackbarComponent;
|
|
2794
2950
|
exports.SplitLayout = SplitLayout;
|
|
2795
2951
|
exports.TableComponent = TableComponent;
|
|
2796
2952
|
exports.TabsComponent = TabsComponent;
|
|
@@ -2798,6 +2954,7 @@ exports.TextFieldComponent = TextFieldComponent;
|
|
|
2798
2954
|
exports.TextSimpleComponent = TextSimpleComponent;
|
|
2799
2955
|
exports.UserInfo = UserInfo;
|
|
2800
2956
|
exports.VerticalNav = VerticalNav;
|
|
2957
|
+
exports.addNotification = addNotification;
|
|
2801
2958
|
exports.checkPermission = checkPermission;
|
|
2802
2959
|
exports.clearSession = clearSession;
|
|
2803
2960
|
exports.downloadFileBlob = downloadFileBlob;
|
|
@@ -2806,6 +2963,7 @@ exports.getImageByBlob = getImageByBlob;
|
|
|
2806
2963
|
exports.getJwtToken = getJwtToken;
|
|
2807
2964
|
exports.getSession = getSession;
|
|
2808
2965
|
exports.redirectDownload = redirectDownload;
|
|
2966
|
+
exports.removeNotification = removeNotification;
|
|
2809
2967
|
exports.saveSession = saveSession;
|
|
2810
2968
|
exports.toBase64 = toBase64;
|
|
2811
2969
|
exports.useIsMounted = useIsMounted;
|