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.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,
|
|
@@ -34614,7 +34625,7 @@ const ModalBody = styled.div`
|
|
|
34614
34625
|
width: 100%;
|
|
34615
34626
|
height: 100%;
|
|
34616
34627
|
`;
|
|
34617
|
-
const TooltipContent$
|
|
34628
|
+
const TooltipContent$3 = styled.span`
|
|
34618
34629
|
color: #212121;
|
|
34619
34630
|
font-family: Poppins;
|
|
34620
34631
|
font-size: 14px;
|
|
@@ -34687,7 +34698,7 @@ const ModalWithOverlay = props => {
|
|
|
34687
34698
|
}), showOkButton && (disableOkButton && tooltipContent !== '' ? /*#__PURE__*/React$1.createElement(Tooltip$2, {
|
|
34688
34699
|
direction: "top",
|
|
34689
34700
|
topFactor: -0.85,
|
|
34690
|
-
content: /*#__PURE__*/React$1.createElement(TooltipContent$
|
|
34701
|
+
content: /*#__PURE__*/React$1.createElement(TooltipContent$3, {
|
|
34691
34702
|
dangerouslySetInnerHTML: {
|
|
34692
34703
|
__html: tooltipContent
|
|
34693
34704
|
}
|
|
@@ -34875,17 +34886,18 @@ css`
|
|
|
34875
34886
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34876
34887
|
* • onCancel() — callback
|
|
34877
34888
|
*/
|
|
34878
|
-
const WeeksCalendar =
|
|
34879
|
-
|
|
34880
|
-
|
|
34881
|
-
|
|
34882
|
-
|
|
34883
|
-
|
|
34884
|
-
|
|
34885
|
-
|
|
34886
|
-
|
|
34887
|
-
|
|
34888
|
-
|
|
34889
|
+
const WeeksCalendar = _ref => {
|
|
34890
|
+
let {
|
|
34891
|
+
year,
|
|
34892
|
+
defaultStartWeek = null,
|
|
34893
|
+
defaultEndWeek = null,
|
|
34894
|
+
backgroundColor = "#066768",
|
|
34895
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34896
|
+
allowedWeekRange = null,
|
|
34897
|
+
// New prop for range restriction
|
|
34898
|
+
onApply,
|
|
34899
|
+
onCancel
|
|
34900
|
+
} = _ref;
|
|
34889
34901
|
// state -------------------------------------------------
|
|
34890
34902
|
const [startWeek, setStartWeek] = useState(defaultStartWeek);
|
|
34891
34903
|
const [endWeek, setEndWeek] = useState(defaultEndWeek);
|
|
@@ -35967,9 +35979,12 @@ const ToggleSwitchLabel = styled.label`
|
|
|
35967
35979
|
position: relative;
|
|
35968
35980
|
cursor: pointer;
|
|
35969
35981
|
user-select: none;
|
|
35970
|
-
opacity: ${
|
|
35971
|
-
|
|
35972
|
-
|
|
35982
|
+
opacity: ${_ref => {
|
|
35983
|
+
let {
|
|
35984
|
+
disabled
|
|
35985
|
+
} = _ref;
|
|
35986
|
+
return disabled ? 0.5 : 1;
|
|
35987
|
+
}};
|
|
35973
35988
|
`;
|
|
35974
35989
|
const ToggleInput = styled.input`
|
|
35975
35990
|
display: none;
|
|
@@ -35977,15 +35992,19 @@ const ToggleInput = styled.input`
|
|
|
35977
35992
|
const ToggleSlider = styled.span`
|
|
35978
35993
|
display: block;
|
|
35979
35994
|
position: relative;
|
|
35980
|
-
background: ${
|
|
35981
|
-
|
|
35982
|
-
|
|
35983
|
-
|
|
35995
|
+
background: ${_ref2 => {
|
|
35996
|
+
let {
|
|
35997
|
+
checked,
|
|
35998
|
+
disabled
|
|
35999
|
+
} = _ref2;
|
|
36000
|
+
return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
|
|
36001
|
+
}};
|
|
35984
36002
|
border-radius: 999px;
|
|
35985
36003
|
transition: background 0.2s;
|
|
35986
|
-
${
|
|
35987
|
-
|
|
35988
|
-
|
|
36004
|
+
${_ref3 => {
|
|
36005
|
+
let {
|
|
36006
|
+
size
|
|
36007
|
+
} = _ref3;
|
|
35989
36008
|
switch (size) {
|
|
35990
36009
|
case "s":
|
|
35991
36010
|
return css`width: 40px; height: 20px;`;
|
|
@@ -36004,9 +36023,10 @@ const ToggleSlider = styled.span`
|
|
|
36004
36023
|
background: #fff;
|
|
36005
36024
|
border-radius: 50%;
|
|
36006
36025
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
36007
|
-
${
|
|
36008
|
-
|
|
36009
|
-
|
|
36026
|
+
${_ref4 => {
|
|
36027
|
+
let {
|
|
36028
|
+
size
|
|
36029
|
+
} = _ref4;
|
|
36010
36030
|
switch (size) {
|
|
36011
36031
|
case "s":
|
|
36012
36032
|
return css`width: 14px; height: 14px;`;
|
|
@@ -36016,10 +36036,11 @@ const ToggleSlider = styled.span`
|
|
|
36016
36036
|
return css`width: 20px; height: 20px;`;
|
|
36017
36037
|
}
|
|
36018
36038
|
}}
|
|
36019
|
-
left: ${
|
|
36020
|
-
|
|
36021
|
-
|
|
36022
|
-
|
|
36039
|
+
left: ${_ref5 => {
|
|
36040
|
+
let {
|
|
36041
|
+
checked,
|
|
36042
|
+
size
|
|
36043
|
+
} = _ref5;
|
|
36023
36044
|
if (!checked) return "3px";
|
|
36024
36045
|
switch (size) {
|
|
36025
36046
|
case "s":
|
|
@@ -39545,7 +39566,7 @@ const CloseButton = styled.button`
|
|
|
39545
39566
|
transform: scale(0.95);
|
|
39546
39567
|
}
|
|
39547
39568
|
`;
|
|
39548
|
-
const TooltipContent = styled.span`
|
|
39569
|
+
const TooltipContent$2 = styled.span`
|
|
39549
39570
|
color: #212121;
|
|
39550
39571
|
font-family: Poppins;
|
|
39551
39572
|
font-size: 14px;
|
|
@@ -39634,7 +39655,7 @@ const MessageBox = _ref => {
|
|
|
39634
39655
|
direction: "top",
|
|
39635
39656
|
showTooltip: isDisabled,
|
|
39636
39657
|
topFactor: -0.85,
|
|
39637
|
-
content: /*#__PURE__*/React$1.createElement(TooltipContent, {
|
|
39658
|
+
content: /*#__PURE__*/React$1.createElement(TooltipContent$2, {
|
|
39638
39659
|
dangerouslySetInnerHTML: {
|
|
39639
39660
|
__html: tooltipContent
|
|
39640
39661
|
}
|
|
@@ -39722,7 +39743,7 @@ const TrashIcon = ({
|
|
|
39722
39743
|
const DisabledTrashIcon = ({
|
|
39723
39744
|
width = "22",
|
|
39724
39745
|
height = "22",
|
|
39725
|
-
color = "#
|
|
39746
|
+
color = "#B1B1B1"
|
|
39726
39747
|
}) => {
|
|
39727
39748
|
return /*#__PURE__*/React$1.createElement("svg", {
|
|
39728
39749
|
width: width,
|
|
@@ -39735,7 +39756,7 @@ const DisabledTrashIcon = ({
|
|
|
39735
39756
|
fill: color
|
|
39736
39757
|
}), /*#__PURE__*/React$1.createElement("path", {
|
|
39737
39758
|
d: "M0.853591 21.8534L0.146484 21.1463L21.1463 0.146484L21.8534 0.853591L0.853591 21.8534Z",
|
|
39738
|
-
fill: "#
|
|
39759
|
+
fill: "#B1B1B1"
|
|
39739
39760
|
}));
|
|
39740
39761
|
};
|
|
39741
39762
|
|
|
@@ -44459,12 +44480,12 @@ const VendorItem$1 = styled$1.div`
|
|
|
44459
44480
|
cursor: pointer;
|
|
44460
44481
|
|
|
44461
44482
|
&:hover {
|
|
44462
|
-
background: #
|
|
44483
|
+
background: #E6F0F0;
|
|
44463
44484
|
.trash-icon svg path {
|
|
44464
44485
|
fill: #B1B1B1;
|
|
44465
44486
|
}
|
|
44466
44487
|
.trash-icon-disabled svg path {
|
|
44467
|
-
fill: #
|
|
44488
|
+
fill: #B1B1B1;
|
|
44468
44489
|
}
|
|
44469
44490
|
}
|
|
44470
44491
|
`;
|
|
@@ -44527,6 +44548,14 @@ const CustomTooltip$1 = styled$1(Tooltip$2)`
|
|
|
44527
44548
|
}
|
|
44528
44549
|
}
|
|
44529
44550
|
`;
|
|
44551
|
+
const TooltipContent$1 = styled$1.span`
|
|
44552
|
+
color: #212121;
|
|
44553
|
+
font-family: Poppins;
|
|
44554
|
+
font-size: 14px;
|
|
44555
|
+
font-style: normal;
|
|
44556
|
+
font-weight: 400;
|
|
44557
|
+
line-height: normal;
|
|
44558
|
+
`;
|
|
44530
44559
|
const Container$1 = styled$1.div`
|
|
44531
44560
|
display: flex;
|
|
44532
44561
|
align-items: center;
|
|
@@ -44623,6 +44652,7 @@ const DisabledTrashIconWrapper = styled$1.div`
|
|
|
44623
44652
|
&[data-tooltip]:hover::after {
|
|
44624
44653
|
left: calc(var(--tooltip-left, 0px) + var(--tooltip-width, 0px) / 2 - 50px);
|
|
44625
44654
|
}
|
|
44655
|
+
|
|
44626
44656
|
`;
|
|
44627
44657
|
const TrashIconWrapper = styled$1.div`
|
|
44628
44658
|
${baseIconWrapperStyles}
|
|
@@ -44948,8 +44978,19 @@ const Item$1 = styled.div`
|
|
|
44948
44978
|
.trash-icon svg path {
|
|
44949
44979
|
fill: #b1b1b1;
|
|
44950
44980
|
}
|
|
44981
|
+
.trash-icon-disabled svg path {
|
|
44982
|
+
fill: #B1B1B1;
|
|
44983
|
+
}
|
|
44951
44984
|
}
|
|
44952
44985
|
`;
|
|
44986
|
+
const TooltipContent = styled.span`
|
|
44987
|
+
color: #212121;
|
|
44988
|
+
font-family: Poppins;
|
|
44989
|
+
font-size: 14px;
|
|
44990
|
+
font-style: normal;
|
|
44991
|
+
font-weight: 400;
|
|
44992
|
+
line-height: normal;
|
|
44993
|
+
`;
|
|
44953
44994
|
const Title$2 = styled.div`
|
|
44954
44995
|
font-size: 14px;
|
|
44955
44996
|
overflow: hidden;
|
|
@@ -45139,6 +45180,7 @@ const NewSubitemList = props => {
|
|
|
45139
45180
|
linkColor
|
|
45140
45181
|
} = props;
|
|
45141
45182
|
const [isHovered, setIsHovered] = useState(false);
|
|
45183
|
+
const [trashIsHovered, setTrashIsHovered] = useState(false);
|
|
45142
45184
|
const vendorItems = itemAndPackage.find(i => i.name === vendor.name).packages || [];
|
|
45143
45185
|
const onDeletePackage = item => {
|
|
45144
45186
|
const updatedPackages = vendorItems.filter(pkg => pkg.brands !== item.brands);
|
|
@@ -45173,6 +45215,8 @@ const NewSubitemList = props => {
|
|
|
45173
45215
|
};
|
|
45174
45216
|
const handleMouseEnter = () => setIsHovered(true);
|
|
45175
45217
|
const handleMouseLeave = () => setIsHovered(false);
|
|
45218
|
+
const handleMouseTrashEnter = () => setTrashIsHovered(true);
|
|
45219
|
+
const handleMouseTrashLeave = () => setTrashIsHovered(false);
|
|
45176
45220
|
return /*#__PURE__*/React$1.createElement(NewSubitemContainer$1, null, /*#__PURE__*/React$1.createElement(Header$1, null, /*#__PURE__*/React$1.createElement(BackButton$1, {
|
|
45177
45221
|
onClick: onBack
|
|
45178
45222
|
}, /*#__PURE__*/React$1.createElement(ArrowLeftIcon, null)), /*#__PURE__*/React$1.createElement(BackTitle$1, null, "All Vendors")), /*#__PURE__*/React$1.createElement(SelectionTitle$1, null, vendor.name), /*#__PURE__*/React$1.createElement(AddButtonContainer, null, /*#__PURE__*/React$1.createElement(LinkButton, {
|
|
@@ -45189,7 +45233,11 @@ const NewSubitemList = props => {
|
|
|
45189
45233
|
ref: el => setupTooltip(el, "Package was Sent")
|
|
45190
45234
|
}, /*#__PURE__*/React$1.createElement(CustomTooltip, {
|
|
45191
45235
|
hideTooltip: isHovered,
|
|
45192
|
-
content:
|
|
45236
|
+
content: /*#__PURE__*/React$1.createElement(TooltipContent, {
|
|
45237
|
+
dangerouslySetInnerHTML: {
|
|
45238
|
+
__html: "Package was Sent"
|
|
45239
|
+
}
|
|
45240
|
+
}),
|
|
45193
45241
|
topFactor: 0,
|
|
45194
45242
|
direction: "right"
|
|
45195
45243
|
}, item.status && Number(item.status) > 1 ? /*#__PURE__*/React$1.createElement(PackageSendIcon, {
|
|
@@ -45201,14 +45249,25 @@ const NewSubitemList = props => {
|
|
|
45201
45249
|
}
|
|
45202
45250
|
}, item.brands && /*#__PURE__*/React$1.createElement(Title$2, {
|
|
45203
45251
|
title: item.brands
|
|
45204
|
-
}, item.brands), item.component && /*#__PURE__*/React$1.createElement(ComponentContainer, null, item.component[0]), /*#__PURE__*/React$1.createElement(Chevron, null, /*#__PURE__*/React$1.createElement(ArrowRightFullIcon, null))), item.status && Number(item.status) > 1 ? /*#__PURE__*/React$1.createElement(
|
|
45252
|
+
}, item.brands), item.component && /*#__PURE__*/React$1.createElement(ComponentContainer, null, item.component[0]), /*#__PURE__*/React$1.createElement(Chevron, null, /*#__PURE__*/React$1.createElement(ArrowRightFullIcon, null))), item.status && Number(item.status) > 1 ? /*#__PURE__*/React$1.createElement(CustomTooltip, {
|
|
45253
|
+
hideTooltip: trashIsHovered,
|
|
45254
|
+
content: /*#__PURE__*/React$1.createElement(TooltipContent, {
|
|
45255
|
+
dangerouslySetInnerHTML: {
|
|
45256
|
+
__html: "Package cannot be deleted since it<br/> has been sent to the vendor as a form."
|
|
45257
|
+
}
|
|
45258
|
+
}),
|
|
45259
|
+
topFactor: 0,
|
|
45260
|
+
direction: "left"
|
|
45261
|
+
}, /*#__PURE__*/React$1.createElement(DisabledTrashIconWrapper, {
|
|
45205
45262
|
className: "trash-icon-disabled"
|
|
45206
45263
|
|
|
45207
45264
|
// ref={(el) => setupTooltip(el, trashTooltipText)}
|
|
45208
45265
|
}, /*#__PURE__*/React$1.createElement(DisabledTrashIcon, {
|
|
45266
|
+
onMouseEnter: handleMouseTrashEnter,
|
|
45267
|
+
onMouseLeave: handleMouseTrashLeave,
|
|
45209
45268
|
width: "22",
|
|
45210
45269
|
height: "22"
|
|
45211
|
-
})) : /*#__PURE__*/React$1.createElement(TrashIconWrapper, {
|
|
45270
|
+
}))) : /*#__PURE__*/React$1.createElement(TrashIconWrapper, {
|
|
45212
45271
|
className: "trash-icon",
|
|
45213
45272
|
onClick: e => {
|
|
45214
45273
|
e.stopPropagation();
|
|
@@ -54121,7 +54180,7 @@ const ItemManagerPanel = _ref => {
|
|
|
54121
54180
|
linkColor = "#212121",
|
|
54122
54181
|
backgroundColor = 'white',
|
|
54123
54182
|
buttonTooltipText = "Please fill out all forms before sending.",
|
|
54124
|
-
trashTooltipText = '
|
|
54183
|
+
trashTooltipText = 'Vendor cannot be deleted since its packages <br/> have already been sent as a form.',
|
|
54125
54184
|
maxVisibleVendors = 12,
|
|
54126
54185
|
componentText = "Scale"
|
|
54127
54186
|
} = _ref;
|
|
@@ -54327,7 +54386,11 @@ const ItemManagerPanel = _ref => {
|
|
|
54327
54386
|
ref: headerRef
|
|
54328
54387
|
}, /*#__PURE__*/React$1.createElement(Container$1, null, /*#__PURE__*/React$1.createElement(TitleContainer, null, /*#__PURE__*/React$1.createElement(SectionTitle$1, null, "Vendors"), /*#__PURE__*/React$1.createElement(SubtitleContainer, null, /*#__PURE__*/React$1.createElement(Subtitle$1, null, itemAndPackage.filter(item => item.packages !== null).length.toString(), " ", "Vendors", " "), /*#__PURE__*/React$1.createElement("span", null, "\xB7"), /*#__PURE__*/React$1.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$1.createElement(ButtonContainer, null, /*#__PURE__*/React$1.createElement(CustomTooltip$1, {
|
|
54329
54388
|
hideTooltip: !disabledSendForms,
|
|
54330
|
-
content:
|
|
54389
|
+
content: /*#__PURE__*/React$1.createElement(TooltipContent$1, {
|
|
54390
|
+
dangerouslySetInnerHTML: {
|
|
54391
|
+
__html: buttonTooltipText
|
|
54392
|
+
}
|
|
54393
|
+
}),
|
|
54331
54394
|
topFactor: 2,
|
|
54332
54395
|
direction: "bottom"
|
|
54333
54396
|
}, /*#__PURE__*/React$1.createElement(Button$1, {
|
|
@@ -54377,9 +54440,15 @@ const ItemManagerPanel = _ref => {
|
|
|
54377
54440
|
} else {
|
|
54378
54441
|
return `${sentPackagesLength}/${packagesLength} Packages Sent`;
|
|
54379
54442
|
}
|
|
54380
|
-
})())), /*#__PURE__*/React$1.createElement(VendorChevron$1, null, /*#__PURE__*/React$1.createElement(ArrowRightFullIcon, null))), sentPackagesLength > 0 ? /*#__PURE__*/React$1.createElement(DisabledTrashIconWrapper,
|
|
54443
|
+
})())), /*#__PURE__*/React$1.createElement(VendorChevron$1, null, /*#__PURE__*/React$1.createElement(ArrowRightFullIcon, null))), sentPackagesLength > 0 ? /*#__PURE__*/React$1.createElement(DisabledTrashIconWrapper, {
|
|
54444
|
+
className: "trash-icon-disabled"
|
|
54445
|
+
}, /*#__PURE__*/React$1.createElement(CustomTooltip$1, {
|
|
54381
54446
|
hideTooltip: trashIsHovered,
|
|
54382
|
-
content:
|
|
54447
|
+
content: /*#__PURE__*/React$1.createElement(TooltipContent$1, {
|
|
54448
|
+
dangerouslySetInnerHTML: {
|
|
54449
|
+
__html: trashTooltipText
|
|
54450
|
+
}
|
|
54451
|
+
}),
|
|
54383
54452
|
topFactor: 0,
|
|
54384
54453
|
direction: "left"
|
|
54385
54454
|
}, /*#__PURE__*/React$1.createElement(DisabledTrashIcon, {
|
|
@@ -54529,10 +54598,11 @@ const DropdownList = styled.ul`
|
|
|
54529
54598
|
`}
|
|
54530
54599
|
`;
|
|
54531
54600
|
const SectionDiv = styled.div`
|
|
54532
|
-
${
|
|
54533
|
-
|
|
54534
|
-
|
|
54535
|
-
|
|
54601
|
+
${_ref => {
|
|
54602
|
+
let {
|
|
54603
|
+
$showBorder,
|
|
54604
|
+
margin
|
|
54605
|
+
} = _ref;
|
|
54536
54606
|
switch ($showBorder) {
|
|
54537
54607
|
case 'Template Offer':
|
|
54538
54608
|
return css`border-top: 1px solid #e6e2e2ff;
|