sag_components 2.0.0-beta210 → 2.0.0-beta211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +227 -216
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +227 -216
- package/dist/index.js.map +1 -1
- package/dist/types/components/QuickFilter/QuickFilter.d.ts +3 -1
- package/dist/types/components/QuickFilter/QuickFilter.stories.d.ts +21 -0
- package/dist/types/components/QuickFilterDropdownMultiSelection/QuickFilterDropdownMultiSelection.d.ts +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2104,7 +2104,7 @@ const NoDataFoundMessage = props => {
|
|
|
2104
2104
|
}, noDataText));
|
|
2105
2105
|
};
|
|
2106
2106
|
|
|
2107
|
-
const scrollableStyles$
|
|
2107
|
+
const scrollableStyles$g = `
|
|
2108
2108
|
overflow-y: auto;
|
|
2109
2109
|
|
|
2110
2110
|
&::-webkit-scrollbar {
|
|
@@ -2133,7 +2133,7 @@ const ControlsContainer$e = styled__default["default"].div`
|
|
|
2133
2133
|
display: flex;
|
|
2134
2134
|
align-items: center;
|
|
2135
2135
|
@media (max-width: 1536px) {
|
|
2136
|
-
${scrollableStyles$
|
|
2136
|
+
${scrollableStyles$g}
|
|
2137
2137
|
}
|
|
2138
2138
|
|
|
2139
2139
|
> * {
|
|
@@ -3815,7 +3815,7 @@ const SearchInput$1 = props => {
|
|
|
3815
3815
|
}));
|
|
3816
3816
|
};
|
|
3817
3817
|
|
|
3818
|
-
const scrollableStyles$
|
|
3818
|
+
const scrollableStyles$f = `
|
|
3819
3819
|
overflow-y: auto;
|
|
3820
3820
|
|
|
3821
3821
|
&::-webkit-scrollbar {
|
|
@@ -3898,7 +3898,7 @@ const PresentationSlider = styled__default["default"].div`
|
|
|
3898
3898
|
`;
|
|
3899
3899
|
const Body = styled__default["default"].div`
|
|
3900
3900
|
width: 100%;
|
|
3901
|
-
${scrollableStyles$
|
|
3901
|
+
${scrollableStyles$f}
|
|
3902
3902
|
position: relative;
|
|
3903
3903
|
overflow-x: hidden;
|
|
3904
3904
|
box-sizing: border-box;
|
|
@@ -8752,7 +8752,7 @@ const MenuItemUpIcon = _ref => {
|
|
|
8752
8752
|
};
|
|
8753
8753
|
|
|
8754
8754
|
/* eslint-disable no-nested-ternary */
|
|
8755
|
-
const scrollableStyles$
|
|
8755
|
+
const scrollableStyles$e = `
|
|
8756
8756
|
overflow-y: auto;
|
|
8757
8757
|
|
|
8758
8758
|
&::-webkit-scrollbar {
|
|
@@ -8896,7 +8896,7 @@ const OptionsSubContainer$3 = styled__default["default"].ul`
|
|
|
8896
8896
|
z-index: 101;
|
|
8897
8897
|
top: 100%;
|
|
8898
8898
|
/* left: 0; */
|
|
8899
|
-
${scrollableStyles$
|
|
8899
|
+
${scrollableStyles$e}
|
|
8900
8900
|
list-style: none;
|
|
8901
8901
|
font-weight: 400;
|
|
8902
8902
|
margin: 0;
|
|
@@ -9246,7 +9246,7 @@ const CheckBoxNotCheckedIcon = _ref => {
|
|
|
9246
9246
|
};
|
|
9247
9247
|
|
|
9248
9248
|
/* eslint-disable no-nested-ternary */
|
|
9249
|
-
const scrollableStyles$
|
|
9249
|
+
const scrollableStyles$d = `
|
|
9250
9250
|
overflow-y: auto;
|
|
9251
9251
|
|
|
9252
9252
|
&::-webkit-scrollbar {
|
|
@@ -9391,7 +9391,7 @@ const OptionsSubContainer$2 = styled__default["default"].ul`
|
|
|
9391
9391
|
z-index: 101;
|
|
9392
9392
|
top: 100%;
|
|
9393
9393
|
/* left: 0; */
|
|
9394
|
-
${scrollableStyles$
|
|
9394
|
+
${scrollableStyles$d}
|
|
9395
9395
|
list-style: none;
|
|
9396
9396
|
font-weight: 400;
|
|
9397
9397
|
margin: 0;
|
|
@@ -10590,23 +10590,24 @@ const QuarterPopupPicker = ({
|
|
|
10590
10590
|
};
|
|
10591
10591
|
|
|
10592
10592
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10593
|
-
const QuarterPicker =
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10593
|
+
const QuarterPicker = _ref => {
|
|
10594
|
+
let {
|
|
10595
|
+
availableQuarters,
|
|
10596
|
+
// ["Q1-2024"]
|
|
10597
|
+
label,
|
|
10598
|
+
onChange,
|
|
10599
|
+
borderRadius,
|
|
10600
|
+
required,
|
|
10601
|
+
width,
|
|
10602
|
+
height,
|
|
10603
|
+
placeholder,
|
|
10604
|
+
disabled,
|
|
10605
|
+
borderColor,
|
|
10606
|
+
borderColorFocus,
|
|
10607
|
+
textColor,
|
|
10608
|
+
selectedValue,
|
|
10609
|
+
startYear
|
|
10610
|
+
} = _ref;
|
|
10610
10611
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10611
10612
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10612
10613
|
const [value, setValue] = React$1.useState('');
|
|
@@ -11048,22 +11049,23 @@ const MonthPopupPicker = ({
|
|
|
11048
11049
|
};
|
|
11049
11050
|
|
|
11050
11051
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11051
|
-
const MonthPicker =
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11052
|
+
const MonthPicker = _ref => {
|
|
11053
|
+
let {
|
|
11054
|
+
availableMonths,
|
|
11055
|
+
label,
|
|
11056
|
+
onChange,
|
|
11057
|
+
borderRadius,
|
|
11058
|
+
required,
|
|
11059
|
+
width,
|
|
11060
|
+
height,
|
|
11061
|
+
placeholder,
|
|
11062
|
+
disabled,
|
|
11063
|
+
borderColor,
|
|
11064
|
+
borderColorFocus,
|
|
11065
|
+
textColor,
|
|
11066
|
+
selectedValue,
|
|
11067
|
+
startYear
|
|
11068
|
+
} = _ref;
|
|
11067
11069
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
11068
11070
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
11069
11071
|
const [value, setValue] = React$1.useState('');
|
|
@@ -11990,7 +11992,7 @@ const SortIcon$1 = _ref => {
|
|
|
11990
11992
|
}))));
|
|
11991
11993
|
};
|
|
11992
11994
|
|
|
11993
|
-
const scrollableStyles$
|
|
11995
|
+
const scrollableStyles$c = `
|
|
11994
11996
|
overflow-y: auto;
|
|
11995
11997
|
|
|
11996
11998
|
&::-webkit-scrollbar {
|
|
@@ -12225,7 +12227,7 @@ const TableWrapper$3 = styled__default["default"].div`
|
|
|
12225
12227
|
border: 1px solid #dddddd;
|
|
12226
12228
|
border-radius: ${props => props.columnsNumber > props.maxColumnsNumber ? ' 12px 12px 6px 6px' : '12px'};
|
|
12227
12229
|
overflow-x: ${props => props.columnsNumber > props.maxColumnsNumber ? 'auto' : 'hidden'};
|
|
12228
|
-
${scrollableStyles$
|
|
12230
|
+
${scrollableStyles$c}
|
|
12229
12231
|
`;
|
|
12230
12232
|
const Table$3 = styled__default["default"].table`
|
|
12231
12233
|
font-family: "Poppins", sans-serif;
|
|
@@ -13302,7 +13304,7 @@ const BannerEventBoxList = props => {
|
|
|
13302
13304
|
})), showDraft && /*#__PURE__*/React__default["default"].createElement(DraftTag$1, null, "DRAFT")) : children));
|
|
13303
13305
|
};
|
|
13304
13306
|
|
|
13305
|
-
const scrollableStyles$
|
|
13307
|
+
const scrollableStyles$b = `
|
|
13306
13308
|
overflow-y: auto;
|
|
13307
13309
|
|
|
13308
13310
|
&::-webkit-scrollbar {
|
|
@@ -13339,7 +13341,7 @@ const Modal$1 = styled__default["default"].div`
|
|
|
13339
13341
|
width: 79%;
|
|
13340
13342
|
max-width: 1500px;
|
|
13341
13343
|
margin: 0 auto;
|
|
13342
|
-
${scrollableStyles$
|
|
13344
|
+
${scrollableStyles$b}
|
|
13343
13345
|
`;
|
|
13344
13346
|
const ModalHeader$2 = styled__default["default"].div`
|
|
13345
13347
|
display: flex;
|
|
@@ -13348,7 +13350,7 @@ const ModalHeader$2 = styled__default["default"].div`
|
|
|
13348
13350
|
margin-bottom: 32px;
|
|
13349
13351
|
`;
|
|
13350
13352
|
const ModalBody$1 = styled__default["default"].div`
|
|
13351
|
-
${scrollableStyles$
|
|
13353
|
+
${scrollableStyles$b}
|
|
13352
13354
|
max-height: 80vh;
|
|
13353
13355
|
`;
|
|
13354
13356
|
const ModalTitle$2 = styled__default["default"].h5`
|
|
@@ -24174,21 +24176,22 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
24174
24176
|
position: absolute;
|
|
24175
24177
|
`;
|
|
24176
24178
|
|
|
24177
|
-
const QuickFilterDropdownSingle =
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
|
|
24186
|
-
|
|
24187
|
-
|
|
24188
|
-
|
|
24189
|
-
|
|
24190
|
-
|
|
24191
|
-
|
|
24179
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24180
|
+
let {
|
|
24181
|
+
label,
|
|
24182
|
+
hoverColor,
|
|
24183
|
+
options,
|
|
24184
|
+
selectedValue,
|
|
24185
|
+
placeHolder,
|
|
24186
|
+
onChange,
|
|
24187
|
+
disabled,
|
|
24188
|
+
width,
|
|
24189
|
+
error,
|
|
24190
|
+
errorMessage,
|
|
24191
|
+
xIconShow,
|
|
24192
|
+
labelColor,
|
|
24193
|
+
showLabelOnTop
|
|
24194
|
+
} = _ref;
|
|
24192
24195
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24193
24196
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24194
24197
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24405,101 +24408,98 @@ QuickFilterDropdownSingle.defaultProps = {
|
|
|
24405
24408
|
showLabelOnTop: true
|
|
24406
24409
|
};
|
|
24407
24410
|
|
|
24411
|
+
const scrollableStyles$a = `
|
|
24412
|
+
overflow-y: auto;
|
|
24413
|
+
&::-webkit-scrollbar {
|
|
24414
|
+
width: 4px;
|
|
24415
|
+
}
|
|
24416
|
+
&::-webkit-scrollbar-track {
|
|
24417
|
+
background: #E8E8E8;
|
|
24418
|
+
border-radius: 5px;
|
|
24419
|
+
}
|
|
24420
|
+
&::-webkit-scrollbar-thumb {
|
|
24421
|
+
background: #D0D0D0;
|
|
24422
|
+
border-radius: 5px;
|
|
24423
|
+
}
|
|
24424
|
+
`;
|
|
24408
24425
|
const DropdownWrapper = styled__default["default"].div`
|
|
24409
|
-
|
|
24410
|
-
|
|
24411
|
-
|
|
24412
|
-
|
|
24413
|
-
|
|
24414
|
-
|
|
24415
|
-
|
|
24416
|
-
|
|
24417
|
-
|
|
24426
|
+
position: relative;
|
|
24427
|
+
display: flex;
|
|
24428
|
+
flex-direction: column;
|
|
24429
|
+
align-content: center;
|
|
24430
|
+
justify-content: center;
|
|
24431
|
+
align-items: flex-start;
|
|
24432
|
+
width: ${props => props.width || '300px'};
|
|
24433
|
+
min-width: ${props => props.width || '300px'};
|
|
24434
|
+
max-width: ${props => props.width || '300px'};
|
|
24435
|
+
font-family: "Poppins", sans-serif;
|
|
24436
|
+
font-weight: 400;
|
|
24418
24437
|
font-size: 14px;
|
|
24419
24438
|
border-radius: 10px;
|
|
24420
24439
|
`;
|
|
24421
24440
|
const Label$5 = styled__default["default"].label`
|
|
24422
|
-
font-size:
|
|
24423
|
-
font-weight:
|
|
24424
|
-
|
|
24425
|
-
|
|
24426
|
-
|
|
24427
|
-
|
|
24428
|
-
color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
|
|
24429
|
-
background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
|
|
24430
|
-
position: absolute;
|
|
24431
|
-
top: ${props => props.isFocused || props.hasValue ? '0px' : '27px'};
|
|
24432
|
-
left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
|
|
24433
|
-
font-family: Poppins;
|
|
24434
|
-
transform: translateY(-50%);
|
|
24435
|
-
transition: ${props => props.showLabelOnTop ? 'top 0.3s ease, font-size 0.3s ease, color 0.3s ease' : ''} ;
|
|
24441
|
+
font-size: 14px;
|
|
24442
|
+
font-weight: 500;
|
|
24443
|
+
color: ${props => props.disabled ? '#D0D0D0' : '212121'};
|
|
24444
|
+
white-space: nowrap;
|
|
24445
|
+
`;
|
|
24446
|
+
const InputContainer$2 = styled__default["default"].div`
|
|
24436
24447
|
display: flex;
|
|
24448
|
+
justify-content: space-between;
|
|
24449
|
+
align-content: center;
|
|
24450
|
+
white-space: pre-wrap;
|
|
24437
24451
|
align-items: center;
|
|
24452
|
+
overflow: hidden;
|
|
24453
|
+
padding: 6px 16px;
|
|
24454
|
+
margin-bottom: 8px;
|
|
24455
|
+
height: ${props => props.height || '38px'};
|
|
24456
|
+
min-height: ${props => props.height || '38px'};
|
|
24457
|
+
max-height: ${props => props.height || '38px'};
|
|
24458
|
+
width: 100%;
|
|
24438
24459
|
box-sizing: border-box;
|
|
24439
|
-
|
|
24440
|
-
|
|
24441
|
-
|
|
24442
|
-
|
|
24443
|
-
|
|
24444
|
-
|
|
24445
|
-
|
|
24446
|
-
|
|
24447
|
-
|
|
24448
|
-
justify-content: flex-start;
|
|
24449
|
-
align-content: center;
|
|
24450
|
-
white-space: pre-wrap;
|
|
24451
|
-
align-items: center;
|
|
24452
|
-
overflow: hidden;
|
|
24453
|
-
padding: 0 5px 0 0;
|
|
24454
|
-
margin-bottom: 8px;
|
|
24455
|
-
gap: 4px;
|
|
24456
|
-
width: 100%;
|
|
24457
|
-
height: 100%;
|
|
24458
|
-
box-sizing: border-box;
|
|
24459
|
-
background-color: transparent;
|
|
24460
|
-
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
|
|
24461
|
-
font-family: "Poppins", sans-serif;
|
|
24462
|
-
font-weight: 400;
|
|
24463
|
-
font-size: 14px;
|
|
24464
|
-
border-radius: 12px;
|
|
24465
|
-
outline: none;
|
|
24466
|
-
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
24460
|
+
border: 1px solid
|
|
24461
|
+
${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
|
|
24462
|
+
font-family: "Poppins", sans-serif;
|
|
24463
|
+
font-weight: 400;
|
|
24464
|
+
font-size: 14px;
|
|
24465
|
+
border-radius: 9px;
|
|
24466
|
+
outline: none;
|
|
24467
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
24468
|
+
|
|
24467
24469
|
&:hover {
|
|
24468
|
-
border: 1px solid
|
|
24470
|
+
border: 1px solid
|
|
24471
|
+
${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.hoverColor || '#212121'};
|
|
24469
24472
|
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
24470
24473
|
}
|
|
24471
|
-
|
|
24472
|
-
|
|
24474
|
+
|
|
24475
|
+
&:focus {
|
|
24476
|
+
border: 1px solid
|
|
24477
|
+
${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
|
|
24473
24478
|
}
|
|
24474
24479
|
`;
|
|
24475
24480
|
const InputSubContainer$1 = styled__default["default"].div`
|
|
24476
|
-
|
|
24477
|
-
|
|
24478
|
-
|
|
24479
|
-
|
|
24480
|
-
|
|
24481
|
-
|
|
24482
|
-
|
|
24483
|
-
|
|
24484
|
-
padding: 10px 4px 10px 10px;
|
|
24485
|
-
width: 100%;
|
|
24486
|
-
height: 50px;
|
|
24487
|
-
box-sizing: border-box;
|
|
24488
|
-
background-color: transparent;
|
|
24489
|
-
border-radius: 12px;
|
|
24490
|
-
outline: none;
|
|
24491
|
-
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
24481
|
+
display: flex;
|
|
24482
|
+
align-items: center;
|
|
24483
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
24484
|
+
gap: 4px;
|
|
24485
|
+
flex: 1;
|
|
24486
|
+
overflow: hidden;
|
|
24487
|
+
min-width: 0;
|
|
24488
|
+
max-width: calc(100% - 40px);
|
|
24492
24489
|
`;
|
|
24493
24490
|
const StyledInput$2 = styled__default["default"].input`
|
|
24494
|
-
width:
|
|
24495
|
-
height:
|
|
24496
|
-
font-family: Poppins;
|
|
24491
|
+
width: 100%;
|
|
24492
|
+
height: 20px;
|
|
24493
|
+
font-family: "Poppins";
|
|
24497
24494
|
font-weight: 400;
|
|
24498
24495
|
font-size: 14px;
|
|
24499
|
-
outline: none;
|
|
24500
|
-
|
|
24501
|
-
|
|
24502
|
-
|
|
24496
|
+
outline: none;
|
|
24497
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
24498
|
+
border: none;
|
|
24499
|
+
background-color: transparent;
|
|
24500
|
+
&::placeholder {
|
|
24501
|
+
color: ${props => props.disabled ? '#D0D0D0' : '#b1b1b1'};
|
|
24502
|
+
}
|
|
24503
24503
|
`;
|
|
24504
24504
|
const OptionsContainer$1 = styled__default["default"].div`
|
|
24505
24505
|
margin: 0;
|
|
@@ -24526,10 +24526,12 @@ const OptionsSubContainer = styled__default["default"].ul`
|
|
|
24526
24526
|
background-color: #fff;
|
|
24527
24527
|
display: ${props => props.showoptions && props.filteredoptions?.length > 0 ? 'block' : 'none'};
|
|
24528
24528
|
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
|
|
24529
|
-
max-height: 400px;
|
|
24530
|
-
|
|
24529
|
+
max-height: ${props => props.dropdownHeight || '400px'};
|
|
24530
|
+
${scrollableStyles$a}
|
|
24531
24531
|
`;
|
|
24532
24532
|
const OptionItem = styled__default["default"].li`
|
|
24533
|
+
display: flex;
|
|
24534
|
+
align-items: center;
|
|
24533
24535
|
gap: 8px;
|
|
24534
24536
|
padding: 10px;
|
|
24535
24537
|
cursor: pointer;
|
|
@@ -24550,34 +24552,34 @@ const ErrorMessage$1 = styled__default["default"].div`
|
|
|
24550
24552
|
margin-top: 5px;
|
|
24551
24553
|
`;
|
|
24552
24554
|
const SelectedOptionsContainer = styled__default["default"].div`
|
|
24553
|
-
|
|
24554
|
-
|
|
24555
|
-
|
|
24556
|
-
|
|
24557
|
-
|
|
24558
|
-
align-items: center;
|
|
24559
|
-
white-space: pre-wrap;
|
|
24560
|
-
overflow: hidden;
|
|
24561
|
-
padding: 0;
|
|
24562
|
-
font-weight: 400;
|
|
24563
|
-
border-top: none;
|
|
24564
|
-
border-radius: 4px;
|
|
24565
|
-
background-color: #fff;
|
|
24566
|
-
gap: 4px;
|
|
24567
|
-
`;
|
|
24568
|
-
const SelectedOptionItem = styled__default["default"].div`
|
|
24569
|
-
display: flex;
|
|
24570
|
-
margin: 0;
|
|
24571
|
-
flex-wrap: nowrap;
|
|
24572
|
-
white-space: pre-wrap;
|
|
24555
|
+
display: flex;
|
|
24556
|
+
flex-direction: row;
|
|
24557
|
+
align-items: center;
|
|
24558
|
+
gap: 4px;
|
|
24559
|
+
flex-wrap: nowrap;
|
|
24573
24560
|
overflow: hidden;
|
|
24561
|
+
flex-shrink: 0;
|
|
24562
|
+
min-width: 0;
|
|
24563
|
+
max-width: 170px;
|
|
24564
|
+
`;
|
|
24565
|
+
const SelectedOptionItem = styled__default["default"].div`
|
|
24566
|
+
display: flex;
|
|
24567
|
+
align-items: center;
|
|
24574
24568
|
cursor: pointer;
|
|
24575
24569
|
color: #212121;
|
|
24576
24570
|
background-color: #E3E4E5;
|
|
24577
|
-
border-radius: 4px;
|
|
24578
|
-
|
|
24579
|
-
padding: 4px 6px;
|
|
24571
|
+
border-radius: 4px;
|
|
24572
|
+
padding: 2px 4px;
|
|
24580
24573
|
font-size: 12px;
|
|
24574
|
+
height: 20px;
|
|
24575
|
+
white-space: nowrap;
|
|
24576
|
+
flex-shrink: 0;
|
|
24577
|
+
width: 65px;
|
|
24578
|
+
max-width: 65px;
|
|
24579
|
+
min-width: 65px;
|
|
24580
|
+
overflow: hidden;
|
|
24581
|
+
text-overflow: ellipsis;
|
|
24582
|
+
box-sizing: border-box;
|
|
24581
24583
|
`;
|
|
24582
24584
|
const IconContainer$2 = styled__default["default"].div`
|
|
24583
24585
|
display: flex;
|
|
@@ -24585,23 +24587,26 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24585
24587
|
cursor: pointer;
|
|
24586
24588
|
`;
|
|
24587
24589
|
|
|
24588
|
-
const QuickFilterDropdownMultiSelection =
|
|
24589
|
-
|
|
24590
|
-
|
|
24591
|
-
|
|
24592
|
-
|
|
24593
|
-
|
|
24594
|
-
|
|
24595
|
-
|
|
24596
|
-
|
|
24597
|
-
|
|
24598
|
-
|
|
24599
|
-
|
|
24600
|
-
|
|
24601
|
-
|
|
24602
|
-
|
|
24603
|
-
|
|
24604
|
-
|
|
24590
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24591
|
+
let {
|
|
24592
|
+
label,
|
|
24593
|
+
labelEmptyValue,
|
|
24594
|
+
options,
|
|
24595
|
+
selectedValue,
|
|
24596
|
+
placeHolder,
|
|
24597
|
+
onChange,
|
|
24598
|
+
required,
|
|
24599
|
+
disabled,
|
|
24600
|
+
width,
|
|
24601
|
+
height,
|
|
24602
|
+
error,
|
|
24603
|
+
errorMessage,
|
|
24604
|
+
labelColor,
|
|
24605
|
+
xIconShow,
|
|
24606
|
+
checkBoxColor,
|
|
24607
|
+
showLabelOnTop,
|
|
24608
|
+
dropdownHeight
|
|
24609
|
+
} = _ref;
|
|
24605
24610
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24606
24611
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24607
24612
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -24712,33 +24717,35 @@ const QuickFilterDropdownMultiSelection = ({
|
|
|
24712
24717
|
const displaySelectedOptions = () => {
|
|
24713
24718
|
const content = /*#__PURE__*/React__default["default"].createElement(SelectedOptionsContainer, {
|
|
24714
24719
|
className: "SelectedOptionsContainer"
|
|
24715
|
-
}, selectedOptions?.map((option, index) =>
|
|
24716
|
-
|
|
24717
|
-
|
|
24718
|
-
|
|
24719
|
-
|
|
24720
|
-
|
|
24721
|
-
|
|
24722
|
-
|
|
24723
|
-
|
|
24720
|
+
}, selectedOptions?.map((option, index) => {
|
|
24721
|
+
if (index < 2) {
|
|
24722
|
+
return /*#__PURE__*/React__default["default"].createElement(SelectedOptionItem, {
|
|
24723
|
+
className: "SelectedOptionItem",
|
|
24724
|
+
key: option.value,
|
|
24725
|
+
onClick: () => {
|
|
24726
|
+
toggleOption(option);
|
|
24727
|
+
setIsFocused(true);
|
|
24728
|
+
if (inputRef?.current) {
|
|
24729
|
+
inputRef?.current?.focus();
|
|
24730
|
+
}
|
|
24731
|
+
}
|
|
24732
|
+
}, option.label && option.label?.length > 5 ? `${option.label?.substring(0, 5)}...` : option.label, /*#__PURE__*/React__default["default"].createElement(CloseXIcon, {
|
|
24733
|
+
width: "8px",
|
|
24734
|
+
height: "8px",
|
|
24735
|
+
fill: "#212121"
|
|
24736
|
+
}));
|
|
24724
24737
|
}
|
|
24725
|
-
|
|
24726
|
-
|
|
24727
|
-
height: "8px",
|
|
24728
|
-
fill: "#212121"
|
|
24729
|
-
})) : ' '), selectedOptions.length > 2 ? /*#__PURE__*/React__default["default"].createElement(SelectedOptionItem, {
|
|
24738
|
+
return null;
|
|
24739
|
+
}), selectedOptions.length > 2 && /*#__PURE__*/React__default["default"].createElement(SelectedOptionItem, {
|
|
24730
24740
|
className: "SelectedOptionItem"
|
|
24731
|
-
}, selectedOptions.length - 2
|
|
24741
|
+
}, "+", selectedOptions.length - 2));
|
|
24732
24742
|
return content;
|
|
24733
24743
|
};
|
|
24734
24744
|
const getLabel = () => {
|
|
24735
24745
|
if (!showLabelOnTop && isFocused) {
|
|
24736
24746
|
return '';
|
|
24737
24747
|
}
|
|
24738
|
-
|
|
24739
|
-
return label;
|
|
24740
|
-
}
|
|
24741
|
-
return labelEmptyValue;
|
|
24748
|
+
return label;
|
|
24742
24749
|
};
|
|
24743
24750
|
const getRequired = () => {
|
|
24744
24751
|
if (!showLabelOnTop && isFocused) {
|
|
@@ -24747,18 +24754,12 @@ const QuickFilterDropdownMultiSelection = ({
|
|
|
24747
24754
|
if (!showLabelOnTop && !label && selectedOptions?.length > 0) {
|
|
24748
24755
|
return '';
|
|
24749
24756
|
}
|
|
24750
|
-
if (required) {
|
|
24751
|
-
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
24752
|
-
style: {
|
|
24753
|
-
color: 'red'
|
|
24754
|
-
}
|
|
24755
|
-
}, "*");
|
|
24756
|
-
}
|
|
24757
24757
|
return '';
|
|
24758
24758
|
};
|
|
24759
24759
|
return /*#__PURE__*/React__default["default"].createElement(DropdownWrapper, {
|
|
24760
24760
|
className: "DropdownWrapper",
|
|
24761
24761
|
width: width,
|
|
24762
|
+
height: height,
|
|
24762
24763
|
onMouseEnter: () => setHoverInputContainer(true),
|
|
24763
24764
|
onMouseLeave: () => setHoverInputContainer(false)
|
|
24764
24765
|
}, /*#__PURE__*/React__default["default"].createElement(InputContainer$2, {
|
|
@@ -24766,7 +24767,8 @@ const QuickFilterDropdownMultiSelection = ({
|
|
|
24766
24767
|
labelColor: labelColor,
|
|
24767
24768
|
disabled: disabled,
|
|
24768
24769
|
error: error,
|
|
24769
|
-
isFocused: isFocused
|
|
24770
|
+
isFocused: isFocused,
|
|
24771
|
+
height: height
|
|
24770
24772
|
}, /*#__PURE__*/React__default["default"].createElement(InputSubContainer$1, {
|
|
24771
24773
|
className: "InputSubContainer",
|
|
24772
24774
|
ref: containerRef,
|
|
@@ -24784,7 +24786,7 @@ const QuickFilterDropdownMultiSelection = ({
|
|
|
24784
24786
|
errorMessage: errorMessage,
|
|
24785
24787
|
onClick: handleLabelClick,
|
|
24786
24788
|
showLabelOnTop: showLabelOnTop
|
|
24787
|
-
}, getLabel(), getRequired()), displaySelectedOptions(),
|
|
24789
|
+
}, getLabel(), getRequired()), displaySelectedOptions(), /*#__PURE__*/React__default["default"].createElement(StyledInput$2, {
|
|
24788
24790
|
className: "StyledInput",
|
|
24789
24791
|
ref: inputRef,
|
|
24790
24792
|
value: inputValue,
|
|
@@ -24793,10 +24795,10 @@ const QuickFilterDropdownMultiSelection = ({
|
|
|
24793
24795
|
onClick: handleLabelClick,
|
|
24794
24796
|
type: "search",
|
|
24795
24797
|
disabled: disabled,
|
|
24796
|
-
placeholder:
|
|
24798
|
+
placeholder: placeHolder,
|
|
24797
24799
|
error: error,
|
|
24798
24800
|
isFocused: isFocused
|
|
24799
|
-
})
|
|
24801
|
+
})), selectedOptions.length > 0 && xIconShow && /*#__PURE__*/React__default["default"].createElement(IconContainer$2, {
|
|
24800
24802
|
className: "IconContainer",
|
|
24801
24803
|
onClick: handleClearClick
|
|
24802
24804
|
}, /*#__PURE__*/React__default["default"].createElement(CloseXIcon, {
|
|
@@ -24825,13 +24827,14 @@ const QuickFilterDropdownMultiSelection = ({
|
|
|
24825
24827
|
className: "OptionsSubContainer",
|
|
24826
24828
|
showoptions: showOptions,
|
|
24827
24829
|
disabled: disabled,
|
|
24828
|
-
filteredoptions: filteredoptions
|
|
24830
|
+
filteredoptions: filteredoptions,
|
|
24831
|
+
dropdownHeight: dropdownHeight
|
|
24829
24832
|
}, filteredoptions.map(option => /*#__PURE__*/React__default["default"].createElement(OptionItem, {
|
|
24830
24833
|
className: "OptionItem",
|
|
24831
24834
|
key: option.value,
|
|
24832
24835
|
onClick: () => toggleOption(option),
|
|
24833
24836
|
selected: isDropdowned(option)
|
|
24834
|
-
},
|
|
24837
|
+
}, /*#__PURE__*/React__default["default"].createElement(IconContainer$2, {
|
|
24835
24838
|
className: "IconContainer"
|
|
24836
24839
|
}, selectedOptions.find(itemSelectedOptions => option.value === itemSelectedOptions.value) ? /*#__PURE__*/React__default["default"].createElement(CheckBoxCheckedIcon, {
|
|
24837
24840
|
width: "14px",
|
|
@@ -24841,7 +24844,7 @@ const QuickFilterDropdownMultiSelection = ({
|
|
|
24841
24844
|
width: "14px",
|
|
24842
24845
|
height: "14px",
|
|
24843
24846
|
color: disabled ? '#888' : '#212121'
|
|
24844
|
-
})), option.label)))));
|
|
24847
|
+
})), highlightText(option.label, inputValue))))));
|
|
24845
24848
|
};
|
|
24846
24849
|
QuickFilterDropdownMultiSelection.propTypes = {
|
|
24847
24850
|
placeHolder: PropTypes.string,
|
|
@@ -24851,6 +24854,8 @@ QuickFilterDropdownMultiSelection.propTypes = {
|
|
|
24851
24854
|
checkBoxColor: PropTypes.string,
|
|
24852
24855
|
required: PropTypes.bool,
|
|
24853
24856
|
width: PropTypes.string,
|
|
24857
|
+
height: PropTypes.string,
|
|
24858
|
+
dropdownHeight: PropTypes.string,
|
|
24854
24859
|
disabled: PropTypes.bool,
|
|
24855
24860
|
error: PropTypes.bool,
|
|
24856
24861
|
errorMessage: '',
|
|
@@ -24874,6 +24879,8 @@ QuickFilterDropdownMultiSelection.defaultProps = {
|
|
|
24874
24879
|
checkBoxColor: '#229E38',
|
|
24875
24880
|
required: true,
|
|
24876
24881
|
width: '300px',
|
|
24882
|
+
height: '38px',
|
|
24883
|
+
dropdownHeight: '500px',
|
|
24877
24884
|
disabled: false,
|
|
24878
24885
|
error: false,
|
|
24879
24886
|
errorMessage: '',
|
|
@@ -24910,7 +24917,9 @@ const QuickFilter = _ref => {
|
|
|
24910
24917
|
labelColor = "#066768",
|
|
24911
24918
|
placeHolder = "Select From List",
|
|
24912
24919
|
width = "auto",
|
|
24920
|
+
height = "38px",
|
|
24913
24921
|
checkBoxColor = "#229E38",
|
|
24922
|
+
dropdownHeight = "500px",
|
|
24914
24923
|
onChange = value => {},
|
|
24915
24924
|
options = [],
|
|
24916
24925
|
selectedValue = []
|
|
@@ -24926,6 +24935,8 @@ const QuickFilter = _ref => {
|
|
|
24926
24935
|
checkBoxColor: checkBoxColor,
|
|
24927
24936
|
options: options,
|
|
24928
24937
|
width: width,
|
|
24938
|
+
height: height,
|
|
24939
|
+
dropdownHeight: dropdownHeight,
|
|
24929
24940
|
disabled: disabled,
|
|
24930
24941
|
error: error,
|
|
24931
24942
|
errorMessage: errorMessage,
|
|
@@ -36043,9 +36054,9 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
36043
36054
|
}
|
|
36044
36055
|
`;
|
|
36045
36056
|
|
|
36046
|
-
/**
|
|
36047
|
-
* ToggleSwitch component for on/off states.
|
|
36048
|
-
* Supports small/large sizes and disabled state.
|
|
36057
|
+
/**
|
|
36058
|
+
* ToggleSwitch component for on/off states.
|
|
36059
|
+
* Supports small/large sizes and disabled state.
|
|
36049
36060
|
*/
|
|
36050
36061
|
function ToggleSwitch(_ref) {
|
|
36051
36062
|
let {
|