@majoo-ui/react 1.50.2 → 1.51.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/components/checkboxTable/CheckboxTable.d.ts +29 -0
- package/components/checkboxTable/index.d.ts +1 -0
- package/components/checkboxTable/transition.d.ts +11 -0
- package/components/editableTable/EditableTable.d.ts +207 -1
- package/components/form/components/InputCounter/InputCounter.d.ts +8 -0
- package/components/index.d.ts +1 -0
- package/index.esm.js +542 -163
- package/index.umd.js +564 -167
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -7351,7 +7351,7 @@ Tag.defaultProps = {
|
|
|
7351
7351
|
readOnly: false
|
|
7352
7352
|
};
|
|
7353
7353
|
|
|
7354
|
-
const _excluded$f = ["size", "isInvalid", "placeholder", "onChange", "onEnter", "onInputChange", "value", "disabled", "readOnly", "max", "maxChar", "pattern", "helperText"];
|
|
7354
|
+
const _excluded$f = ["size", "isInvalid", "placeholder", "onChange", "onEnter", "onInputChange", "value", "disabled", "readOnly", "max", "maxChar", "pattern", "helperText", "unremovableTags", "onRemoveItem"];
|
|
7355
7355
|
var _jsxFileName$A = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputTags\\InputTags.js";
|
|
7356
7356
|
const Wrapper$2 = styled('div', {
|
|
7357
7357
|
margin: 0,
|
|
@@ -7470,7 +7470,9 @@ function TagsInput(_ref) {
|
|
|
7470
7470
|
max,
|
|
7471
7471
|
maxChar,
|
|
7472
7472
|
pattern,
|
|
7473
|
-
helperText
|
|
7473
|
+
helperText,
|
|
7474
|
+
unremovableTags,
|
|
7475
|
+
onRemoveItem
|
|
7474
7476
|
} = _ref,
|
|
7475
7477
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
7476
7478
|
|
|
@@ -7520,6 +7522,7 @@ function TagsInput(_ref) {
|
|
|
7520
7522
|
if (disabled || readOnly) {
|
|
7521
7523
|
return tags;
|
|
7522
7524
|
} else if (key === 'removeTag' || key === 'Backspace') {
|
|
7525
|
+
onRemoveItem === null || onRemoveItem === void 0 ? void 0 : onRemoveItem(tags[index]);
|
|
7523
7526
|
setTags([...tags.filter(tag => tags.indexOf(tag) !== index)]);
|
|
7524
7527
|
}
|
|
7525
7528
|
}; // const handleErrorMessage = () => {
|
|
@@ -7536,7 +7539,7 @@ function TagsInput(_ref) {
|
|
|
7536
7539
|
__self: this,
|
|
7537
7540
|
__source: {
|
|
7538
7541
|
fileName: _jsxFileName$A,
|
|
7539
|
-
lineNumber:
|
|
7542
|
+
lineNumber: 171,
|
|
7540
7543
|
columnNumber: 5
|
|
7541
7544
|
}
|
|
7542
7545
|
}, /*#__PURE__*/React__default.createElement(InputTagsComponent, _extends({
|
|
@@ -7549,7 +7552,7 @@ function TagsInput(_ref) {
|
|
|
7549
7552
|
__self: this,
|
|
7550
7553
|
__source: {
|
|
7551
7554
|
fileName: _jsxFileName$A,
|
|
7552
|
-
lineNumber:
|
|
7555
|
+
lineNumber: 172,
|
|
7553
7556
|
columnNumber: 7
|
|
7554
7557
|
}
|
|
7555
7558
|
}), /*#__PURE__*/React__default.createElement(Input$8, {
|
|
@@ -7564,7 +7567,7 @@ function TagsInput(_ref) {
|
|
|
7564
7567
|
__self: this,
|
|
7565
7568
|
__source: {
|
|
7566
7569
|
fileName: _jsxFileName$A,
|
|
7567
|
-
lineNumber:
|
|
7570
|
+
lineNumber: 180,
|
|
7568
7571
|
columnNumber: 9
|
|
7569
7572
|
}
|
|
7570
7573
|
})), regexError && pattern && (pattern !== null && pattern !== void 0 && pattern.errorMessage ? /*#__PURE__*/React__default.createElement(FormHelper, {
|
|
@@ -7572,7 +7575,7 @@ function TagsInput(_ref) {
|
|
|
7572
7575
|
__self: this,
|
|
7573
7576
|
__source: {
|
|
7574
7577
|
fileName: _jsxFileName$A,
|
|
7575
|
-
lineNumber:
|
|
7578
|
+
lineNumber: 194,
|
|
7576
7579
|
columnNumber: 11
|
|
7577
7580
|
}
|
|
7578
7581
|
}, pattern.errorMessage) : /*#__PURE__*/React__default.createElement(FormHelper, {
|
|
@@ -7580,7 +7583,7 @@ function TagsInput(_ref) {
|
|
|
7580
7583
|
__self: this,
|
|
7581
7584
|
__source: {
|
|
7582
7585
|
fileName: _jsxFileName$A,
|
|
7583
|
-
lineNumber:
|
|
7586
|
+
lineNumber: 196,
|
|
7584
7587
|
columnNumber: 11
|
|
7585
7588
|
}
|
|
7586
7589
|
}, "Invalid Input")), helperText && /*#__PURE__*/React__default.createElement(Paragraph, {
|
|
@@ -7594,14 +7597,14 @@ function TagsInput(_ref) {
|
|
|
7594
7597
|
__self: this,
|
|
7595
7598
|
__source: {
|
|
7596
7599
|
fileName: _jsxFileName$A,
|
|
7597
|
-
lineNumber:
|
|
7600
|
+
lineNumber: 200,
|
|
7598
7601
|
columnNumber: 9
|
|
7599
7602
|
}
|
|
7600
7603
|
}, helperText), /*#__PURE__*/React__default.createElement(TagWrapper$2, {
|
|
7601
7604
|
__self: this,
|
|
7602
7605
|
__source: {
|
|
7603
7606
|
fileName: _jsxFileName$A,
|
|
7604
|
-
lineNumber:
|
|
7607
|
+
lineNumber: 204,
|
|
7605
7608
|
columnNumber: 7
|
|
7606
7609
|
}
|
|
7607
7610
|
}, tags.map((tag, index) => /*#__PURE__*/React__default.createElement(Tag, {
|
|
@@ -7609,12 +7612,12 @@ function TagsInput(_ref) {
|
|
|
7609
7612
|
disabled: disabled,
|
|
7610
7613
|
readOnly: readOnly,
|
|
7611
7614
|
size: size === 'lg' ? 'sm' : 'lg',
|
|
7612
|
-
isRemovable: disabled || readOnly ? false : true,
|
|
7615
|
+
isRemovable: disabled || readOnly || unremovableTags.includes(tag) ? false : true,
|
|
7613
7616
|
onRemove: () => removeTags(index, 'removeTag'),
|
|
7614
7617
|
__self: this,
|
|
7615
7618
|
__source: {
|
|
7616
7619
|
fileName: _jsxFileName$A,
|
|
7617
|
-
lineNumber:
|
|
7620
|
+
lineNumber: 206,
|
|
7618
7621
|
columnNumber: 11
|
|
7619
7622
|
}
|
|
7620
7623
|
}, tag))));
|
|
@@ -7624,12 +7627,14 @@ TagsInput.propTypes = {
|
|
|
7624
7627
|
size: PropTypes.string,
|
|
7625
7628
|
value: PropTypes.arrayOf(PropTypes.string),
|
|
7626
7629
|
onChange: PropTypes.arrayOf(PropTypes.string),
|
|
7630
|
+
onRemoveItem: PropTypes.func,
|
|
7627
7631
|
onEnter: PropTypes.func,
|
|
7628
7632
|
onInputChange: PropTypes.func,
|
|
7629
7633
|
max: PropTypes.number,
|
|
7630
7634
|
maxChar: PropTypes.number,
|
|
7631
7635
|
isInvalid: PropTypes.bool,
|
|
7632
7636
|
disabled: PropTypes.bool,
|
|
7637
|
+
unremovableTags: PropTypes.arrayOf(PropTypes.string),
|
|
7633
7638
|
readOnly: PropTypes.bool,
|
|
7634
7639
|
helperText: PropTypes.string,
|
|
7635
7640
|
pattern: PropTypes.shape({
|
|
@@ -7642,6 +7647,7 @@ TagsInput.defaultProps = {
|
|
|
7642
7647
|
size: 'lg',
|
|
7643
7648
|
isInvalid: false,
|
|
7644
7649
|
disabled: false,
|
|
7650
|
+
unremovableTags: [],
|
|
7645
7651
|
readOnly: false
|
|
7646
7652
|
};
|
|
7647
7653
|
|
|
@@ -8569,7 +8575,7 @@ function InputSelect(_a) {
|
|
|
8569
8575
|
type: "button"
|
|
8570
8576
|
}, {
|
|
8571
8577
|
children: selectedItem ? selectedItem.render ? selectedItem.render(selectedItem) : jsx(Text$1, Object.assign({
|
|
8572
|
-
color:
|
|
8578
|
+
color: disabled ? 'disable' : 'primary',
|
|
8573
8579
|
css: StyledText$1
|
|
8574
8580
|
}, {
|
|
8575
8581
|
children: selectedItem.name
|
|
@@ -9040,7 +9046,7 @@ const CheckOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
|
9040
9046
|
}
|
|
9041
9047
|
}));
|
|
9042
9048
|
|
|
9043
|
-
const _excluded$c = ["placeholder", "option", "value", "size", "disabled", "onChange", "search", "readOnly", "placement", "disabledOptions", "textEmptyItem", "onRemoveItem", "isInvalid", "sortBy", "showSelectedTag", "helperText", "css"];
|
|
9049
|
+
const _excluded$c = ["placeholder", "option", "value", "size", "disabled", "onChange", "search", "readOnly", "placement", "disabledOptions", "textEmptyItem", "onRemoveItem", "isInvalid", "sortBy", "showSelectAll", "selectAllLabel", "showSelectedTag", "unremovableTags", "helperText", "css"];
|
|
9044
9050
|
var _jsxFileName$u = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputSelectCheck\\InputSelectCheck.js";
|
|
9045
9051
|
const Wrapper$1 = styled('div', {
|
|
9046
9052
|
margin: 0,
|
|
@@ -9273,27 +9279,30 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9273
9279
|
onRemoveItem,
|
|
9274
9280
|
isInvalid,
|
|
9275
9281
|
sortBy,
|
|
9282
|
+
showSelectAll,
|
|
9283
|
+
selectAllLabel,
|
|
9276
9284
|
showSelectedTag,
|
|
9285
|
+
unremovableTags,
|
|
9277
9286
|
helperText,
|
|
9278
9287
|
css
|
|
9279
9288
|
} = _ref,
|
|
9280
9289
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
9281
9290
|
|
|
9282
|
-
const [initItem,
|
|
9291
|
+
const [initItem, setInitItems] = React__default.useState(option); //init filter selectedItems on useMultipleSelection
|
|
9283
9292
|
|
|
9284
|
-
const [
|
|
9293
|
+
const [items, setItems] = React__default.useState([]);
|
|
9285
9294
|
const [selectedValue, setSelectedValue] = React__default.useState([]);
|
|
9286
9295
|
const [inputValue, setInputValue] = React__default.useState('');
|
|
9287
|
-
|
|
9288
|
-
setItem(option);
|
|
9289
|
-
}, [option]);
|
|
9290
|
-
const sortItem = React__default.useCallback(() => {
|
|
9296
|
+
const sortItems = React__default.useCallback(() => {
|
|
9291
9297
|
if (sortBy === 'id') {
|
|
9292
9298
|
option.sort(function (a, b) {
|
|
9293
9299
|
const idA = a.id.toUpperCase(); // ignore upper and lowercase
|
|
9294
9300
|
|
|
9295
9301
|
const idB = b.id.toUpperCase(); // ignore upper and lowercase
|
|
9296
9302
|
|
|
9303
|
+
if (a.id === '!all') return -1;
|
|
9304
|
+
if (b.id === '!all') return 1;
|
|
9305
|
+
|
|
9297
9306
|
if (idA < idB) {
|
|
9298
9307
|
return -1;
|
|
9299
9308
|
}
|
|
@@ -9310,6 +9319,9 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9310
9319
|
|
|
9311
9320
|
const nameB = b.name.toUpperCase(); // ignore upper and lowercase
|
|
9312
9321
|
|
|
9322
|
+
if (a.id === '!all') return -1;
|
|
9323
|
+
if (b.id === '!all') return 1;
|
|
9324
|
+
|
|
9313
9325
|
if (nameA < nameB) {
|
|
9314
9326
|
return -1;
|
|
9315
9327
|
}
|
|
@@ -9321,7 +9333,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9321
9333
|
return 0;
|
|
9322
9334
|
});
|
|
9323
9335
|
}
|
|
9324
|
-
}, [sortBy]);
|
|
9336
|
+
}, [sortBy, option]);
|
|
9325
9337
|
const sortValue = selectedValue.length > 0 && disabledOptions.length === 0 ? value.reduce((res, id, i, {
|
|
9326
9338
|
[i + 1]: next
|
|
9327
9339
|
}) => {
|
|
@@ -9344,24 +9356,6 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9344
9356
|
return [...res, ...filterOption]; // add the missing elements
|
|
9345
9357
|
}
|
|
9346
9358
|
}, []) : option;
|
|
9347
|
-
React__default.useEffect(() => {
|
|
9348
|
-
if (selectedValue.length > 0 && disabledOptions.length === 0) {
|
|
9349
|
-
setInitItem(sortValue);
|
|
9350
|
-
setItem(sortValue);
|
|
9351
|
-
}
|
|
9352
|
-
}, []);
|
|
9353
|
-
React__default.useEffect(() => {
|
|
9354
|
-
sortItem();
|
|
9355
|
-
}, [sortBy]);
|
|
9356
|
-
React__default.useEffect(() => {
|
|
9357
|
-
if (disabledOptions.length > 0) {
|
|
9358
|
-
setInitItem(generateOptions(sortDisabled));
|
|
9359
|
-
setItem(generateOptions(sortDisabled)); // setItem(generateOptions(option));
|
|
9360
|
-
}
|
|
9361
|
-
}, [disabledOptions]);
|
|
9362
|
-
React__default.useEffect(() => {
|
|
9363
|
-
setSelectedValue(value);
|
|
9364
|
-
}, [value]);
|
|
9365
9359
|
const {
|
|
9366
9360
|
getSelectedItemProps,
|
|
9367
9361
|
getDropdownProps,
|
|
@@ -9395,13 +9389,13 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9395
9389
|
const handleInputValue = input => {
|
|
9396
9390
|
if (input === '') {
|
|
9397
9391
|
if (disabledOptions.length > 0) {
|
|
9398
|
-
|
|
9392
|
+
setItems(generateOptions(sortDisabled));
|
|
9399
9393
|
} else {
|
|
9400
|
-
return
|
|
9394
|
+
return setItems(sortValue);
|
|
9401
9395
|
}
|
|
9402
9396
|
} else {
|
|
9403
9397
|
let filterItems = option.filter(item => item.name.toLowerCase().startsWith(input.toLocaleLowerCase()));
|
|
9404
|
-
|
|
9398
|
+
setItems(filterItems);
|
|
9405
9399
|
}
|
|
9406
9400
|
};
|
|
9407
9401
|
|
|
@@ -9409,10 +9403,13 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9409
9403
|
if (disabled || readOnly) {
|
|
9410
9404
|
return selectedValue;
|
|
9411
9405
|
} else {
|
|
9412
|
-
|
|
9406
|
+
const filterItems = selectedValue.filter(val => val !== selected.id && val !== '!all');
|
|
9413
9407
|
removeSelectedItem(selected);
|
|
9414
9408
|
setSelectedValue(filterItems);
|
|
9415
|
-
|
|
9409
|
+
|
|
9410
|
+
if (selected.id !== '!all') {
|
|
9411
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(filterItems);
|
|
9412
|
+
}
|
|
9416
9413
|
}
|
|
9417
9414
|
};
|
|
9418
9415
|
|
|
@@ -9428,7 +9425,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9428
9425
|
isOpen
|
|
9429
9426
|
} = useCombobox({
|
|
9430
9427
|
inputValue,
|
|
9431
|
-
items:
|
|
9428
|
+
items: items,
|
|
9432
9429
|
selectedItem: selectedValue,
|
|
9433
9430
|
itemToString: item => item ? item.name : '',
|
|
9434
9431
|
onStateChange: ({
|
|
@@ -9446,17 +9443,38 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9446
9443
|
case useCombobox.stateChangeTypes.ItemClick:
|
|
9447
9444
|
case useCombobox.stateChangeTypes.InputBlur:
|
|
9448
9445
|
if (selectedItem) {
|
|
9446
|
+
openMenu();
|
|
9447
|
+
|
|
9449
9448
|
if (selectedItems.length !== 0 && selectedValue.includes(selectedItem.id)) {
|
|
9450
9449
|
if (disabled === false && readOnly === false) {
|
|
9451
|
-
|
|
9452
|
-
|
|
9450
|
+
if (selectedItem.id === '!all') {
|
|
9451
|
+
items.forEach(item => {
|
|
9452
|
+
removeSelectedItem(item);
|
|
9453
|
+
});
|
|
9454
|
+
setSelectedValue([]);
|
|
9455
|
+
onChange === null || onChange === void 0 ? void 0 : onChange([]);
|
|
9456
|
+
} else {
|
|
9457
|
+
removeItem(selectedItem);
|
|
9458
|
+
}
|
|
9459
|
+
|
|
9453
9460
|
selectItem(null);
|
|
9454
9461
|
}
|
|
9455
9462
|
} else {
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9463
|
+
if (selectedItem.id === '!all') {
|
|
9464
|
+
const itemIds = [];
|
|
9465
|
+
items.forEach(item => {
|
|
9466
|
+
addSelectedItem(item);
|
|
9467
|
+
itemIds.push(item.id);
|
|
9468
|
+
});
|
|
9469
|
+
setSelectedValue(itemIds);
|
|
9470
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(itemIds.slice(1));
|
|
9471
|
+
} else {
|
|
9472
|
+
addSelectedItem(selectedItem);
|
|
9473
|
+
setSelectedValue([...selectedValue, selectedItem.id]);
|
|
9474
|
+
const filteredSelectedValues = selectedValue.filter(val => val !== '!all');
|
|
9475
|
+
onChange === null || onChange === void 0 ? void 0 : onChange([...filteredSelectedValues, selectedItem.id]);
|
|
9476
|
+
}
|
|
9477
|
+
|
|
9460
9478
|
selectItem(null);
|
|
9461
9479
|
}
|
|
9462
9480
|
}
|
|
@@ -9467,13 +9485,49 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9467
9485
|
}
|
|
9468
9486
|
}
|
|
9469
9487
|
});
|
|
9488
|
+
useEffect(() => {
|
|
9489
|
+
sortItems();
|
|
9490
|
+
setItems(showSelectAll ? [{
|
|
9491
|
+
id: '!all',
|
|
9492
|
+
name: selectAllLabel
|
|
9493
|
+
}, ...option] : option);
|
|
9494
|
+
setInitItems(showSelectAll ? [{
|
|
9495
|
+
id: '!all',
|
|
9496
|
+
name: selectAllLabel
|
|
9497
|
+
}, ...option] : option);
|
|
9498
|
+
}, [option, showSelectAll]);
|
|
9499
|
+
useEffect(() => {
|
|
9500
|
+
if (selectedValue.length > 0 && disabledOptions.length === 0) {
|
|
9501
|
+
setInitItems(sortValue);
|
|
9502
|
+
setItems(sortValue);
|
|
9503
|
+
}
|
|
9504
|
+
}, []);
|
|
9505
|
+
useEffect(() => {
|
|
9506
|
+
sortItems();
|
|
9507
|
+
}, [sortBy]);
|
|
9508
|
+
useEffect(() => {
|
|
9509
|
+
if (disabledOptions.length > 0) {
|
|
9510
|
+
const options = generateOptions(sortDisabled);
|
|
9511
|
+
setItems(showSelectAll ? [{
|
|
9512
|
+
id: '!all',
|
|
9513
|
+
name: selectAllLabel
|
|
9514
|
+
}, ...options] : options);
|
|
9515
|
+
setInitItems(showSelectAll ? [{
|
|
9516
|
+
id: '!all',
|
|
9517
|
+
name: selectAllLabel
|
|
9518
|
+
}, ...options] : options);
|
|
9519
|
+
}
|
|
9520
|
+
}, [disabledOptions, showSelectAll]);
|
|
9521
|
+
useEffect(() => {
|
|
9522
|
+
setSelectedValue(items.length > 0 && value.length === items.length - 1 ? ['!all', ...value] : value);
|
|
9523
|
+
}, [value]);
|
|
9470
9524
|
return /*#__PURE__*/React__default.createElement(Wrapper$1, _extends({
|
|
9471
9525
|
css: css
|
|
9472
9526
|
}, props, {
|
|
9473
9527
|
__self: undefined,
|
|
9474
9528
|
__source: {
|
|
9475
9529
|
fileName: _jsxFileName$u,
|
|
9476
|
-
lineNumber:
|
|
9530
|
+
lineNumber: 490,
|
|
9477
9531
|
columnNumber: 7
|
|
9478
9532
|
}
|
|
9479
9533
|
}), /*#__PURE__*/React__default.createElement(Select, {
|
|
@@ -9483,7 +9537,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9483
9537
|
__self: undefined,
|
|
9484
9538
|
__source: {
|
|
9485
9539
|
fileName: _jsxFileName$u,
|
|
9486
|
-
lineNumber:
|
|
9540
|
+
lineNumber: 491,
|
|
9487
9541
|
columnNumber: 9
|
|
9488
9542
|
}
|
|
9489
9543
|
}, /*#__PURE__*/React__default.createElement(InputWrapper$1, _extends({}, getComboboxProps(getDropdownProps({
|
|
@@ -9498,7 +9552,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9498
9552
|
__self: undefined,
|
|
9499
9553
|
__source: {
|
|
9500
9554
|
fileName: _jsxFileName$u,
|
|
9501
|
-
lineNumber:
|
|
9555
|
+
lineNumber: 492,
|
|
9502
9556
|
columnNumber: 11
|
|
9503
9557
|
}
|
|
9504
9558
|
}), /*#__PURE__*/React__default.createElement(Input$6, _extends({}, getInputProps({
|
|
@@ -9514,7 +9568,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9514
9568
|
__self: undefined,
|
|
9515
9569
|
__source: {
|
|
9516
9570
|
fileName: _jsxFileName$u,
|
|
9517
|
-
lineNumber:
|
|
9571
|
+
lineNumber: 502,
|
|
9518
9572
|
columnNumber: 13
|
|
9519
9573
|
}
|
|
9520
9574
|
})), /*#__PURE__*/React__default.createElement(Button$1, _extends({}, getToggleButtonProps({
|
|
@@ -9527,7 +9581,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9527
9581
|
__self: undefined,
|
|
9528
9582
|
__source: {
|
|
9529
9583
|
fileName: _jsxFileName$u,
|
|
9530
|
-
lineNumber:
|
|
9584
|
+
lineNumber: 508,
|
|
9531
9585
|
columnNumber: 13
|
|
9532
9586
|
}
|
|
9533
9587
|
}), placeholder)), /*#__PURE__*/React__default.createElement(IconWrapper, _extends({}, getToggleButtonProps({
|
|
@@ -9538,7 +9592,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9538
9592
|
__self: undefined,
|
|
9539
9593
|
__source: {
|
|
9540
9594
|
fileName: _jsxFileName$u,
|
|
9541
|
-
lineNumber:
|
|
9595
|
+
lineNumber: 518,
|
|
9542
9596
|
columnNumber: 11
|
|
9543
9597
|
}
|
|
9544
9598
|
}), /*#__PURE__*/React__default.createElement(IconCaretDown, {
|
|
@@ -9546,7 +9600,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9546
9600
|
__self: undefined,
|
|
9547
9601
|
__source: {
|
|
9548
9602
|
fileName: _jsxFileName$u,
|
|
9549
|
-
lineNumber:
|
|
9603
|
+
lineNumber: 523,
|
|
9550
9604
|
columnNumber: 13
|
|
9551
9605
|
}
|
|
9552
9606
|
}))), helperText && /*#__PURE__*/React__default.createElement(Paragraph, {
|
|
@@ -9559,7 +9613,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9559
9613
|
__self: undefined,
|
|
9560
9614
|
__source: {
|
|
9561
9615
|
fileName: _jsxFileName$u,
|
|
9562
|
-
lineNumber:
|
|
9616
|
+
lineNumber: 527,
|
|
9563
9617
|
columnNumber: 11
|
|
9564
9618
|
}
|
|
9565
9619
|
}, helperText), showSelectedTag && selectedItems.length !== 0 && /*#__PURE__*/React__default.createElement(TagWrapper$1, {
|
|
@@ -9567,11 +9621,11 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9567
9621
|
__self: undefined,
|
|
9568
9622
|
__source: {
|
|
9569
9623
|
fileName: _jsxFileName$u,
|
|
9570
|
-
lineNumber:
|
|
9624
|
+
lineNumber: 532,
|
|
9571
9625
|
columnNumber: 11
|
|
9572
9626
|
}
|
|
9573
9627
|
}, selectedItems.map((selectedItem, index) => /*#__PURE__*/React__default.createElement(Tag, _extends({
|
|
9574
|
-
isRemovable: readOnly || disabled ? false : true,
|
|
9628
|
+
isRemovable: readOnly || disabled || unremovableTags.includes(selectedItem.id) ? false : true,
|
|
9575
9629
|
disabled: disabled,
|
|
9576
9630
|
size: "lg",
|
|
9577
9631
|
readOnly: readOnly,
|
|
@@ -9591,7 +9645,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9591
9645
|
__self: undefined,
|
|
9592
9646
|
__source: {
|
|
9593
9647
|
fileName: _jsxFileName$u,
|
|
9594
|
-
lineNumber:
|
|
9648
|
+
lineNumber: 534,
|
|
9595
9649
|
columnNumber: 15
|
|
9596
9650
|
}
|
|
9597
9651
|
}), selectedItem.name))), /*#__PURE__*/React__default.createElement(OptionWrapper$1, {
|
|
@@ -9603,19 +9657,19 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9603
9657
|
__self: undefined,
|
|
9604
9658
|
__source: {
|
|
9605
9659
|
fileName: _jsxFileName$u,
|
|
9606
|
-
lineNumber:
|
|
9660
|
+
lineNumber: 555,
|
|
9607
9661
|
columnNumber: 9
|
|
9608
9662
|
}
|
|
9609
|
-
},
|
|
9663
|
+
}, items.length !== 0 ? /*#__PURE__*/React__default.createElement(Option, _extends({}, getMenuProps({}, {
|
|
9610
9664
|
suppressRefError: true
|
|
9611
9665
|
}), {
|
|
9612
9666
|
__self: undefined,
|
|
9613
9667
|
__source: {
|
|
9614
9668
|
fileName: _jsxFileName$u,
|
|
9615
|
-
lineNumber:
|
|
9669
|
+
lineNumber: 560,
|
|
9616
9670
|
columnNumber: 13
|
|
9617
9671
|
}
|
|
9618
|
-
}), isOpen &&
|
|
9672
|
+
}), isOpen && items.map((item, index) => /*#__PURE__*/React__default.createElement(ItemWrapper$1, _extends({
|
|
9619
9673
|
key: item.id
|
|
9620
9674
|
}, getItemProps({
|
|
9621
9675
|
item,
|
|
@@ -9630,7 +9684,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9630
9684
|
__self: undefined,
|
|
9631
9685
|
__source: {
|
|
9632
9686
|
fileName: _jsxFileName$u,
|
|
9633
|
-
lineNumber:
|
|
9687
|
+
lineNumber: 563,
|
|
9634
9688
|
columnNumber: 19
|
|
9635
9689
|
}
|
|
9636
9690
|
}), /*#__PURE__*/React__default.createElement(IconWrapper, {
|
|
@@ -9643,7 +9697,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9643
9697
|
__self: undefined,
|
|
9644
9698
|
__source: {
|
|
9645
9699
|
fileName: _jsxFileName$u,
|
|
9646
|
-
lineNumber:
|
|
9700
|
+
lineNumber: 576,
|
|
9647
9701
|
columnNumber: 21
|
|
9648
9702
|
}
|
|
9649
9703
|
}, item.isDisabled ? /*#__PURE__*/React__default.createElement(CheckOutline, {
|
|
@@ -9651,7 +9705,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9651
9705
|
__self: undefined,
|
|
9652
9706
|
__source: {
|
|
9653
9707
|
fileName: _jsxFileName$u,
|
|
9654
|
-
lineNumber:
|
|
9708
|
+
lineNumber: 585,
|
|
9655
9709
|
columnNumber: 25
|
|
9656
9710
|
}
|
|
9657
9711
|
}) : selectedValue.includes(item.id) && (item.isDisabled === false || item.isDisabled === undefined) && /*#__PURE__*/React__default.createElement(CheckOutline, {
|
|
@@ -9659,7 +9713,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9659
9713
|
__self: undefined,
|
|
9660
9714
|
__source: {
|
|
9661
9715
|
fileName: _jsxFileName$u,
|
|
9662
|
-
lineNumber:
|
|
9716
|
+
lineNumber: 589,
|
|
9663
9717
|
columnNumber: 27
|
|
9664
9718
|
}
|
|
9665
9719
|
})), /*#__PURE__*/React__default.createElement(Item$2, {
|
|
@@ -9669,7 +9723,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9669
9723
|
__self: undefined,
|
|
9670
9724
|
__source: {
|
|
9671
9725
|
fileName: _jsxFileName$u,
|
|
9672
|
-
lineNumber:
|
|
9726
|
+
lineNumber: 593,
|
|
9673
9727
|
columnNumber: 21
|
|
9674
9728
|
}
|
|
9675
9729
|
}, item.name)))) : /*#__PURE__*/React__default.createElement(Option, _extends({
|
|
@@ -9682,14 +9736,14 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9682
9736
|
__self: undefined,
|
|
9683
9737
|
__source: {
|
|
9684
9738
|
fileName: _jsxFileName$u,
|
|
9685
|
-
lineNumber:
|
|
9739
|
+
lineNumber: 598,
|
|
9686
9740
|
columnNumber: 13
|
|
9687
9741
|
}
|
|
9688
9742
|
}), /*#__PURE__*/React__default.createElement(StyledDiv$1, {
|
|
9689
9743
|
__self: undefined,
|
|
9690
9744
|
__source: {
|
|
9691
9745
|
fileName: _jsxFileName$u,
|
|
9692
|
-
lineNumber:
|
|
9746
|
+
lineNumber: 599,
|
|
9693
9747
|
columnNumber: 15
|
|
9694
9748
|
}
|
|
9695
9749
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -9699,7 +9753,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9699
9753
|
__self: undefined,
|
|
9700
9754
|
__source: {
|
|
9701
9755
|
fileName: _jsxFileName$u,
|
|
9702
|
-
lineNumber:
|
|
9756
|
+
lineNumber: 600,
|
|
9703
9757
|
columnNumber: 17
|
|
9704
9758
|
}
|
|
9705
9759
|
}, /*#__PURE__*/React__default.createElement(CircleInfoOutline, {
|
|
@@ -9711,7 +9765,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9711
9765
|
__self: undefined,
|
|
9712
9766
|
__source: {
|
|
9713
9767
|
fileName: _jsxFileName$u,
|
|
9714
|
-
lineNumber:
|
|
9768
|
+
lineNumber: 601,
|
|
9715
9769
|
columnNumber: 19
|
|
9716
9770
|
}
|
|
9717
9771
|
})), textEmptyItem))));
|
|
@@ -9730,7 +9784,11 @@ InputSelectCheck.propTypes = {
|
|
|
9730
9784
|
search: PropTypes.bool,
|
|
9731
9785
|
placement: PropTypes.oneOf(['top', 'bottom']),
|
|
9732
9786
|
disabledOptions: PropTypes.arrayOf(PropTypes.string),
|
|
9787
|
+
unremovableTags: PropTypes.arrayOf(PropTypes.string),
|
|
9733
9788
|
textEmptyItem: PropTypes.string,
|
|
9789
|
+
showSelectAll: PropTypes.bool,
|
|
9790
|
+
selectAllLabel: PropTypes.string,
|
|
9791
|
+
showSelectedTag: PropTypes.bool,
|
|
9734
9792
|
css: PropTypes.object,
|
|
9735
9793
|
helperText: PropTypes.string
|
|
9736
9794
|
};
|
|
@@ -9744,8 +9802,11 @@ InputSelectCheck.defaultProps = {
|
|
|
9744
9802
|
placement: 'bottom',
|
|
9745
9803
|
value: [],
|
|
9746
9804
|
disabledOptions: [],
|
|
9805
|
+
unremovableTags: [],
|
|
9747
9806
|
textEmptyItem: 'Item tidak ditemukan',
|
|
9748
|
-
sortBy: 'name'
|
|
9807
|
+
sortBy: 'name',
|
|
9808
|
+
showSelectAll: false,
|
|
9809
|
+
selectAllLabel: 'Pilih Semua'
|
|
9749
9810
|
};
|
|
9750
9811
|
|
|
9751
9812
|
var _jsxFileName$t = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputSelectTag\\InputSelectTag.js";
|
|
@@ -9775,6 +9836,7 @@ InputSelectTag.propTypes = {
|
|
|
9775
9836
|
onRemoveItem: PropTypes.func,
|
|
9776
9837
|
search: PropTypes.bool,
|
|
9777
9838
|
placement: PropTypes.oneOf(['top', 'bottom']),
|
|
9839
|
+
unremovableTags: PropTypes.arrayOf(PropTypes.string),
|
|
9778
9840
|
disabledOptions: PropTypes.arrayOf(PropTypes.string),
|
|
9779
9841
|
textEmptyItem: PropTypes.string,
|
|
9780
9842
|
helperText: PropTypes.string
|
|
@@ -9789,6 +9851,7 @@ InputSelectTag.defaultProps = {
|
|
|
9789
9851
|
placement: 'bottom',
|
|
9790
9852
|
value: [],
|
|
9791
9853
|
disabledOptions: [],
|
|
9854
|
+
unremovableTags: [],
|
|
9792
9855
|
textEmptyItem: 'Item tidak ditemukan',
|
|
9793
9856
|
sortBy: 'name'
|
|
9794
9857
|
};
|
|
@@ -10493,7 +10556,9 @@ const InputCounter = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10493
10556
|
allowNegative,
|
|
10494
10557
|
min,
|
|
10495
10558
|
max,
|
|
10496
|
-
disabled
|
|
10559
|
+
disabled,
|
|
10560
|
+
prefix,
|
|
10561
|
+
suffix
|
|
10497
10562
|
} = props;
|
|
10498
10563
|
const [inputValue, setInputValue] = useState((_a = min !== null && min !== void 0 ? min : value) !== null && _a !== void 0 ? _a : 0);
|
|
10499
10564
|
useEffect(() => {
|
|
@@ -10549,7 +10614,9 @@ const InputCounter = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10549
10614
|
disabled: disabled,
|
|
10550
10615
|
value: inputValue,
|
|
10551
10616
|
allowNegative: allowNegative,
|
|
10552
|
-
onChange: handleChange
|
|
10617
|
+
onChange: handleChange,
|
|
10618
|
+
prefix: prefix,
|
|
10619
|
+
suffix: suffix
|
|
10553
10620
|
}, void 0), jsx(Button, Object.assign({
|
|
10554
10621
|
disabled: disabled,
|
|
10555
10622
|
buttonType: "secondary",
|
|
@@ -16438,7 +16505,7 @@ Pagination.propTypes = {
|
|
|
16438
16505
|
};
|
|
16439
16506
|
Pagination.displayName = 'Pagination';
|
|
16440
16507
|
|
|
16441
|
-
const TableContainer$
|
|
16508
|
+
const TableContainer$4 = styled(Flex$1, {
|
|
16442
16509
|
position: 'relative',
|
|
16443
16510
|
flexDirection: 'column',
|
|
16444
16511
|
width: '100%',
|
|
@@ -16447,7 +16514,7 @@ const TableContainer$3 = styled(Flex$1, {
|
|
|
16447
16514
|
overflowX: 'hidden',
|
|
16448
16515
|
padding: '0 $spacing-05'
|
|
16449
16516
|
});
|
|
16450
|
-
const TableHeadRow$
|
|
16517
|
+
const TableHeadRow$4 = styled('tr', {
|
|
16451
16518
|
borderBottom: '1pt solid $bgBorder',
|
|
16452
16519
|
'& th': {
|
|
16453
16520
|
paddingLeft: '$spacing-05'
|
|
@@ -16456,10 +16523,10 @@ const TableHeadRow$3 = styled('tr', {
|
|
|
16456
16523
|
padding: 0
|
|
16457
16524
|
}
|
|
16458
16525
|
});
|
|
16459
|
-
const TableHeadCell$
|
|
16526
|
+
const TableHeadCell$4 = styled('th', {
|
|
16460
16527
|
height: '40px'
|
|
16461
16528
|
});
|
|
16462
|
-
const TableRow$
|
|
16529
|
+
const TableRow$4 = styled('tr', {
|
|
16463
16530
|
borderBottom: '1pt solid $bgBorder',
|
|
16464
16531
|
'& td': {
|
|
16465
16532
|
paddingLeft: '$spacing-05'
|
|
@@ -16468,7 +16535,7 @@ const TableRow$3 = styled('tr', {
|
|
|
16468
16535
|
padding: 0
|
|
16469
16536
|
}
|
|
16470
16537
|
});
|
|
16471
|
-
const TableCell$
|
|
16538
|
+
const TableCell$4 = styled('td', {
|
|
16472
16539
|
height: '40px',
|
|
16473
16540
|
fontSize: '$short-content-regular',
|
|
16474
16541
|
lineHeight: '$short-content-regular',
|
|
@@ -16502,16 +16569,16 @@ const MobileTable = /*#__PURE__*/React__default.forwardRef(({
|
|
|
16502
16569
|
sortBy
|
|
16503
16570
|
}
|
|
16504
16571
|
} = instance;
|
|
16505
|
-
return jsx(TableContainer$
|
|
16572
|
+
return jsx(TableContainer$4, Object.assign({
|
|
16506
16573
|
css: css,
|
|
16507
16574
|
ref: ref
|
|
16508
16575
|
}, {
|
|
16509
|
-
children: infiniteScrollWrapper(jsxs(TableContent$
|
|
16510
|
-
children: [jsx(TableHead$
|
|
16511
|
-
children: headerGroups.map(headerGroup => jsx(TableHeadRow$
|
|
16576
|
+
children: infiniteScrollWrapper(jsxs(TableContent$3, Object.assign({}, getTableProps(), {
|
|
16577
|
+
children: [jsx(TableHead$3, {
|
|
16578
|
+
children: headerGroups.map(headerGroup => jsx(TableHeadRow$4, Object.assign({}, headerGroup.getHeaderGroupProps(), {
|
|
16512
16579
|
children: headerGroup.headers.filter(column => column.isMobileHeader || column.id === 'selection').map(column => {
|
|
16513
16580
|
const headerRender = column.render('Header');
|
|
16514
|
-
return jsx(TableHeadCell$
|
|
16581
|
+
return jsx(TableHeadCell$4, Object.assign({}, column.getHeaderProps(!column.unsortable ? column.getSortByToggleProps({
|
|
16515
16582
|
title: 'Urutkan'
|
|
16516
16583
|
}) : {}), {
|
|
16517
16584
|
children: typeof headerRender === 'string' ? jsx(TableHeaderCellContainer, Object.assign({
|
|
@@ -16530,7 +16597,7 @@ const MobileTable = /*#__PURE__*/React__default.forwardRef(({
|
|
|
16530
16597
|
}), void 0);
|
|
16531
16598
|
})
|
|
16532
16599
|
}), void 0))
|
|
16533
|
-
}, void 0), jsx(TableBody$
|
|
16600
|
+
}, void 0), jsx(TableBody$3, Object.assign({}, getTableBodyProps(), {
|
|
16534
16601
|
children: page.map(row => {
|
|
16535
16602
|
prepareRow(row);
|
|
16536
16603
|
const actionCells = row.allCells.filter(cell => cell.column.id === 'menu' || cell.column.isAction);
|
|
@@ -16551,11 +16618,11 @@ const MobileTable = /*#__PURE__*/React__default.forwardRef(({
|
|
|
16551
16618
|
variant: "contentButton"
|
|
16552
16619
|
}, {
|
|
16553
16620
|
children: row.cells[0].render('Cell')
|
|
16554
|
-
}), void 0)), jsx(TableRow$
|
|
16621
|
+
}), void 0)), jsx(TableRow$4, Object.assign({
|
|
16555
16622
|
css: customStyle
|
|
16556
16623
|
}, row.getRowProps(), {
|
|
16557
16624
|
children: row.cells.filter(cell => cell.column.isMobileHeader || cell.column.id === 'selection').map(cell => {
|
|
16558
|
-
return jsx(TableCell$
|
|
16625
|
+
return jsx(TableCell$4, Object.assign({}, cell.getCellProps(addOnCellStyle(cell.column.id)), {
|
|
16559
16626
|
children: cell.column.accessor ? jsxs(Flex$1, Object.assign({
|
|
16560
16627
|
justify: "between",
|
|
16561
16628
|
align: "center",
|
|
@@ -16574,8 +16641,8 @@ const MobileTable = /*#__PURE__*/React__default.forwardRef(({
|
|
|
16574
16641
|
}), void 0) : cell.render('Cell')
|
|
16575
16642
|
}), void 0);
|
|
16576
16643
|
})
|
|
16577
|
-
}), void 0), ((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.showGroupingWhenSorted) || sortBy.length <= 0) && row.original['isBottomChild'] && !!(rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender) && (rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender(row)), row.isExpanded ? jsx(TableRow$
|
|
16578
|
-
children: jsxs(TableCell$
|
|
16644
|
+
}), void 0), ((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.showGroupingWhenSorted) || sortBy.length <= 0) && row.original['isBottomChild'] && !!(rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender) && (rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender(row)), row.isExpanded ? jsx(TableRow$4, {
|
|
16645
|
+
children: jsxs(TableCell$4, Object.assign({
|
|
16579
16646
|
colSpan: visibleColumns.length
|
|
16580
16647
|
}, {
|
|
16581
16648
|
children: [jsx(Flex$1, Object.assign({
|
|
@@ -16642,7 +16709,7 @@ const MobileTable = /*#__PURE__*/React__default.forwardRef(({
|
|
|
16642
16709
|
}), void 0);
|
|
16643
16710
|
});
|
|
16644
16711
|
|
|
16645
|
-
const TableContainer$
|
|
16712
|
+
const TableContainer$3 = styled('div', {
|
|
16646
16713
|
display: 'block',
|
|
16647
16714
|
flexDirection: 'column',
|
|
16648
16715
|
maxWidth: '100%',
|
|
@@ -16650,7 +16717,7 @@ const TableContainer$2 = styled('div', {
|
|
|
16650
16717
|
height: '100%',
|
|
16651
16718
|
overflow: 'auto'
|
|
16652
16719
|
});
|
|
16653
|
-
const TableContent$
|
|
16720
|
+
const TableContent$3 = styled('table', {
|
|
16654
16721
|
width: '100%',
|
|
16655
16722
|
borderSpacing: 0,
|
|
16656
16723
|
borderCollapse: 'collapse',
|
|
@@ -16658,7 +16725,7 @@ const TableContent$2 = styled('table', {
|
|
|
16658
16725
|
backgroundColor: '$bgWhite'
|
|
16659
16726
|
}
|
|
16660
16727
|
});
|
|
16661
|
-
const TableHead$
|
|
16728
|
+
const TableHead$3 = styled('thead', {
|
|
16662
16729
|
position: 'sticky',
|
|
16663
16730
|
top: 0,
|
|
16664
16731
|
backgroundColor: '$bgWhite',
|
|
@@ -16666,8 +16733,8 @@ const TableHead$2 = styled('thead', {
|
|
|
16666
16733
|
borderBottom: '1pt solid $bgBorder',
|
|
16667
16734
|
color: '$textPrimary'
|
|
16668
16735
|
});
|
|
16669
|
-
const TableHeadRow$
|
|
16670
|
-
const TableHeadCell$
|
|
16736
|
+
const TableHeadRow$3 = styled('tr');
|
|
16737
|
+
const TableHeadCell$3 = styled('th', {
|
|
16671
16738
|
height: '64px'
|
|
16672
16739
|
});
|
|
16673
16740
|
const TableHeaderCellContainer = styled(Flex$1, {
|
|
@@ -16768,8 +16835,8 @@ const TableHeadCellContent = styled(Heading, {
|
|
|
16768
16835
|
}
|
|
16769
16836
|
}
|
|
16770
16837
|
});
|
|
16771
|
-
const TableBody$
|
|
16772
|
-
const TableRow$
|
|
16838
|
+
const TableBody$3 = styled('tbody', {});
|
|
16839
|
+
const TableRow$3 = styled('tr', {
|
|
16773
16840
|
borderBottom: '1pt solid $bgBorder',
|
|
16774
16841
|
'&:hover': {
|
|
16775
16842
|
backgroundColor: '$bgGray',
|
|
@@ -16789,7 +16856,7 @@ const TableRow$2 = styled('tr', {
|
|
|
16789
16856
|
}
|
|
16790
16857
|
}
|
|
16791
16858
|
});
|
|
16792
|
-
const TableCell$
|
|
16859
|
+
const TableCell$3 = styled('td', {
|
|
16793
16860
|
height: '68px',
|
|
16794
16861
|
fontSize: '$short-content-regular',
|
|
16795
16862
|
lineHeight: '$short-content-regular',
|
|
@@ -17068,20 +17135,20 @@ function Table({
|
|
|
17068
17135
|
children: "Loading .... "
|
|
17069
17136
|
}), void 0)
|
|
17070
17137
|
}), void 0), !isMobile ? jsxs(Fragment, {
|
|
17071
|
-
children: [jsx(TableContainer$
|
|
17138
|
+
children: [jsx(TableContainer$3, Object.assign({
|
|
17072
17139
|
css: css,
|
|
17073
17140
|
ref: scrollerRef
|
|
17074
17141
|
}, {
|
|
17075
|
-
children: renderInfiniteScrollWrapper(jsxs(TableContent$
|
|
17076
|
-
children: [jsx(TableHead$
|
|
17142
|
+
children: renderInfiniteScrollWrapper(jsxs(TableContent$3, Object.assign({}, getTableProps(), {
|
|
17143
|
+
children: [jsx(TableHead$3, Object.assign({
|
|
17077
17144
|
css: headerCss
|
|
17078
17145
|
}, {
|
|
17079
17146
|
children: headerGroups.map(headerGroup => {
|
|
17080
17147
|
const visibleHeaders = headerGroup.headers.filter(column => !column.isSubRow);
|
|
17081
|
-
return jsx(TableHeadRow$
|
|
17148
|
+
return jsx(TableHeadRow$3, Object.assign({}, headerGroup.getHeaderGroupProps(), {
|
|
17082
17149
|
children: visibleHeaders.map((column, index) => {
|
|
17083
17150
|
const headerRender = column.render('Header');
|
|
17084
|
-
return jsx(TableHeadCell$
|
|
17151
|
+
return jsx(TableHeadCell$3, Object.assign({}, column.getHeaderProps(props => [props, // column.getSortByToggleProps && !column.unsortable
|
|
17085
17152
|
!column.unsortable ? column.getSortByToggleProps({
|
|
17086
17153
|
title: 'Urutkan'
|
|
17087
17154
|
}) : {}, {
|
|
@@ -17123,7 +17190,7 @@ function Table({
|
|
|
17123
17190
|
})
|
|
17124
17191
|
}), void 0);
|
|
17125
17192
|
})
|
|
17126
|
-
}), void 0), jsx(TableBody$
|
|
17193
|
+
}), void 0), jsx(TableBody$3, Object.assign({}, getTableBodyProps(), {
|
|
17127
17194
|
children: page.map((row, i) => {
|
|
17128
17195
|
var _a;
|
|
17129
17196
|
|
|
@@ -17146,11 +17213,11 @@ function Table({
|
|
|
17146
17213
|
variant: "contentButton"
|
|
17147
17214
|
}, {
|
|
17148
17215
|
children: row.cells[0].render('Cell')
|
|
17149
|
-
}), void 0)), jsx(TableRow$
|
|
17216
|
+
}), void 0)), jsx(TableRow$3, Object.assign({
|
|
17150
17217
|
css: customStyle
|
|
17151
17218
|
}, row.getRowProps(), {
|
|
17152
17219
|
children: row.cells.filter(cell => !cell.column.isSubRow).map(cell => {
|
|
17153
|
-
return jsx(TableCell$
|
|
17220
|
+
return jsx(TableCell$3, Object.assign({}, cell.getCellProps(addOnCellStyle(cell.column.id)), {
|
|
17154
17221
|
css: Object.assign({
|
|
17155
17222
|
padding: cell.column.accessor ? '20px 8px' : '20px 20px',
|
|
17156
17223
|
verticalAlign: cell.column.accessor ? cellAlign : 'center'
|
|
@@ -17159,11 +17226,11 @@ function Table({
|
|
|
17159
17226
|
children: cell.render('Cell')
|
|
17160
17227
|
}), void 0);
|
|
17161
17228
|
})
|
|
17162
|
-
}), void 0), ((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.showGroupingWhenSorted) || sortBy.length <= 0) && row.original['isBottomChild'] && !!(rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender) && (rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender(row)), row.isExpanded ? subRowCells.map((cell, index) => jsxs(TableRow$
|
|
17229
|
+
}), void 0), ((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.showGroupingWhenSorted) || sortBy.length <= 0) && row.original['isBottomChild'] && !!(rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender) && (rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender(row)), row.isExpanded ? subRowCells.map((cell, index) => jsxs(TableRow$3, Object.assign({
|
|
17163
17230
|
subRow: true
|
|
17164
17231
|
}, {
|
|
17165
17232
|
children: [leftAddOnCells.map((_, index) => jsx("td", {}, index)), jsxs(React.Fragment, {
|
|
17166
|
-
children: [jsx(TableCell$
|
|
17233
|
+
children: [jsx(TableCell$3, Object.assign({
|
|
17167
17234
|
subCell: true,
|
|
17168
17235
|
colSpan: notNullHeaderColumns.length > 5 ? 2 : 1,
|
|
17169
17236
|
headerSubCell: true,
|
|
@@ -17177,7 +17244,7 @@ function Table({
|
|
|
17177
17244
|
}, {
|
|
17178
17245
|
children: cell.column.Header
|
|
17179
17246
|
}), void 0)
|
|
17180
|
-
}), void 0), jsx(TableCell$
|
|
17247
|
+
}), void 0), jsx(TableCell$3, Object.assign({
|
|
17181
17248
|
subCell: true,
|
|
17182
17249
|
colSpan: visibleColumns.length - subRowCells.length,
|
|
17183
17250
|
css: {
|
|
@@ -26365,29 +26432,29 @@ Collapalse.defaultProps = {
|
|
|
26365
26432
|
isOpen: false
|
|
26366
26433
|
};
|
|
26367
26434
|
|
|
26368
|
-
const TableContainer$
|
|
26435
|
+
const TableContainer$2 = styled('div', {
|
|
26369
26436
|
display: 'block',
|
|
26370
26437
|
flexDirection: 'column',
|
|
26371
26438
|
maxWidth: '100%',
|
|
26372
26439
|
position: 'relative',
|
|
26373
26440
|
height: '100%'
|
|
26374
26441
|
});
|
|
26375
|
-
const TableContent$
|
|
26442
|
+
const TableContent$2 = styled('table', {
|
|
26376
26443
|
width: '100%',
|
|
26377
26444
|
borderSpacing: 0,
|
|
26378
26445
|
borderCollapse: 'collapse'
|
|
26379
26446
|
});
|
|
26380
|
-
const TableHead$
|
|
26447
|
+
const TableHead$2 = styled('thead', {
|
|
26381
26448
|
position: 'sticky',
|
|
26382
26449
|
top: 0,
|
|
26383
26450
|
backgroundColor: '$gray50',
|
|
26384
26451
|
boxShadow: '0 4px 4px rgba(0, 0, 0, 0.025)',
|
|
26385
26452
|
zIndex: 10
|
|
26386
26453
|
});
|
|
26387
|
-
const TableHeadRow$
|
|
26454
|
+
const TableHeadRow$2 = styled('tr', {
|
|
26388
26455
|
borderBottom: '1pt solid $bgBorder'
|
|
26389
26456
|
});
|
|
26390
|
-
const TableHeadCell$
|
|
26457
|
+
const TableHeadCell$2 = styled('th', {
|
|
26391
26458
|
height: '41px',
|
|
26392
26459
|
fontSize: '$header-table',
|
|
26393
26460
|
fontWeight: 600,
|
|
@@ -26395,8 +26462,8 @@ const TableHeadCell$1 = styled('th', {
|
|
|
26395
26462
|
textAlign: 'left',
|
|
26396
26463
|
paddingLeft: 8
|
|
26397
26464
|
});
|
|
26398
|
-
const TableBody$
|
|
26399
|
-
const TableRow$
|
|
26465
|
+
const TableBody$2 = styled('tbody', {});
|
|
26466
|
+
const TableRow$2 = styled('tr', {
|
|
26400
26467
|
'&:hover': {
|
|
26401
26468
|
backgroundColor: '$bgGray'
|
|
26402
26469
|
}
|
|
@@ -26407,7 +26474,7 @@ const TableRowCollapse = styled('tr', {
|
|
|
26407
26474
|
backgroundColor: '$bgGray'
|
|
26408
26475
|
}
|
|
26409
26476
|
});
|
|
26410
|
-
const TableCell$
|
|
26477
|
+
const TableCell$2 = styled('td', {
|
|
26411
26478
|
fontSize: '$short-content-regular',
|
|
26412
26479
|
lineHeight: '$short-content-regular',
|
|
26413
26480
|
letterSpacing: '$short-content-regular',
|
|
@@ -26437,7 +26504,7 @@ const TableCellCollapse = styled('td', {
|
|
|
26437
26504
|
paddingRight: 16
|
|
26438
26505
|
}
|
|
26439
26506
|
});
|
|
26440
|
-
const Required$
|
|
26507
|
+
const Required$2 = styled('span', {
|
|
26441
26508
|
marginLeft: 4,
|
|
26442
26509
|
color: '$textRed !important'
|
|
26443
26510
|
});
|
|
@@ -26455,14 +26522,14 @@ function EditableTableMobile(props) {
|
|
|
26455
26522
|
state,
|
|
26456
26523
|
toggleAllRowsExpanded
|
|
26457
26524
|
} = instance;
|
|
26458
|
-
return jsx(TableContainer$
|
|
26525
|
+
return jsx(TableContainer$2, Object.assign({
|
|
26459
26526
|
css: props === null || props === void 0 ? void 0 : props.css
|
|
26460
26527
|
}, {
|
|
26461
|
-
children: jsxs(TableContent$
|
|
26462
|
-
children: [jsx(TableHead$
|
|
26463
|
-
children: headerGroups.map((headerGroup, index) => /*#__PURE__*/createElement$2(TableHeadRow$
|
|
26528
|
+
children: jsxs(TableContent$2, Object.assign({}, getTableProps(), {
|
|
26529
|
+
children: [jsx(TableHead$2, {
|
|
26530
|
+
children: headerGroups.map((headerGroup, index) => /*#__PURE__*/createElement$2(TableHeadRow$2, Object.assign({}, headerGroup.getHeaderGroupProps(), {
|
|
26464
26531
|
key: index
|
|
26465
|
-
}), headerGroup.headers.map((column, index) => (column === null || column === void 0 ? void 0 : column.isMobileHeader) && /*#__PURE__*/createElement$2(TableHeadCell$
|
|
26532
|
+
}), headerGroup.headers.map((column, index) => (column === null || column === void 0 ? void 0 : column.isMobileHeader) && /*#__PURE__*/createElement$2(TableHeadCell$2, Object.assign({}, column.getHeaderProps({
|
|
26466
26533
|
style: {
|
|
26467
26534
|
minWidth: column.minWidth,
|
|
26468
26535
|
width: column.width,
|
|
@@ -26470,17 +26537,17 @@ function EditableTableMobile(props) {
|
|
|
26470
26537
|
}
|
|
26471
26538
|
}), {
|
|
26472
26539
|
key: index
|
|
26473
|
-
}), column.render('Header'), (column === null || column === void 0 ? void 0 : column.isRequired) ? jsx(Required$
|
|
26540
|
+
}), column.render('Header'), (column === null || column === void 0 ? void 0 : column.isRequired) ? jsx(Required$2, {
|
|
26474
26541
|
children: "*"
|
|
26475
26542
|
}, void 0) : ''))))
|
|
26476
|
-
}, void 0), jsx(TableBody$
|
|
26543
|
+
}, void 0), jsx(TableBody$2, Object.assign({}, getTableBodyProps(), {
|
|
26477
26544
|
children: rows.map((row, index) => {
|
|
26478
26545
|
prepareRow(row);
|
|
26479
26546
|
return jsxs(React__default.Fragment, {
|
|
26480
|
-
children: [/*#__PURE__*/createElement$2(TableRow$
|
|
26547
|
+
children: [/*#__PURE__*/createElement$2(TableRow$2, Object.assign({}, row.getRowProps(), {
|
|
26481
26548
|
key: `row_mobile_${index}`
|
|
26482
26549
|
}), row.cells.map((cell, index) => {
|
|
26483
|
-
return cell.column.isMobileHeader && /*#__PURE__*/createElement$2(TableCell$
|
|
26550
|
+
return cell.column.isMobileHeader && /*#__PURE__*/createElement$2(TableCell$2, Object.assign({}, cell.getCellProps({
|
|
26484
26551
|
style: {
|
|
26485
26552
|
minWidth: cell.column.minWidth,
|
|
26486
26553
|
width: cell.column.width,
|
|
@@ -26494,20 +26561,20 @@ function EditableTableMobile(props) {
|
|
|
26494
26561
|
css: {
|
|
26495
26562
|
cursor: 'pointer',
|
|
26496
26563
|
minHeight: 40
|
|
26497
|
-
},
|
|
26498
|
-
onClick: () => {
|
|
26499
|
-
if (!Object.keys(state.expanded).includes(row.id)) {
|
|
26500
|
-
toggleAllRowsExpanded(false);
|
|
26501
|
-
}
|
|
26502
|
-
|
|
26503
|
-
row.toggleRowExpanded(!row.isExpanded);
|
|
26504
26564
|
}
|
|
26505
26565
|
}, {
|
|
26506
26566
|
children: [jsx(Box, {
|
|
26507
26567
|
children: cell.render('Cell')
|
|
26508
26568
|
}, void 0), jsx(Flex$1, Object.assign({
|
|
26509
26569
|
justify: "center",
|
|
26510
|
-
align: "center"
|
|
26570
|
+
align: "center",
|
|
26571
|
+
onClick: () => {
|
|
26572
|
+
if (!Object.keys(state.expanded).includes(row.id)) {
|
|
26573
|
+
toggleAllRowsExpanded(false);
|
|
26574
|
+
}
|
|
26575
|
+
|
|
26576
|
+
row.toggleRowExpanded(!row.isExpanded);
|
|
26577
|
+
}
|
|
26511
26578
|
}, {
|
|
26512
26579
|
children: row.isExpanded ? jsx(ChevronUpOutline, {}, void 0) : jsx(ChevronDownOutline, {}, void 0)
|
|
26513
26580
|
}), void 0)]
|
|
@@ -26557,7 +26624,7 @@ function EditableTableMobile(props) {
|
|
|
26557
26624
|
color: "secondary"
|
|
26558
26625
|
}, {
|
|
26559
26626
|
children: typeof headerRender === 'string' ? jsxs(Fragment, {
|
|
26560
|
-
children: [headerRender === null || headerRender === void 0 ? void 0 : headerRender.toUpperCase(), ((_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.isRequired) ? jsx(Required$
|
|
26627
|
+
children: [headerRender === null || headerRender === void 0 ? void 0 : headerRender.toUpperCase(), ((_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.isRequired) ? jsx(Required$2, {
|
|
26561
26628
|
children: "*"
|
|
26562
26629
|
}, void 0) : '']
|
|
26563
26630
|
}, void 0) : headerRender
|
|
@@ -26605,7 +26672,7 @@ function EditableTableMobile(props) {
|
|
|
26605
26672
|
}), void 0);
|
|
26606
26673
|
}
|
|
26607
26674
|
|
|
26608
|
-
const TableContainer = styled('div', {
|
|
26675
|
+
const TableContainer$1 = styled('div', {
|
|
26609
26676
|
display: 'block',
|
|
26610
26677
|
flexDirection: 'column',
|
|
26611
26678
|
maxWidth: '100%',
|
|
@@ -26613,22 +26680,22 @@ const TableContainer = styled('div', {
|
|
|
26613
26680
|
height: '100%',
|
|
26614
26681
|
overflow: 'auto'
|
|
26615
26682
|
});
|
|
26616
|
-
const TableContent = styled('table', {
|
|
26683
|
+
const TableContent$1 = styled('table', {
|
|
26617
26684
|
width: '100%',
|
|
26618
26685
|
borderSpacing: 0,
|
|
26619
26686
|
borderCollapse: 'collapse'
|
|
26620
26687
|
});
|
|
26621
|
-
const TableHead = styled('thead', {
|
|
26688
|
+
const TableHead$1 = styled('thead', {
|
|
26622
26689
|
position: 'sticky',
|
|
26623
26690
|
top: 0,
|
|
26624
26691
|
backgroundColor: '$gray50',
|
|
26625
26692
|
boxShadow: '0 4px 4px rgba(0, 0, 0, 0.025)',
|
|
26626
26693
|
zIndex: 10
|
|
26627
26694
|
});
|
|
26628
|
-
const TableHeadRow = styled('tr', {
|
|
26695
|
+
const TableHeadRow$1 = styled('tr', {
|
|
26629
26696
|
borderBottom: '1pt solid $bgBorder'
|
|
26630
26697
|
});
|
|
26631
|
-
const TableHeadCell = styled('th', {
|
|
26698
|
+
const TableHeadCell$1 = styled('th', {
|
|
26632
26699
|
height: '48px',
|
|
26633
26700
|
fontSize: '$header-table',
|
|
26634
26701
|
fontWeight: 600,
|
|
@@ -26636,8 +26703,8 @@ const TableHeadCell = styled('th', {
|
|
|
26636
26703
|
textAlign: 'left',
|
|
26637
26704
|
paddingLeft: 8
|
|
26638
26705
|
});
|
|
26639
|
-
const TableBody = styled('tbody', {});
|
|
26640
|
-
const TableRow = styled('tr', {
|
|
26706
|
+
const TableBody$1 = styled('tbody', {});
|
|
26707
|
+
const TableRow$1 = styled('tr', {
|
|
26641
26708
|
borderTop: '1pt solid $bgBorder',
|
|
26642
26709
|
'&:last-child': {
|
|
26643
26710
|
borderBottom: '1pt solid $bgBorder'
|
|
@@ -26654,7 +26721,7 @@ const TableRow = styled('tr', {
|
|
|
26654
26721
|
}
|
|
26655
26722
|
}
|
|
26656
26723
|
});
|
|
26657
|
-
const TableCell = styled('td', {
|
|
26724
|
+
const TableCell$1 = styled('td', {
|
|
26658
26725
|
fontSize: '$short-content-regular',
|
|
26659
26726
|
lineHeight: '$short-content-regular',
|
|
26660
26727
|
letterSpacing: '$short-content-regular',
|
|
@@ -26683,7 +26750,7 @@ const TableCell = styled('td', {
|
|
|
26683
26750
|
}
|
|
26684
26751
|
}
|
|
26685
26752
|
});
|
|
26686
|
-
const TableCellContent = styled('div', {
|
|
26753
|
+
const TableCellContent$1 = styled('div', {
|
|
26687
26754
|
height: '100%',
|
|
26688
26755
|
paddingTop: 10,
|
|
26689
26756
|
paddingBottom: 10,
|
|
@@ -26774,7 +26841,7 @@ const RemoveIcon = styled(RemoveOutline, {
|
|
|
26774
26841
|
const Input$1 = styled(InputText, {
|
|
26775
26842
|
height: '32px !important'
|
|
26776
26843
|
});
|
|
26777
|
-
const Required = styled('span', {
|
|
26844
|
+
const Required$1 = styled('span', {
|
|
26778
26845
|
marginLeft: 4,
|
|
26779
26846
|
color: '$textRed !important'
|
|
26780
26847
|
});
|
|
@@ -26896,7 +26963,8 @@ function EditableTable(props) {
|
|
|
26896
26963
|
data,
|
|
26897
26964
|
emptyDataMessage,
|
|
26898
26965
|
rowHeight,
|
|
26899
|
-
align
|
|
26966
|
+
align,
|
|
26967
|
+
customRows
|
|
26900
26968
|
} = props;
|
|
26901
26969
|
const instance = useTable({
|
|
26902
26970
|
columns,
|
|
@@ -26912,38 +26980,61 @@ function EditableTable(props) {
|
|
|
26912
26980
|
visibleColumns
|
|
26913
26981
|
} = instance;
|
|
26914
26982
|
const isDesktop = useMediaQuery('(min-width: 767px)');
|
|
26915
|
-
return isDesktop ? jsx(TableContainer, Object.assign({
|
|
26983
|
+
return isDesktop ? jsx(TableContainer$1, Object.assign({
|
|
26916
26984
|
css: props === null || props === void 0 ? void 0 : props.css
|
|
26917
26985
|
}, {
|
|
26918
|
-
children: jsxs(TableContent, Object.assign({}, getTableProps(), {
|
|
26919
|
-
children: [jsx(TableHead, {
|
|
26986
|
+
children: jsxs(TableContent$1, Object.assign({}, getTableProps(), {
|
|
26987
|
+
children: [jsx(TableHead$1, {
|
|
26920
26988
|
children: headerGroups.map(headerGroup => {
|
|
26921
26989
|
const visibleHeaders = headerGroup.headers.filter(column => !column.isSubRow);
|
|
26922
|
-
return jsx(TableHeadRow, Object.assign({}, headerGroup.getHeaderGroupProps(), {
|
|
26923
|
-
children: visibleHeaders.map(column => !(column === null || column === void 0 ? void 0 : column.isMobileOnly) && jsxs(TableHeadCell, Object.assign({}, column.getHeaderProps({
|
|
26990
|
+
return jsx(TableHeadRow$1, Object.assign({}, headerGroup.getHeaderGroupProps(), {
|
|
26991
|
+
children: visibleHeaders.map(column => !(column === null || column === void 0 ? void 0 : column.isMobileOnly) && jsxs(TableHeadCell$1, Object.assign({}, column.getHeaderProps({
|
|
26924
26992
|
style: {
|
|
26925
26993
|
minWidth: column.minWidth,
|
|
26926
26994
|
width: column.width,
|
|
26927
26995
|
maxWidth: column.maxWidth
|
|
26928
26996
|
}
|
|
26929
26997
|
}), {
|
|
26930
|
-
children: [column.render('Header'), (column === null || column === void 0 ? void 0 : column.isRequired) ? jsx(Required, {
|
|
26998
|
+
children: [column.render('Header'), (column === null || column === void 0 ? void 0 : column.isRequired) ? jsx(Required$1, {
|
|
26931
26999
|
children: "*"
|
|
26932
27000
|
}, void 0) : '']
|
|
26933
27001
|
}), void 0))
|
|
26934
27002
|
}), void 0);
|
|
26935
27003
|
})
|
|
26936
|
-
}, void 0), jsx(TableBody, Object.assign({}, getTableBodyProps(), {
|
|
27004
|
+
}, void 0), jsx(TableBody$1, Object.assign({}, getTableBodyProps(), {
|
|
26937
27005
|
children: rows.map((row, index) => {
|
|
27006
|
+
var _a;
|
|
27007
|
+
|
|
26938
27008
|
prepareRow(row);
|
|
26939
27009
|
const subRowCells = row.cells.filter(cell => cell.column.isSubRow);
|
|
26940
27010
|
const notNullHeaderColumns = visibleColumns.filter(column => typeof column.Header !== 'function' && column.Header !== null && !column.isSubRow);
|
|
27011
|
+
let customStyle = {};
|
|
27012
|
+
let CustomRow;
|
|
27013
|
+
|
|
27014
|
+
if (customRows && customRows(row).length) {
|
|
27015
|
+
for (let i = 0; i < customRows(row).length; i++) {
|
|
27016
|
+
if (customRows(row)[i].predicate) {
|
|
27017
|
+
customStyle = (_a = customRows(row)[i]) === null || _a === void 0 ? void 0 : _a.css;
|
|
27018
|
+
|
|
27019
|
+
CustomRow = () => {
|
|
27020
|
+
var _a;
|
|
27021
|
+
|
|
27022
|
+
return (_a = customRows(row)[i]) === null || _a === void 0 ? void 0 : _a.Row(row.values);
|
|
27023
|
+
};
|
|
27024
|
+
}
|
|
27025
|
+
}
|
|
27026
|
+
}
|
|
27027
|
+
|
|
26941
27028
|
return jsxs(React__default.Fragment, {
|
|
26942
|
-
children: [
|
|
27029
|
+
children: [CustomRow ? jsx(CustomRow, {
|
|
27030
|
+
style: customStyle
|
|
27031
|
+
}, void 0) : jsx(TableRow$1, Object.assign({
|
|
27032
|
+
css: customStyle
|
|
27033
|
+
}, row.getRowProps(), {
|
|
26943
27034
|
children: row.cells.filter(cell => !cell.column.isSubRow).map(cell => {
|
|
26944
27035
|
var _a;
|
|
26945
27036
|
|
|
26946
|
-
return !((_a = cell.column) === null || _a === void 0 ? void 0 : _a.isMobileOnly) && jsx(TableCell, Object.assign({}, cell.getCellProps({
|
|
27037
|
+
return !((_a = cell.column) === null || _a === void 0 ? void 0 : _a.isMobileOnly) && jsx(TableCell$1, Object.assign({}, cell.getCellProps({
|
|
26947
27038
|
style: {
|
|
26948
27039
|
minWidth: cell.column.minWidth,
|
|
26949
27040
|
width: cell.column.width,
|
|
@@ -26956,7 +27047,7 @@ function EditableTable(props) {
|
|
|
26956
27047
|
}
|
|
26957
27048
|
}
|
|
26958
27049
|
}, {
|
|
26959
|
-
children: jsx(TableCellContent, Object.assign({
|
|
27050
|
+
children: jsx(TableCellContent$1, Object.assign({
|
|
26960
27051
|
align: align
|
|
26961
27052
|
}, {
|
|
26962
27053
|
children: cell.render('Cell')
|
|
@@ -26966,11 +27057,11 @@ function EditableTable(props) {
|
|
|
26966
27057
|
}), void 0), subRowCells.map(cell => {
|
|
26967
27058
|
var _a;
|
|
26968
27059
|
|
|
26969
|
-
return jsx(TableRow, Object.assign({
|
|
27060
|
+
return jsx(TableRow$1, Object.assign({
|
|
26970
27061
|
subRow: true
|
|
26971
27062
|
}, {
|
|
26972
27063
|
children: jsxs(React__default.Fragment, {
|
|
26973
|
-
children: [jsx(TableCell, Object.assign({
|
|
27064
|
+
children: [jsx(TableCell$1, Object.assign({
|
|
26974
27065
|
subCell: true,
|
|
26975
27066
|
colSpan: notNullHeaderColumns.length > 5 ? 2 : 1,
|
|
26976
27067
|
headerSubCell: true,
|
|
@@ -26988,7 +27079,7 @@ function EditableTable(props) {
|
|
|
26988
27079
|
}, {
|
|
26989
27080
|
children: cell.column.Header
|
|
26990
27081
|
}), void 0)
|
|
26991
|
-
}), void 0), jsx(TableCell, Object.assign({
|
|
27082
|
+
}), void 0), jsx(TableCell$1, Object.assign({
|
|
26992
27083
|
subCell: true,
|
|
26993
27084
|
colSpan: visibleColumns.length - subRowCells.length,
|
|
26994
27085
|
css: {
|
|
@@ -27041,6 +27132,8 @@ EditableTable.Product = Product;
|
|
|
27041
27132
|
EditableTable.Input = Input$1;
|
|
27042
27133
|
EditableTable.Switch = Switch;
|
|
27043
27134
|
EditableTable.Remove = Remove;
|
|
27135
|
+
EditableTable.TableRow = TableRow$1;
|
|
27136
|
+
EditableTable.TableCell = TableCell$1;
|
|
27044
27137
|
|
|
27045
27138
|
const Container$3 = styled$1('div', {});
|
|
27046
27139
|
const ProgressText = styled$1('p', {
|
|
@@ -28870,6 +28963,292 @@ LineChart.defaultProps = {
|
|
|
28870
28963
|
period: undefined
|
|
28871
28964
|
};
|
|
28872
28965
|
|
|
28966
|
+
const TableContainer = styled('div', {
|
|
28967
|
+
display: 'block',
|
|
28968
|
+
flexDirection: 'column',
|
|
28969
|
+
maxWidth: '100%',
|
|
28970
|
+
position: 'relative',
|
|
28971
|
+
height: '100%',
|
|
28972
|
+
overflow: 'auto'
|
|
28973
|
+
});
|
|
28974
|
+
const TableContent = styled('table', {
|
|
28975
|
+
width: '100%',
|
|
28976
|
+
borderSpacing: 0,
|
|
28977
|
+
borderCollapse: 'collapse'
|
|
28978
|
+
});
|
|
28979
|
+
const TableHead = styled('thead', {
|
|
28980
|
+
position: 'sticky',
|
|
28981
|
+
top: 0,
|
|
28982
|
+
backgroundColor: '$white',
|
|
28983
|
+
zIndex: 10
|
|
28984
|
+
});
|
|
28985
|
+
const TableHeadRow = styled('tr', {
|
|
28986
|
+
borderBottom: '1px solid $bgBorder'
|
|
28987
|
+
});
|
|
28988
|
+
const TableHeadCell = styled('th', {
|
|
28989
|
+
height: 44,
|
|
28990
|
+
fontSize: '$header-table',
|
|
28991
|
+
fontWeight: 600,
|
|
28992
|
+
color: '$textPrimary',
|
|
28993
|
+
textAlign: 'left',
|
|
28994
|
+
paddingLeft: 8
|
|
28995
|
+
});
|
|
28996
|
+
const TableBody = styled('tbody', {});
|
|
28997
|
+
const TableRow = styled('tr', {
|
|
28998
|
+
borderTop: '1pt solid $bgBorder',
|
|
28999
|
+
'&:last-child': {
|
|
29000
|
+
borderBottom: '1pt solid $bgBorder'
|
|
29001
|
+
},
|
|
29002
|
+
'&:hover': {
|
|
29003
|
+
backgroundColor: '$bgGray'
|
|
29004
|
+
},
|
|
29005
|
+
variants: {
|
|
29006
|
+
subRow: {
|
|
29007
|
+
true: {
|
|
29008
|
+
borderTop: 'none',
|
|
29009
|
+
borderBottom: '1pt solid $bgBorder'
|
|
29010
|
+
}
|
|
29011
|
+
}
|
|
29012
|
+
}
|
|
29013
|
+
});
|
|
29014
|
+
const TableCell = styled('td', {
|
|
29015
|
+
fontSize: '$short-content-regular',
|
|
29016
|
+
lineHeight: '$short-content-regular',
|
|
29017
|
+
letterSpacing: '$short-content-regular',
|
|
29018
|
+
fontWeight: 400,
|
|
29019
|
+
color: '$textPrimary',
|
|
29020
|
+
position: 'relative',
|
|
29021
|
+
paddingLeft: 8,
|
|
29022
|
+
height: 44,
|
|
29023
|
+
'&:last-child': {
|
|
29024
|
+
paddingRight: 8
|
|
29025
|
+
},
|
|
29026
|
+
variants: {
|
|
29027
|
+
verticalAlign: {
|
|
29028
|
+
top: {
|
|
29029
|
+
verticalAlign: 'top'
|
|
29030
|
+
},
|
|
29031
|
+
middle: {
|
|
29032
|
+
verticalAlign: 'middle'
|
|
29033
|
+
},
|
|
29034
|
+
bottom: {
|
|
29035
|
+
verticalAlign: 'bottom'
|
|
29036
|
+
}
|
|
29037
|
+
}
|
|
29038
|
+
}
|
|
29039
|
+
});
|
|
29040
|
+
const TableCellContent = styled('div', {
|
|
29041
|
+
height: '100%',
|
|
29042
|
+
paddingTop: 10,
|
|
29043
|
+
paddingBottom: 10,
|
|
29044
|
+
display: 'flex',
|
|
29045
|
+
userSelect: 'none',
|
|
29046
|
+
variants: {
|
|
29047
|
+
align: {
|
|
29048
|
+
top: {
|
|
29049
|
+
alignItems: 'start'
|
|
29050
|
+
},
|
|
29051
|
+
center: {
|
|
29052
|
+
alignItems: 'center'
|
|
29053
|
+
},
|
|
29054
|
+
bottom: {
|
|
29055
|
+
alignItems: 'end'
|
|
29056
|
+
}
|
|
29057
|
+
}
|
|
29058
|
+
}
|
|
29059
|
+
});
|
|
29060
|
+
const Required = styled('span', {
|
|
29061
|
+
marginLeft: 4,
|
|
29062
|
+
color: '$textRed !important'
|
|
29063
|
+
});
|
|
29064
|
+
function CheckboxTable(props) {
|
|
29065
|
+
const {
|
|
29066
|
+
columns,
|
|
29067
|
+
data,
|
|
29068
|
+
emptyDataMessage,
|
|
29069
|
+
rowHeight,
|
|
29070
|
+
align,
|
|
29071
|
+
onChange
|
|
29072
|
+
} = props;
|
|
29073
|
+
const [datasets, setDatasets] = useState([...data]);
|
|
29074
|
+
const instance = useTable({
|
|
29075
|
+
columns,
|
|
29076
|
+
data: datasets,
|
|
29077
|
+
autoResetExpanded: false
|
|
29078
|
+
}, useExpanded);
|
|
29079
|
+
const {
|
|
29080
|
+
getTableProps,
|
|
29081
|
+
getTableBodyProps,
|
|
29082
|
+
rows,
|
|
29083
|
+
headerGroups,
|
|
29084
|
+
prepareRow,
|
|
29085
|
+
toggleAllRowsExpanded,
|
|
29086
|
+
state
|
|
29087
|
+
} = instance;
|
|
29088
|
+
return jsxs(TableContainer, Object.assign({
|
|
29089
|
+
css: props === null || props === void 0 ? void 0 : props.css
|
|
29090
|
+
}, {
|
|
29091
|
+
children: [jsxs(TableContent, Object.assign({}, getTableProps(), {
|
|
29092
|
+
children: [jsx(TableHead, {
|
|
29093
|
+
children: headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map(headerGroup => {
|
|
29094
|
+
const visibleHeaders = headerGroup.headers.filter(column => !column.isSubRow);
|
|
29095
|
+
return jsx(TableHeadRow, Object.assign({}, headerGroup.getHeaderGroupProps(), {
|
|
29096
|
+
children: visibleHeaders === null || visibleHeaders === void 0 ? void 0 : visibleHeaders.map(column => jsxs(TableHeadCell, Object.assign({}, column.getHeaderProps({
|
|
29097
|
+
style: {
|
|
29098
|
+
minWidth: column.minWidth,
|
|
29099
|
+
width: column.width,
|
|
29100
|
+
maxWidth: column.maxWidth
|
|
29101
|
+
}
|
|
29102
|
+
}), {
|
|
29103
|
+
children: [column.render('Header'), (column === null || column === void 0 ? void 0 : column.isRequired) ? jsx(Required, {
|
|
29104
|
+
children: "*"
|
|
29105
|
+
}, void 0) : '']
|
|
29106
|
+
}), void 0))
|
|
29107
|
+
}), void 0);
|
|
29108
|
+
})
|
|
29109
|
+
}, void 0), jsx(TableBody, Object.assign({}, getTableBodyProps(), {
|
|
29110
|
+
children: rows === null || rows === void 0 ? void 0 : rows.map((row, index) => {
|
|
29111
|
+
var _a, _b, _c;
|
|
29112
|
+
|
|
29113
|
+
prepareRow(row);
|
|
29114
|
+
const originalRow = row.original;
|
|
29115
|
+
return jsxs(React__default.Fragment, {
|
|
29116
|
+
children: [/*#__PURE__*/createElement$2(TableRow, Object.assign({}, row.getRowProps(), {
|
|
29117
|
+
key: index
|
|
29118
|
+
}), (_b = (_a = row === null || row === void 0 ? void 0 : row.cells) === null || _a === void 0 ? void 0 : _a.filter(cell => !cell.column.isSubRow)) === null || _b === void 0 ? void 0 : _b.map((cell, indexCell) => {
|
|
29119
|
+
var _a;
|
|
29120
|
+
|
|
29121
|
+
const column = cell.column;
|
|
29122
|
+
const originalCell = cell.row.original;
|
|
29123
|
+
return /*#__PURE__*/createElement$2(TableCell, Object.assign({}, cell.getCellProps({
|
|
29124
|
+
style: {
|
|
29125
|
+
minWidth: column.minWidth,
|
|
29126
|
+
width: column.width,
|
|
29127
|
+
maxWidth: column.maxWidth
|
|
29128
|
+
}
|
|
29129
|
+
}), {
|
|
29130
|
+
key: index + indexCell + 'tb-cell',
|
|
29131
|
+
css: {
|
|
29132
|
+
'@md': {
|
|
29133
|
+
height: rowHeight
|
|
29134
|
+
}
|
|
29135
|
+
}
|
|
29136
|
+
}), jsxs(TableCellContent, Object.assign({
|
|
29137
|
+
align: align
|
|
29138
|
+
}, {
|
|
29139
|
+
children: [indexCell === 0 && jsx(Flex$1, Object.assign({
|
|
29140
|
+
justify: "center",
|
|
29141
|
+
align: "center",
|
|
29142
|
+
css: {
|
|
29143
|
+
marginRight: 12,
|
|
29144
|
+
cursor: 'pointer',
|
|
29145
|
+
display: ((_a = originalCell === null || originalCell === void 0 ? void 0 : originalCell.detail) === null || _a === void 0 ? void 0 : _a.length) ? 'flex' : 'none'
|
|
29146
|
+
},
|
|
29147
|
+
onClick: () => {
|
|
29148
|
+
if (!Object.keys(state.expanded).includes(row.id)) {
|
|
29149
|
+
toggleAllRowsExpanded(false);
|
|
29150
|
+
}
|
|
29151
|
+
|
|
29152
|
+
row.toggleRowExpanded(!row.isExpanded);
|
|
29153
|
+
}
|
|
29154
|
+
}, {
|
|
29155
|
+
children: row.isExpanded ? jsx(ChevronUpOutline, {}, void 0) : jsx(ChevronDownOutline, {}, void 0)
|
|
29156
|
+
}), void 0), cell.render('Cell')]
|
|
29157
|
+
}), void 0));
|
|
29158
|
+
})), (_c = originalRow === null || originalRow === void 0 ? void 0 : originalRow.detail) === null || _c === void 0 ? void 0 : _c.map((cell, index) => {
|
|
29159
|
+
const id_row = originalRow === null || originalRow === void 0 ? void 0 : originalRow.id;
|
|
29160
|
+
const {
|
|
29161
|
+
id: id_subrow,
|
|
29162
|
+
name,
|
|
29163
|
+
detail_method
|
|
29164
|
+
} = cell;
|
|
29165
|
+
const headerRender = name;
|
|
29166
|
+
return /*#__PURE__*/createElement$2(TableRow, Object.assign({}, row.getRowProps(), {
|
|
29167
|
+
key: `row_collapse_${index}`,
|
|
29168
|
+
css: {
|
|
29169
|
+
display: row.isExpanded ? 'table-row' : 'none'
|
|
29170
|
+
}
|
|
29171
|
+
}), jsx(TableCell, Object.assign({
|
|
29172
|
+
css: {
|
|
29173
|
+
'@md': {
|
|
29174
|
+
height: rowHeight
|
|
29175
|
+
}
|
|
29176
|
+
}
|
|
29177
|
+
}, {
|
|
29178
|
+
children: jsx(Box, Object.assign({
|
|
29179
|
+
css: {
|
|
29180
|
+
paddingLeft: 36
|
|
29181
|
+
}
|
|
29182
|
+
}, {
|
|
29183
|
+
children: headerRender
|
|
29184
|
+
}), void 0)
|
|
29185
|
+
}), index + 'tb-cell-collapse'), detail_method === null || detail_method === void 0 ? void 0 : detail_method.map((subRow, indexSubRow) => {
|
|
29186
|
+
const {
|
|
29187
|
+
id: id_col,
|
|
29188
|
+
is_grant,
|
|
29189
|
+
is_show
|
|
29190
|
+
} = subRow;
|
|
29191
|
+
return jsx(TableCell, Object.assign({
|
|
29192
|
+
css: {
|
|
29193
|
+
'@md': {
|
|
29194
|
+
height: rowHeight
|
|
29195
|
+
}
|
|
29196
|
+
}
|
|
29197
|
+
}, {
|
|
29198
|
+
children: jsx(Box, {
|
|
29199
|
+
children: Number(is_show) === 1 ? jsx(InputCheckbox, {
|
|
29200
|
+
checked: Number(is_grant) === 1,
|
|
29201
|
+
indeterminate: false,
|
|
29202
|
+
onCheckedChange: e => {
|
|
29203
|
+
const newDatasets = [...datasets];
|
|
29204
|
+
|
|
29205
|
+
for (const [indexDataRow, dataRow] of newDatasets.entries()) {
|
|
29206
|
+
const rowData = dataRow;
|
|
29207
|
+
|
|
29208
|
+
if ((rowData === null || rowData === void 0 ? void 0 : rowData.id) === id_row) {
|
|
29209
|
+
for (const [indexDataSubRow, dataSubRow] of rowData.detail.entries()) {
|
|
29210
|
+
if ((dataSubRow === null || dataSubRow === void 0 ? void 0 : dataSubRow.id) === id_subrow) {
|
|
29211
|
+
for (const [indexDataCol, dataCol] of dataSubRow.detail_method.entries()) {
|
|
29212
|
+
if ((dataCol === null || dataCol === void 0 ? void 0 : dataCol.id) === id_col) {
|
|
29213
|
+
newDatasets[indexDataRow].detail[indexDataSubRow].detail_method[indexDataCol].is_grant = e ? 1 : 0;
|
|
29214
|
+
}
|
|
29215
|
+
}
|
|
29216
|
+
}
|
|
29217
|
+
}
|
|
29218
|
+
}
|
|
29219
|
+
}
|
|
29220
|
+
|
|
29221
|
+
setDatasets(newDatasets);
|
|
29222
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newDatasets);
|
|
29223
|
+
}
|
|
29224
|
+
}, void 0) : jsx(MinusOutline, {
|
|
29225
|
+
size: 16,
|
|
29226
|
+
color: colors$4.iconDisable
|
|
29227
|
+
}, void 0)
|
|
29228
|
+
}, void 0)
|
|
29229
|
+
}), index + indexSubRow + 'tb-cell-collapse');
|
|
29230
|
+
}));
|
|
29231
|
+
})]
|
|
29232
|
+
}, void 0);
|
|
29233
|
+
})
|
|
29234
|
+
}), void 0)]
|
|
29235
|
+
}), void 0), rows.length < 1 && jsx(Flex$1, Object.assign({
|
|
29236
|
+
css: {
|
|
29237
|
+
padding: '$spacing-07'
|
|
29238
|
+
},
|
|
29239
|
+
align: "center",
|
|
29240
|
+
justify: "center"
|
|
29241
|
+
}, {
|
|
29242
|
+
children: jsx(Paragraph, Object.assign({
|
|
29243
|
+
paragraph: "shortContentRegular",
|
|
29244
|
+
color: "secondary"
|
|
29245
|
+
}, {
|
|
29246
|
+
children: emptyDataMessage || 'Tidak ada data'
|
|
29247
|
+
}), void 0)
|
|
29248
|
+
}), void 0)]
|
|
29249
|
+
}), void 0);
|
|
29250
|
+
}
|
|
29251
|
+
|
|
28873
29252
|
var _jsxFileName = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\colors\\Colors.js";
|
|
28874
29253
|
const StyledPaper = styled(Paper, {
|
|
28875
29254
|
borderRadius: '10px 10px 0 0',
|
|
@@ -30371,4 +30750,4 @@ const useToggle = initialValue => {
|
|
|
30371
30750
|
return useReducer(toggleReducer, initialValue);
|
|
30372
30751
|
};
|
|
30373
30752
|
|
|
30374
|
-
export { ADVANCE_PICKER, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedOption, AlertDialog, AlertDialogCancel, AlertDialogConfirm, AlertDialogContent, AlertDialogDescription, AlertDialogFunction, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, Avatar, BOTTOM_LEFT_POSITION, BOTTOM_RIGHT_POSITION, Badge, Banner, BannerClose, BannerDescription, BannerLink, BannerTitle, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$3 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, CheckboxGroup, ColorPicker$1 as ColorPicker, Colors, DateColumn, DatePicker, DecimalColumn, Device as DevicePreview, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, EditableTable, Flex$1 as Flex, FormGroup, FormHelper, FormLabel, Grid, GridItem, Heading, IconButton, IconContainer, Image, ImageDevicePreview, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, InputResourceList, InputRightAddon, InputRightElement, InputSearchbox, InputSelect, InputSelectCheck, InputSelectTag, InputSuffix, InputSwitch, TagsInput as InputTags, InputText, InputTextArea, InputTimePicker, LAST_7_DAYS, LAST_MONTH, LAST_TWO_MONTHS, LAST_WEEK, LineChart, Link, LoadingBar, MajooProvider, MapPicker, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_PICKER, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, SINGLE_PICKER, SelectBox, SelectContainer, SelectInputSearch, SelectItem, SelectOption, Separator$2 as Separator, Slider, StepWizard, StepWizardContext, StyledBox, StyledDropdown, StyledInput$1 as StyledInput, StyledSpan, StyledTitle$2 as StyledTitle, THIS_MONTH, THIS_WEEK, TODAY, TOP_LEFT_POSITION, TOP_RIGHT_POSITION, Table, TableBody$
|
|
30753
|
+
export { ADVANCE_PICKER, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedOption, AlertDialog, AlertDialogCancel, AlertDialogConfirm, AlertDialogContent, AlertDialogDescription, AlertDialogFunction, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, Avatar, BOTTOM_LEFT_POSITION, BOTTOM_RIGHT_POSITION, Badge, Banner, BannerClose, BannerDescription, BannerLink, BannerTitle, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$3 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, DateColumn, DatePicker, DecimalColumn, Device as DevicePreview, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, EditableTable, Flex$1 as Flex, FormGroup, FormHelper, FormLabel, Grid, GridItem, Heading, IconButton, IconContainer, Image, ImageDevicePreview, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, InputResourceList, InputRightAddon, InputRightElement, InputSearchbox, InputSelect, InputSelectCheck, InputSelectTag, InputSuffix, InputSwitch, TagsInput as InputTags, InputText, InputTextArea, InputTimePicker, LAST_7_DAYS, LAST_MONTH, LAST_TWO_MONTHS, LAST_WEEK, LineChart, Link, LoadingBar, MajooProvider, MapPicker, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_PICKER, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, SINGLE_PICKER, SelectBox, SelectContainer, SelectInputSearch, SelectItem, SelectOption, Separator$2 as Separator, Slider, StepWizard, StepWizardContext, StyledBox, StyledDropdown, StyledInput$1 as StyledInput, StyledSpan, StyledTitle$2 as StyledTitle, THIS_MONTH, THIS_WEEK, TODAY, TOP_LEFT_POSITION, TOP_RIGHT_POSITION, Table, TableBody$3 as TableBody, TableCell$3 as TableCell, TableColumn, TableContent$3 as TableContent, TableFoot$2 as TableFoot, TableFootCell$2 as TableFootCell, TableFootRow$2 as TableFootRow, TableHead$3 as TableHead, TableHeadCellContent, TableHeaderCellContainer, TableOfContent, TableOfContentPage, TableRow$3 as TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, Tag, TagStatus, Text$1 as Text, TextVariantsEnum, TimePicker, ToastContext, Tooltip$1 as Tooltip, UPDATE_PICKER, Upload, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptions, defaultFetchDataParams, pickerReducer, useListOption, useToggle };
|