@pie-element/charting 12.1.2-next.5 → 12.1.2-next.7

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.
@@ -16,10 +16,10 @@ var u = n("div")(({ theme: e }) => ({
16
16
  if (!e) return t;
17
17
  let n = [];
18
18
  return (t || []).forEach((t, r) => {
19
- let { editable: i, interactive: a } = t;
19
+ let { editable: i, interactive: a } = t, o = i && e[r]?.label ? e[r].label : t.label, s = a && e[r]?.value ? e[r].value : t.value;
20
20
  n[r] = {
21
- label: i && e[r]?.label ? e[r].label : t.label,
22
- value: a && e[r]?.value ? e[r].value : t.value,
21
+ label: o,
22
+ value: s,
23
23
  editable: t.editable,
24
24
  interactive: t.interactive
25
25
  };
@@ -123,4 +123,4 @@ var u = n("div")(({ theme: e }) => ({
123
123
  }
124
124
  };
125
125
  //#endregion
126
- export { h as default };
126
+ export { h as ChartingConfig, h as default };
@@ -1,5 +1,5 @@
1
- import e from "./charting-config.js";
2
- import t from "./correct-response.js";
1
+ import { ChartingConfig as e } from "./charting-config.js";
2
+ import { CorrectResponse as t } from "./correct-response.js";
3
3
  import { applyConstraints as n, getGridValues as r, getLabelValues as i } from "./utils.js";
4
4
  import a from "react";
5
5
  import o from "prop-types";
@@ -202,4 +202,4 @@ var _ = f("@pie-element:graphing:configure"), { Panel: te, toggle: v, radio: ne,
202
202
  }
203
203
  };
204
204
  //#endregion
205
- export { C as default };
205
+ export { C as Configure, C as default };
@@ -23,10 +23,10 @@ var l = n("div")(({ theme: e }) => ({
23
23
  if (!e) return t;
24
24
  let n = [...e], r = [];
25
25
  if ((t || []).forEach((t, n) => {
26
- let i = t.editable, a = t.interactive;
26
+ let i = t.editable, a = t.interactive, o = i && e[n]?.label ? e[n].label : t.label, s = a && e[n]?.value || a && e[n]?.value == 0 ? e[n].value : t.value;
27
27
  r[n] = {
28
- label: i && e[n]?.label ? e[n].label : t.label,
29
- value: a && e[n]?.value || a && e[n]?.value == 0 ? e[n].value : t.value,
28
+ label: o,
29
+ value: s,
30
30
  editable: t.editable,
31
31
  interactive: t.interactive
32
32
  };
@@ -112,4 +112,4 @@ var l = n("div")(({ theme: e }) => ({
112
112
  }
113
113
  };
114
114
  //#endregion
115
- export { y as default };
115
+ export { y as CorrectResponse, y as default, v as getUpdatedCategories };
@@ -47,5 +47,6 @@ export default class GraphLinesConfigure extends HTMLElement {
47
47
  insertSound(handler: any): void;
48
48
  onDeleteSound(src: any, done: any): void;
49
49
  _render(): void;
50
+ connectedCallback(): void;
50
51
  disconnectedCallback(): void;
51
52
  }
@@ -1,4 +1,4 @@
1
- import e from "./configure.js";
1
+ import { Configure as e } from "./configure.js";
2
2
  import t from "./defaults.js";
3
3
  import n from "react";
4
4
  import { createRoot as r } from "react-dom/client";
@@ -66,8 +66,11 @@ var d = a("pie-elements:graphing:configure"), f = class a extends HTMLElement {
66
66
  });
67
67
  }
68
68
  }
69
+ connectedCallback() {
70
+ this._render();
71
+ }
69
72
  disconnectedCallback() {
70
- this._root && this._root.unmount();
73
+ this._root &&= (this._root.unmount(), null);
71
74
  }
72
75
  };
73
76
  //#endregion
@@ -241,4 +241,4 @@ var t = [
241
241
  };
242
242
  };
243
243
  //#endregion
244
- export { o as applyConstraints, i as getGridValues, a as getLabelValues };
244
+ export { r as VALID_LABEL_VALUES, o as applyConstraints, i as getGridValues, a as getLabelValues };