genesys-spark-chart-components 4.155.0 → 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.
- package/dist/cjs/color-palette-DguVB2fN.js +96 -0
- package/dist/cjs/genesys-chart-webcomponents.cjs.js +7 -8
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +4 -7
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +5 -8
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +5 -8
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +5 -8
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +5 -8
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +45549 -40654
- package/dist/cjs/{index-e390a39a.js → index-D32B1d05.js} +390 -304
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +13 -10
- package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +19 -16
- package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +16 -14
- package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +9 -7
- package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +14 -12
- package/dist/collection/components/beta/gux-visualization/gux-visualization.js +2 -0
- package/dist/esm/color-palette-C3ohlwPT.js +91 -0
- package/dist/esm/genesys-chart-webcomponents.js +5 -5
- package/dist/esm/gux-chart-column-beta.entry.js +4 -5
- package/dist/esm/gux-chart-donut-beta.entry.js +5 -6
- package/dist/esm/gux-chart-line-beta.entry.js +5 -6
- package/dist/esm/gux-chart-pie-beta.entry.js +5 -6
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +5 -6
- package/dist/esm/gux-visualization-beta.entry.js +45550 -40653
- package/dist/esm/{index-eabc38b4.js → index-7ILyl2XS.js} +387 -300
- package/dist/esm/loader.js +3 -4
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
- package/dist/genesys-chart-webcomponents/p-49ac1324.entry.js +1 -0
- package/dist/genesys-chart-webcomponents/p-711e444a.entry.js +1 -0
- package/dist/genesys-chart-webcomponents/p-7352f717.entry.js +11 -0
- package/dist/genesys-chart-webcomponents/p-7ILyl2XS.js +2 -0
- package/dist/genesys-chart-webcomponents/{p-19d6feca.entry.js → p-97d9c60c.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/p-C3ohlwPT.js +1 -0
- package/dist/genesys-chart-webcomponents/{p-4d99a574.entry.js → p-af84a21b.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/p-d9b0ef63.entry.js +1 -0
- package/dist/types/components.d.ts +48 -0
- package/dist/types/stencil-public-runtime.d.ts +23 -1
- package/package.json +13 -17
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/color-palette-d3da8bf7.js +0 -223
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/color-palette-a79b1aac.js +0 -218
- package/dist/genesys-chart-webcomponents/p-22c066a2.js +0 -1
- package/dist/genesys-chart-webcomponents/p-3c039745.entry.js +0 -1
- package/dist/genesys-chart-webcomponents/p-7e5fa729.entry.js +0 -11
- package/dist/genesys-chart-webcomponents/p-9617a5da.entry.js +0 -1
- package/dist/genesys-chart-webcomponents/p-977a4087.js +0 -2
- package/dist/genesys-chart-webcomponents/p-e1255160.js +0 -1
- package/dist/genesys-chart-webcomponents/p-ec37c345.entry.js +0 -1
- package/dist/loader/package.json +0 -11
- /package/dist/cjs/{log-error-8f448752.js → log-error-BMPVm36Q.js} +0 -0
- /package/dist/esm/{log-error-fbbfc3ab.js → log-error-nsqlWzyl.js} +0 -0
- /package/dist/genesys-chart-webcomponents/{p-23610106.js → p-nsqlWzyl.js} +0 -0
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
const name = "genesys-spark-chart-components";
|
|
2
|
-
const version = "4.155.0";
|
|
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": "^15.5.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.5.3",
|
|
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": "^6.1.0",
|
|
100
|
-
"stylelint-config-standard": "^38.0.0",
|
|
101
|
-
"stylelint-scss": "^6.12.1",
|
|
102
|
-
"ts-loader": "^9.5.2",
|
|
103
|
-
typescript: "5.5.4",
|
|
104
|
-
xmldom: "^0.6.0"
|
|
105
|
-
};
|
|
106
|
-
const publishConfig = {
|
|
107
|
-
registry: "https://registry.npmjs.org/"
|
|
108
|
-
};
|
|
109
|
-
const collection = "dist/collection/collection-manifest.json";
|
|
110
|
-
const prettier = "prettier-config-genesys-spark-components";
|
|
111
|
-
const volta = {
|
|
112
|
-
node: "22.14.0"
|
|
113
|
-
};
|
|
114
|
-
const packageInfo = {
|
|
115
|
-
name: name,
|
|
116
|
-
version: version,
|
|
117
|
-
description: description,
|
|
118
|
-
license: license,
|
|
119
|
-
main: main,
|
|
120
|
-
files: files,
|
|
121
|
-
scripts: scripts,
|
|
122
|
-
config: config,
|
|
123
|
-
types: types,
|
|
124
|
-
dependencies: dependencies,
|
|
125
|
-
devDependencies: devDependencies,
|
|
126
|
-
publishConfig: publishConfig,
|
|
127
|
-
collection: collection,
|
|
128
|
-
prettier: prettier,
|
|
129
|
-
volta: volta
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
// The number of actions to process every interval
|
|
133
|
-
const ACTION_BATCH_SIZE = 20;
|
|
134
|
-
const NR_LIMIT_INTERVAL = 30000; // 30s
|
|
135
|
-
/**
|
|
136
|
-
* A queue of events that should be tracked by NewRelic.
|
|
137
|
-
* We initialize it with the library version to make sure that's always reported.
|
|
138
|
-
*/
|
|
139
|
-
const actionQueue = [
|
|
140
|
-
getVersionEvent(packageInfo.version)
|
|
141
|
-
];
|
|
142
|
-
/**
|
|
143
|
-
* Process the next batch items in the queue, set a timeout to recur.
|
|
144
|
-
* We use a recurring timeout instead of an interval because it guarantees
|
|
145
|
-
* a minimum of NR_LMIT_INTERVAL between batches, even if the browser is
|
|
146
|
-
* held up by processing elsewhere.
|
|
147
|
-
*/
|
|
148
|
-
function processActionQueue() {
|
|
149
|
-
const newrelic = window.newrelic;
|
|
150
|
-
if (!newrelic) {
|
|
151
|
-
return;
|
|
152
|
-
}
|
|
153
|
-
for (let i = 0; i < ACTION_BATCH_SIZE; i++) {
|
|
154
|
-
if (actionQueue.length == 0) {
|
|
155
|
-
setTimeout(processActionQueue, NR_LIMIT_INTERVAL);
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
const action = actionQueue.shift();
|
|
159
|
-
newrelic.addPageAction(action.name, Object.assign(Object.assign({}, action.metadata), { queueDepth: actionQueue.length }));
|
|
160
|
-
}
|
|
161
|
-
setTimeout(processActionQueue, NR_LIMIT_INTERVAL);
|
|
162
|
-
}
|
|
163
|
-
let trackingStarted = false;
|
|
164
|
-
/**
|
|
165
|
-
* Begin action processing loop if it hasn't started.
|
|
166
|
-
*/
|
|
167
|
-
function ensureTracking() {
|
|
168
|
-
if (!trackingStarted) {
|
|
169
|
-
trackingStarted = true;
|
|
170
|
-
processActionQueue();
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Submits a component for tracking by NewRelic.
|
|
175
|
-
*/
|
|
176
|
-
function trackComponent(element, metadata) {
|
|
177
|
-
if (!window.newrelic) {
|
|
178
|
-
return;
|
|
179
|
-
}
|
|
180
|
-
ensureTracking();
|
|
181
|
-
// Ignore components in the shadow DOM of another component
|
|
182
|
-
// e.g. Only track components used directly by the app
|
|
183
|
-
if (!document.contains(element)) {
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
actionQueue.push({
|
|
187
|
-
name: 'spark-component',
|
|
188
|
-
metadata: Object.assign(Object.assign({}, metadata), { component: element.tagName.toLowerCase(), version: packageInfo.version })
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
function getVersionEvent(packageInfoVersion) {
|
|
192
|
-
const [major, minor, ...patch] = packageInfoVersion.split('.');
|
|
193
|
-
return {
|
|
194
|
-
name: 'spark-library',
|
|
195
|
-
metadata: {
|
|
196
|
-
fullVersion: `${major}.${minor}.${patch.join('.')}`,
|
|
197
|
-
majorVersion: major,
|
|
198
|
-
minorVersion: `${major}.${minor}`
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
const VISUALIZATION_COLORS = [
|
|
204
|
-
'#203B73',
|
|
205
|
-
'#1DA8B3',
|
|
206
|
-
'#75A8FF',
|
|
207
|
-
'#8452CF',
|
|
208
|
-
'#B5B5EB',
|
|
209
|
-
'#CC3EBE',
|
|
210
|
-
'#5E5782',
|
|
211
|
-
'#FF8FDD',
|
|
212
|
-
'#868C1E',
|
|
213
|
-
'#DDD933'
|
|
214
|
-
];
|
|
215
|
-
const DEFAULT_LABEL_COLOR = '#596373';
|
|
216
|
-
const DEFAULT_DOMAIN_COLOR = '#596373';
|
|
217
|
-
|
|
218
|
-
export { DEFAULT_LABEL_COLOR as D, VISUALIZATION_COLORS as V, DEFAULT_DOMAIN_COLOR as a, trackComponent as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t="4.155.0",e=20,n=3e4,o=[function(t){const[e,n,...o]=t.split(".");return{name:"spark-library",metadata:{fullVersion:`${e}.${n}.${o.join(".")}`,majorVersion:e,minorVersion:`${e}.${n}`}}}(t)];function a(){const t=window.newrelic;if(t){for(let s=0;s<e;s++){if(0==o.length)return void setTimeout(a,n);const e=o.shift();t.addPageAction(e.name,Object.assign(Object.assign({},e.metadata),{queueDepth:o.length}))}setTimeout(a,n)}}let s=!1;function i(e,n){window.newrelic&&(s||(s=!0,a()),document.contains(e)&&o.push({name:"spark-component",metadata:Object.assign(Object.assign({},n),{component:e.tagName.toLowerCase(),version:t})}))}const r=["#203B73","#1DA8B3","#75A8FF","#8452CF","#B5B5EB","#CC3EBE","#5E5782","#FF8FDD","#868C1E","#DDD933"],c="#596373",m="#596373";export{c as D,r as V,m as a,i as t}
|
|
@@ -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-22c066a2.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}
|