@circutor/charts 0.3.0 → 0.3.1

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.
@@ -45406,7 +45406,9 @@ function parseGroups(groups) {
45406
45406
  }
45407
45407
  function isValidTimeZone(timeZone) {
45408
45408
  try {
45409
- return true;
45409
+ // The result must be used: Rollup and terser drop an unused `new Intl.DateTimeFormat()` as side-effect free,
45410
+ // which turned this check into `return true` in the built packages
45411
+ return Boolean(new Intl.DateTimeFormat('en', { timeZone }).resolvedOptions().timeZone);
45410
45412
  }
45411
45413
  catch (_a) {
45412
45414
  return false;
@@ -45739,7 +45741,7 @@ const IticChart = class {
45739
45741
  if (!this.timeZone) {
45740
45742
  return;
45741
45743
  }
45742
- if (isValidTimeZone()) {
45744
+ if (isValidTimeZone(this.timeZone)) {
45743
45745
  this.validTimeZone = this.timeZone;
45744
45746
  }
45745
45747
  else {
@@ -45781,7 +45783,7 @@ const IticChart = class {
45781
45783
  this.chart.setOption(options, { notMerge: true });
45782
45784
  }
45783
45785
  render() {
45784
- return h("div", { key: '2bb964d590a36c9c9501761c3f848ad364a29030', class: "chart", ref: el => (this.container = el) });
45786
+ return h("div", { key: 'e202bbf61ad19502fd76a42f37a8ea69f2d8c58b', class: "chart", ref: el => (this.container = el) });
45785
45787
  }
45786
45788
  get el() { return getElement(this); }
45787
45789
  static get watchers() { return {
@@ -6,7 +6,7 @@ export declare class IticChart {
6
6
  * Point groups, as an array or a JSON string. Each group's `phase` code sets its name, color and order.
7
7
  * Extra fields in groups and points are kept and passed back in `pointClick`.
8
8
  */
9
- groups: ITICChartMarks[] | string;
9
+ groups?: ITICChartMarks[] | string;
10
10
  /**
11
11
  * Language of the texts, dates and numbers: `ca`, `de`, `en`, `es`, `fr` or `pt`. Only the language
12
12
  * is used (`es-ES` → `es`); any other value falls back to `en`.
@@ -12,7 +12,7 @@ export namespace Components {
12
12
  /**
13
13
  * Point groups, as an array or a JSON string. Each group's `phase` code sets its name, color and order. Extra fields in groups and points are kept and passed back in `pointClick`.
14
14
  */
15
- "groups": ITICChartMarks[] | string;
15
+ "groups"?: ITICChartMarks[] | string;
16
16
  /**
17
17
  * Language of the texts, dates and numbers: `ca`, `de`, `en`, `es`, `fr` or `pt`. Only the language is used (`es-ES` → `es`); any other value falls back to `en`.
18
18
  * @default 'en'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@circutor/charts",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Charts used by the Circutor Cloud team, as framework-agnostic Web Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -67,5 +67,5 @@
67
67
  "vitest": "^5.0.5"
68
68
  },
69
69
  "license": "MIT",
70
- "gitHead": "00048fd4dea626e18224e8d3da1205d32f14e441"
70
+ "gitHead": "cb1dba202f82c6b0493e8d262426ff6b2b70d3d5"
71
71
  }