web-mojo 2.1.682 → 2.1.698
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/admin.cjs.js +1 -1
- package/dist/admin.cjs.js.map +1 -1
- package/dist/admin.es.js +18 -10
- package/dist/admin.es.js.map +1 -1
- package/dist/auth.cjs.js +1 -1
- package/dist/auth.cjs.js.map +1 -1
- package/dist/auth.es.js +3 -3
- package/dist/auth.es.js.map +1 -1
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +2 -2
- package/dist/chunks/{ChatView-rQxIKciq.js → ChatView-Cl4A2GG_.js} +11 -10
- package/dist/chunks/ChatView-Cl4A2GG_.js.map +1 -0
- package/dist/chunks/ChatView-DKHI5WSQ.js +2 -0
- package/dist/chunks/ChatView-DKHI5WSQ.js.map +1 -0
- package/dist/chunks/{ContextMenu-47O2lbsV.js → ContextMenu-C7VR2K56.js} +2 -2
- package/dist/chunks/{ContextMenu-47O2lbsV.js.map → ContextMenu-C7VR2K56.js.map} +1 -1
- package/dist/chunks/{ContextMenu-bEra2rOd.js → ContextMenu-ZMjPSCOL.js} +2 -2
- package/dist/chunks/{ContextMenu-bEra2rOd.js.map → ContextMenu-ZMjPSCOL.js.map} +1 -1
- package/dist/chunks/{DataView-Dp4LZC_P.js → DataView-BdDvQgda.js} +29 -15
- package/dist/chunks/DataView-BdDvQgda.js.map +1 -0
- package/dist/chunks/DataView-C2J-ES5x.js +2 -0
- package/dist/chunks/DataView-C2J-ES5x.js.map +1 -0
- package/dist/chunks/{Dialog-Dls3VAB8.js → Dialog-7Q6jVzma.js} +5 -5
- package/dist/chunks/{Dialog-Dls3VAB8.js.map → Dialog-7Q6jVzma.js.map} +1 -1
- package/dist/chunks/{Dialog-D-N9fnIq.js → Dialog-DcEsiySb.js} +2 -2
- package/dist/chunks/{Dialog-D-N9fnIq.js.map → Dialog-DcEsiySb.js.map} +1 -1
- package/dist/chunks/{FormView-BkBLv7Jy.js → FormView-D1GaAaSs.js} +98 -5
- package/dist/chunks/FormView-D1GaAaSs.js.map +1 -0
- package/dist/chunks/{FormView-jQkvTThx.js → FormView-NYlkp_rL.js} +2 -2
- package/dist/chunks/FormView-NYlkp_rL.js.map +1 -0
- package/dist/chunks/{MetricsMiniChartWidget-D0Eq9agy.js → MetricsMiniChartWidget-Cgl3z0P7.js} +21 -11
- package/dist/chunks/{MetricsMiniChartWidget-D0Eq9agy.js.map → MetricsMiniChartWidget-Cgl3z0P7.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-B9xu8Wzh.js → MetricsMiniChartWidget-DnvuJLYU.js} +2 -2
- package/dist/chunks/{MetricsMiniChartWidget-B9xu8Wzh.js.map → MetricsMiniChartWidget-DnvuJLYU.js.map} +1 -1
- package/dist/chunks/{PDFViewer-GCsxAgql.js → PDFViewer-0XGpnus3.js} +2 -2
- package/dist/chunks/{PDFViewer-GCsxAgql.js.map → PDFViewer-0XGpnus3.js.map} +1 -1
- package/dist/chunks/{PDFViewer-CtziqVkB.js → PDFViewer-Bm0_D3So.js} +3 -3
- package/dist/chunks/{PDFViewer-CtziqVkB.js.map → PDFViewer-Bm0_D3So.js.map} +1 -1
- package/dist/chunks/{Page-BnEgQPcR.js → Page-CusMiM2I.js} +2 -2
- package/dist/chunks/{Page-BnEgQPcR.js.map → Page-CusMiM2I.js.map} +1 -1
- package/dist/chunks/{Page-DlOiEuua.js → Page-dbGRgWFn.js} +2 -2
- package/dist/chunks/{Page-DlOiEuua.js.map → Page-dbGRgWFn.js.map} +1 -1
- package/dist/chunks/{TopNav-BDcnSuji.js → TopNav-BtI4SIXh.js} +2 -2
- package/dist/chunks/{TopNav-BDcnSuji.js.map → TopNav-BtI4SIXh.js.map} +1 -1
- package/dist/chunks/{TopNav-DVvNdyUm.js → TopNav-CG0_zVCD.js} +5 -5
- package/dist/chunks/{TopNav-DVvNdyUm.js.map → TopNav-CG0_zVCD.js.map} +1 -1
- package/dist/chunks/{WebApp--rBzVI7e.js → WebApp-B5MSTwfY.js} +2 -2
- package/dist/chunks/{WebApp--rBzVI7e.js.map → WebApp-B5MSTwfY.js.map} +1 -1
- package/dist/chunks/{WebApp-DF_USeWe.js → WebApp-BH3MsXRH.js} +13 -13
- package/dist/chunks/{WebApp-DF_USeWe.js.map → WebApp-BH3MsXRH.js.map} +1 -1
- package/dist/docit.cjs.js +1 -1
- package/dist/docit.es.js +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +11 -11
- package/dist/lightbox.cjs.js +1 -1
- package/dist/lightbox.es.js +4 -4
- package/package.json +1 -1
- package/dist/chunks/ChatView-ZaRZ-1wA.js +0 -2
- package/dist/chunks/ChatView-ZaRZ-1wA.js.map +0 -1
- package/dist/chunks/ChatView-rQxIKciq.js.map +0 -1
- package/dist/chunks/DataView-Dp4LZC_P.js.map +0 -1
- package/dist/chunks/DataView-I8leh-EL.js +0 -2
- package/dist/chunks/DataView-I8leh-EL.js.map +0 -1
- package/dist/chunks/FormView-BkBLv7Jy.js.map +0 -1
- package/dist/chunks/FormView-jQkvTThx.js.map +0 -1
package/dist/chunks/{MetricsMiniChartWidget-D0Eq9agy.js → MetricsMiniChartWidget-Cgl3z0P7.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Dialog from "./Dialog-
|
|
2
|
-
import { V as View, d as dataFormatter } from "./WebApp-
|
|
1
|
+
import Dialog from "./Dialog-7Q6jVzma.js";
|
|
2
|
+
import { V as View, d as dataFormatter } from "./WebApp-BH3MsXRH.js";
|
|
3
3
|
import { W as WebSocketClient } from "./WebSocketClient-B6ribe3B.js";
|
|
4
4
|
class BaseChart extends View {
|
|
5
5
|
constructor(options = {}) {
|
|
@@ -2699,6 +2699,7 @@ class MetricsMiniChartWidget extends View {
|
|
|
2699
2699
|
this.showTrending = !!options.showTrending;
|
|
2700
2700
|
this.trendRange = options.trendRange ?? null;
|
|
2701
2701
|
this.trendOffset = options.trendOffset ?? 0;
|
|
2702
|
+
this.prevTrendOffset = options.prevTrendOffset ?? 0;
|
|
2702
2703
|
this.total = 0;
|
|
2703
2704
|
this.lastValue = 0;
|
|
2704
2705
|
this.prevValue = 0;
|
|
@@ -2767,7 +2768,7 @@ class MetricsMiniChartWidget extends View {
|
|
|
2767
2768
|
template: `
|
|
2768
2769
|
<div class="d-flex justify-content-between align-items-start mb-2">
|
|
2769
2770
|
<div class="me-3">
|
|
2770
|
-
<h6 class="card-title mb-1" style="${this.textColor ? `color: ${this.textColor}` : ""}"
|
|
2771
|
+
<h6 class="card-title mb-1" style="${this.textColor ? `color: ${this.textColor}` : ""}">${this.title}</h6>
|
|
2771
2772
|
<div class="card-subtitle" style="${this.textColor ? `color: ${this.textColor}` : ""}">${this.subtitle}</div>
|
|
2772
2773
|
{{#hasTrending}}
|
|
2773
2774
|
<div class="small mt-1 fw-semibold {{trendingClass}}" style="${this.textColor ? `color: ${this.textColor}` : ""}">
|
|
@@ -2811,11 +2812,17 @@ class MetricsMiniChartWidget extends View {
|
|
|
2811
2812
|
let lastSum = 0;
|
|
2812
2813
|
let prevSum = 0;
|
|
2813
2814
|
const k = this.trendRange && this.trendRange >= 2 ? Math.max(1, Math.floor(this.trendRange / 2)) : 1;
|
|
2814
|
-
if (
|
|
2815
|
+
if (endIndex >= 0) {
|
|
2815
2816
|
const lastEnd = endIndex;
|
|
2816
2817
|
const lastStart = lastEnd - (k - 1);
|
|
2817
|
-
|
|
2818
|
-
|
|
2818
|
+
let prevStart, prevEnd;
|
|
2819
|
+
if (this.prevTrendOffset && this.prevTrendOffset > 0) {
|
|
2820
|
+
prevStart = lastStart - this.prevTrendOffset;
|
|
2821
|
+
prevEnd = lastEnd - this.prevTrendOffset;
|
|
2822
|
+
} else {
|
|
2823
|
+
prevEnd = lastStart - 1;
|
|
2824
|
+
prevStart = prevEnd - (k - 1);
|
|
2825
|
+
}
|
|
2819
2826
|
if (lastStart >= 0 && prevStart >= 0) {
|
|
2820
2827
|
const sumRange = (arr, s, e) => {
|
|
2821
2828
|
let sum = 0;
|
|
@@ -2827,10 +2834,13 @@ class MetricsMiniChartWidget extends View {
|
|
|
2827
2834
|
hasTrend = true;
|
|
2828
2835
|
}
|
|
2829
2836
|
}
|
|
2830
|
-
if (!hasTrend
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2837
|
+
if (!hasTrend) {
|
|
2838
|
+
const prevIndex = endIndex - (this.prevTrendOffset && this.prevTrendOffset > 0 ? this.prevTrendOffset : 1);
|
|
2839
|
+
if (prevIndex >= 0) {
|
|
2840
|
+
lastSum = nums[endIndex];
|
|
2841
|
+
prevSum = nums[prevIndex];
|
|
2842
|
+
hasTrend = true;
|
|
2843
|
+
}
|
|
2834
2844
|
}
|
|
2835
2845
|
if (hasTrend) {
|
|
2836
2846
|
this.header.lastValue = lastSum;
|
|
@@ -2898,4 +2908,4 @@ export {
|
|
|
2898
2908
|
MetricsMiniChart as b,
|
|
2899
2909
|
MetricsMiniChartWidget as c
|
|
2900
2910
|
};
|
|
2901
|
-
//# sourceMappingURL=MetricsMiniChartWidget-
|
|
2911
|
+
//# sourceMappingURL=MetricsMiniChartWidget-Cgl3z0P7.js.map
|