@majoo-ui/react 1.49.3 → 1.50.1
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/form/components/InputCounter/InputCounter.d.ts +34 -0
- package/components/form/components/InputCounter/index.d.ts +2 -0
- package/components/form/components/index.d.ts +1 -0
- package/components/stepWizard/index.d.ts +2 -0
- package/components/table/Table.d.ts +203 -0
- package/index.esm.js +498 -316
- package/index.umd.js +501 -314
- package/package.json +1 -1
package/index.umd.js
CHANGED
|
@@ -3645,7 +3645,7 @@
|
|
|
3645
3645
|
onClick: e => {
|
|
3646
3646
|
e.preventDefault();
|
|
3647
3647
|
e.stopPropagation();
|
|
3648
|
-
value
|
|
3648
|
+
value === null || value === void 0 ? void 0 : value.onRemove();
|
|
3649
3649
|
},
|
|
3650
3650
|
__self: undefined,
|
|
3651
3651
|
__source: {
|
|
@@ -3722,7 +3722,7 @@
|
|
|
3722
3722
|
onClick: e => {
|
|
3723
3723
|
e.preventDefault();
|
|
3724
3724
|
e.stopPropagation();
|
|
3725
|
-
props
|
|
3725
|
+
props === null || props === void 0 ? void 0 : props.onRemove();
|
|
3726
3726
|
},
|
|
3727
3727
|
closeCenter: !props.title && !props.link,
|
|
3728
3728
|
__self: undefined,
|
|
@@ -4079,7 +4079,7 @@
|
|
|
4079
4079
|
}
|
|
4080
4080
|
}
|
|
4081
4081
|
});
|
|
4082
|
-
var Button$
|
|
4082
|
+
var Button$3 = /*#__PURE__*/React__namespace.forwardRef(function (_a, forwardedRef) {
|
|
4083
4083
|
var children = _a.children,
|
|
4084
4084
|
type = _a.type,
|
|
4085
4085
|
_b = _a.buttonType,
|
|
@@ -5716,7 +5716,7 @@
|
|
|
5716
5716
|
const [isChecked, setChecked] = React.useState(false);
|
|
5717
5717
|
React.useEffect(() => {
|
|
5718
5718
|
const checkValue = context && context.checkedItems.includes(value) || checked || indeterminate;
|
|
5719
|
-
setChecked(checkValue
|
|
5719
|
+
setChecked(checkValue !== null && checkValue !== void 0 ? checkValue : false);
|
|
5720
5720
|
}, [checked, indeterminate, context]);
|
|
5721
5721
|
return /*#__PURE__*/React__default["default"].createElement(StyledCheckbox, _extends({
|
|
5722
5722
|
id: id,
|
|
@@ -6314,7 +6314,7 @@
|
|
|
6314
6314
|
var _jsxFileName$E = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputRadio\\InputRadioGroup.js";
|
|
6315
6315
|
const RadioGroup = styled(RadioGroupPrimitive__namespace.Root, Flex$1);
|
|
6316
6316
|
function InputRadioGroup(props) {
|
|
6317
|
-
return (props
|
|
6317
|
+
return (props === null || props === void 0 ? void 0 : props.children) && /*#__PURE__*/React__default["default"].createElement(InputRadioContext.Provider, {
|
|
6318
6318
|
value: props,
|
|
6319
6319
|
__self: this,
|
|
6320
6320
|
__source: {
|
|
@@ -6329,7 +6329,7 @@
|
|
|
6329
6329
|
lineNumber: 14,
|
|
6330
6330
|
columnNumber: 9
|
|
6331
6331
|
}
|
|
6332
|
-
}), React__default["default"].Children.map(props
|
|
6332
|
+
}), React__default["default"].Children.map(props === null || props === void 0 ? void 0 : props.children, child => /*#__PURE__*/React__default["default"].cloneElement(child, {
|
|
6333
6333
|
style: Object.assign({}, child.props.style, {
|
|
6334
6334
|
opacity: 1
|
|
6335
6335
|
})
|
|
@@ -6520,7 +6520,7 @@
|
|
|
6520
6520
|
value,
|
|
6521
6521
|
outlined
|
|
6522
6522
|
}) => {
|
|
6523
|
-
const checked = value
|
|
6523
|
+
const checked = value !== null && value !== void 0 ? value : defaultValue;
|
|
6524
6524
|
return /*#__PURE__*/React__default["default"].createElement(Container$7, {
|
|
6525
6525
|
align: "center",
|
|
6526
6526
|
gap: 4,
|
|
@@ -7422,7 +7422,7 @@
|
|
|
7422
7422
|
readOnly: false
|
|
7423
7423
|
};
|
|
7424
7424
|
|
|
7425
|
-
const _excluded$f = ["size", "isInvalid", "placeholder", "onChange", "onInputChange", "value", "disabled", "readOnly", "max", "maxChar", "pattern", "helperText"];
|
|
7425
|
+
const _excluded$f = ["size", "isInvalid", "placeholder", "onChange", "onEnter", "onInputChange", "value", "disabled", "readOnly", "max", "maxChar", "pattern", "helperText"];
|
|
7426
7426
|
var _jsxFileName$A = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputTags\\InputTags.js";
|
|
7427
7427
|
const Wrapper$2 = styled('div', {
|
|
7428
7428
|
margin: 0,
|
|
@@ -7496,7 +7496,7 @@
|
|
|
7496
7496
|
}
|
|
7497
7497
|
}
|
|
7498
7498
|
});
|
|
7499
|
-
const Input$
|
|
7499
|
+
const Input$8 = styled('input', {
|
|
7500
7500
|
display: 'flex',
|
|
7501
7501
|
position: 'relative',
|
|
7502
7502
|
flex: 'auto',
|
|
@@ -7533,6 +7533,7 @@
|
|
|
7533
7533
|
isInvalid,
|
|
7534
7534
|
placeholder,
|
|
7535
7535
|
onChange,
|
|
7536
|
+
onEnter,
|
|
7536
7537
|
onInputChange,
|
|
7537
7538
|
value,
|
|
7538
7539
|
disabled,
|
|
@@ -7556,19 +7557,31 @@
|
|
|
7556
7557
|
const addTags = event => {
|
|
7557
7558
|
if (event.key === 'Enter' && event.target.value !== '' && max !== tags.length) {
|
|
7558
7559
|
if (tags.find(tag => tag.toLowerCase() === event.target.value.toLowerCase())) {
|
|
7560
|
+
onEnter === null || onEnter === void 0 ? void 0 : onEnter({
|
|
7561
|
+
key: 'duplicate',
|
|
7562
|
+
value: event.target.value
|
|
7563
|
+
});
|
|
7559
7564
|
return;
|
|
7560
7565
|
}
|
|
7561
7566
|
|
|
7562
|
-
if (pattern && pattern
|
|
7567
|
+
if (pattern && pattern !== null && pattern !== void 0 && pattern.regex) {
|
|
7563
7568
|
const regex = new RegExp(pattern.regex);
|
|
7564
7569
|
|
|
7565
7570
|
if (!regex.test(event.target.value)) {
|
|
7571
|
+
onEnter === null || onEnter === void 0 ? void 0 : onEnter({
|
|
7572
|
+
key: 'error',
|
|
7573
|
+
value: event.target.value
|
|
7574
|
+
});
|
|
7566
7575
|
setRegexError(true);
|
|
7567
7576
|
return;
|
|
7568
7577
|
}
|
|
7569
7578
|
}
|
|
7570
7579
|
|
|
7571
7580
|
setRegexError(false);
|
|
7581
|
+
onEnter === null || onEnter === void 0 ? void 0 : onEnter({
|
|
7582
|
+
key: 'success',
|
|
7583
|
+
value: event.target.value
|
|
7584
|
+
});
|
|
7572
7585
|
setTags([...tags, event.target.value]);
|
|
7573
7586
|
event.target.value = '';
|
|
7574
7587
|
}
|
|
@@ -7594,7 +7607,7 @@
|
|
|
7594
7607
|
__self: this,
|
|
7595
7608
|
__source: {
|
|
7596
7609
|
fileName: _jsxFileName$A,
|
|
7597
|
-
lineNumber:
|
|
7610
|
+
lineNumber: 168,
|
|
7598
7611
|
columnNumber: 5
|
|
7599
7612
|
}
|
|
7600
7613
|
}, /*#__PURE__*/React__default["default"].createElement(InputTagsComponent, _extends({
|
|
@@ -7607,10 +7620,10 @@
|
|
|
7607
7620
|
__self: this,
|
|
7608
7621
|
__source: {
|
|
7609
7622
|
fileName: _jsxFileName$A,
|
|
7610
|
-
lineNumber:
|
|
7623
|
+
lineNumber: 169,
|
|
7611
7624
|
columnNumber: 7
|
|
7612
7625
|
}
|
|
7613
|
-
}), /*#__PURE__*/React__default["default"].createElement(Input$
|
|
7626
|
+
}), /*#__PURE__*/React__default["default"].createElement(Input$8, {
|
|
7614
7627
|
type: "text",
|
|
7615
7628
|
onKeyUp: event => addTags(event) // onKeyDown={event => removeTags(tags.length - 1, event.key)}
|
|
7616
7629
|
,
|
|
@@ -7622,15 +7635,15 @@
|
|
|
7622
7635
|
__self: this,
|
|
7623
7636
|
__source: {
|
|
7624
7637
|
fileName: _jsxFileName$A,
|
|
7625
|
-
lineNumber:
|
|
7638
|
+
lineNumber: 177,
|
|
7626
7639
|
columnNumber: 9
|
|
7627
7640
|
}
|
|
7628
|
-
})), regexError && pattern && (pattern
|
|
7641
|
+
})), regexError && pattern && (pattern !== null && pattern !== void 0 && pattern.errorMessage ? /*#__PURE__*/React__default["default"].createElement(FormHelper, {
|
|
7629
7642
|
color: "red",
|
|
7630
7643
|
__self: this,
|
|
7631
7644
|
__source: {
|
|
7632
7645
|
fileName: _jsxFileName$A,
|
|
7633
|
-
lineNumber:
|
|
7646
|
+
lineNumber: 191,
|
|
7634
7647
|
columnNumber: 11
|
|
7635
7648
|
}
|
|
7636
7649
|
}, pattern.errorMessage) : /*#__PURE__*/React__default["default"].createElement(FormHelper, {
|
|
@@ -7638,7 +7651,7 @@
|
|
|
7638
7651
|
__self: this,
|
|
7639
7652
|
__source: {
|
|
7640
7653
|
fileName: _jsxFileName$A,
|
|
7641
|
-
lineNumber:
|
|
7654
|
+
lineNumber: 193,
|
|
7642
7655
|
columnNumber: 11
|
|
7643
7656
|
}
|
|
7644
7657
|
}, "Invalid Input")), helperText && /*#__PURE__*/React__default["default"].createElement(Paragraph, {
|
|
@@ -7652,14 +7665,14 @@
|
|
|
7652
7665
|
__self: this,
|
|
7653
7666
|
__source: {
|
|
7654
7667
|
fileName: _jsxFileName$A,
|
|
7655
|
-
lineNumber:
|
|
7668
|
+
lineNumber: 197,
|
|
7656
7669
|
columnNumber: 9
|
|
7657
7670
|
}
|
|
7658
7671
|
}, helperText), /*#__PURE__*/React__default["default"].createElement(TagWrapper$2, {
|
|
7659
7672
|
__self: this,
|
|
7660
7673
|
__source: {
|
|
7661
7674
|
fileName: _jsxFileName$A,
|
|
7662
|
-
lineNumber:
|
|
7675
|
+
lineNumber: 201,
|
|
7663
7676
|
columnNumber: 7
|
|
7664
7677
|
}
|
|
7665
7678
|
}, tags.map((tag, index) => /*#__PURE__*/React__default["default"].createElement(Tag, {
|
|
@@ -7672,7 +7685,7 @@
|
|
|
7672
7685
|
__self: this,
|
|
7673
7686
|
__source: {
|
|
7674
7687
|
fileName: _jsxFileName$A,
|
|
7675
|
-
lineNumber:
|
|
7688
|
+
lineNumber: 203,
|
|
7676
7689
|
columnNumber: 11
|
|
7677
7690
|
}
|
|
7678
7691
|
}, tag))));
|
|
@@ -7682,6 +7695,7 @@
|
|
|
7682
7695
|
size: PropTypes__default["default"].string,
|
|
7683
7696
|
value: PropTypes__default["default"].arrayOf(PropTypes__default["default"].string),
|
|
7684
7697
|
onChange: PropTypes__default["default"].arrayOf(PropTypes__default["default"].string),
|
|
7698
|
+
onEnter: PropTypes__default["default"].func,
|
|
7685
7699
|
onInputChange: PropTypes__default["default"].func,
|
|
7686
7700
|
max: PropTypes__default["default"].number,
|
|
7687
7701
|
maxChar: PropTypes__default["default"].number,
|
|
@@ -8248,7 +8262,7 @@
|
|
|
8248
8262
|
}
|
|
8249
8263
|
}
|
|
8250
8264
|
});
|
|
8251
|
-
var Button$
|
|
8265
|
+
var Button$2 = styled('button', {
|
|
8252
8266
|
display: 'flex',
|
|
8253
8267
|
width: '100%',
|
|
8254
8268
|
height: '100%',
|
|
@@ -8280,7 +8294,7 @@
|
|
|
8280
8294
|
}
|
|
8281
8295
|
}
|
|
8282
8296
|
});
|
|
8283
|
-
var Input$
|
|
8297
|
+
var Input$7 = styled('input', {
|
|
8284
8298
|
marginLeft: '$spacing-05',
|
|
8285
8299
|
display: 'flex',
|
|
8286
8300
|
width: '100%',
|
|
@@ -8412,7 +8426,7 @@
|
|
|
8412
8426
|
width: '$spacing-05',
|
|
8413
8427
|
padding: 0
|
|
8414
8428
|
} : undefined
|
|
8415
|
-
}, void 0), jsxRuntime.jsx(Input$
|
|
8429
|
+
}, void 0), jsxRuntime.jsx(Input$7, __assign({}, inputProps, props, {
|
|
8416
8430
|
placeholder: placeholder,
|
|
8417
8431
|
readOnly: readOnly,
|
|
8418
8432
|
isReadOnly: readOnly,
|
|
@@ -8669,7 +8683,7 @@
|
|
|
8669
8683
|
disabled: disabled || readOnly
|
|
8670
8684
|
}).onClick : undefined
|
|
8671
8685
|
}, void 0)
|
|
8672
|
-
}), void 0) : jsxRuntime.jsx(Button$
|
|
8686
|
+
}), void 0) : jsxRuntime.jsx(Button$2, __assign({}, getToggleButtonProps({
|
|
8673
8687
|
disabled: disabled || readOnly
|
|
8674
8688
|
}), {
|
|
8675
8689
|
disabled: disabled,
|
|
@@ -9241,7 +9255,7 @@
|
|
|
9241
9255
|
}
|
|
9242
9256
|
}
|
|
9243
9257
|
});
|
|
9244
|
-
const Input$
|
|
9258
|
+
const Input$6 = styled('input', {
|
|
9245
9259
|
width: '100%',
|
|
9246
9260
|
textAlign: 'left',
|
|
9247
9261
|
background: 'unset',
|
|
@@ -9250,9 +9264,16 @@
|
|
|
9250
9264
|
cursor: 'text',
|
|
9251
9265
|
'&:disabled': {
|
|
9252
9266
|
cursor: 'not-allowed'
|
|
9267
|
+
},
|
|
9268
|
+
variants: {
|
|
9269
|
+
hiddden: {
|
|
9270
|
+
true: {
|
|
9271
|
+
display: 'none'
|
|
9272
|
+
}
|
|
9273
|
+
}
|
|
9253
9274
|
}
|
|
9254
9275
|
});
|
|
9255
|
-
const Button = styled('button', {
|
|
9276
|
+
const Button$1 = styled('button', {
|
|
9256
9277
|
background: 'none',
|
|
9257
9278
|
outline: 'none',
|
|
9258
9279
|
border: 'none',
|
|
@@ -9262,6 +9283,13 @@
|
|
|
9262
9283
|
textAlign: 'left',
|
|
9263
9284
|
'&:disabled': {
|
|
9264
9285
|
cursor: 'not-allowed'
|
|
9286
|
+
},
|
|
9287
|
+
variants: {
|
|
9288
|
+
hiddden: {
|
|
9289
|
+
true: {
|
|
9290
|
+
display: 'none'
|
|
9291
|
+
}
|
|
9292
|
+
}
|
|
9265
9293
|
}
|
|
9266
9294
|
});
|
|
9267
9295
|
const IconWrapper = styled('div', {
|
|
@@ -9354,7 +9382,7 @@
|
|
|
9354
9382
|
color: '$textDisable',
|
|
9355
9383
|
display: 'inline-flex'
|
|
9356
9384
|
});
|
|
9357
|
-
|
|
9385
|
+
const InputSelectCheck = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
9358
9386
|
let {
|
|
9359
9387
|
placeholder,
|
|
9360
9388
|
option,
|
|
@@ -9376,12 +9404,15 @@
|
|
|
9376
9404
|
} = _ref,
|
|
9377
9405
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
9378
9406
|
|
|
9379
|
-
const [initItem, setInitItem] =
|
|
9407
|
+
const [initItem, setInitItem] = React__default["default"].useState(option); //init filter selectedItems on useMultipleSelection
|
|
9380
9408
|
|
|
9381
|
-
const [item, setItem] =
|
|
9382
|
-
const [selectedValue, setSelectedValue] =
|
|
9383
|
-
const [inputValue, setInputValue] =
|
|
9384
|
-
|
|
9409
|
+
const [item, setItem] = React__default["default"].useState([]);
|
|
9410
|
+
const [selectedValue, setSelectedValue] = React__default["default"].useState([]);
|
|
9411
|
+
const [inputValue, setInputValue] = React__default["default"].useState('');
|
|
9412
|
+
React.useEffect(() => {
|
|
9413
|
+
setItem(option);
|
|
9414
|
+
}, [option]);
|
|
9415
|
+
const sortItem = React__default["default"].useCallback(() => {
|
|
9385
9416
|
if (sortBy === 'id') {
|
|
9386
9417
|
option.sort(function (a, b) {
|
|
9387
9418
|
const idA = a.id.toUpperCase(); // ignore upper and lowercase
|
|
@@ -9438,27 +9469,24 @@
|
|
|
9438
9469
|
return [...res, ...filterOption]; // add the missing elements
|
|
9439
9470
|
}
|
|
9440
9471
|
}, []) : option;
|
|
9441
|
-
|
|
9472
|
+
React__default["default"].useEffect(() => {
|
|
9442
9473
|
if (selectedValue.length > 0 && disabledOptions.length === 0) {
|
|
9443
9474
|
setInitItem(sortValue);
|
|
9444
9475
|
setItem(sortValue);
|
|
9445
9476
|
}
|
|
9446
9477
|
}, []);
|
|
9447
|
-
|
|
9478
|
+
React__default["default"].useEffect(() => {
|
|
9448
9479
|
sortItem();
|
|
9449
9480
|
}, [sortBy]);
|
|
9450
|
-
|
|
9481
|
+
React__default["default"].useEffect(() => {
|
|
9451
9482
|
if (disabledOptions.length > 0) {
|
|
9452
9483
|
setInitItem(generateOptions(sortDisabled));
|
|
9453
9484
|
setItem(generateOptions(sortDisabled)); // setItem(generateOptions(option));
|
|
9454
9485
|
}
|
|
9455
9486
|
}, [disabledOptions]);
|
|
9456
|
-
|
|
9487
|
+
React__default["default"].useEffect(() => {
|
|
9457
9488
|
setSelectedValue(value);
|
|
9458
9489
|
}, [value]);
|
|
9459
|
-
React__namespace.useEffect(() => {
|
|
9460
|
-
onChange && onChange(selectedValue);
|
|
9461
|
-
}, [selectedValue]);
|
|
9462
9490
|
const {
|
|
9463
9491
|
getSelectedItemProps,
|
|
9464
9492
|
getDropdownProps,
|
|
@@ -9509,6 +9537,7 @@
|
|
|
9509
9537
|
let filterItems = selectedValue.filter(item => item !== selected.id);
|
|
9510
9538
|
removeSelectedItem(selected);
|
|
9511
9539
|
setSelectedValue(filterItems);
|
|
9540
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(filterItems);
|
|
9512
9541
|
}
|
|
9513
9542
|
};
|
|
9514
9543
|
|
|
@@ -9520,7 +9549,6 @@
|
|
|
9520
9549
|
getItemProps,
|
|
9521
9550
|
selectItem,
|
|
9522
9551
|
openMenu,
|
|
9523
|
-
closeMenu,
|
|
9524
9552
|
highlightedIndex,
|
|
9525
9553
|
isOpen
|
|
9526
9554
|
} = Downshift.useCombobox({
|
|
@@ -9553,6 +9581,7 @@
|
|
|
9553
9581
|
openMenu();
|
|
9554
9582
|
addSelectedItem(selectedItem);
|
|
9555
9583
|
setSelectedValue([...selectedValue, selectedItem.id]);
|
|
9584
|
+
onChange === null || onChange === void 0 ? void 0 : onChange([...selectedValue, selectedItem.id]);
|
|
9556
9585
|
selectItem(null);
|
|
9557
9586
|
}
|
|
9558
9587
|
}
|
|
@@ -9563,100 +9592,110 @@
|
|
|
9563
9592
|
}
|
|
9564
9593
|
}
|
|
9565
9594
|
});
|
|
9566
|
-
return /*#__PURE__*/
|
|
9595
|
+
return /*#__PURE__*/React__default["default"].createElement(Wrapper$1, _extends({
|
|
9567
9596
|
css: css
|
|
9568
9597
|
}, props, {
|
|
9569
|
-
__self:
|
|
9598
|
+
__self: undefined,
|
|
9570
9599
|
__source: {
|
|
9571
9600
|
fileName: _jsxFileName$u,
|
|
9572
|
-
lineNumber:
|
|
9573
|
-
columnNumber:
|
|
9601
|
+
lineNumber: 421,
|
|
9602
|
+
columnNumber: 7
|
|
9574
9603
|
}
|
|
9575
|
-
}), /*#__PURE__*/
|
|
9604
|
+
}), /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
9576
9605
|
size: size,
|
|
9577
9606
|
disabled: disabled || readOnly,
|
|
9578
9607
|
isInvalid: isInvalid,
|
|
9579
|
-
__self:
|
|
9608
|
+
__self: undefined,
|
|
9580
9609
|
__source: {
|
|
9581
9610
|
fileName: _jsxFileName$u,
|
|
9582
|
-
lineNumber:
|
|
9583
|
-
columnNumber:
|
|
9611
|
+
lineNumber: 422,
|
|
9612
|
+
columnNumber: 9
|
|
9584
9613
|
}
|
|
9585
|
-
}, /*#__PURE__*/
|
|
9614
|
+
}, /*#__PURE__*/React__default["default"].createElement(InputWrapper$1, _extends({}, getComboboxProps(getDropdownProps({
|
|
9586
9615
|
preventKeyAction: isOpen,
|
|
9587
9616
|
disabled: disabled || readOnly
|
|
9588
|
-
}
|
|
9617
|
+
}, {
|
|
9618
|
+
suppressRefError: true
|
|
9619
|
+
}), {
|
|
9620
|
+
suppressRefError: true
|
|
9621
|
+
}), {
|
|
9589
9622
|
disabled: disabled || readOnly,
|
|
9590
|
-
__self:
|
|
9623
|
+
__self: undefined,
|
|
9591
9624
|
__source: {
|
|
9592
9625
|
fileName: _jsxFileName$u,
|
|
9593
|
-
lineNumber:
|
|
9594
|
-
columnNumber:
|
|
9626
|
+
lineNumber: 423,
|
|
9627
|
+
columnNumber: 11
|
|
9595
9628
|
}
|
|
9596
|
-
}),
|
|
9597
|
-
disabled: disabled || readOnly
|
|
9629
|
+
}), /*#__PURE__*/React__default["default"].createElement(Input$6, _extends({}, getInputProps({
|
|
9630
|
+
disabled: disabled || readOnly,
|
|
9631
|
+
refKey: 'ref',
|
|
9632
|
+
ref
|
|
9633
|
+
}, {
|
|
9634
|
+
suppressRefError: true
|
|
9598
9635
|
}), {
|
|
9599
9636
|
placeholder: placeholder,
|
|
9600
9637
|
disabled: disabled || readOnly,
|
|
9601
|
-
|
|
9638
|
+
hiddden: !search,
|
|
9639
|
+
__self: undefined,
|
|
9602
9640
|
__source: {
|
|
9603
9641
|
fileName: _jsxFileName$u,
|
|
9604
|
-
lineNumber:
|
|
9642
|
+
lineNumber: 433,
|
|
9605
9643
|
columnNumber: 13
|
|
9606
9644
|
}
|
|
9607
|
-
}))
|
|
9645
|
+
})), /*#__PURE__*/React__default["default"].createElement(Button$1, _extends({}, getToggleButtonProps({
|
|
9608
9646
|
disabled: disabled || readOnly
|
|
9609
9647
|
}), {
|
|
9610
9648
|
disabled: disabled || readOnly,
|
|
9611
9649
|
size: size,
|
|
9612
9650
|
type: "button",
|
|
9613
|
-
|
|
9651
|
+
hiddden: search,
|
|
9652
|
+
__self: undefined,
|
|
9614
9653
|
__source: {
|
|
9615
9654
|
fileName: _jsxFileName$u,
|
|
9616
|
-
lineNumber:
|
|
9655
|
+
lineNumber: 439,
|
|
9617
9656
|
columnNumber: 13
|
|
9618
9657
|
}
|
|
9619
|
-
}), placeholder)), /*#__PURE__*/
|
|
9658
|
+
}), placeholder)), /*#__PURE__*/React__default["default"].createElement(IconWrapper, _extends({}, getToggleButtonProps({
|
|
9620
9659
|
disabled: disabled || readOnly
|
|
9621
9660
|
}), {
|
|
9622
9661
|
disabled: disabled,
|
|
9623
9662
|
readOnly: readOnly,
|
|
9624
|
-
__self:
|
|
9663
|
+
__self: undefined,
|
|
9625
9664
|
__source: {
|
|
9626
9665
|
fileName: _jsxFileName$u,
|
|
9627
|
-
lineNumber:
|
|
9628
|
-
columnNumber:
|
|
9666
|
+
lineNumber: 449,
|
|
9667
|
+
columnNumber: 11
|
|
9629
9668
|
}
|
|
9630
|
-
}), /*#__PURE__*/
|
|
9669
|
+
}), /*#__PURE__*/React__default["default"].createElement(IconCaretDown, {
|
|
9631
9670
|
color: disabled || readOnly ? colors$4.iconDisable : colors$4.iconPrimary,
|
|
9632
|
-
__self:
|
|
9671
|
+
__self: undefined,
|
|
9633
9672
|
__source: {
|
|
9634
9673
|
fileName: _jsxFileName$u,
|
|
9635
|
-
lineNumber:
|
|
9636
|
-
columnNumber:
|
|
9674
|
+
lineNumber: 454,
|
|
9675
|
+
columnNumber: 13
|
|
9637
9676
|
}
|
|
9638
|
-
}))), helperText && /*#__PURE__*/
|
|
9677
|
+
}))), helperText && /*#__PURE__*/React__default["default"].createElement(Paragraph, {
|
|
9639
9678
|
shortContentRegular: true,
|
|
9640
9679
|
css: {
|
|
9641
9680
|
paddingTop: 8,
|
|
9642
9681
|
fontSize: 12,
|
|
9643
9682
|
color: '$textSecondary'
|
|
9644
9683
|
},
|
|
9645
|
-
__self:
|
|
9684
|
+
__self: undefined,
|
|
9646
9685
|
__source: {
|
|
9647
9686
|
fileName: _jsxFileName$u,
|
|
9648
|
-
lineNumber:
|
|
9649
|
-
columnNumber:
|
|
9687
|
+
lineNumber: 458,
|
|
9688
|
+
columnNumber: 11
|
|
9650
9689
|
}
|
|
9651
|
-
}, helperText), showSelectedTag && selectedItems.length !== 0 && /*#__PURE__*/
|
|
9690
|
+
}, helperText), showSelectedTag && selectedItems.length !== 0 && /*#__PURE__*/React__default["default"].createElement(TagWrapper$1, {
|
|
9652
9691
|
disabled: disabled,
|
|
9653
|
-
__self:
|
|
9692
|
+
__self: undefined,
|
|
9654
9693
|
__source: {
|
|
9655
9694
|
fileName: _jsxFileName$u,
|
|
9656
|
-
lineNumber:
|
|
9657
|
-
columnNumber:
|
|
9695
|
+
lineNumber: 463,
|
|
9696
|
+
columnNumber: 11
|
|
9658
9697
|
}
|
|
9659
|
-
}, selectedItems.map((selectedItem, index) => /*#__PURE__*/
|
|
9698
|
+
}, selectedItems.map((selectedItem, index) => /*#__PURE__*/React__default["default"].createElement(Tag, _extends({
|
|
9660
9699
|
isRemovable: readOnly || disabled ? false : true,
|
|
9661
9700
|
disabled: disabled,
|
|
9662
9701
|
size: "lg",
|
|
@@ -9674,32 +9713,34 @@
|
|
|
9674
9713
|
removeItem(selectedItem);
|
|
9675
9714
|
}
|
|
9676
9715
|
},
|
|
9677
|
-
__self:
|
|
9716
|
+
__self: undefined,
|
|
9678
9717
|
__source: {
|
|
9679
9718
|
fileName: _jsxFileName$u,
|
|
9680
|
-
lineNumber:
|
|
9681
|
-
columnNumber:
|
|
9719
|
+
lineNumber: 465,
|
|
9720
|
+
columnNumber: 15
|
|
9682
9721
|
}
|
|
9683
|
-
}), selectedItem.name))), /*#__PURE__*/
|
|
9722
|
+
}), selectedItem.name))), /*#__PURE__*/React__default["default"].createElement(OptionWrapper$1, {
|
|
9684
9723
|
placement: placement,
|
|
9685
9724
|
css: {
|
|
9686
9725
|
display: isOpen && disabled === false ? 'block' : 'none',
|
|
9687
9726
|
top: size === 'lg' ? '45px' : '35px'
|
|
9688
9727
|
},
|
|
9689
|
-
__self:
|
|
9728
|
+
__self: undefined,
|
|
9690
9729
|
__source: {
|
|
9691
9730
|
fileName: _jsxFileName$u,
|
|
9692
|
-
lineNumber:
|
|
9693
|
-
columnNumber:
|
|
9731
|
+
lineNumber: 486,
|
|
9732
|
+
columnNumber: 9
|
|
9694
9733
|
}
|
|
9695
|
-
}, item.length !== 0 ? /*#__PURE__*/
|
|
9696
|
-
|
|
9734
|
+
}, item.length !== 0 ? /*#__PURE__*/React__default["default"].createElement(Option, _extends({}, getMenuProps({}, {
|
|
9735
|
+
suppressRefError: true
|
|
9736
|
+
}), {
|
|
9737
|
+
__self: undefined,
|
|
9697
9738
|
__source: {
|
|
9698
9739
|
fileName: _jsxFileName$u,
|
|
9699
|
-
lineNumber:
|
|
9700
|
-
columnNumber:
|
|
9740
|
+
lineNumber: 491,
|
|
9741
|
+
columnNumber: 13
|
|
9701
9742
|
}
|
|
9702
|
-
}), isOpen && item.map((item, index) => /*#__PURE__*/
|
|
9743
|
+
}), isOpen && item.map((item, index) => /*#__PURE__*/React__default["default"].createElement(ItemWrapper$1, _extends({
|
|
9703
9744
|
key: item.id
|
|
9704
9745
|
}, getItemProps({
|
|
9705
9746
|
item,
|
|
@@ -9711,93 +9752,95 @@
|
|
|
9711
9752
|
cursor: item.isDisabled ? 'not-allowed' : 'pointer',
|
|
9712
9753
|
color: item.isDisabled ? '$textDisable' : 'textPrimary'
|
|
9713
9754
|
},
|
|
9714
|
-
__self:
|
|
9755
|
+
__self: undefined,
|
|
9715
9756
|
__source: {
|
|
9716
9757
|
fileName: _jsxFileName$u,
|
|
9717
|
-
lineNumber:
|
|
9718
|
-
columnNumber:
|
|
9758
|
+
lineNumber: 494,
|
|
9759
|
+
columnNumber: 19
|
|
9719
9760
|
}
|
|
9720
|
-
}), /*#__PURE__*/
|
|
9761
|
+
}), /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
|
|
9721
9762
|
css: {
|
|
9722
9763
|
width: '16px',
|
|
9723
9764
|
height: '16px',
|
|
9724
9765
|
border: '1px solid $bgBorder',
|
|
9725
9766
|
cursor: item.isDisabled ? 'not-allowed' : 'pointer'
|
|
9726
9767
|
},
|
|
9727
|
-
__self:
|
|
9768
|
+
__self: undefined,
|
|
9728
9769
|
__source: {
|
|
9729
9770
|
fileName: _jsxFileName$u,
|
|
9730
|
-
lineNumber:
|
|
9731
|
-
columnNumber:
|
|
9771
|
+
lineNumber: 507,
|
|
9772
|
+
columnNumber: 21
|
|
9732
9773
|
}
|
|
9733
|
-
}, item.isDisabled ? /*#__PURE__*/
|
|
9774
|
+
}, item.isDisabled ? /*#__PURE__*/React__default["default"].createElement(CheckOutline, {
|
|
9734
9775
|
color: colors$4.iconDisable,
|
|
9735
|
-
__self:
|
|
9776
|
+
__self: undefined,
|
|
9736
9777
|
__source: {
|
|
9737
9778
|
fileName: _jsxFileName$u,
|
|
9738
|
-
lineNumber:
|
|
9739
|
-
columnNumber:
|
|
9779
|
+
lineNumber: 516,
|
|
9780
|
+
columnNumber: 25
|
|
9740
9781
|
}
|
|
9741
|
-
}) : selectedValue.includes(item.id) && (item.isDisabled === false || item.isDisabled === undefined) && /*#__PURE__*/
|
|
9782
|
+
}) : selectedValue.includes(item.id) && (item.isDisabled === false || item.isDisabled === undefined) && /*#__PURE__*/React__default["default"].createElement(CheckOutline, {
|
|
9742
9783
|
color: colors$4.iconGreen,
|
|
9743
|
-
__self:
|
|
9784
|
+
__self: undefined,
|
|
9744
9785
|
__source: {
|
|
9745
9786
|
fileName: _jsxFileName$u,
|
|
9746
|
-
lineNumber:
|
|
9747
|
-
columnNumber:
|
|
9787
|
+
lineNumber: 520,
|
|
9788
|
+
columnNumber: 27
|
|
9748
9789
|
}
|
|
9749
|
-
})), /*#__PURE__*/
|
|
9790
|
+
})), /*#__PURE__*/React__default["default"].createElement(Item$2, {
|
|
9750
9791
|
css: {
|
|
9751
9792
|
backgroundColor: 'unset'
|
|
9752
9793
|
},
|
|
9753
|
-
__self:
|
|
9794
|
+
__self: undefined,
|
|
9754
9795
|
__source: {
|
|
9755
9796
|
fileName: _jsxFileName$u,
|
|
9756
|
-
lineNumber:
|
|
9757
|
-
columnNumber:
|
|
9797
|
+
lineNumber: 524,
|
|
9798
|
+
columnNumber: 21
|
|
9758
9799
|
}
|
|
9759
|
-
}, item.name)))) : /*#__PURE__*/
|
|
9800
|
+
}, item.name)))) : /*#__PURE__*/React__default["default"].createElement(Option, _extends({
|
|
9760
9801
|
css: {
|
|
9761
9802
|
height: 'auto'
|
|
9762
9803
|
}
|
|
9763
|
-
}, getMenuProps(
|
|
9764
|
-
|
|
9804
|
+
}, getMenuProps({}, {
|
|
9805
|
+
suppressRefError: true
|
|
9806
|
+
}), {
|
|
9807
|
+
__self: undefined,
|
|
9765
9808
|
__source: {
|
|
9766
9809
|
fileName: _jsxFileName$u,
|
|
9767
|
-
lineNumber:
|
|
9768
|
-
columnNumber:
|
|
9810
|
+
lineNumber: 529,
|
|
9811
|
+
columnNumber: 13
|
|
9769
9812
|
}
|
|
9770
|
-
}), /*#__PURE__*/
|
|
9771
|
-
__self:
|
|
9813
|
+
}), /*#__PURE__*/React__default["default"].createElement(StyledDiv$1, {
|
|
9814
|
+
__self: undefined,
|
|
9772
9815
|
__source: {
|
|
9773
9816
|
fileName: _jsxFileName$u,
|
|
9774
|
-
lineNumber:
|
|
9775
|
-
columnNumber:
|
|
9817
|
+
lineNumber: 530,
|
|
9818
|
+
columnNumber: 15
|
|
9776
9819
|
}
|
|
9777
|
-
}, /*#__PURE__*/
|
|
9820
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9778
9821
|
style: {
|
|
9779
9822
|
marginRight: '6px'
|
|
9780
9823
|
},
|
|
9781
|
-
__self:
|
|
9824
|
+
__self: undefined,
|
|
9782
9825
|
__source: {
|
|
9783
9826
|
fileName: _jsxFileName$u,
|
|
9784
|
-
lineNumber:
|
|
9785
|
-
columnNumber:
|
|
9827
|
+
lineNumber: 531,
|
|
9828
|
+
columnNumber: 17
|
|
9786
9829
|
}
|
|
9787
|
-
}, /*#__PURE__*/
|
|
9830
|
+
}, /*#__PURE__*/React__default["default"].createElement(icons.CircleInfoOutline, {
|
|
9788
9831
|
size: "16px",
|
|
9789
9832
|
color: colors$4.iconDisable,
|
|
9790
9833
|
style: {
|
|
9791
9834
|
verticalAlign: 'text-bottom'
|
|
9792
9835
|
},
|
|
9793
|
-
__self:
|
|
9836
|
+
__self: undefined,
|
|
9794
9837
|
__source: {
|
|
9795
9838
|
fileName: _jsxFileName$u,
|
|
9796
|
-
lineNumber:
|
|
9797
|
-
columnNumber:
|
|
9839
|
+
lineNumber: 532,
|
|
9840
|
+
columnNumber: 19
|
|
9798
9841
|
}
|
|
9799
9842
|
})), textEmptyItem))));
|
|
9800
|
-
}
|
|
9843
|
+
});
|
|
9801
9844
|
InputSelectCheck.propTypes = {
|
|
9802
9845
|
placeholder: PropTypes__default["default"].string,
|
|
9803
9846
|
option: PropTypes__default["default"].array.isRequired,
|
|
@@ -9831,18 +9874,19 @@
|
|
|
9831
9874
|
};
|
|
9832
9875
|
|
|
9833
9876
|
var _jsxFileName$t = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputSelectTag\\InputSelectTag.js";
|
|
9834
|
-
|
|
9877
|
+
const InputSelectTag = /*#__PURE__*/React__namespace.forwardRef((props, ref) => {
|
|
9835
9878
|
return /*#__PURE__*/React__namespace.createElement(InputSelectCheck, _extends({
|
|
9879
|
+
ref: ref,
|
|
9836
9880
|
showSelectedTag: true
|
|
9837
9881
|
}, props, {
|
|
9838
|
-
__self:
|
|
9882
|
+
__self: undefined,
|
|
9839
9883
|
__source: {
|
|
9840
9884
|
fileName: _jsxFileName$t,
|
|
9841
9885
|
lineNumber: 6,
|
|
9842
9886
|
columnNumber: 10
|
|
9843
9887
|
}
|
|
9844
9888
|
}));
|
|
9845
|
-
}
|
|
9889
|
+
});
|
|
9846
9890
|
InputSelectTag.propTypes = {
|
|
9847
9891
|
placeholder: PropTypes__default["default"].string,
|
|
9848
9892
|
option: PropTypes__default["default"].array.isRequired,
|
|
@@ -9948,7 +9992,7 @@
|
|
|
9948
9992
|
}
|
|
9949
9993
|
}
|
|
9950
9994
|
});
|
|
9951
|
-
const Input$
|
|
9995
|
+
const Input$5 = styled('input', {
|
|
9952
9996
|
display: 'flex',
|
|
9953
9997
|
position: 'relative',
|
|
9954
9998
|
flex: 'auto',
|
|
@@ -10060,7 +10104,7 @@
|
|
|
10060
10104
|
lineNumber: 168,
|
|
10061
10105
|
columnNumber: 7
|
|
10062
10106
|
}
|
|
10063
|
-
}, /*#__PURE__*/React__default["default"].createElement(Input$
|
|
10107
|
+
}, /*#__PURE__*/React__default["default"].createElement(Input$5, {
|
|
10064
10108
|
type: "text",
|
|
10065
10109
|
placeholder: placeholder,
|
|
10066
10110
|
disabled: disabled,
|
|
@@ -10467,6 +10511,222 @@
|
|
|
10467
10511
|
timeInterval: 1000
|
|
10468
10512
|
};
|
|
10469
10513
|
|
|
10514
|
+
// a string of all valid unicode whitespaces
|
|
10515
|
+
var whitespaces$4 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
10516
|
+
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
10517
|
+
|
|
10518
|
+
var uncurryThis$e = functionUncurryThis;
|
|
10519
|
+
var requireObjectCoercible$4 = requireObjectCoercible$a;
|
|
10520
|
+
var toString$9 = toString$h;
|
|
10521
|
+
var whitespaces$3 = whitespaces$4;
|
|
10522
|
+
|
|
10523
|
+
var replace$4 = uncurryThis$e(''.replace);
|
|
10524
|
+
var whitespace = '[' + whitespaces$3 + ']';
|
|
10525
|
+
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
10526
|
+
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
10527
|
+
|
|
10528
|
+
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
10529
|
+
var createMethod$1 = function (TYPE) {
|
|
10530
|
+
return function ($this) {
|
|
10531
|
+
var string = toString$9(requireObjectCoercible$4($this));
|
|
10532
|
+
if (TYPE & 1) string = replace$4(string, ltrim, '');
|
|
10533
|
+
if (TYPE & 2) string = replace$4(string, rtrim, '');
|
|
10534
|
+
return string;
|
|
10535
|
+
};
|
|
10536
|
+
};
|
|
10537
|
+
|
|
10538
|
+
var stringTrim = {
|
|
10539
|
+
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
10540
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
10541
|
+
start: createMethod$1(1),
|
|
10542
|
+
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
10543
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
10544
|
+
end: createMethod$1(2),
|
|
10545
|
+
// `String.prototype.trim` method
|
|
10546
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
10547
|
+
trim: createMethod$1(3)
|
|
10548
|
+
};
|
|
10549
|
+
|
|
10550
|
+
var global$k = global$U;
|
|
10551
|
+
var fails$8 = fails$t;
|
|
10552
|
+
var uncurryThis$d = functionUncurryThis;
|
|
10553
|
+
var toString$8 = toString$h;
|
|
10554
|
+
var trim$1 = stringTrim.trim;
|
|
10555
|
+
var whitespaces$2 = whitespaces$4;
|
|
10556
|
+
|
|
10557
|
+
var $parseInt$1 = global$k.parseInt;
|
|
10558
|
+
var Symbol$6 = global$k.Symbol;
|
|
10559
|
+
var ITERATOR$6 = Symbol$6 && Symbol$6.iterator;
|
|
10560
|
+
var hex = /^[+-]?0x/i;
|
|
10561
|
+
var exec$4 = uncurryThis$d(hex.exec);
|
|
10562
|
+
var FORCED$2 = $parseInt$1(whitespaces$2 + '08') !== 8 || $parseInt$1(whitespaces$2 + '0x16') !== 22
|
|
10563
|
+
// MS Edge 18- broken with boxed symbols
|
|
10564
|
+
|| (ITERATOR$6 && !fails$8(function () { $parseInt$1(Object(ITERATOR$6)); }));
|
|
10565
|
+
|
|
10566
|
+
// `parseInt` method
|
|
10567
|
+
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
10568
|
+
var numberParseInt = FORCED$2 ? function parseInt(string, radix) {
|
|
10569
|
+
var S = trim$1(toString$8(string));
|
|
10570
|
+
return $parseInt$1(S, (radix >>> 0) || (exec$4(hex, S) ? 16 : 10));
|
|
10571
|
+
} : $parseInt$1;
|
|
10572
|
+
|
|
10573
|
+
var $$d = _export;
|
|
10574
|
+
var $parseInt = numberParseInt;
|
|
10575
|
+
|
|
10576
|
+
// `parseInt` method
|
|
10577
|
+
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
10578
|
+
$$d({ global: true, forced: parseInt != $parseInt }, {
|
|
10579
|
+
parseInt: $parseInt
|
|
10580
|
+
});
|
|
10581
|
+
|
|
10582
|
+
var Input$4 = styled(InputNumber, {
|
|
10583
|
+
border: "1px solid $gray150",
|
|
10584
|
+
borderLeft: 'none',
|
|
10585
|
+
borderRight: 'none',
|
|
10586
|
+
borderRadius: 0,
|
|
10587
|
+
textAlign: 'center',
|
|
10588
|
+
fontSize: 16,
|
|
10589
|
+
fontWeight: 600,
|
|
10590
|
+
color: '$textPrimary',
|
|
10591
|
+
userSelect: 'none',
|
|
10592
|
+
'&:disabled': {
|
|
10593
|
+
backgroundColor: '$btnDisable',
|
|
10594
|
+
border: "1px solid $gray150",
|
|
10595
|
+
'&:hover': {
|
|
10596
|
+
borderColor: '$gray150'
|
|
10597
|
+
}
|
|
10598
|
+
}
|
|
10599
|
+
});
|
|
10600
|
+
var Button = styled(Button$3, {
|
|
10601
|
+
border: "1px solid $gray150 !important",
|
|
10602
|
+
paddingRight: '16px !important',
|
|
10603
|
+
paddingLeft: '16px !important',
|
|
10604
|
+
'&:hover': {
|
|
10605
|
+
backgroundColor: '$primary50',
|
|
10606
|
+
border: '1px solid $btnPrimary !important'
|
|
10607
|
+
},
|
|
10608
|
+
'&:active': {
|
|
10609
|
+
backgroundColor: '$primary100',
|
|
10610
|
+
border: '1px solid $btnPrimary !important'
|
|
10611
|
+
},
|
|
10612
|
+
'&:focus': {
|
|
10613
|
+
outline: 0,
|
|
10614
|
+
backgroundColor: '$primary50',
|
|
10615
|
+
border: '1px solid $btnPrimary !important'
|
|
10616
|
+
},
|
|
10617
|
+
'&:disabled': {
|
|
10618
|
+
'&:hover': {
|
|
10619
|
+
borderColor: '$gray150 !important'
|
|
10620
|
+
}
|
|
10621
|
+
},
|
|
10622
|
+
variants: {
|
|
10623
|
+
counterType: {
|
|
10624
|
+
minus: {
|
|
10625
|
+
borderRight: 'none !important',
|
|
10626
|
+
borderTopRightRadius: '0px !important',
|
|
10627
|
+
borderBottomRightRadius: '0px !important',
|
|
10628
|
+
'&:disabled': {
|
|
10629
|
+
border: "1px solid $gray150 !important"
|
|
10630
|
+
}
|
|
10631
|
+
},
|
|
10632
|
+
plus: {
|
|
10633
|
+
borderLeft: 'none !important',
|
|
10634
|
+
borderTopLeftRadius: '0px !important',
|
|
10635
|
+
borderBottomLeftRadius: '0px !important',
|
|
10636
|
+
'&:disabled': {
|
|
10637
|
+
border: "1px solid $gray150 !important"
|
|
10638
|
+
}
|
|
10639
|
+
}
|
|
10640
|
+
}
|
|
10641
|
+
}
|
|
10642
|
+
});
|
|
10643
|
+
var InputCounter = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10644
|
+
var _a;
|
|
10645
|
+
|
|
10646
|
+
var css = props.css,
|
|
10647
|
+
value = props.value,
|
|
10648
|
+
onChange = props.onChange,
|
|
10649
|
+
allowNegative = props.allowNegative,
|
|
10650
|
+
min = props.min,
|
|
10651
|
+
max = props.max,
|
|
10652
|
+
disabled = props.disabled;
|
|
10653
|
+
|
|
10654
|
+
var _b = React.useState((_a = min !== null && min !== void 0 ? min : value) !== null && _a !== void 0 ? _a : 0),
|
|
10655
|
+
inputValue = _b[0],
|
|
10656
|
+
setInputValue = _b[1];
|
|
10657
|
+
|
|
10658
|
+
React.useEffect(function () {
|
|
10659
|
+
if (min && inputValue < min) {
|
|
10660
|
+
setInputValue(min);
|
|
10661
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(min);
|
|
10662
|
+
}
|
|
10663
|
+
|
|
10664
|
+
if (max && inputValue > max) {
|
|
10665
|
+
setInputValue(max);
|
|
10666
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(max);
|
|
10667
|
+
}
|
|
10668
|
+
}, [inputValue, min, max, onChange]);
|
|
10669
|
+
|
|
10670
|
+
function handleUp() {
|
|
10671
|
+
if (!max || inputValue < max) {
|
|
10672
|
+
setInputValue(inputValue + 1);
|
|
10673
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(inputValue + 1);
|
|
10674
|
+
}
|
|
10675
|
+
}
|
|
10676
|
+
|
|
10677
|
+
function handleDown() {
|
|
10678
|
+
if (inputValue !== 0 || allowNegative) {
|
|
10679
|
+
if (!min || inputValue > min) {
|
|
10680
|
+
setInputValue(inputValue - 1);
|
|
10681
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(inputValue - 1);
|
|
10682
|
+
}
|
|
10683
|
+
}
|
|
10684
|
+
}
|
|
10685
|
+
|
|
10686
|
+
function handleChange(e) {
|
|
10687
|
+
setInputValue(parseInt(e.target.value));
|
|
10688
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(parseInt(e.target.value));
|
|
10689
|
+
}
|
|
10690
|
+
|
|
10691
|
+
return jsxRuntime.jsxs(Flex$1, __assign({
|
|
10692
|
+
direction: "row",
|
|
10693
|
+
align: "center",
|
|
10694
|
+
css: css
|
|
10695
|
+
}, {
|
|
10696
|
+
children: [jsxRuntime.jsx(Button, __assign({
|
|
10697
|
+
disabled: disabled,
|
|
10698
|
+
buttonType: "secondary",
|
|
10699
|
+
counterType: "minus",
|
|
10700
|
+
icon: true,
|
|
10701
|
+
onClick: handleDown
|
|
10702
|
+
}, {
|
|
10703
|
+
children: jsxRuntime.jsx(icons.MinusOutline, {
|
|
10704
|
+
color: disabled ? colors$4.iconDisable : colors$4.primary500
|
|
10705
|
+
}, void 0)
|
|
10706
|
+
}), void 0), jsxRuntime.jsx(Input$4, {
|
|
10707
|
+
ref: ref,
|
|
10708
|
+
disabled: disabled,
|
|
10709
|
+
value: inputValue,
|
|
10710
|
+
allowNegative: allowNegative,
|
|
10711
|
+
onChange: handleChange
|
|
10712
|
+
}, void 0), jsxRuntime.jsx(Button, __assign({
|
|
10713
|
+
disabled: disabled,
|
|
10714
|
+
buttonType: "secondary",
|
|
10715
|
+
counterType: "plus",
|
|
10716
|
+
icon: true,
|
|
10717
|
+
onClick: handleUp
|
|
10718
|
+
}, {
|
|
10719
|
+
children: jsxRuntime.jsx(icons.PlusOutline, {
|
|
10720
|
+
color: disabled ? colors$4.iconDisable : colors$4.primary500
|
|
10721
|
+
}, void 0)
|
|
10722
|
+
}), void 0)]
|
|
10723
|
+
}), void 0);
|
|
10724
|
+
});
|
|
10725
|
+
InputCounter.defaultProps = {
|
|
10726
|
+
allowNegative: false,
|
|
10727
|
+
disabled: false
|
|
10728
|
+
};
|
|
10729
|
+
|
|
10470
10730
|
const _excluded$b = ["children"];
|
|
10471
10731
|
var _jsxFileName$r = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\popover\\Popover.js";
|
|
10472
10732
|
const {
|
|
@@ -10558,8 +10818,8 @@
|
|
|
10558
10818
|
ref: floating,
|
|
10559
10819
|
style: Object.assign({
|
|
10560
10820
|
position: strategy,
|
|
10561
|
-
top: isMobile ? 0 : y
|
|
10562
|
-
left: isMobile ? 0 : x
|
|
10821
|
+
top: isMobile ? 0 : y !== null && y !== void 0 ? y : '',
|
|
10822
|
+
left: isMobile ? 0 : x !== null && x !== void 0 ? x : '',
|
|
10563
10823
|
zIndex: zIndices.popover
|
|
10564
10824
|
}, style)
|
|
10565
10825
|
}), {
|
|
@@ -11384,74 +11644,6 @@
|
|
|
11384
11644
|
isToggle: true
|
|
11385
11645
|
};
|
|
11386
11646
|
|
|
11387
|
-
// a string of all valid unicode whitespaces
|
|
11388
|
-
var whitespaces$4 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
11389
|
-
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
11390
|
-
|
|
11391
|
-
var uncurryThis$e = functionUncurryThis;
|
|
11392
|
-
var requireObjectCoercible$4 = requireObjectCoercible$a;
|
|
11393
|
-
var toString$9 = toString$h;
|
|
11394
|
-
var whitespaces$3 = whitespaces$4;
|
|
11395
|
-
|
|
11396
|
-
var replace$4 = uncurryThis$e(''.replace);
|
|
11397
|
-
var whitespace = '[' + whitespaces$3 + ']';
|
|
11398
|
-
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
11399
|
-
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
11400
|
-
|
|
11401
|
-
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
11402
|
-
var createMethod$1 = function (TYPE) {
|
|
11403
|
-
return function ($this) {
|
|
11404
|
-
var string = toString$9(requireObjectCoercible$4($this));
|
|
11405
|
-
if (TYPE & 1) string = replace$4(string, ltrim, '');
|
|
11406
|
-
if (TYPE & 2) string = replace$4(string, rtrim, '');
|
|
11407
|
-
return string;
|
|
11408
|
-
};
|
|
11409
|
-
};
|
|
11410
|
-
|
|
11411
|
-
var stringTrim = {
|
|
11412
|
-
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
11413
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
11414
|
-
start: createMethod$1(1),
|
|
11415
|
-
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
11416
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
11417
|
-
end: createMethod$1(2),
|
|
11418
|
-
// `String.prototype.trim` method
|
|
11419
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
11420
|
-
trim: createMethod$1(3)
|
|
11421
|
-
};
|
|
11422
|
-
|
|
11423
|
-
var global$k = global$U;
|
|
11424
|
-
var fails$8 = fails$t;
|
|
11425
|
-
var uncurryThis$d = functionUncurryThis;
|
|
11426
|
-
var toString$8 = toString$h;
|
|
11427
|
-
var trim$1 = stringTrim.trim;
|
|
11428
|
-
var whitespaces$2 = whitespaces$4;
|
|
11429
|
-
|
|
11430
|
-
var $parseInt$1 = global$k.parseInt;
|
|
11431
|
-
var Symbol$6 = global$k.Symbol;
|
|
11432
|
-
var ITERATOR$6 = Symbol$6 && Symbol$6.iterator;
|
|
11433
|
-
var hex = /^[+-]?0x/i;
|
|
11434
|
-
var exec$4 = uncurryThis$d(hex.exec);
|
|
11435
|
-
var FORCED$2 = $parseInt$1(whitespaces$2 + '08') !== 8 || $parseInt$1(whitespaces$2 + '0x16') !== 22
|
|
11436
|
-
// MS Edge 18- broken with boxed symbols
|
|
11437
|
-
|| (ITERATOR$6 && !fails$8(function () { $parseInt$1(Object(ITERATOR$6)); }));
|
|
11438
|
-
|
|
11439
|
-
// `parseInt` method
|
|
11440
|
-
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
11441
|
-
var numberParseInt = FORCED$2 ? function parseInt(string, radix) {
|
|
11442
|
-
var S = trim$1(toString$8(string));
|
|
11443
|
-
return $parseInt$1(S, (radix >>> 0) || (exec$4(hex, S) ? 16 : 10));
|
|
11444
|
-
} : $parseInt$1;
|
|
11445
|
-
|
|
11446
|
-
var $$d = _export;
|
|
11447
|
-
var $parseInt = numberParseInt;
|
|
11448
|
-
|
|
11449
|
-
// `parseInt` method
|
|
11450
|
-
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
11451
|
-
$$d({ global: true, forced: parseInt != $parseInt }, {
|
|
11452
|
-
parseInt: $parseInt
|
|
11453
|
-
});
|
|
11454
|
-
|
|
11455
11647
|
const _excluded$7 = ["children"];
|
|
11456
11648
|
var _jsxFileName$n = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\notificationBadge\\NotificationBadge.js";
|
|
11457
11649
|
const NotificationBadgeRootStyle = styled('span', {
|
|
@@ -11553,7 +11745,7 @@
|
|
|
11553
11745
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
11554
11746
|
|
|
11555
11747
|
const getValue = () => {
|
|
11556
|
-
let value = props
|
|
11748
|
+
let value = props === null || props === void 0 ? void 0 : props.value;
|
|
11557
11749
|
|
|
11558
11750
|
if (typeof value === 'number' || parseInt(value)) {
|
|
11559
11751
|
if (Math.sign(value) === 1 || Math.sign(value) === 0) {
|
|
@@ -14179,7 +14371,7 @@
|
|
|
14179
14371
|
}), void 0), jsxRuntime.jsxs(Flex$1, __assign({
|
|
14180
14372
|
gap: 3
|
|
14181
14373
|
}, {
|
|
14182
|
-
children: [jsxRuntime.jsx(Button$
|
|
14374
|
+
children: [jsxRuntime.jsx(Button$3, __assign({
|
|
14183
14375
|
buttonType: "ghost",
|
|
14184
14376
|
css: {
|
|
14185
14377
|
fontWeight: 600
|
|
@@ -14189,7 +14381,7 @@
|
|
|
14189
14381
|
size: "sm"
|
|
14190
14382
|
}, {
|
|
14191
14383
|
children: "Batal"
|
|
14192
|
-
}), void 0), jsxRuntime.jsx(Button$
|
|
14384
|
+
}), void 0), jsxRuntime.jsx(Button$3, __assign({
|
|
14193
14385
|
css: {
|
|
14194
14386
|
fontWeight: 600
|
|
14195
14387
|
},
|
|
@@ -14799,7 +14991,7 @@
|
|
|
14799
14991
|
}), void 0), jsxRuntime.jsxs(Flex$1, __assign({
|
|
14800
14992
|
gap: 3
|
|
14801
14993
|
}, {
|
|
14802
|
-
children: [jsxRuntime.jsx(Button$
|
|
14994
|
+
children: [jsxRuntime.jsx(Button$3, __assign({
|
|
14803
14995
|
buttonType: "ghost",
|
|
14804
14996
|
size: "sm",
|
|
14805
14997
|
css: {
|
|
@@ -14812,7 +15004,7 @@
|
|
|
14812
15004
|
disabled: disabled
|
|
14813
15005
|
}, {
|
|
14814
15006
|
children: "Batal"
|
|
14815
|
-
}), void 0), jsxRuntime.jsx(Button$
|
|
15007
|
+
}), void 0), jsxRuntime.jsx(Button$3, __assign({
|
|
14816
15008
|
size: "sm",
|
|
14817
15009
|
css: {
|
|
14818
15010
|
width: '160px',
|
|
@@ -16035,7 +16227,7 @@
|
|
|
16035
16227
|
} = _ref,
|
|
16036
16228
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
16037
16229
|
|
|
16038
|
-
return /*#__PURE__*/React__default["default"].createElement(Button$
|
|
16230
|
+
return /*#__PURE__*/React__default["default"].createElement(Button$3, _extends({
|
|
16039
16231
|
onClick: onClick,
|
|
16040
16232
|
buttonType: !isActive ? 'ghost' : 'primary',
|
|
16041
16233
|
css: {
|
|
@@ -16383,7 +16575,7 @@
|
|
|
16383
16575
|
lineNumber: 40,
|
|
16384
16576
|
columnNumber: 11
|
|
16385
16577
|
}
|
|
16386
|
-
}, limits
|
|
16578
|
+
}, limits === null || limits === void 0 ? void 0 : limits.map(limit => /*#__PURE__*/React__default["default"].createElement(PopoverClose, {
|
|
16387
16579
|
key: limit,
|
|
16388
16580
|
css: limitItemContainerStyle(selectedLimit === limit),
|
|
16389
16581
|
onClick: () => onChange(limit),
|
|
@@ -16601,18 +16793,10 @@
|
|
|
16601
16793
|
}
|
|
16602
16794
|
|
|
16603
16795
|
return jsxRuntime.jsxs(React__default["default"].Fragment, {
|
|
16604
|
-
children: [sortBy.length <= 0 && row.original['isTopChild'] &&
|
|
16605
|
-
|
|
16606
|
-
}, row.getRowProps(), {
|
|
16607
|
-
key: "".concat(row.id, "-group_header")
|
|
16608
|
-
}), jsxRuntime.jsx(TableCell$3, __assign({
|
|
16609
|
-
colSpan: 100
|
|
16796
|
+
children: [((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.showGroupingWhenSorted) || sortBy.length <= 0) && row.original['isTopChild'] && ((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.headerRender) ? rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.headerRender(row) : jsxRuntime.jsx(Text$1, __assign({
|
|
16797
|
+
variant: "contentButton"
|
|
16610
16798
|
}, {
|
|
16611
|
-
children:
|
|
16612
|
-
variant: "contentButton"
|
|
16613
|
-
}, {
|
|
16614
|
-
children: row.cells[0].render('Cell')
|
|
16615
|
-
}), void 0)
|
|
16799
|
+
children: row.cells[0].render('Cell')
|
|
16616
16800
|
}), void 0)), jsxRuntime.jsx(TableRow$3, __assign({
|
|
16617
16801
|
css: customStyle
|
|
16618
16802
|
}, row.getRowProps(), {
|
|
@@ -16638,7 +16822,7 @@
|
|
|
16638
16822
|
}), void 0) : cell.render('Cell')
|
|
16639
16823
|
}), void 0);
|
|
16640
16824
|
})
|
|
16641
|
-
}), void 0), row.isExpanded ? jsxRuntime.jsx(TableRow$3, {
|
|
16825
|
+
}), 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 ? jsxRuntime.jsx(TableRow$3, {
|
|
16642
16826
|
children: jsxRuntime.jsxs(TableCell$3, __assign({
|
|
16643
16827
|
colSpan: visibleColumns.length
|
|
16644
16828
|
}, {
|
|
@@ -16929,7 +17113,8 @@
|
|
|
16929
17113
|
var newElement = item[groupKey].map(function (childItem, index) {
|
|
16930
17114
|
return __assign(__assign({}, childItem), {
|
|
16931
17115
|
isTopChild: index === 0,
|
|
16932
|
-
parentOriginal: item
|
|
17116
|
+
parentOriginal: item,
|
|
17117
|
+
isBottomChild: index === item[groupKey].length - 1
|
|
16933
17118
|
});
|
|
16934
17119
|
});
|
|
16935
17120
|
rawData.splice(index, 1);
|
|
@@ -17249,22 +17434,10 @@
|
|
|
17249
17434
|
}
|
|
17250
17435
|
|
|
17251
17436
|
return jsxRuntime.jsxs(React__namespace.Fragment, {
|
|
17252
|
-
children: [sortBy.length <= 0 && row.original['isTopChild'] &&
|
|
17253
|
-
|
|
17254
|
-
}, row.getRowProps(), {
|
|
17255
|
-
key: "".concat(row.id, "-group_header")
|
|
17256
|
-
}), jsxRuntime.jsx(TableCell$2, __assign({
|
|
17257
|
-
colSpan: 100,
|
|
17258
|
-
css: {
|
|
17259
|
-
padding: '20px 8px',
|
|
17260
|
-
verticalAlign: cellAlign
|
|
17261
|
-
}
|
|
17437
|
+
children: [((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.showGroupingWhenSorted) || sortBy.length <= 0) && row.original['isTopChild'] && ((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.headerRender) ? rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.headerRender(row) : jsxRuntime.jsx(Text$1, __assign({
|
|
17438
|
+
variant: "contentButton"
|
|
17262
17439
|
}, {
|
|
17263
|
-
children:
|
|
17264
|
-
variant: "contentButton"
|
|
17265
|
-
}, {
|
|
17266
|
-
children: row.cells[0].render('Cell')
|
|
17267
|
-
}), void 0)
|
|
17440
|
+
children: row.cells[0].render('Cell')
|
|
17268
17441
|
}), void 0)), jsxRuntime.jsx(TableRow$2, __assign({
|
|
17269
17442
|
css: customStyle
|
|
17270
17443
|
}, row.getRowProps(), {
|
|
@@ -17280,7 +17453,7 @@
|
|
|
17280
17453
|
children: cell.render('Cell')
|
|
17281
17454
|
}), void 0);
|
|
17282
17455
|
})
|
|
17283
|
-
}), void 0), row.isExpanded ? subRowCells.map(function (cell, index) {
|
|
17456
|
+
}), 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(function (cell, index) {
|
|
17284
17457
|
return jsxRuntime.jsxs(TableRow$2, __assign({
|
|
17285
17458
|
subRow: true
|
|
17286
17459
|
}, {
|
|
@@ -18779,7 +18952,7 @@
|
|
|
18779
18952
|
if (!props.onOpenAutoFocus) {
|
|
18780
18953
|
e.preventDefault();
|
|
18781
18954
|
} else {
|
|
18782
|
-
props
|
|
18955
|
+
props === null || props === void 0 ? void 0 : props.onOpenAutoFocus();
|
|
18783
18956
|
}
|
|
18784
18957
|
},
|
|
18785
18958
|
__self: undefined,
|
|
@@ -18896,12 +19069,12 @@
|
|
|
18896
19069
|
lineNumber: 157,
|
|
18897
19070
|
columnNumber: 15
|
|
18898
19071
|
}
|
|
18899
|
-
}, /*#__PURE__*/React__default["default"].createElement(Button$
|
|
19072
|
+
}, /*#__PURE__*/React__default["default"].createElement(Button$3, _extends({
|
|
18900
19073
|
size: "sm",
|
|
18901
19074
|
onClick: buttonConfirm,
|
|
18902
19075
|
buttonType: props.dialogType,
|
|
18903
|
-
disabled: props
|
|
18904
|
-
}, props
|
|
19076
|
+
disabled: props === null || props === void 0 ? void 0 : props.disabledButton
|
|
19077
|
+
}, props === null || props === void 0 ? void 0 : props.actionButtonProps, {
|
|
18905
19078
|
__self: undefined,
|
|
18906
19079
|
__source: {
|
|
18907
19080
|
fileName: _jsxFileName$b,
|
|
@@ -18916,16 +19089,16 @@
|
|
|
18916
19089
|
lineNumber: 170,
|
|
18917
19090
|
columnNumber: 17
|
|
18918
19091
|
}
|
|
18919
|
-
}, /*#__PURE__*/React__default["default"].createElement(Button$
|
|
19092
|
+
}, /*#__PURE__*/React__default["default"].createElement(Button$3, _extends({
|
|
18920
19093
|
size: "sm",
|
|
18921
19094
|
onClick: buttonCancel,
|
|
18922
19095
|
css: {
|
|
18923
|
-
color: props.dialogType === 'negative' && !(props
|
|
19096
|
+
color: props.dialogType === 'negative' && !(props !== null && props !== void 0 && props.disabledButton) && '$gray900 !important',
|
|
18924
19097
|
flex: props.isMobile && 1
|
|
18925
19098
|
},
|
|
18926
19099
|
buttonType: "ghost",
|
|
18927
|
-
disabled: props
|
|
18928
|
-
}, props
|
|
19100
|
+
disabled: props === null || props === void 0 ? void 0 : props.disabledButton
|
|
19101
|
+
}, props === null || props === void 0 ? void 0 : props.cancelButtonProps, {
|
|
18929
19102
|
__self: undefined,
|
|
18930
19103
|
__source: {
|
|
18931
19104
|
fileName: _jsxFileName$b,
|
|
@@ -18940,15 +19113,15 @@
|
|
|
18940
19113
|
lineNumber: 185,
|
|
18941
19114
|
columnNumber: 17
|
|
18942
19115
|
}
|
|
18943
|
-
}, /*#__PURE__*/React__default["default"].createElement(Button$
|
|
19116
|
+
}, /*#__PURE__*/React__default["default"].createElement(Button$3, _extends({
|
|
18944
19117
|
size: "sm",
|
|
18945
19118
|
onClick: buttonConfirm,
|
|
18946
19119
|
buttonType: props.dialogType,
|
|
18947
19120
|
css: {
|
|
18948
19121
|
flex: props.isMobile && 1
|
|
18949
19122
|
},
|
|
18950
|
-
disabled: props
|
|
18951
|
-
}, props
|
|
19123
|
+
disabled: props === null || props === void 0 ? void 0 : props.disabledButton
|
|
19124
|
+
}, props === null || props === void 0 ? void 0 : props.actionButtonProps, {
|
|
18952
19125
|
__self: undefined,
|
|
18953
19126
|
__source: {
|
|
18954
19127
|
fileName: _jsxFileName$b,
|
|
@@ -19100,15 +19273,15 @@
|
|
|
19100
19273
|
lineNumber: 242,
|
|
19101
19274
|
columnNumber: 15
|
|
19102
19275
|
}
|
|
19103
|
-
}, /*#__PURE__*/React__default["default"].createElement(Button$
|
|
19276
|
+
}, /*#__PURE__*/React__default["default"].createElement(Button$3, _extends({
|
|
19104
19277
|
size: "sm",
|
|
19105
19278
|
onClick: props.onConfirm,
|
|
19106
19279
|
buttonType: props.dialogType,
|
|
19107
19280
|
css: {
|
|
19108
19281
|
flex: props.isMobile && 1
|
|
19109
19282
|
},
|
|
19110
|
-
disabled: props
|
|
19111
|
-
}, props
|
|
19283
|
+
disabled: props === null || props === void 0 ? void 0 : props.disabledButton
|
|
19284
|
+
}, props === null || props === void 0 ? void 0 : props.actionButtonProps, {
|
|
19112
19285
|
__self: this,
|
|
19113
19286
|
__source: {
|
|
19114
19287
|
fileName: _jsxFileName$b,
|
|
@@ -19123,16 +19296,16 @@
|
|
|
19123
19296
|
lineNumber: 256,
|
|
19124
19297
|
columnNumber: 17
|
|
19125
19298
|
}
|
|
19126
|
-
}, /*#__PURE__*/React__default["default"].createElement(Button$
|
|
19299
|
+
}, /*#__PURE__*/React__default["default"].createElement(Button$3, _extends({
|
|
19127
19300
|
size: "sm",
|
|
19128
19301
|
onClick: props.onCancel,
|
|
19129
19302
|
css: {
|
|
19130
|
-
color: props.dialogType === 'negative' && !(props
|
|
19303
|
+
color: props.dialogType === 'negative' && !(props !== null && props !== void 0 && props.disabledButton) && '$gray900 !important',
|
|
19131
19304
|
flex: props.isMobile && 1
|
|
19132
19305
|
},
|
|
19133
19306
|
buttonType: "ghost",
|
|
19134
|
-
disabled: props
|
|
19135
|
-
}, props
|
|
19307
|
+
disabled: props === null || props === void 0 ? void 0 : props.disabledButton
|
|
19308
|
+
}, props === null || props === void 0 ? void 0 : props.cancelButtonProps, {
|
|
19136
19309
|
__self: this,
|
|
19137
19310
|
__source: {
|
|
19138
19311
|
fileName: _jsxFileName$b,
|
|
@@ -19147,15 +19320,15 @@
|
|
|
19147
19320
|
lineNumber: 271,
|
|
19148
19321
|
columnNumber: 17
|
|
19149
19322
|
}
|
|
19150
|
-
}, /*#__PURE__*/React__default["default"].createElement(Button$
|
|
19323
|
+
}, /*#__PURE__*/React__default["default"].createElement(Button$3, _extends({
|
|
19151
19324
|
size: "sm",
|
|
19152
19325
|
onClick: props.onConfirm,
|
|
19153
19326
|
buttonType: props.dialogType,
|
|
19154
19327
|
css: {
|
|
19155
19328
|
flex: props.isMobile && 1
|
|
19156
19329
|
},
|
|
19157
|
-
disabled: props
|
|
19158
|
-
}, props
|
|
19330
|
+
disabled: props === null || props === void 0 ? void 0 : props.disabledButton
|
|
19331
|
+
}, props === null || props === void 0 ? void 0 : props.actionButtonProps, {
|
|
19159
19332
|
__self: this,
|
|
19160
19333
|
__source: {
|
|
19161
19334
|
fileName: _jsxFileName$b,
|
|
@@ -21670,7 +21843,7 @@
|
|
|
21670
21843
|
file: fileProgress,
|
|
21671
21844
|
indexReplace: indexReplace.current,
|
|
21672
21845
|
isReplace: indexReplace.current !== null
|
|
21673
|
-
}))
|
|
21846
|
+
})) === null || _onChange === void 0 ? void 0 : (_onChange$then = _onChange.then(() => setError(null))) === null || _onChange$then === void 0 ? void 0 : _onChange$then.catch(error => setError(error.message));
|
|
21674
21847
|
}
|
|
21675
21848
|
}).then(result => {
|
|
21676
21849
|
var _onChange2, _onChange2$then;
|
|
@@ -21692,7 +21865,7 @@
|
|
|
21692
21865
|
file: fileSuccess,
|
|
21693
21866
|
indexReplace: indexReplace.current,
|
|
21694
21867
|
isReplace: indexReplace.current !== null
|
|
21695
|
-
}))
|
|
21868
|
+
})) === null || _onChange2 === void 0 ? void 0 : (_onChange2$then = _onChange2.then(() => setError(null))) === null || _onChange2$then === void 0 ? void 0 : _onChange2$then.catch(error => setError(error.message));
|
|
21696
21869
|
}).catch(error => {
|
|
21697
21870
|
var _onChange3, _onChange3$then;
|
|
21698
21871
|
|
|
@@ -21713,7 +21886,7 @@
|
|
|
21713
21886
|
file: fileError,
|
|
21714
21887
|
indexReplace: indexReplace.current,
|
|
21715
21888
|
isReplace: indexReplace.current !== null
|
|
21716
|
-
}))
|
|
21889
|
+
})) === null || _onChange3 === void 0 ? void 0 : (_onChange3$then = _onChange3.then(() => setError(null))) === null || _onChange3$then === void 0 ? void 0 : _onChange3$then.catch(error => setError(error.message));
|
|
21717
21890
|
});
|
|
21718
21891
|
} else {
|
|
21719
21892
|
var _onChange4, _onChange4$then;
|
|
@@ -21723,7 +21896,7 @@
|
|
|
21723
21896
|
file: newFile,
|
|
21724
21897
|
indexReplace: indexReplace.current,
|
|
21725
21898
|
isReplace: indexReplace.current !== null
|
|
21726
|
-
}))
|
|
21899
|
+
})) === null || _onChange4 === void 0 ? void 0 : (_onChange4$then = _onChange4.then(() => setError(null))) === null || _onChange4$then === void 0 ? void 0 : _onChange4$then.catch(error => setError(error.message));
|
|
21727
21900
|
}
|
|
21728
21901
|
|
|
21729
21902
|
if (indexReplace.current !== null) {
|
|
@@ -21750,9 +21923,9 @@
|
|
|
21750
21923
|
}
|
|
21751
21924
|
|
|
21752
21925
|
function handleCrop() {
|
|
21753
|
-
if (completedCrop
|
|
21926
|
+
if (completedCrop !== null && completedCrop !== void 0 && completedCrop.width && completedCrop !== null && completedCrop !== void 0 && completedCrop.height && imgRef.current) {
|
|
21754
21927
|
imgPreview(imgRef.current, completedCrop, 1, 0, ratio).then(blob => {
|
|
21755
|
-
const file = new File([blob], fileState
|
|
21928
|
+
const file = new File([blob], fileState === null || fileState === void 0 ? void 0 : fileState.name, {
|
|
21756
21929
|
type: blob.type
|
|
21757
21930
|
});
|
|
21758
21931
|
handleUpload([file]);
|
|
@@ -21820,22 +21993,22 @@
|
|
|
21820
21993
|
function handleOpenFile(file) {
|
|
21821
21994
|
var _String, _file$name;
|
|
21822
21995
|
|
|
21823
|
-
let extension = (_String = String(file
|
|
21996
|
+
let extension = (_String = String(file === null || file === void 0 ? void 0 : (_file$name = file.name) === null || _file$name === void 0 ? void 0 : _file$name.split('.').pop())) === null || _String === void 0 ? void 0 : _String.toLowerCase();
|
|
21824
21997
|
|
|
21825
21998
|
if (extension === 'pdf') {
|
|
21826
|
-
window.open(file
|
|
21999
|
+
window.open(file === null || file === void 0 ? void 0 : file.url);
|
|
21827
22000
|
} else {
|
|
21828
|
-
request__default["default"].get(file
|
|
22001
|
+
request__default["default"].get(file === null || file === void 0 ? void 0 : file.url).end((err, res) => {
|
|
21829
22002
|
if (err) {
|
|
21830
22003
|
console.error(err.message);
|
|
21831
22004
|
}
|
|
21832
22005
|
|
|
21833
|
-
if (res && res
|
|
21834
|
-
const response = res
|
|
22006
|
+
if (res && res !== null && res !== void 0 && res.ok) {
|
|
22007
|
+
const response = res === null || res === void 0 ? void 0 : res.text;
|
|
21835
22008
|
const url = window.URL.createObjectURL(new Blob([response]));
|
|
21836
22009
|
const link = document.createElement('a');
|
|
21837
22010
|
link.href = url;
|
|
21838
|
-
link.setAttribute('download', file
|
|
22011
|
+
link.setAttribute('download', file === null || file === void 0 ? void 0 : file.name);
|
|
21839
22012
|
document.body.appendChild(link);
|
|
21840
22013
|
link.click();
|
|
21841
22014
|
document.body.removeChild(link);
|
|
@@ -21905,12 +22078,12 @@
|
|
|
21905
22078
|
}
|
|
21906
22079
|
|
|
21907
22080
|
const renderPicture = () => {
|
|
21908
|
-
return fileList
|
|
21909
|
-
if ((item
|
|
22081
|
+
return fileList === null || fileList === void 0 ? void 0 : fileList.map((item, index) => {
|
|
22082
|
+
if ((item === null || item === void 0 ? void 0 : item.status) === 'uploading') {
|
|
21910
22083
|
return /*#__PURE__*/React__default["default"].createElement(UploadProgress, {
|
|
21911
22084
|
key: index,
|
|
21912
|
-
progress: item
|
|
21913
|
-
loading: item
|
|
22085
|
+
progress: item === null || item === void 0 ? void 0 : item.percent,
|
|
22086
|
+
loading: item === null || item === void 0 ? void 0 : item.loading,
|
|
21914
22087
|
__self: undefined,
|
|
21915
22088
|
__source: {
|
|
21916
22089
|
fileName: _jsxFileName$9,
|
|
@@ -21985,14 +22158,14 @@
|
|
|
21985
22158
|
};
|
|
21986
22159
|
|
|
21987
22160
|
const renderFile = () => {
|
|
21988
|
-
return fileList
|
|
22161
|
+
return fileList === null || fileList === void 0 ? void 0 : fileList.map((item, index) => {
|
|
21989
22162
|
var _item$name;
|
|
21990
22163
|
|
|
21991
|
-
if ((item
|
|
22164
|
+
if ((item === null || item === void 0 ? void 0 : item.status) === 'uploading') {
|
|
21992
22165
|
return /*#__PURE__*/React__default["default"].createElement(UploadProgress, {
|
|
21993
22166
|
key: index,
|
|
21994
|
-
progress: item
|
|
21995
|
-
loading: item
|
|
22167
|
+
progress: item === null || item === void 0 ? void 0 : item.percent,
|
|
22168
|
+
loading: item === null || item === void 0 ? void 0 : item.loading,
|
|
21996
22169
|
__self: undefined,
|
|
21997
22170
|
__source: {
|
|
21998
22171
|
fileName: _jsxFileName$9,
|
|
@@ -22059,7 +22232,7 @@
|
|
|
22059
22232
|
lineNumber: 611,
|
|
22060
22233
|
columnNumber: 17
|
|
22061
22234
|
}
|
|
22062
|
-
}, ".", item
|
|
22235
|
+
}, ".", item === null || item === void 0 ? void 0 : (_item$name = item.name) === null || _item$name === void 0 ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default["default"].createElement(Tooltip$1, {
|
|
22063
22236
|
label: item.name,
|
|
22064
22237
|
__self: undefined,
|
|
22065
22238
|
__source: {
|
|
@@ -22231,7 +22404,7 @@
|
|
|
22231
22404
|
lineNumber: 686,
|
|
22232
22405
|
columnNumber: 11
|
|
22233
22406
|
}
|
|
22234
|
-
}, children
|
|
22407
|
+
}, children !== null && children !== void 0 ? children : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
22235
22408
|
__self: this,
|
|
22236
22409
|
__source: {
|
|
22237
22410
|
fileName: _jsxFileName$9,
|
|
@@ -22265,7 +22438,7 @@
|
|
|
22265
22438
|
lineNumber: 692,
|
|
22266
22439
|
columnNumber: 17
|
|
22267
22440
|
}
|
|
22268
|
-
}, placeholder
|
|
22441
|
+
}, placeholder !== null && placeholder !== void 0 ? placeholder : `Pilih atau letakkan ${isFile ? 'berkas' : 'gambar'} di sini`)))), error && /*#__PURE__*/React__default["default"].createElement(ErrorMessage, {
|
|
22269
22442
|
__self: this,
|
|
22270
22443
|
__source: {
|
|
22271
22444
|
fileName: _jsxFileName$9,
|
|
@@ -22315,7 +22488,8 @@
|
|
|
22315
22488
|
}, cropperTitle), /*#__PURE__*/React__default["default"].createElement(ModalDialogContent, {
|
|
22316
22489
|
css: {
|
|
22317
22490
|
padding: '$spacing-03',
|
|
22318
|
-
overflowY: 'auto'
|
|
22491
|
+
overflowY: 'auto',
|
|
22492
|
+
textAlign: 'center'
|
|
22319
22493
|
},
|
|
22320
22494
|
__self: this,
|
|
22321
22495
|
__source: {
|
|
@@ -22395,7 +22569,7 @@
|
|
|
22395
22569
|
lineNumber: 727,
|
|
22396
22570
|
columnNumber: 13
|
|
22397
22571
|
}
|
|
22398
|
-
}, /*#__PURE__*/React__default["default"].createElement(Button$
|
|
22572
|
+
}, /*#__PURE__*/React__default["default"].createElement(Button$3, {
|
|
22399
22573
|
buttonType: "secondary",
|
|
22400
22574
|
onClick: toggleModal,
|
|
22401
22575
|
__self: this,
|
|
@@ -22404,7 +22578,7 @@
|
|
|
22404
22578
|
lineNumber: 728,
|
|
22405
22579
|
columnNumber: 15
|
|
22406
22580
|
}
|
|
22407
|
-
}, "Batal"), /*#__PURE__*/React__default["default"].createElement(Button$
|
|
22581
|
+
}, "Batal"), /*#__PURE__*/React__default["default"].createElement(Button$3, {
|
|
22408
22582
|
onClick: handleCrop,
|
|
22409
22583
|
__self: this,
|
|
22410
22584
|
__source: {
|
|
@@ -22412,12 +22586,12 @@
|
|
|
22412
22586
|
lineNumber: 731,
|
|
22413
22587
|
columnNumber: 15
|
|
22414
22588
|
}
|
|
22415
|
-
}, `${completedCrop
|
|
22589
|
+
}, `${completedCrop !== null && completedCrop !== void 0 && completedCrop.width && completedCrop !== null && completedCrop !== void 0 && completedCrop.height ? 'Potong & Simpan' : 'Simpan'}`)))));
|
|
22416
22590
|
}
|
|
22417
22591
|
|
|
22418
22592
|
return /*#__PURE__*/React__default["default"].createElement(Flex$1, {
|
|
22419
22593
|
direction: "row",
|
|
22420
|
-
gap: (fileList
|
|
22594
|
+
gap: (fileList === null || fileList === void 0 ? void 0 : fileList.length) <= 1 && max === 1 ? 0 : 3,
|
|
22421
22595
|
wrap: "wrap",
|
|
22422
22596
|
css: {
|
|
22423
22597
|
userSelect: 'none'
|
|
@@ -22853,10 +23027,10 @@
|
|
|
22853
23027
|
const [isPopover, setIsPopover] = React.useState(false);
|
|
22854
23028
|
|
|
22855
23029
|
function getColor() {
|
|
22856
|
-
const color = props
|
|
23030
|
+
const color = props === null || props === void 0 ? void 0 : props.color;
|
|
22857
23031
|
|
|
22858
23032
|
if (typeof color === 'string') {
|
|
22859
|
-
return color
|
|
23033
|
+
return color === null || color === void 0 ? void 0 : color.toUpperCase();
|
|
22860
23034
|
}
|
|
22861
23035
|
|
|
22862
23036
|
return `rgba(${color.r},${color.g},${color.b},${color.a})`;
|
|
@@ -25826,9 +26000,9 @@
|
|
|
25826
26000
|
lineNumber: 119,
|
|
25827
26001
|
columnNumber: 30
|
|
25828
26002
|
}
|
|
25829
|
-
}), data[i - 1].title, ((_data = data[i - 1])
|
|
26003
|
+
}), data[i - 1].title, ((_data = data[i - 1]) === null || _data === void 0 ? void 0 : _data.withTolltip) && /*#__PURE__*/React__default["default"].createElement(Tooltip$1, {
|
|
25830
26004
|
align: "center",
|
|
25831
|
-
label: (_data2 = data[i - 1])
|
|
26005
|
+
label: (_data2 = data[i - 1]) === null || _data2 === void 0 ? void 0 : _data2.tooltipsContents,
|
|
25832
26006
|
__self: undefined,
|
|
25833
26007
|
__source: {
|
|
25834
26008
|
fileName: _jsxFileName$4,
|
|
@@ -25899,10 +26073,10 @@
|
|
|
25899
26073
|
lineNumber: 155,
|
|
25900
26074
|
columnNumber: 15
|
|
25901
26075
|
}
|
|
25902
|
-
}, isActive ? data[i - 1].title : ''), isActive && ((_data3 = data[i - 1])
|
|
26076
|
+
}, isActive ? data[i - 1].title : ''), isActive && ((_data3 = data[i - 1]) === null || _data3 === void 0 ? void 0 : _data3.withTolltip) && /*#__PURE__*/React__default["default"].createElement(Tooltip$1, {
|
|
25903
26077
|
align: "center",
|
|
25904
26078
|
withClick: true,
|
|
25905
|
-
label: (_data4 = data[i - 1])
|
|
26079
|
+
label: (_data4 = data[i - 1]) === null || _data4 === void 0 ? void 0 : _data4.tooltipsContents,
|
|
25906
26080
|
__self: undefined,
|
|
25907
26081
|
__source: {
|
|
25908
26082
|
fileName: _jsxFileName$4,
|
|
@@ -25970,30 +26144,40 @@
|
|
|
25970
26144
|
const Default = props => {
|
|
25971
26145
|
const [state, updateState] = React__default["default"].useState(Object.assign({
|
|
25972
26146
|
isComplete: [],
|
|
25973
|
-
hide: false
|
|
26147
|
+
hide: props.hide || false
|
|
25974
26148
|
}, props.state));
|
|
25975
26149
|
React.useEffect(() => {
|
|
25976
26150
|
updateState(current => Object.assign({}, current, {
|
|
25977
26151
|
isComplete: props.completedSteps || []
|
|
25978
26152
|
}));
|
|
25979
26153
|
}, [props.completedSteps]);
|
|
26154
|
+
React.useEffect(() => {
|
|
26155
|
+
updateState(prev => Object.assign({}, prev, {
|
|
26156
|
+
hide: props.hide
|
|
26157
|
+
}));
|
|
26158
|
+
}, [props.hide]);
|
|
26159
|
+
React.useEffect(() => {
|
|
26160
|
+
var _props$onChangeVisibi;
|
|
26161
|
+
|
|
26162
|
+
props === null || props === void 0 ? void 0 : (_props$onChangeVisibi = props.onChangeVisibility) === null || _props$onChangeVisibi === void 0 ? void 0 : _props$onChangeVisibi.call(props, state.hide);
|
|
26163
|
+
}, [state.hide]);
|
|
25980
26164
|
|
|
25981
26165
|
const toogleVisibility = value => {
|
|
25982
|
-
updateState(Object.assign({},
|
|
25983
|
-
hide: !
|
|
26166
|
+
updateState(prev => Object.assign({}, prev, {
|
|
26167
|
+
hide: !prev.hide
|
|
25984
26168
|
}));
|
|
25985
26169
|
};
|
|
25986
26170
|
|
|
25987
26171
|
const getIsComplete = currentStep => {
|
|
25988
26172
|
var _state$isComplete;
|
|
25989
26173
|
|
|
25990
|
-
return state
|
|
26174
|
+
return state === null || state === void 0 ? void 0 : (_state$isComplete = state.isComplete) === null || _state$isComplete === void 0 ? void 0 : _state$isComplete[currentStep - 1];
|
|
25991
26175
|
};
|
|
25992
26176
|
|
|
25993
26177
|
const getTitleStep = currentStep => {
|
|
25994
26178
|
var _props$navContents, _props$navContents2;
|
|
25995
26179
|
|
|
25996
|
-
return props
|
|
26180
|
+
return props === null || props === void 0 ? void 0 : (_props$navContents = props.navContents) === null || _props$navContents === void 0 ? void 0 : (_props$navContents2 = _props$navContents[currentStep - 1]) === null || _props$navContents2 === void 0 ? void 0 : _props$navContents2.title;
|
|
25997
26181
|
};
|
|
25998
26182
|
|
|
25999
26183
|
const setState = value => {
|
|
@@ -26039,17 +26223,17 @@
|
|
|
26039
26223
|
__self: undefined,
|
|
26040
26224
|
__source: {
|
|
26041
26225
|
fileName: _jsxFileName$4,
|
|
26042
|
-
lineNumber:
|
|
26226
|
+
lineNumber: 273,
|
|
26043
26227
|
columnNumber: 5
|
|
26044
26228
|
}
|
|
26045
26229
|
}, /*#__PURE__*/React__default["default"].createElement(StepWizardContext.Provider, {
|
|
26046
26230
|
value: {
|
|
26047
26231
|
toogleVisibility,
|
|
26048
|
-
isHide: state
|
|
26232
|
+
isHide: state === null || state === void 0 ? void 0 : state.hide,
|
|
26049
26233
|
setComplete,
|
|
26050
26234
|
setState,
|
|
26051
26235
|
state,
|
|
26052
|
-
SW: state
|
|
26236
|
+
SW: state === null || state === void 0 ? void 0 : state.SW,
|
|
26053
26237
|
forbidClickNav: props.forbidClickNav,
|
|
26054
26238
|
titles: props.titles,
|
|
26055
26239
|
isMobile: props.isMobile,
|
|
@@ -26061,7 +26245,7 @@
|
|
|
26061
26245
|
__self: undefined,
|
|
26062
26246
|
__source: {
|
|
26063
26247
|
fileName: _jsxFileName$4,
|
|
26064
|
-
lineNumber:
|
|
26248
|
+
lineNumber: 274,
|
|
26065
26249
|
columnNumber: 7
|
|
26066
26250
|
}
|
|
26067
26251
|
}, /*#__PURE__*/React__default["default"].createElement(Stepper, _extends({}, props, {
|
|
@@ -26073,7 +26257,7 @@
|
|
|
26073
26257
|
__self: undefined,
|
|
26074
26258
|
__source: {
|
|
26075
26259
|
fileName: _jsxFileName$4,
|
|
26076
|
-
lineNumber:
|
|
26260
|
+
lineNumber: 296,
|
|
26077
26261
|
columnNumber: 16
|
|
26078
26262
|
}
|
|
26079
26263
|
}),
|
|
@@ -26083,7 +26267,7 @@
|
|
|
26083
26267
|
__self: undefined,
|
|
26084
26268
|
__source: {
|
|
26085
26269
|
fileName: _jsxFileName$4,
|
|
26086
|
-
lineNumber:
|
|
26270
|
+
lineNumber: 291,
|
|
26087
26271
|
columnNumber: 9
|
|
26088
26272
|
}
|
|
26089
26273
|
}), props.children)));
|
|
@@ -26221,10 +26405,10 @@
|
|
|
26221
26405
|
function getDatasets(content, activeId, isCollapse) {
|
|
26222
26406
|
const datasets = [];
|
|
26223
26407
|
|
|
26224
|
-
for (let i = 0; i < (content
|
|
26408
|
+
for (let i = 0; i < (content === null || content === void 0 ? void 0 : content.length); i++) {
|
|
26225
26409
|
var _content$i;
|
|
26226
26410
|
|
|
26227
|
-
if (((_content$i = content[i])
|
|
26411
|
+
if (((_content$i = content[i]) === null || _content$i === void 0 ? void 0 : _content$i.id) === activeId) {
|
|
26228
26412
|
datasets.unshift(content[i]);
|
|
26229
26413
|
} else {
|
|
26230
26414
|
datasets.push(content[i]);
|
|
@@ -26264,7 +26448,7 @@
|
|
|
26264
26448
|
lineNumber: 99,
|
|
26265
26449
|
columnNumber: 7
|
|
26266
26450
|
}
|
|
26267
|
-
}, (_getDatasets = getDatasets(content, activeId, isCollapse))
|
|
26451
|
+
}, (_getDatasets = getDatasets(content, activeId, isCollapse)) === null || _getDatasets === void 0 ? void 0 : _getDatasets.map((item, index) => {
|
|
26268
26452
|
return /*#__PURE__*/React__default["default"].createElement(List, {
|
|
26269
26453
|
key: index,
|
|
26270
26454
|
__self: this,
|
|
@@ -26281,11 +26465,11 @@
|
|
|
26281
26465
|
marginLeft: '-4px !important',
|
|
26282
26466
|
borderLeftWidth: '4px !important',
|
|
26283
26467
|
borderLeftStyle: 'solid !important',
|
|
26284
|
-
borderLeftColor: `${(item
|
|
26468
|
+
borderLeftColor: `${(item === null || item === void 0 ? void 0 : item.id) === activeId ? colors$4.primary500 : 'transparent'} !important`,
|
|
26285
26469
|
paddingLeft: '16px !important',
|
|
26286
26470
|
minHeight: 25
|
|
26287
26471
|
},
|
|
26288
|
-
"data-to-scrollspy-id": item
|
|
26472
|
+
"data-to-scrollspy-id": item === null || item === void 0 ? void 0 : item.id,
|
|
26289
26473
|
__self: this,
|
|
26290
26474
|
__source: {
|
|
26291
26475
|
fileName: _jsxFileName$2,
|
|
@@ -26294,8 +26478,8 @@
|
|
|
26294
26478
|
}
|
|
26295
26479
|
}, /*#__PURE__*/React__default["default"].createElement(Title$1, {
|
|
26296
26480
|
className: "link-title",
|
|
26297
|
-
active: (item
|
|
26298
|
-
href: `#${item
|
|
26481
|
+
active: (item === null || item === void 0 ? void 0 : item.id) === activeId,
|
|
26482
|
+
href: `#${item === null || item === void 0 ? void 0 : item.id}`,
|
|
26299
26483
|
onClick: e => {
|
|
26300
26484
|
e.preventDefault();
|
|
26301
26485
|
const target = window.document.getElementById(e.currentTarget.href.split('#')[1]);
|
|
@@ -26324,7 +26508,7 @@
|
|
|
26324
26508
|
lineNumber: 117,
|
|
26325
26509
|
columnNumber: 17
|
|
26326
26510
|
}
|
|
26327
|
-
}, item
|
|
26511
|
+
}, item === null || item === void 0 ? void 0 : item.title), item === null || item === void 0 ? void 0 : item.icon));
|
|
26328
26512
|
})));
|
|
26329
26513
|
}
|
|
26330
26514
|
|
|
@@ -27909,7 +28093,7 @@
|
|
|
27909
28093
|
isTruncated: true
|
|
27910
28094
|
}, {
|
|
27911
28095
|
children: inputValue
|
|
27912
|
-
}), void 0), jsxRuntime.jsx(Button$
|
|
28096
|
+
}), void 0), jsxRuntime.jsx(Button$3, __assign({
|
|
27913
28097
|
type: "button",
|
|
27914
28098
|
size: "sm",
|
|
27915
28099
|
buttonType: "secondary",
|
|
@@ -28372,7 +28556,7 @@
|
|
|
28372
28556
|
}
|
|
28373
28557
|
}
|
|
28374
28558
|
}, {
|
|
28375
|
-
children: jsxRuntime.jsx(Button$
|
|
28559
|
+
children: jsxRuntime.jsx(Button$3, __assign({
|
|
28376
28560
|
buttonType: "ghost",
|
|
28377
28561
|
css: {
|
|
28378
28562
|
fontWeight: 600,
|
|
@@ -30655,7 +30839,7 @@
|
|
|
30655
30839
|
exports.Breadcrumb = Breadcrumb;
|
|
30656
30840
|
exports.BreadcrumbItem = BreadcrumbItem;
|
|
30657
30841
|
exports.BreadcrumbLink = BreadcrumbLink;
|
|
30658
|
-
exports.Button = Button$
|
|
30842
|
+
exports.Button = Button$3;
|
|
30659
30843
|
exports.ButtonDropdown = ButtonDropdown;
|
|
30660
30844
|
exports.ButtonGroup = ButtonGroup$1;
|
|
30661
30845
|
exports.ButtonGroupItem = ButtonGroupItem;
|
|
@@ -30714,6 +30898,7 @@
|
|
|
30714
30898
|
exports.InputCheckbox = InputCheckbox;
|
|
30715
30899
|
exports.InputColorPicker = InputColorPicker;
|
|
30716
30900
|
exports.InputCombobox = InputCombobox;
|
|
30901
|
+
exports.InputCounter = InputCounter;
|
|
30717
30902
|
exports.InputCreatable = InputCreatable;
|
|
30718
30903
|
exports.InputDatePicker = InputDatePicker;
|
|
30719
30904
|
exports.InputGroup = InputGroup;
|
|
@@ -30801,6 +30986,7 @@
|
|
|
30801
30986
|
exports.TOP_RIGHT_POSITION = TOP_RIGHT_POSITION;
|
|
30802
30987
|
exports.Table = Table;
|
|
30803
30988
|
exports.TableBody = TableBody$2;
|
|
30989
|
+
exports.TableCell = TableCell$2;
|
|
30804
30990
|
exports.TableColumn = TableColumn;
|
|
30805
30991
|
exports.TableContent = TableContent$2;
|
|
30806
30992
|
exports.TableFoot = TableFoot$2;
|
|
@@ -30811,6 +30997,7 @@
|
|
|
30811
30997
|
exports.TableHeaderCellContainer = TableHeaderCellContainer;
|
|
30812
30998
|
exports.TableOfContent = TableOfContent;
|
|
30813
30999
|
exports.TableOfContentPage = TableOfContentPage;
|
|
31000
|
+
exports.TableRow = TableRow$2;
|
|
30814
31001
|
exports.Tabs = Tabs$1;
|
|
30815
31002
|
exports.TabsContent = TabsContent$1;
|
|
30816
31003
|
exports.TabsList = TabsList$1;
|