sag_components 2.0.0-beta210 → 2.0.0-beta212
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 +330 -260
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +330 -260
- package/dist/index.js.map +1 -1
- package/dist/types/components/ItemManagerPanel/ItemManagerPanel.style.d.ts +1 -0
- package/dist/types/components/ItemManagerPanel/NewSubitemList/NewSubitemList.style.d.ts +1 -0
- 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,
|
|
@@ -34624,7 +34635,7 @@ const ModalBody = styled__default["default"].div`
|
|
|
34624
34635
|
width: 100%;
|
|
34625
34636
|
height: 100%;
|
|
34626
34637
|
`;
|
|
34627
|
-
const TooltipContent$
|
|
34638
|
+
const TooltipContent$3 = styled__default["default"].span`
|
|
34628
34639
|
color: #212121;
|
|
34629
34640
|
font-family: Poppins;
|
|
34630
34641
|
font-size: 14px;
|
|
@@ -34697,7 +34708,7 @@ const ModalWithOverlay = props => {
|
|
|
34697
34708
|
}), showOkButton && (disableOkButton && tooltipContent !== '' ? /*#__PURE__*/React__default["default"].createElement(Tooltip$2, {
|
|
34698
34709
|
direction: "top",
|
|
34699
34710
|
topFactor: -0.85,
|
|
34700
|
-
content: /*#__PURE__*/React__default["default"].createElement(TooltipContent$
|
|
34711
|
+
content: /*#__PURE__*/React__default["default"].createElement(TooltipContent$3, {
|
|
34701
34712
|
dangerouslySetInnerHTML: {
|
|
34702
34713
|
__html: tooltipContent
|
|
34703
34714
|
}
|
|
@@ -34885,17 +34896,18 @@ styled.css`
|
|
|
34885
34896
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34886
34897
|
* • onCancel() — callback
|
|
34887
34898
|
*/
|
|
34888
|
-
const WeeksCalendar =
|
|
34889
|
-
|
|
34890
|
-
|
|
34891
|
-
|
|
34892
|
-
|
|
34893
|
-
|
|
34894
|
-
|
|
34895
|
-
|
|
34896
|
-
|
|
34897
|
-
|
|
34898
|
-
|
|
34899
|
+
const WeeksCalendar = _ref => {
|
|
34900
|
+
let {
|
|
34901
|
+
year,
|
|
34902
|
+
defaultStartWeek = null,
|
|
34903
|
+
defaultEndWeek = null,
|
|
34904
|
+
backgroundColor = "#066768",
|
|
34905
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34906
|
+
allowedWeekRange = null,
|
|
34907
|
+
// New prop for range restriction
|
|
34908
|
+
onApply,
|
|
34909
|
+
onCancel
|
|
34910
|
+
} = _ref;
|
|
34899
34911
|
// state -------------------------------------------------
|
|
34900
34912
|
const [startWeek, setStartWeek] = React$1.useState(defaultStartWeek);
|
|
34901
34913
|
const [endWeek, setEndWeek] = React$1.useState(defaultEndWeek);
|
|
@@ -35977,9 +35989,12 @@ const ToggleSwitchLabel = styled__default["default"].label`
|
|
|
35977
35989
|
position: relative;
|
|
35978
35990
|
cursor: pointer;
|
|
35979
35991
|
user-select: none;
|
|
35980
|
-
opacity: ${
|
|
35981
|
-
|
|
35982
|
-
|
|
35992
|
+
opacity: ${_ref => {
|
|
35993
|
+
let {
|
|
35994
|
+
disabled
|
|
35995
|
+
} = _ref;
|
|
35996
|
+
return disabled ? 0.5 : 1;
|
|
35997
|
+
}};
|
|
35983
35998
|
`;
|
|
35984
35999
|
const ToggleInput = styled__default["default"].input`
|
|
35985
36000
|
display: none;
|
|
@@ -35987,15 +36002,19 @@ const ToggleInput = styled__default["default"].input`
|
|
|
35987
36002
|
const ToggleSlider = styled__default["default"].span`
|
|
35988
36003
|
display: block;
|
|
35989
36004
|
position: relative;
|
|
35990
|
-
background: ${
|
|
35991
|
-
|
|
35992
|
-
|
|
35993
|
-
|
|
36005
|
+
background: ${_ref2 => {
|
|
36006
|
+
let {
|
|
36007
|
+
checked,
|
|
36008
|
+
disabled
|
|
36009
|
+
} = _ref2;
|
|
36010
|
+
return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
|
|
36011
|
+
}};
|
|
35994
36012
|
border-radius: 999px;
|
|
35995
36013
|
transition: background 0.2s;
|
|
35996
|
-
${
|
|
35997
|
-
|
|
35998
|
-
|
|
36014
|
+
${_ref3 => {
|
|
36015
|
+
let {
|
|
36016
|
+
size
|
|
36017
|
+
} = _ref3;
|
|
35999
36018
|
switch (size) {
|
|
36000
36019
|
case "s":
|
|
36001
36020
|
return styled.css`width: 40px; height: 20px;`;
|
|
@@ -36014,9 +36033,10 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
36014
36033
|
background: #fff;
|
|
36015
36034
|
border-radius: 50%;
|
|
36016
36035
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
36017
|
-
${
|
|
36018
|
-
|
|
36019
|
-
|
|
36036
|
+
${_ref4 => {
|
|
36037
|
+
let {
|
|
36038
|
+
size
|
|
36039
|
+
} = _ref4;
|
|
36020
36040
|
switch (size) {
|
|
36021
36041
|
case "s":
|
|
36022
36042
|
return styled.css`width: 14px; height: 14px;`;
|
|
@@ -36026,10 +36046,11 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
36026
36046
|
return styled.css`width: 20px; height: 20px;`;
|
|
36027
36047
|
}
|
|
36028
36048
|
}}
|
|
36029
|
-
left: ${
|
|
36030
|
-
|
|
36031
|
-
|
|
36032
|
-
|
|
36049
|
+
left: ${_ref5 => {
|
|
36050
|
+
let {
|
|
36051
|
+
checked,
|
|
36052
|
+
size
|
|
36053
|
+
} = _ref5;
|
|
36033
36054
|
if (!checked) return "3px";
|
|
36034
36055
|
switch (size) {
|
|
36035
36056
|
case "s":
|
|
@@ -39555,7 +39576,7 @@ const CloseButton = styled__default["default"].button`
|
|
|
39555
39576
|
transform: scale(0.95);
|
|
39556
39577
|
}
|
|
39557
39578
|
`;
|
|
39558
|
-
const TooltipContent = styled__default["default"].span`
|
|
39579
|
+
const TooltipContent$2 = styled__default["default"].span`
|
|
39559
39580
|
color: #212121;
|
|
39560
39581
|
font-family: Poppins;
|
|
39561
39582
|
font-size: 14px;
|
|
@@ -39644,7 +39665,7 @@ const MessageBox = _ref => {
|
|
|
39644
39665
|
direction: "top",
|
|
39645
39666
|
showTooltip: isDisabled,
|
|
39646
39667
|
topFactor: -0.85,
|
|
39647
|
-
content: /*#__PURE__*/React__default["default"].createElement(TooltipContent, {
|
|
39668
|
+
content: /*#__PURE__*/React__default["default"].createElement(TooltipContent$2, {
|
|
39648
39669
|
dangerouslySetInnerHTML: {
|
|
39649
39670
|
__html: tooltipContent
|
|
39650
39671
|
}
|
|
@@ -39732,7 +39753,7 @@ const TrashIcon = ({
|
|
|
39732
39753
|
const DisabledTrashIcon = ({
|
|
39733
39754
|
width = "22",
|
|
39734
39755
|
height = "22",
|
|
39735
|
-
color = "#
|
|
39756
|
+
color = "#B1B1B1"
|
|
39736
39757
|
}) => {
|
|
39737
39758
|
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
39738
39759
|
width: width,
|
|
@@ -39745,7 +39766,7 @@ const DisabledTrashIcon = ({
|
|
|
39745
39766
|
fill: color
|
|
39746
39767
|
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
39747
39768
|
d: "M0.853591 21.8534L0.146484 21.1463L21.1463 0.146484L21.8534 0.853591L0.853591 21.8534Z",
|
|
39748
|
-
fill: "#
|
|
39769
|
+
fill: "#B1B1B1"
|
|
39749
39770
|
}));
|
|
39750
39771
|
};
|
|
39751
39772
|
|
|
@@ -44469,12 +44490,12 @@ const VendorItem$1 = styled.styled.div`
|
|
|
44469
44490
|
cursor: pointer;
|
|
44470
44491
|
|
|
44471
44492
|
&:hover {
|
|
44472
|
-
background: #
|
|
44493
|
+
background: #E6F0F0;
|
|
44473
44494
|
.trash-icon svg path {
|
|
44474
44495
|
fill: #B1B1B1;
|
|
44475
44496
|
}
|
|
44476
44497
|
.trash-icon-disabled svg path {
|
|
44477
|
-
fill: #
|
|
44498
|
+
fill: #B1B1B1;
|
|
44478
44499
|
}
|
|
44479
44500
|
}
|
|
44480
44501
|
`;
|
|
@@ -44537,6 +44558,14 @@ const CustomTooltip$1 = styled.styled(Tooltip$2)`
|
|
|
44537
44558
|
}
|
|
44538
44559
|
}
|
|
44539
44560
|
`;
|
|
44561
|
+
const TooltipContent$1 = styled.styled.span`
|
|
44562
|
+
color: #212121;
|
|
44563
|
+
font-family: Poppins;
|
|
44564
|
+
font-size: 14px;
|
|
44565
|
+
font-style: normal;
|
|
44566
|
+
font-weight: 400;
|
|
44567
|
+
line-height: normal;
|
|
44568
|
+
`;
|
|
44540
44569
|
const Container$1 = styled.styled.div`
|
|
44541
44570
|
display: flex;
|
|
44542
44571
|
align-items: center;
|
|
@@ -44633,6 +44662,7 @@ const DisabledTrashIconWrapper = styled.styled.div`
|
|
|
44633
44662
|
&[data-tooltip]:hover::after {
|
|
44634
44663
|
left: calc(var(--tooltip-left, 0px) + var(--tooltip-width, 0px) / 2 - 50px);
|
|
44635
44664
|
}
|
|
44665
|
+
|
|
44636
44666
|
`;
|
|
44637
44667
|
const TrashIconWrapper = styled.styled.div`
|
|
44638
44668
|
${baseIconWrapperStyles}
|
|
@@ -44958,8 +44988,19 @@ const Item$1 = styled__default["default"].div`
|
|
|
44958
44988
|
.trash-icon svg path {
|
|
44959
44989
|
fill: #b1b1b1;
|
|
44960
44990
|
}
|
|
44991
|
+
.trash-icon-disabled svg path {
|
|
44992
|
+
fill: #B1B1B1;
|
|
44993
|
+
}
|
|
44961
44994
|
}
|
|
44962
44995
|
`;
|
|
44996
|
+
const TooltipContent = styled__default["default"].span`
|
|
44997
|
+
color: #212121;
|
|
44998
|
+
font-family: Poppins;
|
|
44999
|
+
font-size: 14px;
|
|
45000
|
+
font-style: normal;
|
|
45001
|
+
font-weight: 400;
|
|
45002
|
+
line-height: normal;
|
|
45003
|
+
`;
|
|
44963
45004
|
const Title$2 = styled__default["default"].div`
|
|
44964
45005
|
font-size: 14px;
|
|
44965
45006
|
overflow: hidden;
|
|
@@ -45149,6 +45190,7 @@ const NewSubitemList = props => {
|
|
|
45149
45190
|
linkColor
|
|
45150
45191
|
} = props;
|
|
45151
45192
|
const [isHovered, setIsHovered] = React$1.useState(false);
|
|
45193
|
+
const [trashIsHovered, setTrashIsHovered] = React$1.useState(false);
|
|
45152
45194
|
const vendorItems = itemAndPackage.find(i => i.name === vendor.name).packages || [];
|
|
45153
45195
|
const onDeletePackage = item => {
|
|
45154
45196
|
const updatedPackages = vendorItems.filter(pkg => pkg.brands !== item.brands);
|
|
@@ -45183,6 +45225,8 @@ const NewSubitemList = props => {
|
|
|
45183
45225
|
};
|
|
45184
45226
|
const handleMouseEnter = () => setIsHovered(true);
|
|
45185
45227
|
const handleMouseLeave = () => setIsHovered(false);
|
|
45228
|
+
const handleMouseTrashEnter = () => setTrashIsHovered(true);
|
|
45229
|
+
const handleMouseTrashLeave = () => setTrashIsHovered(false);
|
|
45186
45230
|
return /*#__PURE__*/React__default["default"].createElement(NewSubitemContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Header$1, null, /*#__PURE__*/React__default["default"].createElement(BackButton$1, {
|
|
45187
45231
|
onClick: onBack
|
|
45188
45232
|
}, /*#__PURE__*/React__default["default"].createElement(ArrowLeftIcon, null)), /*#__PURE__*/React__default["default"].createElement(BackTitle$1, null, "All Vendors")), /*#__PURE__*/React__default["default"].createElement(SelectionTitle$1, null, vendor.name), /*#__PURE__*/React__default["default"].createElement(AddButtonContainer, null, /*#__PURE__*/React__default["default"].createElement(LinkButton, {
|
|
@@ -45199,7 +45243,11 @@ const NewSubitemList = props => {
|
|
|
45199
45243
|
ref: el => setupTooltip(el, "Package was Sent")
|
|
45200
45244
|
}, /*#__PURE__*/React__default["default"].createElement(CustomTooltip, {
|
|
45201
45245
|
hideTooltip: isHovered,
|
|
45202
|
-
content: "
|
|
45246
|
+
content: /*#__PURE__*/React__default["default"].createElement(TooltipContent, {
|
|
45247
|
+
dangerouslySetInnerHTML: {
|
|
45248
|
+
__html: "Package was Sent"
|
|
45249
|
+
}
|
|
45250
|
+
}),
|
|
45203
45251
|
topFactor: 0,
|
|
45204
45252
|
direction: "right"
|
|
45205
45253
|
}, item.status && Number(item.status) > 1 ? /*#__PURE__*/React__default["default"].createElement(PackageSendIcon, {
|
|
@@ -45211,14 +45259,25 @@ const NewSubitemList = props => {
|
|
|
45211
45259
|
}
|
|
45212
45260
|
}, item.brands && /*#__PURE__*/React__default["default"].createElement(Title$2, {
|
|
45213
45261
|
title: item.brands
|
|
45214
|
-
}, item.brands), item.component && /*#__PURE__*/React__default["default"].createElement(ComponentContainer, null, item.component[0]), /*#__PURE__*/React__default["default"].createElement(Chevron, null, /*#__PURE__*/React__default["default"].createElement(ArrowRightFullIcon, null))), item.status && Number(item.status) > 1 ? /*#__PURE__*/React__default["default"].createElement(
|
|
45262
|
+
}, item.brands), item.component && /*#__PURE__*/React__default["default"].createElement(ComponentContainer, null, item.component[0]), /*#__PURE__*/React__default["default"].createElement(Chevron, null, /*#__PURE__*/React__default["default"].createElement(ArrowRightFullIcon, null))), item.status && Number(item.status) > 1 ? /*#__PURE__*/React__default["default"].createElement(CustomTooltip, {
|
|
45263
|
+
hideTooltip: trashIsHovered,
|
|
45264
|
+
content: /*#__PURE__*/React__default["default"].createElement(TooltipContent, {
|
|
45265
|
+
dangerouslySetInnerHTML: {
|
|
45266
|
+
__html: "Package cannot be deleted since it<br/> has been sent to the vendor as a form."
|
|
45267
|
+
}
|
|
45268
|
+
}),
|
|
45269
|
+
topFactor: 0,
|
|
45270
|
+
direction: "left"
|
|
45271
|
+
}, /*#__PURE__*/React__default["default"].createElement(DisabledTrashIconWrapper, {
|
|
45215
45272
|
className: "trash-icon-disabled"
|
|
45216
45273
|
|
|
45217
45274
|
// ref={(el) => setupTooltip(el, trashTooltipText)}
|
|
45218
45275
|
}, /*#__PURE__*/React__default["default"].createElement(DisabledTrashIcon, {
|
|
45276
|
+
onMouseEnter: handleMouseTrashEnter,
|
|
45277
|
+
onMouseLeave: handleMouseTrashLeave,
|
|
45219
45278
|
width: "22",
|
|
45220
45279
|
height: "22"
|
|
45221
|
-
})) : /*#__PURE__*/React__default["default"].createElement(TrashIconWrapper, {
|
|
45280
|
+
}))) : /*#__PURE__*/React__default["default"].createElement(TrashIconWrapper, {
|
|
45222
45281
|
className: "trash-icon",
|
|
45223
45282
|
onClick: e => {
|
|
45224
45283
|
e.stopPropagation();
|
|
@@ -54131,7 +54190,7 @@ const ItemManagerPanel = _ref => {
|
|
|
54131
54190
|
linkColor = "#212121",
|
|
54132
54191
|
backgroundColor = 'white',
|
|
54133
54192
|
buttonTooltipText = "Please fill out all forms before sending.",
|
|
54134
|
-
trashTooltipText = '
|
|
54193
|
+
trashTooltipText = 'Vendor cannot be deleted since its packages <br/> have already been sent as a form.',
|
|
54135
54194
|
maxVisibleVendors = 12,
|
|
54136
54195
|
componentText = "Scale"
|
|
54137
54196
|
} = _ref;
|
|
@@ -54337,7 +54396,11 @@ const ItemManagerPanel = _ref => {
|
|
|
54337
54396
|
ref: headerRef
|
|
54338
54397
|
}, /*#__PURE__*/React__default["default"].createElement(Container$1, null, /*#__PURE__*/React__default["default"].createElement(TitleContainer, null, /*#__PURE__*/React__default["default"].createElement(SectionTitle$1, null, "Vendors"), /*#__PURE__*/React__default["default"].createElement(SubtitleContainer, null, /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, itemAndPackage.filter(item => item.packages !== null).length.toString(), " ", "Vendors", " "), /*#__PURE__*/React__default["default"].createElement("span", null, "\xB7"), /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, itemAndPackage.filter(item => item.packages !== null).reduce((acc, item) => acc + (item.packages ? item.packages.length : 0), 0), " ", "Packages"))), editMode && /*#__PURE__*/React__default["default"].createElement(ButtonContainer, null, /*#__PURE__*/React__default["default"].createElement(CustomTooltip$1, {
|
|
54339
54398
|
hideTooltip: !disabledSendForms,
|
|
54340
|
-
content:
|
|
54399
|
+
content: /*#__PURE__*/React__default["default"].createElement(TooltipContent$1, {
|
|
54400
|
+
dangerouslySetInnerHTML: {
|
|
54401
|
+
__html: buttonTooltipText
|
|
54402
|
+
}
|
|
54403
|
+
}),
|
|
54341
54404
|
topFactor: 2,
|
|
54342
54405
|
direction: "bottom"
|
|
54343
54406
|
}, /*#__PURE__*/React__default["default"].createElement(Button$1, {
|
|
@@ -54387,9 +54450,15 @@ const ItemManagerPanel = _ref => {
|
|
|
54387
54450
|
} else {
|
|
54388
54451
|
return `${sentPackagesLength}/${packagesLength} Packages Sent`;
|
|
54389
54452
|
}
|
|
54390
|
-
})())), /*#__PURE__*/React__default["default"].createElement(VendorChevron$1, null, /*#__PURE__*/React__default["default"].createElement(ArrowRightFullIcon, null))), sentPackagesLength > 0 ? /*#__PURE__*/React__default["default"].createElement(DisabledTrashIconWrapper,
|
|
54453
|
+
})())), /*#__PURE__*/React__default["default"].createElement(VendorChevron$1, null, /*#__PURE__*/React__default["default"].createElement(ArrowRightFullIcon, null))), sentPackagesLength > 0 ? /*#__PURE__*/React__default["default"].createElement(DisabledTrashIconWrapper, {
|
|
54454
|
+
className: "trash-icon-disabled"
|
|
54455
|
+
}, /*#__PURE__*/React__default["default"].createElement(CustomTooltip$1, {
|
|
54391
54456
|
hideTooltip: trashIsHovered,
|
|
54392
|
-
content:
|
|
54457
|
+
content: /*#__PURE__*/React__default["default"].createElement(TooltipContent$1, {
|
|
54458
|
+
dangerouslySetInnerHTML: {
|
|
54459
|
+
__html: trashTooltipText
|
|
54460
|
+
}
|
|
54461
|
+
}),
|
|
54393
54462
|
topFactor: 0,
|
|
54394
54463
|
direction: "left"
|
|
54395
54464
|
}, /*#__PURE__*/React__default["default"].createElement(DisabledTrashIcon, {
|
|
@@ -54539,10 +54608,11 @@ const DropdownList = styled__default["default"].ul`
|
|
|
54539
54608
|
`}
|
|
54540
54609
|
`;
|
|
54541
54610
|
const SectionDiv = styled__default["default"].div`
|
|
54542
|
-
${
|
|
54543
|
-
|
|
54544
|
-
|
|
54545
|
-
|
|
54611
|
+
${_ref => {
|
|
54612
|
+
let {
|
|
54613
|
+
$showBorder,
|
|
54614
|
+
margin
|
|
54615
|
+
} = _ref;
|
|
54546
54616
|
switch ($showBorder) {
|
|
54547
54617
|
case 'Template Offer':
|
|
54548
54618
|
return styled.css`border-top: 1px solid #e6e2e2ff;
|