@embeddable.com/remarkable-ui 0.1.51 → 0.1.52
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/BarChartDefaultHorizontalPro.js +3 -3
- package/dist/BarChartDefaultPro.js +3 -3
- package/dist/BarChartGroupedHorizontalPro.js +3 -3
- package/dist/BarChartGroupedPro.js +3 -3
- package/dist/BarChartStackedHorizontalPro.js +3 -3
- package/dist/BarChartStackedPro.js +3 -3
- package/dist/{ChartCard-D-0O5ugW.js → ChartCard-9vU81B9E.js} +2 -2
- package/dist/{ChartCard-D-0O5ugW.js.map → ChartCard-9vU81B9E.js.map} +1 -1
- package/dist/{ComparisonPeriod.type.emb-CYp3nw-9.js → ComparisonPeriod.type.emb-Bc58XXHO.js} +2 -2
- package/dist/{ComparisonPeriod.type.emb-CYp3nw-9.js.map → ComparisonPeriod.type.emb-Bc58XXHO.js.map} +1 -1
- package/dist/ComparisonPeriodSelectFieldPro.js +4 -4
- package/dist/DateRangeSelectFieldPro.js +2 -2
- package/dist/DonutChartPro.js +2 -2
- package/dist/DonutLabelChartPro.js +2 -2
- package/dist/{EditorCard-BhC7oToX.js → EditorCard-CQCOOD0u.js} +2 -2
- package/dist/{EditorCard-BhC7oToX.js.map → EditorCard-CQCOOD0u.js.map} +1 -1
- package/dist/{HeatMap-By9_uzV_.js → HeatMap-EjQRtDvC.js} +2 -2
- package/dist/{HeatMap-By9_uzV_.js.map → HeatMap-EjQRtDvC.js.map} +1 -1
- package/dist/HeatMapPro.js +4 -4
- package/dist/{KpiChart-CS9s8nJ4.js → KpiChart-CtIsMk4c.js} +2 -2
- package/dist/{KpiChart-CS9s8nJ4.js.map → KpiChart-CtIsMk4c.js.map} +1 -1
- package/dist/KpiChartNumberComparisonPro.js +6 -6
- package/dist/KpiChartNumberPro.js +4 -4
- package/dist/LineChartComparisonDefaultPro.js +5 -5
- package/dist/LineChartDefaultPro.js +3 -3
- package/dist/LineChartGroupedPro.js +3 -3
- package/dist/MultiSelectFieldPro.js +2 -2
- package/dist/PieChartPro.js +2 -2
- package/dist/{PivotTable-Cx4WG6MV.js → PivotTable-BTtSAZkU.js} +2 -2
- package/dist/{PivotTable-Cx4WG6MV.js.map → PivotTable-BTtSAZkU.js.map} +1 -1
- package/dist/PivotTablePro.js +4 -4
- package/dist/{SingleSelectField-DlVCi5Ej.js → SingleSelectField-Cu5phRJ-.js} +3 -3
- package/dist/{SingleSelectField-DlVCi5Ej.js.map → SingleSelectField-Cu5phRJ-.js.map} +1 -1
- package/dist/SingleSelectFieldPro.js +2 -2
- package/dist/TableChartPaginated.js +3 -3
- package/dist/{bars.utils-DTdoPs5N.js → bars.utils-H-eVsaD9.js} +4 -4
- package/dist/{bars.utils-DTdoPs5N.js.map → bars.utils-H-eVsaD9.js.map} +1 -1
- package/dist/{charts.utils-D9TXwxGs.js → charts.utils-BHaQCnGS.js} +3 -3
- package/dist/{charts.utils-D9TXwxGs.js.map → charts.utils-BHaQCnGS.js.map} +1 -1
- package/dist/{component.constants-DCOqCFoY.js → component.constants-BysG97Au.js} +96 -90
- package/dist/{component.constants-DCOqCFoY.js.map → component.constants-BysG97Au.js.map} +1 -1
- package/dist/embeddable-components.json +13 -13
- package/dist/{formatter.utils-B80iNq9Q.js → formatter.utils-tk7xEyBO.js} +2 -2
- package/dist/{formatter.utils-B80iNq9Q.js.map → formatter.utils-tk7xEyBO.js.map} +1 -1
- package/dist/{index--tdFwk_H.js → index-B149xfYw.js} +4 -4
- package/dist/{index--tdFwk_H.js.map → index-B149xfYw.js.map} +1 -1
- package/dist/{index-DpIR-B0R.js → index-BZmaPHSu.js} +4 -4
- package/dist/{index-DpIR-B0R.js.map → index-BZmaPHSu.js.map} +1 -1
- package/dist/{index-D4oPbYPT.js → index-CAZ9r1pH.js} +4 -4
- package/dist/{index-D4oPbYPT.js.map → index-CAZ9r1pH.js.map} +1 -1
- package/dist/{index-CmE__sUg.js → index-Cdd-V_lk.js} +5 -5
- package/dist/{index-CmE__sUg.js.map → index-Cdd-V_lk.js.map} +1 -1
- package/dist/{index-C3o3AQpK.js → index-HfLTeWS9.js} +5 -5
- package/dist/{index-C3o3AQpK.js.map → index-HfLTeWS9.js.map} +1 -1
- package/dist/{index-BcPj51g3.js → index-Ys3psTd9.js} +4 -4
- package/dist/{index-BcPj51g3.js.map → index-Ys3psTd9.js.map} +1 -1
- package/dist/index.js +19 -19
- package/dist/{pies.utils-DEkgZgVk.js → pies.utils-DKG--4_R.js} +4 -4
- package/dist/{pies.utils-DEkgZgVk.js.map → pies.utils-DKG--4_R.js.map} +1 -1
- package/dist/remarkable-ui/charts/lines/lines.utils.d.ts.map +1 -1
- package/dist/{timeRange.utils-u1NZ0u7o.js → timeRange.utils-CLeolDg1.js} +2 -2
- package/dist/{timeRange.utils-u1NZ0u7o.js.map → timeRange.utils-CLeolDg1.js.map} +1 -1
- package/package.json +1 -1
|
@@ -6553,11 +6553,11 @@ function z(e, t) {
|
|
|
6553
6553
|
return typeof e > "u" ? t : e;
|
|
6554
6554
|
}
|
|
6555
6555
|
const hx = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 : +e / t, Cd = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 * t : +e;
|
|
6556
|
-
function
|
|
6556
|
+
function G(e, t, n) {
|
|
6557
6557
|
if (e && typeof e.call == "function")
|
|
6558
6558
|
return e.apply(n, t);
|
|
6559
6559
|
}
|
|
6560
|
-
function
|
|
6560
|
+
function q(e, t, n, i) {
|
|
6561
6561
|
let s, o, r;
|
|
6562
6562
|
if (J(e))
|
|
6563
6563
|
for (o = e.length, s = 0; s < o; s++)
|
|
@@ -9797,7 +9797,7 @@ var Et = {
|
|
|
9797
9797
|
if (!e)
|
|
9798
9798
|
return;
|
|
9799
9799
|
const s = lt(e.options.layout.padding), o = Math.max(t - s.width, 0), r = Math.max(n - s.height, 0), a = d_(e.boxes), l = a.vertical, c = a.horizontal;
|
|
9800
|
-
|
|
9800
|
+
q(e.boxes, (g) => {
|
|
9801
9801
|
typeof g.beforeLayout == "function" && g.beforeLayout();
|
|
9802
9802
|
});
|
|
9803
9803
|
const u = l.reduce((g, m) => m.box.options && m.box.options.display === !1 ? g : g + 1, 0) || 1, d = Object.freeze({
|
|
@@ -9824,7 +9824,7 @@ var Et = {
|
|
|
9824
9824
|
bottom: h.top + h.h,
|
|
9825
9825
|
height: h.h,
|
|
9826
9826
|
width: h.w
|
|
9827
|
-
},
|
|
9827
|
+
}, q(a.chartArea, (g) => {
|
|
9828
9828
|
const m = g.box;
|
|
9829
9829
|
Object.assign(m, e.chartArea), m.update(h.w, h.h, {
|
|
9830
9830
|
left: 0,
|
|
@@ -10150,7 +10150,7 @@ function N_(e, t, n) {
|
|
|
10150
10150
|
return l;
|
|
10151
10151
|
}
|
|
10152
10152
|
function F_(e, t) {
|
|
10153
|
-
|
|
10153
|
+
q(e, (n) => {
|
|
10154
10154
|
const i = n.gc, s = i.length / 2;
|
|
10155
10155
|
let o;
|
|
10156
10156
|
if (s > t) {
|
|
@@ -10271,7 +10271,7 @@ class Ue extends ft {
|
|
|
10271
10271
|
this._cache = {}, this._dataLimitsCached = !1;
|
|
10272
10272
|
}
|
|
10273
10273
|
beforeUpdate() {
|
|
10274
|
-
|
|
10274
|
+
G(this.options.beforeUpdate, [
|
|
10275
10275
|
this
|
|
10276
10276
|
]);
|
|
10277
10277
|
}
|
|
@@ -10291,12 +10291,12 @@ class Ue extends ft {
|
|
|
10291
10291
|
this.isHorizontal() ? (n = this.left, i = this.right) : (n = this.top, i = this.bottom, t = !t), this._startPixel = n, this._endPixel = i, this._reversePixels = t, this._length = i - n, this._alignToPixels = this.options.alignToPixels;
|
|
10292
10292
|
}
|
|
10293
10293
|
afterUpdate() {
|
|
10294
|
-
|
|
10294
|
+
G(this.options.afterUpdate, [
|
|
10295
10295
|
this
|
|
10296
10296
|
]);
|
|
10297
10297
|
}
|
|
10298
10298
|
beforeSetDimensions() {
|
|
10299
|
-
|
|
10299
|
+
G(this.options.beforeSetDimensions, [
|
|
10300
10300
|
this
|
|
10301
10301
|
]);
|
|
10302
10302
|
}
|
|
@@ -10304,12 +10304,12 @@ class Ue extends ft {
|
|
|
10304
10304
|
this.isHorizontal() ? (this.width = this.maxWidth, this.left = 0, this.right = this.width) : (this.height = this.maxHeight, this.top = 0, this.bottom = this.height), this.paddingLeft = 0, this.paddingTop = 0, this.paddingRight = 0, this.paddingBottom = 0;
|
|
10305
10305
|
}
|
|
10306
10306
|
afterSetDimensions() {
|
|
10307
|
-
|
|
10307
|
+
G(this.options.afterSetDimensions, [
|
|
10308
10308
|
this
|
|
10309
10309
|
]);
|
|
10310
10310
|
}
|
|
10311
10311
|
_callHooks(t) {
|
|
10312
|
-
this.chart.notifyPlugins(t, this.getContext()),
|
|
10312
|
+
this.chart.notifyPlugins(t, this.getContext()), G(this.options[t], [
|
|
10313
10313
|
this
|
|
10314
10314
|
]);
|
|
10315
10315
|
}
|
|
@@ -10331,7 +10331,7 @@ class Ue extends ft {
|
|
|
10331
10331
|
this._callHooks("afterBuildTicks");
|
|
10332
10332
|
}
|
|
10333
10333
|
beforeTickToLabelConversion() {
|
|
10334
|
-
|
|
10334
|
+
G(this.options.beforeTickToLabelConversion, [
|
|
10335
10335
|
this
|
|
10336
10336
|
]);
|
|
10337
10337
|
}
|
|
@@ -10339,19 +10339,19 @@ class Ue extends ft {
|
|
|
10339
10339
|
const n = this.options.ticks;
|
|
10340
10340
|
let i, s, o;
|
|
10341
10341
|
for (i = 0, s = t.length; i < s; i++)
|
|
10342
|
-
o = t[i], o.label =
|
|
10342
|
+
o = t[i], o.label = G(n.callback, [
|
|
10343
10343
|
o.value,
|
|
10344
10344
|
i,
|
|
10345
10345
|
t
|
|
10346
10346
|
], this);
|
|
10347
10347
|
}
|
|
10348
10348
|
afterTickToLabelConversion() {
|
|
10349
|
-
|
|
10349
|
+
G(this.options.afterTickToLabelConversion, [
|
|
10350
10350
|
this
|
|
10351
10351
|
]);
|
|
10352
10352
|
}
|
|
10353
10353
|
beforeCalculateLabelRotation() {
|
|
10354
|
-
|
|
10354
|
+
G(this.options.beforeCalculateLabelRotation, [
|
|
10355
10355
|
this
|
|
10356
10356
|
]);
|
|
10357
10357
|
}
|
|
@@ -10366,14 +10366,14 @@ class Ue extends ft {
|
|
|
10366
10366
|
a = t.offset ? this.maxWidth / i : h / (i - 1), d + 6 > a && (a = h / (i - (t.offset ? 0.5 : 1)), l = this.maxHeight - En(t.grid) - n.padding - Fl(t.title, this.chart.options.font), c = Math.sqrt(d * d + f * f), r = Ad(Math.min(Math.asin(dt((u.highest.height + 6) / a, -1, 1)), Math.asin(dt(l / c, -1, 1)) - Math.asin(dt(f / c, -1, 1)))), r = Math.max(s, Math.min(o, r))), this.labelRotation = r;
|
|
10367
10367
|
}
|
|
10368
10368
|
afterCalculateLabelRotation() {
|
|
10369
|
-
|
|
10369
|
+
G(this.options.afterCalculateLabelRotation, [
|
|
10370
10370
|
this
|
|
10371
10371
|
]);
|
|
10372
10372
|
}
|
|
10373
10373
|
afterAutoSkip() {
|
|
10374
10374
|
}
|
|
10375
10375
|
beforeFit() {
|
|
10376
|
-
|
|
10376
|
+
G(this.options.beforeFit, [
|
|
10377
10377
|
this
|
|
10378
10378
|
]);
|
|
10379
10379
|
}
|
|
@@ -10413,7 +10413,7 @@ class Ue extends ft {
|
|
|
10413
10413
|
this._margins && (this._margins.left = Math.max(this.paddingLeft, this._margins.left), this._margins.top = Math.max(this.paddingTop, this._margins.top), this._margins.right = Math.max(this.paddingRight, this._margins.right), this._margins.bottom = Math.max(this.paddingBottom, this._margins.bottom));
|
|
10414
10414
|
}
|
|
10415
10415
|
afterFit() {
|
|
10416
|
-
|
|
10416
|
+
G(this.options.afterFit, [
|
|
10417
10417
|
this
|
|
10418
10418
|
]);
|
|
10419
10419
|
}
|
|
@@ -10920,7 +10920,7 @@ class Y_ {
|
|
|
10920
10920
|
...n
|
|
10921
10921
|
].forEach((s) => {
|
|
10922
10922
|
const o = i || this._getRegistryForType(s);
|
|
10923
|
-
i || o.isForType(s) || o === this.plugins && s.id ? this._exec(t, o, s) :
|
|
10923
|
+
i || o.isForType(s) || o === this.plugins && s.id ? this._exec(t, o, s) : q(s, (r) => {
|
|
10924
10924
|
const a = i || this._getRegistryForType(r);
|
|
10925
10925
|
this._exec(t, a, r);
|
|
10926
10926
|
});
|
|
@@ -10928,7 +10928,7 @@ class Y_ {
|
|
|
10928
10928
|
}
|
|
10929
10929
|
_exec(t, n, i) {
|
|
10930
10930
|
const s = Er(t);
|
|
10931
|
-
|
|
10931
|
+
G(i["before" + s], [], i), n[t](i), G(i["after" + s], [], i);
|
|
10932
10932
|
}
|
|
10933
10933
|
_getRegistryForType(t) {
|
|
10934
10934
|
for (let n = 0; n < this._typedRegistries.length; n++) {
|
|
@@ -10964,7 +10964,7 @@ class U_ {
|
|
|
10964
10964
|
s,
|
|
10965
10965
|
o.options
|
|
10966
10966
|
];
|
|
10967
|
-
if (
|
|
10967
|
+
if (G(a, l, r) === !1 && s.cancelable)
|
|
10968
10968
|
return !1;
|
|
10969
10969
|
}
|
|
10970
10970
|
return !0;
|
|
@@ -11295,13 +11295,13 @@ function Wl(e, t) {
|
|
|
11295
11295
|
}
|
|
11296
11296
|
function Hl(e) {
|
|
11297
11297
|
const t = e.chart, n = t.options.animation;
|
|
11298
|
-
t.notifyPlugins("afterRender"),
|
|
11298
|
+
t.notifyPlugins("afterRender"), G(n && n.onComplete, [
|
|
11299
11299
|
e
|
|
11300
11300
|
], t);
|
|
11301
11301
|
}
|
|
11302
11302
|
function lw(e) {
|
|
11303
11303
|
const t = e.chart, n = t.options.animation;
|
|
11304
|
-
|
|
11304
|
+
G(n && n.onProgress, [
|
|
11305
11305
|
e
|
|
11306
11306
|
], t);
|
|
11307
11307
|
}
|
|
@@ -11384,14 +11384,14 @@ let Ut = (le = class {
|
|
|
11384
11384
|
const i = this.options, s = this.canvas, o = i.maintainAspectRatio && this.aspectRatio, r = this.platform.getMaximumSize(s, t, n, o), a = i.devicePixelRatio || this.platform.getDevicePixelRatio(), l = this.width ? "resize" : "attach";
|
|
11385
11385
|
this.width = r.width, this.height = r.height, this._aspectRatio = this.aspectRatio, gl(this, a, !0) && (this.notifyPlugins("resize", {
|
|
11386
11386
|
size: r
|
|
11387
|
-
}),
|
|
11387
|
+
}), G(i.onResize, [
|
|
11388
11388
|
this,
|
|
11389
11389
|
r
|
|
11390
11390
|
], this), this.attached && this._doResize(l) && this.render());
|
|
11391
11391
|
}
|
|
11392
11392
|
ensureScalesHaveIDs() {
|
|
11393
11393
|
const n = this.options.scales || {};
|
|
11394
|
-
|
|
11394
|
+
q(n, (i, s) => {
|
|
11395
11395
|
i.id = s;
|
|
11396
11396
|
});
|
|
11397
11397
|
}
|
|
@@ -11405,7 +11405,7 @@ let Ut = (le = class {
|
|
|
11405
11405
|
dposition: c ? "chartArea" : u ? "bottom" : "left",
|
|
11406
11406
|
dtype: c ? "radialLinear" : u ? "category" : "linear"
|
|
11407
11407
|
};
|
|
11408
|
-
}))),
|
|
11408
|
+
}))), q(o, (r) => {
|
|
11409
11409
|
const a = r.options, l = a.id, c = Qo(l, a), u = z(a.type, r.dtype);
|
|
11410
11410
|
(a.position === void 0 || Vl(a.position, c) !== Vl(r.dposition)) && (a.position = r.dposition), s[l] = !0;
|
|
11411
11411
|
let d = null;
|
|
@@ -11421,9 +11421,9 @@ let Ut = (le = class {
|
|
|
11421
11421
|
}), i[d.id] = d;
|
|
11422
11422
|
}
|
|
11423
11423
|
d.init(a, t);
|
|
11424
|
-
}),
|
|
11424
|
+
}), q(s, (r, a) => {
|
|
11425
11425
|
r || delete i[a];
|
|
11426
|
-
}),
|
|
11426
|
+
}), q(i, (r) => {
|
|
11427
11427
|
Et.configure(this, r, r.options), Et.addBox(this, r);
|
|
11428
11428
|
});
|
|
11429
11429
|
}
|
|
@@ -11462,7 +11462,7 @@ let Ut = (le = class {
|
|
|
11462
11462
|
return this._updateMetasets(), t;
|
|
11463
11463
|
}
|
|
11464
11464
|
_resetElements() {
|
|
11465
|
-
|
|
11465
|
+
q(this.data.datasets, (t, n) => {
|
|
11466
11466
|
this.getDatasetMeta(n).controller.reset();
|
|
11467
11467
|
}, this);
|
|
11468
11468
|
}
|
|
@@ -11485,7 +11485,7 @@ let Ut = (le = class {
|
|
|
11485
11485
|
const { controller: d } = this.getDatasetMeta(c), f = !s && o.indexOf(d) === -1;
|
|
11486
11486
|
d.buildOrUpdateElements(f), r = Math.max(+d.getMaxOverflow(), r);
|
|
11487
11487
|
}
|
|
11488
|
-
r = this._minPadding = i.layout.autoPadding ? r : 0, this._updateLayout(r), s ||
|
|
11488
|
+
r = this._minPadding = i.layout.autoPadding ? r : 0, this._updateLayout(r), s || q(o, (c) => {
|
|
11489
11489
|
c.reset();
|
|
11490
11490
|
}), this._updateDatasets(t), this.notifyPlugins("afterUpdate", {
|
|
11491
11491
|
mode: t
|
|
@@ -11494,7 +11494,7 @@ let Ut = (le = class {
|
|
|
11494
11494
|
l ? this._eventHandler(l, !0) : a.length && this._updateHoverStyles(a, a, !0), this.render();
|
|
11495
11495
|
}
|
|
11496
11496
|
_updateScales() {
|
|
11497
|
-
|
|
11497
|
+
q(this.scales, (t) => {
|
|
11498
11498
|
Et.removeBox(this, t);
|
|
11499
11499
|
}), this.ensureScalesHaveIDs(), this.buildOrUpdateScales();
|
|
11500
11500
|
}
|
|
@@ -11531,7 +11531,7 @@ let Ut = (le = class {
|
|
|
11531
11531
|
return;
|
|
11532
11532
|
Et.update(this, this.width, this.height, t);
|
|
11533
11533
|
const n = this.chartArea, i = n.width <= 0 || n.height <= 0;
|
|
11534
|
-
this._layers = [],
|
|
11534
|
+
this._layers = [], q(this.boxes, (s) => {
|
|
11535
11535
|
i && s.position === "chartArea" || (s.configure && s.configure(), this._layers.push(...s._layers()));
|
|
11536
11536
|
}, this), this._layers.forEach((s, o) => {
|
|
11537
11537
|
s._idx = o;
|
|
@@ -11705,7 +11705,7 @@ let Ut = (le = class {
|
|
|
11705
11705
|
}, s = (o, r, a) => {
|
|
11706
11706
|
o.offsetX = r, o.offsetY = a, this._eventHandler(o);
|
|
11707
11707
|
};
|
|
11708
|
-
|
|
11708
|
+
q(this.options.events, (o) => i(o, s));
|
|
11709
11709
|
}
|
|
11710
11710
|
bindResponsiveEvents() {
|
|
11711
11711
|
this._responsiveListeners || (this._responsiveListeners = {});
|
|
@@ -11725,9 +11725,9 @@ let Ut = (le = class {
|
|
|
11725
11725
|
}, n.isAttached(this.canvas) ? a() : r();
|
|
11726
11726
|
}
|
|
11727
11727
|
unbindEvents() {
|
|
11728
|
-
|
|
11728
|
+
q(this._listeners, (t, n) => {
|
|
11729
11729
|
this.platform.removeEventListener(this, n, t);
|
|
11730
|
-
}), this._listeners = {},
|
|
11730
|
+
}), this._listeners = {}, q(this._responsiveListeners, (t, n) => {
|
|
11731
11731
|
this.platform.removeEventListener(this, n, t);
|
|
11732
11732
|
}), this._responsiveListeners = void 0;
|
|
11733
11733
|
}
|
|
@@ -11780,11 +11780,11 @@ let Ut = (le = class {
|
|
|
11780
11780
|
}
|
|
11781
11781
|
_handleEvent(t, n, i) {
|
|
11782
11782
|
const { _active: s = [], options: o } = this, r = n, a = this._getActiveElements(t, s, i, r), l = yx(t), c = uw(t, this._lastEvent, i, l);
|
|
11783
|
-
i && (this._lastEvent = null,
|
|
11783
|
+
i && (this._lastEvent = null, G(o.onHover, [
|
|
11784
11784
|
t,
|
|
11785
11785
|
a,
|
|
11786
11786
|
this
|
|
11787
|
-
], this), l &&
|
|
11787
|
+
], this), l && G(o.onClick, [
|
|
11788
11788
|
t,
|
|
11789
11789
|
a,
|
|
11790
11790
|
this
|
|
@@ -11802,7 +11802,7 @@ let Ut = (le = class {
|
|
|
11802
11802
|
}
|
|
11803
11803
|
}, D(le, "defaults", nt), D(le, "instances", ts), D(le, "overrides", $e), D(le, "registry", zt), D(le, "version", rw), D(le, "getChart", Yl), le);
|
|
11804
11804
|
function Ul() {
|
|
11805
|
-
return
|
|
11805
|
+
return q(Ut.instances, (e) => e._plugins.invalidate());
|
|
11806
11806
|
}
|
|
11807
11807
|
function dw(e, t, n) {
|
|
11808
11808
|
const { startAngle: i, x: s, y: o, outerRadius: r, innerRadius: a, options: l } = t, { borderWidth: c, borderJoinStyle: u } = l, d = Math.min(c / r, Ct(i - n));
|
|
@@ -12749,7 +12749,7 @@ class tc extends ft {
|
|
|
12749
12749
|
}
|
|
12750
12750
|
buildLabels() {
|
|
12751
12751
|
const t = this.options.labels || {};
|
|
12752
|
-
let n =
|
|
12752
|
+
let n = G(t.generateLabels, [
|
|
12753
12753
|
this.chart
|
|
12754
12754
|
], this) || [];
|
|
12755
12755
|
t.filter && (n = n.filter((i) => t.filter(i, this.chart.data))), t.sort && (n = n.sort((i, s) => t.sort(i, s, this.chart.data))), this.options.reverse && n.reverse(), this.legendItems = n;
|
|
@@ -12919,16 +12919,16 @@ class tc extends ft {
|
|
|
12919
12919
|
const i = this._getLegendItemAt(t.x, t.y);
|
|
12920
12920
|
if (t.type === "mousemove" || t.type === "mouseout") {
|
|
12921
12921
|
const s = this._hoveredItem, o = Jw(s, i);
|
|
12922
|
-
s && !o &&
|
|
12922
|
+
s && !o && G(n.onLeave, [
|
|
12923
12923
|
t,
|
|
12924
12924
|
s,
|
|
12925
12925
|
this
|
|
12926
|
-
], this), this._hoveredItem = i, i && !o &&
|
|
12926
|
+
], this), this._hoveredItem = i, i && !o && G(n.onHover, [
|
|
12927
12927
|
t,
|
|
12928
12928
|
i,
|
|
12929
12929
|
this
|
|
12930
12930
|
], this);
|
|
12931
|
-
} else i &&
|
|
12931
|
+
} else i && G(n.onClick, [
|
|
12932
12932
|
t,
|
|
12933
12933
|
i,
|
|
12934
12934
|
this
|
|
@@ -13205,9 +13205,9 @@ function ec(e, t) {
|
|
|
13205
13205
|
const x = function(w) {
|
|
13206
13206
|
m = Math.max(m, n.measureText(w).width + y);
|
|
13207
13207
|
};
|
|
13208
|
-
return n.save(), n.font = c.string,
|
|
13209
|
-
|
|
13210
|
-
}), y = 0, n.font = u.string,
|
|
13208
|
+
return n.save(), n.font = c.string, q(e.title, x), n.font = l.string, q(e.beforeBody.concat(e.afterBody), x), y = t.displayColors ? r + 2 + t.boxPadding : 0, q(i, (w) => {
|
|
13209
|
+
q(w.before, x), q(w.lines, x), q(w.after, x);
|
|
13210
|
+
}), y = 0, n.font = u.string, q(e.footer, x), n.restore(), m += p.width, {
|
|
13211
13211
|
width: m,
|
|
13212
13212
|
height: g
|
|
13213
13213
|
};
|
|
@@ -13351,7 +13351,7 @@ class nr extends ft {
|
|
|
13351
13351
|
}
|
|
13352
13352
|
getBody(t, n) {
|
|
13353
13353
|
const { callbacks: i } = n, s = [];
|
|
13354
|
-
return
|
|
13354
|
+
return q(t, (o) => {
|
|
13355
13355
|
const r = {
|
|
13356
13356
|
before: [],
|
|
13357
13357
|
lines: [],
|
|
@@ -13373,7 +13373,7 @@ class nr extends ft {
|
|
|
13373
13373
|
let a = [], l, c;
|
|
13374
13374
|
for (l = 0, c = n.length; l < c; ++l)
|
|
13375
13375
|
a.push(iS(this.chart, n[l]));
|
|
13376
|
-
return t.filter && (a = a.filter((u, d, f) => t.filter(u, d, f, i))), t.itemSort && (a = a.sort((u, d) => t.itemSort(u, d, i))),
|
|
13376
|
+
return t.filter && (a = a.filter((u, d, f) => t.filter(u, d, f, i))), t.itemSort && (a = a.sort((u, d) => t.itemSort(u, d, i))), q(a, (u) => {
|
|
13377
13377
|
const d = oc(t.callbacks, u);
|
|
13378
13378
|
s.push(pt(d, "labelColor", this, u)), o.push(pt(d, "labelPointStyle", this, u)), r.push(pt(d, "labelTextColor", this, u));
|
|
13379
13379
|
}), this.labelColors = s, this.labelPointStyles = o, this.labelTextColors = r, this.dataPoints = a, a;
|
|
@@ -13466,12 +13466,12 @@ class nr extends ft {
|
|
|
13466
13466
|
n.fillText(C, p.x(t.x + h), t.y + f / 2), t.y += f + o;
|
|
13467
13467
|
}, m = p.textAlign(r);
|
|
13468
13468
|
let b, y, x, w, _, k, S;
|
|
13469
|
-
for (n.textAlign = r, n.textBaseline = "middle", n.font = d.string, t.x = Bi(this, m, i), n.fillStyle = i.bodyColor,
|
|
13470
|
-
for (b = s[w], y = this.labelTextColors[w], n.fillStyle = y,
|
|
13469
|
+
for (n.textAlign = r, n.textBaseline = "middle", n.font = d.string, t.x = Bi(this, m, i), n.fillStyle = i.bodyColor, q(this.beforeBody, g), h = a && m !== "right" ? r === "center" ? c / 2 + u : c + 2 + u : 0, w = 0, k = s.length; w < k; ++w) {
|
|
13470
|
+
for (b = s[w], y = this.labelTextColors[w], n.fillStyle = y, q(b.before, g), x = b.lines, a && x.length && (this._drawColorBox(n, t, w, p, i), f = Math.max(d.lineHeight, l)), _ = 0, S = x.length; _ < S; ++_)
|
|
13471
13471
|
g(x[_]), f = d.lineHeight;
|
|
13472
|
-
|
|
13472
|
+
q(b.after, g);
|
|
13473
13473
|
}
|
|
13474
|
-
h = 0, f = d.lineHeight,
|
|
13474
|
+
h = 0, f = d.lineHeight, q(this.afterBody, g), t.y -= o;
|
|
13475
13475
|
}
|
|
13476
13476
|
drawFooter(t, n, i) {
|
|
13477
13477
|
const s = this.footer, o = s.length;
|
|
@@ -14143,7 +14143,7 @@ class Ms extends Ue {
|
|
|
14143
14143
|
_tickFormatFunction(t, n, i, s) {
|
|
14144
14144
|
const o = this.options, r = o.ticks.callback;
|
|
14145
14145
|
if (r)
|
|
14146
|
-
return
|
|
14146
|
+
return G(r, [
|
|
14147
14147
|
t,
|
|
14148
14148
|
n,
|
|
14149
14149
|
i
|
|
@@ -14376,7 +14376,7 @@ const SS = /* @__PURE__ */ Yr("line", Zi), MS = /* @__PURE__ */ Yr("bar", Ji), y
|
|
|
14376
14376
|
{ intersect: !0 },
|
|
14377
14377
|
!1
|
|
14378
14378
|
)[0]) == null ? void 0 : s.index : void 0;
|
|
14379
|
-
}, CS = /^-?\d+(\.\d+)?$/, xf = (e) => typeof window > "u" || typeof document > "u" ? "" : getComputedStyle(document.documentElement).getPropertyValue(e).trim(),
|
|
14379
|
+
}, CS = /^-?\d+(\.\d+)?$/, xf = (e) => typeof window > "u" || typeof document > "u" ? "" : getComputedStyle(document.documentElement).getPropertyValue(e).trim(), X = (e) => {
|
|
14380
14380
|
const t = xf(e);
|
|
14381
14381
|
return !t || t.charAt(0) === "#" || t.startsWith("rgb(") || t.startsWith("rgba("), t;
|
|
14382
14382
|
}, V = (e, t) => {
|
|
@@ -14390,24 +14390,24 @@ const SS = /* @__PURE__ */ Yr("line", Zi), MS = /* @__PURE__ */ Yr("bar", Ji), y
|
|
|
14390
14390
|
if (CS.test(n))
|
|
14391
14391
|
return i;
|
|
14392
14392
|
}, bc = [
|
|
14393
|
-
|
|
14394
|
-
|
|
14395
|
-
|
|
14396
|
-
|
|
14397
|
-
|
|
14398
|
-
|
|
14399
|
-
|
|
14400
|
-
|
|
14401
|
-
|
|
14402
|
-
|
|
14393
|
+
X("--em-chart-color-1"),
|
|
14394
|
+
X("--em-chart-color-2"),
|
|
14395
|
+
X("--em-chart-color-3"),
|
|
14396
|
+
X("--em-chart-color-4"),
|
|
14397
|
+
X("--em-chart-color-5"),
|
|
14398
|
+
X("--em-chart-color-6"),
|
|
14399
|
+
X("--em-chart-color-7"),
|
|
14400
|
+
X("--em-chart-color-8"),
|
|
14401
|
+
X("--em-chart-color-9"),
|
|
14402
|
+
X("--em-chart-color-10")
|
|
14403
14403
|
], Cs = [
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
-
|
|
14407
|
-
|
|
14404
|
+
X("--em-chart-color-1"),
|
|
14405
|
+
X("--em-chart-color-4"),
|
|
14406
|
+
X("--em-chart-color-7"),
|
|
14407
|
+
X("--em-chart-color-10")
|
|
14408
14408
|
], kS = {
|
|
14409
14409
|
datalabels: {
|
|
14410
|
-
backgroundColor:
|
|
14410
|
+
backgroundColor: X("--em-label-background-color-default"),
|
|
14411
14411
|
borderRadius: V("--em-label-border-radius-default"),
|
|
14412
14412
|
padding: {
|
|
14413
14413
|
top: V("--em-label-padding-top-bottom"),
|
|
@@ -14415,7 +14415,7 @@ const SS = /* @__PURE__ */ Yr("line", Zi), MS = /* @__PURE__ */ Yr("bar", Ji), y
|
|
|
14415
14415
|
right: V("--em-label-padding-left-right"),
|
|
14416
14416
|
left: V("--em-label-padding-left-right")
|
|
14417
14417
|
},
|
|
14418
|
-
color:
|
|
14418
|
+
color: X("--em-label-label-font-color-default"),
|
|
14419
14419
|
font: {
|
|
14420
14420
|
size: V("--em-label-label-font-size"),
|
|
14421
14421
|
weight: V("--em-label-label-font-weight"),
|
|
@@ -14429,7 +14429,7 @@ const SS = /* @__PURE__ */ Yr("line", Zi), MS = /* @__PURE__ */ Yr("bar", Ji), y
|
|
|
14429
14429
|
boxWidth: V("--em-category-indicator-size-width"),
|
|
14430
14430
|
boxHeight: V("--em-category-indicator-size-height"),
|
|
14431
14431
|
usePointStyle: !0,
|
|
14432
|
-
color:
|
|
14432
|
+
color: X("--em-category-group-item-label-color-default"),
|
|
14433
14433
|
padding: V("--em-chart-gap-default"),
|
|
14434
14434
|
font: {
|
|
14435
14435
|
size: V("--em-category-group-item-label-font-size"),
|
|
@@ -14442,11 +14442,11 @@ const SS = /* @__PURE__ */ Yr("line", Zi), MS = /* @__PURE__ */ Yr("bar", Ji), y
|
|
|
14442
14442
|
usePointStyle: !0,
|
|
14443
14443
|
caretSize: 0,
|
|
14444
14444
|
enabled: !0,
|
|
14445
|
-
backgroundColor:
|
|
14445
|
+
backgroundColor: X("--em-chart-tooltip-background-color-default"),
|
|
14446
14446
|
cornerRadius: V("--em-chart-tooltip-border-radius-default"),
|
|
14447
14447
|
padding: V("--em-chart-tooltip-padding-default"),
|
|
14448
14448
|
displayColors: !0,
|
|
14449
|
-
bodyColor:
|
|
14449
|
+
bodyColor: X("--em-foreground-color-inverted"),
|
|
14450
14450
|
bodyAlign: "left",
|
|
14451
14451
|
boxPadding: V("--em-category-indicator-gap-default"),
|
|
14452
14452
|
bodyFont: {
|
|
@@ -14456,7 +14456,7 @@ const SS = /* @__PURE__ */ Yr("line", Zi), MS = /* @__PURE__ */ Yr("bar", Ji), y
|
|
|
14456
14456
|
family: "Inter, sans-serif"
|
|
14457
14457
|
},
|
|
14458
14458
|
titleAlign: "left",
|
|
14459
|
-
titleColor:
|
|
14459
|
+
titleColor: X("--em-chart-tooltip-label-color-default"),
|
|
14460
14460
|
titleFont: {
|
|
14461
14461
|
size: V("--em-chart-tooltip-title-font-size"),
|
|
14462
14462
|
weight: V("--em-chart-tooltip-title-font-weight"),
|
|
@@ -14495,7 +14495,7 @@ const SS = /* @__PURE__ */ Yr("line", Zi), MS = /* @__PURE__ */ Yr("bar", Ji), y
|
|
|
14495
14495
|
}
|
|
14496
14496
|
}, RS = {
|
|
14497
14497
|
display: !0,
|
|
14498
|
-
color:
|
|
14498
|
+
color: X("--em-chart-grid-font-color-default"),
|
|
14499
14499
|
font: {
|
|
14500
14500
|
size: V("--em-chart-grid-font-subtitle-size"),
|
|
14501
14501
|
weight: V("--em-chart-grid-font-label-weight"),
|
|
@@ -14505,7 +14505,7 @@ const SS = /* @__PURE__ */ Yr("line", Zi), MS = /* @__PURE__ */ Yr("bar", Ji), y
|
|
|
14505
14505
|
}
|
|
14506
14506
|
}, OS = {
|
|
14507
14507
|
display: !0,
|
|
14508
|
-
color:
|
|
14508
|
+
color: X("--em-chart-grid-font-color-muted"),
|
|
14509
14509
|
font: {
|
|
14510
14510
|
size: V("--em-chart-grid-font-subtitle-size"),
|
|
14511
14511
|
weight: V("--em-chart-grid-font-label-weight"),
|
|
@@ -14514,7 +14514,7 @@ const SS = /* @__PURE__ */ Yr("line", Zi), MS = /* @__PURE__ */ Yr("bar", Ji), y
|
|
|
14514
14514
|
// family: getStyle('--em-chart-grid-font-font-family'),
|
|
14515
14515
|
}
|
|
14516
14516
|
}, yc = {
|
|
14517
|
-
color:
|
|
14517
|
+
color: X("--em-chart-grid-font-color-default"),
|
|
14518
14518
|
font: {
|
|
14519
14519
|
size: V("--em-chart-grid-font-title-size"),
|
|
14520
14520
|
weight: V("--em-chart-grid-font-title-weight"),
|
|
@@ -14523,7 +14523,7 @@ const SS = /* @__PURE__ */ Yr("line", Zi), MS = /* @__PURE__ */ Yr("bar", Ji), y
|
|
|
14523
14523
|
// family: getStyle('--em-chart-grid-font-font-family'),
|
|
14524
14524
|
}
|
|
14525
14525
|
}, xc = {
|
|
14526
|
-
color:
|
|
14526
|
+
color: X("--em-chart-grid-line-color-light"),
|
|
14527
14527
|
lineWidth: V("--em-chart-grid-line-width-default")
|
|
14528
14528
|
}, ES = {
|
|
14529
14529
|
x: {
|
|
@@ -14581,14 +14581,14 @@ const SS = /* @__PURE__ */ Yr("line", Zi), MS = /* @__PURE__ */ Yr("bar", Ji), y
|
|
|
14581
14581
|
x: {
|
|
14582
14582
|
grid: { display: !1 },
|
|
14583
14583
|
ticks: {
|
|
14584
|
-
color:
|
|
14584
|
+
color: X("--em-chart-grid-font-color-default")
|
|
14585
14585
|
},
|
|
14586
14586
|
reverse: e.reverseXAxis
|
|
14587
14587
|
},
|
|
14588
14588
|
y: {
|
|
14589
14589
|
grid: { display: !0 },
|
|
14590
14590
|
ticks: {
|
|
14591
|
-
color:
|
|
14591
|
+
color: X("--em-chart-grid-font-color-muted")
|
|
14592
14592
|
},
|
|
14593
14593
|
min: e.yAxisRangeMin,
|
|
14594
14594
|
max: e.yAxisRangeMax,
|
|
@@ -14618,7 +14618,7 @@ const SS = /* @__PURE__ */ Yr("line", Zi), MS = /* @__PURE__ */ Yr("bar", Ji), y
|
|
|
14618
14618
|
x: {
|
|
14619
14619
|
grid: { display: !0 },
|
|
14620
14620
|
ticks: {
|
|
14621
|
-
color:
|
|
14621
|
+
color: X("--em-chart-grid-font-color-muted")
|
|
14622
14622
|
},
|
|
14623
14623
|
min: e.xAxisRangeMin,
|
|
14624
14624
|
max: e.xAxisRangeMax,
|
|
@@ -14627,7 +14627,7 @@ const SS = /* @__PURE__ */ Yr("line", Zi), MS = /* @__PURE__ */ Yr("bar", Ji), y
|
|
|
14627
14627
|
y: {
|
|
14628
14628
|
grid: { display: !1 },
|
|
14629
14629
|
ticks: {
|
|
14630
|
-
color:
|
|
14630
|
+
color: X("--em-chart-grid-font-color-default")
|
|
14631
14631
|
},
|
|
14632
14632
|
reverse: e.reverseYAxis
|
|
14633
14633
|
}
|
|
@@ -14967,7 +14967,7 @@ Xt(kf.prototype, {
|
|
|
14967
14967
|
},
|
|
14968
14968
|
update: function(e) {
|
|
14969
14969
|
var t = this, n = null, i = null, s = t._index, o = t._config, r, a, l, c = tt([o.display, !0], e, s);
|
|
14970
|
-
c && (r = e.dataset.data[s], a = z(
|
|
14970
|
+
c && (r = e.dataset.data[s], a = z(G(o.formatter, [r, e]), r), l = H(a) ? [] : Gn.toTextLines(a), l.length && (n = t._modelize(c, l, o, e), i = VS(n))), t._model = n, t._rects = i;
|
|
14971
14971
|
},
|
|
14972
14972
|
geometry: function() {
|
|
14973
14973
|
return this._rects ? this._rects.frame : {};
|
|
@@ -15192,7 +15192,7 @@ function nM(e, t) {
|
|
|
15192
15192
|
{ _key: a }
|
|
15193
15193
|
]));
|
|
15194
15194
|
}) : s.push(t), i = s.reduce(function(a, l) {
|
|
15195
|
-
return
|
|
15195
|
+
return q(l.listeners || {}, function(c, u) {
|
|
15196
15196
|
a[u] = a[u] || {}, a[u][l._key || Rf] = c;
|
|
15197
15197
|
}), delete l.listeners, a;
|
|
15198
15198
|
}, {}), {
|
|
@@ -15203,7 +15203,7 @@ function nM(e, t) {
|
|
|
15203
15203
|
function ir(e, t, n, i) {
|
|
15204
15204
|
if (t) {
|
|
15205
15205
|
var s = n.$context, o = n.$groups, r;
|
|
15206
|
-
t[o._set] && (r = t[o._set][o._key], r &&
|
|
15206
|
+
t[o._set] && (r = t[o._set][o._key], r && G(r, [s, i]) === !0 && (e[mt]._dirty = !0, n.update(s)));
|
|
15207
15207
|
}
|
|
15208
15208
|
}
|
|
15209
15209
|
function iM(e, t, n, i, s) {
|
|
@@ -15363,6 +15363,9 @@ const k1 = ({ data: e, onSegmentClick: t, options: n = {}, ...i }) => {
|
|
|
15363
15363
|
},
|
|
15364
15364
|
scales: {
|
|
15365
15365
|
x: {
|
|
15366
|
+
ticks: {
|
|
15367
|
+
color: X("--em-chart-grid-font-color-default")
|
|
15368
|
+
},
|
|
15366
15369
|
title: {
|
|
15367
15370
|
display: !!e.xAxisLabel,
|
|
15368
15371
|
text: e.xAxisLabel
|
|
@@ -15370,6 +15373,9 @@ const k1 = ({ data: e, onSegmentClick: t, options: n = {}, ...i }) => {
|
|
|
15370
15373
|
reverse: e.reverseXAxis
|
|
15371
15374
|
},
|
|
15372
15375
|
y: {
|
|
15376
|
+
ticks: {
|
|
15377
|
+
color: X("--em-chart-grid-font-color-muted")
|
|
15378
|
+
},
|
|
15373
15379
|
grid: { display: !0 },
|
|
15374
15380
|
type: e.showLogarithmicScale ? "logarithmic" : "linear",
|
|
15375
15381
|
title: {
|
|
@@ -15595,7 +15601,7 @@ function $f(e, t) {
|
|
|
15595
15601
|
return pM[n](e);
|
|
15596
15602
|
}
|
|
15597
15603
|
function bM(e, t, n) {
|
|
15598
|
-
const i =
|
|
15604
|
+
const i = G(n.init, [{ chart: e, properties: t, options: n }]);
|
|
15599
15605
|
if (i === !0)
|
|
15600
15606
|
return $f(t, n);
|
|
15601
15607
|
if ($(i))
|
|
@@ -15983,7 +15989,7 @@ function YM(e, t, n) {
|
|
|
15983
15989
|
return o;
|
|
15984
15990
|
}
|
|
15985
15991
|
function qf(e, t, n) {
|
|
15986
|
-
return
|
|
15992
|
+
return G(e, [t.$context, n]) === !0;
|
|
15987
15993
|
}
|
|
15988
15994
|
const ks = ["afterDraw", "beforeDraw"];
|
|
15989
15995
|
function UM(e, t, n) {
|
|
@@ -15997,7 +16003,7 @@ function UM(e, t, n) {
|
|
|
15997
16003
|
function Pc(e, t, n) {
|
|
15998
16004
|
if (e.hooked) {
|
|
15999
16005
|
const i = t.options[n] || e.hooks[n];
|
|
16000
|
-
return
|
|
16006
|
+
return G(i, [t.$context]);
|
|
16001
16007
|
}
|
|
16002
16008
|
}
|
|
16003
16009
|
function KM(e, t, n) {
|
|
@@ -17105,8 +17111,8 @@ const th = (e) => {
|
|
|
17105
17111
|
}
|
|
17106
17112
|
],
|
|
17107
17113
|
color: [
|
|
17108
|
-
|
|
17109
|
-
|
|
17114
|
+
X("--em-pie-chart-donut-number-color-default"),
|
|
17115
|
+
X("--em-pie-chart-donut-label-color-default")
|
|
17110
17116
|
]
|
|
17111
17117
|
}
|
|
17112
17118
|
// According to the last comment, a fix should be coming in the next release:
|
|
@@ -17836,7 +17842,7 @@ export {
|
|
|
17836
17842
|
Ps as ao,
|
|
17837
17843
|
IC as ap,
|
|
17838
17844
|
NC as aq,
|
|
17839
|
-
|
|
17845
|
+
X as ar,
|
|
17840
17846
|
ke as as,
|
|
17841
17847
|
nh as at,
|
|
17842
17848
|
ih as au,
|
|
@@ -17871,4 +17877,4 @@ export {
|
|
|
17871
17877
|
sk as y,
|
|
17872
17878
|
z1 as z
|
|
17873
17879
|
};
|
|
17874
|
-
//# sourceMappingURL=component.constants-
|
|
17880
|
+
//# sourceMappingURL=component.constants-BysG97Au.js.map
|