@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/switch-BqD0RH_G.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-CX-Pz5p6.js";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { Switch as n } from "@base-ui/react/switch";
|
|
4
|
-
//#region src/ui/switch.tsx
|
|
5
|
-
function r({ className: r, size: i = "default", ...a }) {
|
|
6
|
-
return /* @__PURE__ */ t(n.Root, {
|
|
7
|
-
"data-slot": "switch",
|
|
8
|
-
"data-size": i,
|
|
9
|
-
className: e("\n peer group/switch relative inline-flex shrink-0 cursor-pointer items-center rounded-full\n border border-transparent transition-all outline-none\n after:absolute after:-inset-x-3 after:-inset-y-2\n focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50\n aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20\n data-[size=default]:h-[18.4px] data-[size=default]:w-[32px]\n data-[size=sm]:h-[14px] data-[size=sm]:w-[24px]\n dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40\n data-checked:bg-primary\n data-unchecked:bg-input\n dark:data-unchecked:bg-input/80\n data-disabled:cursor-not-allowed data-disabled:opacity-50\n ", r),
|
|
10
|
-
...a,
|
|
11
|
-
children: /* @__PURE__ */ t(n.Thumb, {
|
|
12
|
-
"data-slot": "switch-thumb",
|
|
13
|
-
className: "\n pointer-events-none block rounded-full bg-background ring-0 transition-transform\n group-data-[size=default]/switch:size-4\n group-data-[size=sm]/switch:size-3\n group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)]\n group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)]\n dark:data-checked:bg-primary-foreground\n group-data-[size=default]/switch:data-unchecked:translate-x-0\n group-data-[size=sm]/switch:data-unchecked:translate-x-0\n dark:data-unchecked:bg-foreground\n "
|
|
14
|
-
})
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { r as t };
|
package/dist/table-Q2-voLuw.js
DELETED
|
@@ -1,65 +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/table.tsx
|
|
4
|
-
function n({ className: n, ...r }) {
|
|
5
|
-
return /* @__PURE__ */ t("div", {
|
|
6
|
-
"data-slot": "table-container",
|
|
7
|
-
className: "relative w-full overflow-x-auto",
|
|
8
|
-
children: /* @__PURE__ */ t("table", {
|
|
9
|
-
"data-slot": "table",
|
|
10
|
-
className: e("w-full caption-bottom text-sm", n),
|
|
11
|
-
...r
|
|
12
|
-
})
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
function r({ className: n, ...r }) {
|
|
16
|
-
return /* @__PURE__ */ t("thead", {
|
|
17
|
-
"data-slot": "table-header",
|
|
18
|
-
className: e("[&_tr]:border-b", n),
|
|
19
|
-
...r
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
function i({ className: n, ...r }) {
|
|
23
|
-
return /* @__PURE__ */ t("tbody", {
|
|
24
|
-
"data-slot": "table-body",
|
|
25
|
-
className: e("[&_tr:last-child]:border-0", n),
|
|
26
|
-
...r
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function a({ className: n, ...r }) {
|
|
30
|
-
return /* @__PURE__ */ t("tfoot", {
|
|
31
|
-
"data-slot": "table-footer",
|
|
32
|
-
className: e("\n border-t bg-muted/50 font-medium\n [&>tr]:last:border-b-0\n ", n),
|
|
33
|
-
...r
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
function o({ className: n, ...r }) {
|
|
37
|
-
return /* @__PURE__ */ t("tr", {
|
|
38
|
-
"data-slot": "table-row",
|
|
39
|
-
className: e("\n border-b transition-colors\n hover:bg-muted/40\n has-aria-expanded:bg-muted/40\n data-[state=selected]:bg-muted\n ", n),
|
|
40
|
-
...r
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
function s({ className: n, ...r }) {
|
|
44
|
-
return /* @__PURE__ */ t("th", {
|
|
45
|
-
"data-slot": "table-head",
|
|
46
|
-
className: e("\n h-8 px-2 text-left align-middle text-xs font-medium whitespace-nowrap\n text-muted-foreground\n has-[[role=checkbox]]:pr-0\n ", n),
|
|
47
|
-
...r
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
function c({ className: n, ...r }) {
|
|
51
|
-
return /* @__PURE__ */ t("td", {
|
|
52
|
-
"data-slot": "table-cell",
|
|
53
|
-
className: e("\n px-2 py-1.5 align-middle whitespace-nowrap\n has-[[role=checkbox]]:pr-0\n ", n),
|
|
54
|
-
...r
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
function l({ className: n, ...r }) {
|
|
58
|
-
return /* @__PURE__ */ t("caption", {
|
|
59
|
-
"data-slot": "table-caption",
|
|
60
|
-
className: e("mt-4 text-sm text-muted-foreground", n),
|
|
61
|
-
...r
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
//#endregion
|
|
65
|
-
export { a, o as c, c as i, i as n, s as o, l as r, r as s, n as t };
|
package/dist/tabs-CSIucYFP.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-CX-Pz5p6.js";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { cva as n } from "class-variance-authority";
|
|
4
|
-
import { Tabs as r } from "@base-ui/react/tabs";
|
|
5
|
-
//#region src/ui/tabs.tsx
|
|
6
|
-
function i({ className: n, orientation: i = "horizontal", ...a }) {
|
|
7
|
-
return /* @__PURE__ */ t(r.Root, {
|
|
8
|
-
"data-slot": "tabs",
|
|
9
|
-
"data-orientation": i,
|
|
10
|
-
className: e("\n group/tabs flex gap-2\n data-horizontal:flex-col\n ", n),
|
|
11
|
-
...a
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
var a = n("\n group/tabs-list inline-flex w-fit items-center justify-center rounded-lg text-muted-foreground\n group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col\n data-[variant=line]:rounded-none\n ", {
|
|
15
|
-
variants: {
|
|
16
|
-
variant: {
|
|
17
|
-
default: "bg-muted",
|
|
18
|
-
line: "gap-1 bg-transparent"
|
|
19
|
-
},
|
|
20
|
-
size: {
|
|
21
|
-
default: "\n p-[3px]\n group-data-horizontal/tabs:h-8\n ",
|
|
22
|
-
sm: "\n p-0.5\n group-data-horizontal/tabs:h-7\n "
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
defaultVariants: {
|
|
26
|
-
variant: "default",
|
|
27
|
-
size: "default"
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
function o({ className: n, variant: i = "default", size: o = "default", ...s }) {
|
|
31
|
-
return /* @__PURE__ */ t(r.List, {
|
|
32
|
-
"data-slot": "tabs-list",
|
|
33
|
-
"data-variant": i,
|
|
34
|
-
"data-size": o,
|
|
35
|
-
className: e(a({
|
|
36
|
-
variant: i,
|
|
37
|
-
size: o
|
|
38
|
-
}), n),
|
|
39
|
-
...s
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
function s({ className: n, ...i }) {
|
|
43
|
-
return /* @__PURE__ */ t(r.Tab, {
|
|
44
|
-
"data-slot": "tabs-trigger",
|
|
45
|
-
className: e("\n relative inline-flex h-[calc(100%-1px)] flex-1 cursor-pointer items-center justify-center\n gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium\n whitespace-nowrap text-foreground/60 transition-all\n group-data-[size=sm]/tabs-list:px-2 group-data-[size=sm]/tabs-list:text-xs\n group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start\n hover:text-foreground\n focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50\n focus-visible:outline-1 focus-visible:outline-ring\n disabled:pointer-events-none disabled:opacity-50\n has-data-[icon=inline-end]:pr-1\n has-data-[icon=inline-start]:pl-1\n aria-disabled:pointer-events-none aria-disabled:opacity-50\n dark:text-muted-foreground\n dark:hover:text-foreground\n group-data-[variant=default]/tabs-list:data-active:shadow-sm\n group-data-[variant=line]/tabs-list:data-active:shadow-none\n [&_svg]:pointer-events-none [&_svg]:shrink-0\n [&_svg:not([class*='size-'])]:size-4\n ", "\n group-data-[variant=line]/tabs-list:bg-transparent\n group-data-[variant=line]/tabs-list:data-active:bg-transparent\n dark:group-data-[variant=line]/tabs-list:data-active:border-transparent\n dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent\n ", "\n data-active:bg-background data-active:text-foreground\n dark:data-active:border-input dark:data-active:bg-input/30\n dark:data-active:text-foreground\n ", "\n after:absolute after:bg-foreground after:opacity-0 after:transition-opacity\n group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px]\n group-data-horizontal/tabs:after:h-0.5\n group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1\n group-data-vertical/tabs:after:w-0.5\n group-data-[variant=line]/tabs-list:data-active:after:opacity-100\n ", n),
|
|
46
|
-
...i
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function c({ className: n, ...i }) {
|
|
50
|
-
return /* @__PURE__ */ t(r.Panel, {
|
|
51
|
-
"data-slot": "tabs-content",
|
|
52
|
-
className: e("flex-1 text-sm outline-none", n),
|
|
53
|
-
...i
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
//#endregion
|
|
57
|
-
export { a, s as i, c as n, o as r, i as t };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { createContext as e, useCallback as t, useContext as n, useEffect as r, useMemo as i, useState as a } from "react";
|
|
2
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
-
//#region src/theme-provider.tsx
|
|
4
|
-
var s = e(void 0);
|
|
5
|
-
function c(e) {
|
|
6
|
-
return e === "dark" || e === "light" || e === "system";
|
|
7
|
-
}
|
|
8
|
-
function l() {
|
|
9
|
-
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
10
|
-
}
|
|
11
|
-
function u(e) {
|
|
12
|
-
let t = window.document.documentElement;
|
|
13
|
-
t.classList.remove("light", "dark"), t.classList.add(e);
|
|
14
|
-
}
|
|
15
|
-
function d(e, t) {
|
|
16
|
-
try {
|
|
17
|
-
let n = localStorage.getItem(e);
|
|
18
|
-
return c(n) ? n : t;
|
|
19
|
-
} catch {
|
|
20
|
-
return t;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function f({ children: e, defaultTheme: n = "system", storageKey: c = "vite-ui-theme" }) {
|
|
24
|
-
let [f, p] = a(() => d(c, n)), [m, h] = a(l), g = f === "system" ? m : f;
|
|
25
|
-
r(() => {
|
|
26
|
-
u(g);
|
|
27
|
-
}, [g]), r(() => {
|
|
28
|
-
let e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
29
|
-
function t() {
|
|
30
|
-
h(e.matches ? "dark" : "light");
|
|
31
|
-
}
|
|
32
|
-
return e.addEventListener("change", t), () => {
|
|
33
|
-
e.removeEventListener("change", t);
|
|
34
|
-
};
|
|
35
|
-
}, []);
|
|
36
|
-
let _ = t((e) => {
|
|
37
|
-
try {
|
|
38
|
-
localStorage.setItem(c, e);
|
|
39
|
-
} catch {}
|
|
40
|
-
p(e);
|
|
41
|
-
}, [c]), v = i(() => ({
|
|
42
|
-
theme: f,
|
|
43
|
-
resolvedTheme: g,
|
|
44
|
-
setTheme: _
|
|
45
|
-
}), [
|
|
46
|
-
f,
|
|
47
|
-
g,
|
|
48
|
-
_
|
|
49
|
-
]);
|
|
50
|
-
return /* @__PURE__ */ o(s.Provider, {
|
|
51
|
-
value: v,
|
|
52
|
-
children: e
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function p() {
|
|
56
|
-
let e = n(s);
|
|
57
|
-
if (e === void 0) throw Error("useTheme must be used within a ThemeProvider");
|
|
58
|
-
return e;
|
|
59
|
-
}
|
|
60
|
-
//#endregion
|
|
61
|
-
export { p as n, f as t };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-CX-Pz5p6.js";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
import { cva as r } from "class-variance-authority";
|
|
5
|
-
import { Toggle as i } from "@base-ui/react/toggle";
|
|
6
|
-
import { ToggleGroup as a } from "@base-ui/react/toggle-group";
|
|
7
|
-
//#region src/ui/toggle.tsx
|
|
8
|
-
var o = r("\n group/toggle inline-flex cursor-pointer items-center justify-center gap-1 rounded-lg text-sm\n font-medium whitespace-nowrap transition-all outline-none\n hover:bg-muted hover:text-foreground\n focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50\n disabled:pointer-events-none disabled:opacity-50\n aria-invalid:border-destructive aria-invalid:ring-destructive/20\n aria-pressed:bg-muted\n data-[state=on]:bg-muted\n dark:aria-invalid:ring-destructive/40\n [&_svg]:pointer-events-none [&_svg]:shrink-0\n [&_svg:not([class*='size-'])]:size-4\n ", {
|
|
9
|
-
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
default: "bg-transparent",
|
|
12
|
-
outline: "\n border border-input bg-transparent\n hover:bg-muted\n "
|
|
13
|
-
},
|
|
14
|
-
size: {
|
|
15
|
-
default: "\n h-8 min-w-8 px-2.5\n has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\n ",
|
|
16
|
-
sm: "\n h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem]\n has-data-[icon=inline-end]:pr-1.5\n has-data-[icon=inline-start]:pl-1.5\n [&_svg:not([class*='size-'])]:size-3.5\n ",
|
|
17
|
-
lg: "\n h-9 min-w-9 px-2.5\n has-data-[icon=inline-end]:pr-2\n has-data-[icon=inline-start]:pl-2\n "
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
defaultVariants: {
|
|
21
|
-
variant: "default",
|
|
22
|
-
size: "default"
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
function s({ className: t, variant: r = "default", size: a = "default", ...s }) {
|
|
26
|
-
return /* @__PURE__ */ n(i, {
|
|
27
|
-
"data-slot": "toggle",
|
|
28
|
-
className: e(o({
|
|
29
|
-
variant: r,
|
|
30
|
-
size: a,
|
|
31
|
-
className: t
|
|
32
|
-
})),
|
|
33
|
-
...s
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region src/ui/toggle-group.tsx
|
|
38
|
-
var c = t.createContext({
|
|
39
|
-
size: "default",
|
|
40
|
-
variant: "default",
|
|
41
|
-
spacing: 2,
|
|
42
|
-
orientation: "horizontal"
|
|
43
|
-
});
|
|
44
|
-
function l({ className: t, variant: r, size: i, spacing: o = 2, orientation: s = "horizontal", children: l, ...u }) {
|
|
45
|
-
let d = {};
|
|
46
|
-
return Object.assign(d, { "--gap": o }), /* @__PURE__ */ n(a, {
|
|
47
|
-
"data-slot": "toggle-group",
|
|
48
|
-
"data-variant": r,
|
|
49
|
-
"data-size": i,
|
|
50
|
-
"data-spacing": o,
|
|
51
|
-
"data-orientation": s,
|
|
52
|
-
style: d,
|
|
53
|
-
className: e("\n group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))]\n rounded-lg\n data-[size=sm]:rounded-[min(var(--radius-md),10px)]\n data-vertical:flex-col data-vertical:items-stretch\n ", t),
|
|
54
|
-
...u,
|
|
55
|
-
children: /* @__PURE__ */ n(c.Provider, {
|
|
56
|
-
value: {
|
|
57
|
-
variant: r,
|
|
58
|
-
size: i,
|
|
59
|
-
spacing: o,
|
|
60
|
-
orientation: s
|
|
61
|
-
},
|
|
62
|
-
children: l
|
|
63
|
-
})
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
function u({ className: r, children: a, variant: s = "default", size: l = "default", ...u }) {
|
|
67
|
-
let d = t.useContext(c), f = d.variant ?? s, p = d.size ?? l;
|
|
68
|
-
return /* @__PURE__ */ n(i, {
|
|
69
|
-
"data-slot": "toggle-group-item",
|
|
70
|
-
"data-variant": f,
|
|
71
|
-
"data-size": p,
|
|
72
|
-
"data-spacing": d.spacing,
|
|
73
|
-
className: e("\n shrink-0\n group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2\n focus:z-10\n focus-visible:z-10\n group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5\n group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5\n group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg\n group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg\n group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg\n group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg\n group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0\n group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0\n group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l\n group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t\n ", o({
|
|
74
|
-
variant: f,
|
|
75
|
-
size: p
|
|
76
|
-
}), r),
|
|
77
|
-
...u,
|
|
78
|
-
children: a
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
|
-
export { o as i, u as n, s as r, l as t };
|
package/dist/trpc-CvJUuUXp.js
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { QueryClient as e } from "@tanstack/react-query";
|
|
2
|
-
import { TRPCClientError as t, createTRPCClient as n, httpBatchStreamLink as r, httpSubscriptionLink as i, splitLink as a } from "@trpc/client";
|
|
3
|
-
import { createTRPCReact as o } from "@trpc/react-query";
|
|
4
|
-
import { createContext as s } from "react";
|
|
5
|
-
import { HMI_CLIENT_HEADER as c, formatHmiClient as l } from "@overvis/hmi-shared/api-errors";
|
|
6
|
-
import { EventSourcePolyfill as u } from "event-source-polyfill";
|
|
7
|
-
import { observable as d } from "@trpc/server/observable";
|
|
8
|
-
import { LOCAL_DASHBOARD_SETUP_PATH as f, localDashboardSetupSchema as p } from "@overvis/hmi-shared/dashboard";
|
|
9
|
-
//#region src/workspace/local-setup-link.ts
|
|
10
|
-
function m(e) {
|
|
11
|
-
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
12
|
-
}
|
|
13
|
-
function h(e) {
|
|
14
|
-
if (e.type !== "query" || !m(e.input) || e.path !== "dashboard.get" && e.path !== "graphics.get") return null;
|
|
15
|
-
let t = e.path === "dashboard.get" ? e.input.id : e.input.dashboardId;
|
|
16
|
-
return typeof t == "string" ? t : null;
|
|
17
|
-
}
|
|
18
|
-
function g(e, t, n) {
|
|
19
|
-
if (n.configuration == null || !m(t)) return t;
|
|
20
|
-
if (e.path === "dashboard.get") return {
|
|
21
|
-
...t,
|
|
22
|
-
configuration: n.configuration
|
|
23
|
-
};
|
|
24
|
-
if (n.drawings == null) throw Error("graphics_invalid_document");
|
|
25
|
-
let r = m(e.input) ? e.input.drawingId : null, i = typeof r == "string" ? n.drawings[r] : void 0;
|
|
26
|
-
if (i == null) return {
|
|
27
|
-
document: null,
|
|
28
|
-
revision: null
|
|
29
|
-
};
|
|
30
|
-
if (i.document == null) throw Error("graphics_invalid_document");
|
|
31
|
-
return {
|
|
32
|
-
document: i.document,
|
|
33
|
-
revision: i.revision
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
var _ = async (e) => {
|
|
37
|
-
let t = await fetch(`${f}/${encodeURIComponent(e)}`, { cache: "no-store" }), n = t.headers.get("content-type") ?? "";
|
|
38
|
-
if (t.status === 404 || t.ok && n.startsWith("text/html")) return null;
|
|
39
|
-
if (!t.ok) throw Error(`local_setup_unavailable: HTTP ${String(t.status)}`);
|
|
40
|
-
if (!n.startsWith("application/json")) throw Error(`local_setup_unavailable: ${n === "" ? "no content type" : n}`);
|
|
41
|
-
let r = p["~standard"].validate(await t.json());
|
|
42
|
-
if (r.issues != null) throw Error("local_setup_unavailable: invalid response");
|
|
43
|
-
return r.value;
|
|
44
|
-
};
|
|
45
|
-
function v(e = _) {
|
|
46
|
-
return () => ({ op: n, next: r }) => {
|
|
47
|
-
let i = h(n);
|
|
48
|
-
return i == null ? r(n) : d((a) => {
|
|
49
|
-
let o, s = !1, c = (e) => {
|
|
50
|
-
a.error(t.from(e instanceof Error ? e : Error(String(e))));
|
|
51
|
-
};
|
|
52
|
-
return e(i).then((e) => {
|
|
53
|
-
s || (o = r(n).subscribe({
|
|
54
|
-
next(t) {
|
|
55
|
-
let r = t.result;
|
|
56
|
-
if (e == null || r.type != null && r.type !== "data") {
|
|
57
|
-
a.next(t);
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
try {
|
|
61
|
-
let i = g(n, r.data, e);
|
|
62
|
-
a.next({
|
|
63
|
-
...t,
|
|
64
|
-
result: {
|
|
65
|
-
...r,
|
|
66
|
-
data: i
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
} catch (e) {
|
|
70
|
-
c(e);
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
error(e) {
|
|
74
|
-
a.error(e);
|
|
75
|
-
},
|
|
76
|
-
complete() {
|
|
77
|
-
a.complete();
|
|
78
|
-
}
|
|
79
|
-
}));
|
|
80
|
-
}, (e) => {
|
|
81
|
-
s || c(e);
|
|
82
|
-
}), () => {
|
|
83
|
-
s = !0, o?.unsubscribe();
|
|
84
|
-
};
|
|
85
|
-
});
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
//#endregion
|
|
89
|
-
//#region src/trpc.ts
|
|
90
|
-
var y = 8e3, b = 2e3;
|
|
91
|
-
function x(e) {
|
|
92
|
-
return e.type !== "query" || e.input === void 0 ? !1 : encodeURIComponent(JSON.stringify(e.input)).length > b;
|
|
93
|
-
}
|
|
94
|
-
var S = s(null), C = o({ context: S });
|
|
95
|
-
function w() {
|
|
96
|
-
return new e({ defaultOptions: { queries: {
|
|
97
|
-
staleTime: 3e4,
|
|
98
|
-
retry: !1
|
|
99
|
-
} } });
|
|
100
|
-
}
|
|
101
|
-
function T(e) {
|
|
102
|
-
let t = e?.getHeaders, n = e?.client;
|
|
103
|
-
if (!(t == null && n == null)) return () => {
|
|
104
|
-
let e = new Headers(t?.());
|
|
105
|
-
return n != null && e.set(c, l(n)), e;
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
function E(e) {
|
|
109
|
-
let t = e?.url ?? "/trpc", o = e?.credentials ?? "include", s = T(e), c = new Set(e?.isolatedPaths ?? []), l = o === "include", d = i(s == null ? {
|
|
110
|
-
url: t,
|
|
111
|
-
eventSourceOptions: () => ({ withCredentials: l })
|
|
112
|
-
} : {
|
|
113
|
-
url: t,
|
|
114
|
-
EventSource: u,
|
|
115
|
-
eventSourceOptions: () => ({
|
|
116
|
-
headers: Object.fromEntries(s()),
|
|
117
|
-
withCredentials: l
|
|
118
|
-
})
|
|
119
|
-
}), f = (t, n) => {
|
|
120
|
-
let r = { credentials: o };
|
|
121
|
-
n && (n.method != null && (r.method = n.method), n.body != null && (r.body = typeof n.body == "string" || n.body instanceof Blob || n.body instanceof FormData || n.body instanceof URLSearchParams || n.body instanceof ReadableStream ? n.body : new Blob([n.body])), n.signal != null && (r.signal = n.signal));
|
|
122
|
-
let i = new Headers(n?.headers);
|
|
123
|
-
return s?.().forEach((e, t) => {
|
|
124
|
-
i.set(t, e);
|
|
125
|
-
}), r.headers = i, (e?.fetch ?? fetch)(t, r);
|
|
126
|
-
}, p = (e = Infinity) => a({
|
|
127
|
-
condition: x,
|
|
128
|
-
true: r({
|
|
129
|
-
url: t,
|
|
130
|
-
methodOverride: "POST",
|
|
131
|
-
maxURLLength: y,
|
|
132
|
-
maxItems: e,
|
|
133
|
-
fetch: f
|
|
134
|
-
}),
|
|
135
|
-
false: r({
|
|
136
|
-
url: t,
|
|
137
|
-
maxURLLength: y,
|
|
138
|
-
maxItems: e,
|
|
139
|
-
fetch: f
|
|
140
|
-
})
|
|
141
|
-
}), m = p(1), h = p();
|
|
142
|
-
return n({ links: [...e?.localSetup === !0 ? [v()] : [], a({
|
|
143
|
-
condition: (e) => e.type === "subscription",
|
|
144
|
-
true: d,
|
|
145
|
-
false: a({
|
|
146
|
-
condition: (e) => c.has(e.path),
|
|
147
|
-
true: m,
|
|
148
|
-
false: h
|
|
149
|
-
})
|
|
150
|
-
})] });
|
|
151
|
-
}
|
|
152
|
-
//#endregion
|
|
153
|
-
export { S as i, E as n, C as r, w as t };
|
package/dist/utils-CX-Pz5p6.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { v as e } from "./i18n-BgzakKoC.js";
|
|
2
|
-
import { resolveLocalized as t } from "@overvis/hmi-shared";
|
|
3
|
-
//#region src/workspace/parameters/writability.ts
|
|
4
|
-
function n(e) {
|
|
5
|
-
if (e.disabledSince != null) return !1;
|
|
6
|
-
let t = e.source;
|
|
7
|
-
return t.kind === "calc" ? !1 : t.kind === "const" ? t.allowWrite : "writeFunction" in t && t.writeFunction !== "none";
|
|
8
|
-
}
|
|
9
|
-
function r(n, r = e()) {
|
|
10
|
-
if (n.name === "int" && n.repr != null && n.repr.length > 0) {
|
|
11
|
-
let e = n.repr.map((e) => t(e.repr, r)), i = /* @__PURE__ */ new Map();
|
|
12
|
-
for (let t of e) i.set(t, (i.get(t) ?? 0) + 1);
|
|
13
|
-
return n.repr.map((t, n) => {
|
|
14
|
-
let r = e[n] ?? String(t.value);
|
|
15
|
-
return {
|
|
16
|
-
label: (i.get(r) ?? 0) > 1 ? `${r} (${String(t.value)})` : r,
|
|
17
|
-
writeValue: String(t.value)
|
|
18
|
-
};
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
if (n.name === "bool") {
|
|
22
|
-
if (n.repr != null) {
|
|
23
|
-
let e = t(n.repr.true, r), i = t(n.repr.false, r);
|
|
24
|
-
return [{
|
|
25
|
-
label: e === i ? `${e} (true)` : e,
|
|
26
|
-
writeValue: "true"
|
|
27
|
-
}, {
|
|
28
|
-
label: e === i ? `${i} (false)` : i,
|
|
29
|
-
writeValue: "false"
|
|
30
|
-
}];
|
|
31
|
-
}
|
|
32
|
-
return [{
|
|
33
|
-
label: "true",
|
|
34
|
-
writeValue: "true"
|
|
35
|
-
}, {
|
|
36
|
-
label: "false",
|
|
37
|
-
writeValue: "false"
|
|
38
|
-
}];
|
|
39
|
-
}
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
function i(n, r = e()) {
|
|
43
|
-
if (n.name === "int" && n.repr != null && n.repr.length > 0) return n.repr.map((e) => ({
|
|
44
|
-
value: e.value,
|
|
45
|
-
label: t(e.repr, r)
|
|
46
|
-
}));
|
|
47
|
-
if (n.name === "bool") {
|
|
48
|
-
let e = n.repr;
|
|
49
|
-
return [!0, !1].map((n) => ({
|
|
50
|
-
value: n,
|
|
51
|
-
label: e == null ? String(n) : t(e[n ? "true" : "false"], r)
|
|
52
|
-
}));
|
|
53
|
-
}
|
|
54
|
-
return null;
|
|
55
|
-
}
|
|
56
|
-
//#endregion
|
|
57
|
-
export { i as n, r, n as t };
|