sag_components 1.0.975 → 1.0.976
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/Button.test.js +10 -10
- package/dist/LinkButton.test.js +10 -10
- package/dist/SingleBar.test.js +2 -2
- package/dist/index.js +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.js +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.style.js +40 -6
- package/dist/stories/components/BannerEventBox/BannerEventBox.js +33 -23
- package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +71 -15
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +10 -5
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +182 -16
- package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +91 -10
- package/dist/stories/components/BarChart/BarChart.js +5 -3
- package/dist/stories/components/BarChart/BarChart.stories.js +29 -20
- package/dist/stories/components/BarChart/BarChart.style.js +52 -10
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +53 -44
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +166 -40
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +72 -11
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +7 -3
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +88 -13
- package/dist/stories/components/Benchmark/Benchmark.style.js +53 -7
- package/dist/stories/components/Button/Button.js +1 -1
- package/dist/stories/components/Button/Button.style.js +82 -7
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +40 -7
- package/dist/stories/components/Card/Card.style.js +57 -10
- package/dist/stories/components/CheckBox/CheckBox.style.js +28 -6
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +31 -6
- package/dist/stories/components/CodeEditor/CodeEditor.style.js +4 -3
- package/dist/stories/components/CollapseData/CollapseData.js +5 -5
- package/dist/stories/components/CollapseData/CollapseData.style.js +119 -13
- package/dist/stories/components/CollapseHeader/CollapseHeader.js +2 -1
- package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +192 -27
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +53 -9
- package/dist/stories/components/Datepicker/Datepicker.style.js +9 -3
- package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +43 -6
- package/dist/stories/components/Dropdown/Dropdown.style.js +9 -3
- package/dist/stories/components/DropdownMulti/DropdownMulti.js +290 -0
- package/dist/stories/components/DropdownMulti/DropdownMulti.stories.js +220 -0
- package/dist/stories/components/DropdownMulti/DropdownMulti.style.js +11 -0
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +49 -36
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +204 -16
- package/dist/stories/components/DropdownNew/DropdownNew.js +21 -11
- package/dist/stories/components/DropdownNew/DropdownNew.stories.js +18 -9
- package/dist/stories/components/DropdownNew/DropdownNew.style.js +13 -3
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +30 -10
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +175 -14
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +86 -10
- package/dist/stories/components/EventList/EventList.style.js +30 -6
- package/dist/stories/components/EventListItem/EventListItem.style.js +39 -6
- package/dist/stories/components/FilterContainer/FilterContainer.style.js +22 -5
- package/dist/stories/components/FilterPanel/FilterPanel.js +22 -17
- package/dist/stories/components/FilterPanel/FilterPanel.style.js +81 -13
- package/dist/stories/components/FilterPanel.js +4 -0
- package/dist/stories/components/FormattedValue/FormattedValue.style.js +83 -10
- package/dist/stories/components/IconButton/IconButton.style.js +56 -7
- package/dist/stories/components/Input/Input.style.js +122 -9
- package/dist/stories/components/InputOld/InputOld.style.js +61 -8
- package/dist/stories/components/KpiFilter/KpiFilter.js +18 -1
- package/dist/stories/components/KpiFilter/KpiFilter.style.js +124 -18
- package/dist/stories/components/LinkButton/LinkButton.style.js +45 -6
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +4 -2
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +32 -10
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +60 -14
- package/dist/stories/components/ListBox/ListBox.style.js +40 -6
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +17 -3
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +207 -19
- package/dist/stories/components/Modal/Modal.style.js +56 -8
- package/dist/stories/components/Modal/ModalTotalBenchmark.js +6 -6
- package/dist/stories/components/MonthPicker/MonthPicker.js +2 -2
- package/dist/stories/components/MonthPicker/MonthPicker.style.js +95 -10
- package/dist/stories/components/MonthPicker/MonthPopupPicker.js +91 -13
- package/dist/stories/components/MultipleCard/MultipleCard.style.js +5 -3
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +31 -5
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +99 -12
- package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +14 -4
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +16 -9
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +136 -17
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +14 -13
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +55 -8
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +12 -5
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +108 -15
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +81 -12
- package/dist/stories/components/Popup/Popup.style.js +114 -16
- package/dist/stories/components/PopupCharts/PopupCharts.style.js +100 -15
- package/dist/stories/components/PopupContent/PopupContent.style.js +64 -11
- package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +78 -12
- package/dist/stories/components/ProgressBar/ProgressBar.style.js +15 -4
- package/dist/stories/components/QuarterPicker/QuarterPicker.js +2 -2
- package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +94 -10
- package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +85 -12
- package/dist/stories/components/QuickFilter/QuickFilter.style.js +13 -3
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +2 -2
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +182 -16
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +1 -1
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +127 -15
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
- package/dist/stories/components/QuickFilterDropdownSingle.js +1 -1
- package/dist/stories/components/RangePicker/RangeDatePicker.js +95 -12
- package/dist/stories/components/RangePicker/RangePicker.js +2 -2
- package/dist/stories/components/RangePicker/RangePicker.style.js +99 -10
- package/dist/stories/components/ReportTable/ReportTable.style.js +123 -14
- package/dist/stories/components/SagButton/SagButton.style.js +39 -5
- package/dist/stories/components/SagIconButton/SagIconButton.style.js +22 -4
- package/dist/stories/components/SagInput/SagInput.style.js +33 -5
- package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +103 -11
- package/dist/stories/components/SearchInput/SearchInput.style.js +29 -4
- package/dist/stories/components/SegmentedButton/SegmentedButton.js +5 -5
- package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +90 -9
- package/dist/stories/components/Select/Select.style.js +92 -9
- package/dist/stories/components/TabMenu/TabMenu.js +19 -7
- package/dist/stories/components/TabMenu/TabMenu.style.js +105 -14
- package/dist/stories/components/Table/Table.js +2 -2
- package/dist/stories/components/Table/Table.style.js +78 -9
- package/dist/stories/components/TextField/TextField.style.js +10 -3
- package/dist/stories/components/TitleDescription/TitleDescription.style.js +214 -28
- package/dist/stories/components/Tooltip/Tooltip.js +1 -1
- package/dist/stories/components/Tooltip/Tooltip.style.js +90 -5
- package/dist/stories/components/TopToggleList/TopToggleList.style.js +43 -8
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +71 -11
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +3 -3
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +163 -22
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +100 -16
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +69 -12
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +3 -3
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +170 -22
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +47 -32
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +52 -14
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +51 -13
- package/dist/stories/components/TspanTooltip/TspanTooltip.js +3 -3
- package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +97 -5
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +6 -4
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +88 -23
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +52 -10
- package/dist/stories/utils/CommonFunctions.js +13 -8
- package/package.json +1 -1
- package/dist/stories/components/HaiTooltip.js +0 -71
- package/dist/stories/components/HaiTooltip.style.js +0 -12
- package/dist/stories/components/Rbackup.js +0 -453
- package/dist/stories/components/TableTooltip.js +0 -71
- package/dist/stories/components/TableTooltip.style.js +0 -12
|
@@ -18,7 +18,6 @@ const DropdownMultiNew = _ref => {
|
|
|
18
18
|
labelEmptyValue,
|
|
19
19
|
options,
|
|
20
20
|
selectedValue,
|
|
21
|
-
placeHolder,
|
|
22
21
|
onChange,
|
|
23
22
|
required,
|
|
24
23
|
disabled,
|
|
@@ -28,17 +27,37 @@ const DropdownMultiNew = _ref => {
|
|
|
28
27
|
labelColor,
|
|
29
28
|
xIconShow,
|
|
30
29
|
checkBoxColor,
|
|
31
|
-
showLabelOnTop
|
|
30
|
+
showLabelOnTop,
|
|
31
|
+
orderBy,
|
|
32
|
+
elementType
|
|
32
33
|
} = _ref;
|
|
33
34
|
const [isFocused, setIsFocused] = (0, _react.useState)(false);
|
|
34
35
|
const [showOptions, setShowOptions] = (0, _react.useState)(false);
|
|
35
|
-
const [inputValue, setInputValue] = (0, _react.useState)(
|
|
36
|
+
const [inputValue, setInputValue] = (0, _react.useState)("");
|
|
36
37
|
const [selectedOptions, setSelectedOptions] = (0, _react.useState)([]);
|
|
37
38
|
const [hoverInputContainer, setHoverInputContainer] = (0, _react.useState)(false);
|
|
38
39
|
const [hoverOptionsContainer, setHoverOptionsContainer] = (0, _react.useState)(false);
|
|
39
40
|
const inputRef = (0, _react.useRef)(null);
|
|
40
41
|
const containerRef = (0, _react.useRef)(null);
|
|
41
|
-
|
|
42
|
+
let filteredOptions = options === null || options === void 0 ? void 0 : options.filter(option => option.label.toLowerCase().includes(inputValue.toLowerCase()));
|
|
43
|
+
switch (orderBy) {
|
|
44
|
+
case "asc":
|
|
45
|
+
filteredOptions = filteredOptions.sort((a, b) => a.label.localeCompare(b.label));
|
|
46
|
+
break;
|
|
47
|
+
case "element":
|
|
48
|
+
if (elementType === "number") {
|
|
49
|
+
filteredOptions = filteredOptions.sort((a, b) => a.element - b.element);
|
|
50
|
+
} else {
|
|
51
|
+
filteredOptions = filteredOptions.sort((a, b) => {
|
|
52
|
+
const dateA = new Date(a.element.split("-").reverse().join("-"));
|
|
53
|
+
const dateB = new Date(b.element.split("-").reverse().join("-"));
|
|
54
|
+
return dateB - dateA;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
break;
|
|
58
|
+
default:
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
42
61
|
(0, _react.useEffect)(() => {
|
|
43
62
|
if (selectedValue) {
|
|
44
63
|
setSelectedOptions(selectedValue);
|
|
@@ -60,13 +79,6 @@ const DropdownMultiNew = _ref => {
|
|
|
60
79
|
setIsFocused(true);
|
|
61
80
|
setShowOptions(true);
|
|
62
81
|
};
|
|
63
|
-
|
|
64
|
-
// const handleBlur = () => {
|
|
65
|
-
// if (isMulti) return;
|
|
66
|
-
// setIsFocused(false);
|
|
67
|
-
// setTimeout(() => setShowOptions(false), 200); // Delay hiding options to allow clicking on them
|
|
68
|
-
// };
|
|
69
|
-
|
|
70
82
|
const toggleOption = option => {
|
|
71
83
|
if (disabled) return;
|
|
72
84
|
const selectedIndex = selectedOptions.findIndex(selectedOption => selectedOption.value === option.value);
|
|
@@ -135,41 +147,40 @@ const DropdownMultiNew = _ref => {
|
|
|
135
147
|
inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.focus();
|
|
136
148
|
}
|
|
137
149
|
}
|
|
138
|
-
}, option.label && ((_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.length) > 10 ?
|
|
150
|
+
}, option.label && ((_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.length) > 10 ? `${(_option$label2 = option.label) === null || _option$label2 === void 0 ? void 0 : _option$label2.substring(0, 10)}... ` : `${option.label} `, /*#__PURE__*/_react.default.createElement(_CloseXIcon.CloseXIcon, {
|
|
139
151
|
width: "8px",
|
|
140
152
|
height: "8px",
|
|
141
153
|
fill: "#212121"
|
|
142
|
-
})) :
|
|
154
|
+
})) : " ";
|
|
143
155
|
}), selectedOptions.length > 2 ? /*#__PURE__*/_react.default.createElement(_DropdownMultiNew.SelectedOptionItem, {
|
|
144
156
|
className: "SelectedOptionItem"
|
|
145
|
-
}, selectedOptions.length - 2, "+") :
|
|
157
|
+
}, selectedOptions.length - 2, "+") : "");
|
|
146
158
|
return content;
|
|
147
159
|
};
|
|
148
160
|
const getLabel = () => {
|
|
149
161
|
if (!showLabelOnTop && isFocused) {
|
|
150
|
-
return
|
|
162
|
+
return "";
|
|
151
163
|
}
|
|
152
164
|
if ((selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) > 0) {
|
|
153
165
|
return label;
|
|
154
166
|
}
|
|
155
167
|
return labelEmptyValue;
|
|
156
|
-
// selectedOptions?.length > 0 ? label : labelEmptyValue}
|
|
157
168
|
};
|
|
158
169
|
const getRequired = () => {
|
|
159
170
|
if (!showLabelOnTop && isFocused) {
|
|
160
|
-
return
|
|
171
|
+
return "";
|
|
161
172
|
}
|
|
162
173
|
if (!showLabelOnTop && !label && (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) > 0) {
|
|
163
|
-
return
|
|
174
|
+
return "";
|
|
164
175
|
}
|
|
165
176
|
if (required) {
|
|
166
177
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
167
178
|
style: {
|
|
168
|
-
color:
|
|
179
|
+
color: "red"
|
|
169
180
|
}
|
|
170
181
|
}, "*");
|
|
171
182
|
}
|
|
172
|
-
return
|
|
183
|
+
return "";
|
|
173
184
|
};
|
|
174
185
|
return /*#__PURE__*/_react.default.createElement(_DropdownMultiNew.DropdownWrapper, {
|
|
175
186
|
className: "DropdownWrapper",
|
|
@@ -208,10 +219,10 @@ const DropdownMultiNew = _ref => {
|
|
|
208
219
|
onClick: handleLabelClick,
|
|
209
220
|
type: "search",
|
|
210
221
|
disabled: disabled,
|
|
211
|
-
placeholder: isFocused ?
|
|
222
|
+
placeholder: isFocused ? filteredOptions.length <= 5 ? "Select Option…" : "Type To Search" : "",
|
|
212
223
|
error: error,
|
|
213
224
|
isFocused: isFocused
|
|
214
|
-
}) :
|
|
225
|
+
}) : " "), selectedOptions.length > 0 && xIconShow && /*#__PURE__*/_react.default.createElement(_DropdownMultiNew.IconContainer, {
|
|
215
226
|
className: "IconContainer",
|
|
216
227
|
onClick: handleClearClick
|
|
217
228
|
}, /*#__PURE__*/_react.default.createElement(_CloseXIcon.CloseXIcon, {
|
|
@@ -235,45 +246,47 @@ const DropdownMultiNew = _ref => {
|
|
|
235
246
|
onMouseLeave: () => setHoverOptionsContainer(false),
|
|
236
247
|
showoptions: showOptions,
|
|
237
248
|
disabled: disabled,
|
|
238
|
-
filteredoptions:
|
|
249
|
+
filteredoptions: filteredOptions
|
|
239
250
|
}, /*#__PURE__*/_react.default.createElement(_DropdownMultiNew.OptionsSubContainer, {
|
|
240
251
|
className: "OptionsSubContainer",
|
|
241
252
|
showoptions: showOptions,
|
|
242
253
|
disabled: disabled,
|
|
243
|
-
filteredoptions:
|
|
244
|
-
},
|
|
254
|
+
filteredoptions: filteredOptions
|
|
255
|
+
}, filteredOptions.map(option => /*#__PURE__*/_react.default.createElement(_DropdownMultiNew.OptionItem, {
|
|
245
256
|
className: "OptionItem",
|
|
246
257
|
key: option.value,
|
|
247
258
|
onClick: () => toggleOption(option),
|
|
248
259
|
selected: isDropdowned(option)
|
|
249
|
-
},
|
|
260
|
+
}, " ", /*#__PURE__*/_react.default.createElement(_DropdownMultiNew.IconContainer, {
|
|
250
261
|
className: "IconContainer"
|
|
251
262
|
}, selectedOptions.find(itemSelectedOptions => option.value === itemSelectedOptions.value) ? /*#__PURE__*/_react.default.createElement(_CheckBoxCheckedIcon.CheckBoxCheckedIcon, {
|
|
252
263
|
width: "14px",
|
|
253
264
|
height: "14px",
|
|
254
|
-
color: disabled ?
|
|
265
|
+
color: disabled ? "#888" : checkBoxColor
|
|
255
266
|
}) : /*#__PURE__*/_react.default.createElement(_CheckBoxNotCheckedIcon.CheckBoxNotCheckedIcon, {
|
|
256
267
|
width: "14px",
|
|
257
268
|
height: "14px",
|
|
258
|
-
color: disabled ?
|
|
269
|
+
color: disabled ? "#888" : "#212121"
|
|
259
270
|
})), option.label)))));
|
|
260
271
|
};
|
|
261
272
|
exports.DropdownMultiNew = DropdownMultiNew;
|
|
262
273
|
var _default = exports.default = DropdownMultiNew;
|
|
263
274
|
DropdownMultiNew.defaultProps = {
|
|
264
|
-
placeHolder:
|
|
265
|
-
label:
|
|
266
|
-
labelEmptyValue:
|
|
267
|
-
labelColor:
|
|
268
|
-
checkBoxColor:
|
|
275
|
+
placeHolder: "Type To Search",
|
|
276
|
+
label: "Label",
|
|
277
|
+
labelEmptyValue: "All Labels",
|
|
278
|
+
labelColor: "#066768",
|
|
279
|
+
checkBoxColor: "#229E38",
|
|
269
280
|
required: true,
|
|
270
|
-
width:
|
|
281
|
+
width: "300px",
|
|
271
282
|
disabled: false,
|
|
272
283
|
error: false,
|
|
273
|
-
errorMessage:
|
|
284
|
+
errorMessage: "",
|
|
274
285
|
options: [],
|
|
275
286
|
selectedValue: [],
|
|
276
287
|
xIconShow: true,
|
|
277
288
|
onChange: () => {},
|
|
278
|
-
showLabelOnTop: true
|
|
289
|
+
showLabelOnTop: true,
|
|
290
|
+
orderBy: "asc",
|
|
291
|
+
elementType: "number"
|
|
279
292
|
};
|
|
@@ -5,24 +5,212 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.StyledInput = exports.SelectedOptionsContainer = exports.SelectedOptionItem = exports.OptionsSubContainer = exports.OptionsContainer = exports.OptionItem = exports.Label = exports.InputSubContainer = exports.InputContainer = exports.IconContainer = exports.ErrorMessage = exports.DropdownWrapper = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
const scrollableStyles = `
|
|
10
|
+
overflow-y: auto;
|
|
11
|
+
|
|
12
|
+
&::-webkit-scrollbar {
|
|
13
|
+
width: 4px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&::-webkit-scrollbar-track {
|
|
17
|
+
background: #E8E8E8;
|
|
18
|
+
border-radius: 5px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&::-webkit-scrollbar-thumb {
|
|
22
|
+
background: #D0D0D0;
|
|
23
|
+
border-radius: 5px;
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
const DropdownWrapper = exports.DropdownWrapper = _styledComponents.default.div`
|
|
27
|
+
position: relative;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
align-content: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
align-items: flex-start;
|
|
33
|
+
width: ${props => props.width || '300px'};
|
|
34
|
+
font-family: "Poppins", sans-serif;
|
|
35
|
+
font-weight: 400;
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
border-radius: 10px;
|
|
38
|
+
`;
|
|
39
|
+
const Label = exports.Label = _styledComponents.default.label`
|
|
40
|
+
font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
padding-inline-end: 5px;
|
|
43
|
+
padding-inline-start: 5px;
|
|
44
|
+
margin-right: 10px;
|
|
45
|
+
z-index: 2;
|
|
46
|
+
color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
|
|
47
|
+
background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: ${props => props.isFocused || props.hasValue ? '0px' : '27px'};
|
|
50
|
+
left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
|
|
51
|
+
font-family: Poppins;
|
|
52
|
+
transform: translateY(-50%);
|
|
53
|
+
transition: ${props => props.showLabelOnTop ? 'top 0.3s ease, font-size 0.3s ease, color 0.3s ease' : ''} ;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
gap: 4px;
|
|
58
|
+
&:hover {
|
|
59
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
const InputContainer = exports.InputContainer = _styledComponents.default.div`
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: row;
|
|
65
|
+
flex-wrap: nowrap;
|
|
66
|
+
justify-content: flex-start;
|
|
67
|
+
align-content: center;
|
|
68
|
+
white-space: pre-wrap;
|
|
69
|
+
align-items: center;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
padding: 0 5px 0 0;
|
|
72
|
+
margin-bottom: 8px;
|
|
73
|
+
gap: 4px;
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 100%;
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
|
|
79
|
+
font-family: "Poppins", sans-serif;
|
|
80
|
+
font-weight: 400;
|
|
81
|
+
font-size: 14px;
|
|
82
|
+
border-radius: 12px;
|
|
83
|
+
outline: none;
|
|
84
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
85
|
+
&:hover {
|
|
86
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
|
|
87
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
88
|
+
}
|
|
89
|
+
&:focus {
|
|
90
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
|
|
91
|
+
}
|
|
92
|
+
`;
|
|
93
|
+
const InputSubContainer = exports.InputSubContainer = _styledComponents.default.div`
|
|
94
|
+
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
flex-wrap: nowrap;
|
|
98
|
+
align-content: center;
|
|
99
|
+
align-items: flex-start;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
white-space: pre-wrap;
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
padding: 10px 4px 10px 10px;
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: 100%;
|
|
106
|
+
min-height: 53px;
|
|
107
|
+
box-sizing: border-box;
|
|
108
|
+
background-color: transparent;
|
|
109
|
+
border-radius: 12px;
|
|
110
|
+
outline: none;
|
|
111
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
112
|
+
`;
|
|
113
|
+
const StyledInput = exports.StyledInput = _styledComponents.default.input`
|
|
114
|
+
width: calc(100% - 20px);
|
|
115
|
+
height: 25px;
|
|
116
|
+
font-family: Poppins;
|
|
117
|
+
font-weight: 400;
|
|
118
|
+
font-size: 14px;
|
|
119
|
+
outline: none;
|
|
120
|
+
background-color: transparent;
|
|
121
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
122
|
+
border: none;
|
|
123
|
+
`;
|
|
124
|
+
const OptionsContainer = exports.OptionsContainer = _styledComponents.default.div`
|
|
125
|
+
margin: 0;
|
|
126
|
+
top: 100%;
|
|
127
|
+
left: 0;
|
|
128
|
+
z-index: 100;
|
|
129
|
+
width: 100%;
|
|
130
|
+
background-color: #fff;
|
|
131
|
+
display: ${props => {
|
|
17
132
|
var _props$filteredoption;
|
|
18
133
|
return props.showoptions && ((_props$filteredoption = props.filteredoptions) === null || _props$filteredoption === void 0 ? void 0 : _props$filteredoption.length) > 0 ? 'block' : 'none';
|
|
19
|
-
}
|
|
20
|
-
|
|
134
|
+
}};
|
|
135
|
+
`;
|
|
136
|
+
const OptionsSubContainer = exports.OptionsSubContainer = _styledComponents.default.ul`
|
|
137
|
+
${scrollableStyles}
|
|
138
|
+
list-style: none;
|
|
139
|
+
font-weight: 400;
|
|
140
|
+
margin: 0;
|
|
141
|
+
padding: 8px 12px;
|
|
142
|
+
position: absolute;
|
|
143
|
+
top: 100%;
|
|
144
|
+
left: 0;
|
|
145
|
+
z-index: 101;
|
|
146
|
+
width: calc(100% - 23px);
|
|
147
|
+
font-family: Poppins;
|
|
148
|
+
border-radius: 4px;
|
|
149
|
+
background-color: #fff;
|
|
150
|
+
display: ${props => {
|
|
21
151
|
var _props$filteredoption2;
|
|
22
152
|
return props.showoptions && ((_props$filteredoption2 = props.filteredoptions) === null || _props$filteredoption2 === void 0 ? void 0 : _props$filteredoption2.length) > 0 ? 'block' : 'none';
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const
|
|
153
|
+
}};
|
|
154
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
|
|
155
|
+
max-height: 400px;
|
|
156
|
+
overflow: auto;
|
|
157
|
+
`;
|
|
158
|
+
const OptionItem = exports.OptionItem = _styledComponents.default.li`
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: row;
|
|
161
|
+
justify-content: flex-start;
|
|
162
|
+
align-items: center;
|
|
163
|
+
gap: 8px;
|
|
164
|
+
padding: 10px;
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
color: #212121;
|
|
167
|
+
font-family: Poppins;
|
|
168
|
+
font-size: 14px;
|
|
169
|
+
font-style: normal;
|
|
170
|
+
font-weight: 400;
|
|
171
|
+
transition: background-color 0.3s;
|
|
172
|
+
|
|
173
|
+
&:hover {
|
|
174
|
+
background-color: #EDF6FF;
|
|
175
|
+
}
|
|
176
|
+
`;
|
|
177
|
+
const ErrorMessage = exports.ErrorMessage = _styledComponents.default.div`
|
|
178
|
+
font-size: 12px;
|
|
179
|
+
color: red;
|
|
180
|
+
margin-top: 5px;
|
|
181
|
+
`;
|
|
182
|
+
const SelectedOptionsContainer = exports.SelectedOptionsContainer = _styledComponents.default.div`
|
|
183
|
+
display: flex;
|
|
184
|
+
flex-direction: row;
|
|
185
|
+
flex-wrap: nowrap;
|
|
186
|
+
justify-content: flex-start;
|
|
187
|
+
align-content: center;
|
|
188
|
+
align-items: center;
|
|
189
|
+
white-space: pre-wrap;
|
|
190
|
+
overflow: hidden;
|
|
191
|
+
padding: 0;
|
|
192
|
+
font-weight: 400;
|
|
193
|
+
border-top: none;
|
|
194
|
+
border-radius: 4px;
|
|
195
|
+
background-color: #fff;
|
|
196
|
+
gap: 4px;
|
|
197
|
+
`;
|
|
198
|
+
const SelectedOptionItem = exports.SelectedOptionItem = _styledComponents.default.div`
|
|
199
|
+
display: flex;
|
|
200
|
+
margin: 0;
|
|
201
|
+
flex-wrap: nowrap;
|
|
202
|
+
white-space: pre-wrap;
|
|
203
|
+
overflow: hidden;
|
|
204
|
+
cursor: pointer;
|
|
205
|
+
color: #212121;
|
|
206
|
+
background-color: #E3E4E5;
|
|
207
|
+
border-radius: 4px;
|
|
208
|
+
align-items: center;
|
|
209
|
+
padding: 4px 6px;
|
|
210
|
+
font-size: 12px;
|
|
211
|
+
`;
|
|
212
|
+
const IconContainer = exports.IconContainer = _styledComponents.default.div`
|
|
213
|
+
display: flex;
|
|
214
|
+
padding: 2px;
|
|
215
|
+
cursor: pointer;
|
|
216
|
+
`;
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _DropdownSingleNew = require("../DropdownSingleNew/DropdownSingleNew");
|
|
10
10
|
var _DropdownMultiNew = require("../DropdownMultiNew/DropdownMultiNew");
|
|
11
11
|
var _DropdownNew = require("./DropdownNew.style");
|
|
12
|
+
/* eslint-disable react/prop-types */
|
|
13
|
+
|
|
12
14
|
const DropdownNew = _ref => {
|
|
13
15
|
let {
|
|
14
16
|
isMulti,
|
|
@@ -26,7 +28,9 @@ const DropdownNew = _ref => {
|
|
|
26
28
|
labelColor,
|
|
27
29
|
checkBoxColor,
|
|
28
30
|
xIconShow,
|
|
29
|
-
showLabelOnTop
|
|
31
|
+
showLabelOnTop,
|
|
32
|
+
orderBy,
|
|
33
|
+
elementType
|
|
30
34
|
} = _ref;
|
|
31
35
|
return /*#__PURE__*/_react.default.createElement(_DropdownNew.DropdownMain, {
|
|
32
36
|
className: "DropdownMain",
|
|
@@ -47,7 +51,9 @@ const DropdownNew = _ref => {
|
|
|
47
51
|
selectedValue: selectedValue,
|
|
48
52
|
xIconShow: xIconShow,
|
|
49
53
|
onChange: onChange,
|
|
50
|
-
showLabelOnTop: showLabelOnTop
|
|
54
|
+
showLabelOnTop: showLabelOnTop,
|
|
55
|
+
orderBy: orderBy,
|
|
56
|
+
elementType: elementType
|
|
51
57
|
}) : /*#__PURE__*/_react.default.createElement(_DropdownSingleNew.DropdownSingleNew, {
|
|
52
58
|
className: "DropdownSingleNew",
|
|
53
59
|
placeHolder: placeHolder,
|
|
@@ -64,25 +70,29 @@ const DropdownNew = _ref => {
|
|
|
64
70
|
selectedValue: selectedValue,
|
|
65
71
|
xIconShow: xIconShow,
|
|
66
72
|
onChange: onChange,
|
|
67
|
-
showLabelOnTop: showLabelOnTop
|
|
73
|
+
showLabelOnTop: showLabelOnTop,
|
|
74
|
+
orderBy: orderBy,
|
|
75
|
+
elementType: elementType
|
|
68
76
|
}));
|
|
69
77
|
};
|
|
70
78
|
exports.DropdownNew = DropdownNew;
|
|
71
79
|
var _default = exports.default = DropdownNew;
|
|
72
80
|
DropdownNew.defaultProps = {
|
|
73
|
-
placeHolder:
|
|
74
|
-
label:
|
|
75
|
-
labelEmptyValue:
|
|
76
|
-
labelColor:
|
|
77
|
-
checkBoxColor:
|
|
81
|
+
placeHolder: "Type...",
|
|
82
|
+
label: "Label",
|
|
83
|
+
labelEmptyValue: "All Labels",
|
|
84
|
+
labelColor: "#066768",
|
|
85
|
+
checkBoxColor: "#229E38",
|
|
78
86
|
required: true,
|
|
79
|
-
width:
|
|
87
|
+
width: "300px",
|
|
80
88
|
disabled: false,
|
|
81
89
|
error: false,
|
|
82
|
-
errorMessage:
|
|
90
|
+
errorMessage: "",
|
|
83
91
|
options: [],
|
|
84
92
|
selectedValue: [],
|
|
85
93
|
xIconShow: true,
|
|
86
94
|
onChange: () => {},
|
|
87
|
-
showLabelOnTop: true
|
|
95
|
+
showLabelOnTop: true,
|
|
96
|
+
orderBy: "asc",
|
|
97
|
+
elementType: "number"
|
|
88
98
|
};
|
|
@@ -11,31 +11,40 @@ var _DropdownNew = _interopRequireDefault(require("./DropdownNew"));
|
|
|
11
11
|
|
|
12
12
|
const optionsData = [{
|
|
13
13
|
value: 'Multi Vendor Selling Event #2 Weeks 7 and 8 ',
|
|
14
|
-
label: 'Multi Vendor Selling Event #2 Weeks 7 and 8 '
|
|
14
|
+
label: 'Multi Vendor Selling Event #2 Weeks 7 and 8 ',
|
|
15
|
+
element: "23-01-2021"
|
|
15
16
|
}, {
|
|
16
17
|
value: 'Small Theme #11 Bulk Size Week 32',
|
|
17
|
-
label: 'Small Theme #11 Bulk Size Week 32'
|
|
18
|
+
label: 'Small Theme #11 Bulk Size Week 32',
|
|
19
|
+
element: "20-01-2025"
|
|
18
20
|
}, {
|
|
19
21
|
value: 'Pick Up and Delivery #17 Kraft Heinz Week 17',
|
|
20
|
-
label: 'Pick Up and Delivery #17 Kraft Heinz Week 17'
|
|
22
|
+
label: 'Pick Up and Delivery #17 Kraft Heinz Week 17',
|
|
23
|
+
element: "14-01-2024"
|
|
21
24
|
}, {
|
|
22
25
|
value: 'Small Theme #1 Healthy Week 2',
|
|
23
|
-
label: 'Small Theme #1 Healthy Week 2'
|
|
26
|
+
label: 'Small Theme #1 Healthy Week 2',
|
|
27
|
+
element: "19-11-2024"
|
|
24
28
|
}, {
|
|
25
29
|
value: 'Pick Up and Delivery #21 Kraft Heinz Week 21',
|
|
26
|
-
label: 'Pick Up and Delivery #21 Kraft Heinz Week 21'
|
|
30
|
+
label: 'Pick Up and Delivery #21 Kraft Heinz Week 21',
|
|
31
|
+
element: "01-01-2024"
|
|
27
32
|
}, {
|
|
28
33
|
value: 'Large Selling Event #1 Digital Coupon Weeks 40 and 41',
|
|
29
|
-
label: 'Large Selling Event #1 Digital Coupon Weeks 40 and 41'
|
|
34
|
+
label: 'Large Selling Event #1 Digital Coupon Weeks 40 and 41',
|
|
35
|
+
element: "20-08-2024"
|
|
30
36
|
}, {
|
|
31
37
|
value: 'Large Selling Event #12 POD 4 Weeks 44 and 45',
|
|
32
|
-
label: 'Large Selling Event #12 POD 4 Weeks 44 and 45'
|
|
38
|
+
label: 'Large Selling Event #12 POD 4 Weeks 44 and 45',
|
|
39
|
+
element: "15-05-2022"
|
|
33
40
|
}, {
|
|
34
41
|
value: 'Large Selling Event #13 POD 1 Weeks 48 and 49',
|
|
35
|
-
label: 'Large Selling Event #13 POD 1 Weeks 48 and 49'
|
|
42
|
+
label: 'Large Selling Event #13 POD 1 Weeks 48 and 49',
|
|
43
|
+
element: "20-01-2019"
|
|
36
44
|
}, {
|
|
37
45
|
value: 'Large Selling Event #3 POD1 Weeks 9 and 10',
|
|
38
|
-
label: 'Large Selling Event #3 POD1 Weeks 9 and 10'
|
|
46
|
+
label: 'Large Selling Event #3 POD1 Weeks 9 and 10',
|
|
47
|
+
element: "20-01-2020"
|
|
39
48
|
}];
|
|
40
49
|
const selectedValueDataSingle = [{
|
|
41
50
|
value: 'Pick Up and Delivery #17 Kraft Heinz Week 17',
|
|
@@ -5,7 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.DropdownMain = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const DropdownMain = exports.DropdownMain = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-content: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
width: ${props => props.width || '300px'};
|
|
17
|
+
font-family: "Poppins", sans-serif;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
border-radius: 10px;
|
|
21
|
+
`;
|
|
@@ -16,7 +16,6 @@ const DropdownSingleNew = _ref => {
|
|
|
16
16
|
labelEmptyValue,
|
|
17
17
|
options,
|
|
18
18
|
selectedValue,
|
|
19
|
-
placeHolder,
|
|
20
19
|
onChange,
|
|
21
20
|
required,
|
|
22
21
|
disabled,
|
|
@@ -25,7 +24,9 @@ const DropdownSingleNew = _ref => {
|
|
|
25
24
|
errorMessage,
|
|
26
25
|
xIconShow,
|
|
27
26
|
labelColor,
|
|
28
|
-
showLabelOnTop
|
|
27
|
+
showLabelOnTop,
|
|
28
|
+
orderBy,
|
|
29
|
+
elementType
|
|
29
30
|
} = _ref;
|
|
30
31
|
const [isFocused, setIsFocused] = (0, _react.useState)(false);
|
|
31
32
|
const [showOptions, setShowOptions] = (0, _react.useState)(false);
|
|
@@ -35,7 +36,25 @@ const DropdownSingleNew = _ref => {
|
|
|
35
36
|
const [hoverOptionsContainer, setHoverOptionsContainer] = (0, _react.useState)(false);
|
|
36
37
|
const inputRef = (0, _react.useRef)(null);
|
|
37
38
|
const containerRef = (0, _react.useRef)(null);
|
|
38
|
-
|
|
39
|
+
let filteredOptions = options === null || options === void 0 ? void 0 : options.filter(option => option.label.toLowerCase().includes(inputValue.toLowerCase()));
|
|
40
|
+
switch (orderBy) {
|
|
41
|
+
case "asc":
|
|
42
|
+
filteredOptions = filteredOptions.sort((a, b) => a.label.localeCompare(b.label));
|
|
43
|
+
break;
|
|
44
|
+
case "element":
|
|
45
|
+
if (elementType === "number") {
|
|
46
|
+
filteredOptions = filteredOptions.sort((a, b) => a.element - b.element);
|
|
47
|
+
} else {
|
|
48
|
+
filteredOptions = filteredOptions.sort((a, b) => {
|
|
49
|
+
const dateA = new Date(a.element.split("-").reverse().join("-"));
|
|
50
|
+
const dateB = new Date(b.element.split("-").reverse().join("-"));
|
|
51
|
+
return dateB - dateA;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
break;
|
|
55
|
+
default:
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
39
58
|
(0, _react.useEffect)(() => {
|
|
40
59
|
if (selectedValue) {
|
|
41
60
|
setSelectedOptions(selectedValue);
|
|
@@ -121,7 +140,6 @@ const DropdownSingleNew = _ref => {
|
|
|
121
140
|
return label;
|
|
122
141
|
}
|
|
123
142
|
return labelEmptyValue;
|
|
124
|
-
// selectedOptions?.length > 0 ? label : labelEmptyValue}
|
|
125
143
|
};
|
|
126
144
|
const getRequired = () => {
|
|
127
145
|
if (!showLabelOnTop && isFocused) {
|
|
@@ -174,7 +192,7 @@ const DropdownSingleNew = _ref => {
|
|
|
174
192
|
onChange: handleInputChange,
|
|
175
193
|
onClick: handleLabelClick,
|
|
176
194
|
disabled: disabled,
|
|
177
|
-
placeholder: isFocused ?
|
|
195
|
+
placeholder: isFocused ? filteredOptions.length <= 5 ? "Select Option…" : "Type To Search" : "",
|
|
178
196
|
error: error,
|
|
179
197
|
isFocused: isFocused
|
|
180
198
|
})), selectedOptions.length > 0 && xIconShow && /*#__PURE__*/_react.default.createElement(_DropdownSingleNew.IconContainer, {
|
|
@@ -201,13 +219,13 @@ const DropdownSingleNew = _ref => {
|
|
|
201
219
|
onMouseLeave: () => setHoverOptionsContainer(false),
|
|
202
220
|
showoptions: showOptions,
|
|
203
221
|
disabled: disabled,
|
|
204
|
-
filteredoptions:
|
|
222
|
+
filteredoptions: filteredOptions
|
|
205
223
|
}, /*#__PURE__*/_react.default.createElement(_DropdownSingleNew.OptionsSubContainer, {
|
|
206
224
|
className: "OptionsSubContainer",
|
|
207
225
|
showoptions: showOptions,
|
|
208
226
|
disabled: disabled,
|
|
209
|
-
filteredoptions:
|
|
210
|
-
},
|
|
227
|
+
filteredoptions: filteredOptions
|
|
228
|
+
}, filteredOptions.map(option => /*#__PURE__*/_react.default.createElement(_DropdownSingleNew.OptionItem, {
|
|
211
229
|
className: "OptionItem",
|
|
212
230
|
key: option.value,
|
|
213
231
|
onClick: () => toggleOption(option),
|
|
@@ -217,7 +235,7 @@ const DropdownSingleNew = _ref => {
|
|
|
217
235
|
exports.DropdownSingleNew = DropdownSingleNew;
|
|
218
236
|
var _default = exports.default = DropdownSingleNew;
|
|
219
237
|
DropdownSingleNew.defaultProps = {
|
|
220
|
-
placeHolder: "Type
|
|
238
|
+
placeHolder: "Type To Search",
|
|
221
239
|
label: "Label",
|
|
222
240
|
labelEmptyValue: "All Labels",
|
|
223
241
|
labelColor: "#066768",
|
|
@@ -230,5 +248,7 @@ DropdownSingleNew.defaultProps = {
|
|
|
230
248
|
selectedValue: [],
|
|
231
249
|
xIconShow: true,
|
|
232
250
|
onChange: () => {},
|
|
233
|
-
showLabelOnTop: true
|
|
251
|
+
showLabelOnTop: true,
|
|
252
|
+
orderBy: "asc",
|
|
253
|
+
elementType: "number"
|
|
234
254
|
};
|