genesys-spark-chart-components 4.117.0 → 4.118.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 (26) hide show
  1. package/dist/cjs/{color-palette-499ac97a.js → color-palette-73729ebd.js} +13 -14
  2. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-visualization-beta.cjs.entry.js +50 -23
  8. package/dist/esm/{color-palette-9e6cbce4.js → color-palette-825cfa86.js} +13 -14
  9. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  10. package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
  11. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  12. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  13. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
  14. package/dist/esm/gux-visualization-beta.entry.js +50 -23
  15. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
  16. package/dist/genesys-chart-webcomponents/{p-a24bfe34.entry.js → p-1ad842dd.entry.js} +1 -1
  17. package/dist/genesys-chart-webcomponents/p-4c66da4f.entry.js +11 -0
  18. package/dist/genesys-chart-webcomponents/{p-91a5097d.entry.js → p-5f45d3a9.entry.js} +1 -1
  19. package/dist/genesys-chart-webcomponents/{p-420ec809.entry.js → p-80c6c9b1.entry.js} +1 -1
  20. package/dist/genesys-chart-webcomponents/{p-349a8e07.entry.js → p-90667e1b.entry.js} +1 -1
  21. package/dist/genesys-chart-webcomponents/{p-1d10f377.entry.js → p-b7d71476.entry.js} +1 -1
  22. package/dist/genesys-chart-webcomponents/{p-a2d91663.js → p-c0f2d392.js} +1 -1
  23. package/dist/stencil-wrapper.js +1 -1
  24. package/dist/types/stencil-wrapper.d.ts +1 -1
  25. package/package.json +13 -14
  26. package/dist/genesys-chart-webcomponents/p-8395ae64.entry.js +0 -11
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const name = "genesys-spark-chart-components";
4
- const version = "4.117.0";
4
+ const version = "4.118.0";
5
5
  const description = "Common chart webcomponents";
6
6
  const license = "MIT";
7
7
  const main = "dist/stencil-wrapper.js";
@@ -54,13 +54,13 @@ const config = {
54
54
  const types = "dist/types/index.d.ts";
55
55
  const dependencies = {
56
56
  "@redsift/d3-rs-intl": "^0.4.0",
57
- vega: "5.30.0",
57
+ vega: "5.31.0",
58
58
  "vega-embed": "6.29.0",
59
59
  "vega-lite": "5.23.0"
60
60
  };
61
61
  const devDependencies = {
62
- "@babel/core": "^7.26.0",
63
- "@babel/preset-env": "^7.26.0",
62
+ "@babel/core": "^7.26.8",
63
+ "@babel/preset-env": "^7.26.8",
64
64
  "@stencil/core": "4.20.0",
65
65
  "@stencil/react-output-target": "^0.5.3",
66
66
  "@stencil/sass": "^3.0.12",
@@ -69,41 +69,40 @@ const devDependencies = {
69
69
  "@types/puppeteer": "^5.4.7",
70
70
  "axe-core": "^4.10.2",
71
71
  "axe-live": "^1.0.1",
72
- eslint: "^9.17.0",
72
+ eslint: "^9.20.1",
73
73
  "eslint-config-genesys-spark-components": "file:../../shared-configs/eslint-config-genesys-spark-components",
74
74
  "file-loader": "^6.2.0",
75
75
  "genesys-spark-tokens": "file:../genesys-spark-tokens",
76
- glob: "^11.0.0",
76
+ glob: "^11.0.1",
77
77
  globals: "^15.14.0",
78
78
  handlebars: "^4.7.8",
79
- inquirer: "^12.3.0",
79
+ inquirer: "^12.4.1",
80
80
  jest: "^29.7.0",
81
81
  "jest-cli": "^29.7.0",
82
82
  "jest-config": "^29.7.0",
83
83
  "jest-environment-node": "^29.7.0",
84
84
  "jest-junit": "^16.0.0",
85
85
  "jest-silent-reporter": "^0.6.0",
86
- jsdom: "^25.0.1",
87
- "lint-staged": "^15.3.0",
86
+ "lint-staged": "^15.4.3",
88
87
  "node-fetch": "^3.3.2",
89
88
  "npm-run-all": "^4.1.5",
90
- "postcss-html": "^1.7.0",
89
+ "postcss-html": "^1.8.0",
91
90
  "postcss-less": "^6.0.0",
92
91
  "postcss-scss": "^4.0.9",
93
- prettier: "^3.4.2",
92
+ prettier: "^3.5.0",
94
93
  "prettier-config-genesys-spark-components": "file:../../shared-configs/prettier-config-genesys-spark-components",
95
94
  "prettier-package-json": "^2.8.0",
96
95
  puppeteer: "^14.4.1",
97
96
  "rollup-plugin-copy": "^3.5.0",
98
97
  "semver-sort": "^1.0.0",
99
98
  smob: "^1.5.0",
100
- stylelint: "^16.12.0",
99
+ stylelint: "^16.14.1",
101
100
  "stylelint-config-genesys-spark-components": "file:../../shared-configs/stylelint-config-genesys-spark-components",
102
101
  "stylelint-config-html": "^1.1.0",
103
102
  "stylelint-config-recess-order": "^5.1.1",
104
103
  "stylelint-config-standard": "^36.0.1",
105
- "stylelint-scss": "^6.10.0",
106
- "ts-loader": "^9.5.1",
104
+ "stylelint-scss": "^6.11.0",
105
+ "ts-loader": "^9.5.2",
107
106
  typescript: "^4.9.5",
108
107
  xmldom: "^0.6.0"
109
108
  };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bb73bd35.js');
6
- const colorPalette = require('./color-palette-499ac97a.js');
6
+ const colorPalette = require('./color-palette-73729ebd.js');
7
7
  const logError = require('./log-error-8f448752.js');
8
8
 
9
9
  const guxChartColumnCss = "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}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bb73bd35.js');
6
- const colorPalette = require('./color-palette-499ac97a.js');
6
+ const colorPalette = require('./color-palette-73729ebd.js');
7
7
  const logError = require('./log-error-8f448752.js');
8
8
 
9
9
  const guxChartDonutCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bb73bd35.js');
6
- const colorPalette = require('./color-palette-499ac97a.js');
6
+ const colorPalette = require('./color-palette-73729ebd.js');
7
7
  const logError = require('./log-error-8f448752.js');
8
8
 
9
9
  const guxChartLineCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bb73bd35.js');
6
- const colorPalette = require('./color-palette-499ac97a.js');
6
+ const colorPalette = require('./color-palette-73729ebd.js');
7
7
  const logError = require('./log-error-8f448752.js');
8
8
 
9
9
  const guxChartPieCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bb73bd35.js');
6
- const colorPalette = require('./color-palette-499ac97a.js');
6
+ const colorPalette = require('./color-palette-73729ebd.js');
7
7
  const logError = require('./log-error-8f448752.js');
8
8
 
9
9
  const guxChartScatterPlotCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index$2 = require('./index-bb73bd35.js');
6
- const colorPalette = require('./color-palette-499ac97a.js');
6
+ const colorPalette = require('./color-palette-73729ebd.js');
7
7
 
8
8
  // Note: This regex matches even invalid JSON strings, but since we’re
9
9
  // working on the output of `JSON.stringify` we know that only valid strings
@@ -210,7 +210,6 @@ function log$1$1(method, level, input) {
210
210
  const args = [level].concat([].slice.call(input));
211
211
  console[method].apply(console, args); // eslint-disable-line no-console
212
212
  }
213
-
214
213
  const None$2 = 0;
215
214
  const Error$1 = 1;
216
215
  const Warn = 2;
@@ -556,9 +555,8 @@ function extentIndex (array, f) {
556
555
  return [u, v];
557
556
  }
558
557
 
559
- const hop = Object.prototype.hasOwnProperty;
560
558
  function has$1 (object, property) {
561
- return hop.call(object, property);
559
+ return Object.hasOwn(object, property);
562
560
  }
563
561
 
564
562
  const NULL = {};
@@ -3766,7 +3764,7 @@ function loaderFactory (fetch, fs) {
3766
3764
  options: options || {},
3767
3765
  sanitize: sanitize,
3768
3766
  load: load$1,
3769
- fileAccess: !!fs,
3767
+ fileAccess: false,
3770
3768
  file: fileLoader(fs),
3771
3769
  http: httpLoader(fetch)
3772
3770
  });
@@ -19714,12 +19712,12 @@ class Handler$1 {
19714
19712
  /**
19715
19713
  * Add an event handler. Subclasses should override this method.
19716
19714
  */
19717
- on( /*type, handler*/) {}
19715
+ on(/*type, handler*/) {}
19718
19716
 
19719
19717
  /**
19720
19718
  * Remove an event handler. Subclasses should override this method.
19721
19719
  */
19722
- off( /*type, handler*/) {}
19720
+ off(/*type, handler*/) {}
19723
19721
 
19724
19722
  /**
19725
19723
  * Utility method for finding the array index of an event handler.
@@ -19926,7 +19924,7 @@ class Renderer {
19926
19924
  * incremental should implement this method.
19927
19925
  * @param {Item} item - The dirty item whose bounds should be redrawn.
19928
19926
  */
19929
- dirty( /*item*/) {}
19927
+ dirty(/*item*/) {}
19930
19928
 
19931
19929
  /**
19932
19930
  * Render an input scenegraph, potentially with a set of dirty items.
@@ -19965,7 +19963,7 @@ class Renderer {
19965
19963
  * @param {Array} markTypes - Array of the mark types to render.
19966
19964
  * If undefined, render all mark types
19967
19965
  */
19968
- _render( /*scene, markTypes*/
19966
+ _render(/*scene, markTypes*/
19969
19967
  ) {
19970
19968
  // subclasses to override
19971
19969
  }
@@ -35110,7 +35108,7 @@ function SortedIndex() {
35110
35108
  addv[i] = key(data[i]);
35111
35109
  addi[i] = i;
35112
35110
  }
35113
- addv = sort(addv, addi);
35111
+ addv = sort$1(addv, addi);
35114
35112
  if (n0) {
35115
35113
  oldv = value;
35116
35114
  oldi = index;
@@ -35172,7 +35170,7 @@ function SortedIndex() {
35172
35170
  size: () => size
35173
35171
  };
35174
35172
  }
35175
- function sort(values, index) {
35173
+ function sort$1(values, index) {
35176
35174
  values.sort.call(index, (a, b) => {
35177
35175
  const x = values[a],
35178
35176
  y = values[b];
@@ -37249,6 +37247,12 @@ const TYPE_ENUM = 'E',
37249
37247
  TYPE_RANGE_EXC = 'R-E',
37250
37248
  TYPE_RANGE_LE = 'R-LE',
37251
37249
  TYPE_RANGE_RE = 'R-RE',
37250
+ TYPE_PRED_LT = 'E-LT',
37251
+ TYPE_PRED_LTE = 'E-LTE',
37252
+ TYPE_PRED_GT = 'E-GT',
37253
+ TYPE_PRED_GTE = 'E-GTE',
37254
+ TYPE_PRED_VALID = 'E-VALID',
37255
+ TYPE_PRED_ONE_OF = 'E-ONE',
37252
37256
  UNIT_INDEX = 'index:unit';
37253
37257
 
37254
37258
  // TODO: revisit date coercion?
@@ -37268,7 +37272,7 @@ function testPoint(datum, entry) {
37268
37272
  if (f.type === TYPE_ENUM) {
37269
37273
  // Enumerated fields can either specify individual values (single/multi selections)
37270
37274
  // or an array of values (interval selections).
37271
- if (isArray(values[i]) ? values[i].indexOf(dval) < 0 : dval !== values[i]) {
37275
+ if (isArray(values[i]) ? !values[i].includes(dval) : dval !== values[i]) {
37272
37276
  return false;
37273
37277
  }
37274
37278
  } else {
@@ -37282,6 +37286,18 @@ function testPoint(datum, entry) {
37282
37286
  if (!inrange(dval, values[i], false, false)) return false;
37283
37287
  } else if (f.type === TYPE_RANGE_LE) {
37284
37288
  if (!inrange(dval, values[i], false, true)) return false;
37289
+ } else if (f.type === TYPE_PRED_LT) {
37290
+ if (dval >= values[i]) return false;
37291
+ } else if (f.type === TYPE_PRED_LTE) {
37292
+ if (dval > values[i]) return false;
37293
+ } else if (f.type === TYPE_PRED_GT) {
37294
+ if (dval <= values[i]) return false;
37295
+ } else if (f.type === TYPE_PRED_GTE) {
37296
+ if (dval < values[i]) return false;
37297
+ } else if (f.type === TYPE_PRED_VALID) {
37298
+ if (dval === null || isNaN(dval)) return false;
37299
+ } else if (f.type === TYPE_PRED_ONE_OF) {
37300
+ if (values[i].indexOf(dval) === -1) return false;
37285
37301
  }
37286
37302
  }
37287
37303
  }
@@ -37484,11 +37500,11 @@ var ops = {
37484
37500
  if (!base.length) return value;
37485
37501
  var i = 0,
37486
37502
  n = value.length;
37487
- for (; i < n; ++i) if (base.indexOf(value[i]) < 0) base.push(value[i]);
37503
+ for (; i < n; ++i) if (!base.includes(value[i])) base.push(value[i]);
37488
37504
  return base;
37489
37505
  },
37490
37506
  E_intersect: function (base, value) {
37491
- return !base.length ? value : base.filter(v => value.indexOf(v) >= 0);
37507
+ return !base.length ? value : base.filter(v => value.includes(v));
37492
37508
  },
37493
37509
  R_union: function (base, value) {
37494
37510
  var lo = toNumber(value[0]),
@@ -37648,12 +37664,12 @@ function addScaleDependency(scope, params, name) {
37648
37664
  }
37649
37665
  }
37650
37666
 
37651
- function getScale(nameOrFunction, ctx) {
37652
- if (isFunction(nameOrFunction)) {
37653
- return nameOrFunction;
37654
- }
37655
- if (isString(nameOrFunction)) {
37656
- const maybeScale = ctx.scales[nameOrFunction];
37667
+ /**
37668
+ * Name must be a string. Return undefined if the scale is not registered.
37669
+ */
37670
+ function getScale(name, ctx) {
37671
+ if (isString(name)) {
37672
+ const maybeScale = ctx.scales[name];
37657
37673
  return maybeScale && isRegisteredScale(maybeScale.value) ? maybeScale.value : undefined;
37658
37674
  }
37659
37675
  return undefined;
@@ -37877,6 +37893,9 @@ function replace(str, pattern, repl) {
37877
37893
  function reverse$1(seq) {
37878
37894
  return array(seq).slice().reverse();
37879
37895
  }
37896
+ function sort(seq) {
37897
+ return array(seq).slice().sort(ascending$2);
37898
+ }
37880
37899
 
37881
37900
  function bandspace(count, paddingInner, paddingOuter) {
37882
37901
  return bandSpace(count || 0, paddingInner || 0, paddingOuter || 0);
@@ -37906,8 +37925,12 @@ function scale$2(name, value, group) {
37906
37925
  return s ? s(value) : undefined;
37907
37926
  }
37908
37927
 
37909
- function scaleGradient (scale, p0, p1, count, group) {
37910
- scale = getScale(scale, (group || this).context);
37928
+ /**
37929
+ * Passing a function is only used for for testing.
37930
+ * Outside of tests, the first argument should be a string.
37931
+ */
37932
+ function scaleGradient (scaleOrFunction, p0, p1, count, group) {
37933
+ let scale = typeof scaleOrFunction === 'string' ? getScale(scaleOrFunction, (group || this).context) : scaleOrFunction;
37911
37934
  const gradient = Gradient$1(p0, p1);
37912
37935
  let stops = scale.domain(),
37913
37936
  min = stops[0],
@@ -38123,6 +38146,7 @@ const functionContext = {
38123
38146
  lastindexof,
38124
38147
  replace,
38125
38148
  reverse: reverse$1,
38149
+ sort,
38126
38150
  slice: slice$1,
38127
38151
  flush,
38128
38152
  lerp,
@@ -41238,6 +41262,8 @@ const GuideLabelStyle = 'guide-label';
41238
41262
  const GuideTitleStyle = 'guide-title';
41239
41263
  const GroupTitleStyle = 'group-title';
41240
41264
  const GroupSubtitleStyle = 'group-subtitle';
41265
+
41266
+ /** All values of LegendType */
41241
41267
  const Symbols = 'symbol';
41242
41268
  const Gradient = 'gradient';
41243
41269
  const Discrete = 'discrete';
@@ -44149,7 +44175,7 @@ function parse (spec, config, options) {
44149
44175
  return parseView(spec, new Scope(config, options)).toRuntime();
44150
44176
  }
44151
44177
 
44152
- var version$4 = "5.30.0";
44178
+ var version$4 = "5.31.0";
44153
44179
 
44154
44180
  // -- Transforms -----
44155
44181
 
@@ -44534,6 +44560,7 @@ var Functions = {
44534
44560
  return apply('slice', arguments);
44535
44561
  },
44536
44562
  reverse: x => x.slice().reverse(),
44563
+ sort: x => x.slice().sort(ascending$2),
44537
44564
  // string functions
44538
44565
  parseFloat: parseFloat,
44539
44566
  parseInt: parseInt,
@@ -1,5 +1,5 @@
1
1
  const name = "genesys-spark-chart-components";
2
- const version = "4.117.0";
2
+ const version = "4.118.0";
3
3
  const description = "Common chart webcomponents";
4
4
  const license = "MIT";
5
5
  const main = "dist/stencil-wrapper.js";
@@ -52,13 +52,13 @@ const config = {
52
52
  const types = "dist/types/index.d.ts";
53
53
  const dependencies = {
54
54
  "@redsift/d3-rs-intl": "^0.4.0",
55
- vega: "5.30.0",
55
+ vega: "5.31.0",
56
56
  "vega-embed": "6.29.0",
57
57
  "vega-lite": "5.23.0"
58
58
  };
59
59
  const devDependencies = {
60
- "@babel/core": "^7.26.0",
61
- "@babel/preset-env": "^7.26.0",
60
+ "@babel/core": "^7.26.8",
61
+ "@babel/preset-env": "^7.26.8",
62
62
  "@stencil/core": "4.20.0",
63
63
  "@stencil/react-output-target": "^0.5.3",
64
64
  "@stencil/sass": "^3.0.12",
@@ -67,41 +67,40 @@ const devDependencies = {
67
67
  "@types/puppeteer": "^5.4.7",
68
68
  "axe-core": "^4.10.2",
69
69
  "axe-live": "^1.0.1",
70
- eslint: "^9.17.0",
70
+ eslint: "^9.20.1",
71
71
  "eslint-config-genesys-spark-components": "file:../../shared-configs/eslint-config-genesys-spark-components",
72
72
  "file-loader": "^6.2.0",
73
73
  "genesys-spark-tokens": "file:../genesys-spark-tokens",
74
- glob: "^11.0.0",
74
+ glob: "^11.0.1",
75
75
  globals: "^15.14.0",
76
76
  handlebars: "^4.7.8",
77
- inquirer: "^12.3.0",
77
+ inquirer: "^12.4.1",
78
78
  jest: "^29.7.0",
79
79
  "jest-cli": "^29.7.0",
80
80
  "jest-config": "^29.7.0",
81
81
  "jest-environment-node": "^29.7.0",
82
82
  "jest-junit": "^16.0.0",
83
83
  "jest-silent-reporter": "^0.6.0",
84
- jsdom: "^25.0.1",
85
- "lint-staged": "^15.3.0",
84
+ "lint-staged": "^15.4.3",
86
85
  "node-fetch": "^3.3.2",
87
86
  "npm-run-all": "^4.1.5",
88
- "postcss-html": "^1.7.0",
87
+ "postcss-html": "^1.8.0",
89
88
  "postcss-less": "^6.0.0",
90
89
  "postcss-scss": "^4.0.9",
91
- prettier: "^3.4.2",
90
+ prettier: "^3.5.0",
92
91
  "prettier-config-genesys-spark-components": "file:../../shared-configs/prettier-config-genesys-spark-components",
93
92
  "prettier-package-json": "^2.8.0",
94
93
  puppeteer: "^14.4.1",
95
94
  "rollup-plugin-copy": "^3.5.0",
96
95
  "semver-sort": "^1.0.0",
97
96
  smob: "^1.5.0",
98
- stylelint: "^16.12.0",
97
+ stylelint: "^16.14.1",
99
98
  "stylelint-config-genesys-spark-components": "file:../../shared-configs/stylelint-config-genesys-spark-components",
100
99
  "stylelint-config-html": "^1.1.0",
101
100
  "stylelint-config-recess-order": "^5.1.1",
102
101
  "stylelint-config-standard": "^36.0.1",
103
- "stylelint-scss": "^6.10.0",
104
- "ts-loader": "^9.5.1",
102
+ "stylelint-scss": "^6.11.0",
103
+ "ts-loader": "^9.5.2",
105
104
  typescript: "^4.9.5",
106
105
  xmldom: "^0.6.0"
107
106
  };
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-d8134161.js';
2
- import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-9e6cbce4.js';
2
+ import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-825cfa86.js';
3
3
  import { l as logError } from './log-error-fbbfc3ab.js';
4
4
 
5
5
  const guxChartColumnCss = "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}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-d8134161.js';
2
- import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-9e6cbce4.js';
2
+ import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-825cfa86.js';
3
3
  import { l as logError } from './log-error-fbbfc3ab.js';
4
4
 
5
5
  const guxChartDonutCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-d8134161.js';
2
- import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-9e6cbce4.js';
2
+ import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-825cfa86.js';
3
3
  import { l as logError } from './log-error-fbbfc3ab.js';
4
4
 
5
5
  const guxChartLineCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-d8134161.js';
2
- import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-9e6cbce4.js';
2
+ import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-825cfa86.js';
3
3
  import { l as logError } from './log-error-fbbfc3ab.js';
4
4
 
5
5
  const guxChartPieCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-d8134161.js';
2
- import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-9e6cbce4.js';
2
+ import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-825cfa86.js';
3
3
  import { l as logError } from './log-error-fbbfc3ab.js';
4
4
 
5
5
  const guxChartScatterPlotCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h as h$1, g as getElement } from './index-d8134161.js';
2
- import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, t as trackComponent } from './color-palette-9e6cbce4.js';
2
+ import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, t as trackComponent } from './color-palette-825cfa86.js';
3
3
 
4
4
  // Note: This regex matches even invalid JSON strings, but since we’re
5
5
  // working on the output of `JSON.stringify` we know that only valid strings
@@ -206,7 +206,6 @@ function log$1$1(method, level, input) {
206
206
  const args = [level].concat([].slice.call(input));
207
207
  console[method].apply(console, args); // eslint-disable-line no-console
208
208
  }
209
-
210
209
  const None$2 = 0;
211
210
  const Error$1 = 1;
212
211
  const Warn = 2;
@@ -552,9 +551,8 @@ function extentIndex (array, f) {
552
551
  return [u, v];
553
552
  }
554
553
 
555
- const hop = Object.prototype.hasOwnProperty;
556
554
  function has$1 (object, property) {
557
- return hop.call(object, property);
555
+ return Object.hasOwn(object, property);
558
556
  }
559
557
 
560
558
  const NULL = {};
@@ -3762,7 +3760,7 @@ function loaderFactory (fetch, fs) {
3762
3760
  options: options || {},
3763
3761
  sanitize: sanitize,
3764
3762
  load: load$1,
3765
- fileAccess: !!fs,
3763
+ fileAccess: false,
3766
3764
  file: fileLoader(fs),
3767
3765
  http: httpLoader(fetch)
3768
3766
  });
@@ -19710,12 +19708,12 @@ class Handler$1 {
19710
19708
  /**
19711
19709
  * Add an event handler. Subclasses should override this method.
19712
19710
  */
19713
- on( /*type, handler*/) {}
19711
+ on(/*type, handler*/) {}
19714
19712
 
19715
19713
  /**
19716
19714
  * Remove an event handler. Subclasses should override this method.
19717
19715
  */
19718
- off( /*type, handler*/) {}
19716
+ off(/*type, handler*/) {}
19719
19717
 
19720
19718
  /**
19721
19719
  * Utility method for finding the array index of an event handler.
@@ -19922,7 +19920,7 @@ class Renderer {
19922
19920
  * incremental should implement this method.
19923
19921
  * @param {Item} item - The dirty item whose bounds should be redrawn.
19924
19922
  */
19925
- dirty( /*item*/) {}
19923
+ dirty(/*item*/) {}
19926
19924
 
19927
19925
  /**
19928
19926
  * Render an input scenegraph, potentially with a set of dirty items.
@@ -19961,7 +19959,7 @@ class Renderer {
19961
19959
  * @param {Array} markTypes - Array of the mark types to render.
19962
19960
  * If undefined, render all mark types
19963
19961
  */
19964
- _render( /*scene, markTypes*/
19962
+ _render(/*scene, markTypes*/
19965
19963
  ) {
19966
19964
  // subclasses to override
19967
19965
  }
@@ -35106,7 +35104,7 @@ function SortedIndex() {
35106
35104
  addv[i] = key(data[i]);
35107
35105
  addi[i] = i;
35108
35106
  }
35109
- addv = sort(addv, addi);
35107
+ addv = sort$1(addv, addi);
35110
35108
  if (n0) {
35111
35109
  oldv = value;
35112
35110
  oldi = index;
@@ -35168,7 +35166,7 @@ function SortedIndex() {
35168
35166
  size: () => size
35169
35167
  };
35170
35168
  }
35171
- function sort(values, index) {
35169
+ function sort$1(values, index) {
35172
35170
  values.sort.call(index, (a, b) => {
35173
35171
  const x = values[a],
35174
35172
  y = values[b];
@@ -37245,6 +37243,12 @@ const TYPE_ENUM = 'E',
37245
37243
  TYPE_RANGE_EXC = 'R-E',
37246
37244
  TYPE_RANGE_LE = 'R-LE',
37247
37245
  TYPE_RANGE_RE = 'R-RE',
37246
+ TYPE_PRED_LT = 'E-LT',
37247
+ TYPE_PRED_LTE = 'E-LTE',
37248
+ TYPE_PRED_GT = 'E-GT',
37249
+ TYPE_PRED_GTE = 'E-GTE',
37250
+ TYPE_PRED_VALID = 'E-VALID',
37251
+ TYPE_PRED_ONE_OF = 'E-ONE',
37248
37252
  UNIT_INDEX = 'index:unit';
37249
37253
 
37250
37254
  // TODO: revisit date coercion?
@@ -37264,7 +37268,7 @@ function testPoint(datum, entry) {
37264
37268
  if (f.type === TYPE_ENUM) {
37265
37269
  // Enumerated fields can either specify individual values (single/multi selections)
37266
37270
  // or an array of values (interval selections).
37267
- if (isArray(values[i]) ? values[i].indexOf(dval) < 0 : dval !== values[i]) {
37271
+ if (isArray(values[i]) ? !values[i].includes(dval) : dval !== values[i]) {
37268
37272
  return false;
37269
37273
  }
37270
37274
  } else {
@@ -37278,6 +37282,18 @@ function testPoint(datum, entry) {
37278
37282
  if (!inrange(dval, values[i], false, false)) return false;
37279
37283
  } else if (f.type === TYPE_RANGE_LE) {
37280
37284
  if (!inrange(dval, values[i], false, true)) return false;
37285
+ } else if (f.type === TYPE_PRED_LT) {
37286
+ if (dval >= values[i]) return false;
37287
+ } else if (f.type === TYPE_PRED_LTE) {
37288
+ if (dval > values[i]) return false;
37289
+ } else if (f.type === TYPE_PRED_GT) {
37290
+ if (dval <= values[i]) return false;
37291
+ } else if (f.type === TYPE_PRED_GTE) {
37292
+ if (dval < values[i]) return false;
37293
+ } else if (f.type === TYPE_PRED_VALID) {
37294
+ if (dval === null || isNaN(dval)) return false;
37295
+ } else if (f.type === TYPE_PRED_ONE_OF) {
37296
+ if (values[i].indexOf(dval) === -1) return false;
37281
37297
  }
37282
37298
  }
37283
37299
  }
@@ -37480,11 +37496,11 @@ var ops = {
37480
37496
  if (!base.length) return value;
37481
37497
  var i = 0,
37482
37498
  n = value.length;
37483
- for (; i < n; ++i) if (base.indexOf(value[i]) < 0) base.push(value[i]);
37499
+ for (; i < n; ++i) if (!base.includes(value[i])) base.push(value[i]);
37484
37500
  return base;
37485
37501
  },
37486
37502
  E_intersect: function (base, value) {
37487
- return !base.length ? value : base.filter(v => value.indexOf(v) >= 0);
37503
+ return !base.length ? value : base.filter(v => value.includes(v));
37488
37504
  },
37489
37505
  R_union: function (base, value) {
37490
37506
  var lo = toNumber(value[0]),
@@ -37644,12 +37660,12 @@ function addScaleDependency(scope, params, name) {
37644
37660
  }
37645
37661
  }
37646
37662
 
37647
- function getScale(nameOrFunction, ctx) {
37648
- if (isFunction(nameOrFunction)) {
37649
- return nameOrFunction;
37650
- }
37651
- if (isString(nameOrFunction)) {
37652
- const maybeScale = ctx.scales[nameOrFunction];
37663
+ /**
37664
+ * Name must be a string. Return undefined if the scale is not registered.
37665
+ */
37666
+ function getScale(name, ctx) {
37667
+ if (isString(name)) {
37668
+ const maybeScale = ctx.scales[name];
37653
37669
  return maybeScale && isRegisteredScale(maybeScale.value) ? maybeScale.value : undefined;
37654
37670
  }
37655
37671
  return undefined;
@@ -37873,6 +37889,9 @@ function replace(str, pattern, repl) {
37873
37889
  function reverse$1(seq) {
37874
37890
  return array(seq).slice().reverse();
37875
37891
  }
37892
+ function sort(seq) {
37893
+ return array(seq).slice().sort(ascending$2);
37894
+ }
37876
37895
 
37877
37896
  function bandspace(count, paddingInner, paddingOuter) {
37878
37897
  return bandSpace(count || 0, paddingInner || 0, paddingOuter || 0);
@@ -37902,8 +37921,12 @@ function scale$2(name, value, group) {
37902
37921
  return s ? s(value) : undefined;
37903
37922
  }
37904
37923
 
37905
- function scaleGradient (scale, p0, p1, count, group) {
37906
- scale = getScale(scale, (group || this).context);
37924
+ /**
37925
+ * Passing a function is only used for for testing.
37926
+ * Outside of tests, the first argument should be a string.
37927
+ */
37928
+ function scaleGradient (scaleOrFunction, p0, p1, count, group) {
37929
+ let scale = typeof scaleOrFunction === 'string' ? getScale(scaleOrFunction, (group || this).context) : scaleOrFunction;
37907
37930
  const gradient = Gradient$1(p0, p1);
37908
37931
  let stops = scale.domain(),
37909
37932
  min = stops[0],
@@ -38119,6 +38142,7 @@ const functionContext = {
38119
38142
  lastindexof,
38120
38143
  replace,
38121
38144
  reverse: reverse$1,
38145
+ sort,
38122
38146
  slice: slice$1,
38123
38147
  flush,
38124
38148
  lerp,
@@ -41234,6 +41258,8 @@ const GuideLabelStyle = 'guide-label';
41234
41258
  const GuideTitleStyle = 'guide-title';
41235
41259
  const GroupTitleStyle = 'group-title';
41236
41260
  const GroupSubtitleStyle = 'group-subtitle';
41261
+
41262
+ /** All values of LegendType */
41237
41263
  const Symbols = 'symbol';
41238
41264
  const Gradient = 'gradient';
41239
41265
  const Discrete = 'discrete';
@@ -44145,7 +44171,7 @@ function parse (spec, config, options) {
44145
44171
  return parseView(spec, new Scope(config, options)).toRuntime();
44146
44172
  }
44147
44173
 
44148
- var version$4 = "5.30.0";
44174
+ var version$4 = "5.31.0";
44149
44175
 
44150
44176
  // -- Transforms -----
44151
44177
 
@@ -44530,6 +44556,7 @@ var Functions = {
44530
44556
  return apply('slice', arguments);
44531
44557
  },
44532
44558
  reverse: x => x.slice().reverse(),
44559
+ sort: x => x.slice().sort(ascending$2),
44533
44560
  // string functions
44534
44561
  parseFloat: parseFloat,
44535
44562
  parseInt: parseInt,