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
|
@@ -5,17 +5,85 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TooltipTextContainer = exports.TooltipText = exports.PeriodPickerEmptyText = exports.PeriodPickerEmptyContainer = exports.PeriodPickerContainer = exports.FieldsContainer = exports.FieldContainer = exports.DatePickerContainer = exports.ControlsContainer = exports.ButtonsContainer = exports.AllFieldsContainer = 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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
font-family: "Poppins", sans-serif;
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
width: ${props => props.width};
|
|
17
|
+
height: ${props => props.height};
|
|
18
|
+
padding: 40px 30px 20px;
|
|
19
|
+
background-color: #fefefe;
|
|
20
|
+
border-radius: 10px;
|
|
21
|
+
box-shadow: ${props => props.showShadow ? '0px 0px 20px 0px rgba(0, 0, 0, 0.2)' : ''};
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
`;
|
|
24
|
+
const ButtonsContainer = exports.ButtonsContainer = _styledComponents.default.div`
|
|
25
|
+
display: flex;
|
|
26
|
+
gap: 10px;
|
|
27
|
+
flex-direction: row-reverse;
|
|
28
|
+
`;
|
|
29
|
+
const AllFieldsContainer = exports.AllFieldsContainer = _styledComponents.default.div`
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
align-items: flex-start;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
width: 100%;
|
|
35
|
+
`;
|
|
36
|
+
const FieldsContainer = exports.FieldsContainer = _styledComponents.default.div`
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
white-space: wrap;
|
|
40
|
+
gap: 20px;
|
|
41
|
+
width: 100%;
|
|
42
|
+
`;
|
|
43
|
+
const FieldContainer = exports.FieldContainer = _styledComponents.default.div`
|
|
44
|
+
margin: 0;
|
|
45
|
+
`;
|
|
46
|
+
const DatePickerContainer = exports.DatePickerContainer = _styledComponents.default.div`
|
|
47
|
+
margin: 0;
|
|
48
|
+
`;
|
|
49
|
+
const PeriodPickerContainer = exports.PeriodPickerContainer = _styledComponents.default.div`
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
gap: 20px;
|
|
53
|
+
`;
|
|
54
|
+
const PeriodPickerEmptyContainer = exports.PeriodPickerEmptyContainer = _styledComponents.default.div`
|
|
55
|
+
display: flex;
|
|
56
|
+
align-content: center;
|
|
57
|
+
justify-content: flex-start;
|
|
58
|
+
align-items: center;
|
|
59
|
+
margin-bottom: 10px;
|
|
60
|
+
border-radius: 10px;
|
|
61
|
+
border: 1px solid #E7E7E7;
|
|
62
|
+
width: ${props => props.width};
|
|
63
|
+
height: ${props => props.height};
|
|
64
|
+
&:hover {
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
const PeriodPickerEmptyText = exports.PeriodPickerEmptyText = _styledComponents.default.div`
|
|
69
|
+
margin: 0 20px;
|
|
70
|
+
font-family: "Poppins", sans-serif;
|
|
71
|
+
font-weight: 400;
|
|
72
|
+
font-size: 14px;
|
|
73
|
+
color: #8B8989;
|
|
74
|
+
user-select: none;
|
|
75
|
+
`;
|
|
76
|
+
const TooltipTextContainer = exports.TooltipTextContainer = _styledComponents.default.div`
|
|
77
|
+
margin: 5px;
|
|
78
|
+
font-family: "Poppins", sans-serif;
|
|
79
|
+
font-weight: 400;
|
|
80
|
+
font-size: 14px;
|
|
81
|
+
line-height: 20px;
|
|
82
|
+
user-select: none;
|
|
83
|
+
&:hover {
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
`;
|
|
87
|
+
const TooltipText = exports.TooltipText = _styledComponents.default.div`
|
|
88
|
+
margin: 0;
|
|
89
|
+
`;
|
|
@@ -382,6 +382,8 @@ const FilterPanel = props => {
|
|
|
382
382
|
isMulti: false,
|
|
383
383
|
placeHolder: item.placeHolder,
|
|
384
384
|
label: item.label,
|
|
385
|
+
orderBy: item.orderBy,
|
|
386
|
+
elementType: item.elementType,
|
|
385
387
|
labelEmptyValue: item.labelEmptyValue,
|
|
386
388
|
labelColor: borderColor,
|
|
387
389
|
checkBoxColor: okButtonBackgroundColor,
|
|
@@ -404,6 +406,8 @@ const FilterPanel = props => {
|
|
|
404
406
|
isMulti: true,
|
|
405
407
|
placeHolder: item.placeHolder,
|
|
406
408
|
label: item.label,
|
|
409
|
+
orderBy: item.orderBy,
|
|
410
|
+
elementType: item.elementType,
|
|
407
411
|
labelEmptyValue: item.labelEmptyValue,
|
|
408
412
|
labelColor: borderColor,
|
|
409
413
|
checkBoxColor: okButtonBackgroundColor,
|
|
@@ -5,14 +5,87 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TitleAndValueContainer = exports.Title = exports.FormattedValueText = exports.CurrencySignOrPercent = exports.CurrencySignAndFormattedValueContainer = exports.ControlsContainer = exports.Controls = 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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
const scrollableStyles = `
|
|
10
|
+
overflow-y: auto;
|
|
11
|
+
|
|
12
|
+
&::-webkit-scrollbar {
|
|
13
|
+
width: 8px;
|
|
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 ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
27
|
+
position: relative;
|
|
28
|
+
font-family: "Poppins", sans-serif;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
font-weight: 500;
|
|
31
|
+
font-size: 20px;
|
|
32
|
+
color: ${props => props.textcolor};
|
|
33
|
+
width: ${props => props.width};
|
|
34
|
+
height: ${props => props.height};
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
@media (max-width: 1536px) {
|
|
38
|
+
${scrollableStyles}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
> * {
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
const Controls = exports.Controls = _styledComponents.default.div`
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
background: white;
|
|
51
|
+
`;
|
|
52
|
+
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div`
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
`;
|
|
56
|
+
const Title = exports.Title = _styledComponents.default.h4`
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
font-size: 20px;
|
|
59
|
+
margin: 0;
|
|
60
|
+
@media (max-width: 1536px) {
|
|
61
|
+
font-size: 14px;
|
|
62
|
+
}
|
|
63
|
+
@media (max-width: 1366px) {
|
|
64
|
+
font-size: 10px;
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
const CurrencySignAndFormattedValueContainer = exports.CurrencySignAndFormattedValueContainer = _styledComponents.default.div`
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
gap: 16px;
|
|
71
|
+
`;
|
|
72
|
+
const CurrencySignOrPercent = exports.CurrencySignOrPercent = _styledComponents.default.span`
|
|
73
|
+
font-weight: 500;
|
|
74
|
+
font-size: 16px;
|
|
75
|
+
@media (max-width: 1536px) {
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
}
|
|
78
|
+
@media (max-width: 1366px) {
|
|
79
|
+
font-size: 11px;
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
const FormattedValueText = exports.FormattedValueText = _styledComponents.default.div`
|
|
83
|
+
font-weight: 500;
|
|
84
|
+
font-size: 40px;
|
|
85
|
+
@media (max-width: 1536px) {
|
|
86
|
+
font-size: 34px;
|
|
87
|
+
}
|
|
88
|
+
@media (max-width: 1366px) {
|
|
89
|
+
font-size: 28px;
|
|
90
|
+
}
|
|
91
|
+
`;
|
|
@@ -1,15 +1,64 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.SpanText = exports.IconButtonContainer = exports.CancelClick = exports.ButtonWrapper = void 0;
|
|
9
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
10
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const
|
|
9
|
+
const ButtonWrapper = exports.ButtonWrapper = _styledComponents.default.div`
|
|
10
|
+
width: fit-content;
|
|
11
|
+
text-align: center;
|
|
12
|
+
`;
|
|
13
|
+
const IconButtonContainer = exports.IconButtonContainer = _styledComponents.default.a`
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
display: flex;
|
|
17
|
+
gap: 10px;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
padding: 12px 20px;
|
|
21
|
+
text-decoration: none;
|
|
22
|
+
color: ${props => props.color};
|
|
23
|
+
border-radius: ${props => props.borderRadius};
|
|
24
|
+
border: 1px solid ${props => props.borderColor.toString()};
|
|
25
|
+
background: ${props => props.backgroundColor.toString()};
|
|
26
|
+
position: relative;
|
|
27
|
+
transition: all .3s;
|
|
28
|
+
${props => props.inProgress && (0, _styledComponents.css)`
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
&:after {
|
|
31
|
+
content: 'In progress';
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
text-wrap: nowrap;
|
|
36
|
+
position: absolute;
|
|
37
|
+
background: linear-gradient(
|
|
38
|
+
to right,
|
|
39
|
+
#5FCC70 ${props.progress}%,
|
|
40
|
+
#B1B1B1 ${props.progress + 1}%,
|
|
41
|
+
#B1B1B1 100%
|
|
42
|
+
);
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
border-radius: ${props => props.borderRadius};
|
|
46
|
+
border-width: 0;
|
|
47
|
+
z-index: 9;
|
|
48
|
+
}
|
|
49
|
+
`}
|
|
50
|
+
&:hover, &:focus {
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.1);
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
const SpanText = exports.SpanText = _styledComponents.default.span`
|
|
56
|
+
`;
|
|
57
|
+
const CancelClick = exports.CancelClick = _styledComponents.default.span`
|
|
58
|
+
display: inherit;
|
|
59
|
+
font-family: "Lato", sans-serif;;
|
|
60
|
+
font-size: 14px;
|
|
61
|
+
color: #568202;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
margin-top: 5px;
|
|
64
|
+
`;
|
|
@@ -5,13 +5,126 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.StyledInput = exports.MainContainer = exports.Label = exports.InputSubContainer = exports.InputContainer = exports.IconWrapper = exports.ErrorMessage = 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
|
-
|
|
17
|
-
|
|
9
|
+
const MainContainer = exports.MainContainer = _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: ${props => props.size === 'small' ? '8px' : '12px'};
|
|
21
|
+
padding: 0;
|
|
22
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'default'};
|
|
23
|
+
`;
|
|
24
|
+
const Label = exports.Label = _styledComponents.default.label`
|
|
25
|
+
|
|
26
|
+
font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
|
|
27
|
+
font-weight: 400;
|
|
28
|
+
padding-inline-end: 5px;
|
|
29
|
+
padding-inline-start: 5px;
|
|
30
|
+
margin-right: 10px;
|
|
31
|
+
z-index: 2;
|
|
32
|
+
color: ${props => props.error ? 'red' : props.disabled ? '#D0D0D0' : props.labelColor};
|
|
33
|
+
background-color: white;
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: ${props => props.isFocused || props.hasValue ? '0px' : props.size === 'medium' ? '27px' : '17px'};
|
|
36
|
+
left: ${props => props.isFocused || props.hasValue ? '23px' : props.leftIcon && props.leftIcon !== 'none' ? '42px' : '16px'};
|
|
37
|
+
font-family: Poppins;
|
|
38
|
+
transform: translateY(-50%);
|
|
39
|
+
transition: top 0.3s ease, font-size 0.3s ease, color 0.3s ease;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
max-height: 16px;
|
|
44
|
+
gap: 4px;
|
|
45
|
+
&:hover {
|
|
46
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
const InputContainer = exports.InputContainer = _styledComponents.default.div`
|
|
50
|
+
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: row;
|
|
53
|
+
flex-wrap: nowrap;
|
|
54
|
+
justify-content: flex-start;
|
|
55
|
+
align-content: center;
|
|
56
|
+
white-space: pre-wrap;
|
|
57
|
+
align-items: center;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
padding: 0 16px;
|
|
60
|
+
gap: 14px;
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: 100%;
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
background-color: #fff;
|
|
65
|
+
border: 1px solid ${props => props.disabled ? '#D0D0D0' : props.error ? 'red' : '#B1B1B1'};
|
|
66
|
+
font-family: "Poppins", sans-serif;
|
|
67
|
+
font-weight: 400;
|
|
68
|
+
font-size: 14px;
|
|
69
|
+
border-radius: ${props => props.size === 'small' ? '8px' : '12px'};
|
|
70
|
+
outline: none;
|
|
71
|
+
color: ${props => props.disabled ? '#D0D0D0' : '#212121'};
|
|
72
|
+
|
|
73
|
+
&:hover {
|
|
74
|
+
border: 1px solid ${props => props.disabled ? '#D0D0D0' : props.error ? 'red' : props.labelColor || '#212121'};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:focus {
|
|
78
|
+
border: 1px solid ${props => props.disabled ? '#D0D0D0' : props.error ? 'red' : props.labelColor || '#212121'};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
`;
|
|
82
|
+
const InputSubContainer = exports.InputSubContainer = _styledComponents.default.div`
|
|
83
|
+
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
flex-wrap: nowrap;
|
|
87
|
+
align-content: center;
|
|
88
|
+
align-items: flex-start;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
white-space: pre-wrap;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
padding: 5px 0;
|
|
93
|
+
width: 100%;
|
|
94
|
+
height: 100%;
|
|
95
|
+
min-height: ${props => props.size === 'medium' ? '52px' : '32px'};
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
background-color: #fff;
|
|
98
|
+
border-radius: ${props => props.size === 'small' ? '8px' : '12px'};
|
|
99
|
+
outline: none;
|
|
100
|
+
color: ${props => props.disabled ? '#D0D0D0' : '#212121'};
|
|
101
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
102
|
+
`;
|
|
103
|
+
const StyledInput = exports.StyledInput = _styledComponents.default.input`
|
|
104
|
+
width: calc(100% - 10px);
|
|
105
|
+
height: 20px;
|
|
106
|
+
font-family: Poppins;
|
|
107
|
+
font-weight: 400;
|
|
108
|
+
font-size: 14px;
|
|
109
|
+
outline: none;
|
|
110
|
+
color: ${props => props.disabled ? '#D0D0D0' : '#212121'};
|
|
111
|
+
background-color: #fff;
|
|
112
|
+
border: none;
|
|
113
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
114
|
+
`;
|
|
115
|
+
const ErrorMessage = exports.ErrorMessage = _styledComponents.default.div`
|
|
116
|
+
font-size: 12px;
|
|
117
|
+
color: red;
|
|
118
|
+
margin-top: 5px;
|
|
119
|
+
max-width: ${props => props.width || '300px'};
|
|
120
|
+
`;
|
|
121
|
+
const IconWrapper = exports.IconWrapper = _styledComponents.default.div`
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
justify-content: center;
|
|
125
|
+
align-content: center;
|
|
126
|
+
padding: 2px;
|
|
127
|
+
&:hover{
|
|
128
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
129
|
+
}
|
|
130
|
+
`;
|
|
@@ -5,12 +5,65 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.StyledLabel = exports.StyledInput = exports.RequiredIndicator = exports.EyeIcon = exports.ErrorLabel = exports.Container = 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
|
-
const
|
|
9
|
+
const Container = exports.Container = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
margin-bottom: 20px;
|
|
12
|
+
width: ${props => props.width || '100%'};
|
|
13
|
+
height: ${props => props.height || '40px'};
|
|
14
|
+
`;
|
|
15
|
+
const StyledInput = exports.StyledInput = _styledComponents.default.input`
|
|
16
|
+
padding: 10px;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
border: 2px solid
|
|
19
|
+
${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColor || '#bdbdbd'};
|
|
20
|
+
border-radius: ${props => props.borderRadius || '4px'};
|
|
21
|
+
outline: none;
|
|
22
|
+
width: ${props => props.width || '100%'};
|
|
23
|
+
height: ${props => props.height || '40px'};
|
|
24
|
+
transition: border-color 0.3s ease;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
color: ${props => props.disabled ? '#888' : props.textColor || '#333'};
|
|
27
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
|
|
28
|
+
|
|
29
|
+
&:focus {
|
|
30
|
+
border-color: ${props => props.disabled ? '#bdbdbd' : props.borderColor || '#1976d2'};
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
const StyledLabel = exports.StyledLabel = _styledComponents.default.label`
|
|
34
|
+
font-size: ${props => props.isFocused || props.hasValue ? '12px' : '16px'};
|
|
35
|
+
padding-inline-end: 5px;
|
|
36
|
+
padding-inline-start: 5px;
|
|
37
|
+
margin-right: 10px;
|
|
38
|
+
color: ${props => props.disabled ? '#888' : props.textColor || '#333'};
|
|
39
|
+
background-color: white;
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: ${props => props.isFocused || props.hasValue ? '0px' : '50%'};
|
|
42
|
+
left: 10px;
|
|
43
|
+
transform: translateY(-50%);
|
|
44
|
+
transition: top 0.3s ease, font-size 0.3s ease;
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
`;
|
|
49
|
+
const RequiredIndicator = exports.RequiredIndicator = _styledComponents.default.span`
|
|
50
|
+
color: red;
|
|
51
|
+
margin-left: 5px;
|
|
52
|
+
`;
|
|
53
|
+
const EyeIcon = exports.EyeIcon = _styledComponents.default.div`
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 50%;
|
|
56
|
+
right: 10px;
|
|
57
|
+
transform: translateY(-50%);
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
color: ${props => props.textColor || '#888'};
|
|
60
|
+
|
|
61
|
+
&:hover {
|
|
62
|
+
color: ${props => props.textColor || '#333'};
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
const ErrorLabel = exports.ErrorLabel = _styledComponents.default.div`
|
|
66
|
+
font-size: 12px;
|
|
67
|
+
color: red;
|
|
68
|
+
margin-top: 5px;
|
|
69
|
+
`;
|
|
@@ -147,6 +147,21 @@ const KpiFilter = props => {
|
|
|
147
147
|
}
|
|
148
148
|
return false;
|
|
149
149
|
};
|
|
150
|
+
const setPeriodSelectAll = selectAllChecked => {
|
|
151
|
+
const periodCheckedArray = [];
|
|
152
|
+
const newPeriod = {
|
|
153
|
+
weeks4: selectAllChecked,
|
|
154
|
+
weeks8: selectAllChecked,
|
|
155
|
+
weeks13: selectAllChecked
|
|
156
|
+
};
|
|
157
|
+
setPeriodState(newPeriod);
|
|
158
|
+
if (selectAllChecked) {
|
|
159
|
+
periodCheckedArray.push('4 weeks', '8 weeks', '13 weeks');
|
|
160
|
+
}
|
|
161
|
+
onClickPeriod({
|
|
162
|
+
periodChecked: periodCheckedArray
|
|
163
|
+
});
|
|
164
|
+
};
|
|
150
165
|
const displayMainTitle = () => /*#__PURE__*/_react.default.createElement(_KpiFilter.MainTitleContainer, {
|
|
151
166
|
id: "MainTitleContainer"
|
|
152
167
|
}, /*#__PURE__*/_react.default.createElement(_KpiFilter.MainTitle, {
|
|
@@ -169,11 +184,13 @@ const KpiFilter = props => {
|
|
|
169
184
|
...itemColumn,
|
|
170
185
|
buttonsArray: (_itemColumn$buttonsAr4 = itemColumn.buttonsArray) === null || _itemColumn$buttonsAr4 === void 0 ? void 0 : _itemColumn$buttonsAr4.map(itemButton => ({
|
|
171
186
|
...itemButton,
|
|
172
|
-
checked: !isIncludedInIgnoreList(itemButton.label) ? propsSelectAll.checked : itemButton.checked
|
|
187
|
+
checked: !(isIncludedInIgnoreList(itemButton.label) || itemButton.checked && itemButton.disabled) ? propsSelectAll.checked : itemButton.checked,
|
|
188
|
+
secondButtonChecked: !(isIncludedInIgnoreList(itemButton.label) || itemButton.secondButtonChecked && itemButton.secondButtonDisabled) ? propsSelectAll.checked : itemButton.secondButtonChecked.checked
|
|
173
189
|
}))
|
|
174
190
|
};
|
|
175
191
|
});
|
|
176
192
|
setKpiDataState(newData);
|
|
193
|
+
setPeriodSelectAll(propsSelectAll.checked);
|
|
177
194
|
}
|
|
178
195
|
})));
|
|
179
196
|
const onClickPeriodHandler = checkBox => {
|