@pie-element/charting 12.1.2-next.4 → 12.1.2-next.6
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.
- package/dist/author/charting-config.js +4 -4
- package/dist/author/configure.js +3 -3
- package/dist/author/correct-response.js +4 -4
- package/dist/author/index.d.ts +1 -0
- package/dist/author/index.js +5 -2
- package/dist/author/utils.js +1 -1
- package/dist/browser/author/index.js +2245 -301
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/{chart-CQhg5LMe.js → chart-xd4t0zS7.js} +27890 -33167
- package/dist/browser/chart-xd4t0zS7.js.map +1 -0
- package/dist/browser/controller/index.js +3 -3
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +104 -86
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/{dist-CmxUEgpe.js → dist-D6aoYeoC.js} +2 -2
- package/dist/browser/{dist-CmxUEgpe.js.map → dist-D6aoYeoC.js.map} +1 -1
- package/dist/controller/index.js +1 -1
- package/dist/delivery/index.d.ts +3 -0
- package/dist/delivery/index.js +25 -7
- package/dist/delivery/main.js +1 -1
- package/dist/index.iife.js +110 -114
- package/package.json +13 -8
- package/dist/browser/chart-CQhg5LMe.js.map +0 -1
|
@@ -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:
|
|
22
|
-
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 };
|
package/dist/author/configure.js
CHANGED
|
@@ -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:
|
|
29
|
-
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 };
|
package/dist/author/index.d.ts
CHANGED
package/dist/author/index.js
CHANGED
|
@@ -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
|
|
73
|
+
this._root &&= (this._root.unmount(), null);
|
|
71
74
|
}
|
|
72
75
|
};
|
|
73
76
|
//#endregion
|
package/dist/author/utils.js
CHANGED