@overvis/hmi-workspace-ui 0.1.0 → 0.1.1

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.
Files changed (115) hide show
  1. package/dist/alarm-list-sheAq-pb.js +414 -0
  2. package/dist/alarm-rule-dialog-D_ml7V0v.js +417 -0
  3. package/dist/{alarm-rule-lists-C5v1Kf7A.js → alarm-rule-lists-DaA4soF4.js} +123 -125
  4. package/dist/{alarm-rules-page-CqFzofPd.js → alarm-rules-page-OFjOQ-dm.js} +15 -18
  5. package/dist/alert-dialog-B60PF7S9.js +891 -0
  6. package/dist/{base-revision-YCO27zR4.js → base-revision-DYCOZS0R.js} +26 -29
  7. package/dist/{breadcrumbs-0cjsV2cq.js → breadcrumbs-D2u8KZQo.js} +6 -7
  8. package/dist/{catalog-list-DjZojYLJ.js → catalog-list-LXuRix0-.js} +2 -4
  9. package/dist/{code-editor-BVimvjDV.js → code-editor-BMSyzAxu.js} +5 -6
  10. package/dist/dashboard-bindings.js +1 -2
  11. package/dist/{dashboards-page-BlrJguNz.js → dashboards-page-wnmmLpVC.js} +335 -359
  12. package/dist/{de-14WdmJxZ.js → de-hkEr2usK.js} +1 -2
  13. package/dist/diagnostic-text-CsbENUNI.js +116 -0
  14. package/dist/{dialogs-B6BRnf3Q.js → dialogs-AtIYlNSy.js} +219 -227
  15. package/dist/{dialogs-D_v1LeH4.js → dialogs-DsHbKgZD.js} +2523 -2590
  16. package/dist/{display-DmOo23mi.js → display-DSyEwQt8.js} +4 -6
  17. package/dist/{editor-language-To9MxloY.js → editor-language-CTfJBXMs.js} +3 -5
  18. package/dist/editor-page-BWbVGJvU.js +1337 -0
  19. package/dist/{en-BgercpT0.js → en-UW_k-Bd6.js} +1 -2
  20. package/dist/entity-controls-BCuRx882.js +71 -0
  21. package/dist/errors-Cawve9yD.js +25 -0
  22. package/dist/{footer-DC-Q0052.js → footer-B9XdpVzq.js} +2404 -2515
  23. package/dist/host.js +8143 -675
  24. package/dist/{i18n-BgzakKoC.js → i18n-Dt6xbSK6.js} +77 -90
  25. package/dist/i18n.js +1 -2
  26. package/dist/index.js +5149 -5345
  27. package/dist/{lat-lng-B12P7QyY.js → lat-lng-Bl77AGSO.js} +1 -2
  28. package/dist/{list-page-CvsdZb86.js → list-page-agHupfNb.js} +116 -123
  29. package/dist/{location-map-renderer-DO5yfdSU.js → location-map-renderer-kxU6cgFl.js} +6 -6
  30. package/dist/{location-picker-renderer-CjCxg6ai.js → location-picker-renderer-B1_-n8lf.js} +3 -4
  31. package/dist/{model-B8gGi4OK.js → model-tpg_xpFB.js} +1 -2
  32. package/dist/{notice-card-DyGywFsW.js → notice-card-CH28rYUt.js} +54 -58
  33. package/dist/{page-v6LCwswN.js → page-CZPHJUmz.js} +92 -100
  34. package/dist/page-DpdkOGGb.js +449 -0
  35. package/dist/page-HCGXXGjy.js +507 -0
  36. package/dist/panel-BCwBlB_h.js +949 -0
  37. package/dist/parameter-values.js +3 -16
  38. package/dist/{pl-lQ9HXV9k.js → pl-BokvsP3J.js} +1 -2
  39. package/dist/presence-code-cT6wxlTg.js +73 -0
  40. package/dist/{query-gate-DVhNIkge.js → query-gate-DqmHsZ07.js} +6 -6
  41. package/dist/{provider-DoEpKcQ-.js → quick-report-DEqqwQxR.js} +9423 -5102
  42. package/dist/{retention-BYXNpYmR.js → retention-DZ0reGGe.js} +4 -6
  43. package/dist/retention-note-nequESpo.js +40 -0
  44. package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
  45. package/dist/{ru-qTKINoUj.js → ru-DZSlsRHq.js} +1 -2
  46. package/dist/run-text-DneX9rWh.js +112 -0
  47. package/dist/{search-D4rDnE9T.js → search-DP9_alSQ.js} +26 -29
  48. package/dist/{sections-kCOyc4NR.js → sections-BU7NKUOQ.js} +2 -3
  49. package/dist/{select-BKiOWdSr.js → select-Te6Qv1Zu.js} +17 -23
  50. package/dist/{spinner-C-HPNxOc.js → spinner-BRcNKwjH.js} +182 -201
  51. package/dist/src/version.d.ts +1 -1
  52. package/dist/src/workspace/local-workspace-app.d.ts +1 -1
  53. package/dist/src/workspace/routes.d.ts +1 -1
  54. package/dist/{starter-fields-BRLX0z-v.js → starter-fields-yM4B49nd.js} +154 -157
  55. package/dist/{starter-handoff-BA3ucMKL.js → starter-handoff-BaK8Ss8I.js} +1 -2
  56. package/dist/styles.css +1 -1
  57. package/dist/ui.js +334 -374
  58. package/dist/{uk-CwpJAxmx.js → uk-CjXPq9Lk.js} +1 -2
  59. package/dist/{wireguard-docs-AfU6NzTL.js → wireguard-docs-CC8XKBR7.js} +14 -17
  60. package/package.json +15 -9
  61. package/dist/alarm-list-BL3xQ5Lf.js +0 -423
  62. package/dist/alarm-rule-dialog-S1ZUg-74.js +0 -423
  63. package/dist/alert-B8MAoIO8.js +0 -45
  64. package/dist/alert-dialog-CYkuMg5D.js +0 -129
  65. package/dist/api-error-9rQmUN5L.js +0 -93
  66. package/dist/breadcrumb-DzVL1yHa.js +0 -74
  67. package/dist/button-6SxPBYMz.js +0 -44
  68. package/dist/context-u9KJQmdB.js +0 -102
  69. package/dist/copyable-id-DYGiAcnq.js +0 -40
  70. package/dist/dashboard-context-CBfG6DoT.js +0 -191
  71. package/dist/date-time-picker-C3FhMXk6.js +0 -266
  72. package/dist/diagnostic-text-BAkzW0SE.js +0 -111
  73. package/dist/diagnostic-text-DiKd2i1w.js +0 -76
  74. package/dist/dialog-BIhQXcZC.js +0 -237
  75. package/dist/dialog-BqyIxMD-.js +0 -54
  76. package/dist/dropdown-menu-DSzbBq3v.js +0 -136
  77. package/dist/editor-page-BiSZJz5b.js +0 -1353
  78. package/dist/empty-B-QJ-06w.js +0 -59
  79. package/dist/entity-controls-D1K4Ot3O.js +0 -76
  80. package/dist/errors-CcsvDHu8.js +0 -26
  81. package/dist/history-page-sAAhG54V.js +0 -1400
  82. package/dist/icon-D-pR9htW.js +0 -57
  83. package/dist/index-page-DMH82fZe.js +0 -214
  84. package/dist/item-B5SaTFQU.js +0 -120
  85. package/dist/mutation-form-validators-BNz5bsv1.js +0 -2408
  86. package/dist/mutations-THtGG6Ai.js +0 -240
  87. package/dist/page-2KPemaAj.js +0 -328
  88. package/dist/page-6rIoTg2L.js +0 -459
  89. package/dist/page-C6giEoEd.js +0 -1935
  90. package/dist/page-DCbTxKsi.js +0 -313
  91. package/dist/page-DWO427hT.js +0 -208
  92. package/dist/page-LXu_2zm3.js +0 -137
  93. package/dist/page-aaUiVOnk.js +0 -513
  94. package/dist/page-header-RB2YFWlE.js +0 -55
  95. package/dist/page-title-CdCbiLt8.js +0 -14
  96. package/dist/panel-DDy8tUNR.js +0 -338
  97. package/dist/presence-code-BfSXr50g.js +0 -83
  98. package/dist/progress-C7cxNJA1.js +0 -83
  99. package/dist/provider-BOeYHi0n.js +0 -134
  100. package/dist/quick-report-CUVJnbKP.js +0 -416
  101. package/dist/radio-group-CZGqVbkJ.js +0 -26
  102. package/dist/retention-note-CHhA6gjY.js +0 -42
  103. package/dist/run-text-DvaO8LDF.js +0 -113
  104. package/dist/select-eNgZdZ30.js +0 -521
  105. package/dist/skeleton-6yk8Tdh5.js +0 -19
  106. package/dist/slider-DorDsoF8.js +0 -37
  107. package/dist/status-page-DAHiKM9P.js +0 -3286
  108. package/dist/switch-BqD0RH_G.js +0 -18
  109. package/dist/table-Q2-voLuw.js +0 -65
  110. package/dist/tabs-CSIucYFP.js +0 -57
  111. package/dist/theme-provider-BkRohQFU.js +0 -61
  112. package/dist/toggle-group-9Bs0Mm3r.js +0 -82
  113. package/dist/trpc-CvJUuUXp.js +0 -153
  114. package/dist/utils-CX-Pz5p6.js +0 -8
  115. package/dist/writability-BuH-spxv.js +0 -57
@@ -1,59 +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
- //#region src/ui/empty.tsx
5
- function r({ className: n, ...r }) {
6
- return /* @__PURE__ */ t("div", {
7
- "data-slot": "empty",
8
- className: e("\n flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl\n border-dashed p-6 text-center text-balance\n ", n),
9
- ...r
10
- });
11
- }
12
- function i({ className: n, ...r }) {
13
- return /* @__PURE__ */ t("div", {
14
- "data-slot": "empty-header",
15
- className: e("flex max-w-sm flex-col items-center gap-2", n),
16
- ...r
17
- });
18
- }
19
- var a = n("\n mb-2 flex shrink-0 items-center justify-center\n [&_svg]:pointer-events-none [&_svg]:shrink-0\n ", {
20
- variants: { variant: {
21
- default: "bg-transparent",
22
- icon: "\n flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground\n [&_svg:not([class*='size-'])]:size-4\n "
23
- } },
24
- defaultVariants: { variant: "default" }
25
- });
26
- function o({ className: n, variant: r = "default", ...i }) {
27
- return /* @__PURE__ */ t("div", {
28
- "data-slot": "empty-icon",
29
- "data-variant": r,
30
- className: e(a({
31
- variant: r,
32
- className: n
33
- })),
34
- ...i
35
- });
36
- }
37
- function s({ className: n, ...r }) {
38
- return /* @__PURE__ */ t("div", {
39
- "data-slot": "empty-title",
40
- className: e("text-sm font-medium tracking-tight", n),
41
- ...r
42
- });
43
- }
44
- function c({ className: n, ...r }) {
45
- return /* @__PURE__ */ t("div", {
46
- "data-slot": "empty-description",
47
- className: e("\n text-sm/relaxed text-muted-foreground\n [&>a]:underline [&>a]:underline-offset-4\n [&>a:hover]:text-primary\n ", n),
48
- ...r
49
- });
50
- }
51
- function l({ className: n, ...r }) {
52
- return /* @__PURE__ */ t("div", {
53
- "data-slot": "empty-content",
54
- className: e("flex w-full max-w-sm min-w-0 flex-col items-center gap-2.5 text-sm text-balance", n),
55
- ...r
56
- });
57
- }
58
- //#endregion
59
- export { o as a, i, l as n, s as o, c as r, r as t };
@@ -1,76 +0,0 @@
1
- import { m as e, n as t } from "./i18n-BgzakKoC.js";
2
- import { a as n, d as r, t as i } from "./mutation-form-validators-BNz5bsv1.js";
3
- import { t as a } from "./button-6SxPBYMz.js";
4
- import { a as o, i as s, l as c, o as l } from "./dialog-BIhQXcZC.js";
5
- import { n as u } from "./api-error-9rQmUN5L.js";
6
- import { t as d } from "./switch-BqD0RH_G.js";
7
- import { n as f, t as p } from "./mutations-THtGG6Ai.js";
8
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
9
- //#region src/workspace/setup/automations/entity-controls.tsx
10
- function g(e, t) {
11
- let n = f(e), r = p(e);
12
- return t === "automation" ? n : r;
13
- }
14
- function _({ workspaceId: n, entity: r, kind: i }) {
15
- let a = e(), o = t(), { setDisabled: s } = g(n, i), c = r.disabledSince == null;
16
- return /* @__PURE__ */ h("div", {
17
- className: "flex items-center gap-2",
18
- onClick: (e) => {
19
- e.stopPropagation();
20
- },
21
- onKeyDown: (e) => {
22
- e.stopPropagation();
23
- },
24
- children: [/* @__PURE__ */ m(d, {
25
- size: "sm",
26
- checked: c,
27
- disabled: s.isPending || !c && r.errorCount > 0,
28
- "aria-label": a("automation_enabled_label"),
29
- onCheckedChange: (e) => {
30
- s.mutate({
31
- id: r.id,
32
- disabled: !e,
33
- baseRevision: r.revision
34
- }, {
35
- onSuccess: () => {
36
- o.success(a(e ? "automation_enable_toast" : "automation_disable_toast"));
37
- },
38
- onError: (e) => {
39
- o.error(u(e));
40
- }
41
- });
42
- }
43
- }), /* @__PURE__ */ m("span", {
44
- className: "\n hidden text-sm text-muted-foreground\n sm:inline\n ",
45
- children: a(c ? "automation_enabled" : "automation_disabled")
46
- })]
47
- });
48
- }
49
- function v({ workspaceId: t, kind: u, id: d, baseRevision: f, onCancel: p, onDeleted: _ }) {
50
- let v = e(), { remove: y } = g(t, u), b = n({
51
- defaultValues: {},
52
- validators: i({ submit: async () => (await y.mutateAsync({
53
- id: d,
54
- baseRevision: f
55
- }), null) }),
56
- onSubmitInvalid: r,
57
- onSubmit: () => {
58
- _();
59
- }
60
- });
61
- return /* @__PURE__ */ m(b.AppForm, { children: /* @__PURE__ */ h(b.FormRoot, {
62
- layout: "dialog",
63
- children: [/* @__PURE__ */ h(l, { children: [/* @__PURE__ */ m(c, { children: v(u === "automation" ? "automation_delete_confirm_title" : "alarm_rule_delete_confirm_title") }), /* @__PURE__ */ m(s, { children: v(u === "automation" ? "automation_delete_confirm_description" : "alarm_rule_delete_confirm_description") })] }), /* @__PURE__ */ h(o, { children: [/* @__PURE__ */ m(a, {
64
- type: "button",
65
- variant: "outline",
66
- onClick: p,
67
- children: v("action_cancel")
68
- }), /* @__PURE__ */ m(b.SubmitButton, {
69
- label: v("automation_delete_confirm_submit"),
70
- pendingLabel: v("action_deleting"),
71
- variant: "destructive"
72
- })] })]
73
- }) });
74
- }
75
- //#endregion
76
- export { _ as n, v as t };
@@ -1,26 +0,0 @@
1
- import { f as e } from "./i18n-BgzakKoC.js";
2
- import { r as t, t as n } from "./api-error-9rQmUN5L.js";
3
- //#region src/workspace/reports/preset/errors.ts
4
- function r(t) {
5
- switch (t) {
6
- case "sankey_cycle": return e("error_sankey_cycle");
7
- case "sankey_self_loop": return e("error_sankey_self_loop");
8
- case "sankey_unknown_node": return e("error_sankey_unknown_node");
9
- case "sankey_non_numeric_parameter": return e("error_sankey_non_numeric_parameter");
10
- case "sankey_duplicate_link": return e("error_sankey_duplicate_link");
11
- default: return null;
12
- }
13
- }
14
- function i(e) {
15
- if (n(e) !== "report_preset_validation_failed") return null;
16
- let i = t(e).details?.issues;
17
- if (!Array.isArray(i)) return null;
18
- let a = [];
19
- for (let e of i) {
20
- let t = typeof e == "object" && e ? Reflect.get(e, "keyword") : null, n = typeof t == "string" ? r(t) : null;
21
- n != null && !a.includes(n) && a.push(n);
22
- }
23
- return a.length > 0 ? a.join(" ") : null;
24
- }
25
- //#endregion
26
- export { i as t };