genesys-spark-chart-components 4.12.1-beta.1 → 4.29.1-beta.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 (90) hide show
  1. package/LICENSE +2 -2
  2. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  3. package/dist/cjs/genesys-chart-webcomponents.cjs.js +5 -3
  4. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +124 -123
  5. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +213 -212
  6. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +120 -119
  7. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +96 -95
  8. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +126 -125
  9. package/dist/cjs/gux-visualization-beta.cjs.entry.js +213 -213
  10. package/dist/cjs/{index-1e13a15f.js → index-a4712860.js} +185 -63
  11. package/dist/cjs/loader.cjs.js +4 -2
  12. package/dist/cjs/log-error-28c7064e.js +21 -0
  13. package/dist/cjs/{usage-30f04ec3.js → usage-c351d7fb.js} +63 -63
  14. package/dist/collection/collection-manifest.json +2 -2
  15. package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +324 -324
  16. package/dist/collection/components/beta/gux-chart-column/gux-chart-column.locale.js +88 -88
  17. package/dist/collection/components/beta/gux-chart-column/tests/gux-column-chart.spec.js +16 -16
  18. package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +550 -550
  19. package/dist/collection/components/beta/gux-chart-donut/tests/gux-chart-donut.spec.js +5 -5
  20. package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +375 -375
  21. package/dist/collection/components/beta/gux-chart-line/gux-chart-line.locale.js +88 -88
  22. package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.e2e.js +13 -13
  23. package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.spec.js +16 -16
  24. package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +266 -266
  25. package/dist/collection/components/beta/gux-chart-pie/tests/gux-chart-pie.spec.js +5 -5
  26. package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +347 -347
  27. package/dist/collection/components/beta/gux-chart-scatter-plot/tests/gux-chart-scatter-plot.spec.js +27 -27
  28. package/dist/collection/components/beta/gux-visualization/gux-visualization.js +133 -133
  29. package/dist/collection/components/beta/gux-visualization/gux-visualization.locale.js +88 -88
  30. package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.e2e.js +25 -25
  31. package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.spec.js +26 -26
  32. package/dist/collection/i18n/fetchResources.js +7 -7
  33. package/dist/collection/i18n/index.js +56 -56
  34. package/dist/collection/test/axeConfig.js +4 -4
  35. package/dist/collection/test/e2eTestUtils.js +14 -14
  36. package/dist/collection/test/specTestUtils.js +5 -5
  37. package/dist/collection/utils/dom/get-closest-element.js +12 -12
  38. package/dist/collection/utils/error/log-error.js +2 -2
  39. package/dist/collection/utils/theme/color-palette.js +10 -10
  40. package/dist/collection/utils/tracking/usage.js +47 -47
  41. package/dist/collection/utils/tracking/usage.spec.js +108 -108
  42. package/dist/esm/app-globals-0f993ce5.js +3 -0
  43. package/dist/esm/genesys-chart-webcomponents.js +6 -4
  44. package/dist/esm/gux-chart-column-beta.entry.js +124 -123
  45. package/dist/esm/gux-chart-donut-beta.entry.js +213 -212
  46. package/dist/esm/gux-chart-line-beta.entry.js +120 -119
  47. package/dist/esm/gux-chart-pie-beta.entry.js +96 -95
  48. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +126 -125
  49. package/dist/esm/gux-visualization-beta.entry.js +213 -213
  50. package/dist/esm/{index-701d93cf.js → index-82fd7406.js} +185 -63
  51. package/dist/esm/loader.js +5 -3
  52. package/dist/esm/log-error-ff9bdda4.js +18 -0
  53. package/dist/esm/{usage-61eee3bd.js → usage-6655c04e.js} +63 -63
  54. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.css +1 -1
  55. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
  56. package/dist/genesys-chart-webcomponents/p-1bc0cc3a.js +2 -0
  57. package/dist/genesys-chart-webcomponents/{p-d4a346df.entry.js → p-291b128b.entry.js} +1 -1
  58. package/dist/genesys-chart-webcomponents/p-51f2502a.entry.js +11 -0
  59. package/dist/genesys-chart-webcomponents/{p-137f5b8f.entry.js → p-64f0b385.entry.js} +1 -1
  60. package/dist/genesys-chart-webcomponents/{p-b5179379.entry.js → p-65020b8a.entry.js} +1 -1
  61. package/dist/genesys-chart-webcomponents/{p-d9928f8c.entry.js → p-83283e73.entry.js} +1 -1
  62. package/dist/genesys-chart-webcomponents/p-e1255160.js +1 -0
  63. package/dist/genesys-chart-webcomponents/{p-c3aa8578.entry.js → p-e42dd3ba.entry.js} +1 -1
  64. package/dist/genesys-chart-webcomponents/{p-97c45977.js → p-f6832775.js} +1 -1
  65. package/dist/stencil-wrapper.js +1 -1
  66. package/dist/types/components/beta/gux-chart-column/gux-chart-column.d.ts +45 -45
  67. package/dist/types/components/beta/gux-chart-column/gux-chart-column.locale.d.ts +20 -20
  68. package/dist/types/components/beta/gux-chart-donut/gux-chart-donut.d.ts +30 -30
  69. package/dist/types/components/beta/gux-chart-line/gux-chart-line.d.ts +44 -44
  70. package/dist/types/components/beta/gux-chart-line/gux-chart-line.locale.d.ts +20 -20
  71. package/dist/types/components/beta/gux-chart-pie/gux-chart-pie.d.ts +19 -19
  72. package/dist/types/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.d.ts +48 -48
  73. package/dist/types/components/beta/gux-visualization/gux-visualization.d.ts +13 -13
  74. package/dist/types/components/beta/gux-visualization/gux-visualization.locale.d.ts +20 -20
  75. package/dist/types/components.d.ts +12 -0
  76. package/dist/types/i18n/fetchResources.d.ts +3 -3
  77. package/dist/types/i18n/index.d.ts +1 -1
  78. package/dist/types/stencil-public-runtime.d.ts +10 -0
  79. package/dist/types/stencil-wrapper.d.ts +1 -1
  80. package/dist/types/test/axeConfig.d.ts +4 -4
  81. package/dist/types/test/e2eTestUtils.d.ts +4 -4
  82. package/dist/types/test/jestMatcherUtils.d.ts +4 -4
  83. package/dist/types/utils/tracking/usage.d.ts +11 -11
  84. package/package.json +24 -24
  85. package/dist/cjs/log-error-c46b4b4c.js +0 -21
  86. package/dist/component-specs.json +0 -187
  87. package/dist/esm/log-error-0fc61f6f.js +0 -18
  88. package/dist/genesys-chart-webcomponents/p-3e4b3dbc.js +0 -2
  89. package/dist/genesys-chart-webcomponents/p-b901e9e0.entry.js +0 -11
  90. /package/dist/genesys-chart-webcomponents/{p-82f0ea01.js → p-f50e3789.js} +0 -0
@@ -1,22 +1,22 @@
1
1
  export declare const timeFormatLocale: {
2
- en: {
3
- dateTime: string;
4
- date: string;
5
- time: string;
6
- periods: string[];
7
- days: string[];
8
- shortDays: string[];
9
- months: string[];
10
- shortMonths: string[];
11
- };
12
- de: {
13
- dateTime: string;
14
- date: string;
15
- time: string;
16
- periods: string[];
17
- days: string[];
18
- shortDays: string[];
19
- months: string[];
20
- shortMonths: string[];
21
- };
2
+ en: {
3
+ dateTime: string;
4
+ date: string;
5
+ time: string;
6
+ periods: string[];
7
+ days: string[];
8
+ shortDays: string[];
9
+ months: string[];
10
+ shortMonths: string[];
11
+ };
12
+ de: {
13
+ dateTime: string;
14
+ date: string;
15
+ time: string;
16
+ periods: string[];
17
+ days: string[];
18
+ shortDays: string[];
19
+ months: string[];
20
+ shortMonths: string[];
21
+ };
22
22
  };
@@ -241,7 +241,19 @@ declare global {
241
241
  prototype: HTMLGuxChartScatterPlotBetaElement;
242
242
  new (): HTMLGuxChartScatterPlotBetaElement;
243
243
  };
244
+ interface HTMLGuxVisualizationBetaElementEventMap {
245
+ "chartComponentReady": any;
246
+ "chartClicked": any;
247
+ }
244
248
  interface HTMLGuxVisualizationBetaElement extends Components.GuxVisualizationBeta, HTMLStencilElement {
249
+ addEventListener<K extends keyof HTMLGuxVisualizationBetaElementEventMap>(type: K, listener: (this: HTMLGuxVisualizationBetaElement, ev: GuxVisualizationBetaCustomEvent<HTMLGuxVisualizationBetaElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
250
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
251
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
252
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
253
+ removeEventListener<K extends keyof HTMLGuxVisualizationBetaElementEventMap>(type: K, listener: (this: HTMLGuxVisualizationBetaElement, ev: GuxVisualizationBetaCustomEvent<HTMLGuxVisualizationBetaElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
254
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
255
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
256
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
245
257
  }
246
258
  var HTMLGuxVisualizationBetaElement: {
247
259
  prototype: HTMLGuxVisualizationBetaElement;
@@ -1,11 +1,11 @@
1
1
  export interface ILocalizedComponentResources {
2
- [resourceKey: string]: string;
2
+ [resourceKey: string]: string;
3
3
  }
4
4
  export interface ILocalizedResources {
5
- [componentName: string]: ILocalizedComponentResources;
5
+ [componentName: string]: ILocalizedComponentResources;
6
6
  }
7
7
  export interface IResourceCache {
8
- [locale: string]: ILocalizedResources;
8
+ [locale: string]: ILocalizedResources;
9
9
  }
10
10
  export declare const determineFetchUrl: (locale?: string) => string;
11
11
  export declare const fetchResources: (componentName: string, locale: string) => Promise<ILocalizedComponentResources>;
@@ -1,6 +1,6 @@
1
1
  import { ILocalizedComponentResources } from './fetchResources';
2
2
  type I18nValueContext = {
3
- [key: string]: string | number;
3
+ [key: string]: string | number;
4
4
  };
5
5
  export type GetI18nValue = (resourceKey: string, context?: I18nValueContext) => string;
6
6
  export declare function buildI18nForComponent(component: HTMLElement, defaultResources: ILocalizedComponentResources, parentComponent?: string): Promise<GetI18nValue>;
@@ -810,6 +810,9 @@ export declare namespace JSXBase {
810
810
  name?: string;
811
811
  type?: string;
812
812
  value?: string | string[] | number;
813
+ popoverTargetAction?: string;
814
+ popoverTargetElement?: Element | null;
815
+ popoverTarget?: string;
813
816
  }
814
817
  interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
815
818
  height?: number | string;
@@ -971,6 +974,9 @@ export declare namespace JSXBase {
971
974
  webkitdirectory?: boolean;
972
975
  webkitEntries?: any;
973
976
  width?: number | string;
977
+ popoverTargetAction?: string;
978
+ popoverTargetElement?: Element | null;
979
+ popoverTarget?: string;
974
980
  }
975
981
  interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
976
982
  autoFocus?: boolean;
@@ -1134,11 +1140,13 @@ export declare namespace JSXBase {
1134
1140
  autocomplete?: string;
1135
1141
  }
1136
1142
  interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
1143
+ height?: number;
1137
1144
  media?: string;
1138
1145
  sizes?: string;
1139
1146
  src?: string;
1140
1147
  srcSet?: string;
1141
1148
  type?: string;
1149
+ width?: number;
1142
1150
  }
1143
1151
  interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
1144
1152
  media?: string;
@@ -1221,6 +1229,7 @@ export declare namespace JSXBase {
1221
1229
  draggable?: boolean;
1222
1230
  hidden?: boolean;
1223
1231
  id?: string;
1232
+ inert?: boolean;
1224
1233
  lang?: string;
1225
1234
  spellcheck?: 'true' | 'false' | any;
1226
1235
  style?: {
@@ -1229,6 +1238,7 @@ export declare namespace JSXBase {
1229
1238
  tabIndex?: number;
1230
1239
  tabindex?: number | string;
1231
1240
  title?: string;
1241
+ popover?: string | null;
1232
1242
  inputMode?: string;
1233
1243
  inputmode?: string;
1234
1244
  enterKeyHint?: string;
@@ -1,2 +1,2 @@
1
- export declare const CHART_COMPONENT_ASSETS_PATH = "/spark-components/build-assets/4.12.1-beta.1-7/genesys-webcomponents/chart/";
1
+ export declare const CHART_COMPONENT_ASSETS_PATH = "/spark-components/build-assets/4.29.1-beta.0-12/chart/genesys-chart-webcomponents/";
2
2
  export declare function registerElements(): void;
@@ -1,6 +1,6 @@
1
1
  export declare const axeConfig: {
2
- runOnly: {
3
- type: string;
4
- values: string[];
5
- };
2
+ runOnly: {
3
+ type: string;
4
+ values: string[];
5
+ };
6
6
  };
@@ -1,9 +1,9 @@
1
1
  import { E2EPage } from '@stencil/core/testing';
2
2
  export declare function a11yCheck(page: E2EPage, axeExclusions?: {
3
- issueId: string;
4
- target?: string;
5
- exclusionReason: string;
3
+ issueId: string;
4
+ target?: string;
5
+ exclusionReason: string;
6
6
  }[], axeScanContext?: string): Promise<void>;
7
7
  export declare function newSparkE2EPage({ html }: {
8
- html: string;
8
+ html: string;
9
9
  }, lang?: string): Promise<E2EPage>;
@@ -1,8 +1,8 @@
1
1
  export {};
2
2
  declare global {
3
- namespace jest {
4
- interface Matchers<R> {
5
- toHaveNoViolations(exclusions: any): R;
3
+ namespace jest {
4
+ interface Matchers<R> {
5
+ toHaveNoViolations(exclusions: any): R;
6
+ }
6
7
  }
7
- }
8
8
  }
@@ -1,17 +1,17 @@
1
1
  import NewRelicBrowser from 'new-relic-browser';
2
2
  interface LibraryEvent {
3
- name: 'spark-library';
4
- metadata: {
5
- majorVersion: string;
6
- minorVersion: string;
7
- fullVersion: string;
8
- };
3
+ name: 'spark-library';
4
+ metadata: {
5
+ majorVersion: string;
6
+ minorVersion: string;
7
+ fullVersion: string;
8
+ };
9
9
  }
10
10
  interface ComponentMetadata {
11
- variant?: string;
11
+ variant?: string;
12
12
  }
13
13
  interface ActionMetadata {
14
- [key: string]: string | number;
14
+ [key: string]: string | number;
15
15
  }
16
16
  /**
17
17
  * Submits a component for tracking by NewRelic.
@@ -20,8 +20,8 @@ export declare function trackComponent(element: HTMLElement, metadata?: Componen
20
20
  export declare function trackAction(element: HTMLElement, action: string, actionMetadata?: ActionMetadata): void;
21
21
  export declare function getVersionEvent(packageInfoVersion: string): LibraryEvent;
22
22
  declare global {
23
- interface Window {
24
- newrelic?: typeof NewRelicBrowser;
25
- }
23
+ interface Window {
24
+ newrelic?: typeof NewRelicBrowser;
25
+ }
26
26
  }
27
27
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genesys-spark-chart-components",
3
- "version": "4.12.1-beta.1",
3
+ "version": "4.29.1-beta.0",
4
4
  "description": "Common chart webcomponents",
5
5
  "license": "MIT",
6
6
  "main": "dist/stencil-wrapper.js",
@@ -19,7 +19,7 @@
19
19
  "eslint": "eslint --fix .",
20
20
  "i18n": "npm run update-en-i18n && npm run build-i18n",
21
21
  "lint-all": "npm-run-all \"stylelint\" \"eslint\" \"prettier\" \"prettier-package-json\"",
22
- "lint-staged": "lint-staged",
22
+ "lint-staged": "lint-staged --concurrent false",
23
23
  "list-checked-a11y-components": "node scripts/list-checked-a11y-components.js",
24
24
  "list-component-tracking": "./scripts/list-component-tracking.js",
25
25
  "list-i18n-files": "./scripts/list-i18n-files.js",
@@ -51,32 +51,32 @@
51
51
  },
52
52
  "types": "dist/types/index.d.ts",
53
53
  "dependencies": {
54
- "vega": "*",
55
- "vega-embed": "*",
56
- "vega-lite": "*"
54
+ "vega": "5.22.1",
55
+ "vega-embed": "6.21.2",
56
+ "vega-lite": "5.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@babel/core": "^7.23.2",
60
- "@babel/preset-env": "^7.23.2",
61
- "@stencil/core": "4.5.0",
59
+ "@babel/core": "^7.24.0",
60
+ "@babel/preset-env": "^7.24.0",
61
+ "@stencil/core": "^4.12.6",
62
62
  "@stencil/react-output-target": "^0.5.3",
63
- "@stencil/sass": "^3.0.7",
63
+ "@stencil/sass": "^3.0.10",
64
64
  "@stencil/utils": "0.0.5",
65
65
  "@types/jest": "^27.5.2",
66
66
  "@types/new-relic-browser": "^0.1118.2",
67
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",
68
+ "@typescript-eslint/eslint-plugin": "^7.1.1",
69
+ "@typescript-eslint/parser": "^7.1.1",
70
+ "axe-core": "^4.8.4",
71
71
  "axe-live": "^1.0.1",
72
- "eslint": "^8.52.0",
72
+ "eslint": "^8.57.0",
73
73
  "eslint-config-genesys-spark-components": "file:../../shared-configs/eslint-config-genesys-spark-components",
74
- "eslint-config-prettier": "^8.10.0",
74
+ "eslint-config-prettier": "^9.1.0",
75
75
  "file-loader": "^6.2.0",
76
76
  "genesys-spark-tokens": "file:../genesys-spark-tokens",
77
77
  "glob": "^10.3.0",
78
78
  "handlebars": "^4.7.8",
79
- "inquirer": "^9.2.7",
79
+ "inquirer": "^9.2.15",
80
80
  "jest": "^27.5.1",
81
81
  "jest-cli": "^27.5.1",
82
82
  "jest-config": "^27.5.1",
@@ -84,26 +84,26 @@
84
84
  "jest-junit": "^13.2.0",
85
85
  "jest-silent-reporter": "^0.5.0",
86
86
  "jsdom": "^22.1.0",
87
- "lint-staged": "^13.3.0",
88
- "marked": "^4.3.0",
87
+ "lint-staged": "^15.2.2",
88
+ "marked": "^12.0.1",
89
89
  "node-fetch": "^3.3.2",
90
90
  "npm-run-all": "^4.1.5",
91
- "postcss-html": "^1.5.0",
91
+ "postcss-html": "^1.6.0",
92
92
  "postcss-less": "^6.0.0",
93
93
  "postcss-scss": "^4.0.9",
94
- "prettier": "^3.0.3",
94
+ "prettier": "^3.2.5",
95
95
  "prettier-config-genesys-spark-components": "file:../../shared-configs/prettier-config-genesys-spark-components",
96
96
  "prettier-package-json": "^2.8.0",
97
97
  "puppeteer": "^14.4.1",
98
98
  "rollup-plugin-copy": "^3.5.0",
99
99
  "semver-sort": "^1.0.0",
100
- "stylelint": "^15.11.0",
100
+ "stylelint": "^16.2.1",
101
101
  "stylelint-config-genesys-spark-components": "file:../../shared-configs/stylelint-config-genesys-spark-components",
102
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",
103
+ "stylelint-config-recess-order": "^5.0.0",
104
+ "stylelint-config-standard": "^36.0.0",
105
+ "stylelint-scss": "^6.2.1",
106
+ "ts-loader": "^9.5.1",
107
107
  "typescript": "^4.9.5",
108
108
  "xmldom": "^0.6.0"
109
109
  },
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- const VISUALIZATION_COLORS = [
4
- '#203B73',
5
- '#1DA8B3',
6
- '#75A8FF',
7
- '#8452CF',
8
- '#B5B5EB',
9
- '#CC3EBE',
10
- '#5E5782',
11
- '#FF8FDD',
12
- '#868C1E',
13
- '#DDD933'
14
- ];
15
-
16
- function logError(component, message) {
17
- console.error(`[${component.tagName.toLowerCase()}] ${message}`, component);
18
- }
19
-
20
- exports.VISUALIZATION_COLORS = VISUALIZATION_COLORS;
21
- exports.logError = logError;
@@ -1,187 +0,0 @@
1
- {
2
- "gux-visualization": {
3
- "beta": true,
4
- "attributes": {
5
- "--": [
6
- "GenericConcatSpec&lt;NonNormalizedSpec&gt; &amp; TopLevelProperties&lt;ExprRef",
7
- "SignalRef&gt; &amp; { $schema?: string; config?: Config&lt;ExprRef",
8
- "SignalRef&gt;; datasets?: Datasets; usermeta?: Dict&lt;unknown&gt;; }",
9
- "GenericFacetSpec&lt;UnitSpecWithFrame&lt;Field&gt;, LayerSpec&lt;Field&gt;, Field&gt; &amp; TopLevelProperties&lt;ExprRef",
10
- "SignalRef&gt; &amp; { $schema?: string; config?: Config&lt;ExprRef",
11
- "SignalRef&gt;; datasets?: Datasets; usermeta?: Dict&lt;unknown&gt;; } &amp; DataMixins",
12
- "GenericHConcatSpec&lt;NonNormalizedSpec&gt; &amp; TopLevelProperties&lt;ExprRef",
13
- "SignalRef&gt; &amp; { $schema?: string; config?: Config&lt;ExprRef",
14
- "SignalRef&gt;; datasets?: Datasets; usermeta?: Dict&lt;unknown&gt;; }",
15
- "GenericUnitSpec&lt;FacetedCompositeEncoding&lt;Field&gt;, AnyMark, TopLevelParameter&gt; &amp; ResolveMixins &amp; GenericCompositionLayout &amp; FrameMixins&lt;ExprRef",
16
- "SignalRef&gt; &amp; TopLevelProperties&lt;ExprRef",
17
- "SignalRef&gt; &amp; { $schema?: string; config?: Config&lt;ExprRef",
18
- "SignalRef&gt;; datasets?: Datasets; usermeta?: Dict&lt;unknown&gt;; } &amp; DataMixins",
19
- "GenericVConcatSpec&lt;NonNormalizedSpec&gt; &amp; TopLevelProperties&lt;ExprRef",
20
- "SignalRef&gt; &amp; { $schema?: string; config?: Config&lt;ExprRef",
21
- "SignalRef&gt;; datasets?: Datasets; usermeta?: Dict&lt;unknown&gt;; }",
22
- "LayerRepeatSpec &amp; TopLevelProperties&lt;ExprRef",
23
- "SignalRef&gt; &amp; { $schema?: string; config?: Config&lt;ExprRef",
24
- "SignalRef&gt;; datasets?: Datasets; usermeta?: Dict&lt;unknown&gt;; }",
25
- "LayerSpec&lt;Field&gt; &amp; TopLevelProperties&lt;ExprRef",
26
- "SignalRef&gt; &amp; { $schema?: string; config?: Config&lt;ExprRef",
27
- "SignalRef&gt;; datasets?: Datasets; usermeta?: Dict&lt;unknown&gt;; }",
28
- "NonLayerRepeatSpec &amp; TopLevelProperties&lt;ExprRef",
29
- "SignalRef&gt; &amp; { $schema?: string; config?: Config&lt;ExprRef",
30
- "SignalRef&gt;; datasets?: Datasets; usermeta?: Dict&lt;unknown&gt;; }",
31
- "Spec"
32
- ]
33
- },
34
- "events": {
35
- "chartClicked": "",
36
- "chartComponentReady": ""
37
- }
38
- },
39
- "gux-chart-scatter-plot": {
40
- "beta": true,
41
- "attributes": {
42
- "--": [
43
- "EmbedOptions&lt;string, Renderers&gt;"
44
- ],
45
- "color-field-name": "text",
46
- "include-legend": "checkbox",
47
- "legend-position": [
48
- "bottom",
49
- "bottom-left",
50
- "bottom-right",
51
- "left",
52
- "none",
53
- "right",
54
- "top",
55
- "top-left",
56
- "top-right"
57
- ],
58
- "legend-title": "text",
59
- "use-shape": "text",
60
- "x-axis-title": "text",
61
- "x-field-name": "text",
62
- "x-tick-label-slant": "checkbox",
63
- "y-axis-title": "text",
64
- "y-field-name": "text"
65
- },
66
- "events": []
67
- },
68
- "gux-chart-pie": {
69
- "beta": true,
70
- "attributes": {
71
- "--": [
72
- "EmbedOptions&lt;string, Renderers&gt;"
73
- ],
74
- "color-field-name": "text",
75
- "include-legend": "checkbox",
76
- "label-field": "text",
77
- "label-radius": "text",
78
- "legend-position": [
79
- "bottom",
80
- "bottom-left",
81
- "bottom-right",
82
- "left",
83
- "none",
84
- "right",
85
- "top",
86
- "top-left",
87
- "top-right"
88
- ],
89
- "legend-title": "text",
90
- "outer-radius": "text"
91
- },
92
- "events": []
93
- },
94
- "gux-chart-line": {
95
- "beta": true,
96
- "attributes": {
97
- "--": [
98
- "EmbedOptions&lt;string, Renderers&gt;"
99
- ],
100
- "color-field-name": "text",
101
- "include-data-point-markers": "checkbox",
102
- "include-legend": "checkbox",
103
- "interpolation": "text",
104
- "legend-position": [
105
- "bottom",
106
- "bottom-left",
107
- "bottom-right",
108
- "left",
109
- "none",
110
- "right",
111
- "top",
112
- "top-left",
113
- "top-right"
114
- ],
115
- "legend-title": "text",
116
- "stroke-dash": "checkbox",
117
- "x-axis-title": "text",
118
- "x-field-name": "text",
119
- "x-tick-label-slant": "checkbox",
120
- "y-axis-title": "text",
121
- "y-field-name": "text"
122
- },
123
- "events": []
124
- },
125
- "gux-chart-donut": {
126
- "beta": true,
127
- "attributes": {
128
- "center-sub-text": "text",
129
- "center-text": "text",
130
- "--": [
131
- "EmbedOptions&lt;string, Renderers&gt;"
132
- ],
133
- "color-field-name": "text",
134
- "gauge": "checkbox",
135
- "include-legend": "checkbox",
136
- "inner-radius": "text",
137
- "label-field": "text",
138
- "label-radius": "text",
139
- "legend-font-size": "text",
140
- "legend-position": [
141
- "bottom",
142
- "bottom-left",
143
- "bottom-right",
144
- "left",
145
- "none",
146
- "right",
147
- "top",
148
- "top-left",
149
- "top-right"
150
- ],
151
- "legend-symbol-size": "text",
152
- "legend-title": "text",
153
- "legend-x": "text",
154
- "legend-y": "text",
155
- "outer-radius": "text",
156
- "show-tooltip": "checkbox"
157
- },
158
- "events": []
159
- },
160
- "gux-chart-column": {
161
- "beta": true,
162
- "attributes": {
163
- "--": [
164
- "EmbedOptions&lt;string, Renderers&gt;"
165
- ],
166
- "include-legend": "checkbox",
167
- "legend-position": [
168
- "bottom",
169
- "bottom-left",
170
- "bottom-right",
171
- "left",
172
- "none",
173
- "right",
174
- "top",
175
- "top-left",
176
- "top-right"
177
- ],
178
- "legend-title": "text",
179
- "x-axis-title": "text",
180
- "x-field-name": "text",
181
- "x-tick-label-slant": "checkbox",
182
- "y-axis-title": "text",
183
- "y-field-name": "text"
184
- },
185
- "events": []
186
- }
187
- }
@@ -1,18 +0,0 @@
1
- const VISUALIZATION_COLORS = [
2
- '#203B73',
3
- '#1DA8B3',
4
- '#75A8FF',
5
- '#8452CF',
6
- '#B5B5EB',
7
- '#CC3EBE',
8
- '#5E5782',
9
- '#FF8FDD',
10
- '#868C1E',
11
- '#DDD933'
12
- ];
13
-
14
- function logError(component, message) {
15
- console.error(`[${component.tagName.toLowerCase()}] ${message}`, component);
16
- }
17
-
18
- export { VISUALIZATION_COLORS as V, logError as l };
@@ -1,2 +0,0 @@
1
- let n,e,t=!1;const l={},o=n=>"object"==(n=typeof n)||"function"===n;function s(n){var e,t,l;return null!==(l=null===(t=null===(e=n.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const i=(n,e,...t)=>{let l=null,s=!1,i=!1;const r=[],u=e=>{for(let t=0;t<e.length;t++)l=e[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof n&&!o(l))&&(l+=""),s&&i?r[r.length-1].t+=l:r.push(s?c(null,l):l),i=s)};u(t);const a=c(n,null);return a.l=e,r.length>0&&(a.o=r),a},c=(n,e)=>({i:0,u:n,t:e,m:null,o:null,l:null}),r={},u=n=>D(n).$hostElement$,a=(n,e,t)=>{const l=u(n);return{emit:n=>f(l,e,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:n})}},f=(n,e,t)=>{const l=I.ce(e,t);return n.dispatchEvent(l),l},d=new WeakMap,y=n=>"sc-"+n.h,m=(n,e,t,l,s,i)=>{if(t!==l){let c=q(n,e);if(e.toLowerCase(),"ref"===e)l&&l(n);else{const r=o(l);if((c||r&&null!==l)&&!s)try{if(n.tagName.includes("-"))n[e]=l;else{const o=null==l?"":l;"list"===e?c=!1:null!=t&&n[e]==o||(n[e]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(e)||n.removeAttribute(e):(!c||4&i||s)&&!r&&n.setAttribute(e,l=!0===l?"":l)}}},h=(n,e,t,o)=>{const s=11===e.m.nodeType&&e.m.host?e.m.host:e.m,i=n&&n.l||l,c=e.l||l;for(o in i)o in c||m(s,o,i[o],void 0,t,e.i);for(o in c)m(s,o,i[o],c[o],t,e.i)},p=(e,t,l)=>{const o=t.o[l];let s,i,c=0;if(s=o.m=G.createElement(o.u),h(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(c=0;c<o.o.length;++c)i=p(e,o,c),i&&s.appendChild(i);return s},$=(n,t,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=p(null,l,s),c&&(o[s].m=c,r.insertBefore(c,t)))},v=(n,e,t)=>{for(let l=e;l<=t;++l){const e=n[l];if(e){const n=e.m;S(e),n&&n.remove()}}},b=(n,e)=>n.u===e.u,w=(n,e)=>{const t=e.m=n.m,l=n.o,o=e.o;h(n,e,!1),null!==l&&null!==o?((n,e,t,l)=>{let o,s=0,i=0,c=e.length-1,r=e[0],u=e[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&i<=a;)null==r?r=e[++s]:null==u?u=e[--c]:null==f?f=l[++i]:null==d?d=l[--a]:b(r,f)?(w(r,f),r=e[++s],f=l[++i]):b(u,d)?(w(u,d),u=e[--c],d=l[--a]):b(r,d)?(w(r,d),n.insertBefore(r.m,u.m.nextSibling),r=e[++s],d=l[--a]):b(u,f)?(w(u,f),n.insertBefore(u.m,r.m),u=e[--c],f=l[++i]):(o=p(e&&e[i],t,i),f=l[++i],o&&r.m.parentNode.insertBefore(o,r.m));s>c?$(n,null==l[a+1]?null:l[a+1].m,t,l,i,a):i>a&&v(e,s,c)})(t,l,e,o):null!==o?$(t,null,e,o,0,o.length-1):null!==l&&v(l,0,l.length-1)},S=n=>{n.l&&n.l.ref&&n.l.ref(null),n.o&&n.o.map(S)},g=(n,e)=>{e&&!n.p&&e["s-p"]&&e["s-p"].push(new Promise((e=>n.p=e)))},j=(n,e)=>{if(n.i|=16,!(4&n.i))return g(n,n.$),tn((()=>M(n,e)));n.i|=512},M=(n,e)=>{const t=n.v;let l;return e&&(l=A(t,"componentWillLoad")),k(l,(()=>C(n,t,e)))},k=(n,e)=>O(n)?n.then(e):e(),O=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,C=async(n,e,t)=>{var l;const o=n.$hostElement$,i=o["s-rc"];t&&(n=>{const e=n.S,t=n.$hostElement$,l=e.i,o=((n,e)=>{var t;const l=y(e),o=z.get(l);if(n=11===n.nodeType?n:G,o)if("string"==typeof o){let e,i=d.get(n=n.head||n);if(i||d.set(n,i=new Set),!i.has(l)){{e=G.createElement("style"),e.innerHTML=o;const l=null!==(t=I.j)&&void 0!==t?t:s(G);null!=l&&e.setAttribute("nonce",l),n.insertBefore(e,n.querySelector("link"))}i&&i.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"))})(n);P(n,e,o,t),i&&(i.map((n=>n())),o["s-rc"]=void 0);{const e=null!==(l=o["s-p"])&&void 0!==l?l:[],t=()=>L(n);0===e.length?t():(Promise.all(e).then(t),n.i|=4,e.length=0)}},P=(t,l,o,s)=>{try{l=l.render(),t.i&=-17,t.i|=2,((t,l,o=!1)=>{const s=t.$hostElement$,u=t.M||c(null,null),a=(n=>n&&n.u===r)(l)?l:i(null,null,l);if(e=s.tagName,o&&a.l)for(const n of Object.keys(a.l))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(a.l[n]=s[n]);a.u=null,a.i|=4,t.M=a,a.m=u.m=s.shadowRoot||s,n=s["s-sc"],w(u,a)})(t,l,s)}catch(n){H(n,t.$hostElement$)}return null},L=n=>{const e=n.$hostElement$,t=n.v,l=n.$;A(t,"componentDidRender"),64&n.i||(n.i|=64,E(e),A(t,"componentDidLoad"),n.k(e),l||x()),n.p&&(n.p(),n.p=void 0),512&n.i&&en((()=>j(n,!1))),n.i&=-517},x=()=>{E(G.documentElement),en((()=>f(B,"appload",{detail:{namespace:"genesys-chart-webcomponents"}})))},A=(n,e,t)=>{if(n&&n[e])try{return n[e](t)}catch(n){H(n)}},E=n=>n.setAttribute("hydrated",""),N=(n,e,t)=>{var l;if(e.O){n.watchers&&(e.C=n.watchers);const s=Object.entries(e.O),i=n.prototype;if(s.map((([n,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(i,n,{get(){return((n,e)=>D(this).P.get(e))(0,n)},set(t){((n,e,t,l)=>{const s=D(n),i=s.$hostElement$,c=s.P.get(e),r=s.i,u=s.v;if(t=((n,e)=>null==n||o(n)?n:4&e?"false"!==n&&(""===n||!!n):2&e?parseFloat(n):1&e?n+"":n)(t,l.O[e][0]),(!(8&r)||void 0===c)&&t!==c&&(!Number.isNaN(c)||!Number.isNaN(t))&&(s.P.set(e,t),u)){if(l.C&&128&r){const n=l.C[e];n&&n.map((n=>{try{u[n](t,c,e)}catch(n){H(n,i)}}))}2==(18&r)&&j(s,!1)}})(this,n,t,e)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;i.attributeChangedCallback=function(n,l,o){I.jmp((()=>{const s=t.get(n);if(this.hasOwnProperty(s))o=this[s],delete this[s];else{if(i.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==o)return;if(null==s){const t=D(this),s=null==t?void 0:t.i;if(!(8&s)&&128&s&&o!==l){const s=t.v,i=e.C[n];null==i||i.forEach((e=>{null!=s[e]&&s[e].call(s,o,l,n)}))}return}}this[s]=(null!==o||"boolean"!=typeof this[s])&&o}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=e.C)&&void 0!==l?l:{}),...s.filter((([n,e])=>15&e[0])).map((([n,e])=>{const l=e[1]||n;return t.set(l,n),l}))]))}}return n},R=(n,e={})=>{var t;const l=[],o=e.exclude||[],i=B.customElements,c=G.head,r=c.querySelector("meta[charset]"),u=G.createElement("style"),a=[];let f,d=!0;Object.assign(I,e),I.L=new URL(e.resourcesUrl||"./",G.baseURI).href,n.map((n=>{n[1].map((e=>{var t;const s={i:e[0],h:e[1],O:e[2],A:e[3]};s.O=e[2],s.C=null!==(t=e[4])&&void 0!==t?t:{};const c=s.h,r=class extends HTMLElement{constructor(n){super(n),U(n=this,s),1&s.i&&n.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):I.jmp((()=>(n=>{if(0==(1&I.i)){const e=D(n),t=e.S,l=()=>{};if(1&e.i)(null==e?void 0:e.v)||(null==e?void 0:e.N)&&e.N.then((()=>{}));else{e.i|=1;{let t=n;for(;t=t.parentNode||t.host;)if(t["s-p"]){g(e,e.$=t);break}}t.O&&Object.entries(t.O).map((([e,[t]])=>{if(31&t&&n.hasOwnProperty(e)){const t=n[e];delete n[e],n[e]=t}})),(async(n,e,t)=>{let l;if(0==(32&e.i)){e.i|=32;{if(l=_(t),l.then){const n=()=>{};l=await l,n()}l.isProxied||(t.C=l.watchers,N(l,t,2),l.isProxied=!0);const n=()=>{};e.i|=8;try{new l(e)}catch(n){H(n)}e.i&=-9,e.i|=128,n()}if(l.style){let n=l.style;const e=y(t);if(!z.has(e)){const l=()=>{};((n,e,t)=>{let l=z.get(n);K&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,z.set(n,l)})(e,n,!!(1&t.i)),l()}}}const o=e.$,s=()=>j(e,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,e,t)}l()}})(this)))}disconnectedCallback(){I.jmp((()=>(async()=>{if(0==(1&I.i)){const n=D(this);(null==n?void 0:n.v)||(null==n?void 0:n.N)&&n.N.then((()=>{}))}})()))}componentOnReady(){return D(this).N}};s.R=n[0],o.includes(c)||i.get(c)||(l.push(c),i.define(c,N(r,s,1)))}))}));{u.innerHTML=l+"{visibility:hidden}[hydrated]{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(t=I.j)&&void 0!==t?t:s(G);null!=n&&u.setAttribute("nonce",n),c.insertBefore(u,r?r.nextSibling:c.firstChild)}d=!1,a.length?a.map((n=>n.connectedCallback())):I.jmp((()=>f=setTimeout(x,30)))},T=n=>I.j=n,W=new WeakMap,D=n=>W.get(n),F=(n,e)=>W.set(e.v=n,e),U=(n,e)=>{const t={i:0,$hostElement$:n,S:e,P:new Map};return t.N=new Promise((n=>t.k=n)),n["s-p"]=[],n["s-rc"]=[],W.set(n,t)},q=(n,e)=>e in n,H=(n,e)=>(0,console.error)(n,e),V=new Map,_=n=>{const e=n.h.replace(/-/g,"_"),t=n.R,l=V.get(t);return l?l[e]:import(`./${t}.entry.js`).then((n=>(V.set(t,n),n[e])),H)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},z=new Map,B="undefined"!=typeof window?window:{},G=B.document||{head:{}},I={i:0,L:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,e,t,l)=>n.addEventListener(e,t,l),rel:(n,e,t,l)=>n.removeEventListener(e,t,l),ce:(n,e)=>new CustomEvent(n,e)},J=n=>Promise.resolve(n),K=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),Q=[],X=[],Y=(n,e)=>l=>{n.push(l),t||(t=!0,e&&4&I.i?en(nn):I.raf(nn))},Z=n=>{for(let e=0;e<n.length;e++)try{n[e](performance.now())}catch(n){H(n)}n.length=0},nn=()=>{Z(Q),Z(X),(t=Q.length>0)&&I.raf(nn)},en=n=>J().then(n),tn=Y(X,!0);export{R as b,a as c,u as g,i as h,J as p,F as r,T as s}