@elliemae/ds-dataviz 3.32.0-rc.1 → 3.32.0-rc.2

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.
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var React = __toESM(require("react"));
25
+ var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import_react = require("react");
27
+ var import__ = require("../index.js");
28
+ const closeButtonRef = (0, import_react.createRef)();
29
+ const testRequiredProps = {};
30
+ const testOptionalProps = {
31
+ xAxis: {
32
+ label: "x-axis",
33
+ type: "linear"
34
+ },
35
+ yAxis: {
36
+ label: "y-axis",
37
+ type: "linear"
38
+ }
39
+ };
40
+ const testPartialDefaults = {
41
+ series: [
42
+ {
43
+ data: [1, 2, 3, 4, 5],
44
+ name: "Series 1",
45
+ color: "red",
46
+ type: "line"
47
+ }
48
+ ]
49
+ };
50
+ const testPropsAsSyntax = {
51
+ ...testRequiredProps,
52
+ ...testOptionalProps,
53
+ ...testPartialDefaults
54
+ };
55
+ const testCompleteDefaults = {
56
+ series: [
57
+ {
58
+ data: [1, 2, 3, 4, 5],
59
+ name: "Series 1",
60
+ color: "red",
61
+ type: "line"
62
+ }
63
+ ]
64
+ };
65
+ const testExplicitDefinition = {
66
+ ...testRequiredProps,
67
+ ...testOptionalProps,
68
+ ...testCompleteDefaults
69
+ };
70
+ const testInferedTypeCompatibility = {
71
+ ...testRequiredProps,
72
+ ...testOptionalProps,
73
+ ...testCompleteDefaults
74
+ };
75
+ const testDefinitionAsConst = {
76
+ ...testRequiredProps,
77
+ ...testOptionalProps,
78
+ ...testCompleteDefaults
79
+ };
80
+ const ExampleUsageComponent = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
81
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Chart, { ...testExplicitDefinition }),
82
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Chart, { ...testInferedTypeCompatibility }),
83
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Chart, { ...testDefinitionAsConst }),
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
85
+ import__.Chart,
86
+ {
87
+ series: [
88
+ {
89
+ data: [1, 2, 3, 4, 5],
90
+ name: "Series 1",
91
+ color: "red",
92
+ type: "line"
93
+ }
94
+ ],
95
+ xAxis: {
96
+ label: "x-axis",
97
+ type: "linear"
98
+ },
99
+ yAxis: {
100
+ label: "y-axis",
101
+ type: "linear"
102
+ }
103
+ }
104
+ )
105
+ ] });
106
+ //# sourceMappingURL=typescript-toast-valid.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-toast-valid.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { createRef } from 'react';\nimport { Chart } from '../index.js';\nimport type { DSChartT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChartT.Props;\ntype ComponentPropsDefaultProps = DSChartT.DefaultProps;\ntype ComponentPropsOptionalProps = DSChartT.OptionalProps;\ntype ComponentPropsRequiredProps = DSChartT.RequiredProps;\n\nconst closeButtonRef = createRef<HTMLButtonElement>();\n\nconst testRequiredProps: ComponentPropsRequiredProps = {};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {\n xAxis: {\n label: 'x-axis',\n type: 'linear',\n },\n yAxis: {\n label: 'y-axis',\n type: 'linear',\n },\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {\n series: [\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ],\n};\n\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n series: [\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ],\n};\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <Chart {...testExplicitDefinition} />\n <Chart {...testInferedTypeCompatibility} />\n <Chart {...testDefinitionAsConst} />\n {/* works with inline values */}\n <Chart\n series={[\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ]}\n xAxis={{\n label: 'x-axis',\n type: 'linear',\n }}\n yAxis={{\n label: 'y-axis',\n type: 'linear',\n }}\n />\n </>\n);\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;AC8ErB;AA7EF,mBAA0B;AAC1B,eAAsB;AAStB,MAAM,qBAAiB,wBAA6B;AAEpD,MAAM,oBAAiD,CAAC;AAExD,MAAM,oBAAiD;AAAA,EACrD,OAAO;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AAAA,EACA,OAAO;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACF;AAIA,MAAM,sBAA2D;AAAA,EAC/D,QAAQ;AAAA,IACN;AAAA,MACE,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;AAAA,MACpB,MAAM;AAAA,MACN,OAAO;AAAA,MACP,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAEA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,uBAA6D;AAAA,EACjE,QAAQ;AAAA,IACN;AAAA,MACE,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;AAAA,MACpB,MAAM;AAAA,MACN,OAAO;AAAA,MACP,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAGA,MAAM,yBAA+C;AAAA,EACnD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,+BAA+B;AAAA,EACnC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,wBAAwB;AAAA,EAC5B,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,wBAAwB,MAC5B,4EAEE;AAAA,8CAAC,kBAAO,GAAG,wBAAwB;AAAA,EACnC,4CAAC,kBAAO,GAAG,8BAA8B;AAAA,EACzC,4CAAC,kBAAO,GAAG,uBAAuB;AAAA,EAElC;AAAA,IAAC;AAAA;AAAA,MACC,QAAQ;AAAA,QACN;AAAA,UACE,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;AAAA,UACpB,MAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAM;AAAA,QACR;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACL,OAAO;AAAA,QACP,MAAM;AAAA,MACR;AAAA,MACA,OAAO;AAAA,QACL,OAAO;AAAA,QACP,MAAM;AAAA,MACR;AAAA;AAAA,EACF;AAAA,GACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,83 @@
1
+ import * as React from "react";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { createRef } from "react";
4
+ import { Chart } from "../index.js";
5
+ const closeButtonRef = createRef();
6
+ const testRequiredProps = {};
7
+ const testOptionalProps = {
8
+ xAxis: {
9
+ label: "x-axis",
10
+ type: "linear"
11
+ },
12
+ yAxis: {
13
+ label: "y-axis",
14
+ type: "linear"
15
+ }
16
+ };
17
+ const testPartialDefaults = {
18
+ series: [
19
+ {
20
+ data: [1, 2, 3, 4, 5],
21
+ name: "Series 1",
22
+ color: "red",
23
+ type: "line"
24
+ }
25
+ ]
26
+ };
27
+ const testPropsAsSyntax = {
28
+ ...testRequiredProps,
29
+ ...testOptionalProps,
30
+ ...testPartialDefaults
31
+ };
32
+ const testCompleteDefaults = {
33
+ series: [
34
+ {
35
+ data: [1, 2, 3, 4, 5],
36
+ name: "Series 1",
37
+ color: "red",
38
+ type: "line"
39
+ }
40
+ ]
41
+ };
42
+ const testExplicitDefinition = {
43
+ ...testRequiredProps,
44
+ ...testOptionalProps,
45
+ ...testCompleteDefaults
46
+ };
47
+ const testInferedTypeCompatibility = {
48
+ ...testRequiredProps,
49
+ ...testOptionalProps,
50
+ ...testCompleteDefaults
51
+ };
52
+ const testDefinitionAsConst = {
53
+ ...testRequiredProps,
54
+ ...testOptionalProps,
55
+ ...testCompleteDefaults
56
+ };
57
+ const ExampleUsageComponent = () => /* @__PURE__ */ jsxs(Fragment, { children: [
58
+ /* @__PURE__ */ jsx(Chart, { ...testExplicitDefinition }),
59
+ /* @__PURE__ */ jsx(Chart, { ...testInferedTypeCompatibility }),
60
+ /* @__PURE__ */ jsx(Chart, { ...testDefinitionAsConst }),
61
+ /* @__PURE__ */ jsx(
62
+ Chart,
63
+ {
64
+ series: [
65
+ {
66
+ data: [1, 2, 3, 4, 5],
67
+ name: "Series 1",
68
+ color: "red",
69
+ type: "line"
70
+ }
71
+ ],
72
+ xAxis: {
73
+ label: "x-axis",
74
+ type: "linear"
75
+ },
76
+ yAxis: {
77
+ label: "y-axis",
78
+ type: "linear"
79
+ }
80
+ }
81
+ )
82
+ ] });
83
+ //# sourceMappingURL=typescript-toast-valid.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-toast-valid.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { createRef } from 'react';\nimport { Chart } from '../index.js';\nimport type { DSChartT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChartT.Props;\ntype ComponentPropsDefaultProps = DSChartT.DefaultProps;\ntype ComponentPropsOptionalProps = DSChartT.OptionalProps;\ntype ComponentPropsRequiredProps = DSChartT.RequiredProps;\n\nconst closeButtonRef = createRef<HTMLButtonElement>();\n\nconst testRequiredProps: ComponentPropsRequiredProps = {};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {\n xAxis: {\n label: 'x-axis',\n type: 'linear',\n },\n yAxis: {\n label: 'y-axis',\n type: 'linear',\n },\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {\n series: [\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ],\n};\n\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n series: [\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ],\n};\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <Chart {...testExplicitDefinition} />\n <Chart {...testInferedTypeCompatibility} />\n <Chart {...testDefinitionAsConst} />\n {/* works with inline values */}\n <Chart\n series={[\n {\n data: [1, 2, 3, 4, 5],\n name: 'Series 1',\n color: 'red',\n type: 'line',\n },\n ]}\n xAxis={{\n label: 'x-axis',\n type: 'linear',\n }}\n yAxis={{\n label: 'y-axis',\n type: 'linear',\n }}\n />\n </>\n);\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;AC8ErB,mBAEE,KAFF;AA7EF,SAAS,iBAAiB;AAC1B,SAAS,aAAa;AAStB,MAAM,iBAAiB,UAA6B;AAEpD,MAAM,oBAAiD,CAAC;AAEx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AAA,QACL,OAAO;AAAA,QACP,MAAM;AAAA,MACR;AAAA;AAAA,EACF;AAAA,GACF;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-dataviz",
3
- "version": "3.32.0-rc.1",
3
+ "version": "3.32.0-rc.2",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - DataViz",
6
6
  "files": [
@@ -41,18 +41,18 @@
41
41
  "d3-time": "~3.1.0",
42
42
  "resize-observer-polyfill": "~1.5.1",
43
43
  "uid": "~2.0.2",
44
- "@elliemae/ds-grid": "3.32.0-rc.1",
45
- "@elliemae/ds-props-helpers": "3.32.0-rc.1",
46
- "@elliemae/ds-system": "3.32.0-rc.1",
47
- "@elliemae/ds-utilities": "3.32.0-rc.1",
48
- "@elliemae/ds-popperjs": "3.32.0-rc.1"
44
+ "@elliemae/ds-grid": "3.32.0-rc.2",
45
+ "@elliemae/ds-popperjs": "3.32.0-rc.2",
46
+ "@elliemae/ds-props-helpers": "3.32.0-rc.2",
47
+ "@elliemae/ds-system": "3.32.0-rc.2",
48
+ "@elliemae/ds-utilities": "3.32.0-rc.2"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@elliemae/pui-cli": "~9.0.0-next.31",
52
52
  "@elliemae/pui-theme": "~2.7.0",
53
53
  "@types/d3": "~7.4.0",
54
54
  "styled-components": "~5.3.9",
55
- "@elliemae/ds-monorepo-devops": "3.32.0-rc.1"
55
+ "@elliemae/ds-monorepo-devops": "3.32.0-rc.2"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@elliemae/pui-theme": "~2.7.0",