datastake-daf 0.6.317 → 0.6.318

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.
@@ -49370,10 +49370,10 @@ function Modal(_ref) {
49370
49370
 
49371
49371
  const Container$1 = dt.div`
49372
49372
  height: ${props => props.height || '300px'};
49373
- width: ${props => props.isPdf ? '1000px' : 'calc(100% - 48px)'};
49373
+ width: ${props => props.isPdf ? props.width ? props.width : '1000px' : 'calc(100% - 48px)'};
49374
49374
  `;
49375
49375
 
49376
- const _excluded$7 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isStack", "isGroup", "isPercentage", "seriesField", "formattedYAxis", "formattedXAxis", "color", "height", "t", "isPdf", "extraLegendConfig"];
49376
+ const _excluded$7 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isStack", "isGroup", "isPercentage", "seriesField", "formattedYAxis", "formattedXAxis", "color", "height", "t", "isPdf", "extraLegendConfig", "width"];
49377
49377
  const {
49378
49378
  useToken: useToken$e
49379
49379
  } = antd.theme;
@@ -49459,7 +49459,8 @@ function BarChart(_ref) {
49459
49459
  height,
49460
49460
  t = s => s,
49461
49461
  isPdf = false,
49462
- extraLegendConfig = {}
49462
+ extraLegendConfig = {},
49463
+ width
49463
49464
  } = _ref;
49464
49465
  _objectWithoutProperties(_ref, _excluded$7);
49465
49466
  const containerRef = React__default["default"].useRef(null);
@@ -49527,13 +49528,15 @@ function BarChart(_ref) {
49527
49528
  className: "flex justify-content-center",
49528
49529
  children: /*#__PURE__*/jsxRuntime.jsx(Container$1, {
49529
49530
  ref: containerRef,
49530
- height: height
49531
+ height: height,
49532
+ isPdf: isPdf,
49533
+ width: width
49531
49534
  })
49532
49535
  })
49533
49536
  });
49534
49537
  }
49535
49538
 
49536
- const _excluded$6 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isSmooth", "seriesField", "isArea", "formattedYAxis", "formattedXAxis", "color", "isPercentage", "height", "autoHideXLabel", "t", "isPdf", "extraLegendConfig"];
49539
+ const _excluded$6 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isSmooth", "seriesField", "isArea", "formattedYAxis", "formattedXAxis", "color", "isPercentage", "height", "autoHideXLabel", "t", "isPdf", "extraLegendConfig", "width"];
49537
49540
  const {
49538
49541
  useToken: useToken$d
49539
49542
  } = antd.theme;
@@ -49617,7 +49620,8 @@ function LineChart(_ref) {
49617
49620
  autoHideXLabel = true,
49618
49621
  t = s => s,
49619
49622
  isPdf = false,
49620
- extraLegendConfig = {}
49623
+ extraLegendConfig = {},
49624
+ width
49621
49625
  } = _ref;
49622
49626
  _objectWithoutProperties(_ref, _excluded$6);
49623
49627
  const containerRef = React__default["default"].useRef(null);
@@ -49697,13 +49701,15 @@ function LineChart(_ref) {
49697
49701
  className: "flex justify-content-center",
49698
49702
  children: /*#__PURE__*/jsxRuntime.jsx(Container$1, {
49699
49703
  ref: containerRef,
49700
- height: height
49704
+ height: height,
49705
+ isPdf: isPdf,
49706
+ width: width
49701
49707
  })
49702
49708
  })
49703
49709
  });
49704
49710
  }
49705
49711
 
49706
- const _excluded$5 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isStack", "isGroup", "seriesField", "isPercentage", "showBackground", "formattedYAxis", "formattedXAxis", "color", "height", "groupField", "t", "isPdf", "extraLegendConfig", "shouldSeperateLegendName"];
49712
+ const _excluded$5 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isStack", "isGroup", "seriesField", "isPercentage", "showBackground", "formattedYAxis", "formattedXAxis", "color", "height", "groupField", "t", "isPdf", "extraLegendConfig", "shouldSeperateLegendName", "width"];
49707
49713
  const {
49708
49714
  useToken: useToken$c
49709
49715
  } = antd.theme;
@@ -49791,7 +49797,8 @@ function ColumnChart(_ref) {
49791
49797
  t = s => s,
49792
49798
  isPdf = false,
49793
49799
  extraLegendConfig = {},
49794
- shouldSeperateLegendName = false
49800
+ shouldSeperateLegendName = false,
49801
+ width
49795
49802
  } = _ref;
49796
49803
  _objectWithoutProperties(_ref, _excluded$5);
49797
49804
  const containerRef = React__default["default"].useRef(null);
@@ -49870,7 +49877,8 @@ function ColumnChart(_ref) {
49870
49877
  children: /*#__PURE__*/jsxRuntime.jsx(Container$1, {
49871
49878
  ref: containerRef,
49872
49879
  height: height,
49873
- isPdf: isPdf
49880
+ isPdf: isPdf,
49881
+ width: width
49874
49882
  })
49875
49883
  })
49876
49884
  });
@@ -50173,7 +50181,8 @@ function DonutPie(_ref) {
50173
50181
  ref: containerRef,
50174
50182
  style: {
50175
50183
  height
50176
- }
50184
+ },
50185
+ isPdf: isPdf
50177
50186
  })
50178
50187
  })
50179
50188
  });
@@ -50572,7 +50581,7 @@ function StackChart(_ref) {
50572
50581
  }));
50573
50582
  }
50574
50583
 
50575
- const _excluded$3 = ["data", "xFieldKey", "yFieldKey", "seriesField", "renderTooltipContent", "tooltipConfig", "animated", "color", "formattedYAxis", "formattedXAxis", "fillOpacity", "height", "t", "isPdf", "extraLegendConfig"];
50584
+ const _excluded$3 = ["data", "xFieldKey", "yFieldKey", "seriesField", "renderTooltipContent", "tooltipConfig", "animated", "color", "formattedYAxis", "formattedXAxis", "fillOpacity", "height", "t", "isPdf", "extraLegendConfig", "width"];
50576
50585
  const {
50577
50586
  useToken: useToken$8
50578
50587
  } = antd.theme;
@@ -50646,7 +50655,8 @@ const AreaChart = _ref => {
50646
50655
  height,
50647
50656
  t = s => s,
50648
50657
  isPdf = false,
50649
- extraLegendConfig = {}
50658
+ extraLegendConfig = {},
50659
+ width
50650
50660
  } = _ref,
50651
50661
  rest = _objectWithoutProperties(_ref, _excluded$3);
50652
50662
  const containerRef = React.useRef(null);
@@ -50718,7 +50728,9 @@ const AreaChart = _ref => {
50718
50728
  className: "flex justify-content-center",
50719
50729
  children: /*#__PURE__*/jsxRuntime.jsx(Container$1, {
50720
50730
  ref: containerRef,
50721
- height: height
50731
+ height: height,
50732
+ isPdf: isPdf,
50733
+ width: width
50722
50734
  })
50723
50735
  })
50724
50736
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.317",
3
+ "version": "0.6.318",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -75,6 +75,7 @@ const AreaChart = ({
75
75
  t = (s) => s,
76
76
  isPdf = false,
77
77
  extraLegendConfig = {},
78
+ width,
78
79
  ...rest
79
80
  }) => {
80
81
  const containerRef = useRef(null);
@@ -168,7 +169,7 @@ const AreaChart = ({
168
169
  return (
169
170
  <div className="flex flex-1 flex-column justify-content-center">
170
171
  <div className="flex justify-content-center">
171
- <Container ref={containerRef} height={height}></Container>
172
+ <Container ref={containerRef} height={height} isPdf={isPdf} width={width}></Container>
172
173
  </div>
173
174
  </div>
174
175
  );
@@ -87,6 +87,7 @@ export default function BarChart({
87
87
  t = (s) => s,
88
88
  isPdf = false,
89
89
  extraLegendConfig = {},
90
+ width,
90
91
  ...rest
91
92
  }) {
92
93
  const containerRef = React.useRef(null);
@@ -181,7 +182,7 @@ export default function BarChart({
181
182
  return (
182
183
  <div className="flex flex-1 flex-column justify-content-center">
183
184
  <div className="flex justify-content-center">
184
- <Container ref={containerRef} height={height}></Container>
185
+ <Container ref={containerRef} height={height} isPdf={isPdf} width={width}></Container>
185
186
  </div>
186
187
  </div>
187
188
  );
@@ -90,6 +90,7 @@ export default function ColumnChart({
90
90
  isPdf = false,
91
91
  extraLegendConfig = {},
92
92
  shouldSeperateLegendName = false,
93
+ width,
93
94
  ...rest
94
95
  }) {
95
96
  const containerRef = React.useRef(null);
@@ -200,7 +201,7 @@ export default function ColumnChart({
200
201
  return (
201
202
  <div className="flex flex-1 flex-column justify-content-center">
202
203
  <div className="flex justify-content-center">
203
- <Container ref={containerRef} height={height} isPdf={isPdf}></Container>
204
+ <Container ref={containerRef} height={height} isPdf={isPdf} width={width}></Container>
204
205
  </div>
205
206
  </div>
206
207
  );
@@ -166,7 +166,7 @@ export default function DonutPie({
166
166
  return (
167
167
  <div className="flex flex-1 flex-column justify-content-center">
168
168
  <div className="flex justify-content-center">
169
- <Container ref={containerRef} style={{ height }} />
169
+ <Container ref={containerRef} style={{ height }} isPdf={isPdf} />
170
170
  </div>
171
171
  </div>
172
172
  );
@@ -85,6 +85,7 @@ export default function LineChart({
85
85
  t = (s) => s,
86
86
  isPdf = false,
87
87
  extraLegendConfig = {},
88
+ width,
88
89
  ...rest
89
90
  }) {
90
91
  const containerRef = React.useRef(null);
@@ -195,7 +196,7 @@ export default function LineChart({
195
196
  return (
196
197
  <div className="flex flex-1 flex-column justify-content-center">
197
198
  <div className="flex justify-content-center">
198
- <Container ref={containerRef} height={height}></Container>
199
+ <Container ref={containerRef} height={height} isPdf={isPdf} width={width}></Container>
199
200
  </div>
200
201
  </div>
201
202
  );
@@ -2,7 +2,7 @@ import styled from "styled-components";
2
2
 
3
3
  const Container = styled.div`
4
4
  height: ${props => props.height || '300px'};
5
- width: ${props => props.isPdf ? '1000px' : 'calc(100% - 48px)'};
5
+ width: ${props => props.isPdf ? (props.width ? props.width : '1000px') : 'calc(100% - 48px)'};
6
6
  `;
7
7
 
8
8
  export default Container;