sag_components 2.0.0-beta14 → 2.0.0-beta16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -645,67 +645,7 @@ declare function QuickFilter({ hoverColor, multipleSelection, xIconShow, disable
645
645
  selectedValue?: any[] | undefined;
646
646
  }): react_jsx_runtime.JSX.Element;
647
647
 
648
- declare function OneColumnContainer(props: any): react_jsx_runtime.JSX.Element;
649
- declare namespace OneColumnContainer {
650
- namespace propTypes {
651
- const children: PropTypes.Requireable<string>;
652
- const display: PropTypes.Requireable<string>;
653
- const isLoading: PropTypes.Requireable<boolean>;
654
- const gridTemplateColumns: PropTypes.Requireable<string>;
655
- const itemClass: PropTypes.Requireable<string>;
656
- const divStyle: PropTypes.Requireable<string>;
657
- const overStyle: PropTypes.Requireable<string>;
658
- const draggingStyle: PropTypes.Requireable<string>;
659
- const droppedStyle: PropTypes.Requireable<string>;
660
- const width: PropTypes.Requireable<string>;
661
- const height: PropTypes.Requireable<string>;
662
- const overflow: PropTypes.Requireable<string>;
663
- const infoTitle: PropTypes.Requireable<string>;
664
- const infoText: PropTypes.Requireable<string>;
665
- const disableInfo: PropTypes.Requireable<boolean>;
666
- const showViewByBannerButton: PropTypes.Requireable<boolean>;
667
- const onBannerClick: PropTypes.Requireable<(...args: any[]) => any>;
668
- const columnTitle: PropTypes.Requireable<string>;
669
- }
670
- namespace defaultProps {
671
- const children_1: string;
672
- export { children_1 as children };
673
- const display_1: string;
674
- export { display_1 as display };
675
- const isLoading_1: string;
676
- export { isLoading_1 as isLoading };
677
- const gridTemplateColumns_1: string;
678
- export { gridTemplateColumns_1 as gridTemplateColumns };
679
- const itemClass_1: string;
680
- export { itemClass_1 as itemClass };
681
- const divStyle_1: string;
682
- export { divStyle_1 as divStyle };
683
- const overStyle_1: string;
684
- export { overStyle_1 as overStyle };
685
- const draggingStyle_1: string;
686
- export { draggingStyle_1 as draggingStyle };
687
- const droppedStyle_1: string;
688
- export { droppedStyle_1 as droppedStyle };
689
- const width_1: string;
690
- export { width_1 as width };
691
- const height_1: string;
692
- export { height_1 as height };
693
- const overflow_1: string;
694
- export { overflow_1 as overflow };
695
- const infoTitle_1: string;
696
- export { infoTitle_1 as infoTitle };
697
- const infoText_1: string;
698
- export { infoText_1 as infoText };
699
- const disableInfo_1: boolean;
700
- export { disableInfo_1 as disableInfo };
701
- const showViewByBannerButton_1: boolean;
702
- export { showViewByBannerButton_1 as showViewByBannerButton };
703
- export function onBannerClick_1(): void;
704
- export { onBannerClick_1 as onBannerClick };
705
- const columnTitle_1: string;
706
- export { columnTitle_1 as columnTitle };
707
- }
708
- }
648
+ declare function OneColumnContainer(props: any): react_jsx_runtime.JSX.Element;
709
649
 
710
650
  declare function BarChartsByWeeks(props: any): react_jsx_runtime.JSX.Element;
711
651
  declare namespace BarChartsByWeeks {
@@ -1132,82 +1072,6 @@ declare namespace IconButton {
1132
1072
 
1133
1073
  declare function DoublePanelDataRow(props: any): react_jsx_runtime.JSX.Element;
1134
1074
 
1135
- declare function BarChart(props: any): react_jsx_runtime.JSX.Element;
1136
- declare namespace BarChart {
1137
- namespace propTypes {
1138
- const title: PropTypes.Requireable<string>;
1139
- const barChartData: PropTypes.Requireable<(PropTypes.InferProps<{
1140
- title: PropTypes.Requireable<string>;
1141
- date: PropTypes.Requireable<string>;
1142
- value: PropTypes.Requireable<number>;
1143
- }> | null | undefined)[]>;
1144
- const width: PropTypes.Requireable<string>;
1145
- const height: PropTypes.Requireable<string>;
1146
- const barSize: PropTypes.Requireable<number>;
1147
- const barFontSizeValue: PropTypes.Requireable<string>;
1148
- const barChartColor: PropTypes.Requireable<string>;
1149
- const showDollarSign: PropTypes.Requireable<boolean>;
1150
- const isDollar: PropTypes.Requireable<boolean>;
1151
- const showLegend: PropTypes.Requireable<boolean>;
1152
- const legendData: PropTypes.Requireable<(PropTypes.InferProps<{
1153
- title: PropTypes.Validator<string>;
1154
- iconType: PropTypes.Validator<string>;
1155
- iconColor: PropTypes.Validator<string>;
1156
- }> | null | undefined)[]>;
1157
- const showReferenceLine: PropTypes.Requireable<boolean>;
1158
- const referenceLinePoint: PropTypes.Requireable<number>;
1159
- const referenceLineColor: PropTypes.Requireable<string>;
1160
- const referenceLineDashed: PropTypes.Requireable<string>;
1161
- const showCurrentCampaignStyle: PropTypes.Requireable<boolean>;
1162
- const currentBarColor: PropTypes.Requireable<string>;
1163
- const isPercent: PropTypes.Requireable<boolean>;
1164
- }
1165
- namespace defaultProps {
1166
- const title_1: string;
1167
- export { title_1 as title };
1168
- const barChartData_1: {
1169
- title: string;
1170
- date: string;
1171
- value: number;
1172
- }[];
1173
- export { barChartData_1 as barChartData };
1174
- const width_1: string;
1175
- export { width_1 as width };
1176
- const height_1: string;
1177
- export { height_1 as height };
1178
- const barSize_1: number;
1179
- export { barSize_1 as barSize };
1180
- const barFontSizeValue_1: string;
1181
- export { barFontSizeValue_1 as barFontSizeValue };
1182
- const barChartColor_1: string;
1183
- export { barChartColor_1 as barChartColor };
1184
- const showDollarSign_1: boolean;
1185
- export { showDollarSign_1 as showDollarSign };
1186
- const isDollar_1: boolean;
1187
- export { isDollar_1 as isDollar };
1188
- const showLegend_1: boolean;
1189
- export { showLegend_1 as showLegend };
1190
- const legendData_1: {
1191
- title: string;
1192
- iconType: string;
1193
- iconColor: string;
1194
- }[];
1195
- export { legendData_1 as legendData };
1196
- const showReferenceLine_1: boolean;
1197
- export { showReferenceLine_1 as showReferenceLine };
1198
- const referenceLinePoint_1: number;
1199
- export { referenceLinePoint_1 as referenceLinePoint };
1200
- const referenceLineColor_1: string;
1201
- export { referenceLineColor_1 as referenceLineColor };
1202
- const referenceLineDashed_1: string;
1203
- export { referenceLineDashed_1 as referenceLineDashed };
1204
- const showCurrentCampaignStyle_1: boolean;
1205
- export { showCurrentCampaignStyle_1 as showCurrentCampaignStyle };
1206
- const currentBarColor_1: string;
1207
- export { currentBarColor_1 as currentBarColor };
1208
- const isPercent_1: boolean;
1209
- export { isPercent_1 as isPercent };
1210
- }
1211
- }
1075
+ declare function BarChart(props: any): react_jsx_runtime.JSX.Element;
1212
1076
 
1213
1077
  export { BannerEventBoxList, BarChart, BarChartsByWeeks, Button, CollapseHeader, DialogOverlay, DoublePanelDataRow, EventDetailsCard, EventList, FilterPanel, Heatmap, IconButton, LinnerDataBox, MarketShareDescription, OneColumnContainer, PieChart, PopupCharts, QuickFilter, ReportTable, TabMenu, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts };
package/dist/index.esm.js CHANGED
@@ -14238,13 +14238,16 @@ const Td = dt.td`
14238
14238
  `;
14239
14239
  const Tr = dt.tr`
14240
14240
  border-bottom: 1px solid #f3f4f6;
14241
- ${({
14242
- enableHover,
14243
- selectHoverColor
14244
- }) => enableHover && `&:hover {
14241
+ ${_ref => {
14242
+ let {
14243
+ enableHover,
14244
+ selectHoverColor
14245
+ } = _ref;
14246
+ return enableHover && `&:hover {
14245
14247
  background-color: ${selectHoverColor};
14246
14248
  cursor: pointer;
14247
- }`}
14249
+ }`;
14250
+ }}
14248
14251
  `;
14249
14252
  const InfoText = dt.div`
14250
14253
  font-weight: 400;
@@ -27349,46 +27352,6 @@ const OneColumnContainer = props => {
27349
27352
  containerClassName: "avatar-skeleton"
27350
27353
  })))));
27351
27354
  };
27352
- OneColumnContainer.propTypes = {
27353
- children: PropTypes.string,
27354
- display: PropTypes.string,
27355
- isLoading: PropTypes.bool,
27356
- gridTemplateColumns: PropTypes.string,
27357
- itemClass: PropTypes.string,
27358
- divStyle: PropTypes.string,
27359
- overStyle: PropTypes.string,
27360
- draggingStyle: PropTypes.string,
27361
- droppedStyle: PropTypes.string,
27362
- width: PropTypes.string,
27363
- height: PropTypes.string,
27364
- overflow: PropTypes.string,
27365
- infoTitle: PropTypes.string,
27366
- infoText: PropTypes.string,
27367
- disableInfo: PropTypes.bool,
27368
- showViewByBannerButton: PropTypes.bool,
27369
- onBannerClick: PropTypes.func,
27370
- columnTitle: PropTypes.string
27371
- };
27372
- OneColumnContainer.defaultProps = {
27373
- children: '',
27374
- display: 'block',
27375
- isLoading: '',
27376
- gridTemplateColumns: '',
27377
- itemClass: '',
27378
- divStyle: '',
27379
- overStyle: '',
27380
- draggingStyle: '',
27381
- droppedStyle: '',
27382
- width: '300px',
27383
- height: '300px',
27384
- overflow: 'hidden',
27385
- infoTitle: '',
27386
- infoText: '',
27387
- disableInfo: false,
27388
- showViewByBannerButton: false,
27389
- onBannerClick: () => {},
27390
- columnTitle: ''
27391
- };
27392
27355
 
27393
27356
  const scrollableStyles$3 = `
27394
27357
  overflow-y: auto;
@@ -27726,9 +27689,9 @@ const LegendColorRectangle$1 = dt.div`
27726
27689
  `;
27727
27690
 
27728
27691
  /* eslint-disable no-nested-ternary */
27729
- const ICON_TYPE_SQUARE$2 = 'Square';
27730
- const ICON_TYPE_LEGEND_UNION_ICON$2 = 'LegendUnionIcon';
27731
- const ICON_TYPE_LEGEND_LINE_ICON$2 = 'LegendLineIcon';
27692
+ const ICON_TYPE_SQUARE$1 = 'Square';
27693
+ const ICON_TYPE_LEGEND_UNION_ICON$1 = 'LegendUnionIcon';
27694
+ const ICON_TYPE_LEGEND_LINE_ICON$1 = 'LegendLineIcon';
27732
27695
  const PerformanceAnalyticsLegend = props => {
27733
27696
  const {
27734
27697
  className,
@@ -27747,13 +27710,13 @@ const PerformanceAnalyticsLegend = props => {
27747
27710
  id: "LegendDataContainer"
27748
27711
  }, legendData?.map((item, i) => /*#__PURE__*/React$1.createElement(TitleAndIconContainer, {
27749
27712
  key: `${item.title + i}`
27750
- }, item.iconType === ICON_TYPE_SQUARE$2 ? /*#__PURE__*/React$1.createElement(LegendColorRectangle$1, {
27713
+ }, item.iconType === ICON_TYPE_SQUARE$1 ? /*#__PURE__*/React$1.createElement(LegendColorRectangle$1, {
27751
27714
  color: item.iconColor
27752
- }) : item.iconType === ICON_TYPE_LEGEND_UNION_ICON$2 ? /*#__PURE__*/React$1.createElement(LegendUnionIcon, {
27715
+ }) : item.iconType === ICON_TYPE_LEGEND_UNION_ICON$1 ? /*#__PURE__*/React$1.createElement(LegendUnionIcon, {
27753
27716
  width: 30,
27754
27717
  height: 30,
27755
27718
  color: item.iconColor
27756
- }) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$2 ? /*#__PURE__*/React$1.createElement(LegendLineIcon, {
27719
+ }) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$1 ? /*#__PURE__*/React$1.createElement(LegendLineIcon, {
27757
27720
  color: item.iconColor
27758
27721
  }) : '', /*#__PURE__*/React$1.createElement(Title$7, {
27759
27722
  id: "Title",
@@ -27766,7 +27729,7 @@ PerformanceAnalyticsLegend.propTypes = {
27766
27729
  height: PropTypes.string,
27767
27730
  legendData: PropTypes.arrayOf(PropTypes.shape({
27768
27731
  title: PropTypes.string.isRequired,
27769
- iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$2, ICON_TYPE_LEGEND_UNION_ICON$2, ICON_TYPE_LEGEND_LINE_ICON$2]).isRequired,
27732
+ iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$1, ICON_TYPE_LEGEND_UNION_ICON$1, ICON_TYPE_LEGEND_LINE_ICON$1]).isRequired,
27770
27733
  iconColor: PropTypes.string.isRequired
27771
27734
  }))
27772
27735
  };
@@ -27776,15 +27739,15 @@ PerformanceAnalyticsLegend.defaultProps = {
27776
27739
  height: '',
27777
27740
  legendData: [{
27778
27741
  title: '',
27779
- iconType: ICON_TYPE_SQUARE$2,
27742
+ iconType: ICON_TYPE_SQUARE$1,
27780
27743
  iconColor: '#1F7677'
27781
27744
  }]
27782
27745
  };
27783
27746
 
27784
27747
  /* eslint-disable no-nested-ternary */
27785
- const ICON_TYPE_SQUARE$1 = 'Square';
27786
- const ICON_TYPE_LEGEND_UNION_ICON$1 = 'LegendUnionIcon';
27787
- const ICON_TYPE_LEGEND_LINE_ICON$1 = 'LegendLineIcon';
27748
+ const ICON_TYPE_SQUARE = 'Square';
27749
+ const ICON_TYPE_LEGEND_UNION_ICON = 'LegendUnionIcon';
27750
+ const ICON_TYPE_LEGEND_LINE_ICON = 'LegendLineIcon';
27788
27751
  const BarChartsByWeeks = props => {
27789
27752
  const {
27790
27753
  className,
@@ -28025,7 +27988,7 @@ BarChartsByWeeks.propTypes = {
28025
27988
  showLegend: PropTypes.bool,
28026
27989
  legendData: PropTypes.arrayOf(PropTypes.shape({
28027
27990
  title: PropTypes.string.isRequired,
28028
- iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$1, ICON_TYPE_LEGEND_UNION_ICON$1, ICON_TYPE_LEGEND_LINE_ICON$1]).isRequired,
27991
+ iconType: PropTypes.oneOf([ICON_TYPE_SQUARE, ICON_TYPE_LEGEND_UNION_ICON, ICON_TYPE_LEGEND_LINE_ICON]).isRequired,
28029
27992
  iconColor: PropTypes.string.isRequired
28030
27993
  })),
28031
27994
  showTwoBars: PropTypes.bool,
@@ -28089,11 +28052,11 @@ BarChartsByWeeks.defaultProps = {
28089
28052
  isTitleOriganal: false,
28090
28053
  legendData: [{
28091
28054
  title: 'Sales',
28092
- iconType: ICON_TYPE_SQUARE$1,
28055
+ iconType: ICON_TYPE_SQUARE,
28093
28056
  iconColor: '#90CE9C'
28094
28057
  }, {
28095
28058
  title: 'Category Average',
28096
- iconType: ICON_TYPE_LEGEND_LINE_ICON$1,
28059
+ iconType: ICON_TYPE_LEGEND_LINE_ICON,
28097
28060
  iconColor: '#C906FD'
28098
28061
  }],
28099
28062
  showTwoBars: false,
@@ -30305,9 +30268,6 @@ const LabelText = dt.tspan`
30305
30268
  `;
30306
30269
 
30307
30270
  /* eslint-disable react/prop-types */
30308
- const ICON_TYPE_SQUARE = 'Square';
30309
- const ICON_TYPE_LEGEND_UNION_ICON = 'LegendUnionIcon';
30310
- const ICON_TYPE_LEGEND_LINE_ICON = 'LegendLineIcon';
30311
30271
 
30312
30272
  /* BarCharts */
30313
30273
  const BarChart = props => {
@@ -30503,78 +30463,76 @@ const BarChart = props => {
30503
30463
  legendData: legendData
30504
30464
  })));
30505
30465
  };
30506
- BarChart.propTypes = {
30507
- title: PropTypes.string,
30508
- barChartData: PropTypes.arrayOf(PropTypes.shape({
30509
- title: PropTypes.string,
30510
- date: PropTypes.string,
30511
- value: PropTypes.number
30512
- })),
30513
- width: PropTypes.string,
30514
- height: PropTypes.string,
30515
- barSize: PropTypes.number,
30516
- barFontSizeValue: PropTypes.string,
30517
- barChartColor: PropTypes.string,
30518
- showDollarSign: PropTypes.bool,
30519
- isDollar: PropTypes.bool,
30520
- showLegend: PropTypes.bool,
30521
- legendData: PropTypes.arrayOf(PropTypes.shape({
30522
- title: PropTypes.string.isRequired,
30523
- iconType: PropTypes.oneOf([ICON_TYPE_SQUARE, ICON_TYPE_LEGEND_UNION_ICON, ICON_TYPE_LEGEND_LINE_ICON]).isRequired,
30524
- iconColor: PropTypes.string.isRequired
30525
- })),
30526
- showReferenceLine: PropTypes.bool,
30527
- referenceLinePoint: PropTypes.number,
30528
- referenceLineColor: PropTypes.string,
30529
- referenceLineDashed: PropTypes.string,
30530
- showCurrentCampaignStyle: PropTypes.bool,
30531
- currentBarColor: PropTypes.string,
30532
- isPercent: PropTypes.bool
30533
- };
30534
- BarChart.defaultProps = {
30535
- title: 'String',
30536
- barChartData: [{
30537
- title: 'Food Lion',
30538
- date: '15.01.24-31.01.24',
30539
- value: 542366
30540
- }, {
30541
- title: 'Hannaford',
30542
- date: '15.01.24-31.01.24',
30543
- value: 699511
30544
- }, {
30545
- title: 'The Giant Company',
30546
- date: '15.01.24-31.01.24',
30547
- value: 403092
30548
- }, {
30549
- title: 'Giant Food',
30550
- date: '15.01.24-31.01.24',
30551
- value: 396184
30552
- }, {
30553
- title: 'Stop&Shop',
30554
- date: '15.01.24-31.01.24',
30555
- value: 415317
30556
- }],
30557
- width: '100%',
30558
- height: '100%',
30559
- barSize: 60,
30560
- barFontSizeValue: '0.6em',
30561
- barChartColor: '#BD9EFF',
30562
- showDollarSign: true,
30563
- isDollar: true,
30564
- showLegend: true,
30565
- legendData: [{
30566
- title: 'Incremental Sales',
30567
- iconType: ICON_TYPE_SQUARE,
30568
- iconColor: '#BD9EFF'
30569
- }],
30570
- showReferenceLine: false,
30571
- referenceLinePoint: 0,
30572
- referenceLineColor: '#212121',
30573
- referenceLineDashed: '5',
30574
- showCurrentCampaignStyle: false,
30575
- currentBarColor: '#90CE9C',
30576
- isPercent: false
30577
- };
30466
+
30467
+ // BarChart.propTypes = {
30468
+ // title: PropTypes.string,
30469
+ // barChartData: PropTypes.arrayOf(
30470
+ // PropTypes.shape({
30471
+ // title: PropTypes.string,
30472
+ // date: PropTypes.string,
30473
+ // value: PropTypes.number,
30474
+ // }),
30475
+ // ),
30476
+ // width: PropTypes.string,
30477
+ // height: PropTypes.string,
30478
+ // barSize: PropTypes.number,
30479
+ // barFontSizeValue: PropTypes.string,
30480
+ // barChartColor: PropTypes.string,
30481
+ // showDollarSign: PropTypes.bool,
30482
+ // isDollar: PropTypes.bool,
30483
+ // showLegend: PropTypes.bool,
30484
+ // legendData: PropTypes.arrayOf(
30485
+ // PropTypes.shape({
30486
+ // title: PropTypes.string.isRequired,
30487
+ // iconType: PropTypes.oneOf([
30488
+ // ICON_TYPE_SQUARE,
30489
+ // ICON_TYPE_LEGEND_UNION_ICON,
30490
+ // ICON_TYPE_LEGEND_LINE_ICON,
30491
+ // ]).isRequired,
30492
+ // iconColor: PropTypes.string.isRequired,
30493
+ // }),
30494
+ // ),
30495
+ // showReferenceLine: PropTypes.bool,
30496
+ // referenceLinePoint: PropTypes.number,
30497
+ // referenceLineColor: PropTypes.string,
30498
+ // referenceLineDashed: PropTypes.string,
30499
+ // showCurrentCampaignStyle: PropTypes.bool,
30500
+ // currentBarColor: PropTypes.string,
30501
+ // isPercent: PropTypes.bool,
30502
+ // };
30503
+
30504
+ // BarChart.defaultProps = {
30505
+ // title: 'String',
30506
+ // barChartData: [
30507
+ // { title: 'Food Lion', date: '15.01.24-31.01.24', value: 542366 },
30508
+ // { title: 'Hannaford', date: '15.01.24-31.01.24', value: 699511 },
30509
+ // { title: 'The Giant Company', date: '15.01.24-31.01.24', value: 403092 },
30510
+ // { title: 'Giant Food', date: '15.01.24-31.01.24', value: 396184 },
30511
+ // { title: 'Stop&Shop', date: '15.01.24-31.01.24', value: 415317 },
30512
+ // ],
30513
+ // width: '100%',
30514
+ // height: '100%',
30515
+ // barSize: 60,
30516
+ // barFontSizeValue: '0.6em',
30517
+ // barChartColor: '#BD9EFF',
30518
+ // showDollarSign: true,
30519
+ // isDollar: true,
30520
+ // showLegend: true,
30521
+ // legendData: [
30522
+ // {
30523
+ // title: 'Incremental Sales',
30524
+ // iconType: ICON_TYPE_SQUARE,
30525
+ // iconColor: '#BD9EFF',
30526
+ // },
30527
+ // ],
30528
+ // showReferenceLine: false,
30529
+ // referenceLinePoint: 0,
30530
+ // referenceLineColor: '#212121',
30531
+ // referenceLineDashed: '5',
30532
+ // showCurrentCampaignStyle: false,
30533
+ // currentBarColor: '#90CE9C',
30534
+ // isPercent: false,
30535
+ // };
30578
30536
 
30579
30537
  export { BannerEventBoxList, BarChart, BarChartsByWeeks, Button, CollapseHeader, DialogOverlay, DoublePanelDataRow, EventDetailsCard, EventList, FilterPanel, Heatmap, IconButton, LinnerDataBox, MarketShareDescription, OneColumnContainer, PieChart, PopupCharts, QuickFilter, ReportTable, TabMenu, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts };
30580
30538
  //# sourceMappingURL=index.esm.js.map