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.esm.js
CHANGED
|
@@ -2094,7 +2094,7 @@ const NoDataFoundMessage = props => {
|
|
|
2094
2094
|
}, noDataText));
|
|
2095
2095
|
};
|
|
2096
2096
|
|
|
2097
|
-
const scrollableStyles$
|
|
2097
|
+
const scrollableStyles$g = `
|
|
2098
2098
|
overflow-y: auto;
|
|
2099
2099
|
|
|
2100
2100
|
&::-webkit-scrollbar {
|
|
@@ -2123,7 +2123,7 @@ const ControlsContainer$e = styled.div`
|
|
|
2123
2123
|
display: flex;
|
|
2124
2124
|
align-items: center;
|
|
2125
2125
|
@media (max-width: 1536px) {
|
|
2126
|
-
${scrollableStyles$
|
|
2126
|
+
${scrollableStyles$g}
|
|
2127
2127
|
}
|
|
2128
2128
|
|
|
2129
2129
|
> * {
|
|
@@ -3805,7 +3805,7 @@ const SearchInput$1 = props => {
|
|
|
3805
3805
|
}));
|
|
3806
3806
|
};
|
|
3807
3807
|
|
|
3808
|
-
const scrollableStyles$
|
|
3808
|
+
const scrollableStyles$f = `
|
|
3809
3809
|
overflow-y: auto;
|
|
3810
3810
|
|
|
3811
3811
|
&::-webkit-scrollbar {
|
|
@@ -3888,7 +3888,7 @@ const PresentationSlider = styled.div`
|
|
|
3888
3888
|
`;
|
|
3889
3889
|
const Body = styled.div`
|
|
3890
3890
|
width: 100%;
|
|
3891
|
-
${scrollableStyles$
|
|
3891
|
+
${scrollableStyles$f}
|
|
3892
3892
|
position: relative;
|
|
3893
3893
|
overflow-x: hidden;
|
|
3894
3894
|
box-sizing: border-box;
|
|
@@ -8742,7 +8742,7 @@ const MenuItemUpIcon = _ref => {
|
|
|
8742
8742
|
};
|
|
8743
8743
|
|
|
8744
8744
|
/* eslint-disable no-nested-ternary */
|
|
8745
|
-
const scrollableStyles$
|
|
8745
|
+
const scrollableStyles$e = `
|
|
8746
8746
|
overflow-y: auto;
|
|
8747
8747
|
|
|
8748
8748
|
&::-webkit-scrollbar {
|
|
@@ -8886,7 +8886,7 @@ const OptionsSubContainer$3 = styled.ul`
|
|
|
8886
8886
|
z-index: 101;
|
|
8887
8887
|
top: 100%;
|
|
8888
8888
|
/* left: 0; */
|
|
8889
|
-
${scrollableStyles$
|
|
8889
|
+
${scrollableStyles$e}
|
|
8890
8890
|
list-style: none;
|
|
8891
8891
|
font-weight: 400;
|
|
8892
8892
|
margin: 0;
|
|
@@ -9236,7 +9236,7 @@ const CheckBoxNotCheckedIcon = _ref => {
|
|
|
9236
9236
|
};
|
|
9237
9237
|
|
|
9238
9238
|
/* eslint-disable no-nested-ternary */
|
|
9239
|
-
const scrollableStyles$
|
|
9239
|
+
const scrollableStyles$d = `
|
|
9240
9240
|
overflow-y: auto;
|
|
9241
9241
|
|
|
9242
9242
|
&::-webkit-scrollbar {
|
|
@@ -9381,7 +9381,7 @@ const OptionsSubContainer$2 = styled.ul`
|
|
|
9381
9381
|
z-index: 101;
|
|
9382
9382
|
top: 100%;
|
|
9383
9383
|
/* left: 0; */
|
|
9384
|
-
${scrollableStyles$
|
|
9384
|
+
${scrollableStyles$d}
|
|
9385
9385
|
list-style: none;
|
|
9386
9386
|
font-weight: 400;
|
|
9387
9387
|
margin: 0;
|
|
@@ -10580,23 +10580,24 @@ const QuarterPopupPicker = ({
|
|
|
10580
10580
|
};
|
|
10581
10581
|
|
|
10582
10582
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10583
|
-
const QuarterPicker =
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10583
|
+
const QuarterPicker = _ref => {
|
|
10584
|
+
let {
|
|
10585
|
+
availableQuarters,
|
|
10586
|
+
// ["Q1-2024"]
|
|
10587
|
+
label,
|
|
10588
|
+
onChange,
|
|
10589
|
+
borderRadius,
|
|
10590
|
+
required,
|
|
10591
|
+
width,
|
|
10592
|
+
height,
|
|
10593
|
+
placeholder,
|
|
10594
|
+
disabled,
|
|
10595
|
+
borderColor,
|
|
10596
|
+
borderColorFocus,
|
|
10597
|
+
textColor,
|
|
10598
|
+
selectedValue,
|
|
10599
|
+
startYear
|
|
10600
|
+
} = _ref;
|
|
10600
10601
|
const [isFocused, setIsFocused] = useState(false);
|
|
10601
10602
|
const [isOpen, setIsOpen] = useState(false);
|
|
10602
10603
|
const [value, setValue] = useState('');
|
|
@@ -11038,22 +11039,23 @@ const MonthPopupPicker = ({
|
|
|
11038
11039
|
};
|
|
11039
11040
|
|
|
11040
11041
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11041
|
-
const MonthPicker =
|
|
11042
|
-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11042
|
+
const MonthPicker = _ref => {
|
|
11043
|
+
let {
|
|
11044
|
+
availableMonths,
|
|
11045
|
+
label,
|
|
11046
|
+
onChange,
|
|
11047
|
+
borderRadius,
|
|
11048
|
+
required,
|
|
11049
|
+
width,
|
|
11050
|
+
height,
|
|
11051
|
+
placeholder,
|
|
11052
|
+
disabled,
|
|
11053
|
+
borderColor,
|
|
11054
|
+
borderColorFocus,
|
|
11055
|
+
textColor,
|
|
11056
|
+
selectedValue,
|
|
11057
|
+
startYear
|
|
11058
|
+
} = _ref;
|
|
11057
11059
|
const [isFocused, setIsFocused] = useState(false);
|
|
11058
11060
|
const [isOpen, setIsOpen] = useState(false);
|
|
11059
11061
|
const [value, setValue] = useState('');
|
|
@@ -11980,7 +11982,7 @@ const SortIcon$1 = _ref => {
|
|
|
11980
11982
|
}))));
|
|
11981
11983
|
};
|
|
11982
11984
|
|
|
11983
|
-
const scrollableStyles$
|
|
11985
|
+
const scrollableStyles$c = `
|
|
11984
11986
|
overflow-y: auto;
|
|
11985
11987
|
|
|
11986
11988
|
&::-webkit-scrollbar {
|
|
@@ -12215,7 +12217,7 @@ const TableWrapper$3 = styled.div`
|
|
|
12215
12217
|
border: 1px solid #dddddd;
|
|
12216
12218
|
border-radius: ${props => props.columnsNumber > props.maxColumnsNumber ? ' 12px 12px 6px 6px' : '12px'};
|
|
12217
12219
|
overflow-x: ${props => props.columnsNumber > props.maxColumnsNumber ? 'auto' : 'hidden'};
|
|
12218
|
-
${scrollableStyles$
|
|
12220
|
+
${scrollableStyles$c}
|
|
12219
12221
|
`;
|
|
12220
12222
|
const Table$3 = styled.table`
|
|
12221
12223
|
font-family: "Poppins", sans-serif;
|
|
@@ -13292,7 +13294,7 @@ const BannerEventBoxList = props => {
|
|
|
13292
13294
|
})), showDraft && /*#__PURE__*/React$1.createElement(DraftTag$1, null, "DRAFT")) : children));
|
|
13293
13295
|
};
|
|
13294
13296
|
|
|
13295
|
-
const scrollableStyles$
|
|
13297
|
+
const scrollableStyles$b = `
|
|
13296
13298
|
overflow-y: auto;
|
|
13297
13299
|
|
|
13298
13300
|
&::-webkit-scrollbar {
|
|
@@ -13329,7 +13331,7 @@ const Modal$1 = styled.div`
|
|
|
13329
13331
|
width: 79%;
|
|
13330
13332
|
max-width: 1500px;
|
|
13331
13333
|
margin: 0 auto;
|
|
13332
|
-
${scrollableStyles$
|
|
13334
|
+
${scrollableStyles$b}
|
|
13333
13335
|
`;
|
|
13334
13336
|
const ModalHeader$2 = styled.div`
|
|
13335
13337
|
display: flex;
|
|
@@ -13338,7 +13340,7 @@ const ModalHeader$2 = styled.div`
|
|
|
13338
13340
|
margin-bottom: 32px;
|
|
13339
13341
|
`;
|
|
13340
13342
|
const ModalBody$1 = styled.div`
|
|
13341
|
-
${scrollableStyles$
|
|
13343
|
+
${scrollableStyles$b}
|
|
13342
13344
|
max-height: 80vh;
|
|
13343
13345
|
`;
|
|
13344
13346
|
const ModalTitle$2 = styled.h5`
|
|
@@ -24164,21 +24166,22 @@ const DeleteIcon = styled.div`
|
|
|
24164
24166
|
position: absolute;
|
|
24165
24167
|
`;
|
|
24166
24168
|
|
|
24167
|
-
const QuickFilterDropdownSingle =
|
|
24168
|
-
|
|
24169
|
-
|
|
24170
|
-
|
|
24171
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24169
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24170
|
+
let {
|
|
24171
|
+
label,
|
|
24172
|
+
hoverColor,
|
|
24173
|
+
options,
|
|
24174
|
+
selectedValue,
|
|
24175
|
+
placeHolder,
|
|
24176
|
+
onChange,
|
|
24177
|
+
disabled,
|
|
24178
|
+
width,
|
|
24179
|
+
error,
|
|
24180
|
+
errorMessage,
|
|
24181
|
+
xIconShow,
|
|
24182
|
+
labelColor,
|
|
24183
|
+
showLabelOnTop
|
|
24184
|
+
} = _ref;
|
|
24182
24185
|
const [isFocused, setIsFocused] = useState(false);
|
|
24183
24186
|
const [showOptions, setShowOptions] = useState(false);
|
|
24184
24187
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24395,101 +24398,98 @@ QuickFilterDropdownSingle.defaultProps = {
|
|
|
24395
24398
|
showLabelOnTop: true
|
|
24396
24399
|
};
|
|
24397
24400
|
|
|
24401
|
+
const scrollableStyles$a = `
|
|
24402
|
+
overflow-y: auto;
|
|
24403
|
+
&::-webkit-scrollbar {
|
|
24404
|
+
width: 4px;
|
|
24405
|
+
}
|
|
24406
|
+
&::-webkit-scrollbar-track {
|
|
24407
|
+
background: #E8E8E8;
|
|
24408
|
+
border-radius: 5px;
|
|
24409
|
+
}
|
|
24410
|
+
&::-webkit-scrollbar-thumb {
|
|
24411
|
+
background: #D0D0D0;
|
|
24412
|
+
border-radius: 5px;
|
|
24413
|
+
}
|
|
24414
|
+
`;
|
|
24398
24415
|
const DropdownWrapper = styled.div`
|
|
24399
|
-
|
|
24400
|
-
|
|
24401
|
-
|
|
24402
|
-
|
|
24403
|
-
|
|
24404
|
-
|
|
24405
|
-
|
|
24406
|
-
|
|
24407
|
-
|
|
24416
|
+
position: relative;
|
|
24417
|
+
display: flex;
|
|
24418
|
+
flex-direction: column;
|
|
24419
|
+
align-content: center;
|
|
24420
|
+
justify-content: center;
|
|
24421
|
+
align-items: flex-start;
|
|
24422
|
+
width: ${props => props.width || '300px'};
|
|
24423
|
+
min-width: ${props => props.width || '300px'};
|
|
24424
|
+
max-width: ${props => props.width || '300px'};
|
|
24425
|
+
font-family: "Poppins", sans-serif;
|
|
24426
|
+
font-weight: 400;
|
|
24408
24427
|
font-size: 14px;
|
|
24409
24428
|
border-radius: 10px;
|
|
24410
24429
|
`;
|
|
24411
24430
|
const Label$5 = styled.label`
|
|
24412
|
-
font-size:
|
|
24413
|
-
font-weight:
|
|
24414
|
-
|
|
24415
|
-
|
|
24416
|
-
|
|
24417
|
-
|
|
24418
|
-
color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
|
|
24419
|
-
background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
|
|
24420
|
-
position: absolute;
|
|
24421
|
-
top: ${props => props.isFocused || props.hasValue ? '0px' : '27px'};
|
|
24422
|
-
left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
|
|
24423
|
-
font-family: Poppins;
|
|
24424
|
-
transform: translateY(-50%);
|
|
24425
|
-
transition: ${props => props.showLabelOnTop ? 'top 0.3s ease, font-size 0.3s ease, color 0.3s ease' : ''} ;
|
|
24431
|
+
font-size: 14px;
|
|
24432
|
+
font-weight: 500;
|
|
24433
|
+
color: ${props => props.disabled ? '#D0D0D0' : '212121'};
|
|
24434
|
+
white-space: nowrap;
|
|
24435
|
+
`;
|
|
24436
|
+
const InputContainer$2 = styled.div`
|
|
24426
24437
|
display: flex;
|
|
24438
|
+
justify-content: space-between;
|
|
24439
|
+
align-content: center;
|
|
24440
|
+
white-space: pre-wrap;
|
|
24427
24441
|
align-items: center;
|
|
24442
|
+
overflow: hidden;
|
|
24443
|
+
padding: 6px 16px;
|
|
24444
|
+
margin-bottom: 8px;
|
|
24445
|
+
height: ${props => props.height || '38px'};
|
|
24446
|
+
min-height: ${props => props.height || '38px'};
|
|
24447
|
+
max-height: ${props => props.height || '38px'};
|
|
24448
|
+
width: 100%;
|
|
24428
24449
|
box-sizing: border-box;
|
|
24429
|
-
|
|
24430
|
-
|
|
24431
|
-
|
|
24432
|
-
|
|
24433
|
-
|
|
24434
|
-
|
|
24435
|
-
|
|
24436
|
-
|
|
24437
|
-
|
|
24438
|
-
justify-content: flex-start;
|
|
24439
|
-
align-content: center;
|
|
24440
|
-
white-space: pre-wrap;
|
|
24441
|
-
align-items: center;
|
|
24442
|
-
overflow: hidden;
|
|
24443
|
-
padding: 0 5px 0 0;
|
|
24444
|
-
margin-bottom: 8px;
|
|
24445
|
-
gap: 4px;
|
|
24446
|
-
width: 100%;
|
|
24447
|
-
height: 100%;
|
|
24448
|
-
box-sizing: border-box;
|
|
24449
|
-
background-color: transparent;
|
|
24450
|
-
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
|
|
24451
|
-
font-family: "Poppins", sans-serif;
|
|
24452
|
-
font-weight: 400;
|
|
24453
|
-
font-size: 14px;
|
|
24454
|
-
border-radius: 12px;
|
|
24455
|
-
outline: none;
|
|
24456
|
-
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
24450
|
+
border: 1px solid
|
|
24451
|
+
${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
|
|
24452
|
+
font-family: "Poppins", sans-serif;
|
|
24453
|
+
font-weight: 400;
|
|
24454
|
+
font-size: 14px;
|
|
24455
|
+
border-radius: 9px;
|
|
24456
|
+
outline: none;
|
|
24457
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
24458
|
+
|
|
24457
24459
|
&:hover {
|
|
24458
|
-
border: 1px solid
|
|
24460
|
+
border: 1px solid
|
|
24461
|
+
${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.hoverColor || '#212121'};
|
|
24459
24462
|
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
24460
24463
|
}
|
|
24461
|
-
|
|
24462
|
-
|
|
24464
|
+
|
|
24465
|
+
&:focus {
|
|
24466
|
+
border: 1px solid
|
|
24467
|
+
${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
|
|
24463
24468
|
}
|
|
24464
24469
|
`;
|
|
24465
24470
|
const InputSubContainer$1 = styled.div`
|
|
24466
|
-
|
|
24467
|
-
|
|
24468
|
-
|
|
24469
|
-
|
|
24470
|
-
|
|
24471
|
-
|
|
24472
|
-
|
|
24473
|
-
|
|
24474
|
-
padding: 10px 4px 10px 10px;
|
|
24475
|
-
width: 100%;
|
|
24476
|
-
height: 50px;
|
|
24477
|
-
box-sizing: border-box;
|
|
24478
|
-
background-color: transparent;
|
|
24479
|
-
border-radius: 12px;
|
|
24480
|
-
outline: none;
|
|
24481
|
-
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
24471
|
+
display: flex;
|
|
24472
|
+
align-items: center;
|
|
24473
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
24474
|
+
gap: 4px;
|
|
24475
|
+
flex: 1;
|
|
24476
|
+
overflow: hidden;
|
|
24477
|
+
min-width: 0;
|
|
24478
|
+
max-width: calc(100% - 40px);
|
|
24482
24479
|
`;
|
|
24483
24480
|
const StyledInput$2 = styled.input`
|
|
24484
|
-
width:
|
|
24485
|
-
height:
|
|
24486
|
-
font-family: Poppins;
|
|
24481
|
+
width: 100%;
|
|
24482
|
+
height: 20px;
|
|
24483
|
+
font-family: "Poppins";
|
|
24487
24484
|
font-weight: 400;
|
|
24488
24485
|
font-size: 14px;
|
|
24489
|
-
outline: none;
|
|
24490
|
-
|
|
24491
|
-
|
|
24492
|
-
|
|
24486
|
+
outline: none;
|
|
24487
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
24488
|
+
border: none;
|
|
24489
|
+
background-color: transparent;
|
|
24490
|
+
&::placeholder {
|
|
24491
|
+
color: ${props => props.disabled ? '#D0D0D0' : '#b1b1b1'};
|
|
24492
|
+
}
|
|
24493
24493
|
`;
|
|
24494
24494
|
const OptionsContainer$1 = styled.div`
|
|
24495
24495
|
margin: 0;
|
|
@@ -24516,10 +24516,12 @@ const OptionsSubContainer = styled.ul`
|
|
|
24516
24516
|
background-color: #fff;
|
|
24517
24517
|
display: ${props => props.showoptions && props.filteredoptions?.length > 0 ? 'block' : 'none'};
|
|
24518
24518
|
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
|
|
24519
|
-
max-height: 400px;
|
|
24520
|
-
|
|
24519
|
+
max-height: ${props => props.dropdownHeight || '400px'};
|
|
24520
|
+
${scrollableStyles$a}
|
|
24521
24521
|
`;
|
|
24522
24522
|
const OptionItem = styled.li`
|
|
24523
|
+
display: flex;
|
|
24524
|
+
align-items: center;
|
|
24523
24525
|
gap: 8px;
|
|
24524
24526
|
padding: 10px;
|
|
24525
24527
|
cursor: pointer;
|
|
@@ -24540,34 +24542,34 @@ const ErrorMessage$1 = styled.div`
|
|
|
24540
24542
|
margin-top: 5px;
|
|
24541
24543
|
`;
|
|
24542
24544
|
const SelectedOptionsContainer = styled.div`
|
|
24543
|
-
|
|
24544
|
-
|
|
24545
|
-
|
|
24546
|
-
|
|
24547
|
-
|
|
24548
|
-
align-items: center;
|
|
24549
|
-
white-space: pre-wrap;
|
|
24550
|
-
overflow: hidden;
|
|
24551
|
-
padding: 0;
|
|
24552
|
-
font-weight: 400;
|
|
24553
|
-
border-top: none;
|
|
24554
|
-
border-radius: 4px;
|
|
24555
|
-
background-color: #fff;
|
|
24556
|
-
gap: 4px;
|
|
24557
|
-
`;
|
|
24558
|
-
const SelectedOptionItem = styled.div`
|
|
24559
|
-
display: flex;
|
|
24560
|
-
margin: 0;
|
|
24561
|
-
flex-wrap: nowrap;
|
|
24562
|
-
white-space: pre-wrap;
|
|
24545
|
+
display: flex;
|
|
24546
|
+
flex-direction: row;
|
|
24547
|
+
align-items: center;
|
|
24548
|
+
gap: 4px;
|
|
24549
|
+
flex-wrap: nowrap;
|
|
24563
24550
|
overflow: hidden;
|
|
24551
|
+
flex-shrink: 0;
|
|
24552
|
+
min-width: 0;
|
|
24553
|
+
max-width: 170px;
|
|
24554
|
+
`;
|
|
24555
|
+
const SelectedOptionItem = styled.div`
|
|
24556
|
+
display: flex;
|
|
24557
|
+
align-items: center;
|
|
24564
24558
|
cursor: pointer;
|
|
24565
24559
|
color: #212121;
|
|
24566
24560
|
background-color: #E3E4E5;
|
|
24567
|
-
border-radius: 4px;
|
|
24568
|
-
|
|
24569
|
-
padding: 4px 6px;
|
|
24561
|
+
border-radius: 4px;
|
|
24562
|
+
padding: 2px 4px;
|
|
24570
24563
|
font-size: 12px;
|
|
24564
|
+
height: 20px;
|
|
24565
|
+
white-space: nowrap;
|
|
24566
|
+
flex-shrink: 0;
|
|
24567
|
+
width: 65px;
|
|
24568
|
+
max-width: 65px;
|
|
24569
|
+
min-width: 65px;
|
|
24570
|
+
overflow: hidden;
|
|
24571
|
+
text-overflow: ellipsis;
|
|
24572
|
+
box-sizing: border-box;
|
|
24571
24573
|
`;
|
|
24572
24574
|
const IconContainer$2 = styled.div`
|
|
24573
24575
|
display: flex;
|
|
@@ -24575,23 +24577,26 @@ const IconContainer$2 = styled.div`
|
|
|
24575
24577
|
cursor: pointer;
|
|
24576
24578
|
`;
|
|
24577
24579
|
|
|
24578
|
-
const QuickFilterDropdownMultiSelection =
|
|
24579
|
-
|
|
24580
|
-
|
|
24581
|
-
|
|
24582
|
-
|
|
24583
|
-
|
|
24584
|
-
|
|
24585
|
-
|
|
24586
|
-
|
|
24587
|
-
|
|
24588
|
-
|
|
24589
|
-
|
|
24590
|
-
|
|
24591
|
-
|
|
24592
|
-
|
|
24593
|
-
|
|
24594
|
-
|
|
24580
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24581
|
+
let {
|
|
24582
|
+
label,
|
|
24583
|
+
labelEmptyValue,
|
|
24584
|
+
options,
|
|
24585
|
+
selectedValue,
|
|
24586
|
+
placeHolder,
|
|
24587
|
+
onChange,
|
|
24588
|
+
required,
|
|
24589
|
+
disabled,
|
|
24590
|
+
width,
|
|
24591
|
+
height,
|
|
24592
|
+
error,
|
|
24593
|
+
errorMessage,
|
|
24594
|
+
labelColor,
|
|
24595
|
+
xIconShow,
|
|
24596
|
+
checkBoxColor,
|
|
24597
|
+
showLabelOnTop,
|
|
24598
|
+
dropdownHeight
|
|
24599
|
+
} = _ref;
|
|
24595
24600
|
const [isFocused, setIsFocused] = useState(false);
|
|
24596
24601
|
const [showOptions, setShowOptions] = useState(false);
|
|
24597
24602
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -24702,33 +24707,35 @@ const QuickFilterDropdownMultiSelection = ({
|
|
|
24702
24707
|
const displaySelectedOptions = () => {
|
|
24703
24708
|
const content = /*#__PURE__*/React$1.createElement(SelectedOptionsContainer, {
|
|
24704
24709
|
className: "SelectedOptionsContainer"
|
|
24705
|
-
}, selectedOptions?.map((option, index) =>
|
|
24706
|
-
|
|
24707
|
-
|
|
24708
|
-
|
|
24709
|
-
|
|
24710
|
-
|
|
24711
|
-
|
|
24712
|
-
|
|
24713
|
-
|
|
24710
|
+
}, selectedOptions?.map((option, index) => {
|
|
24711
|
+
if (index < 2) {
|
|
24712
|
+
return /*#__PURE__*/React$1.createElement(SelectedOptionItem, {
|
|
24713
|
+
className: "SelectedOptionItem",
|
|
24714
|
+
key: option.value,
|
|
24715
|
+
onClick: () => {
|
|
24716
|
+
toggleOption(option);
|
|
24717
|
+
setIsFocused(true);
|
|
24718
|
+
if (inputRef?.current) {
|
|
24719
|
+
inputRef?.current?.focus();
|
|
24720
|
+
}
|
|
24721
|
+
}
|
|
24722
|
+
}, option.label && option.label?.length > 5 ? `${option.label?.substring(0, 5)}...` : option.label, /*#__PURE__*/React$1.createElement(CloseXIcon, {
|
|
24723
|
+
width: "8px",
|
|
24724
|
+
height: "8px",
|
|
24725
|
+
fill: "#212121"
|
|
24726
|
+
}));
|
|
24714
24727
|
}
|
|
24715
|
-
|
|
24716
|
-
|
|
24717
|
-
height: "8px",
|
|
24718
|
-
fill: "#212121"
|
|
24719
|
-
})) : ' '), selectedOptions.length > 2 ? /*#__PURE__*/React$1.createElement(SelectedOptionItem, {
|
|
24728
|
+
return null;
|
|
24729
|
+
}), selectedOptions.length > 2 && /*#__PURE__*/React$1.createElement(SelectedOptionItem, {
|
|
24720
24730
|
className: "SelectedOptionItem"
|
|
24721
|
-
}, selectedOptions.length - 2
|
|
24731
|
+
}, "+", selectedOptions.length - 2));
|
|
24722
24732
|
return content;
|
|
24723
24733
|
};
|
|
24724
24734
|
const getLabel = () => {
|
|
24725
24735
|
if (!showLabelOnTop && isFocused) {
|
|
24726
24736
|
return '';
|
|
24727
24737
|
}
|
|
24728
|
-
|
|
24729
|
-
return label;
|
|
24730
|
-
}
|
|
24731
|
-
return labelEmptyValue;
|
|
24738
|
+
return label;
|
|
24732
24739
|
};
|
|
24733
24740
|
const getRequired = () => {
|
|
24734
24741
|
if (!showLabelOnTop && isFocused) {
|
|
@@ -24737,18 +24744,12 @@ const QuickFilterDropdownMultiSelection = ({
|
|
|
24737
24744
|
if (!showLabelOnTop && !label && selectedOptions?.length > 0) {
|
|
24738
24745
|
return '';
|
|
24739
24746
|
}
|
|
24740
|
-
if (required) {
|
|
24741
|
-
return /*#__PURE__*/React$1.createElement("span", {
|
|
24742
|
-
style: {
|
|
24743
|
-
color: 'red'
|
|
24744
|
-
}
|
|
24745
|
-
}, "*");
|
|
24746
|
-
}
|
|
24747
24747
|
return '';
|
|
24748
24748
|
};
|
|
24749
24749
|
return /*#__PURE__*/React$1.createElement(DropdownWrapper, {
|
|
24750
24750
|
className: "DropdownWrapper",
|
|
24751
24751
|
width: width,
|
|
24752
|
+
height: height,
|
|
24752
24753
|
onMouseEnter: () => setHoverInputContainer(true),
|
|
24753
24754
|
onMouseLeave: () => setHoverInputContainer(false)
|
|
24754
24755
|
}, /*#__PURE__*/React$1.createElement(InputContainer$2, {
|
|
@@ -24756,7 +24757,8 @@ const QuickFilterDropdownMultiSelection = ({
|
|
|
24756
24757
|
labelColor: labelColor,
|
|
24757
24758
|
disabled: disabled,
|
|
24758
24759
|
error: error,
|
|
24759
|
-
isFocused: isFocused
|
|
24760
|
+
isFocused: isFocused,
|
|
24761
|
+
height: height
|
|
24760
24762
|
}, /*#__PURE__*/React$1.createElement(InputSubContainer$1, {
|
|
24761
24763
|
className: "InputSubContainer",
|
|
24762
24764
|
ref: containerRef,
|
|
@@ -24774,7 +24776,7 @@ const QuickFilterDropdownMultiSelection = ({
|
|
|
24774
24776
|
errorMessage: errorMessage,
|
|
24775
24777
|
onClick: handleLabelClick,
|
|
24776
24778
|
showLabelOnTop: showLabelOnTop
|
|
24777
|
-
}, getLabel(), getRequired()), displaySelectedOptions(),
|
|
24779
|
+
}, getLabel(), getRequired()), displaySelectedOptions(), /*#__PURE__*/React$1.createElement(StyledInput$2, {
|
|
24778
24780
|
className: "StyledInput",
|
|
24779
24781
|
ref: inputRef,
|
|
24780
24782
|
value: inputValue,
|
|
@@ -24783,10 +24785,10 @@ const QuickFilterDropdownMultiSelection = ({
|
|
|
24783
24785
|
onClick: handleLabelClick,
|
|
24784
24786
|
type: "search",
|
|
24785
24787
|
disabled: disabled,
|
|
24786
|
-
placeholder:
|
|
24788
|
+
placeholder: placeHolder,
|
|
24787
24789
|
error: error,
|
|
24788
24790
|
isFocused: isFocused
|
|
24789
|
-
})
|
|
24791
|
+
})), selectedOptions.length > 0 && xIconShow && /*#__PURE__*/React$1.createElement(IconContainer$2, {
|
|
24790
24792
|
className: "IconContainer",
|
|
24791
24793
|
onClick: handleClearClick
|
|
24792
24794
|
}, /*#__PURE__*/React$1.createElement(CloseXIcon, {
|
|
@@ -24815,13 +24817,14 @@ const QuickFilterDropdownMultiSelection = ({
|
|
|
24815
24817
|
className: "OptionsSubContainer",
|
|
24816
24818
|
showoptions: showOptions,
|
|
24817
24819
|
disabled: disabled,
|
|
24818
|
-
filteredoptions: filteredoptions
|
|
24820
|
+
filteredoptions: filteredoptions,
|
|
24821
|
+
dropdownHeight: dropdownHeight
|
|
24819
24822
|
}, filteredoptions.map(option => /*#__PURE__*/React$1.createElement(OptionItem, {
|
|
24820
24823
|
className: "OptionItem",
|
|
24821
24824
|
key: option.value,
|
|
24822
24825
|
onClick: () => toggleOption(option),
|
|
24823
24826
|
selected: isDropdowned(option)
|
|
24824
|
-
},
|
|
24827
|
+
}, /*#__PURE__*/React$1.createElement(IconContainer$2, {
|
|
24825
24828
|
className: "IconContainer"
|
|
24826
24829
|
}, selectedOptions.find(itemSelectedOptions => option.value === itemSelectedOptions.value) ? /*#__PURE__*/React$1.createElement(CheckBoxCheckedIcon, {
|
|
24827
24830
|
width: "14px",
|
|
@@ -24831,7 +24834,7 @@ const QuickFilterDropdownMultiSelection = ({
|
|
|
24831
24834
|
width: "14px",
|
|
24832
24835
|
height: "14px",
|
|
24833
24836
|
color: disabled ? '#888' : '#212121'
|
|
24834
|
-
})), option.label)))));
|
|
24837
|
+
})), highlightText(option.label, inputValue))))));
|
|
24835
24838
|
};
|
|
24836
24839
|
QuickFilterDropdownMultiSelection.propTypes = {
|
|
24837
24840
|
placeHolder: PropTypes.string,
|
|
@@ -24841,6 +24844,8 @@ QuickFilterDropdownMultiSelection.propTypes = {
|
|
|
24841
24844
|
checkBoxColor: PropTypes.string,
|
|
24842
24845
|
required: PropTypes.bool,
|
|
24843
24846
|
width: PropTypes.string,
|
|
24847
|
+
height: PropTypes.string,
|
|
24848
|
+
dropdownHeight: PropTypes.string,
|
|
24844
24849
|
disabled: PropTypes.bool,
|
|
24845
24850
|
error: PropTypes.bool,
|
|
24846
24851
|
errorMessage: '',
|
|
@@ -24864,6 +24869,8 @@ QuickFilterDropdownMultiSelection.defaultProps = {
|
|
|
24864
24869
|
checkBoxColor: '#229E38',
|
|
24865
24870
|
required: true,
|
|
24866
24871
|
width: '300px',
|
|
24872
|
+
height: '38px',
|
|
24873
|
+
dropdownHeight: '500px',
|
|
24867
24874
|
disabled: false,
|
|
24868
24875
|
error: false,
|
|
24869
24876
|
errorMessage: '',
|
|
@@ -24900,7 +24907,9 @@ const QuickFilter = _ref => {
|
|
|
24900
24907
|
labelColor = "#066768",
|
|
24901
24908
|
placeHolder = "Select From List",
|
|
24902
24909
|
width = "auto",
|
|
24910
|
+
height = "38px",
|
|
24903
24911
|
checkBoxColor = "#229E38",
|
|
24912
|
+
dropdownHeight = "500px",
|
|
24904
24913
|
onChange = value => {},
|
|
24905
24914
|
options = [],
|
|
24906
24915
|
selectedValue = []
|
|
@@ -24916,6 +24925,8 @@ const QuickFilter = _ref => {
|
|
|
24916
24925
|
checkBoxColor: checkBoxColor,
|
|
24917
24926
|
options: options,
|
|
24918
24927
|
width: width,
|
|
24928
|
+
height: height,
|
|
24929
|
+
dropdownHeight: dropdownHeight,
|
|
24919
24930
|
disabled: disabled,
|
|
24920
24931
|
error: error,
|
|
24921
24932
|
errorMessage: errorMessage,
|
|
@@ -36033,9 +36044,9 @@ const ToggleSlider = styled.span`
|
|
|
36033
36044
|
}
|
|
36034
36045
|
`;
|
|
36035
36046
|
|
|
36036
|
-
/**
|
|
36037
|
-
* ToggleSwitch component for on/off states.
|
|
36038
|
-
* Supports small/large sizes and disabled state.
|
|
36047
|
+
/**
|
|
36048
|
+
* ToggleSwitch component for on/off states.
|
|
36049
|
+
* Supports small/large sizes and disabled state.
|
|
36039
36050
|
*/
|
|
36040
36051
|
function ToggleSwitch(_ref) {
|
|
36041
36052
|
let {
|