@majoo-ui/react 1.52.2 → 1.52.3
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/components/pageDialog/PageDialog.d.ts +4 -0
- package/components/table/Table.d.ts +5 -1
- package/index.esm.css +0 -1
- package/index.esm.js +74 -36
- package/index.umd.css +0 -1
- package/index.umd.js +59 -23
- package/package.json +1 -1
|
@@ -398,6 +398,10 @@ interface PageDialogProps extends IDialog, DialogContentProps {
|
|
|
398
398
|
onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
|
|
399
399
|
onPointerDownOutside?: (event: PointerDownOutsideEvent) => void;
|
|
400
400
|
onInteractOutside?: (event: PointerDownOutsideEvent | FocusOutsideEvent) => void;
|
|
401
|
+
/**
|
|
402
|
+
* If true, the close button is disabled
|
|
403
|
+
*/
|
|
404
|
+
disabledCloseButton?: boolean;
|
|
401
405
|
}
|
|
402
406
|
/**
|
|
403
407
|
* PageDialog are used to focus and display content that contains one specific task that requires interaction from the user and is separate from the main page.
|
|
@@ -1201,8 +1201,12 @@ export interface TableProps {
|
|
|
1201
1201
|
* Additional style to customize one of the rows based on the specified condition
|
|
1202
1202
|
*/
|
|
1203
1203
|
customRowsStyle?: (e: any) => CustomRowsStyle[];
|
|
1204
|
+
/**
|
|
1205
|
+
* Override isMobile condition
|
|
1206
|
+
*/
|
|
1207
|
+
isMobileLayout?: boolean;
|
|
1204
1208
|
}
|
|
1205
|
-
export declare function Table({ columns, data, keyId, pageIndex: controlledPageIndex, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, isLoading, css, headerCss, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, hiddenColumns, columnOrder, customRowsStyle, }: TableProps): JSX.Element;
|
|
1209
|
+
export declare function Table({ columns, data, keyId, pageIndex: controlledPageIndex, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, isLoading, css, headerCss, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, hiddenColumns, columnOrder, customRowsStyle, isMobileLayout }: TableProps): JSX.Element;
|
|
1206
1210
|
export interface TableColumnProps {
|
|
1207
1211
|
/**
|
|
1208
1212
|
* Required if accessor is a function<br/>
|
package/index.esm.css
CHANGED
package/index.esm.js
CHANGED
|
@@ -17196,7 +17196,8 @@ function Table({
|
|
|
17196
17196
|
rowGroup,
|
|
17197
17197
|
hiddenColumns,
|
|
17198
17198
|
columnOrder,
|
|
17199
|
-
customRowsStyle
|
|
17199
|
+
customRowsStyle,
|
|
17200
|
+
isMobileLayout
|
|
17200
17201
|
}) {
|
|
17201
17202
|
const [limit, setLimit] = useState(rowLimit);
|
|
17202
17203
|
|
|
@@ -17264,7 +17265,7 @@ function Table({
|
|
|
17264
17265
|
};
|
|
17265
17266
|
|
|
17266
17267
|
const scrollerRef = useRef(null);
|
|
17267
|
-
const isMobile = useMediaQuery('(max-width: 1024px)');
|
|
17268
|
+
const isMobile = useMediaQuery(isMobileLayout === undefined ? '(max-width: 1024px)' : isMobileLayout ? '(max-width: 8000px)' : '(max-width: 0px)');
|
|
17268
17269
|
|
|
17269
17270
|
const renderFooter = () => jsx(Pagination, {
|
|
17270
17271
|
limit: pageSize,
|
|
@@ -17528,13 +17529,14 @@ const TableColumn = _a => {
|
|
|
17528
17529
|
var _jsxFileName$f = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\table\\components\\columns\\DateColumn.js";
|
|
17529
17530
|
|
|
17530
17531
|
const DateColumn = ({
|
|
17531
|
-
value
|
|
17532
|
+
value,
|
|
17533
|
+
customFormat
|
|
17532
17534
|
}) => {
|
|
17533
17535
|
let dateTime = '-';
|
|
17534
|
-
const
|
|
17536
|
+
const format = customFormat || 'DD MMMM YYYY';
|
|
17535
17537
|
|
|
17536
17538
|
if (value && moment(value, 'YYYYMMDDHHmmss').isValid()) {
|
|
17537
|
-
dateTime = moment(value, 'YYYYMMDDHHmmss').locale('id').format(
|
|
17539
|
+
dateTime = moment(value, 'YYYYMMDDHHmmss').locale('id').format(format);
|
|
17538
17540
|
}
|
|
17539
17541
|
|
|
17540
17542
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -18605,9 +18607,10 @@ const PageDialog = props => {
|
|
|
18605
18607
|
onOpenAutoFocus,
|
|
18606
18608
|
onCloseAutoFocus,
|
|
18607
18609
|
onPointerDownOutside,
|
|
18608
|
-
onInteractOutside
|
|
18610
|
+
onInteractOutside,
|
|
18611
|
+
disabledCloseButton
|
|
18609
18612
|
} = props,
|
|
18610
|
-
rest = __rest(props, ["children", "size", "css", "layer", "isMobile", "onOpenAutoFocus", "onCloseAutoFocus", "onPointerDownOutside", "onInteractOutside"]);
|
|
18613
|
+
rest = __rest(props, ["children", "size", "css", "layer", "isMobile", "onOpenAutoFocus", "onCloseAutoFocus", "onPointerDownOutside", "onInteractOutside", "disabledCloseButton"]);
|
|
18611
18614
|
|
|
18612
18615
|
const childArray = React__default.Children.toArray(children);
|
|
18613
18616
|
const footerChildren = findNodeChild(childArray, 'PageDialogFooter');
|
|
@@ -18692,8 +18695,13 @@ const PageDialog = props => {
|
|
|
18692
18695
|
gap: '$cozy'
|
|
18693
18696
|
}
|
|
18694
18697
|
}, {
|
|
18695
|
-
children: [!isMobile && jsx(
|
|
18696
|
-
|
|
18698
|
+
children: [!isMobile && jsx(ConditionalWrapper, Object.assign({
|
|
18699
|
+
condition: !disabledCloseButton,
|
|
18700
|
+
wrapper: children => jsx(DialogClose, Object.assign({
|
|
18701
|
+
asChild: true
|
|
18702
|
+
}, {
|
|
18703
|
+
children: children
|
|
18704
|
+
}), void 0)
|
|
18697
18705
|
}, {
|
|
18698
18706
|
children: jsx(Box, Object.assign({
|
|
18699
18707
|
css: {
|
|
@@ -18704,7 +18712,7 @@ const PageDialog = props => {
|
|
|
18704
18712
|
alignItems: 'center',
|
|
18705
18713
|
backgroundColor: '$gray150',
|
|
18706
18714
|
borderRadius: '$lg',
|
|
18707
|
-
cursor: 'pointer'
|
|
18715
|
+
cursor: disabledCloseButton ? 'not-allowed' : 'pointer'
|
|
18708
18716
|
}
|
|
18709
18717
|
}, {
|
|
18710
18718
|
children: jsx(CloseOutline, {
|
|
@@ -18721,15 +18729,20 @@ const PageDialog = props => {
|
|
|
18721
18729
|
as: "p",
|
|
18722
18730
|
heading: "pageTitle"
|
|
18723
18731
|
}, headerTitle.props), void 0)
|
|
18724
|
-
}), void 0), isMobile && jsx(
|
|
18725
|
-
|
|
18732
|
+
}), void 0), isMobile && jsx(ConditionalWrapper, Object.assign({
|
|
18733
|
+
condition: !disabledCloseButton,
|
|
18734
|
+
wrapper: children => jsx(DialogClose, Object.assign({
|
|
18735
|
+
asChild: true
|
|
18736
|
+
}, {
|
|
18737
|
+
children: children
|
|
18738
|
+
}), void 0)
|
|
18726
18739
|
}, {
|
|
18727
18740
|
children: jsx(Box, Object.assign({
|
|
18728
18741
|
css: {
|
|
18729
18742
|
display: 'flex',
|
|
18730
18743
|
justifyContent: 'center',
|
|
18731
18744
|
alignItems: 'center',
|
|
18732
|
-
cursor: 'pointer'
|
|
18745
|
+
cursor: disabledCloseButton ? 'not-allowed' : 'pointer'
|
|
18733
18746
|
}
|
|
18734
18747
|
}, {
|
|
18735
18748
|
children: jsx(CloseOutline, {
|
|
@@ -22950,7 +22963,7 @@ const Device = props => {
|
|
|
22950
22963
|
border: 'none',
|
|
22951
22964
|
width: '100%',
|
|
22952
22965
|
height: '100%',
|
|
22953
|
-
|
|
22966
|
+
overflow: 'hidden',
|
|
22954
22967
|
zIndex: 1
|
|
22955
22968
|
}
|
|
22956
22969
|
}, {
|
|
@@ -23021,7 +23034,7 @@ const Device = props => {
|
|
|
23021
23034
|
border: 'none',
|
|
23022
23035
|
width: '100%',
|
|
23023
23036
|
height: '100%',
|
|
23024
|
-
|
|
23037
|
+
overflow: 'hidden',
|
|
23025
23038
|
zIndex: 1
|
|
23026
23039
|
}
|
|
23027
23040
|
}, {
|
|
@@ -23076,7 +23089,7 @@ const Device = props => {
|
|
|
23076
23089
|
border: 'none',
|
|
23077
23090
|
width: '100%',
|
|
23078
23091
|
height: '100%',
|
|
23079
|
-
|
|
23092
|
+
overflow: 'hidden',
|
|
23080
23093
|
zIndex: 1
|
|
23081
23094
|
}
|
|
23082
23095
|
}, {
|
|
@@ -23186,7 +23199,7 @@ const Device = props => {
|
|
|
23186
23199
|
border: 'none',
|
|
23187
23200
|
width: '100%',
|
|
23188
23201
|
height: '100%',
|
|
23189
|
-
|
|
23202
|
+
overflow: 'hidden',
|
|
23190
23203
|
zIndex: 1,
|
|
23191
23204
|
position: 'relative'
|
|
23192
23205
|
}
|
|
@@ -23300,7 +23313,7 @@ const Device = props => {
|
|
|
23300
23313
|
style: {
|
|
23301
23314
|
width: props.size ? props.size : undefined,
|
|
23302
23315
|
position: 'relative',
|
|
23303
|
-
zIndex: 2
|
|
23316
|
+
zIndex: withComponent ? 1 : 2
|
|
23304
23317
|
},
|
|
23305
23318
|
src: properties.typeDevice,
|
|
23306
23319
|
alt: "device-preview"
|
|
@@ -23330,7 +23343,7 @@ const Device = props => {
|
|
|
23330
23343
|
width: '100%',
|
|
23331
23344
|
height: '100%',
|
|
23332
23345
|
overflowY: 'auto',
|
|
23333
|
-
zIndex:
|
|
23346
|
+
zIndex: 3
|
|
23334
23347
|
}
|
|
23335
23348
|
}, {
|
|
23336
23349
|
children: props.children
|
|
@@ -27213,19 +27226,26 @@ function EditableTableMobile(props) {
|
|
|
27213
27226
|
}, {
|
|
27214
27227
|
children: jsxs(TableContent$2, Object.assign({}, getTableProps(), {
|
|
27215
27228
|
children: [jsx(TableHead$2, {
|
|
27216
|
-
children: headerGroups.map((headerGroup, index) =>
|
|
27217
|
-
|
|
27218
|
-
|
|
27219
|
-
|
|
27220
|
-
|
|
27221
|
-
|
|
27222
|
-
|
|
27223
|
-
|
|
27224
|
-
|
|
27225
|
-
|
|
27226
|
-
|
|
27227
|
-
|
|
27228
|
-
|
|
27229
|
+
children: headerGroups.map((headerGroup, index) => {
|
|
27230
|
+
const visibleHeaders = headerGroup.headers.filter(column => {
|
|
27231
|
+
var _a;
|
|
27232
|
+
|
|
27233
|
+
return typeof (column === null || column === void 0 ? void 0 : column.hidden) === 'boolean' ? !(column === null || column === void 0 ? void 0 : column.hidden) : !((_a = column === null || column === void 0 ? void 0 : column.hidden) === null || _a === void 0 ? void 0 : _a.call(column, column));
|
|
27234
|
+
});
|
|
27235
|
+
return /*#__PURE__*/createElement$2(TableHeadRow$2, Object.assign({}, headerGroup.getHeaderGroupProps(), {
|
|
27236
|
+
key: index
|
|
27237
|
+
}), visibleHeaders.map((column, index) => (column === null || column === void 0 ? void 0 : column.isMobileHeader) && /*#__PURE__*/createElement$2(TableHeadCell$2, Object.assign({}, column.getHeaderProps({
|
|
27238
|
+
style: {
|
|
27239
|
+
minWidth: column.minWidth,
|
|
27240
|
+
width: column.width,
|
|
27241
|
+
maxWidth: column.maxWidth
|
|
27242
|
+
}
|
|
27243
|
+
}), {
|
|
27244
|
+
key: index
|
|
27245
|
+
}), column.render('Header'), (column === null || column === void 0 ? void 0 : column.isRequired) ? jsx(Required$2, {
|
|
27246
|
+
children: "*"
|
|
27247
|
+
}, void 0) : '')));
|
|
27248
|
+
})
|
|
27229
27249
|
}, void 0), jsx(TableBody$2, Object.assign({}, getTableBodyProps(), {
|
|
27230
27250
|
children: rows.map((row, index) => {
|
|
27231
27251
|
prepareRow(row);
|
|
@@ -27280,7 +27300,11 @@ function EditableTableMobile(props) {
|
|
|
27280
27300
|
borderTop: '1pt solid $bgBorder'
|
|
27281
27301
|
}
|
|
27282
27302
|
}, {
|
|
27283
|
-
children: row.cells.
|
|
27303
|
+
children: row.cells.filter(cell => {
|
|
27304
|
+
var _a, _b, _c, _d;
|
|
27305
|
+
|
|
27306
|
+
return typeof ((_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.hidden) === 'boolean' ? !((_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.hidden) : !((_d = (_c = cell === null || cell === void 0 ? void 0 : cell.column) === null || _c === void 0 ? void 0 : _c.hidden) === null || _d === void 0 ? void 0 : _d.call(_c, cell));
|
|
27307
|
+
}).map((cell, index) => {
|
|
27284
27308
|
var _a, _b;
|
|
27285
27309
|
|
|
27286
27310
|
const headerRender = (_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.Header;
|
|
@@ -27672,7 +27696,11 @@ function EditableTable(props) {
|
|
|
27672
27696
|
children: jsxs(TableContent$1, Object.assign({}, getTableProps(), {
|
|
27673
27697
|
children: [jsx(TableHead$1, {
|
|
27674
27698
|
children: headerGroups.map(headerGroup => {
|
|
27675
|
-
const visibleHeaders = headerGroup.headers.filter(column =>
|
|
27699
|
+
const visibleHeaders = headerGroup.headers.filter(column => {
|
|
27700
|
+
var _a;
|
|
27701
|
+
|
|
27702
|
+
return !(column === null || column === void 0 ? void 0 : column.isSubRow) && (typeof (column === null || column === void 0 ? void 0 : column.hidden) === 'boolean' ? !(column === null || column === void 0 ? void 0 : column.hidden) : !((_a = column === null || column === void 0 ? void 0 : column.hidden) === null || _a === void 0 ? void 0 : _a.call(column, column)));
|
|
27703
|
+
});
|
|
27676
27704
|
return jsx(TableHeadRow$1, Object.assign({}, headerGroup.getHeaderGroupProps(), {
|
|
27677
27705
|
children: visibleHeaders.map(column => !(column === null || column === void 0 ? void 0 : column.isMobileOnly) && jsxs(TableHeadCell$1, Object.assign({}, column.getHeaderProps({
|
|
27678
27706
|
style: {
|
|
@@ -27717,7 +27745,11 @@ function EditableTable(props) {
|
|
|
27717
27745
|
}, void 0) : jsx(TableRow$1, Object.assign({
|
|
27718
27746
|
css: customStyle
|
|
27719
27747
|
}, row.getRowProps(), {
|
|
27720
|
-
children: row.cells.filter(cell =>
|
|
27748
|
+
children: row.cells.filter(cell => {
|
|
27749
|
+
var _a, _b, _c, _d, _e;
|
|
27750
|
+
|
|
27751
|
+
return !((_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.isSubRow) && (typeof ((_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.hidden) === 'boolean' ? !((_c = cell === null || cell === void 0 ? void 0 : cell.column) === null || _c === void 0 ? void 0 : _c.hidden) : !((_e = (_d = cell === null || cell === void 0 ? void 0 : cell.column) === null || _d === void 0 ? void 0 : _d.hidden) === null || _e === void 0 ? void 0 : _e.call(_d, cell)));
|
|
27752
|
+
}).map(cell => {
|
|
27721
27753
|
var _a;
|
|
27722
27754
|
|
|
27723
27755
|
return !((_a = cell.column) === null || _a === void 0 ? void 0 : _a.isMobileOnly) && jsx(TableCell$1, Object.assign({}, cell.getCellProps({
|
|
@@ -30092,7 +30124,13 @@ function ContentEditor(props) {
|
|
|
30092
30124
|
options: ['Inter', 'Roboto', 'Poppins', 'Tinos', 'Montserrat']
|
|
30093
30125
|
},
|
|
30094
30126
|
image: {
|
|
30095
|
-
uploadCallback: uploadCallback
|
|
30127
|
+
uploadCallback: uploadCallback,
|
|
30128
|
+
previewImage: true,
|
|
30129
|
+
alt: {
|
|
30130
|
+
present: true,
|
|
30131
|
+
mandatory: false
|
|
30132
|
+
},
|
|
30133
|
+
inputAccept: 'image/gif,image/jpeg,image/jpg,image/png,image/svg'
|
|
30096
30134
|
}
|
|
30097
30135
|
};
|
|
30098
30136
|
return jsxs(Container, Object.assign({
|
package/index.umd.css
CHANGED
package/index.umd.js
CHANGED
|
@@ -17495,7 +17495,8 @@
|
|
|
17495
17495
|
rowGroup = _a.rowGroup,
|
|
17496
17496
|
hiddenColumns = _a.hiddenColumns,
|
|
17497
17497
|
columnOrder = _a.columnOrder,
|
|
17498
|
-
customRowsStyle = _a.customRowsStyle
|
|
17498
|
+
customRowsStyle = _a.customRowsStyle,
|
|
17499
|
+
isMobileLayout = _a.isMobileLayout;
|
|
17499
17500
|
|
|
17500
17501
|
var _o = React.useState(rowLimit),
|
|
17501
17502
|
limit = _o[0],
|
|
@@ -17572,7 +17573,7 @@
|
|
|
17572
17573
|
};
|
|
17573
17574
|
|
|
17574
17575
|
var scrollerRef = React.useRef(null);
|
|
17575
|
-
var isMobile = useMediaQuery('(max-width: 1024px)');
|
|
17576
|
+
var isMobile = useMediaQuery(isMobileLayout === undefined ? '(max-width: 1024px)' : isMobileLayout ? '(max-width: 8000px)' : '(max-width: 0px)');
|
|
17576
17577
|
|
|
17577
17578
|
var renderFooter = function renderFooter() {
|
|
17578
17579
|
return jsxRuntime.jsx(Pagination, {
|
|
@@ -17865,13 +17866,14 @@
|
|
|
17865
17866
|
var _jsxFileName$f = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\table\\components\\columns\\DateColumn.js";
|
|
17866
17867
|
|
|
17867
17868
|
const DateColumn = ({
|
|
17868
|
-
value
|
|
17869
|
+
value,
|
|
17870
|
+
customFormat
|
|
17869
17871
|
}) => {
|
|
17870
17872
|
let dateTime = '-';
|
|
17871
|
-
const
|
|
17873
|
+
const format = customFormat || 'DD MMMM YYYY';
|
|
17872
17874
|
|
|
17873
17875
|
if (value && moment__default["default"](value, 'YYYYMMDDHHmmss').isValid()) {
|
|
17874
|
-
dateTime = moment__default["default"](value, 'YYYYMMDDHHmmss').locale('id').format(
|
|
17876
|
+
dateTime = moment__default["default"](value, 'YYYYMMDDHHmmss').locale('id').format(format);
|
|
17875
17877
|
}
|
|
17876
17878
|
|
|
17877
17879
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -18942,7 +18944,8 @@
|
|
|
18942
18944
|
onCloseAutoFocus = props.onCloseAutoFocus,
|
|
18943
18945
|
onPointerDownOutside = props.onPointerDownOutside,
|
|
18944
18946
|
onInteractOutside = props.onInteractOutside,
|
|
18945
|
-
|
|
18947
|
+
disabledCloseButton = props.disabledCloseButton,
|
|
18948
|
+
rest = __rest(props, ["children", "size", "css", "layer", "isMobile", "onOpenAutoFocus", "onCloseAutoFocus", "onPointerDownOutside", "onInteractOutside", "disabledCloseButton"]);
|
|
18946
18949
|
|
|
18947
18950
|
var childArray = React__default["default"].Children.toArray(children);
|
|
18948
18951
|
var footerChildren = findNodeChild(childArray, 'PageDialogFooter');
|
|
@@ -19027,8 +19030,15 @@
|
|
|
19027
19030
|
gap: '$cozy'
|
|
19028
19031
|
}
|
|
19029
19032
|
}, {
|
|
19030
|
-
children: [!isMobile && jsxRuntime.jsx(
|
|
19031
|
-
|
|
19033
|
+
children: [!isMobile && jsxRuntime.jsx(ConditionalWrapper, __assign({
|
|
19034
|
+
condition: !disabledCloseButton,
|
|
19035
|
+
wrapper: function (children) {
|
|
19036
|
+
return jsxRuntime.jsx(DialogClose, __assign({
|
|
19037
|
+
asChild: true
|
|
19038
|
+
}, {
|
|
19039
|
+
children: children
|
|
19040
|
+
}), void 0);
|
|
19041
|
+
}
|
|
19032
19042
|
}, {
|
|
19033
19043
|
children: jsxRuntime.jsx(Box, __assign({
|
|
19034
19044
|
css: {
|
|
@@ -19039,7 +19049,7 @@
|
|
|
19039
19049
|
alignItems: 'center',
|
|
19040
19050
|
backgroundColor: '$gray150',
|
|
19041
19051
|
borderRadius: '$lg',
|
|
19042
|
-
cursor: 'pointer'
|
|
19052
|
+
cursor: disabledCloseButton ? 'not-allowed' : 'pointer'
|
|
19043
19053
|
}
|
|
19044
19054
|
}, {
|
|
19045
19055
|
children: jsxRuntime.jsx(icons.CloseOutline, {
|
|
@@ -19056,15 +19066,22 @@
|
|
|
19056
19066
|
as: "p",
|
|
19057
19067
|
heading: "pageTitle"
|
|
19058
19068
|
}, headerTitle.props), void 0)
|
|
19059
|
-
}), void 0), isMobile && jsxRuntime.jsx(
|
|
19060
|
-
|
|
19069
|
+
}), void 0), isMobile && jsxRuntime.jsx(ConditionalWrapper, __assign({
|
|
19070
|
+
condition: !disabledCloseButton,
|
|
19071
|
+
wrapper: function (children) {
|
|
19072
|
+
return jsxRuntime.jsx(DialogClose, __assign({
|
|
19073
|
+
asChild: true
|
|
19074
|
+
}, {
|
|
19075
|
+
children: children
|
|
19076
|
+
}), void 0);
|
|
19077
|
+
}
|
|
19061
19078
|
}, {
|
|
19062
19079
|
children: jsxRuntime.jsx(Box, __assign({
|
|
19063
19080
|
css: {
|
|
19064
19081
|
display: 'flex',
|
|
19065
19082
|
justifyContent: 'center',
|
|
19066
19083
|
alignItems: 'center',
|
|
19067
|
-
cursor: 'pointer'
|
|
19084
|
+
cursor: disabledCloseButton ? 'not-allowed' : 'pointer'
|
|
19068
19085
|
}
|
|
19069
19086
|
}, {
|
|
19070
19087
|
children: jsxRuntime.jsx(icons.CloseOutline, {
|
|
@@ -23332,7 +23349,7 @@
|
|
|
23332
23349
|
border: 'none',
|
|
23333
23350
|
width: '100%',
|
|
23334
23351
|
height: '100%',
|
|
23335
|
-
|
|
23352
|
+
overflow: 'hidden',
|
|
23336
23353
|
zIndex: 1
|
|
23337
23354
|
}
|
|
23338
23355
|
}, {
|
|
@@ -23403,7 +23420,7 @@
|
|
|
23403
23420
|
border: 'none',
|
|
23404
23421
|
width: '100%',
|
|
23405
23422
|
height: '100%',
|
|
23406
|
-
|
|
23423
|
+
overflow: 'hidden',
|
|
23407
23424
|
zIndex: 1
|
|
23408
23425
|
}
|
|
23409
23426
|
}, {
|
|
@@ -23458,7 +23475,7 @@
|
|
|
23458
23475
|
border: 'none',
|
|
23459
23476
|
width: '100%',
|
|
23460
23477
|
height: '100%',
|
|
23461
|
-
|
|
23478
|
+
overflow: 'hidden',
|
|
23462
23479
|
zIndex: 1
|
|
23463
23480
|
}
|
|
23464
23481
|
}, {
|
|
@@ -23568,7 +23585,7 @@
|
|
|
23568
23585
|
border: 'none',
|
|
23569
23586
|
width: '100%',
|
|
23570
23587
|
height: '100%',
|
|
23571
|
-
|
|
23588
|
+
overflow: 'hidden',
|
|
23572
23589
|
zIndex: 1,
|
|
23573
23590
|
position: 'relative'
|
|
23574
23591
|
}
|
|
@@ -23682,7 +23699,7 @@
|
|
|
23682
23699
|
style: {
|
|
23683
23700
|
width: props.size ? props.size : undefined,
|
|
23684
23701
|
position: 'relative',
|
|
23685
|
-
zIndex: 2
|
|
23702
|
+
zIndex: withComponent ? 1 : 2
|
|
23686
23703
|
},
|
|
23687
23704
|
src: properties.typeDevice,
|
|
23688
23705
|
alt: "device-preview"
|
|
@@ -23712,7 +23729,7 @@
|
|
|
23712
23729
|
width: '100%',
|
|
23713
23730
|
height: '100%',
|
|
23714
23731
|
overflowY: 'auto',
|
|
23715
|
-
zIndex:
|
|
23732
|
+
zIndex: 3
|
|
23716
23733
|
}
|
|
23717
23734
|
}, {
|
|
23718
23735
|
children: props.children
|
|
@@ -27592,9 +27609,14 @@
|
|
|
27592
27609
|
children: jsxRuntime.jsxs(TableContent$2, __assign({}, getTableProps(), {
|
|
27593
27610
|
children: [jsxRuntime.jsx(TableHead$2, {
|
|
27594
27611
|
children: headerGroups.map(function (headerGroup, index) {
|
|
27612
|
+
var visibleHeaders = headerGroup.headers.filter(function (column) {
|
|
27613
|
+
var _a;
|
|
27614
|
+
|
|
27615
|
+
return typeof (column === null || column === void 0 ? void 0 : column.hidden) === 'boolean' ? !(column === null || column === void 0 ? void 0 : column.hidden) : !((_a = column === null || column === void 0 ? void 0 : column.hidden) === null || _a === void 0 ? void 0 : _a.call(column, column));
|
|
27616
|
+
});
|
|
27595
27617
|
return /*#__PURE__*/React.createElement(TableHeadRow$2, __assign({}, headerGroup.getHeaderGroupProps(), {
|
|
27596
27618
|
key: index
|
|
27597
|
-
}),
|
|
27619
|
+
}), visibleHeaders.map(function (column, index) {
|
|
27598
27620
|
return (column === null || column === void 0 ? void 0 : column.isMobileHeader) && /*#__PURE__*/React.createElement(TableHeadCell$2, __assign({}, column.getHeaderProps({
|
|
27599
27621
|
style: {
|
|
27600
27622
|
minWidth: column.minWidth,
|
|
@@ -27662,7 +27684,11 @@
|
|
|
27662
27684
|
borderTop: '1pt solid $bgBorder'
|
|
27663
27685
|
}
|
|
27664
27686
|
}, {
|
|
27665
|
-
children: row.cells.
|
|
27687
|
+
children: row.cells.filter(function (cell) {
|
|
27688
|
+
var _a, _b, _c, _d;
|
|
27689
|
+
|
|
27690
|
+
return typeof ((_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.hidden) === 'boolean' ? !((_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.hidden) : !((_d = (_c = cell === null || cell === void 0 ? void 0 : cell.column) === null || _c === void 0 ? void 0 : _c.hidden) === null || _d === void 0 ? void 0 : _d.call(_c, cell));
|
|
27691
|
+
}).map(function (cell, index) {
|
|
27666
27692
|
var _a, _b;
|
|
27667
27693
|
|
|
27668
27694
|
var headerRender = (_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.Header;
|
|
@@ -28053,7 +28079,9 @@
|
|
|
28053
28079
|
children: [jsxRuntime.jsx(TableHead$1, {
|
|
28054
28080
|
children: headerGroups.map(function (headerGroup) {
|
|
28055
28081
|
var visibleHeaders = headerGroup.headers.filter(function (column) {
|
|
28056
|
-
|
|
28082
|
+
var _a;
|
|
28083
|
+
|
|
28084
|
+
return !(column === null || column === void 0 ? void 0 : column.isSubRow) && (typeof (column === null || column === void 0 ? void 0 : column.hidden) === 'boolean' ? !(column === null || column === void 0 ? void 0 : column.hidden) : !((_a = column === null || column === void 0 ? void 0 : column.hidden) === null || _a === void 0 ? void 0 : _a.call(column, column)));
|
|
28057
28085
|
});
|
|
28058
28086
|
return jsxRuntime.jsx(TableHeadRow$1, __assign({}, headerGroup.getHeaderGroupProps(), {
|
|
28059
28087
|
children: visibleHeaders.map(function (column) {
|
|
@@ -28110,7 +28138,9 @@
|
|
|
28110
28138
|
css: customStyle
|
|
28111
28139
|
}, row.getRowProps(), {
|
|
28112
28140
|
children: row.cells.filter(function (cell) {
|
|
28113
|
-
|
|
28141
|
+
var _a, _b, _c, _d, _e;
|
|
28142
|
+
|
|
28143
|
+
return !((_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.isSubRow) && (typeof ((_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.hidden) === 'boolean' ? !((_c = cell === null || cell === void 0 ? void 0 : cell.column) === null || _c === void 0 ? void 0 : _c.hidden) : !((_e = (_d = cell === null || cell === void 0 ? void 0 : cell.column) === null || _d === void 0 ? void 0 : _d.hidden) === null || _e === void 0 ? void 0 : _e.call(_d, cell)));
|
|
28114
28144
|
}).map(function (cell) {
|
|
28115
28145
|
var _a;
|
|
28116
28146
|
|
|
@@ -30609,7 +30639,13 @@
|
|
|
30609
30639
|
options: ['Inter', 'Roboto', 'Poppins', 'Tinos', 'Montserrat']
|
|
30610
30640
|
},
|
|
30611
30641
|
image: {
|
|
30612
|
-
uploadCallback: uploadCallback
|
|
30642
|
+
uploadCallback: uploadCallback,
|
|
30643
|
+
previewImage: true,
|
|
30644
|
+
alt: {
|
|
30645
|
+
present: true,
|
|
30646
|
+
mandatory: false
|
|
30647
|
+
},
|
|
30648
|
+
inputAccept: 'image/gif,image/jpeg,image/jpg,image/png,image/svg'
|
|
30613
30649
|
}
|
|
30614
30650
|
};
|
|
30615
30651
|
return jsxRuntime.jsxs(Container, __assign({
|