@gnwebsoft/ui 2.18.24 → 2.18.26
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/{chunk-MZEAU4RQ.mjs → chunk-CCZOV6WK.mjs} +34 -3
- package/dist/{chunk-2WVVFSOJ.js → chunk-EG7YMWA5.js} +34 -3
- package/dist/{chunk-LSE3T3FT.mjs → chunk-N3AI2OIO.mjs} +39 -16
- package/dist/{chunk-ZT3DSWED.js → chunk-QA44AL2X.js} +40 -17
- package/dist/components/index.d.mts +5 -2
- package/dist/components/index.d.ts +5 -2
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/index.d.mts +247 -7
- package/dist/index.d.ts +247 -7
- package/dist/index.js +1426 -4
- package/dist/index.mjs +1424 -2
- package/dist/wrappers/index.js +2 -2
- package/dist/wrappers/index.mjs +1 -1
- package/package.json +96 -92
|
@@ -443,7 +443,13 @@ var Component4 = function TextFieldElement(props) {
|
|
|
443
443
|
error: !!error,
|
|
444
444
|
helperText: error ? error.message : helperText,
|
|
445
445
|
inputRef: handleInputRef,
|
|
446
|
-
size: "small"
|
|
446
|
+
size: "small",
|
|
447
|
+
sx: {
|
|
448
|
+
"& .MuiInputBase-input": {
|
|
449
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
450
|
+
},
|
|
451
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
452
|
+
}
|
|
447
453
|
}
|
|
448
454
|
);
|
|
449
455
|
};
|
|
@@ -694,6 +700,7 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
694
700
|
getOptionKey: (option) => option.Value,
|
|
695
701
|
isOptionEqualToValue: (option, val) => option.Value === val.Value,
|
|
696
702
|
autoComplete: true,
|
|
703
|
+
disabled,
|
|
697
704
|
includeInputInList: true,
|
|
698
705
|
options,
|
|
699
706
|
value: selectedOption,
|
|
@@ -718,6 +725,12 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
718
725
|
params.InputProps.endAdornment
|
|
719
726
|
] })
|
|
720
727
|
}
|
|
728
|
+
},
|
|
729
|
+
sx: {
|
|
730
|
+
"& .MuiInputBase-input": {
|
|
731
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
732
|
+
},
|
|
733
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
721
734
|
}
|
|
722
735
|
}
|
|
723
736
|
),
|
|
@@ -902,6 +915,12 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
902
915
|
params.InputProps.endAdornment
|
|
903
916
|
] })
|
|
904
917
|
}
|
|
918
|
+
},
|
|
919
|
+
sx: {
|
|
920
|
+
"& .MuiInputBase-input": {
|
|
921
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
922
|
+
},
|
|
923
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
905
924
|
}
|
|
906
925
|
}
|
|
907
926
|
),
|
|
@@ -1003,7 +1022,13 @@ var Component8 = function SelectElement(props) {
|
|
|
1003
1022
|
helperText: error ? error.message : "",
|
|
1004
1023
|
placeholder,
|
|
1005
1024
|
label,
|
|
1006
|
-
variant: "outlined"
|
|
1025
|
+
variant: "outlined",
|
|
1026
|
+
sx: {
|
|
1027
|
+
"& .MuiInputBase-input": {
|
|
1028
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
1029
|
+
},
|
|
1030
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1031
|
+
}
|
|
1007
1032
|
}
|
|
1008
1033
|
)
|
|
1009
1034
|
}
|
|
@@ -1204,7 +1229,13 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1204
1229
|
helperText: error ? error.message : "",
|
|
1205
1230
|
placeholder,
|
|
1206
1231
|
label,
|
|
1207
|
-
variant: "outlined"
|
|
1232
|
+
variant: "outlined",
|
|
1233
|
+
sx: {
|
|
1234
|
+
"& .MuiInputBase-input": {
|
|
1235
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
1236
|
+
},
|
|
1237
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1238
|
+
}
|
|
1208
1239
|
}
|
|
1209
1240
|
)
|
|
1210
1241
|
}
|
|
@@ -443,7 +443,13 @@ var Component4 = function TextFieldElement(props) {
|
|
|
443
443
|
error: !!error,
|
|
444
444
|
helperText: error ? error.message : helperText,
|
|
445
445
|
inputRef: handleInputRef,
|
|
446
|
-
size: "small"
|
|
446
|
+
size: "small",
|
|
447
|
+
sx: {
|
|
448
|
+
"& .MuiInputBase-input": {
|
|
449
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
450
|
+
},
|
|
451
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
452
|
+
}
|
|
447
453
|
}
|
|
448
454
|
);
|
|
449
455
|
};
|
|
@@ -694,6 +700,7 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
694
700
|
getOptionKey: (option) => option.Value,
|
|
695
701
|
isOptionEqualToValue: (option, val) => option.Value === val.Value,
|
|
696
702
|
autoComplete: true,
|
|
703
|
+
disabled,
|
|
697
704
|
includeInputInList: true,
|
|
698
705
|
options,
|
|
699
706
|
value: selectedOption,
|
|
@@ -718,6 +725,12 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
718
725
|
params.InputProps.endAdornment
|
|
719
726
|
] })
|
|
720
727
|
}
|
|
728
|
+
},
|
|
729
|
+
sx: {
|
|
730
|
+
"& .MuiInputBase-input": {
|
|
731
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
732
|
+
},
|
|
733
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
721
734
|
}
|
|
722
735
|
}
|
|
723
736
|
),
|
|
@@ -902,6 +915,12 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
902
915
|
params.InputProps.endAdornment
|
|
903
916
|
] })
|
|
904
917
|
}
|
|
918
|
+
},
|
|
919
|
+
sx: {
|
|
920
|
+
"& .MuiInputBase-input": {
|
|
921
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
922
|
+
},
|
|
923
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
905
924
|
}
|
|
906
925
|
}
|
|
907
926
|
),
|
|
@@ -1003,7 +1022,13 @@ var Component8 = function SelectElement(props) {
|
|
|
1003
1022
|
helperText: error ? error.message : "",
|
|
1004
1023
|
placeholder,
|
|
1005
1024
|
label,
|
|
1006
|
-
variant: "outlined"
|
|
1025
|
+
variant: "outlined",
|
|
1026
|
+
sx: {
|
|
1027
|
+
"& .MuiInputBase-input": {
|
|
1028
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
1029
|
+
},
|
|
1030
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1031
|
+
}
|
|
1007
1032
|
}
|
|
1008
1033
|
)
|
|
1009
1034
|
}
|
|
@@ -1204,7 +1229,13 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1204
1229
|
helperText: error ? error.message : "",
|
|
1205
1230
|
placeholder,
|
|
1206
1231
|
label,
|
|
1207
|
-
variant: "outlined"
|
|
1232
|
+
variant: "outlined",
|
|
1233
|
+
sx: {
|
|
1234
|
+
"& .MuiInputBase-input": {
|
|
1235
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
1236
|
+
},
|
|
1237
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1238
|
+
}
|
|
1208
1239
|
}
|
|
1209
1240
|
)
|
|
1210
1241
|
}
|
|
@@ -11,7 +11,12 @@ import { LoadingButton } from "@mui/lab";
|
|
|
11
11
|
import { Badge } from "@mui/material";
|
|
12
12
|
import FilterAltIcon from "@mui/icons-material/FilterAlt";
|
|
13
13
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
14
|
-
var FilterButton = ({
|
|
14
|
+
var FilterButton = ({
|
|
15
|
+
isSubmitting,
|
|
16
|
+
show,
|
|
17
|
+
title,
|
|
18
|
+
icon
|
|
19
|
+
}) => {
|
|
15
20
|
return /* @__PURE__ */ jsx2(
|
|
16
21
|
LoadingButton,
|
|
17
22
|
{
|
|
@@ -20,9 +25,13 @@ var FilterButton = ({ isSubmitting, show }) => {
|
|
|
20
25
|
loading: isSubmitting,
|
|
21
26
|
disabled: !show,
|
|
22
27
|
disableRipple: true,
|
|
23
|
-
sx: {
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
sx: {
|
|
29
|
+
bgcolor: "#3caed7 !important",
|
|
30
|
+
display: "flex",
|
|
31
|
+
alignItems: "center"
|
|
32
|
+
},
|
|
33
|
+
startIcon: /* @__PURE__ */ jsx2(Badge, { color: "error", variant: "standard", children: icon ? icon : /* @__PURE__ */ jsx2(FilterAltIcon, { width: "20", height: "20" }) }),
|
|
34
|
+
children: title?.trim() === "" || !title ? "Filter" : title
|
|
26
35
|
}
|
|
27
36
|
);
|
|
28
37
|
};
|
|
@@ -212,7 +221,8 @@ var ListWrapper = ({
|
|
|
212
221
|
children,
|
|
213
222
|
title,
|
|
214
223
|
count,
|
|
215
|
-
show = true
|
|
224
|
+
show = true,
|
|
225
|
+
actionButton
|
|
216
226
|
}) => {
|
|
217
227
|
if (!show) return /* @__PURE__ */ jsx6(Fragment, {});
|
|
218
228
|
return /* @__PURE__ */ jsxs4(
|
|
@@ -236,17 +246,30 @@ var ListWrapper = ({
|
|
|
236
246
|
},
|
|
237
247
|
alignItems: "center"
|
|
238
248
|
},
|
|
239
|
-
title: /* @__PURE__ */ jsxs4(
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
249
|
+
title: /* @__PURE__ */ jsxs4(
|
|
250
|
+
Box2,
|
|
251
|
+
{
|
|
252
|
+
sx: {
|
|
253
|
+
display: "flex",
|
|
254
|
+
alignItems: "center",
|
|
255
|
+
justifyContent: "space-between"
|
|
256
|
+
},
|
|
257
|
+
children: [
|
|
258
|
+
/* @__PURE__ */ jsxs4(Box2, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
259
|
+
/* @__PURE__ */ jsx6(ManageSearchIcon2, { sx: { color: "#4db3a2", height: "2.5rem" } }),
|
|
260
|
+
/* @__PURE__ */ jsx6(
|
|
261
|
+
Typography4,
|
|
262
|
+
{
|
|
263
|
+
variant: "h5",
|
|
264
|
+
sx: { color: "#4db3a2", fontWeight: "bold" },
|
|
265
|
+
children: `${title} (${count ? count : 0})`
|
|
266
|
+
}
|
|
267
|
+
)
|
|
268
|
+
] }),
|
|
269
|
+
actionButton
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
)
|
|
250
273
|
}
|
|
251
274
|
),
|
|
252
275
|
/* @__PURE__ */ jsx6(Divider3, {}),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/components/ClearButton/ClearButton.tsx
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/components/ClearButton/ClearButton.tsx
|
|
2
2
|
var _material = require('@mui/material');
|
|
3
3
|
var _jsxruntime = require('react/jsx-runtime');
|
|
4
4
|
var ClearButton = ({ isSubmitting, handleClear }) => {
|
|
@@ -11,7 +11,12 @@ var _lab = require('@mui/lab');
|
|
|
11
11
|
|
|
12
12
|
var _FilterAlt = require('@mui/icons-material/FilterAlt'); var _FilterAlt2 = _interopRequireDefault(_FilterAlt);
|
|
13
13
|
|
|
14
|
-
var FilterButton = ({
|
|
14
|
+
var FilterButton = ({
|
|
15
|
+
isSubmitting,
|
|
16
|
+
show,
|
|
17
|
+
title,
|
|
18
|
+
icon
|
|
19
|
+
}) => {
|
|
15
20
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16
21
|
_lab.LoadingButton,
|
|
17
22
|
{
|
|
@@ -20,9 +25,13 @@ var FilterButton = ({ isSubmitting, show }) => {
|
|
|
20
25
|
loading: isSubmitting,
|
|
21
26
|
disabled: !show,
|
|
22
27
|
disableRipple: true,
|
|
23
|
-
sx: {
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
sx: {
|
|
29
|
+
bgcolor: "#3caed7 !important",
|
|
30
|
+
display: "flex",
|
|
31
|
+
alignItems: "center"
|
|
32
|
+
},
|
|
33
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Badge, { color: "error", variant: "standard", children: icon ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FilterAlt2.default, { width: "20", height: "20" }) }),
|
|
34
|
+
children: _optionalChain([title, 'optionalAccess', _ => _.trim, 'call', _2 => _2()]) === "" || !title ? "Filter" : title
|
|
26
35
|
}
|
|
27
36
|
);
|
|
28
37
|
};
|
|
@@ -212,7 +221,8 @@ var ListWrapper = ({
|
|
|
212
221
|
children,
|
|
213
222
|
title,
|
|
214
223
|
count,
|
|
215
|
-
show = true
|
|
224
|
+
show = true,
|
|
225
|
+
actionButton
|
|
216
226
|
}) => {
|
|
217
227
|
if (!show) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
218
228
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -236,17 +246,30 @@ var ListWrapper = ({
|
|
|
236
246
|
},
|
|
237
247
|
alignItems: "center"
|
|
238
248
|
},
|
|
239
|
-
title: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
249
|
+
title: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
250
|
+
_material.Box,
|
|
251
|
+
{
|
|
252
|
+
sx: {
|
|
253
|
+
display: "flex",
|
|
254
|
+
alignItems: "center",
|
|
255
|
+
justifyContent: "space-between"
|
|
256
|
+
},
|
|
257
|
+
children: [
|
|
258
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Box, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
259
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ManageSearch2.default, { sx: { color: "#4db3a2", height: "2.5rem" } }),
|
|
260
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
261
|
+
_material.Typography,
|
|
262
|
+
{
|
|
263
|
+
variant: "h5",
|
|
264
|
+
sx: { color: "#4db3a2", fontWeight: "bold" },
|
|
265
|
+
children: `${title} (${count ? count : 0})`
|
|
266
|
+
}
|
|
267
|
+
)
|
|
268
|
+
] }),
|
|
269
|
+
actionButton
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
)
|
|
250
273
|
}
|
|
251
274
|
),
|
|
252
275
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Divider, {}),
|
|
@@ -12,8 +12,10 @@ declare const ClearButton: ({ isSubmitting, handleClear }: ClearButtonProps) =>
|
|
|
12
12
|
type FilterButtonProps = {
|
|
13
13
|
isSubmitting: boolean;
|
|
14
14
|
show?: boolean;
|
|
15
|
+
title?: string;
|
|
16
|
+
icon?: React.ReactNode;
|
|
15
17
|
};
|
|
16
|
-
declare const FilterButton: ({ isSubmitting, show }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare const FilterButton: ({ isSubmitting, show, title, icon, }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
|
|
17
19
|
|
|
18
20
|
type FilterWrapperProps = PropsWithChildren<{
|
|
19
21
|
title: string;
|
|
@@ -53,8 +55,9 @@ type ListWrapperProps = PropsWithChildren<{
|
|
|
53
55
|
title: string;
|
|
54
56
|
count: number;
|
|
55
57
|
show?: boolean;
|
|
58
|
+
actionButton?: React.ReactNode;
|
|
56
59
|
}>;
|
|
57
|
-
declare const ListWrapper: ({ children, title, count, show, }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
60
|
+
declare const ListWrapper: ({ children, title, count, show, actionButton, }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
58
61
|
|
|
59
62
|
declare const SimpleToolbar: () => react_jsx_runtime.JSX.Element;
|
|
60
63
|
|
|
@@ -12,8 +12,10 @@ declare const ClearButton: ({ isSubmitting, handleClear }: ClearButtonProps) =>
|
|
|
12
12
|
type FilterButtonProps = {
|
|
13
13
|
isSubmitting: boolean;
|
|
14
14
|
show?: boolean;
|
|
15
|
+
title?: string;
|
|
16
|
+
icon?: React.ReactNode;
|
|
15
17
|
};
|
|
16
|
-
declare const FilterButton: ({ isSubmitting, show }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare const FilterButton: ({ isSubmitting, show, title, icon, }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
|
|
17
19
|
|
|
18
20
|
type FilterWrapperProps = PropsWithChildren<{
|
|
19
21
|
title: string;
|
|
@@ -53,8 +55,9 @@ type ListWrapperProps = PropsWithChildren<{
|
|
|
53
55
|
title: string;
|
|
54
56
|
count: number;
|
|
55
57
|
show?: boolean;
|
|
58
|
+
actionButton?: React.ReactNode;
|
|
56
59
|
}>;
|
|
57
|
-
declare const ListWrapper: ({ children, title, count, show, }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
60
|
+
declare const ListWrapper: ({ children, title, count, show, actionButton, }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
58
61
|
|
|
59
62
|
declare const SimpleToolbar: () => react_jsx_runtime.JSX.Element;
|
|
60
63
|
|
package/dist/components/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkQA44AL2Xjs = require('../chunk-QA44AL2X.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -19,4 +19,4 @@ var _chunkZT3DSWEDjs = require('../chunk-ZT3DSWED.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.AuthorizedView =
|
|
22
|
+
exports.AuthorizedView = _chunkQA44AL2Xjs.AuthorizedView_default; exports.ClearButton = _chunkQA44AL2Xjs.ClearButton_default; exports.FilterButton = _chunkQA44AL2Xjs.FilterButton_default; exports.FilterWrapper = _chunkQA44AL2Xjs.FilterWrapper_default; exports.FormWrapper = _chunkQA44AL2Xjs.FormWrapper_default; exports.LabelText = _chunkQA44AL2Xjs.LabelText_default; exports.ListWrapper = _chunkQA44AL2Xjs.ListWrapper_default; exports.SimpleButton = _chunkQA44AL2Xjs.SimpleButton_default; exports.SimpleToolbar = _chunkQA44AL2Xjs.SimpleToolbar_default;
|