genesys-spark-chart-components 4.12.1-beta.1
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/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/cjs/genesys-chart-webcomponents.cjs.js +23 -0
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +140 -0
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +229 -0
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +135 -0
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +113 -0
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +143 -0
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +71953 -0
- package/dist/cjs/index-1e13a15f.js +1647 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/log-error-c46b4b4c.js +21 -0
- package/dist/cjs/usage-30f04ec3.js +208 -0
- package/dist/collection/collection-manifest.json +17 -0
- package/dist/collection/components/beta/gux-chart-column/gux-chart-column.css +13 -0
- package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +343 -0
- package/dist/collection/components/beta/gux-chart-column/gux-chart-column.locale.js +92 -0
- package/dist/collection/components/beta/gux-chart-column/tests/gux-column-chart.spec.js +22 -0
- package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.css +4 -0
- package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +575 -0
- package/dist/collection/components/beta/gux-chart-donut/tests/gux-chart-donut.spec.js +11 -0
- package/dist/collection/components/beta/gux-chart-line/gux-chart-line.css +4 -0
- package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +391 -0
- package/dist/collection/components/beta/gux-chart-line/gux-chart-line.locale.js +92 -0
- package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.e2e.js +17 -0
- package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.spec.js +22 -0
- package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.css +4 -0
- package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +284 -0
- package/dist/collection/components/beta/gux-chart-pie/tests/gux-chart-pie.spec.js +11 -0
- package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.css +4 -0
- package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +365 -0
- package/dist/collection/components/beta/gux-chart-scatter-plot/tests/gux-chart-scatter-plot.spec.js +33 -0
- package/dist/collection/components/beta/gux-visualization/gux-visualization.css +19 -0
- package/dist/collection/components/beta/gux-visualization/gux-visualization.js +143 -0
- package/dist/collection/components/beta/gux-visualization/gux-visualization.locale.js +92 -0
- package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.e2e.js +31 -0
- package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.spec.js +35 -0
- package/dist/collection/i18n/fetchResources.js +12 -0
- package/dist/collection/i18n/index.js +73 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/test/axeConfig.js +7 -0
- package/dist/collection/test/e2eTestUtils.js +20 -0
- package/dist/collection/test/jestMatcherUtils.js +1 -0
- package/dist/collection/test/setupAxeTests.js +75 -0
- package/dist/collection/test/setupTests.js +9 -0
- package/dist/collection/test/specTestUtils.js +10 -0
- package/dist/collection/utils/dom/get-closest-element.js +15 -0
- package/dist/collection/utils/error/log-error.js +6 -0
- package/dist/collection/utils/theme/color-palette.js +12 -0
- package/dist/collection/utils/tracking/usage.js +81 -0
- package/dist/collection/utils/tracking/usage.spec.js +121 -0
- package/dist/component-specs.json +187 -0
- package/dist/esm/genesys-chart-webcomponents.js +18 -0
- package/dist/esm/gux-chart-column-beta.entry.js +136 -0
- package/dist/esm/gux-chart-donut-beta.entry.js +225 -0
- package/dist/esm/gux-chart-line-beta.entry.js +131 -0
- package/dist/esm/gux-chart-pie-beta.entry.js +109 -0
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +139 -0
- package/dist/esm/gux-visualization-beta.entry.js +71949 -0
- package/dist/esm/index-701d93cf.js +1619 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +9 -0
- package/dist/esm/log-error-0fc61f6f.js +18 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/usage-61eee3bd.js +206 -0
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.css +1 -0
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.ar.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.cs.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.da.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.de.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.es-es.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.es.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.fi.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.fr-ca.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.fr.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.he.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.it.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.ja.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.ko.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.nl.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.no.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.pl.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.pt-br.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.pt-pt.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.ru.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.sv.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.th.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.tr.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.uk.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.zh-cn.json +1 -0
- package/dist/genesys-chart-webcomponents/i18n/genesys-webcomponents.i18n.zh-tw.json +1 -0
- package/dist/genesys-chart-webcomponents/index.esm.js +0 -0
- package/dist/genesys-chart-webcomponents/p-137f5b8f.entry.js +1 -0
- package/dist/genesys-chart-webcomponents/p-3e4b3dbc.js +2 -0
- package/dist/genesys-chart-webcomponents/p-82f0ea01.js +1 -0
- package/dist/genesys-chart-webcomponents/p-97c45977.js +1 -0
- package/dist/genesys-chart-webcomponents/p-b5179379.entry.js +1 -0
- package/dist/genesys-chart-webcomponents/p-b901e9e0.entry.js +11 -0
- package/dist/genesys-chart-webcomponents/p-c3aa8578.entry.js +1 -0
- package/dist/genesys-chart-webcomponents/p-d4a346df.entry.js +1 -0
- package/dist/genesys-chart-webcomponents/p-d9928f8c.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +21 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +11 -0
- package/dist/stencil-wrapper.js +58 -0
- package/dist/types/components/beta/gux-chart-column/gux-chart-column.d.ts +49 -0
- package/dist/types/components/beta/gux-chart-column/gux-chart-column.locale.d.ts +22 -0
- package/dist/types/components/beta/gux-chart-donut/gux-chart-donut.d.ts +34 -0
- package/dist/types/components/beta/gux-chart-line/gux-chart-line.d.ts +48 -0
- package/dist/types/components/beta/gux-chart-line/gux-chart-line.locale.d.ts +22 -0
- package/dist/types/components/beta/gux-chart-pie/gux-chart-pie.d.ts +23 -0
- package/dist/types/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.d.ts +52 -0
- package/dist/types/components/beta/gux-visualization/gux-visualization.d.ts +17 -0
- package/dist/types/components/beta/gux-visualization/gux-visualization.locale.d.ts +22 -0
- package/dist/types/components.d.ts +480 -0
- package/dist/types/i18n/fetchResources.d.ts +11 -0
- package/dist/types/i18n/index.d.ts +9 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +1671 -0
- package/dist/types/stencil-wrapper.d.ts +2 -0
- package/dist/types/test/axeConfig.d.ts +6 -0
- package/dist/types/test/e2eTestUtils.d.ts +9 -0
- package/dist/types/test/jestMatcherUtils.d.ts +8 -0
- package/dist/types/test/specTestUtils.d.ts +2 -0
- package/dist/types/typings.d.ts +4 -0
- package/dist/types/utils/dom/get-closest-element.d.ts +1 -0
- package/dist/types/utils/error/log-error.d.ts +2 -0
- package/dist/types/utils/theme/color-palette.d.ts +1 -0
- package/dist/types/utils/tracking/usage.d.ts +27 -0
- package/package.json +118 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { E2EPage } from '@stencil/core/testing';
|
|
2
|
+
export declare function a11yCheck(page: E2EPage, axeExclusions?: {
|
|
3
|
+
issueId: string;
|
|
4
|
+
target?: string;
|
|
5
|
+
exclusionReason: string;
|
|
6
|
+
}[], axeScanContext?: string): Promise<void>;
|
|
7
|
+
export declare function newSparkE2EPage({ html }: {
|
|
8
|
+
html: string;
|
|
9
|
+
}, lang?: string): Promise<E2EPage>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getClosestElement(selector: string, baseElement?: HTMLElement): Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VISUALIZATION_COLORS: string[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import NewRelicBrowser from 'new-relic-browser';
|
|
2
|
+
interface LibraryEvent {
|
|
3
|
+
name: 'spark-library';
|
|
4
|
+
metadata: {
|
|
5
|
+
majorVersion: string;
|
|
6
|
+
minorVersion: string;
|
|
7
|
+
fullVersion: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
interface ComponentMetadata {
|
|
11
|
+
variant?: string;
|
|
12
|
+
}
|
|
13
|
+
interface ActionMetadata {
|
|
14
|
+
[key: string]: string | number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Submits a component for tracking by NewRelic.
|
|
18
|
+
*/
|
|
19
|
+
export declare function trackComponent(element: HTMLElement, metadata?: ComponentMetadata): void;
|
|
20
|
+
export declare function trackAction(element: HTMLElement, action: string, actionMetadata?: ActionMetadata): void;
|
|
21
|
+
export declare function getVersionEvent(packageInfoVersion: string): LibraryEvent;
|
|
22
|
+
declare global {
|
|
23
|
+
interface Window {
|
|
24
|
+
newrelic?: typeof NewRelicBrowser;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "genesys-spark-chart-components",
|
|
3
|
+
"version": "4.12.1-beta.1",
|
|
4
|
+
"description": "Common chart webcomponents",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"main": "dist/stencil-wrapper.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "npm run clean && npm run i18n && npm run stencil && npm run build-wrapper",
|
|
12
|
+
"build-i18n": "./scripts/build-i18n.js",
|
|
13
|
+
"build-wrapper": "./scripts/wrap-stencil.js",
|
|
14
|
+
"check-a11y": "node ./scripts/check-a11y.mjs",
|
|
15
|
+
"check-readmes": "./scripts/check-readmes.sh",
|
|
16
|
+
"clean": "rm -r ./dist ./build || true",
|
|
17
|
+
"predev": "npm run i18n",
|
|
18
|
+
"dev": "npm run stencil.dev",
|
|
19
|
+
"eslint": "eslint --fix .",
|
|
20
|
+
"i18n": "npm run update-en-i18n && npm run build-i18n",
|
|
21
|
+
"lint-all": "npm-run-all \"stylelint\" \"eslint\" \"prettier\" \"prettier-package-json\"",
|
|
22
|
+
"lint-staged": "lint-staged",
|
|
23
|
+
"list-checked-a11y-components": "node scripts/list-checked-a11y-components.js",
|
|
24
|
+
"list-component-tracking": "./scripts/list-component-tracking.js",
|
|
25
|
+
"list-i18n-files": "./scripts/list-i18n-files.js",
|
|
26
|
+
"predev.public": "npm run predev",
|
|
27
|
+
"prepare": "npm run i18n",
|
|
28
|
+
"prettier": "prettier --log-level silent --ignore-unknown --write .",
|
|
29
|
+
"prettier-package-json": "prettier-package-json --write ./package.json",
|
|
30
|
+
"stencil": "stencil build --prod",
|
|
31
|
+
"stencil.dev": "stencil build --dev --watch --serve --no-open",
|
|
32
|
+
"stylelint": "stylelint --fix \"**/*.{css,html,scss}\"",
|
|
33
|
+
"test": "TZ=UTC stencil test --spec --e2e",
|
|
34
|
+
"test.ci": "TZ=UTC npm run test.ci.spec",
|
|
35
|
+
"test.ci.e2e": "TZ=UTC stencil test --e2e --max-workers=1",
|
|
36
|
+
"test.ci.spec": "TZ=UTC stencil test --spec --max-workers=1",
|
|
37
|
+
"test.e2e": "TZ=UTC stencil test --e2e",
|
|
38
|
+
"test.e2e.update-snapshot": "TZ=UTC stencil test --e2e --updateSnapshot",
|
|
39
|
+
"test.screenshot": "TZ=UTC stencil test --e2e --screenshot",
|
|
40
|
+
"test.unit": "TZ=UTC stencil build dev && stencil test --spec",
|
|
41
|
+
"test.unit.update-snapshot": "TZ=UTC stencil test --spec --updateSnapshot",
|
|
42
|
+
"test.update-snapshot": "TZ=UTC stencil test --spec --e2e --updateSnapshot",
|
|
43
|
+
"test.watch": "TZ=UTC stencil test --spec --e2e --watch",
|
|
44
|
+
"update-en-i18n": "./scripts/update-en-i18n.js",
|
|
45
|
+
"version-sync": "npm version --no-git-tag-version --allow-same-version"
|
|
46
|
+
},
|
|
47
|
+
"config": {
|
|
48
|
+
"commitizen": {
|
|
49
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"types": "dist/types/index.d.ts",
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"vega": "*",
|
|
55
|
+
"vega-embed": "*",
|
|
56
|
+
"vega-lite": "*"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@babel/core": "^7.23.2",
|
|
60
|
+
"@babel/preset-env": "^7.23.2",
|
|
61
|
+
"@stencil/core": "4.5.0",
|
|
62
|
+
"@stencil/react-output-target": "^0.5.3",
|
|
63
|
+
"@stencil/sass": "^3.0.7",
|
|
64
|
+
"@stencil/utils": "0.0.5",
|
|
65
|
+
"@types/jest": "^27.5.2",
|
|
66
|
+
"@types/new-relic-browser": "^0.1118.2",
|
|
67
|
+
"@types/puppeteer": "^5.4.7",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
|
69
|
+
"@typescript-eslint/parser": "^6.9.1",
|
|
70
|
+
"axe-core": "^4.8.2",
|
|
71
|
+
"axe-live": "^1.0.1",
|
|
72
|
+
"eslint": "^8.52.0",
|
|
73
|
+
"eslint-config-genesys-spark-components": "file:../../shared-configs/eslint-config-genesys-spark-components",
|
|
74
|
+
"eslint-config-prettier": "^8.10.0",
|
|
75
|
+
"file-loader": "^6.2.0",
|
|
76
|
+
"genesys-spark-tokens": "file:../genesys-spark-tokens",
|
|
77
|
+
"glob": "^10.3.0",
|
|
78
|
+
"handlebars": "^4.7.8",
|
|
79
|
+
"inquirer": "^9.2.7",
|
|
80
|
+
"jest": "^27.5.1",
|
|
81
|
+
"jest-cli": "^27.5.1",
|
|
82
|
+
"jest-config": "^27.5.1",
|
|
83
|
+
"jest-environment-node": "^27.5.1",
|
|
84
|
+
"jest-junit": "^13.2.0",
|
|
85
|
+
"jest-silent-reporter": "^0.5.0",
|
|
86
|
+
"jsdom": "^22.1.0",
|
|
87
|
+
"lint-staged": "^13.3.0",
|
|
88
|
+
"marked": "^4.3.0",
|
|
89
|
+
"node-fetch": "^3.3.2",
|
|
90
|
+
"npm-run-all": "^4.1.5",
|
|
91
|
+
"postcss-html": "^1.5.0",
|
|
92
|
+
"postcss-less": "^6.0.0",
|
|
93
|
+
"postcss-scss": "^4.0.9",
|
|
94
|
+
"prettier": "^3.0.3",
|
|
95
|
+
"prettier-config-genesys-spark-components": "file:../../shared-configs/prettier-config-genesys-spark-components",
|
|
96
|
+
"prettier-package-json": "^2.8.0",
|
|
97
|
+
"puppeteer": "^14.4.1",
|
|
98
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
99
|
+
"semver-sort": "^1.0.0",
|
|
100
|
+
"stylelint": "^15.11.0",
|
|
101
|
+
"stylelint-config-genesys-spark-components": "file:../../shared-configs/stylelint-config-genesys-spark-components",
|
|
102
|
+
"stylelint-config-html": "^1.1.0",
|
|
103
|
+
"stylelint-config-recess-order": "^4.3.0",
|
|
104
|
+
"stylelint-config-standard": "^34.0.0",
|
|
105
|
+
"stylelint-scss": "^5.3.0",
|
|
106
|
+
"ts-loader": "^9.5.0",
|
|
107
|
+
"typescript": "^4.9.5",
|
|
108
|
+
"xmldom": "^0.6.0"
|
|
109
|
+
},
|
|
110
|
+
"publishConfig": {
|
|
111
|
+
"registry": "https://registry.npmjs.org/"
|
|
112
|
+
},
|
|
113
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
114
|
+
"prettier": "prettier-config-genesys-spark-components",
|
|
115
|
+
"volta": {
|
|
116
|
+
"node": "18.16.1"
|
|
117
|
+
}
|
|
118
|
+
}
|