sag_components 2.0.0-beta148 → 2.0.0-beta149
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.esm.js +93 -76
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +93 -76
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10330,23 +10330,24 @@ const QuarterPopupPicker = ({
|
|
|
10330
10330
|
};
|
|
10331
10331
|
|
|
10332
10332
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10333
|
-
const QuarterPicker =
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10333
|
+
const QuarterPicker = _ref => {
|
|
10334
|
+
let {
|
|
10335
|
+
availableQuarters,
|
|
10336
|
+
// ["Q1-2024"]
|
|
10337
|
+
label,
|
|
10338
|
+
onChange,
|
|
10339
|
+
borderRadius,
|
|
10340
|
+
required,
|
|
10341
|
+
width,
|
|
10342
|
+
height,
|
|
10343
|
+
placeholder,
|
|
10344
|
+
disabled,
|
|
10345
|
+
borderColor,
|
|
10346
|
+
borderColorFocus,
|
|
10347
|
+
textColor,
|
|
10348
|
+
selectedValue,
|
|
10349
|
+
startYear
|
|
10350
|
+
} = _ref;
|
|
10350
10351
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10351
10352
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10352
10353
|
const [value, setValue] = React$1.useState('');
|
|
@@ -10788,22 +10789,23 @@ const MonthPopupPicker = ({
|
|
|
10788
10789
|
};
|
|
10789
10790
|
|
|
10790
10791
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10791
|
-
const MonthPicker =
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
|
|
10799
|
-
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10792
|
+
const MonthPicker = _ref => {
|
|
10793
|
+
let {
|
|
10794
|
+
availableMonths,
|
|
10795
|
+
label,
|
|
10796
|
+
onChange,
|
|
10797
|
+
borderRadius,
|
|
10798
|
+
required,
|
|
10799
|
+
width,
|
|
10800
|
+
height,
|
|
10801
|
+
placeholder,
|
|
10802
|
+
disabled,
|
|
10803
|
+
borderColor,
|
|
10804
|
+
borderColorFocus,
|
|
10805
|
+
textColor,
|
|
10806
|
+
selectedValue,
|
|
10807
|
+
startYear
|
|
10808
|
+
} = _ref;
|
|
10807
10809
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10808
10810
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10809
10811
|
const [value, setValue] = React$1.useState('');
|
|
@@ -23914,21 +23916,22 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
23914
23916
|
position: absolute;
|
|
23915
23917
|
`;
|
|
23916
23918
|
|
|
23917
|
-
const QuickFilterDropdownSingle =
|
|
23918
|
-
|
|
23919
|
-
|
|
23920
|
-
|
|
23921
|
-
|
|
23922
|
-
|
|
23923
|
-
|
|
23924
|
-
|
|
23925
|
-
|
|
23926
|
-
|
|
23927
|
-
|
|
23928
|
-
|
|
23929
|
-
|
|
23930
|
-
|
|
23931
|
-
|
|
23919
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
23920
|
+
let {
|
|
23921
|
+
label,
|
|
23922
|
+
hoverColor,
|
|
23923
|
+
options,
|
|
23924
|
+
selectedValue,
|
|
23925
|
+
placeHolder,
|
|
23926
|
+
onChange,
|
|
23927
|
+
disabled,
|
|
23928
|
+
width,
|
|
23929
|
+
error,
|
|
23930
|
+
errorMessage,
|
|
23931
|
+
xIconShow,
|
|
23932
|
+
labelColor,
|
|
23933
|
+
showLabelOnTop
|
|
23934
|
+
} = _ref;
|
|
23932
23935
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
23933
23936
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
23934
23937
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24325,23 +24328,24 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24325
24328
|
cursor: pointer;
|
|
24326
24329
|
`;
|
|
24327
24330
|
|
|
24328
|
-
const QuickFilterDropdownMultiSelection =
|
|
24329
|
-
|
|
24330
|
-
|
|
24331
|
-
|
|
24332
|
-
|
|
24333
|
-
|
|
24334
|
-
|
|
24335
|
-
|
|
24336
|
-
|
|
24337
|
-
|
|
24338
|
-
|
|
24339
|
-
|
|
24340
|
-
|
|
24341
|
-
|
|
24342
|
-
|
|
24343
|
-
|
|
24344
|
-
|
|
24331
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24332
|
+
let {
|
|
24333
|
+
label,
|
|
24334
|
+
labelEmptyValue,
|
|
24335
|
+
options,
|
|
24336
|
+
selectedValue,
|
|
24337
|
+
placeHolder,
|
|
24338
|
+
onChange,
|
|
24339
|
+
required,
|
|
24340
|
+
disabled,
|
|
24341
|
+
width,
|
|
24342
|
+
error,
|
|
24343
|
+
errorMessage,
|
|
24344
|
+
labelColor,
|
|
24345
|
+
xIconShow,
|
|
24346
|
+
checkBoxColor,
|
|
24347
|
+
showLabelOnTop
|
|
24348
|
+
} = _ref;
|
|
24345
24349
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24346
24350
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24347
24351
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -35573,9 +35577,9 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
35573
35577
|
}
|
|
35574
35578
|
`;
|
|
35575
35579
|
|
|
35576
|
-
/**
|
|
35577
|
-
* ToggleSwitch component for on/off states.
|
|
35578
|
-
* Supports small/large sizes and disabled state.
|
|
35580
|
+
/**
|
|
35581
|
+
* ToggleSwitch component for on/off states.
|
|
35582
|
+
* Supports small/large sizes and disabled state.
|
|
35579
35583
|
*/
|
|
35580
35584
|
function ToggleSwitch(_ref) {
|
|
35581
35585
|
let {
|
|
@@ -52397,21 +52401,33 @@ const DropdownList = styled__default["default"].ul`
|
|
|
52397
52401
|
`}
|
|
52398
52402
|
`;
|
|
52399
52403
|
const SectionDiv = styled__default["default"].div`
|
|
52400
|
-
|
|
52401
|
-
|
|
52402
|
-
|
|
52403
|
-
|
|
52404
|
+
${({
|
|
52405
|
+
$showBorder
|
|
52406
|
+
}) => {
|
|
52407
|
+
switch ($showBorder) {
|
|
52408
|
+
case 'Template Offer':
|
|
52409
|
+
return styled.css`border-top: 1px solid #e6e2e2ff;
|
|
52410
|
+
margin-top: 8px;`;
|
|
52411
|
+
case 'Last defined by you':
|
|
52412
|
+
return styled.css`border-bottom: 1px solid #e6e2e2ff;
|
|
52413
|
+
padding-bottom: 8px;
|
|
52414
|
+
margin-bottom: 8px;`;
|
|
52415
|
+
default:
|
|
52416
|
+
return styled.css`border-top: none`;
|
|
52404
52417
|
}
|
|
52418
|
+
}}
|
|
52405
52419
|
`;
|
|
52406
52420
|
const SectionTitle = styled__default["default"].li`
|
|
52407
52421
|
font-size: 14px;
|
|
52408
52422
|
color: #bdbdbd;
|
|
52409
|
-
padding:
|
|
52423
|
+
padding: 8px 12px 0 12px;
|
|
52424
|
+
margin: 8px 12px 0 12px;
|
|
52410
52425
|
font-weight: 500;
|
|
52411
52426
|
pointer-events: none;
|
|
52427
|
+
list-style: none;
|
|
52412
52428
|
`;
|
|
52413
52429
|
const DropdownItem = styled__default["default"].li`
|
|
52414
|
-
padding: 8px
|
|
52430
|
+
padding: 8px 12px;
|
|
52415
52431
|
cursor: pointer;
|
|
52416
52432
|
display: flex;
|
|
52417
52433
|
align-items: center;
|
|
@@ -52953,9 +52969,10 @@ const OverlayDropdown = _ref => {
|
|
|
52953
52969
|
dropdownMaxHeight: dropdownMaxHeight,
|
|
52954
52970
|
width: width,
|
|
52955
52971
|
position: dropdownPosition
|
|
52956
|
-
}, dataToRender.map((group, groupIndex) => group.items
|
|
52972
|
+
}, dataToRender.map((group, groupIndex) => group.items?.length > 0 && /*#__PURE__*/React__default["default"].createElement(SectionDiv, {
|
|
52973
|
+
$showBorder: group.overlayName,
|
|
52957
52974
|
key: group.overlayCode
|
|
52958
|
-
},
|
|
52975
|
+
}, ['Template Offer', 'Last defined by you'].includes(group.overlayName) && /*#__PURE__*/React__default["default"].createElement(SectionTitle, null, group.overlayName), group.items.map(item => /*#__PURE__*/React__default["default"].createElement(DropdownItem, {
|
|
52959
52976
|
key: item.value,
|
|
52960
52977
|
selected: item.value === value,
|
|
52961
52978
|
selectedColor: selectedColor,
|