@hybridcore/ui 1.6.22 → 1.6.24
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/components/charts/column-line-mix/logic.js +58 -62
- package/dist/components/charts/forecast-cone/index.js +58 -45
- package/dist/components/charts/forecast-cone/logic.js +347 -244
- package/dist/components/charts/logaritmic-scale/logic.js +257 -91
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/variable/index.js +1 -1
- package/dist/components/instance-form/components/variables/index.js +25 -23
- package/dist/components/instance-form/index.js +41 -39
- package/dist/components/instance-form/logic.js +41 -40
- package/dist/components/instance-variable-list/variable.js +14 -12
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/template-form/components/property-list/property-list-columns.js +36 -29
- package/dist/components/template-form/components/property-list/property-list-form.js +332 -269
- package/dist/components/template-property-filters/index.js +25 -25
- package/dist/components/template-property-filters/logic.js +12 -10
- package/dist/constants/index.js +1 -0
- package/dist/{index-BtlzPygz.js → index-BQ4_OA4b.js} +103 -101
- package/dist/main.d.ts +31 -10
- package/package.json +1 -1
- package/dist/Scrollbar-CTI7_8Qw.js +0 -171
|
@@ -1,45 +1,211 @@
|
|
|
1
|
-
import { R as
|
|
2
|
-
import { useThemeProps as
|
|
3
|
-
import
|
|
4
|
-
import { useId as
|
|
5
|
-
import { humanizeLabel as
|
|
1
|
+
import { R as O, A as L } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
|
+
import { useThemeProps as X, useTheme as S } from "@mui/material";
|
|
3
|
+
import j from "lodash";
|
|
4
|
+
import { useId as E, useRef as Y, useEffect as z } from "react";
|
|
5
|
+
import { humanizeLabel as I } from "../_common/format.js";
|
|
6
6
|
import { attachCombinedAxisTooltip as q } from "../_common/tooltip.js";
|
|
7
|
-
import { colorSetFromPalette as
|
|
8
|
-
import { c as
|
|
9
|
-
import { X as
|
|
10
|
-
import { X as
|
|
11
|
-
import { A as
|
|
12
|
-
import { C as
|
|
13
|
-
import { L as
|
|
14
|
-
import { D as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
7
|
+
import { colorSetFromPalette as H, applyDateAxisLabelFormat as U, applyValueFormat as W } from "../_common/utils.js";
|
|
8
|
+
import { m as R, q as Z, f as x, c as f } from "../../../Entity-BJCuhdq_.js";
|
|
9
|
+
import { X as $, V as J } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
10
|
+
import { X as K } from "../../../XYCursor-CVUSpqb9.js";
|
|
11
|
+
import { A as N, a as Q } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
12
|
+
import { C as tt } from "../../../CategoryAxis-B6NqW8qd.js";
|
|
13
|
+
import { L as et } from "../../../LineSeries-D_IL2qGF.js";
|
|
14
|
+
import { D as st, G as it } from "../../../GaplessDateAxis-B2g2jgSG.js";
|
|
15
|
+
import { R as V } from "../../../RoundedRectangle-BKLX1LKM.js";
|
|
16
|
+
import { C, G as rt } from "../../../Tooltip-vyZRZWih.js";
|
|
17
|
+
import { B as at } from "../../../Button-BLY4PVJC.js";
|
|
18
|
+
import { D as nt } from "../../../DateAxis-DEXKps1S.js";
|
|
19
|
+
class D extends C {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments), Object.defineProperty(this, "thumb", {
|
|
22
|
+
enumerable: !0,
|
|
23
|
+
configurable: !0,
|
|
24
|
+
writable: !0,
|
|
25
|
+
value: this._makeThumb()
|
|
26
|
+
}), Object.defineProperty(this, "startGrip", {
|
|
27
|
+
enumerable: !0,
|
|
28
|
+
configurable: !0,
|
|
29
|
+
writable: !0,
|
|
30
|
+
value: this._makeButton()
|
|
31
|
+
}), Object.defineProperty(this, "endGrip", {
|
|
32
|
+
enumerable: !0,
|
|
33
|
+
configurable: !0,
|
|
34
|
+
writable: !0,
|
|
35
|
+
value: this._makeButton()
|
|
36
|
+
}), Object.defineProperty(this, "_thumbBusy", {
|
|
37
|
+
enumerable: !0,
|
|
38
|
+
configurable: !0,
|
|
39
|
+
writable: !0,
|
|
40
|
+
value: !1
|
|
41
|
+
}), Object.defineProperty(this, "_startDown", {
|
|
42
|
+
enumerable: !0,
|
|
43
|
+
configurable: !0,
|
|
44
|
+
writable: !0,
|
|
45
|
+
value: !1
|
|
46
|
+
}), Object.defineProperty(this, "_endDown", {
|
|
47
|
+
enumerable: !0,
|
|
48
|
+
configurable: !0,
|
|
49
|
+
writable: !0,
|
|
50
|
+
value: !1
|
|
51
|
+
}), Object.defineProperty(this, "_thumbDown", {
|
|
52
|
+
enumerable: !0,
|
|
53
|
+
configurable: !0,
|
|
54
|
+
writable: !0,
|
|
55
|
+
value: !1
|
|
56
|
+
}), Object.defineProperty(this, "_gripDown", {
|
|
57
|
+
enumerable: !0,
|
|
58
|
+
configurable: !0,
|
|
59
|
+
writable: !0,
|
|
60
|
+
value: void 0
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
_addOrientationClass() {
|
|
64
|
+
this._settings.themeTags = R(this._settings.themeTags, ["scrollbar", this._settings.orientation]), this._settings.background || (this._settings.background = V.new(this._root, {
|
|
65
|
+
themeTags: R(this._settings.themeTags, ["main", "background"])
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
_makeButton() {
|
|
69
|
+
return this.children.push(at.new(this._root, {
|
|
70
|
+
themeTags: ["resize", "button", this.get("orientation")],
|
|
71
|
+
icon: rt.new(this._root, {
|
|
72
|
+
themeTags: ["icon"]
|
|
73
|
+
})
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
_makeThumb() {
|
|
77
|
+
return this.children.push(V.new(this._root, {
|
|
78
|
+
themeTags: ["thumb", this.get("orientation")]
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
_handleAnimation(t) {
|
|
82
|
+
t && this._disposers.push(t.events.on("stopped", () => {
|
|
83
|
+
this.setPrivateRaw("isBusy", !1), this._thumbBusy = !1;
|
|
84
|
+
}));
|
|
85
|
+
}
|
|
86
|
+
_afterNew() {
|
|
87
|
+
this._addOrientationClass(), super._afterNew();
|
|
88
|
+
const t = this.startGrip, e = this.endGrip, i = this.thumb, o = this.get("background");
|
|
89
|
+
o && this._disposers.push(o.events.on("click", (s) => {
|
|
90
|
+
this.setPrivateRaw("isBusy", !0);
|
|
91
|
+
const n = this._display.toLocal(s.point), h = this.width(), l = this.height(), d = this.get("orientation");
|
|
92
|
+
let u;
|
|
93
|
+
d == "vertical" ? u = (n.y - i.height() / 2) / l : u = (n.x - i.width() / 2) / h;
|
|
94
|
+
let a, p;
|
|
95
|
+
d == "vertical" ? (a = u * l, p = "y") : (a = u * h, p = "x");
|
|
96
|
+
const m = this.get("animationDuration", 0);
|
|
97
|
+
m > 0 ? (this._thumbBusy = !0, this._handleAnimation(this.thumb.animate({ key: p, to: a, duration: m, easing: this.get("animationEasing") }))) : (this.thumb.set(p, a), this._root.events.once("frameended", () => {
|
|
98
|
+
this.setPrivateRaw("isBusy", !1);
|
|
99
|
+
}));
|
|
100
|
+
})), this._disposers.push(i.events.on("dblclick", (s) => {
|
|
101
|
+
if (!Z(s.originalEvent, this))
|
|
102
|
+
return;
|
|
103
|
+
const n = this.get("animationDuration", 0), h = this.get("animationEasing");
|
|
104
|
+
this.animate({ key: "start", to: 0, duration: n, easing: h }), this.animate({ key: "end", to: 1, duration: n, easing: h });
|
|
105
|
+
})), this._disposers.push(t.events.on("pointerdown", () => {
|
|
106
|
+
this.setPrivateRaw("isBusy", !0), this._startDown = !0, this._gripDown = "start";
|
|
107
|
+
})), this._disposers.push(e.events.on("pointerdown", () => {
|
|
108
|
+
this.setPrivateRaw("isBusy", !0), this._endDown = !0, this._gripDown = "end";
|
|
109
|
+
})), this._disposers.push(i.events.on("pointerdown", () => {
|
|
110
|
+
this.setPrivateRaw("isBusy", !0), this._thumbDown = !0, this._gripDown = void 0;
|
|
111
|
+
})), this._disposers.push(t.events.on("globalpointerup", () => {
|
|
112
|
+
this._startDown && (this.setPrivateRaw("isBusy", !1), this._released()), this._startDown = !1;
|
|
113
|
+
})), this._disposers.push(e.events.on("globalpointerup", () => {
|
|
114
|
+
this._endDown && (this.setPrivateRaw("isBusy", !1), this._released()), this._endDown = !1;
|
|
115
|
+
})), this._disposers.push(i.events.on("globalpointerup", () => {
|
|
116
|
+
this._thumbDown && (this.setPrivateRaw("isBusy", !1), this._released()), this._thumbDown = !1;
|
|
117
|
+
})), this._disposers.push(t.on("x", () => {
|
|
118
|
+
this._updateThumb();
|
|
119
|
+
})), this._disposers.push(e.on("x", () => {
|
|
120
|
+
this._updateThumb();
|
|
121
|
+
})), this._disposers.push(t.on("y", () => {
|
|
122
|
+
this._updateThumb();
|
|
123
|
+
})), this._disposers.push(e.on("y", () => {
|
|
124
|
+
this._updateThumb();
|
|
125
|
+
})), this._disposers.push(i.events.on("positionchanged", () => {
|
|
126
|
+
this._updateGripsByThumb();
|
|
127
|
+
})), this.get("orientation") == "vertical" ? (t.set("x", 0), e.set("x", 0), this._disposers.push(i.adapters.add("y", (s) => Math.max(Math.min(Number(s), this.height() - i.height()), 0))), this._disposers.push(i.adapters.add("x", (s) => this.width() / 2)), this._disposers.push(t.adapters.add("x", (s) => this.width() / 2)), this._disposers.push(e.adapters.add("x", (s) => this.width() / 2)), this._disposers.push(t.adapters.add("y", (s) => Math.max(Math.min(Number(s), this.height()), 0))), this._disposers.push(e.adapters.add("y", (s) => Math.max(Math.min(Number(s), this.height()), 0)))) : (t.set("y", 0), e.set("y", 0), this._disposers.push(i.adapters.add("x", (s) => Math.max(Math.min(Number(s), this.width() - i.width()), 0))), this._disposers.push(i.adapters.add("y", (s) => this.height() / 2)), this._disposers.push(t.adapters.add("y", (s) => this.height() / 2)), this._disposers.push(e.adapters.add("y", (s) => this.height() / 2)), this._disposers.push(t.adapters.add("x", (s) => Math.max(Math.min(Number(s), this.width()), 0))), this._disposers.push(e.adapters.add("x", (s) => Math.max(Math.min(Number(s), this.width()), 0))));
|
|
128
|
+
}
|
|
129
|
+
_updateChildren() {
|
|
130
|
+
super._updateChildren(), (this.isDirty("end") || this.isDirty("start") || this._sizeDirty) && this.updateGrips();
|
|
131
|
+
}
|
|
132
|
+
_changed() {
|
|
133
|
+
if (super._changed(), this.isDirty("start") || this.isDirty("end")) {
|
|
134
|
+
const t = "rangechanged";
|
|
135
|
+
this.events.isEnabled(t) && this.events.dispatch(t, { type: t, target: this, start: this.get("start", 0), end: this.get("end", 1), grip: this._gripDown });
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
_released() {
|
|
139
|
+
const t = "released";
|
|
140
|
+
this.events.isEnabled(t) && this.events.dispatch(t, { type: t, target: this });
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* @ignore
|
|
144
|
+
*/
|
|
145
|
+
updateGrips() {
|
|
146
|
+
const t = this.startGrip, e = this.endGrip, i = this.get("orientation"), o = this.height(), s = this.width();
|
|
147
|
+
i == "vertical" ? (t.set("y", o * this.get("start", 0)), e.set("y", o * this.get("end", 1))) : (t.set("x", s * this.get("start", 0)), e.set("x", s * this.get("end", 1)));
|
|
148
|
+
const n = this.getPrivate("positionTextFunction"), h = Math.round(this.get("start", 0) * 100), l = Math.round(this.get("end", 0) * 100);
|
|
149
|
+
let d, u;
|
|
150
|
+
n ? (d = n.call(this, this.get("start", 0)), u = n.call(this, this.get("end", 0))) : (d = h + "%", u = l + "%"), t.set("ariaLabel", this._t("From %1", void 0, d)), t.set("ariaValueNow", "" + h), t.set("ariaValueText", h + "%"), t.set("ariaValueMin", "0"), t.set("ariaValueMax", "100"), e.set("ariaLabel", this._t("To %1", void 0, u)), e.set("ariaValueNow", "" + l), e.set("ariaValueText", l + "%"), e.set("ariaValueMin", "0"), e.set("ariaValueMax", "100");
|
|
151
|
+
}
|
|
152
|
+
_updateThumb() {
|
|
153
|
+
const t = this.thumb, e = this.startGrip, i = this.endGrip, o = this.height(), s = this.width();
|
|
154
|
+
let n = e.x(), h = i.x(), l = e.y(), d = i.y(), u = 0, a = 1;
|
|
155
|
+
this.get("orientation") == "vertical" ? x(l) && x(d) && (!this._thumbBusy && !t.isDragging() && (t.set("height", d - l), t.set("y", l)), u = l / o, a = d / o) : x(n) && x(h) && (!this._thumbBusy && !t.isDragging() && (t.set("width", h - n), t.set("x", n)), u = n / s, a = h / s), this.getPrivate("isBusy") && (this.get("start") != u || this.get("end") != a) && (this.set("start", u), this.set("end", a));
|
|
156
|
+
const p = this.getPrivate("positionTextFunction"), m = Math.round(this.get("start", 0) * 100), _ = Math.round(this.get("end", 0) * 100);
|
|
157
|
+
let g, w;
|
|
158
|
+
p ? (g = p.call(this, this.get("start", 0)), w = p.call(this, this.get("end", 0))) : (g = m + "%", w = _ + "%"), t.set("ariaLabel", this._t("From %1 to %2", void 0, g, w)), t.set("ariaValueNow", "" + m), t.set("ariaValueText", m + "%");
|
|
159
|
+
}
|
|
160
|
+
_updateGripsByThumb() {
|
|
161
|
+
const t = this.thumb, e = this.startGrip, i = this.endGrip;
|
|
162
|
+
if (this.get("orientation") == "vertical") {
|
|
163
|
+
const o = t.height();
|
|
164
|
+
e.set("y", t.y()), i.set("y", t.y() + o);
|
|
165
|
+
} else {
|
|
166
|
+
const o = t.width();
|
|
167
|
+
e.set("x", t.x()), i.set("x", t.x() + o);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
Object.defineProperty(D, "className", {
|
|
172
|
+
enumerable: !0,
|
|
173
|
+
configurable: !0,
|
|
174
|
+
writable: !0,
|
|
175
|
+
value: "Scrollbar"
|
|
176
|
+
});
|
|
177
|
+
Object.defineProperty(D, "classNames", {
|
|
178
|
+
enumerable: !0,
|
|
179
|
+
configurable: !0,
|
|
180
|
+
writable: !0,
|
|
181
|
+
value: C.classNames.concat([D.className])
|
|
182
|
+
});
|
|
183
|
+
const Gt = (G) => {
|
|
184
|
+
const t = X({ props: G, name: "HCLogaritmicScale" }), {
|
|
185
|
+
dimensions: e,
|
|
186
|
+
values: i,
|
|
187
|
+
data: o,
|
|
188
|
+
initDelay: s = 0,
|
|
189
|
+
baseInterval: n,
|
|
190
|
+
colors: h,
|
|
191
|
+
skipEmptyDates: l = !1,
|
|
192
|
+
sx: d,
|
|
193
|
+
...u
|
|
194
|
+
} = t, a = S(), m = `hc-logaritmic-scale-${E().replace(/:/g, "")}`, _ = Y(null);
|
|
195
|
+
let g = null;
|
|
196
|
+
e.length < 1 ? g = "LogaritmicScale requires at least 1 dimension" : i.length < 1 && (g = "LogaritmicScale requires at least 1 value"), z(() => {
|
|
197
|
+
if (g) return;
|
|
198
|
+
let T;
|
|
199
|
+
return T = setTimeout(() => {
|
|
200
|
+
var P, B, M, F;
|
|
201
|
+
const r = O.new(m);
|
|
202
|
+
_.current = r, r.setThemes([L.new(r)]), r.interfaceColors.setAll({
|
|
203
|
+
text: f(a.palette.text.primary),
|
|
204
|
+
grid: f(a.palette.divider),
|
|
205
|
+
stroke: f(a.palette.divider)
|
|
40
206
|
});
|
|
41
|
-
const
|
|
42
|
-
|
|
207
|
+
const c = r.container.children.push(
|
|
208
|
+
$.new(r, {
|
|
43
209
|
panX: !0,
|
|
44
210
|
panY: !0,
|
|
45
211
|
wheelX: "none",
|
|
@@ -48,81 +214,81 @@ const xe = (X) => {
|
|
|
48
214
|
pinchZoomX: !0
|
|
49
215
|
})
|
|
50
216
|
);
|
|
51
|
-
|
|
217
|
+
c.set("colors", H(r, h)), c.set(
|
|
52
218
|
"cursor",
|
|
53
|
-
|
|
219
|
+
K.new(r, { behavior: "none" })
|
|
54
220
|
).lineY.set("visible", !1);
|
|
55
|
-
let
|
|
56
|
-
if (
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
221
|
+
let b, A = o;
|
|
222
|
+
if (e[0].type === "date") {
|
|
223
|
+
A = j.orderBy(o, [e[0].value]);
|
|
224
|
+
const y = l ? it : nt;
|
|
225
|
+
b = c.xAxes.push(
|
|
226
|
+
y.new(r, {
|
|
61
227
|
maxDeviation: 0.1,
|
|
62
228
|
groupData: !1,
|
|
63
|
-
baseInterval:
|
|
64
|
-
renderer:
|
|
229
|
+
baseInterval: n || { timeUnit: "day", count: 1 },
|
|
230
|
+
renderer: N.new(r, {})
|
|
65
231
|
})
|
|
66
|
-
), (
|
|
67
|
-
stroke:
|
|
232
|
+
), (P = b.get("renderer")) == null || P.grid.template.setAll({
|
|
233
|
+
stroke: f(a.palette.divider),
|
|
68
234
|
strokeOpacity: 1
|
|
69
|
-
}),
|
|
235
|
+
}), U(b, e[0]);
|
|
70
236
|
} else
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
categoryField:
|
|
74
|
-
renderer:
|
|
237
|
+
b = c.xAxes.push(
|
|
238
|
+
tt.new(r, {
|
|
239
|
+
categoryField: e[0].value,
|
|
240
|
+
renderer: N.new(r, {})
|
|
75
241
|
})
|
|
76
|
-
),
|
|
242
|
+
), r.numberFormatter.setAll({
|
|
77
243
|
numberFormat: "#",
|
|
78
244
|
numericFields: ["valueX"]
|
|
79
|
-
}),
|
|
80
|
-
stroke:
|
|
245
|
+
}), b.data.setAll(A), (B = b.get("renderer")) == null || B.grid.template.setAll({
|
|
246
|
+
stroke: f(a.palette.divider),
|
|
81
247
|
strokeOpacity: 1
|
|
82
248
|
});
|
|
83
|
-
const
|
|
84
|
-
|
|
249
|
+
const k = c.yAxes.push(
|
|
250
|
+
J.new(r, {
|
|
85
251
|
logarithmic: !0,
|
|
86
|
-
renderer:
|
|
252
|
+
renderer: Q.new(r, { minorGridEnabled: !0 })
|
|
87
253
|
})
|
|
88
254
|
);
|
|
89
|
-
(
|
|
90
|
-
stroke:
|
|
255
|
+
(M = k.get("renderer")) == null || M.grid.template.setAll({
|
|
256
|
+
stroke: f(a.palette.divider),
|
|
91
257
|
strokeOpacity: 1
|
|
92
|
-
}),
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
name:
|
|
96
|
-
xAxis:
|
|
97
|
-
yAxis:
|
|
98
|
-
valueYField:
|
|
99
|
-
...
|
|
258
|
+
}), i.forEach((y) => {
|
|
259
|
+
const v = c.series.push(
|
|
260
|
+
et.new(r, {
|
|
261
|
+
name: y.label ?? I(y.name),
|
|
262
|
+
xAxis: b,
|
|
263
|
+
yAxis: k,
|
|
264
|
+
valueYField: y.dataFieldName,
|
|
265
|
+
...e[0].type === "date" ? { valueXField: e[0].value } : { categoryXField: e[0].value }
|
|
100
266
|
})
|
|
101
267
|
);
|
|
102
|
-
|
|
268
|
+
v.strokes.template.setAll({ strokeWidth: 3 }), e[0].type === "date" && (v.data.processor = st.new(r, {
|
|
103
269
|
dateFormat: "i",
|
|
104
|
-
dateFields: [
|
|
105
|
-
})),
|
|
270
|
+
dateFields: [e[0].value]
|
|
271
|
+
})), v.data.setAll(A), v.appear(1e3);
|
|
106
272
|
}), q({
|
|
107
|
-
root:
|
|
108
|
-
chart:
|
|
109
|
-
xAxis:
|
|
273
|
+
root: r,
|
|
274
|
+
chart: c,
|
|
275
|
+
xAxis: b,
|
|
110
276
|
theme: a,
|
|
111
|
-
isDateAxis:
|
|
112
|
-
baseInterval:
|
|
277
|
+
isDateAxis: e[0].type === "date",
|
|
278
|
+
baseInterval: n,
|
|
113
279
|
follow: !0
|
|
114
|
-
}),
|
|
280
|
+
}), c.set(
|
|
115
281
|
"scrollbarX",
|
|
116
|
-
|
|
117
|
-
),
|
|
118
|
-
},
|
|
119
|
-
var
|
|
120
|
-
|
|
282
|
+
D.new(r, { orientation: "horizontal" })
|
|
283
|
+
), W(r, (F = i == null ? void 0 : i[0]) == null ? void 0 : F.format), c.appear(1e3, 100);
|
|
284
|
+
}, s), () => {
|
|
285
|
+
var r;
|
|
286
|
+
T && clearTimeout(T), (r = _.current) == null || r.dispose(), _.current = null;
|
|
121
287
|
};
|
|
122
|
-
}, [
|
|
123
|
-
const
|
|
124
|
-
return { chartId:
|
|
288
|
+
}, [o, e, i, a.palette.mode, h, l]);
|
|
289
|
+
const w = { ...t };
|
|
290
|
+
return { chartId: m, ownerState: w, sx: d, error: g, other: u };
|
|
125
291
|
};
|
|
126
292
|
export {
|
|
127
|
-
|
|
293
|
+
Gt as useLogaritmicScaleLogic
|
|
128
294
|
};
|
|
@@ -9,7 +9,7 @@ import "../../../conditional-wrapper/index.js";
|
|
|
9
9
|
import "../../helpers.js";
|
|
10
10
|
import "../../styled.js";
|
|
11
11
|
import "../TopLabelWrapper.js";
|
|
12
|
-
import { C as b } from "../../../../index-
|
|
12
|
+
import { C as b } from "../../../../index-BQ4_OA4b.js";
|
|
13
13
|
export {
|
|
14
14
|
b as CompositeList
|
|
15
15
|
};
|
|
@@ -9,7 +9,7 @@ import "../../../geometry-picker/index.js";
|
|
|
9
9
|
import "../../../phone-input/index.js";
|
|
10
10
|
import "../../helpers.js";
|
|
11
11
|
import "../../styled.js";
|
|
12
|
-
import { V as d } from "../../../../index-
|
|
12
|
+
import { V as d } from "../../../../index-BQ4_OA4b.js";
|
|
13
13
|
import "../composite-matrix/index.js";
|
|
14
14
|
import "../TopLabelWrapper.js";
|
|
15
15
|
export {
|
|
@@ -1,54 +1,56 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import l from "lodash";
|
|
3
|
-
import
|
|
4
|
-
import { VariablesContainer as
|
|
5
|
-
import { V as
|
|
6
|
-
const
|
|
3
|
+
import x from "react";
|
|
4
|
+
import { VariablesContainer as y, FieldContainer as C } from "../../styled.js";
|
|
5
|
+
import { V as I } from "../../../../index-BQ4_OA4b.js";
|
|
6
|
+
const P = (d) => {
|
|
7
7
|
const {
|
|
8
8
|
template: n,
|
|
9
9
|
value: i,
|
|
10
10
|
mapboxAccessToken: u,
|
|
11
11
|
variant: p = "outlined",
|
|
12
12
|
labelPosition: c = "default",
|
|
13
|
-
fieldOptions:
|
|
13
|
+
fieldOptions: r,
|
|
14
|
+
mode: m = "create",
|
|
14
15
|
onChange: f
|
|
15
|
-
} = d,
|
|
16
|
-
const
|
|
16
|
+
} = d, b = x.useMemo(() => {
|
|
17
|
+
const e = (n == null ? void 0 : n.properties.filter((o) => o.visible)) ?? [], t = l.orderBy(e, "id");
|
|
17
18
|
return l.orderBy(
|
|
18
19
|
t,
|
|
19
20
|
(o) => {
|
|
20
21
|
var a;
|
|
21
|
-
return ((a =
|
|
22
|
+
return ((a = r == null ? void 0 : r[o.propertyId]) == null ? void 0 : a.order) ?? 0;
|
|
22
23
|
}
|
|
23
24
|
);
|
|
24
|
-
}, [n,
|
|
25
|
+
}, [n, r]), h = (e) => {
|
|
25
26
|
f({
|
|
26
|
-
target: { value: { ...i, ...
|
|
27
|
+
target: { value: { ...i, ...e } }
|
|
27
28
|
});
|
|
28
29
|
};
|
|
29
|
-
return n === void 0 ? null : /* @__PURE__ */ s(
|
|
30
|
+
return n === void 0 ? null : /* @__PURE__ */ s(y, { children: b.filter((e) => {
|
|
30
31
|
var t;
|
|
31
|
-
return
|
|
32
|
-
}).map((
|
|
32
|
+
return r ? !((t = r[e.propertyId]) != null && t.hidden) : !0;
|
|
33
|
+
}).map((e) => {
|
|
33
34
|
var o;
|
|
34
|
-
const t = i ? i[
|
|
35
|
-
return /* @__PURE__ */
|
|
35
|
+
const t = i ? i[e.propertyId] : "";
|
|
36
|
+
return /* @__PURE__ */ v(C, { children: [
|
|
36
37
|
/* @__PURE__ */ s(
|
|
37
|
-
|
|
38
|
+
I,
|
|
38
39
|
{
|
|
39
|
-
property:
|
|
40
|
+
property: e,
|
|
40
41
|
value: t,
|
|
41
42
|
mapboxAccessToken: u,
|
|
42
43
|
variant: p,
|
|
43
44
|
labelPosition: c,
|
|
44
|
-
fieldOptions:
|
|
45
|
-
|
|
45
|
+
fieldOptions: r,
|
|
46
|
+
mode: m,
|
|
47
|
+
onChange: h
|
|
46
48
|
}
|
|
47
49
|
),
|
|
48
|
-
|
|
49
|
-
] },
|
|
50
|
+
r && ((o = r[e.propertyId]) == null ? void 0 : o.helperText)
|
|
51
|
+
] }, e.propertyId);
|
|
50
52
|
}) });
|
|
51
53
|
};
|
|
52
54
|
export {
|
|
53
|
-
|
|
55
|
+
P as Variables
|
|
54
56
|
};
|