sag_components 2.0.0-beta15 → 2.0.0-beta17

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.js CHANGED
@@ -11699,67 +11699,70 @@ const DropdownMain = dt.div`
11699
11699
  `;
11700
11700
 
11701
11701
  /* eslint-disable react/prop-types */
11702
- const DropdownNew = ({
11703
- isMulti,
11704
- label,
11705
- labelEmptyValue,
11706
- options,
11707
- selectedValue,
11708
- placeHolder,
11709
- onChange,
11710
- required,
11711
- disabled,
11712
- width,
11713
- error,
11714
- errorMessage,
11715
- labelColor,
11716
- checkBoxColor,
11717
- xIconShow,
11718
- showLabelOnTop,
11719
- orderBy,
11720
- elementType
11721
- }) => /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
11722
- className: "DropdownMain",
11723
- width: width
11724
- }, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
11725
- className: "DropdownMultiNew",
11726
- placeHolder: placeHolder,
11727
- label: label,
11728
- labelEmptyValue: labelEmptyValue,
11729
- labelColor: labelColor,
11730
- checkBoxColor: checkBoxColor,
11731
- required: required,
11732
- options: options,
11733
- width: width,
11734
- disabled: disabled,
11735
- error: error,
11736
- errorMessage: errorMessage,
11737
- selectedValue: selectedValue,
11738
- xIconShow: xIconShow,
11739
- onChange: onChange,
11740
- showLabelOnTop: showLabelOnTop,
11741
- orderBy: orderBy,
11742
- elementType: elementType
11743
- }) : /*#__PURE__*/React__default["default"].createElement(DropdownSingleNew, {
11744
- className: "DropdownSingleNew",
11745
- placeHolder: placeHolder,
11746
- label: label,
11747
- labelEmptyValue: labelEmptyValue,
11748
- labelColor: labelColor,
11749
- checkBoxColor: checkBoxColor,
11750
- required: required,
11751
- options: options,
11752
- width: width,
11753
- disabled: disabled,
11754
- error: error,
11755
- errorMessage: errorMessage,
11756
- selectedValue: selectedValue,
11757
- xIconShow: xIconShow,
11758
- onChange: onChange,
11759
- showLabelOnTop: showLabelOnTop,
11760
- orderBy: orderBy,
11761
- elementType: elementType
11762
- }));
11702
+ const DropdownNew = _ref => {
11703
+ let {
11704
+ isMulti,
11705
+ label,
11706
+ labelEmptyValue,
11707
+ options,
11708
+ selectedValue,
11709
+ placeHolder,
11710
+ onChange,
11711
+ required,
11712
+ disabled,
11713
+ width,
11714
+ error,
11715
+ errorMessage,
11716
+ labelColor,
11717
+ checkBoxColor,
11718
+ xIconShow,
11719
+ showLabelOnTop,
11720
+ orderBy,
11721
+ elementType
11722
+ } = _ref;
11723
+ return /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
11724
+ className: "DropdownMain",
11725
+ width: width
11726
+ }, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
11727
+ className: "DropdownMultiNew",
11728
+ placeHolder: placeHolder,
11729
+ label: label,
11730
+ labelEmptyValue: labelEmptyValue,
11731
+ labelColor: labelColor,
11732
+ checkBoxColor: checkBoxColor,
11733
+ required: required,
11734
+ options: options,
11735
+ width: width,
11736
+ disabled: disabled,
11737
+ error: error,
11738
+ errorMessage: errorMessage,
11739
+ selectedValue: selectedValue,
11740
+ xIconShow: xIconShow,
11741
+ onChange: onChange,
11742
+ showLabelOnTop: showLabelOnTop,
11743
+ orderBy: orderBy,
11744
+ elementType: elementType
11745
+ }) : /*#__PURE__*/React__default["default"].createElement(DropdownSingleNew, {
11746
+ className: "DropdownSingleNew",
11747
+ placeHolder: placeHolder,
11748
+ label: label,
11749
+ labelEmptyValue: labelEmptyValue,
11750
+ labelColor: labelColor,
11751
+ checkBoxColor: checkBoxColor,
11752
+ required: required,
11753
+ options: options,
11754
+ width: width,
11755
+ disabled: disabled,
11756
+ error: error,
11757
+ errorMessage: errorMessage,
11758
+ selectedValue: selectedValue,
11759
+ xIconShow: xIconShow,
11760
+ onChange: onChange,
11761
+ showLabelOnTop: showLabelOnTop,
11762
+ orderBy: orderBy,
11763
+ elementType: elementType
11764
+ }));
11765
+ };
11763
11766
  DropdownNew.propTypes = {
11764
11767
  placeHolder: PropTypes.string,
11765
11768
  label: PropTypes.string,
@@ -12173,20 +12176,21 @@ const DatePicker = ({
12173
12176
  };
12174
12177
 
12175
12178
  /* eslint-disable import/no-extraneous-dependencies */
12176
- const RangePicker = ({
12177
- label,
12178
- onChange,
12179
- borderRadius,
12180
- required,
12181
- width,
12182
- height,
12183
- placeholder,
12184
- disabled,
12185
- borderColor,
12186
- borderColorFocus,
12187
- textColor,
12188
- selectedValue
12189
- }) => {
12179
+ const RangePicker = _ref => {
12180
+ let {
12181
+ label,
12182
+ onChange,
12183
+ borderRadius,
12184
+ required,
12185
+ width,
12186
+ height,
12187
+ placeholder,
12188
+ disabled,
12189
+ borderColor,
12190
+ borderColorFocus,
12191
+ textColor,
12192
+ selectedValue
12193
+ } = _ref;
12190
12194
  const [isFocused, setIsFocused] = React$1.useState(false);
12191
12195
  const [isOpen, setIsOpen] = React$1.useState(false);
12192
12196
  const [value, setValue] = React$1.useState(''); // Added value state
@@ -12614,22 +12618,23 @@ const QuarterPopupPicker = ({
12614
12618
  };
12615
12619
 
12616
12620
  /* eslint-disable import/no-extraneous-dependencies */
12617
- const QuarterPicker = ({
12618
- availableQuarters,
12619
- // ["Q1-2024"]
12620
- label,
12621
- onChange,
12622
- borderRadius,
12623
- required,
12624
- width,
12625
- height,
12626
- placeholder,
12627
- disabled,
12628
- borderColor,
12629
- borderColorFocus,
12630
- textColor,
12631
- selectedValue
12632
- }) => {
12621
+ const QuarterPicker = _ref => {
12622
+ let {
12623
+ availableQuarters,
12624
+ // ["Q1-2024"]
12625
+ label,
12626
+ onChange,
12627
+ borderRadius,
12628
+ required,
12629
+ width,
12630
+ height,
12631
+ placeholder,
12632
+ disabled,
12633
+ borderColor,
12634
+ borderColorFocus,
12635
+ textColor,
12636
+ selectedValue
12637
+ } = _ref;
12633
12638
  const [isFocused, setIsFocused] = React$1.useState(false);
12634
12639
  const [isOpen, setIsOpen] = React$1.useState(false);
12635
12640
  const [value, setValue] = React$1.useState('');
@@ -13066,21 +13071,22 @@ const MonthPopupPicker = ({
13066
13071
  };
13067
13072
 
13068
13073
  /* eslint-disable import/no-extraneous-dependencies */
13069
- const MonthPicker = ({
13070
- availableMonths,
13071
- label,
13072
- onChange,
13073
- borderRadius,
13074
- required,
13075
- width,
13076
- height,
13077
- placeholder,
13078
- disabled,
13079
- borderColor,
13080
- borderColorFocus,
13081
- textColor,
13082
- selectedValue
13083
- }) => {
13074
+ const MonthPicker = _ref => {
13075
+ let {
13076
+ availableMonths,
13077
+ label,
13078
+ onChange,
13079
+ borderRadius,
13080
+ required,
13081
+ width,
13082
+ height,
13083
+ placeholder,
13084
+ disabled,
13085
+ borderColor,
13086
+ borderColorFocus,
13087
+ textColor,
13088
+ selectedValue
13089
+ } = _ref;
13084
13090
  const [isFocused, setIsFocused] = React$1.useState(false);
13085
13091
  const [isOpen, setIsOpen] = React$1.useState(false);
13086
13092
  const [value, setValue] = React$1.useState('');
@@ -26992,23 +26998,23 @@ const QuickFilterMain = dt.div`
26992
26998
  border-radius: 10px;
26993
26999
  `;
26994
27000
 
26995
- const QuickFilter = _ref => {
26996
- let {
26997
- hoverColor = "#066768",
26998
- multipleSelection = false,
26999
- xIconShow = false,
27000
- disabled = false,
27001
- error = false,
27002
- errorMessage = "",
27003
- label = "Unit Type:",
27004
- labelColor = "#066768",
27005
- placeHolder = "Select From List",
27006
- width = "auto",
27007
- checkBoxColor = "#229E38",
27008
- onChange = event => {},
27009
- options = [],
27010
- selectedValue = []
27011
- } = _ref;
27001
+ const QuickFilter = props => {
27002
+ const {
27003
+ hoverColor,
27004
+ multipleSelection,
27005
+ xIconShow,
27006
+ disabled,
27007
+ error,
27008
+ errorMessage,
27009
+ label,
27010
+ labelColor,
27011
+ placeHolder,
27012
+ width,
27013
+ checkBoxColor,
27014
+ onChange,
27015
+ options,
27016
+ selectedValue
27017
+ } = props;
27012
27018
  return /*#__PURE__*/React.createElement(QuickFilterMain, {
27013
27019
  width: width,
27014
27020
  className: "QuickFilterMain"
@@ -27698,9 +27704,9 @@ const LegendColorRectangle$1 = dt.div`
27698
27704
  `;
27699
27705
 
27700
27706
  /* eslint-disable no-nested-ternary */
27701
- const ICON_TYPE_SQUARE$2 = 'Square';
27702
- const ICON_TYPE_LEGEND_UNION_ICON$2 = 'LegendUnionIcon';
27703
- const ICON_TYPE_LEGEND_LINE_ICON$2 = 'LegendLineIcon';
27707
+ const ICON_TYPE_SQUARE$1 = 'Square';
27708
+ const ICON_TYPE_LEGEND_UNION_ICON$1 = 'LegendUnionIcon';
27709
+ const ICON_TYPE_LEGEND_LINE_ICON$1 = 'LegendLineIcon';
27704
27710
  const PerformanceAnalyticsLegend = props => {
27705
27711
  const {
27706
27712
  className,
@@ -27719,13 +27725,13 @@ const PerformanceAnalyticsLegend = props => {
27719
27725
  id: "LegendDataContainer"
27720
27726
  }, legendData?.map((item, i) => /*#__PURE__*/React__default["default"].createElement(TitleAndIconContainer, {
27721
27727
  key: `${item.title + i}`
27722
- }, item.iconType === ICON_TYPE_SQUARE$2 ? /*#__PURE__*/React__default["default"].createElement(LegendColorRectangle$1, {
27728
+ }, item.iconType === ICON_TYPE_SQUARE$1 ? /*#__PURE__*/React__default["default"].createElement(LegendColorRectangle$1, {
27723
27729
  color: item.iconColor
27724
- }) : item.iconType === ICON_TYPE_LEGEND_UNION_ICON$2 ? /*#__PURE__*/React__default["default"].createElement(LegendUnionIcon, {
27730
+ }) : item.iconType === ICON_TYPE_LEGEND_UNION_ICON$1 ? /*#__PURE__*/React__default["default"].createElement(LegendUnionIcon, {
27725
27731
  width: 30,
27726
27732
  height: 30,
27727
27733
  color: item.iconColor
27728
- }) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$2 ? /*#__PURE__*/React__default["default"].createElement(LegendLineIcon, {
27734
+ }) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$1 ? /*#__PURE__*/React__default["default"].createElement(LegendLineIcon, {
27729
27735
  color: item.iconColor
27730
27736
  }) : '', /*#__PURE__*/React__default["default"].createElement(Title$7, {
27731
27737
  id: "Title",
@@ -27738,7 +27744,7 @@ PerformanceAnalyticsLegend.propTypes = {
27738
27744
  height: PropTypes.string,
27739
27745
  legendData: PropTypes.arrayOf(PropTypes.shape({
27740
27746
  title: PropTypes.string.isRequired,
27741
- iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$2, ICON_TYPE_LEGEND_UNION_ICON$2, ICON_TYPE_LEGEND_LINE_ICON$2]).isRequired,
27747
+ iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$1, ICON_TYPE_LEGEND_UNION_ICON$1, ICON_TYPE_LEGEND_LINE_ICON$1]).isRequired,
27742
27748
  iconColor: PropTypes.string.isRequired
27743
27749
  }))
27744
27750
  };
@@ -27748,15 +27754,15 @@ PerformanceAnalyticsLegend.defaultProps = {
27748
27754
  height: '',
27749
27755
  legendData: [{
27750
27756
  title: '',
27751
- iconType: ICON_TYPE_SQUARE$2,
27757
+ iconType: ICON_TYPE_SQUARE$1,
27752
27758
  iconColor: '#1F7677'
27753
27759
  }]
27754
27760
  };
27755
27761
 
27756
27762
  /* eslint-disable no-nested-ternary */
27757
- const ICON_TYPE_SQUARE$1 = 'Square';
27758
- const ICON_TYPE_LEGEND_UNION_ICON$1 = 'LegendUnionIcon';
27759
- const ICON_TYPE_LEGEND_LINE_ICON$1 = 'LegendLineIcon';
27763
+ const ICON_TYPE_SQUARE = 'Square';
27764
+ const ICON_TYPE_LEGEND_UNION_ICON = 'LegendUnionIcon';
27765
+ const ICON_TYPE_LEGEND_LINE_ICON = 'LegendLineIcon';
27760
27766
  const BarChartsByWeeks = props => {
27761
27767
  const {
27762
27768
  className,
@@ -27997,7 +28003,7 @@ BarChartsByWeeks.propTypes = {
27997
28003
  showLegend: PropTypes.bool,
27998
28004
  legendData: PropTypes.arrayOf(PropTypes.shape({
27999
28005
  title: PropTypes.string.isRequired,
28000
- iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$1, ICON_TYPE_LEGEND_UNION_ICON$1, ICON_TYPE_LEGEND_LINE_ICON$1]).isRequired,
28006
+ iconType: PropTypes.oneOf([ICON_TYPE_SQUARE, ICON_TYPE_LEGEND_UNION_ICON, ICON_TYPE_LEGEND_LINE_ICON]).isRequired,
28001
28007
  iconColor: PropTypes.string.isRequired
28002
28008
  })),
28003
28009
  showTwoBars: PropTypes.bool,
@@ -28061,11 +28067,11 @@ BarChartsByWeeks.defaultProps = {
28061
28067
  isTitleOriganal: false,
28062
28068
  legendData: [{
28063
28069
  title: 'Sales',
28064
- iconType: ICON_TYPE_SQUARE$1,
28070
+ iconType: ICON_TYPE_SQUARE,
28065
28071
  iconColor: '#90CE9C'
28066
28072
  }, {
28067
28073
  title: 'Category Average',
28068
- iconType: ICON_TYPE_LEGEND_LINE_ICON$1,
28074
+ iconType: ICON_TYPE_LEGEND_LINE_ICON,
28069
28075
  iconColor: '#C906FD'
28070
28076
  }],
28071
28077
  showTwoBars: false,
@@ -30277,9 +30283,6 @@ const LabelText = dt.tspan`
30277
30283
  `;
30278
30284
 
30279
30285
  /* eslint-disable react/prop-types */
30280
- const ICON_TYPE_SQUARE = 'Square';
30281
- const ICON_TYPE_LEGEND_UNION_ICON = 'LegendUnionIcon';
30282
- const ICON_TYPE_LEGEND_LINE_ICON = 'LegendLineIcon';
30283
30286
 
30284
30287
  /* BarCharts */
30285
30288
  const BarChart = props => {
@@ -30475,78 +30478,76 @@ const BarChart = props => {
30475
30478
  legendData: legendData
30476
30479
  })));
30477
30480
  };
30478
- BarChart.propTypes = {
30479
- title: PropTypes.string,
30480
- barChartData: PropTypes.arrayOf(PropTypes.shape({
30481
- title: PropTypes.string,
30482
- date: PropTypes.string,
30483
- value: PropTypes.number
30484
- })),
30485
- width: PropTypes.string,
30486
- height: PropTypes.string,
30487
- barSize: PropTypes.number,
30488
- barFontSizeValue: PropTypes.string,
30489
- barChartColor: PropTypes.string,
30490
- showDollarSign: PropTypes.bool,
30491
- isDollar: PropTypes.bool,
30492
- showLegend: PropTypes.bool,
30493
- legendData: PropTypes.arrayOf(PropTypes.shape({
30494
- title: PropTypes.string.isRequired,
30495
- iconType: PropTypes.oneOf([ICON_TYPE_SQUARE, ICON_TYPE_LEGEND_UNION_ICON, ICON_TYPE_LEGEND_LINE_ICON]).isRequired,
30496
- iconColor: PropTypes.string.isRequired
30497
- })),
30498
- showReferenceLine: PropTypes.bool,
30499
- referenceLinePoint: PropTypes.number,
30500
- referenceLineColor: PropTypes.string,
30501
- referenceLineDashed: PropTypes.string,
30502
- showCurrentCampaignStyle: PropTypes.bool,
30503
- currentBarColor: PropTypes.string,
30504
- isPercent: PropTypes.bool
30505
- };
30506
- BarChart.defaultProps = {
30507
- title: 'String',
30508
- barChartData: [{
30509
- title: 'Food Lion',
30510
- date: '15.01.24-31.01.24',
30511
- value: 542366
30512
- }, {
30513
- title: 'Hannaford',
30514
- date: '15.01.24-31.01.24',
30515
- value: 699511
30516
- }, {
30517
- title: 'The Giant Company',
30518
- date: '15.01.24-31.01.24',
30519
- value: 403092
30520
- }, {
30521
- title: 'Giant Food',
30522
- date: '15.01.24-31.01.24',
30523
- value: 396184
30524
- }, {
30525
- title: 'Stop&Shop',
30526
- date: '15.01.24-31.01.24',
30527
- value: 415317
30528
- }],
30529
- width: '100%',
30530
- height: '100%',
30531
- barSize: 60,
30532
- barFontSizeValue: '0.6em',
30533
- barChartColor: '#BD9EFF',
30534
- showDollarSign: true,
30535
- isDollar: true,
30536
- showLegend: true,
30537
- legendData: [{
30538
- title: 'Incremental Sales',
30539
- iconType: ICON_TYPE_SQUARE,
30540
- iconColor: '#BD9EFF'
30541
- }],
30542
- showReferenceLine: false,
30543
- referenceLinePoint: 0,
30544
- referenceLineColor: '#212121',
30545
- referenceLineDashed: '5',
30546
- showCurrentCampaignStyle: false,
30547
- currentBarColor: '#90CE9C',
30548
- isPercent: false
30549
- };
30481
+
30482
+ // BarChart.propTypes = {
30483
+ // title: PropTypes.string,
30484
+ // barChartData: PropTypes.arrayOf(
30485
+ // PropTypes.shape({
30486
+ // title: PropTypes.string,
30487
+ // date: PropTypes.string,
30488
+ // value: PropTypes.number,
30489
+ // }),
30490
+ // ),
30491
+ // width: PropTypes.string,
30492
+ // height: PropTypes.string,
30493
+ // barSize: PropTypes.number,
30494
+ // barFontSizeValue: PropTypes.string,
30495
+ // barChartColor: PropTypes.string,
30496
+ // showDollarSign: PropTypes.bool,
30497
+ // isDollar: PropTypes.bool,
30498
+ // showLegend: PropTypes.bool,
30499
+ // legendData: PropTypes.arrayOf(
30500
+ // PropTypes.shape({
30501
+ // title: PropTypes.string.isRequired,
30502
+ // iconType: PropTypes.oneOf([
30503
+ // ICON_TYPE_SQUARE,
30504
+ // ICON_TYPE_LEGEND_UNION_ICON,
30505
+ // ICON_TYPE_LEGEND_LINE_ICON,
30506
+ // ]).isRequired,
30507
+ // iconColor: PropTypes.string.isRequired,
30508
+ // }),
30509
+ // ),
30510
+ // showReferenceLine: PropTypes.bool,
30511
+ // referenceLinePoint: PropTypes.number,
30512
+ // referenceLineColor: PropTypes.string,
30513
+ // referenceLineDashed: PropTypes.string,
30514
+ // showCurrentCampaignStyle: PropTypes.bool,
30515
+ // currentBarColor: PropTypes.string,
30516
+ // isPercent: PropTypes.bool,
30517
+ // };
30518
+
30519
+ // BarChart.defaultProps = {
30520
+ // title: 'String',
30521
+ // barChartData: [
30522
+ // { title: 'Food Lion', date: '15.01.24-31.01.24', value: 542366 },
30523
+ // { title: 'Hannaford', date: '15.01.24-31.01.24', value: 699511 },
30524
+ // { title: 'The Giant Company', date: '15.01.24-31.01.24', value: 403092 },
30525
+ // { title: 'Giant Food', date: '15.01.24-31.01.24', value: 396184 },
30526
+ // { title: 'Stop&Shop', date: '15.01.24-31.01.24', value: 415317 },
30527
+ // ],
30528
+ // width: '100%',
30529
+ // height: '100%',
30530
+ // barSize: 60,
30531
+ // barFontSizeValue: '0.6em',
30532
+ // barChartColor: '#BD9EFF',
30533
+ // showDollarSign: true,
30534
+ // isDollar: true,
30535
+ // showLegend: true,
30536
+ // legendData: [
30537
+ // {
30538
+ // title: 'Incremental Sales',
30539
+ // iconType: ICON_TYPE_SQUARE,
30540
+ // iconColor: '#BD9EFF',
30541
+ // },
30542
+ // ],
30543
+ // showReferenceLine: false,
30544
+ // referenceLinePoint: 0,
30545
+ // referenceLineColor: '#212121',
30546
+ // referenceLineDashed: '5',
30547
+ // showCurrentCampaignStyle: false,
30548
+ // currentBarColor: '#90CE9C',
30549
+ // isPercent: false,
30550
+ // };
30550
30551
 
30551
30552
  exports.BannerEventBoxList = BannerEventBoxList;
30552
30553
  exports.BarChart = BarChart;