@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.
Files changed (130) hide show
  1. package/dist/alarm-list-DKFio0hg.js +414 -0
  2. package/dist/alarm-rule-dialog-mb4_nHRW.js +417 -0
  3. package/dist/{alarm-rule-lists-C5v1Kf7A.js → alarm-rule-lists-CfZXTWkK.js} +123 -125
  4. package/dist/{alarm-rules-page-CqFzofPd.js → alarm-rules-page-DBLSkrrG.js} +15 -18
  5. package/dist/alert-dialog-D_iDv2lQ.js +891 -0
  6. package/dist/{base-revision-YCO27zR4.js → base-revision-DLF9EnGV.js} +26 -29
  7. package/dist/{breadcrumbs-0cjsV2cq.js → breadcrumbs-D5R6Fz74.js} +6 -7
  8. package/dist/{catalog-list-DjZojYLJ.js → catalog-list-BkWosvh1.js} +2 -4
  9. package/dist/{code-editor-BVimvjDV.js → code-editor-DCM0KdMJ.js} +9 -6
  10. package/dist/dashboard-bindings.js +1 -2
  11. package/dist/{dashboards-page-BlrJguNz.js → dashboards-page-DLc11Vzu.js} +335 -359
  12. package/dist/{de-14WdmJxZ.js → de-Z2er-E5v.js} +4 -2
  13. package/dist/diagnostic-text-CYZFPiND.js +116 -0
  14. package/dist/{dialogs-D_v1LeH4.js → dialogs-BX023zml.js} +2523 -2590
  15. package/dist/{dialogs-B6BRnf3Q.js → dialogs-DEOg9lxy.js} +219 -227
  16. package/dist/{display-DmOo23mi.js → display-VYGzneE0.js} +4 -6
  17. package/dist/{editor-language-To9MxloY.js → editor-language-CGENZxbI.js} +3 -5
  18. package/dist/editor-page-CaN52OQh.js +1337 -0
  19. package/dist/{en-BgercpT0.js → en-CKPPL6bQ.js} +4 -2
  20. package/dist/entity-controls-DJT47yeV.js +71 -0
  21. package/dist/errors-BAWoH_5w.js +25 -0
  22. package/dist/{footer-DC-Q0052.js → footer-CbPMP8aq.js} +2404 -2515
  23. package/dist/host.js +8254 -675
  24. package/dist/{i18n-BgzakKoC.js → i18n-ChjEbYEg.js} +77 -90
  25. package/dist/i18n.js +1 -2
  26. package/dist/index.js +5168 -5353
  27. package/dist/{lat-lng-B12P7QyY.js → lat-lng-Bl77AGSO.js} +1 -2
  28. package/dist/{list-page-CvsdZb86.js → list-page-Fa29SkaJ.js} +116 -123
  29. package/dist/{location-map-renderer-DO5yfdSU.js → location-map-renderer-DvXIYc1Z.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-V_0K0lO0.js} +54 -58
  33. package/dist/page-B5te_1Lc.js +449 -0
  34. package/dist/{page-v6LCwswN.js → page-BorlLnMX.js} +92 -100
  35. package/dist/page-DxF7FOve.js +507 -0
  36. package/dist/panel-DuZD-cBP.js +949 -0
  37. package/dist/parameter-values.js +3 -16
  38. package/dist/{pl-lQ9HXV9k.js → pl-DVABrn5G.js} +4 -2
  39. package/dist/presence-code-DsabLTZs.js +73 -0
  40. package/dist/{query-gate-DVhNIkge.js → query-gate-BbIo1Xrj.js} +6 -6
  41. package/dist/{provider-DoEpKcQ-.js → quick-report-BcZsfkCZ.js} +9423 -5102
  42. package/dist/{retention-BYXNpYmR.js → retention-C7EZsq8u.js} +4 -6
  43. package/dist/retention-note-CmMeHV_u.js +40 -0
  44. package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
  45. package/dist/{ru-qTKINoUj.js → ru-CBRLC_xM.js} +8 -6
  46. package/dist/run-text-CDdfbKbg.js +112 -0
  47. package/dist/{search-D4rDnE9T.js → search-C6xQ_Hvo.js} +26 -29
  48. package/dist/{sections-kCOyc4NR.js → sections-D_SBfVzV.js} +2 -3
  49. package/dist/{select-BKiOWdSr.js → select-nNLG-AMz.js} +17 -23
  50. package/dist/{spinner-C-HPNxOc.js → spinner-B-KLtBjp.js} +182 -201
  51. package/dist/src/code-editor/code-editor.d.ts +3 -0
  52. package/dist/src/code-editor/taskfile-language.d.ts +22 -2
  53. package/dist/src/i18n/catalogs/de/edge-program.d.ts +3 -0
  54. package/dist/src/i18n/catalogs/de.d.ts +3 -0
  55. package/dist/src/i18n/catalogs/en/edge-program.d.ts +3 -0
  56. package/dist/src/i18n/catalogs/en.d.ts +3 -0
  57. package/dist/src/i18n/catalogs/pl/edge-program.d.ts +3 -0
  58. package/dist/src/i18n/catalogs/pl.d.ts +3 -0
  59. package/dist/src/i18n/catalogs/ru/edge-program.d.ts +5 -2
  60. package/dist/src/i18n/catalogs/ru/graphics.d.ts +2 -2
  61. package/dist/src/i18n/catalogs/ru.d.ts +7 -4
  62. package/dist/src/i18n/catalogs/uk/edge-program.d.ts +5 -2
  63. package/dist/src/i18n/catalogs/uk/graphics.d.ts +2 -2
  64. package/dist/src/i18n/catalogs/uk.d.ts +7 -4
  65. package/dist/src/version.d.ts +1 -1
  66. package/dist/src/workspace/graphics/inspector/item.d.ts +6 -6
  67. package/dist/src/workspace/local-workspace-app.d.ts +1 -1
  68. package/dist/src/workspace/routes.d.ts +1 -1
  69. package/dist/{starter-fields-BRLX0z-v.js → starter-fields-7S3LmtGa.js} +154 -157
  70. package/dist/{starter-handoff-BA3ucMKL.js → starter-handoff-BaK8Ss8I.js} +1 -2
  71. package/dist/styles.css +1 -1
  72. package/dist/ui.js +334 -374
  73. package/dist/{uk-CwpJAxmx.js → uk-17pbVYZa.js} +8 -6
  74. package/dist/{wireguard-docs-AfU6NzTL.js → wireguard-docs-Clb-7xRY.js} +14 -17
  75. package/package.json +15 -9
  76. package/dist/alarm-list-BL3xQ5Lf.js +0 -423
  77. package/dist/alarm-rule-dialog-S1ZUg-74.js +0 -423
  78. package/dist/alert-B8MAoIO8.js +0 -45
  79. package/dist/alert-dialog-CYkuMg5D.js +0 -129
  80. package/dist/api-error-9rQmUN5L.js +0 -93
  81. package/dist/breadcrumb-DzVL1yHa.js +0 -74
  82. package/dist/button-6SxPBYMz.js +0 -44
  83. package/dist/context-u9KJQmdB.js +0 -102
  84. package/dist/copyable-id-DYGiAcnq.js +0 -40
  85. package/dist/dashboard-context-CBfG6DoT.js +0 -191
  86. package/dist/date-time-picker-C3FhMXk6.js +0 -266
  87. package/dist/diagnostic-text-BAkzW0SE.js +0 -111
  88. package/dist/diagnostic-text-DiKd2i1w.js +0 -76
  89. package/dist/dialog-BIhQXcZC.js +0 -237
  90. package/dist/dialog-BqyIxMD-.js +0 -54
  91. package/dist/dropdown-menu-DSzbBq3v.js +0 -136
  92. package/dist/editor-page-BiSZJz5b.js +0 -1353
  93. package/dist/empty-B-QJ-06w.js +0 -59
  94. package/dist/entity-controls-D1K4Ot3O.js +0 -76
  95. package/dist/errors-CcsvDHu8.js +0 -26
  96. package/dist/history-page-sAAhG54V.js +0 -1400
  97. package/dist/icon-D-pR9htW.js +0 -57
  98. package/dist/index-page-DMH82fZe.js +0 -214
  99. package/dist/item-B5SaTFQU.js +0 -120
  100. package/dist/mutation-form-validators-BNz5bsv1.js +0 -2408
  101. package/dist/mutations-THtGG6Ai.js +0 -240
  102. package/dist/page-2KPemaAj.js +0 -328
  103. package/dist/page-6rIoTg2L.js +0 -459
  104. package/dist/page-C6giEoEd.js +0 -1935
  105. package/dist/page-DCbTxKsi.js +0 -313
  106. package/dist/page-DWO427hT.js +0 -208
  107. package/dist/page-LXu_2zm3.js +0 -137
  108. package/dist/page-aaUiVOnk.js +0 -513
  109. package/dist/page-header-RB2YFWlE.js +0 -55
  110. package/dist/page-title-CdCbiLt8.js +0 -14
  111. package/dist/panel-DDy8tUNR.js +0 -338
  112. package/dist/presence-code-BfSXr50g.js +0 -83
  113. package/dist/progress-C7cxNJA1.js +0 -83
  114. package/dist/provider-BOeYHi0n.js +0 -134
  115. package/dist/quick-report-CUVJnbKP.js +0 -416
  116. package/dist/radio-group-CZGqVbkJ.js +0 -26
  117. package/dist/retention-note-CHhA6gjY.js +0 -42
  118. package/dist/run-text-DvaO8LDF.js +0 -113
  119. package/dist/select-eNgZdZ30.js +0 -521
  120. package/dist/skeleton-6yk8Tdh5.js +0 -19
  121. package/dist/slider-DorDsoF8.js +0 -37
  122. package/dist/status-page-DAHiKM9P.js +0 -3286
  123. package/dist/switch-BqD0RH_G.js +0 -18
  124. package/dist/table-Q2-voLuw.js +0 -65
  125. package/dist/tabs-CSIucYFP.js +0 -57
  126. package/dist/theme-provider-BkRohQFU.js +0 -61
  127. package/dist/toggle-group-9Bs0Mm3r.js +0 -82
  128. package/dist/trpc-CvJUuUXp.js +0 -153
  129. package/dist/utils-CX-Pz5p6.js +0 -8
  130. package/dist/writability-BuH-spxv.js +0 -57
@@ -1,48 +1,46 @@
1
- import { m as e } from "./i18n-BgzakKoC.js";
2
- import { i as t } from "./mutation-form-validators-BNz5bsv1.js";
3
- import { t as n } from "./button-6SxPBYMz.js";
4
- import { n as r, r as i, t as a } from "./api-error-9rQmUN5L.js";
5
- import { r as o, t as s } from "./alert-B8MAoIO8.js";
1
+ import { Gn as e, Hn as t, Un as n, Wn as r } from "./quick-report-BcZsfkCZ.js";
2
+ import { m as i } from "./i18n-ChjEbYEg.js";
3
+ import { jt as a, rt as o, tt as s } from "./alert-dialog-D_iDv2lQ.js";
6
4
  import { useCallback as c, useReducer as l, useState as u } from "react";
7
5
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
8
6
  import { SETUP_CONFLICT_CODE as p, parseSetupConflictDetails as m } from "@overvis/hmi-shared/setup";
9
- //#region src/workspace/setup/base-revision.tsx
10
- function h(e, t) {
11
- switch (t.type) {
12
- case "failed": return a(t.error) === p ? {
13
- ...e,
14
- conflict: m(i(t.error).details)
15
- } : e;
7
+ // src/workspace/setup/base-revision.tsx
8
+ function h(t, r) {
9
+ switch (r.type) {
10
+ case "failed": return n(r.error) === p ? {
11
+ ...t,
12
+ conflict: m(e(r.error).details)
13
+ } : t;
16
14
  case "keep-mine": return {
17
- baseRevision: e.conflict == null ? e.baseRevision : e.conflict.serverRevision,
15
+ baseRevision: t.conflict == null ? t.baseRevision : t.conflict.serverRevision,
18
16
  conflict: null
19
17
  };
20
18
  case "rebase": return {
21
- baseRevision: t.revision,
19
+ baseRevision: r.revision,
22
20
  conflict: null
23
21
  };
24
22
  }
25
23
  }
26
24
  function g(e) {
27
- let [n, r] = l(h, {
25
+ let [r, i] = l(h, {
28
26
  baseRevision: e,
29
27
  conflict: null
30
- }), i = c((e) => {
31
- r({
28
+ }), a = c((e) => {
29
+ i({
32
30
  type: "failed",
33
31
  error: e
34
32
  });
35
- }, []), o = c((e = t) => (t, n) => a(t) === p ? { fields: {} } : e(t, n), []), s = c(() => {
36
- r({ type: "keep-mine" });
33
+ }, []), o = c((e = t) => (t, r) => n(t) === p ? { fields: {} } : e(t, r), []), s = c(() => {
34
+ i({ type: "keep-mine" });
37
35
  }, []), u = c((e) => {
38
- r({
36
+ i({
39
37
  type: "rebase",
40
38
  revision: e
41
39
  });
42
40
  }, []);
43
41
  return {
44
- ...n,
45
- onError: i,
42
+ ...r,
43
+ onError: a,
46
44
  mapError: o,
47
45
  keepMine: s,
48
46
  rebase: u
@@ -55,8 +53,8 @@ async function _(e) {
55
53
  return e;
56
54
  }
57
55
  }
58
- function v({ base: t, onReload: i, onKeepMine: a = t.keepMine }) {
59
- let c = e(), [l, p] = u(!1), [m, h] = u(null), { conflict: g } = t;
56
+ function v({ base: e, onReload: t, onKeepMine: n = e.keepMine }) {
57
+ let c = i(), [l, p] = u(!1), [m, h] = u(null), { conflict: g } = e;
60
58
  if (g == null) return null;
61
59
  let v = (e) => {
62
60
  p(!0), h(null), _(e).then((e) => {
@@ -78,22 +76,22 @@ function v({ base: t, onReload: i, onKeepMine: a = t.keepMine }) {
78
76
  }),
79
77
  /* @__PURE__ */ f("span", {
80
78
  className: "flex flex-wrap gap-2",
81
- children: [/* @__PURE__ */ d(n, {
79
+ children: [/* @__PURE__ */ d(a, {
82
80
  type: "button",
83
81
  variant: "outline",
84
82
  size: "sm",
85
83
  disabled: l,
86
84
  onClick: () => {
87
- v(a);
85
+ v(n);
88
86
  },
89
87
  children: c("setup_conflict_keep_mine")
90
- }), /* @__PURE__ */ d(n, {
88
+ }), /* @__PURE__ */ d(a, {
91
89
  type: "button",
92
90
  variant: "outline",
93
91
  size: "sm",
94
92
  disabled: l,
95
93
  onClick: () => {
96
- v(i);
94
+ v(t);
97
95
  },
98
96
  children: c("setup_conflict_reload")
99
97
  })]
@@ -102,5 +100,4 @@ function v({ base: t, onReload: i, onKeepMine: a = t.keepMine }) {
102
100
  })
103
101
  });
104
102
  }
105
- //#endregion
106
103
  export { g as n, v as t };
@@ -1,14 +1,14 @@
1
- import { m as e } from "./i18n-BgzakKoC.js";
2
- import { a as t, i as n, r, s as i, t as a } from "./breadcrumb-DzVL1yHa.js";
3
- import { n as o } from "./sections-kCOyc4NR.js";
1
+ import { m as e } from "./i18n-ChjEbYEg.js";
2
+ import { F as t, L as n, R as r, V as i, z as a } from "./panel-DuZD-cBP.js";
3
+ import { n as o } from "./sections-D_SBfVzV.js";
4
4
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
5
5
  import { Link as u } from "@tanstack/react-router";
6
- //#region src/workspace/setup/breadcrumbs.tsx
6
+ // src/workspace/setup/breadcrumbs.tsx
7
7
  function d({ workspaceId: d, section: f }) {
8
8
  let p = e(), m = f == null ? void 0 : o(f);
9
- return /* @__PURE__ */ c(a, { children: /* @__PURE__ */ l(t, {
9
+ return /* @__PURE__ */ c(t, { children: /* @__PURE__ */ l(a, {
10
10
  className: "text-xs",
11
- children: [/* @__PURE__ */ c(r, { children: p("setup_nav_title") }), m == null ? null : /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(i, {}), /* @__PURE__ */ c(r, { children: /* @__PURE__ */ c(n, {
11
+ children: [/* @__PURE__ */ c(n, { children: p("setup_nav_title") }), m == null ? null : /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(i, {}), /* @__PURE__ */ c(n, { children: /* @__PURE__ */ c(r, {
12
12
  render: /* @__PURE__ */ c(u, {
13
13
  to: m.to,
14
14
  params: { workspaceId: d }
@@ -17,5 +17,4 @@ function d({ workspaceId: d, section: f }) {
17
17
  }) })] })]
18
18
  }) });
19
19
  }
20
- //#endregion
21
20
  export { d as t };
@@ -1,8 +1,7 @@
1
- import { t as e } from "./utils-CX-Pz5p6.js";
2
- import { t } from "./button-6SxPBYMz.js";
1
+ import { Nt as e, jt as t } from "./alert-dialog-D_iDv2lQ.js";
3
2
  import { jsx as n } from "react/jsx-runtime";
4
3
  import { createLink as r } from "@tanstack/react-router";
5
- //#region src/workspace/setup/catalog-list.tsx
4
+ // src/workspace/setup/catalog-list.tsx
6
5
  function i({ className: t, ...r }) {
7
6
  return /* @__PURE__ */ n("div", {
8
7
  className: e("flex w-full flex-col", t),
@@ -73,5 +72,4 @@ function h({ className: t, ...r }) {
73
72
  ...r
74
73
  });
75
74
  }
76
- //#endregion
77
75
  export { o as a, l as c, m as d, p as i, i as l, a as n, d as o, h as r, u as s, f as t, s as u };
@@ -1,5 +1,5 @@
1
- import { tt as e } from "./mutation-form-validators-BNz5bsv1.js";
2
- import { t } from "./utils-CX-Pz5p6.js";
1
+ import { Yr as e } from "./quick-report-BcZsfkCZ.js";
2
+ import { Nt as t } from "./alert-dialog-D_iDv2lQ.js";
3
3
  import { useEffect as n, useImperativeHandle as r, useRef as i } from "react";
4
4
  import { jsx as a } from "react/jsx-runtime";
5
5
  import { defaultKeymap as o, history as s, historyKeymap as c, indentWithTab as l } from "@codemirror/commands";
@@ -8,7 +8,7 @@ import { EditorView as f, drawSelection as p, highlightActiveLine as m, highligh
8
8
  import { bracketMatching as v, indentOnInput as y, syntaxHighlighting as b } from "@codemirror/language";
9
9
  import { lintGutter as x, setDiagnostics as S } from "@codemirror/lint";
10
10
  import { classHighlighter as C } from "@lezer/highlight";
11
- //#region src/code-editor/code-editor.tsx
11
+ // src/code-editor/code-editor.tsx
12
12
  var w = "\n overflow-hidden rounded-md border border-input bg-background text-sm shadow-xs\n transition-[color,box-shadow]\n focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/50\n dark:bg-input/30\n [&_.cm-activeLine]:bg-muted/50!\n [&_.cm-activeLineGutter]:bg-muted! [&_.cm-activeLineGutter]:text-foreground!\n [&_.cm-content]:py-2 [&_.cm-content]:caret-foreground!\n [&_.cm-cursor]:border-foreground!\n [&_.cm-diagnostic]:px-2 [&_.cm-diagnostic]:py-1\n [&_.cm-diagnostic-error]:border-l-destructive!\n [&_.cm-diagnostic-warning]:border-l-amber-500!\n [&_.cm-editor]:h-full [&_.cm-editor]:outline-none\n [&_.cm-gutters]:border-r! [&_.cm-gutters]:border-border! [&_.cm-gutters]:bg-muted/40!\n [&_.cm-gutters]:text-muted-foreground!\n [&_.cm-lintRange-active]:bg-amber-500/20!\n [&_.cm-scroller]:font-mono [&_.cm-scroller]:leading-relaxed\n [&_.cm-selectionBackground]:bg-primary/20!\n [&_.cm-tooltip]:rounded-md [&_.cm-tooltip]:border! [&_.cm-tooltip]:border-border!\n [&_.cm-tooltip]:bg-popover! [&_.cm-tooltip]:text-popover-foreground [&_.cm-tooltip]:shadow-md\n [&_.cm-diagnosticAction]:rounded-sm! [&_.cm-diagnosticAction]:bg-primary!\n [&_.cm-diagnosticAction]:px-2! [&_.cm-diagnosticAction]:py-0.5!\n [&_.cm-diagnosticAction]:text-primary-foreground!\n [&_.cm-tooltip-autocomplete_ul]:max-h-[min(18rem,45vh)]! [&_.cm-tooltip-autocomplete_ul]:font-mono!\n [&_.cm-tooltip-autocomplete_ul_li]:px-2! [&_.cm-tooltip-autocomplete_ul_li]:py-1!\n [&_.cm-tooltip-autocomplete_ul_li[aria-selected]]:bg-accent!\n [&_.cm-tooltip-autocomplete_ul_li[aria-selected]]:text-accent-foreground!\n [&_.cm-completionDetail]:ml-2 [&_.cm-completionDetail]:text-xs\n [&_.cm-completionDetail]:text-muted-foreground [&_.cm-completionDetail]:not-italic!\n [&_.cm-completionInfo]:rounded-md [&_.cm-completionInfo]:border!\n [&_.cm-completionInfo]:border-border! [&_.cm-completionInfo]:bg-popover!\n [&_.cm-completionInfo]:p-0! [&_.cm-completionInfo]:shadow-md\n max-sm:[&_.cm-completionInfo]:hidden!\n [&_.cm-completionMatchedText]:font-semibold [&_.cm-completionMatchedText]:no-underline!\n [&_.tok-atom]:text-rose-700\n [&_.tok-bool]:text-rose-700\n [&_.tok-comment]:text-muted-foreground [&_.tok-comment]:italic\n [&_.tok-definition]:font-semibold\n [&_.tok-keyword]:font-semibold [&_.tok-keyword]:text-sky-700\n [&_.tok-labelName]:font-semibold [&_.tok-labelName]:text-teal-700\n [&_.tok-literal]:text-rose-700\n [&_.tok-meta]:text-fuchsia-700\n [&_.tok-number]:text-emerald-700\n [&_.tok-operator]:text-violet-700\n [&_.tok-propertyName]:text-sky-700\n [&_.tok-punctuation]:text-muted-foreground\n [&_.tok-string]:text-orange-700\n [&_.tok-typeName]:text-amber-700\n dark:[&_.tok-atom]:text-rose-300\n dark:[&_.tok-bool]:text-rose-300\n dark:[&_.tok-keyword]:text-sky-300\n dark:[&_.tok-labelName]:text-teal-300\n dark:[&_.tok-literal]:text-rose-300\n dark:[&_.tok-meta]:text-fuchsia-300\n dark:[&_.tok-number]:text-emerald-300\n dark:[&_.tok-operator]:text-violet-300\n dark:[&_.tok-propertyName]:text-sky-300\n dark:[&_.tok-string]:text-orange-300\n dark:[&_.tok-typeName]:text-amber-300\n", T = "\n border-destructive ring-destructive/20\n dark:ring-destructive/40\n";
13
13
  function E(t, n) {
14
14
  let r = t.state.doc.length, i = Math.min(Math.max(n.from, 0), r), a = Math.min(Math.max(n.to, i), r), o = n.cursor ?? i + n.insert.length;
@@ -100,10 +100,10 @@ function O({ value: e, onChange: O, extensions: k = [], diagnostics: A = [], rea
100
100
  F
101
101
  ]), n(() => {
102
102
  let e = z.current;
103
- e === null || k === W.current || (W.current = k, e.dispatch({ effects: H.current.reconfigure([...k]) }));
103
+ e !== null && k !== W.current && (W.current = k, e.dispatch({ effects: H.current.reconfigure([...k]) }));
104
104
  }, [k]), n(() => {
105
105
  let t = z.current;
106
- t === null || t.state.doc.toString() === e || t.dispatch({ changes: {
106
+ t !== null && t.state.doc.toString() !== e && t.dispatch({ changes: {
107
107
  from: 0,
108
108
  to: t.state.doc.length,
109
109
  insert: e
@@ -132,6 +132,10 @@ function O({ value: e, onChange: O, extensions: k = [], diagnostics: A = [], rea
132
132
  },
133
133
  apply(e) {
134
134
  z.current !== null && E(z.current, e);
135
+ },
136
+ run(e) {
137
+ let t = z.current;
138
+ t !== null && (e(t), t.focus());
135
139
  }
136
140
  }), []), /* @__PURE__ */ a("div", {
137
141
  ref: R,
@@ -139,5 +143,4 @@ function O({ value: e, onChange: O, extensions: k = [], diagnostics: A = [], rea
139
143
  className: t(w, F && T, I)
140
144
  });
141
145
  }
142
- //#endregion
143
146
  export { O as t };
@@ -1,4 +1,4 @@
1
- //#region src/workspace/dashboards/bindings.ts
1
+ // src/workspace/dashboards/bindings.ts
2
2
  function e(e) {
3
3
  return e.flatMap((e) => {
4
4
  let t = e.requiredFields.filter((t) => e.bindings?.[t] == null);
@@ -22,5 +22,4 @@ function r(e) {
22
22
  let n = 0;
23
23
  return Object.fromEntries(Object.entries(e).map(([e, r]) => [e, Object.fromEntries(t(r).map((e) => (n += 1, [e, `00000000-0000-4000-8000-${String(n).padStart(12, "0")}`])))]));
24
24
  }
25
- //#endregion
26
25
  export { t as dashboardBindingFields, r as exampleDashboardBindings, n as missingDashboardBindingGroups, e as missingDashboardBindings };