genesys-spark-chart-components 4.155.1 → 4.156.0

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.
Files changed (54) hide show
  1. package/dist/cjs/color-palette-DguVB2fN.js +96 -0
  2. package/dist/cjs/genesys-chart-webcomponents.cjs.js +7 -8
  3. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +4 -7
  4. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +5 -8
  5. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +5 -8
  6. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +5 -8
  7. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +5 -8
  8. package/dist/cjs/gux-visualization-beta.cjs.entry.js +45549 -40654
  9. package/dist/cjs/{index-e390a39a.js → index-D32B1d05.js} +390 -304
  10. package/dist/cjs/loader.cjs.js +3 -6
  11. package/dist/collection/collection-manifest.json +1 -1
  12. package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +13 -10
  13. package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +19 -16
  14. package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +16 -14
  15. package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +9 -7
  16. package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +14 -12
  17. package/dist/collection/components/beta/gux-visualization/gux-visualization.js +2 -0
  18. package/dist/esm/color-palette-C3ohlwPT.js +91 -0
  19. package/dist/esm/genesys-chart-webcomponents.js +5 -5
  20. package/dist/esm/gux-chart-column-beta.entry.js +4 -5
  21. package/dist/esm/gux-chart-donut-beta.entry.js +5 -6
  22. package/dist/esm/gux-chart-line-beta.entry.js +5 -6
  23. package/dist/esm/gux-chart-pie-beta.entry.js +5 -6
  24. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +5 -6
  25. package/dist/esm/gux-visualization-beta.entry.js +45550 -40653
  26. package/dist/esm/{index-eabc38b4.js → index-7ILyl2XS.js} +387 -300
  27. package/dist/esm/loader.js +3 -4
  28. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
  29. package/dist/genesys-chart-webcomponents/p-49ac1324.entry.js +1 -0
  30. package/dist/genesys-chart-webcomponents/p-711e444a.entry.js +1 -0
  31. package/dist/genesys-chart-webcomponents/p-7352f717.entry.js +11 -0
  32. package/dist/genesys-chart-webcomponents/p-7ILyl2XS.js +2 -0
  33. package/dist/genesys-chart-webcomponents/{p-97417448.entry.js → p-97d9c60c.entry.js} +1 -1
  34. package/dist/genesys-chart-webcomponents/p-C3ohlwPT.js +1 -0
  35. package/dist/genesys-chart-webcomponents/{p-97297b0f.entry.js → p-af84a21b.entry.js} +1 -1
  36. package/dist/genesys-chart-webcomponents/p-d9b0ef63.entry.js +1 -0
  37. package/dist/types/components.d.ts +48 -0
  38. package/dist/types/stencil-public-runtime.d.ts +23 -1
  39. package/package.json +9 -14
  40. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  41. package/dist/cjs/color-palette-be056d9b.js +0 -224
  42. package/dist/esm/app-globals-0f993ce5.js +0 -3
  43. package/dist/esm/color-palette-02460f9e.js +0 -219
  44. package/dist/genesys-chart-webcomponents/p-04c23e5f.entry.js +0 -1
  45. package/dist/genesys-chart-webcomponents/p-1681d47e.entry.js +0 -1
  46. package/dist/genesys-chart-webcomponents/p-82be62e8.entry.js +0 -11
  47. package/dist/genesys-chart-webcomponents/p-90b67456.js +0 -1
  48. package/dist/genesys-chart-webcomponents/p-977a4087.js +0 -2
  49. package/dist/genesys-chart-webcomponents/p-d2cfd9f4.entry.js +0 -1
  50. package/dist/genesys-chart-webcomponents/p-e1255160.js +0 -1
  51. package/dist/loader/package.json +0 -11
  52. /package/dist/cjs/{log-error-8f448752.js → log-error-BMPVm36Q.js} +0 -0
  53. /package/dist/esm/{log-error-fbbfc3ab.js → log-error-nsqlWzyl.js} +0 -0
  54. /package/dist/genesys-chart-webcomponents/{p-23610106.js → p-nsqlWzyl.js} +0 -0
@@ -1,219 +0,0 @@
1
- const name = "genesys-spark-chart-components";
2
- const version = "4.155.1";
3
- const description = "Common chart webcomponents";
4
- const license = "MIT";
5
- const main = "dist/stencil-wrapper.js";
6
- const files = [
7
- "dist/"
8
- ];
9
- const scripts = {
10
- build: "npm run clean && npm run i18n && npm run copy-genesys-spark-utils && npm run stencil && npm run build-wrapper",
11
- "build-i18n": "./scripts/build-i18n.js",
12
- "build-wrapper": "./scripts/wrap-stencil.js",
13
- "check-a11y": "node ./scripts/check-a11y.mjs",
14
- "check-readmes": "./scripts/check-readmes.sh",
15
- clean: "rm -r ./dist ./build || true",
16
- "copy-genesys-spark-utils": "node ./scripts/copy-genesys-spark-utils.mjs",
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 --concurrent false",
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: "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --spec --e2e",
34
- "test.ci": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC npm run test.ci.spec",
35
- "test.ci.e2e": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --e2e --maxWorkers=1",
36
- "test.ci.spec": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --spec --maxWorkers=1",
37
- "test.e2e": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --e2e",
38
- "test.e2e.update-snapshot": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --e2e --updateSnapshot",
39
- "test.screenshot": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --e2e --screenshot",
40
- "test.unit": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil build dev && stencil test --spec",
41
- "test.unit.update-snapshot": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --spec --updateSnapshot",
42
- "test.update-snapshot": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --spec --e2e --updateSnapshot",
43
- "test.watch": "LANG='C.UTF-8' LC_ALL='C.UTF-8' 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
- const config = {
48
- commitizen: {
49
- path: "git-cz"
50
- }
51
- };
52
- const types = "dist/types/index.d.ts";
53
- const dependencies = {
54
- "@redsift/d3-rs-intl": "^0.4.0",
55
- vega: "5.31.0",
56
- "vega-embed": "6.29.0",
57
- "vega-lite": "5.23.0"
58
- };
59
- const devDependencies = {
60
- "@babel/core": "^7.27.4",
61
- "@babel/preset-env": "^7.27.2",
62
- "@stencil/core": "4.23.2",
63
- "@stencil/react-output-target": "^0.5.3",
64
- "@stencil/sass": "^3.2.1",
65
- "@types/jest": "^29.5.14",
66
- "@types/puppeteer": "^5.4.7",
67
- "axe-core": "^4.10.3",
68
- "axe-live": "^1.0.1",
69
- eslint: "^9.29.0",
70
- "eslint-config-genesys-spark-components": "file:../../shared-configs/eslint-config-genesys-spark-components",
71
- "file-loader": "^6.2.0",
72
- "genesys-spark-tokens": "file:../genesys-spark-tokens",
73
- glob: "^11.0.3",
74
- globals: "^16.2.0",
75
- handlebars: "^4.7.8",
76
- inquirer: "^12.6.3",
77
- jest: "^29.7.0",
78
- "jest-cli": "^29.7.0",
79
- "jest-config": "^29.7.0",
80
- "jest-environment-node": "^29.7.0",
81
- "jest-junit": "^16.0.0",
82
- "jest-silent-reporter": "^0.6.0",
83
- "lint-staged": "^16.1.2",
84
- "node-fetch": "^3.3.2",
85
- "npm-run-all": "^4.1.5",
86
- "postcss-html": "^1.8.0",
87
- "postcss-less": "^6.0.0",
88
- "postcss-scss": "^4.0.9",
89
- prettier: "^3.6.0",
90
- "prettier-config-genesys-spark-components": "file:../../shared-configs/prettier-config-genesys-spark-components",
91
- "prettier-package-json": "^2.8.0",
92
- puppeteer: "^14.4.1",
93
- "rollup-plugin-copy": "^3.5.0",
94
- "semver-sort": "^1.0.0",
95
- smob: "^1.5.0",
96
- stylelint: "^16.21.0",
97
- "stylelint-config-genesys-spark-components": "file:../../shared-configs/stylelint-config-genesys-spark-components",
98
- "stylelint-config-html": "^1.1.0",
99
- "stylelint-config-recess-order": "^7.1.0",
100
- "stylelint-config-standard": "^38.0.0",
101
- "stylelint-order": "^7.0.0",
102
- "stylelint-scss": "^6.12.1",
103
- "ts-loader": "^9.5.2",
104
- typescript: "5.5.4",
105
- xmldom: "^0.6.0"
106
- };
107
- const publishConfig = {
108
- registry: "https://registry.npmjs.org/"
109
- };
110
- const collection = "dist/collection/collection-manifest.json";
111
- const prettier = "prettier-config-genesys-spark-components";
112
- const volta = {
113
- node: "22.14.0"
114
- };
115
- const packageInfo = {
116
- name: name,
117
- version: version,
118
- description: description,
119
- license: license,
120
- main: main,
121
- files: files,
122
- scripts: scripts,
123
- config: config,
124
- types: types,
125
- dependencies: dependencies,
126
- devDependencies: devDependencies,
127
- publishConfig: publishConfig,
128
- collection: collection,
129
- prettier: prettier,
130
- volta: volta
131
- };
132
-
133
- // The number of actions to process every interval
134
- const ACTION_BATCH_SIZE = 20;
135
- const NR_LIMIT_INTERVAL = 30000; // 30s
136
- /**
137
- * A queue of events that should be tracked by NewRelic.
138
- * We initialize it with the library version to make sure that's always reported.
139
- */
140
- const actionQueue = [
141
- getVersionEvent(packageInfo.version)
142
- ];
143
- /**
144
- * Process the next batch items in the queue, set a timeout to recur.
145
- * We use a recurring timeout instead of an interval because it guarantees
146
- * a minimum of NR_LMIT_INTERVAL between batches, even if the browser is
147
- * held up by processing elsewhere.
148
- */
149
- function processActionQueue() {
150
- const newrelic = window.newrelic;
151
- if (!newrelic) {
152
- return;
153
- }
154
- for (let i = 0; i < ACTION_BATCH_SIZE; i++) {
155
- if (actionQueue.length == 0) {
156
- setTimeout(processActionQueue, NR_LIMIT_INTERVAL);
157
- return;
158
- }
159
- const action = actionQueue.shift();
160
- newrelic.addPageAction(action.name, Object.assign(Object.assign({}, action.metadata), { queueDepth: actionQueue.length }));
161
- }
162
- setTimeout(processActionQueue, NR_LIMIT_INTERVAL);
163
- }
164
- let trackingStarted = false;
165
- /**
166
- * Begin action processing loop if it hasn't started.
167
- */
168
- function ensureTracking() {
169
- if (!trackingStarted) {
170
- trackingStarted = true;
171
- processActionQueue();
172
- }
173
- }
174
- /**
175
- * Submits a component for tracking by NewRelic.
176
- */
177
- function trackComponent(element, metadata) {
178
- if (!window.newrelic) {
179
- return;
180
- }
181
- ensureTracking();
182
- // Ignore components in the shadow DOM of another component
183
- // e.g. Only track components used directly by the app
184
- if (!document.contains(element)) {
185
- return;
186
- }
187
- actionQueue.push({
188
- name: 'spark-component',
189
- metadata: Object.assign(Object.assign({}, metadata), { component: element.tagName.toLowerCase(), version: packageInfo.version })
190
- });
191
- }
192
- function getVersionEvent(packageInfoVersion) {
193
- const [major, minor, ...patch] = packageInfoVersion.split('.');
194
- return {
195
- name: 'spark-library',
196
- metadata: {
197
- fullVersion: `${major}.${minor}.${patch.join('.')}`,
198
- majorVersion: major,
199
- minorVersion: `${major}.${minor}`
200
- }
201
- };
202
- }
203
-
204
- const VISUALIZATION_COLORS = [
205
- '#203B73',
206
- '#1DA8B3',
207
- '#75A8FF',
208
- '#8452CF',
209
- '#B5B5EB',
210
- '#CC3EBE',
211
- '#5E5782',
212
- '#FF8FDD',
213
- '#868C1E',
214
- '#DDD933'
215
- ];
216
- const DEFAULT_LABEL_COLOR = '#596373';
217
- const DEFAULT_DOMAIN_COLOR = '#596373';
218
-
219
- export { DEFAULT_LABEL_COLOR as D, VISUALIZATION_COLORS as V, DEFAULT_DOMAIN_COLOR as a, trackComponent as t };
@@ -1 +0,0 @@
1
- import{r as t,h as e,g as i}from"./p-977a4087.js";import{V as a,t as s}from"./p-90b67456.js";import{l as r}from"./p-23610106.js";const o="category",h="value",n=class{constructor(e){t(this,e),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",config:{legend:{symbolType:"circle"}},encoding:{theta:{field:"value",type:"quantitative",stack:!0},color:{field:o,type:"nominal",scale:{range:a},legend:null},tooltip:{aggregate:"count",type:"quantitative"}},layer:[{mark:{type:"arc",outerRadius:80}},{mark:{type:"text",radius:90},encoding:{text:{field:h,type:"quantitative"}}}],view:{stroke:null}},this.legendPosition="right"}parseData(){this.outerRadius||r(this.root,"requires outer-radius");let t={};this.chartData&&(t={data:this.chartData}),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const e=this.colorFieldName||o;e&&(this.baseChartSpec.encoding.color.field=e);const i=this.legendTitle;i&&(this.baseChartSpec.encoding.color.title=i),this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:this.outerRadius}}];const a=this.labelRadius;a&&this.baseChartSpec.layer.push({mark:{type:"text",radius:a},encoding:{text:{field:this.labelField||h,type:"quantitative"}}});const s=Object.assign(this.baseChartSpec,t);this.visualizationSpec=s}componentWillLoad(){s(this.root),this.parseData()}render(){return e("gux-visualization-beta",{key:"b3049772a9d436bf4d6aa1b0e9ebe21a9d9e84e9",visualizationSpec:this.visualizationSpec})}get root(){return i(this)}static get watchers(){return{chartData:["parseData"]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_pie_beta}
@@ -1 +0,0 @@
1
- import{r as t,h as i,g as a}from"./p-977a4087.js";import{D as s,a as e,V as r,t as h}from"./p-90b67456.js";import{l as n}from"./p-23610106.js";const o=class{constructor(i){t(this,i),this.labelColor=s,this.domainColor=e,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",mark:{type:"bar"},config:{axis:{ticks:!1,titlePadding:8,labelColor:this.labelColor||s,domainColor:this.domainColor||e},axisX:{labelAngle:0},scale:{bandPaddingInner:.4,bandPaddingOuter:.4},legend:{symbolType:"circle"},bar:{color:r[0]}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},tooltip:{aggregate:"count",type:"quantitative"}}},this.legendPosition="right"}parseData(){this.xFieldName&&this.yFieldName||n(this.root,"requires x-field-name and y-field-name");let t={};this.chartData&&(t={data:this.chartData}),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=45),this.includeLegend&&(this.baseChartSpec.encoding.color={field:"category"}),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,a=this.yFieldName,s=this.xAxisTitle,e=this.yAxisTitle,h=this.legendTitle;if(this.chartLayers){const t=this.chartLayers.map((t=>({mark:"bar",transform:[{filter:{field:"series",equal:t}}],encoding:{x:{field:i,type:"nominal"},y:{field:a,type:"quantitative"}}})));this.baseChartSpec.layer=t}else i&&(this.baseChartSpec.encoding.x.field=i),a&&(this.baseChartSpec.encoding.y.field=a),s&&(this.baseChartSpec.encoding.x.title=s),e&&(this.baseChartSpec.encoding.y.title=e),h&&(this.baseChartSpec.encoding.color.title=h);const o=i;this.baseChartSpec.config.range={[o]:r};const l=Object.assign(this.baseChartSpec,t);this.visualizationSpec=l}componentWillLoad(){h(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"5bcc2fcee3bfb4905b9fdbb572593402531f960d",visualizationSpec:this.visualizationSpec})}get root(){return a(this)}static get watchers(){return{chartData:["parseData"]}}};o.style="gux-visualization-beta{height:fit-content;color:#2e394c;}gux-visualization-beta .mark-rect.layer_0_marks path{fill:url(#diagonalHatch0)}gux-visualization-beta .mark-rect.layer_1_marks path{fill:#1da8b3}";export{o as gux_chart_column_beta}