@overvis/hmi-workspace-ui 0.1.0 → 0.1.2
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/alarm-list-DKFio0hg.js +414 -0
- package/dist/alarm-rule-dialog-mb4_nHRW.js +417 -0
- package/dist/{alarm-rule-lists-C5v1Kf7A.js → alarm-rule-lists-CfZXTWkK.js} +123 -125
- package/dist/{alarm-rules-page-CqFzofPd.js → alarm-rules-page-DBLSkrrG.js} +15 -18
- package/dist/alert-dialog-D_iDv2lQ.js +891 -0
- package/dist/{base-revision-YCO27zR4.js → base-revision-DLF9EnGV.js} +26 -29
- package/dist/{breadcrumbs-0cjsV2cq.js → breadcrumbs-D5R6Fz74.js} +6 -7
- package/dist/{catalog-list-DjZojYLJ.js → catalog-list-BkWosvh1.js} +2 -4
- package/dist/{code-editor-BVimvjDV.js → code-editor-DCM0KdMJ.js} +9 -6
- package/dist/dashboard-bindings.js +1 -2
- package/dist/{dashboards-page-BlrJguNz.js → dashboards-page-DLc11Vzu.js} +335 -359
- package/dist/{de-14WdmJxZ.js → de-Z2er-E5v.js} +4 -2
- package/dist/diagnostic-text-CYZFPiND.js +116 -0
- package/dist/{dialogs-D_v1LeH4.js → dialogs-BX023zml.js} +2523 -2590
- package/dist/{dialogs-B6BRnf3Q.js → dialogs-DEOg9lxy.js} +219 -227
- package/dist/{display-DmOo23mi.js → display-VYGzneE0.js} +4 -6
- package/dist/{editor-language-To9MxloY.js → editor-language-CGENZxbI.js} +3 -5
- package/dist/editor-page-CaN52OQh.js +1337 -0
- package/dist/{en-BgercpT0.js → en-CKPPL6bQ.js} +4 -2
- package/dist/entity-controls-DJT47yeV.js +71 -0
- package/dist/errors-BAWoH_5w.js +25 -0
- package/dist/{footer-DC-Q0052.js → footer-CbPMP8aq.js} +2404 -2515
- package/dist/host.js +8254 -675
- package/dist/{i18n-BgzakKoC.js → i18n-ChjEbYEg.js} +77 -90
- package/dist/i18n.js +1 -2
- package/dist/index.js +5168 -5353
- package/dist/{lat-lng-B12P7QyY.js → lat-lng-Bl77AGSO.js} +1 -2
- package/dist/{list-page-CvsdZb86.js → list-page-Fa29SkaJ.js} +116 -123
- package/dist/{location-map-renderer-DO5yfdSU.js → location-map-renderer-DvXIYc1Z.js} +6 -6
- package/dist/{location-picker-renderer-CjCxg6ai.js → location-picker-renderer-B1_-n8lf.js} +3 -4
- package/dist/{model-B8gGi4OK.js → model-tpg_xpFB.js} +1 -2
- package/dist/{notice-card-DyGywFsW.js → notice-card-V_0K0lO0.js} +54 -58
- package/dist/page-B5te_1Lc.js +449 -0
- package/dist/{page-v6LCwswN.js → page-BorlLnMX.js} +92 -100
- package/dist/page-DxF7FOve.js +507 -0
- package/dist/panel-DuZD-cBP.js +949 -0
- package/dist/parameter-values.js +3 -16
- package/dist/{pl-lQ9HXV9k.js → pl-DVABrn5G.js} +4 -2
- package/dist/presence-code-DsabLTZs.js +73 -0
- package/dist/{query-gate-DVhNIkge.js → query-gate-BbIo1Xrj.js} +6 -6
- package/dist/{provider-DoEpKcQ-.js → quick-report-BcZsfkCZ.js} +9423 -5102
- package/dist/{retention-BYXNpYmR.js → retention-C7EZsq8u.js} +4 -6
- package/dist/retention-note-CmMeHV_u.js +40 -0
- package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/dist/{ru-qTKINoUj.js → ru-CBRLC_xM.js} +8 -6
- package/dist/run-text-CDdfbKbg.js +112 -0
- package/dist/{search-D4rDnE9T.js → search-C6xQ_Hvo.js} +26 -29
- package/dist/{sections-kCOyc4NR.js → sections-D_SBfVzV.js} +2 -3
- package/dist/{select-BKiOWdSr.js → select-nNLG-AMz.js} +17 -23
- package/dist/{spinner-C-HPNxOc.js → spinner-B-KLtBjp.js} +182 -201
- package/dist/src/code-editor/code-editor.d.ts +3 -0
- package/dist/src/code-editor/taskfile-language.d.ts +22 -2
- package/dist/src/i18n/catalogs/de/edge-program.d.ts +3 -0
- package/dist/src/i18n/catalogs/de.d.ts +3 -0
- package/dist/src/i18n/catalogs/en/edge-program.d.ts +3 -0
- package/dist/src/i18n/catalogs/en.d.ts +3 -0
- package/dist/src/i18n/catalogs/pl/edge-program.d.ts +3 -0
- package/dist/src/i18n/catalogs/pl.d.ts +3 -0
- package/dist/src/i18n/catalogs/ru/edge-program.d.ts +5 -2
- package/dist/src/i18n/catalogs/ru/graphics.d.ts +2 -2
- package/dist/src/i18n/catalogs/ru.d.ts +7 -4
- package/dist/src/i18n/catalogs/uk/edge-program.d.ts +5 -2
- package/dist/src/i18n/catalogs/uk/graphics.d.ts +2 -2
- package/dist/src/i18n/catalogs/uk.d.ts +7 -4
- package/dist/src/version.d.ts +1 -1
- package/dist/src/workspace/graphics/inspector/item.d.ts +6 -6
- package/dist/src/workspace/local-workspace-app.d.ts +1 -1
- package/dist/src/workspace/routes.d.ts +1 -1
- package/dist/{starter-fields-BRLX0z-v.js → starter-fields-7S3LmtGa.js} +154 -157
- package/dist/{starter-handoff-BA3ucMKL.js → starter-handoff-BaK8Ss8I.js} +1 -2
- package/dist/styles.css +1 -1
- package/dist/ui.js +334 -374
- package/dist/{uk-CwpJAxmx.js → uk-17pbVYZa.js} +8 -6
- package/dist/{wireguard-docs-AfU6NzTL.js → wireguard-docs-Clb-7xRY.js} +14 -17
- package/package.json +15 -9
- package/dist/alarm-list-BL3xQ5Lf.js +0 -423
- package/dist/alarm-rule-dialog-S1ZUg-74.js +0 -423
- package/dist/alert-B8MAoIO8.js +0 -45
- package/dist/alert-dialog-CYkuMg5D.js +0 -129
- package/dist/api-error-9rQmUN5L.js +0 -93
- package/dist/breadcrumb-DzVL1yHa.js +0 -74
- package/dist/button-6SxPBYMz.js +0 -44
- package/dist/context-u9KJQmdB.js +0 -102
- package/dist/copyable-id-DYGiAcnq.js +0 -40
- package/dist/dashboard-context-CBfG6DoT.js +0 -191
- package/dist/date-time-picker-C3FhMXk6.js +0 -266
- package/dist/diagnostic-text-BAkzW0SE.js +0 -111
- package/dist/diagnostic-text-DiKd2i1w.js +0 -76
- package/dist/dialog-BIhQXcZC.js +0 -237
- package/dist/dialog-BqyIxMD-.js +0 -54
- package/dist/dropdown-menu-DSzbBq3v.js +0 -136
- package/dist/editor-page-BiSZJz5b.js +0 -1353
- package/dist/empty-B-QJ-06w.js +0 -59
- package/dist/entity-controls-D1K4Ot3O.js +0 -76
- package/dist/errors-CcsvDHu8.js +0 -26
- package/dist/history-page-sAAhG54V.js +0 -1400
- package/dist/icon-D-pR9htW.js +0 -57
- package/dist/index-page-DMH82fZe.js +0 -214
- package/dist/item-B5SaTFQU.js +0 -120
- package/dist/mutation-form-validators-BNz5bsv1.js +0 -2408
- package/dist/mutations-THtGG6Ai.js +0 -240
- package/dist/page-2KPemaAj.js +0 -328
- package/dist/page-6rIoTg2L.js +0 -459
- package/dist/page-C6giEoEd.js +0 -1935
- package/dist/page-DCbTxKsi.js +0 -313
- package/dist/page-DWO427hT.js +0 -208
- package/dist/page-LXu_2zm3.js +0 -137
- package/dist/page-aaUiVOnk.js +0 -513
- package/dist/page-header-RB2YFWlE.js +0 -55
- package/dist/page-title-CdCbiLt8.js +0 -14
- package/dist/panel-DDy8tUNR.js +0 -338
- package/dist/presence-code-BfSXr50g.js +0 -83
- package/dist/progress-C7cxNJA1.js +0 -83
- package/dist/provider-BOeYHi0n.js +0 -134
- package/dist/quick-report-CUVJnbKP.js +0 -416
- package/dist/radio-group-CZGqVbkJ.js +0 -26
- package/dist/retention-note-CHhA6gjY.js +0 -42
- package/dist/run-text-DvaO8LDF.js +0 -113
- package/dist/select-eNgZdZ30.js +0 -521
- package/dist/skeleton-6yk8Tdh5.js +0 -19
- package/dist/slider-DorDsoF8.js +0 -37
- package/dist/status-page-DAHiKM9P.js +0 -3286
- package/dist/switch-BqD0RH_G.js +0 -18
- package/dist/table-Q2-voLuw.js +0 -65
- package/dist/tabs-CSIucYFP.js +0 -57
- package/dist/theme-provider-BkRohQFU.js +0 -61
- package/dist/toggle-group-9Bs0Mm3r.js +0 -82
- package/dist/trpc-CvJUuUXp.js +0 -153
- package/dist/utils-CX-Pz5p6.js +0 -8
- package/dist/writability-BuH-spxv.js +0 -57
package/dist/select-eNgZdZ30.js
DELETED
|
@@ -1,521 +0,0 @@
|
|
|
1
|
-
import { f as e, h as t } from "./i18n-BgzakKoC.js";
|
|
2
|
-
import { t as n } from "./utils-CX-Pz5p6.js";
|
|
3
|
-
import { t as r } from "./button-6SxPBYMz.js";
|
|
4
|
-
import { a as i, h as a, r as o, t as s } from "./dropdown-menu-DSzbBq3v.js";
|
|
5
|
-
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
|
-
import { CheckIcon as ee, ChevronDownIcon as u } from "lucide-react";
|
|
7
|
-
import { DEFAULT_CHART_INTEGER_SERIES as d, DEFAULT_CHART_NUMERIC_SERIES as f, DEFAULT_CHART_SETUP as p, DEFAULT_CHART_STRING_SERIES as te, DEFAULT_HISTOGRAM_SETUP as ne, DEFAULT_NUMERIC_CADENCE_SERIES as m, DEFAULT_TABLE_SETUP as re, DEFAULT_TIME_BUCKETS_SETUP as h, assignReportSnapshotColors as g, freezeReportParameterSetupFromLive as _, reportColors as v, reportParameterShellFormFromSetup as y, reportSnapshotColorAt as b, reportSnapshotTypeForValueTypeName as x } from "@overvis/hmi-shared/report";
|
|
8
|
-
//#region src/workspace/reports/table/totals.ts
|
|
9
|
-
function S(e, t) {
|
|
10
|
-
return t === "none" ? !0 : t === "per-day" ? e === "1d" : e === "1h" || e === "4h" || e === "1d";
|
|
11
|
-
}
|
|
12
|
-
function C(e) {
|
|
13
|
-
switch (e) {
|
|
14
|
-
case "last": return ["latest"];
|
|
15
|
-
case "delta": return ["delta"];
|
|
16
|
-
case "sum": return ["sum"];
|
|
17
|
-
case "average": return ["average"];
|
|
18
|
-
case "min": return ["min"];
|
|
19
|
-
case "max": return ["max"];
|
|
20
|
-
default: return [];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region src/workspace/reports/sankey/graph.ts
|
|
25
|
-
function w(e, t, n) {
|
|
26
|
-
return `${e}\0${t}\0${n}`;
|
|
27
|
-
}
|
|
28
|
-
function T(e, t, n, r) {
|
|
29
|
-
let i = w(t, n, r);
|
|
30
|
-
for (let t of e) if (w(t.fromNodeId, t.toNodeId, t.parameterId) === i) return !0;
|
|
31
|
-
return !1;
|
|
32
|
-
}
|
|
33
|
-
function E(e, t) {
|
|
34
|
-
let n = /* @__PURE__ */ new Map();
|
|
35
|
-
for (let t of e) {
|
|
36
|
-
let e = n.get(t.toNodeId) ?? [];
|
|
37
|
-
e.push(t.fromNodeId), n.set(t.toNodeId, e);
|
|
38
|
-
}
|
|
39
|
-
let r = /* @__PURE__ */ new Set(), i = [t];
|
|
40
|
-
for (; i.length > 0;) {
|
|
41
|
-
let e = i.pop();
|
|
42
|
-
if (!(e == null || r.has(e))) {
|
|
43
|
-
r.add(e);
|
|
44
|
-
for (let t of n.get(e) ?? []) i.push(t);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return r;
|
|
48
|
-
}
|
|
49
|
-
function D(e, t, n) {
|
|
50
|
-
let r = E(t, n), i = [];
|
|
51
|
-
for (let t of e) r.has(t) || i.push(t);
|
|
52
|
-
return i;
|
|
53
|
-
}
|
|
54
|
-
function O(e, t) {
|
|
55
|
-
let n = /* @__PURE__ */ new Map();
|
|
56
|
-
for (let e of t) {
|
|
57
|
-
if (e.fromNodeId === e.toNodeId) return !0;
|
|
58
|
-
let t = n.get(e.fromNodeId) ?? [];
|
|
59
|
-
t.push(e.toNodeId), n.set(e.fromNodeId, t);
|
|
60
|
-
}
|
|
61
|
-
let r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
|
|
62
|
-
function a(e) {
|
|
63
|
-
if (r.has(e)) return !0;
|
|
64
|
-
if (i.has(e)) return !1;
|
|
65
|
-
r.add(e);
|
|
66
|
-
for (let t of n.get(e) ?? []) if (a(t)) return !0;
|
|
67
|
-
return r.delete(e), i.add(e), !1;
|
|
68
|
-
}
|
|
69
|
-
for (let t of e) if (a(t)) return !0;
|
|
70
|
-
return !1;
|
|
71
|
-
}
|
|
72
|
-
function k(e, t, n, r) {
|
|
73
|
-
return D(e, t, n).filter((e) => !T(t, n, e, r));
|
|
74
|
-
}
|
|
75
|
-
function A(e, t, n, r) {
|
|
76
|
-
let i = [], a = /* @__PURE__ */ new Set(), o = (e) => {
|
|
77
|
-
e.length === 0 || a.has(e) || (a.add(e), i.push(e));
|
|
78
|
-
};
|
|
79
|
-
o(r);
|
|
80
|
-
for (let r of e) k(e, t, r, n).length > 0 && o(r);
|
|
81
|
-
return i;
|
|
82
|
-
}
|
|
83
|
-
function j(e) {
|
|
84
|
-
let t = [], n = /* @__PURE__ */ new Set();
|
|
85
|
-
for (let r of e) n.has(r) || (n.add(r), t.push(r));
|
|
86
|
-
return t;
|
|
87
|
-
}
|
|
88
|
-
function M(e, t) {
|
|
89
|
-
return e.some((e) => !t.has(e));
|
|
90
|
-
}
|
|
91
|
-
function N(e, t) {
|
|
92
|
-
let n = new Set(t), r = [], i = /* @__PURE__ */ new Set();
|
|
93
|
-
for (let t of e) !n.has(t.fromNodeId) && !n.has(t.toNodeId) || i.has(t.parameterId) || (i.add(t.parameterId), r.push(t.parameterId));
|
|
94
|
-
return r;
|
|
95
|
-
}
|
|
96
|
-
function P(e, t) {
|
|
97
|
-
return e ?? (t ? 160 : 280);
|
|
98
|
-
}
|
|
99
|
-
function F(e, t, n) {
|
|
100
|
-
let r = e.toFixed(t);
|
|
101
|
-
return n === "" ? r : `${r} ${n}`;
|
|
102
|
-
}
|
|
103
|
-
//#endregion
|
|
104
|
-
//#region src/workspace/reports/preset/form-helpers.ts
|
|
105
|
-
function I(e) {
|
|
106
|
-
let t = e.parameters.filter((e) => x(e.valueType.name) != null), n = g({
|
|
107
|
-
used: e.usedColors,
|
|
108
|
-
count: t.length
|
|
109
|
-
});
|
|
110
|
-
return t.flatMap((t, r) => {
|
|
111
|
-
let i = n[r] ?? b(r), a = _({
|
|
112
|
-
...t,
|
|
113
|
-
defaultColor: i
|
|
114
|
-
});
|
|
115
|
-
return a == null ? [] : [y(a, e.locale)];
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
function L(e, t) {
|
|
119
|
-
if (!t(e)) return e;
|
|
120
|
-
let n = 2;
|
|
121
|
-
for (; t(`${e}${String(n)}`);) n += 1;
|
|
122
|
-
return `${e}${String(n)}`;
|
|
123
|
-
}
|
|
124
|
-
function R(e, t) {
|
|
125
|
-
return L(t, (t) => Object.hasOwn(e, t));
|
|
126
|
-
}
|
|
127
|
-
function z() {
|
|
128
|
-
return {
|
|
129
|
-
...p,
|
|
130
|
-
parameters: []
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
function B() {
|
|
134
|
-
return {
|
|
135
|
-
...re,
|
|
136
|
-
parameters: []
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
function V(e) {
|
|
140
|
-
return e.type === "numeric" ? {
|
|
141
|
-
parameterId: e.parameterId,
|
|
142
|
-
type: "numeric",
|
|
143
|
-
decimalPlaces: 2,
|
|
144
|
-
perCadenceValue: "latest",
|
|
145
|
-
totals: "none",
|
|
146
|
-
bgZoneColorOpacity: 0
|
|
147
|
-
} : e.type === "integer" ? {
|
|
148
|
-
parameterId: e.parameterId,
|
|
149
|
-
type: "integer",
|
|
150
|
-
bgOpacity: {},
|
|
151
|
-
totals: "none"
|
|
152
|
-
} : {
|
|
153
|
-
parameterId: e.parameterId,
|
|
154
|
-
type: "string",
|
|
155
|
-
totals: "none"
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
function H() {
|
|
159
|
-
return {
|
|
160
|
-
...h,
|
|
161
|
-
parameters: []
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
function ie() {
|
|
165
|
-
return {
|
|
166
|
-
...ne,
|
|
167
|
-
parameters: []
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
function U(e) {
|
|
171
|
-
return {
|
|
172
|
-
parameterId: e.parameterId,
|
|
173
|
-
...m
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
function W(e) {
|
|
177
|
-
return {
|
|
178
|
-
parameterId: e.parameterId,
|
|
179
|
-
...m
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
function G() {
|
|
183
|
-
return {
|
|
184
|
-
type: "calendar",
|
|
185
|
-
showAs: "month-days",
|
|
186
|
-
dayValueParameter: null,
|
|
187
|
-
dayTextColorParameter: null,
|
|
188
|
-
dayBgColorParameter: null,
|
|
189
|
-
dayBorderColorParameter: null,
|
|
190
|
-
compact: !1,
|
|
191
|
-
showTitles: !0,
|
|
192
|
-
interactive: !0
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
function K(e) {
|
|
196
|
-
return {
|
|
197
|
-
parameterId: e.parameterId,
|
|
198
|
-
type: "numeric",
|
|
199
|
-
perDayValue: "latest",
|
|
200
|
-
decimalPlaces: 2
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
function q(e) {
|
|
204
|
-
return e.type === "integer" ? {
|
|
205
|
-
parameterId: e.parameterId,
|
|
206
|
-
type: "integer"
|
|
207
|
-
} : {
|
|
208
|
-
parameterId: e.parameterId,
|
|
209
|
-
type: "numeric"
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
function J() {
|
|
213
|
-
return {
|
|
214
|
-
type: "hourly-matrix",
|
|
215
|
-
cadence: "1h",
|
|
216
|
-
stackDays: "vertical",
|
|
217
|
-
compact: !1,
|
|
218
|
-
showTitles: !0,
|
|
219
|
-
interactive: !0,
|
|
220
|
-
parameters: []
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
function Y(e) {
|
|
224
|
-
return {
|
|
225
|
-
label: e.label,
|
|
226
|
-
dayHeaderParameters: null,
|
|
227
|
-
cellValueParameter: null,
|
|
228
|
-
cellTextColorParameter: null,
|
|
229
|
-
cellBgColorParameter: null,
|
|
230
|
-
cellBorderColorParameter: null,
|
|
231
|
-
valueTotalsPerDay: {
|
|
232
|
-
header: e.totalHeader,
|
|
233
|
-
aggregation: "none"
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
function ae(e) {
|
|
238
|
-
return {
|
|
239
|
-
parameterId: e.parameterId,
|
|
240
|
-
type: "numeric",
|
|
241
|
-
aggregation: "latest",
|
|
242
|
-
decimalPlaces: 2
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
function oe(e) {
|
|
246
|
-
return e.type === "integer" ? {
|
|
247
|
-
parameterId: e.parameterId,
|
|
248
|
-
type: "integer"
|
|
249
|
-
} : {
|
|
250
|
-
parameterId: e.parameterId,
|
|
251
|
-
type: "numeric"
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
function se(e) {
|
|
255
|
-
return e.type === "numeric" ? {
|
|
256
|
-
parameterId: e.parameterId,
|
|
257
|
-
type: "numeric",
|
|
258
|
-
perDayAggregation: "latest",
|
|
259
|
-
zoneBgOpacity: 0
|
|
260
|
-
} : e.type === "integer" ? {
|
|
261
|
-
parameterId: e.parameterId,
|
|
262
|
-
type: "integer",
|
|
263
|
-
perDayAggregation: "latest"
|
|
264
|
-
} : {
|
|
265
|
-
parameterId: e.parameterId,
|
|
266
|
-
type: "string",
|
|
267
|
-
perDayAggregation: "latest"
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
function ce() {
|
|
271
|
-
return {
|
|
272
|
-
type: "sankey",
|
|
273
|
-
nodes: [],
|
|
274
|
-
links: [],
|
|
275
|
-
valueAggregation: "delta",
|
|
276
|
-
compact: !1,
|
|
277
|
-
height: null,
|
|
278
|
-
showTitles: !0,
|
|
279
|
-
showTooltips: !0,
|
|
280
|
-
interactive: !0
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
function le(e) {
|
|
284
|
-
return {
|
|
285
|
-
id: L("node", (t) => e.nodes.some((e) => e.id === t)),
|
|
286
|
-
label: e.label
|
|
287
|
-
};
|
|
288
|
-
}
|
|
289
|
-
function ue(e) {
|
|
290
|
-
return {
|
|
291
|
-
fromNodeId: e.fromNodeId,
|
|
292
|
-
toNodeId: e.toNodeId,
|
|
293
|
-
parameterId: e.parameterId,
|
|
294
|
-
decimalPlaces: 2
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
function de() {
|
|
298
|
-
return {
|
|
299
|
-
type: "state-duration",
|
|
300
|
-
parameters: [],
|
|
301
|
-
displayAs: "pie",
|
|
302
|
-
compact: !1,
|
|
303
|
-
height: null,
|
|
304
|
-
showTitles: !0,
|
|
305
|
-
showTooltips: !0
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
function fe(e) {
|
|
309
|
-
return {
|
|
310
|
-
parameterId: e.parameterId,
|
|
311
|
-
type: "integer"
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
function pe(e) {
|
|
315
|
-
return e.type === "numeric" ? {
|
|
316
|
-
parameterId: e.parameterId,
|
|
317
|
-
type: "numeric",
|
|
318
|
-
...f
|
|
319
|
-
} : e.type === "integer" ? {
|
|
320
|
-
parameterId: e.parameterId,
|
|
321
|
-
type: "integer",
|
|
322
|
-
...d
|
|
323
|
-
} : {
|
|
324
|
-
parameterId: e.parameterId,
|
|
325
|
-
type: "string",
|
|
326
|
-
...te
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
function me(e, t) {
|
|
330
|
-
for (let n of e.rows) for (let e of n) if (e.representation === t) return !0;
|
|
331
|
-
return !1;
|
|
332
|
-
}
|
|
333
|
-
function he(e, t) {
|
|
334
|
-
return {
|
|
335
|
-
type: "simple",
|
|
336
|
-
rows: e.rows.map((e) => e.filter((e) => e.representation !== t)).filter((e) => e.length > 0)
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
function ge(e, t) {
|
|
340
|
-
return {
|
|
341
|
-
type: "simple",
|
|
342
|
-
rows: [...e.rows, [{
|
|
343
|
-
representation: t,
|
|
344
|
-
column: "full"
|
|
345
|
-
}]]
|
|
346
|
-
};
|
|
347
|
-
}
|
|
348
|
-
function X(e, t) {
|
|
349
|
-
let n = (e) => e?.parameterId === t ? null : e, r = {};
|
|
350
|
-
for (let [i, a] of Object.entries(e)) {
|
|
351
|
-
if (a.type === "chart") {
|
|
352
|
-
r[i] = {
|
|
353
|
-
...a,
|
|
354
|
-
parameters: a.parameters.filter((e) => e.parameterId !== t)
|
|
355
|
-
};
|
|
356
|
-
continue;
|
|
357
|
-
}
|
|
358
|
-
if (a.type === "table") {
|
|
359
|
-
r[i] = {
|
|
360
|
-
...a,
|
|
361
|
-
parameters: a.parameters.filter((e) => e.parameterId !== t)
|
|
362
|
-
};
|
|
363
|
-
continue;
|
|
364
|
-
}
|
|
365
|
-
if (a.type === "time-buckets" || a.type === "histogram") {
|
|
366
|
-
r[i] = {
|
|
367
|
-
...a,
|
|
368
|
-
parameters: a.parameters.filter((e) => e.parameterId !== t)
|
|
369
|
-
};
|
|
370
|
-
continue;
|
|
371
|
-
}
|
|
372
|
-
if (a.type === "calendar") {
|
|
373
|
-
r[i] = {
|
|
374
|
-
...a,
|
|
375
|
-
dayValueParameter: n(a.dayValueParameter),
|
|
376
|
-
dayTextColorParameter: n(a.dayTextColorParameter),
|
|
377
|
-
dayBgColorParameter: n(a.dayBgColorParameter),
|
|
378
|
-
dayBorderColorParameter: n(a.dayBorderColorParameter)
|
|
379
|
-
};
|
|
380
|
-
continue;
|
|
381
|
-
}
|
|
382
|
-
if (a.type === "hourly-matrix") {
|
|
383
|
-
r[i] = {
|
|
384
|
-
...a,
|
|
385
|
-
parameters: a.parameters.map((e) => {
|
|
386
|
-
let r = e.dayHeaderParameters?.filter((e) => e.parameterId !== t);
|
|
387
|
-
return {
|
|
388
|
-
...e,
|
|
389
|
-
dayHeaderParameters: r == null || r.length === 0 ? null : r,
|
|
390
|
-
cellValueParameter: n(e.cellValueParameter),
|
|
391
|
-
cellTextColorParameter: n(e.cellTextColorParameter),
|
|
392
|
-
cellBgColorParameter: n(e.cellBgColorParameter),
|
|
393
|
-
cellBorderColorParameter: n(e.cellBorderColorParameter)
|
|
394
|
-
};
|
|
395
|
-
})
|
|
396
|
-
};
|
|
397
|
-
continue;
|
|
398
|
-
}
|
|
399
|
-
if (a.type === "state-duration") {
|
|
400
|
-
r[i] = {
|
|
401
|
-
...a,
|
|
402
|
-
parameters: a.parameters.filter((e) => e.parameterId !== t)
|
|
403
|
-
};
|
|
404
|
-
continue;
|
|
405
|
-
}
|
|
406
|
-
r[i] = {
|
|
407
|
-
...a,
|
|
408
|
-
links: a.links.filter((e) => e.parameterId !== t)
|
|
409
|
-
};
|
|
410
|
-
}
|
|
411
|
-
return r;
|
|
412
|
-
}
|
|
413
|
-
function Z(e, t) {
|
|
414
|
-
if (e != null) {
|
|
415
|
-
if (Array.isArray(e)) {
|
|
416
|
-
for (let n of e) Z(n, t);
|
|
417
|
-
return;
|
|
418
|
-
}
|
|
419
|
-
if (typeof e == "object") for (let [n, r] of Object.entries(e)) if (n === "parameterId" && typeof r == "string" && r.length > 0) t.add(r);
|
|
420
|
-
else if (n === "parameterIds" && Array.isArray(r)) for (let e of r) typeof e == "string" && e.length > 0 && t.add(e);
|
|
421
|
-
else Z(r, t);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
function _e(e) {
|
|
425
|
-
let t = /* @__PURE__ */ new Set();
|
|
426
|
-
for (let n of Object.values(e)) Z(n, t);
|
|
427
|
-
return t;
|
|
428
|
-
}
|
|
429
|
-
function ve(e, t) {
|
|
430
|
-
let n = [...e], r = new Set(e);
|
|
431
|
-
for (let e of t) r.has(e) || (r.add(e), n.push(e));
|
|
432
|
-
return n;
|
|
433
|
-
}
|
|
434
|
-
//#endregion
|
|
435
|
-
//#region src/workspace/reports/color/select.tsx
|
|
436
|
-
var ye = {
|
|
437
|
-
red: "bg-red-500",
|
|
438
|
-
orange: "bg-orange-500",
|
|
439
|
-
amber: "bg-amber-500",
|
|
440
|
-
yellow: "bg-yellow-500",
|
|
441
|
-
green: "bg-green-500",
|
|
442
|
-
emerald: "bg-emerald-500",
|
|
443
|
-
teal: "bg-teal-500",
|
|
444
|
-
cyan: "bg-cyan-500",
|
|
445
|
-
sky: "bg-sky-500",
|
|
446
|
-
blue: "bg-blue-500",
|
|
447
|
-
indigo: "bg-indigo-500",
|
|
448
|
-
violet: "bg-violet-500",
|
|
449
|
-
purple: "bg-purple-500",
|
|
450
|
-
fuchsia: "bg-fuchsia-500",
|
|
451
|
-
pink: "bg-pink-500",
|
|
452
|
-
slate: "bg-slate-500"
|
|
453
|
-
};
|
|
454
|
-
function Q(t) {
|
|
455
|
-
switch (t) {
|
|
456
|
-
case "red": return e("report_color_red");
|
|
457
|
-
case "orange": return e("report_color_orange");
|
|
458
|
-
case "amber": return e("report_color_amber");
|
|
459
|
-
case "yellow": return e("report_color_yellow");
|
|
460
|
-
case "green": return e("report_color_green");
|
|
461
|
-
case "emerald": return e("report_color_emerald");
|
|
462
|
-
case "teal": return e("report_color_teal");
|
|
463
|
-
case "cyan": return e("report_color_cyan");
|
|
464
|
-
case "sky": return e("report_color_sky");
|
|
465
|
-
case "blue": return e("report_color_blue");
|
|
466
|
-
case "indigo": return e("report_color_indigo");
|
|
467
|
-
case "violet": return e("report_color_violet");
|
|
468
|
-
case "purple": return e("report_color_purple");
|
|
469
|
-
case "fuchsia": return e("report_color_fuchsia");
|
|
470
|
-
case "pink": return e("report_color_pink");
|
|
471
|
-
case "slate": return e("report_color_slate");
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
function $({ color: e, className: t }) {
|
|
475
|
-
return /* @__PURE__ */ c("span", {
|
|
476
|
-
"aria-hidden": !0,
|
|
477
|
-
className: n("size-2.5 shrink-0 rounded-full ring-1 ring-foreground/15", ye[e], t)
|
|
478
|
-
});
|
|
479
|
-
}
|
|
480
|
-
function be({ id: e, value: n, onChange: d }) {
|
|
481
|
-
return t(), /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ l(a, {
|
|
482
|
-
render: /* @__PURE__ */ c(r, {
|
|
483
|
-
type: "button",
|
|
484
|
-
variant: "outline",
|
|
485
|
-
size: "sm",
|
|
486
|
-
...e == null ? {} : { id: e },
|
|
487
|
-
className: "h-8 w-full justify-between px-2.5 font-normal"
|
|
488
|
-
}),
|
|
489
|
-
children: [/* @__PURE__ */ l("span", {
|
|
490
|
-
className: "flex min-w-0 items-center gap-2",
|
|
491
|
-
children: [/* @__PURE__ */ c($, { color: n }), /* @__PURE__ */ c("span", {
|
|
492
|
-
className: "truncate",
|
|
493
|
-
children: Q(n)
|
|
494
|
-
})]
|
|
495
|
-
}), /* @__PURE__ */ c(u, {
|
|
496
|
-
className: "size-4 opacity-50",
|
|
497
|
-
"data-icon": "inline-end"
|
|
498
|
-
})]
|
|
499
|
-
}), /* @__PURE__ */ c(o, {
|
|
500
|
-
align: "start",
|
|
501
|
-
className: "min-w-(--anchor-width)",
|
|
502
|
-
children: v.map((e) => {
|
|
503
|
-
let t = e === n;
|
|
504
|
-
return /* @__PURE__ */ l(i, {
|
|
505
|
-
onClick: () => {
|
|
506
|
-
d(e);
|
|
507
|
-
},
|
|
508
|
-
children: [
|
|
509
|
-
/* @__PURE__ */ c($, { color: e }),
|
|
510
|
-
/* @__PURE__ */ c("span", {
|
|
511
|
-
className: "flex-1",
|
|
512
|
-
children: Q(e)
|
|
513
|
-
}),
|
|
514
|
-
t ? /* @__PURE__ */ c(ee, { className: "size-4 opacity-70" }) : null
|
|
515
|
-
]
|
|
516
|
-
}, e);
|
|
517
|
-
})
|
|
518
|
-
})] });
|
|
519
|
-
}
|
|
520
|
-
//#endregion
|
|
521
|
-
export { X as A, j as B, V as C, me as D, I as E, T as F, C as H, P as I, N as L, ve as M, F as N, R as O, O as P, A as R, B as S, U as T, S as U, M as V, ce as _, q as a, de as b, z as c, W as d, ae as f, Y as g, J as h, ge as i, _e as j, he as k, pe as l, se as m, $ as n, K as o, oe as p, Q as r, G as s, be as t, ie as u, ue as v, H as w, fe as x, le as y, k as z };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-CX-Pz5p6.js";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
//#region src/ui/skeleton.tsx
|
|
4
|
-
function n({ className: n, ...r }) {
|
|
5
|
-
return /* @__PURE__ */ t("div", {
|
|
6
|
-
"data-slot": "skeleton",
|
|
7
|
-
className: e("animate-pulse rounded-md bg-muted", n),
|
|
8
|
-
...r
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
function r({ className: n, ...r }) {
|
|
12
|
-
return /* @__PURE__ */ t("span", {
|
|
13
|
-
"data-slot": "skeleton",
|
|
14
|
-
className: e("block animate-pulse rounded-md bg-muted", n),
|
|
15
|
-
...r
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
export { n, r as t };
|
package/dist/slider-DorDsoF8.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-CX-Pz5p6.js";
|
|
2
|
-
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
import { Slider as r } from "@base-ui/react/slider";
|
|
4
|
-
//#region src/ui/slider.tsx
|
|
5
|
-
function i({ className: i, defaultValue: a, value: o, min: s = 0, max: c = 100, "aria-label": l, "aria-labelledby": u, ...d }) {
|
|
6
|
-
let f = Array.isArray(o) ? o : Array.isArray(a) ? a : [s, c];
|
|
7
|
-
return /* @__PURE__ */ t(r.Root, {
|
|
8
|
-
className: e("\n data-horizontal:w-full\n data-vertical:h-full\n ", i),
|
|
9
|
-
"data-slot": "slider",
|
|
10
|
-
defaultValue: a,
|
|
11
|
-
value: o,
|
|
12
|
-
min: s,
|
|
13
|
-
max: c,
|
|
14
|
-
"aria-label": l,
|
|
15
|
-
"aria-labelledby": u,
|
|
16
|
-
thumbAlignment: "edge",
|
|
17
|
-
...d,
|
|
18
|
-
children: /* @__PURE__ */ n(r.Control, {
|
|
19
|
-
className: "\n relative flex w-full touch-none items-center select-none\n data-disabled:opacity-50\n data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col\n ",
|
|
20
|
-
children: [/* @__PURE__ */ t(r.Track, {
|
|
21
|
-
"data-slot": "slider-track",
|
|
22
|
-
className: "\n relative grow overflow-hidden rounded-full bg-muted select-none\n data-horizontal:h-1 data-horizontal:w-full\n data-vertical:h-full data-vertical:w-1\n ",
|
|
23
|
-
children: /* @__PURE__ */ t(r.Indicator, {
|
|
24
|
-
"data-slot": "slider-range",
|
|
25
|
-
className: "\n bg-primary select-none\n data-horizontal:h-full\n data-vertical:w-full\n "
|
|
26
|
-
})
|
|
27
|
-
}), Array.from({ length: f.length }, (e, n) => /* @__PURE__ */ t(r.Thumb, {
|
|
28
|
-
"data-slot": "slider-thumb",
|
|
29
|
-
"aria-label": l,
|
|
30
|
-
"aria-labelledby": u,
|
|
31
|
-
className: "\n relative block size-3 shrink-0 rounded-full border border-ring bg-white ring-ring/50\n transition-[color,box-shadow] select-none\n after:absolute after:-inset-2\n hover:ring-3\n focus-visible:ring-3 focus-visible:outline-hidden\n active:ring-3\n disabled:pointer-events-none disabled:opacity-50\n "
|
|
32
|
-
}, n))]
|
|
33
|
-
})
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
export { i as t };
|