datastake-daf 0.6.315 → 0.6.317

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,7 +49370,7 @@ function Modal(_ref) {
49370
49370
 
49371
49371
  const Container$1 = dt.div`
49372
49372
  height: ${props => props.height || '300px'};
49373
- width: calc(100% - 48px);
49373
+ width: ${props => props.isPdf ? '1000px' : 'calc(100% - 48px)'};
49374
49374
  `;
49375
49375
 
49376
49376
  const _excluded$7 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isStack", "isGroup", "isPercentage", "seriesField", "formattedYAxis", "formattedXAxis", "color", "height", "t", "isPdf", "extraLegendConfig"];
@@ -49869,7 +49869,8 @@ function ColumnChart(_ref) {
49869
49869
  className: "flex justify-content-center",
49870
49870
  children: /*#__PURE__*/jsxRuntime.jsx(Container$1, {
49871
49871
  ref: containerRef,
49872
- height: height
49872
+ height: height,
49873
+ isPdf: isPdf
49873
49874
  })
49874
49875
  })
49875
49876
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.315",
3
+ "version": "0.6.317",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -459,6 +459,8 @@ export const Pdf = {
459
459
  shouldSeperateLegendName: true,
460
460
  },
461
461
  render: (args) => {
462
- return <ColumnChart {...args} />;
462
+ return <Widget title="Pdf Column Chart" className={"with-border-header"}>
463
+ <ColumnChart {...args} />
464
+ </Widget>;
463
465
  },
464
466
  }
@@ -200,7 +200,7 @@ export default function ColumnChart({
200
200
  return (
201
201
  <div className="flex flex-1 flex-column justify-content-center">
202
202
  <div className="flex justify-content-center">
203
- <Container ref={containerRef} height={height}></Container>
203
+ <Container ref={containerRef} height={height} isPdf={isPdf}></Container>
204
204
  </div>
205
205
  </div>
206
206
  );
@@ -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: calc(100% - 48px);
5
+ width: ${props => props.isPdf ? '1000px' : 'calc(100% - 48px)'};
6
6
  `;
7
7
 
8
8
  export default Container;
package/.env DELETED
@@ -1,8 +0,0 @@
1
- REACT_APP_API_KEY=
2
- REACT_APP_AUTH_DOMAIN=
3
- REACT_APP_PROJECT_ID=
4
- REACT_APP_STORAGE_BUCKED=
5
- REACT_APP_SENDER_ID=
6
- REACT_APP_APP_ID=
7
- REACT_APP_MEASUREMENT_ID=
8
- REACT_APP_VAPID_KEY=
@@ -1,13 +0,0 @@
1
- {
2
- "cSpell.words": ["cukura"],
3
- "files.autoSave": "afterDelay",
4
- "editor.wordWrap": "on",
5
- "editor.autoClosingBrackets": "always",
6
- "editor.autoClosingComments": "always",
7
- "editor.autoClosingQuotes": "always",
8
- "editor.defaultFormatter": "esbenp.prettier-vscode",
9
- "editor.formatOnPaste": true,
10
- "editor.formatOnSave": true,
11
- "notebook.defaultFormatter": "esbenp.prettier-vscode",
12
- "javascript.format.semicolons": "insert"
13
- }