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,5 +1,5 @@
1
- import { r as registerInstance, c as createEvent, h as h$1, g as getElement } from './index-701d93cf.js';
2
- import { t as trackComponent } from './usage-61eee3bd.js';
1
+ import { r as registerInstance, c as createEvent, h as h$1, g as getElement } from './index-82fd7406.js';
2
+ import { t as trackComponent } from './usage-6655c04e.js';
3
3
 
4
4
  /*!
5
5
  * https://github.com/Starcounter-Jack/JSON-Patch
@@ -2106,6 +2106,7 @@ const ascendingBisect = bisector$1(ascending$3);
2106
2106
  const bisectRight$1 = ascendingBisect.right;
2107
2107
  const bisectLeft$1 = ascendingBisect.left;
2108
2108
  bisector$1(number$6).center;
2109
+ const bisect$1 = bisectRight$1;
2109
2110
 
2110
2111
  function variance(values, valueof) {
2111
2112
  let count = 0;
@@ -14490,7 +14491,7 @@ function polymap(domain, range, interpolate) {
14490
14491
  }
14491
14492
 
14492
14493
  return function(x) {
14493
- var i = bisectRight$1(domain, x, 1, j) - 1;
14494
+ var i = bisect$1(domain, x, 1, j) - 1;
14494
14495
  return r[i](d[i](x));
14495
14496
  };
14496
14497
  }
@@ -14932,7 +14933,7 @@ function quantile() {
14932
14933
  }
14933
14934
 
14934
14935
  function scale(x) {
14935
- return x == null || isNaN(x = +x) ? unknown : range[bisectRight$1(thresholds, x)];
14936
+ return x == null || isNaN(x = +x) ? unknown : range[bisect$1(thresholds, x)];
14936
14937
  }
14937
14938
 
14938
14939
  scale.invertExtent = function(y) {
@@ -14982,7 +14983,7 @@ function quantize$1() {
14982
14983
  unknown;
14983
14984
 
14984
14985
  function scale(x) {
14985
- return x != null && x <= x ? range[bisectRight$1(domain, x, 0, n)] : unknown;
14986
+ return x != null && x <= x ? range[bisect$1(domain, x, 0, n)] : unknown;
14986
14987
  }
14987
14988
 
14988
14989
  function rescale() {
@@ -15033,7 +15034,7 @@ function threshold() {
15033
15034
  n = 1;
15034
15035
 
15035
15036
  function scale(x) {
15036
- return x != null && x <= x ? range[bisectRight$1(domain, x, 0, n)] : unknown;
15037
+ return x != null && x <= x ? range[bisect$1(domain, x, 0, n)] : unknown;
15037
15038
  }
15038
15039
 
15039
15040
  scale.domain = function(_) {
@@ -15570,7 +15571,7 @@ function scaleBinOrdinal$5() {
15570
15571
  let domain = [],
15571
15572
  range = [];
15572
15573
  function scale(x) {
15573
- return x == null || x !== x ? undefined : range[(bisectRight$1(domain, x) - 1) % range.length];
15574
+ return x == null || x !== x ? undefined : range[(bisect$1(domain, x) - 1) % range.length];
15574
15575
  }
15575
15576
  scale.domain = function (_) {
15576
15577
  if (arguments.length) {
@@ -22296,7 +22297,7 @@ function scaleBinOrdinal$4() {
22296
22297
  let domain = [],
22297
22298
  range = [];
22298
22299
  function scale(x) {
22299
- return x == null || x !== x ? undefined : range[(bisectRight$1(domain, x) - 1) % range.length];
22300
+ return x == null || x !== x ? undefined : range[(bisect$1(domain, x) - 1) % range.length];
22300
22301
  }
22301
22302
  scale.domain = function (_) {
22302
22303
  if (arguments.length) {
@@ -23936,22 +23937,22 @@ var lambda0, phi0, lambda1, phi1, // bounds
23936
23937
  ranges,
23937
23938
  range$3;
23938
23939
 
23939
- var boundsStream$1 = {
23940
+ var boundsStream$2 = {
23940
23941
  point: boundsPoint$1,
23941
23942
  lineStart: boundsLineStart,
23942
23943
  lineEnd: boundsLineEnd,
23943
23944
  polygonStart: function() {
23944
- boundsStream$1.point = boundsRingPoint;
23945
- boundsStream$1.lineStart = boundsRingStart;
23946
- boundsStream$1.lineEnd = boundsRingEnd;
23945
+ boundsStream$2.point = boundsRingPoint;
23946
+ boundsStream$2.lineStart = boundsRingStart;
23947
+ boundsStream$2.lineEnd = boundsRingEnd;
23947
23948
  deltaSum = new Adder();
23948
23949
  areaStream$1.polygonStart();
23949
23950
  },
23950
23951
  polygonEnd: function() {
23951
23952
  areaStream$1.polygonEnd();
23952
- boundsStream$1.point = boundsPoint$1;
23953
- boundsStream$1.lineStart = boundsLineStart;
23954
- boundsStream$1.lineEnd = boundsLineEnd;
23953
+ boundsStream$2.point = boundsPoint$1;
23954
+ boundsStream$2.lineStart = boundsLineStart;
23955
+ boundsStream$2.lineEnd = boundsLineEnd;
23955
23956
  if (areaRingSum$1 < 0) lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);
23956
23957
  else if (deltaSum > epsilon$3) phi1 = 90;
23957
23958
  else if (deltaSum < -epsilon$3) phi0 = -90;
@@ -24018,12 +24019,12 @@ function linePoint(lambda, phi) {
24018
24019
  }
24019
24020
 
24020
24021
  function boundsLineStart() {
24021
- boundsStream$1.point = linePoint;
24022
+ boundsStream$2.point = linePoint;
24022
24023
  }
24023
24024
 
24024
24025
  function boundsLineEnd() {
24025
24026
  range$3[0] = lambda0, range$3[1] = lambda1;
24026
- boundsStream$1.point = boundsPoint$1;
24027
+ boundsStream$2.point = boundsPoint$1;
24027
24028
  p0 = null;
24028
24029
  }
24029
24030
 
@@ -24070,7 +24071,7 @@ function geoBounds$1(feature) {
24070
24071
 
24071
24072
  phi1 = lambda1 = -(lambda0 = phi0 = Infinity);
24072
24073
  ranges = [];
24073
- geoStream(feature, boundsStream$1);
24074
+ geoStream(feature, boundsStream$2);
24074
24075
 
24075
24076
  // First, sort ranges by their minimum longitudes.
24076
24077
  if (n = ranges.length) {
@@ -25315,6 +25316,8 @@ function areaRingEnd() {
25315
25316
  areaPoint(x00$2, y00$2);
25316
25317
  }
25317
25318
 
25319
+ const pathArea = areaStream;
25320
+
25318
25321
  var x0$2 = Infinity,
25319
25322
  y0$2 = x0$2,
25320
25323
  x1 = -x0$2,
@@ -25340,6 +25343,8 @@ function boundsPoint(x, y) {
25340
25343
  if (y > y1) y1 = y;
25341
25344
  }
25342
25345
 
25346
+ const boundsStream$1 = boundsStream;
25347
+
25343
25348
  // TODO Enforce positive area for exterior, negative area for interior?
25344
25349
 
25345
25350
  var X0 = 0,
@@ -25437,6 +25442,8 @@ function centroidPointRing(x, y) {
25437
25442
  centroidPoint(x0$1 = x, y0$1 = y);
25438
25443
  }
25439
25444
 
25445
+ const pathCentroid = centroidStream;
25446
+
25440
25447
  function PathContext(context) {
25441
25448
  this._context = context;
25442
25449
  }
@@ -25520,6 +25527,8 @@ function lengthPoint(x, y) {
25520
25527
  x0 = x, y0 = y;
25521
25528
  }
25522
25529
 
25530
+ const pathMeasure = lengthStream;
25531
+
25523
25532
  // Simple caching for constant-radius points.
25524
25533
  let cacheDigits, cacheAppend, cacheRadius, cacheCircle;
25525
25534
 
@@ -25622,23 +25631,23 @@ function geoPath(projection, context) {
25622
25631
  }
25623
25632
 
25624
25633
  path.area = function(object) {
25625
- geoStream(object, projectionStream(areaStream));
25626
- return areaStream.result();
25634
+ geoStream(object, projectionStream(pathArea));
25635
+ return pathArea.result();
25627
25636
  };
25628
25637
 
25629
25638
  path.measure = function(object) {
25630
- geoStream(object, projectionStream(lengthStream));
25631
- return lengthStream.result();
25639
+ geoStream(object, projectionStream(pathMeasure));
25640
+ return pathMeasure.result();
25632
25641
  };
25633
25642
 
25634
25643
  path.bounds = function(object) {
25635
- geoStream(object, projectionStream(boundsStream));
25636
- return boundsStream.result();
25644
+ geoStream(object, projectionStream(boundsStream$1));
25645
+ return boundsStream$1.result();
25637
25646
  };
25638
25647
 
25639
25648
  path.centroid = function(object) {
25640
- geoStream(object, projectionStream(centroidStream));
25641
- return centroidStream.result();
25649
+ geoStream(object, projectionStream(pathCentroid));
25650
+ return pathCentroid.result();
25642
25651
  };
25643
25652
 
25644
25653
  path.projection = function(_) {
@@ -25700,8 +25709,8 @@ function fit$1(projection, fitBounds, object) {
25700
25709
  var clip = projection.clipExtent && projection.clipExtent();
25701
25710
  projection.scale(150).translate([0, 0]);
25702
25711
  if (clip != null) projection.clipExtent(null);
25703
- geoStream(object, projection.stream(boundsStream));
25704
- fitBounds(boundsStream.result());
25712
+ geoStream(object, projection.stream(boundsStream$1));
25713
+ fitBounds(boundsStream$1.result());
25705
25714
  if (clip != null) projection.clipExtent(clip);
25706
25715
  return projection;
25707
25716
  }
@@ -26848,7 +26857,7 @@ function scaleBinOrdinal$3() {
26848
26857
  let domain = [],
26849
26858
  range = [];
26850
26859
  function scale(x) {
26851
- return x == null || x !== x ? undefined : range[(bisectRight$1(domain, x) - 1) % range.length];
26860
+ return x == null || x !== x ? undefined : range[(bisect$1(domain, x) - 1) % range.length];
26852
26861
  }
26853
26862
  scale.domain = function (_) {
26854
26863
  if (arguments.length) {
@@ -34723,7 +34732,7 @@ function scaleBinOrdinal$2() {
34723
34732
  let domain = [],
34724
34733
  range = [];
34725
34734
  function scale(x) {
34726
- return x == null || x !== x ? undefined : range[(bisectRight$1(domain, x) - 1) % range.length];
34735
+ return x == null || x !== x ? undefined : range[(bisect$1(domain, x) - 1) % range.length];
34727
34736
  }
34728
34737
  scale.domain = function (_) {
34729
34738
  if (arguments.length) {
@@ -36425,7 +36434,7 @@ function scaleBinOrdinal$1() {
36425
36434
  range = [];
36426
36435
 
36427
36436
  function scale(x) {
36428
- return x == null || x !== x ? undefined : range[(bisectRight$1(domain, x) - 1) % range.length];
36437
+ return x == null || x !== x ? undefined : range[(bisect$1(domain, x) - 1) % range.length];
36429
36438
  }
36430
36439
 
36431
36440
  scale.domain = function (_) {
@@ -38550,7 +38559,7 @@ function scaleBinOrdinal() {
38550
38559
  let domain = [],
38551
38560
  range = [];
38552
38561
  function scale(x) {
38553
- return x == null || x !== x ? undefined : range[(bisectRight$1(domain, x) - 1) % range.length];
38562
+ return x == null || x !== x ? undefined : range[(bisect$1(domain, x) - 1) % range.length];
38554
38563
  }
38555
38564
  scale.domain = function (_) {
38556
38565
  if (arguments.length) {
@@ -48303,21 +48312,9 @@ const pkg$1 = {
48303
48312
 
48304
48313
  Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function r(){var t=isNaN(arguments[0])?1:Number(arguments[0]);return t?Array.prototype.reduce.call(this,function(a,e){return Array.isArray(e)?a.push.apply(a,r.call(e,t-1)):a.push(e),a},[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(r){return Array.prototype.map.apply(this,arguments).flat()},writable:!0});
48305
48314
 
48306
- function createCommonjsModule(fn, basedir, module) {
48307
- return module = {
48308
- path: basedir,
48309
- exports: {},
48310
- require: function (path, base) {
48311
- return commonjsRequire();
48312
- }
48313
- }, fn(module, module.exports), module.exports;
48314
- }
48315
-
48316
- function commonjsRequire () {
48317
- throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
48318
- }
48315
+ var clone = {exports: {}};
48319
48316
 
48320
- var clone_1 = createCommonjsModule(function (module) {
48317
+ (function (module) {
48321
48318
  var clone = (function() {
48322
48319
 
48323
48320
  function _instanceof(obj, type) {
@@ -48574,7 +48571,9 @@ return clone;
48574
48571
  if (module.exports) {
48575
48572
  module.exports = clone;
48576
48573
  }
48577
- });
48574
+ }(clone));
48575
+
48576
+ const clone_ = clone.exports;
48578
48577
 
48579
48578
  // do not edit .js files directly - edit src/index.jst
48580
48579
 
@@ -48722,7 +48721,7 @@ function normalizeLogicalComposition(op, normalizer) {
48722
48721
  }
48723
48722
 
48724
48723
  const deepEqual = fastDeepEqual;
48725
- const duplicate = clone_1;
48724
+ const duplicate = clone_;
48726
48725
  function never(message) {
48727
48726
  throw new Error(message);
48728
48727
  }
@@ -71761,189 +71760,190 @@ const locales = [
71761
71760
  ];
71762
71761
 
71763
71762
  function getClosestElement(selector, baseElement = this) {
71764
- function closest(element) {
71765
- if (!element || element === document || element === window) {
71766
- return null;
71767
- }
71768
- if (element.assignedSlot) {
71769
- element = element.assignedSlot;
71763
+ function closest(element) {
71764
+ if (!element || element === document || element === window) {
71765
+ return null;
71766
+ }
71767
+ if (element.assignedSlot) {
71768
+ element = element.assignedSlot;
71769
+ }
71770
+ const found = element.closest(selector);
71771
+ return found
71772
+ ? found
71773
+ : closest(element.getRootNode().host);
71770
71774
  }
71771
- const found = element.closest(selector);
71772
- return found
71773
- ? found
71774
- : closest(element.getRootNode().host);
71775
- }
71776
- return closest(baseElement);
71775
+ return closest(baseElement);
71777
71776
  }
71778
71777
 
71779
71778
  const DEFAULT_LOCALE = 'en';
71780
71779
  function getDesiredLocale(element) {
71781
- const locale = findLocaleInDom(element);
71782
- const lang = locale.split(/[_-]/)[0];
71783
- if (locales.indexOf(locale) >= 0) {
71784
- return locale;
71785
- }
71786
- else if (locales.indexOf(lang) >= 0) {
71787
- return lang;
71788
- }
71789
- else {
71790
- return DEFAULT_LOCALE;
71791
- }
71780
+ const locale = findLocaleInDom(element);
71781
+ const lang = locale.split(/[_-]/)[0];
71782
+ if (locales.indexOf(locale) >= 0) {
71783
+ return locale;
71784
+ }
71785
+ else if (locales.indexOf(lang) >= 0) {
71786
+ return lang;
71787
+ }
71788
+ else {
71789
+ return DEFAULT_LOCALE;
71790
+ }
71792
71791
  }
71793
71792
  function findLocaleInDom(element) {
71794
- const closestElement = getClosestElement('[lang]', element);
71795
- if (closestElement && closestElement.lang) {
71796
- return closestElement.lang.toLowerCase();
71797
- }
71798
- else {
71799
- return DEFAULT_LOCALE;
71800
- }
71793
+ const closestElement = getClosestElement('[lang]', element);
71794
+ if (closestElement && closestElement.lang) {
71795
+ return closestElement.lang.toLowerCase();
71796
+ }
71797
+ else {
71798
+ return DEFAULT_LOCALE;
71799
+ }
71801
71800
  }
71802
71801
 
71803
71802
  // https://github.com/d3/d3-time-format/tree/master/locale
71804
71803
  // This is just a POC I would structure the files differently when implementing for production.
71805
71804
  const timeFormatLocale = {
71806
- en: {
71807
- dateTime: '%x, %X',
71808
- date: '%-m/%-d/%Y',
71809
- time: '%-I:%M:%S %p',
71810
- periods: ['AM', 'PM'],
71811
- days: [
71812
- 'Sunday',
71813
- 'Monday',
71814
- 'Tuesday',
71815
- 'Wednesday',
71816
- 'Thursday',
71817
- 'Friday',
71818
- 'Saturday'
71819
- ],
71820
- shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
71821
- months: [
71822
- 'January',
71823
- 'February',
71824
- 'March',
71825
- 'April',
71826
- 'May',
71827
- 'June',
71828
- 'July',
71829
- 'August',
71830
- 'September',
71831
- 'October',
71832
- 'November',
71833
- 'December'
71834
- ],
71835
- shortMonths: [
71836
- 'Jan',
71837
- 'Feb',
71838
- 'Mar',
71839
- 'Apr',
71840
- 'May',
71841
- 'Jun',
71842
- 'Jul',
71843
- 'Aug',
71844
- 'Sep',
71845
- 'Oct',
71846
- 'Nov',
71847
- 'Dec'
71848
- ]
71849
- },
71850
- de: {
71851
- dateTime: '%A, der %e. %B %Y, %X',
71852
- date: '%d.%m.%Y',
71853
- time: '%H:%M:%S',
71854
- periods: ['AM', 'PM'],
71855
- days: [
71856
- 'Sonntag',
71857
- 'Montag',
71858
- 'Dienstag',
71859
- 'Mittwoch',
71860
- 'Donnerstag',
71861
- 'Freitag',
71862
- 'Samstag'
71863
- ],
71864
- shortDays: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
71865
- months: [
71866
- 'Januar',
71867
- 'Februar',
71868
- 'März',
71869
- 'April',
71870
- 'Mai',
71871
- 'Juni',
71872
- 'Juli',
71873
- 'August',
71874
- 'September',
71875
- 'Oktober',
71876
- 'November',
71877
- 'Dezember'
71878
- ],
71879
- shortMonths: [
71880
- 'Jan',
71881
- 'Feb',
71882
- 'Mrz',
71883
- 'Apr',
71884
- 'Mai',
71885
- 'Jun',
71886
- 'Jul',
71887
- 'Aug',
71888
- 'Sep',
71889
- 'Okt',
71890
- 'Nov',
71891
- 'Dez'
71892
- ]
71893
- }
71805
+ en: {
71806
+ dateTime: '%x, %X',
71807
+ date: '%-m/%-d/%Y',
71808
+ time: '%-I:%M:%S %p',
71809
+ periods: ['AM', 'PM'],
71810
+ days: [
71811
+ 'Sunday',
71812
+ 'Monday',
71813
+ 'Tuesday',
71814
+ 'Wednesday',
71815
+ 'Thursday',
71816
+ 'Friday',
71817
+ 'Saturday'
71818
+ ],
71819
+ shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
71820
+ months: [
71821
+ 'January',
71822
+ 'February',
71823
+ 'March',
71824
+ 'April',
71825
+ 'May',
71826
+ 'June',
71827
+ 'July',
71828
+ 'August',
71829
+ 'September',
71830
+ 'October',
71831
+ 'November',
71832
+ 'December'
71833
+ ],
71834
+ shortMonths: [
71835
+ 'Jan',
71836
+ 'Feb',
71837
+ 'Mar',
71838
+ 'Apr',
71839
+ 'May',
71840
+ 'Jun',
71841
+ 'Jul',
71842
+ 'Aug',
71843
+ 'Sep',
71844
+ 'Oct',
71845
+ 'Nov',
71846
+ 'Dec'
71847
+ ]
71848
+ },
71849
+ de: {
71850
+ dateTime: '%A, der %e. %B %Y, %X',
71851
+ date: '%d.%m.%Y',
71852
+ time: '%H:%M:%S',
71853
+ periods: ['AM', 'PM'],
71854
+ days: [
71855
+ 'Sonntag',
71856
+ 'Montag',
71857
+ 'Dienstag',
71858
+ 'Mittwoch',
71859
+ 'Donnerstag',
71860
+ 'Freitag',
71861
+ 'Samstag'
71862
+ ],
71863
+ shortDays: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
71864
+ months: [
71865
+ 'Januar',
71866
+ 'Februar',
71867
+ 'März',
71868
+ 'April',
71869
+ 'Mai',
71870
+ 'Juni',
71871
+ 'Juli',
71872
+ 'August',
71873
+ 'September',
71874
+ 'Oktober',
71875
+ 'November',
71876
+ 'Dezember'
71877
+ ],
71878
+ shortMonths: [
71879
+ 'Jan',
71880
+ 'Feb',
71881
+ 'Mrz',
71882
+ 'Apr',
71883
+ 'Mai',
71884
+ 'Jun',
71885
+ 'Jul',
71886
+ 'Aug',
71887
+ 'Sep',
71888
+ 'Okt',
71889
+ 'Nov',
71890
+ 'Dez'
71891
+ ]
71892
+ }
71894
71893
  };
71895
71894
 
71896
71895
  const guxVisualizationCss = ":host{height:fit-content}text{fill:#2e394c}.role-axis-domain{fill:#2e394c}.role-axis-label text{fill:#596373}.mark-rule.role-axis-domain line{stroke:#2e394c}";
71896
+ const GuxVisualizationBetaStyle0 = guxVisualizationCss;
71897
71897
 
71898
71898
  const GuxVisualization = class {
71899
- constructor(hostRef) {
71900
- registerInstance(this, hostRef);
71901
- this.chartComponentReady = createEvent(this, "chartComponentReady", 7);
71902
- this.chartClicked = createEvent(this, "chartClicked", 7);
71903
- this.defaultVisualizationSpec = {};
71904
- this.defaultEmbedOptions = {
71905
- actions: false,
71906
- renderer: 'svg'
71907
- };
71908
- this.visualizationSpec = undefined;
71909
- this.embedOptions = undefined;
71910
- }
71911
- componentWillLoad() {
71912
- trackComponent(this.root);
71913
- }
71914
- handleChartClick(_name, value) {
71915
- this.chartClicked.emit(value);
71916
- }
71917
- async componentDidRender() {
71918
- const locale = getDesiredLocale(this.root);
71919
- const patchOption = {
71920
- patch: (visSpec) => {
71921
- if (!(visSpec === null || visSpec === void 0 ? void 0 : visSpec.signals)) {
71922
- visSpec.signals = [];
71923
- }
71924
- // eslint-disable-next-line @typescript-eslint/no-unsafe-call
71925
- visSpec.signals.push({
71926
- name: 'chartClick',
71927
- value: 0,
71928
- on: [{ events: 'rect:mousedown', update: 'datum' }]
71899
+ constructor(hostRef) {
71900
+ registerInstance(this, hostRef);
71901
+ this.chartComponentReady = createEvent(this, "chartComponentReady", 7);
71902
+ this.chartClicked = createEvent(this, "chartClicked", 7);
71903
+ this.defaultVisualizationSpec = {};
71904
+ this.defaultEmbedOptions = {
71905
+ actions: false,
71906
+ renderer: 'svg'
71907
+ };
71908
+ this.visualizationSpec = undefined;
71909
+ this.embedOptions = undefined;
71910
+ }
71911
+ componentWillLoad() {
71912
+ trackComponent(this.root);
71913
+ }
71914
+ handleChartClick(_name, value) {
71915
+ this.chartClicked.emit(value);
71916
+ }
71917
+ async componentDidRender() {
71918
+ const locale = getDesiredLocale(this.root);
71919
+ const patchOption = {
71920
+ patch: (visSpec) => {
71921
+ if (!(visSpec === null || visSpec === void 0 ? void 0 : visSpec.signals)) {
71922
+ visSpec.signals = [];
71923
+ }
71924
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
71925
+ visSpec.signals.push({
71926
+ name: 'chartClick',
71927
+ value: 0,
71928
+ on: [{ events: 'rect:mousedown', update: 'datum' }]
71929
+ });
71930
+ return visSpec;
71931
+ }
71932
+ };
71933
+ await embed(this.chartContainer, Object.assign({}, this.defaultVisualizationSpec, this.visualizationSpec), Object.assign({
71934
+ timeFormatLocale: timeFormatLocale[locale]
71935
+ }, this.defaultEmbedOptions, this.embedOptions, patchOption)).then(result => {
71936
+ result.view.addSignalListener('chartClick', (name, value) => this.handleChartClick(name, value));
71929
71937
  });
71930
- return visSpec;
71931
- }
71932
- };
71933
- await embed(this.chartContainer, Object.assign({}, this.defaultVisualizationSpec, this.visualizationSpec), Object.assign({
71934
- timeFormatLocale: timeFormatLocale[locale]
71935
- }, this.defaultEmbedOptions, this.embedOptions, patchOption)).then(result => {
71936
- result.view.addSignalListener('chartClick', (name, value) => this.handleChartClick(name, value));
71937
- });
71938
- }
71939
- componentDidLoad() {
71940
- this.chartComponentReady.emit();
71941
- }
71942
- render() {
71943
- return (h$1("div", { ref: el => (this.chartContainer = el) }));
71944
- }
71945
- get root() { return getElement(this); }
71938
+ }
71939
+ componentDidLoad() {
71940
+ this.chartComponentReady.emit();
71941
+ }
71942
+ render() {
71943
+ return (h$1("div", { key: '109a4cf0a395ef4d9b6a5aec9e306d416ae86e65', ref: el => (this.chartContainer = el) }));
71944
+ }
71945
+ get root() { return getElement(this); }
71946
71946
  };
71947
- GuxVisualization.style = guxVisualizationCss;
71947
+ GuxVisualization.style = GuxVisualizationBetaStyle0;
71948
71948
 
71949
71949
  export { GuxVisualization as gux_visualization_beta };