@overvis/hmi-workspace-ui 0.0.0-stage → 0.1.0

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 (1023) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +84 -2
  3. package/THIRD_PARTY_NOTICES +151 -0
  4. package/dist/OFL-1.1.txt +93 -0
  5. package/dist/alarm-list-BL3xQ5Lf.js +423 -0
  6. package/dist/alarm-rule-dialog-S1ZUg-74.js +423 -0
  7. package/dist/alarm-rule-lists-C5v1Kf7A.js +344 -0
  8. package/dist/alarm-rules-page-CqFzofPd.js +121 -0
  9. package/dist/alert-B8MAoIO8.js +45 -0
  10. package/dist/alert-dialog-CYkuMg5D.js +129 -0
  11. package/dist/api-error-9rQmUN5L.js +93 -0
  12. package/dist/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  13. package/dist/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  14. package/dist/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  15. package/dist/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  16. package/dist/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  17. package/dist/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  18. package/dist/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  19. package/dist/base-revision-YCO27zR4.js +106 -0
  20. package/dist/breadcrumb-DzVL1yHa.js +74 -0
  21. package/dist/breadcrumbs-0cjsV2cq.js +21 -0
  22. package/dist/button-6SxPBYMz.js +44 -0
  23. package/dist/catalog-list-DjZojYLJ.js +77 -0
  24. package/dist/code-editor-BVimvjDV.js +143 -0
  25. package/dist/context-u9KJQmdB.js +102 -0
  26. package/dist/copyable-id-DYGiAcnq.js +40 -0
  27. package/dist/dashboard-bindings.js +26 -0
  28. package/dist/dashboard-context-CBfG6DoT.js +191 -0
  29. package/dist/dashboards-page-BlrJguNz.js +1064 -0
  30. package/dist/date-time-picker-C3FhMXk6.js +266 -0
  31. package/dist/de-14WdmJxZ.js +4578 -0
  32. package/dist/diagnostic-text-BAkzW0SE.js +111 -0
  33. package/dist/diagnostic-text-DiKd2i1w.js +76 -0
  34. package/dist/dialog-BIhQXcZC.js +237 -0
  35. package/dist/dialog-BqyIxMD-.js +54 -0
  36. package/dist/dialogs-B6BRnf3Q.js +730 -0
  37. package/dist/dialogs-D_v1LeH4.js +7820 -0
  38. package/dist/display-DmOo23mi.js +79 -0
  39. package/dist/dropdown-menu-DSzbBq3v.js +136 -0
  40. package/dist/editor-language-To9MxloY.js +437 -0
  41. package/dist/editor-page-BiSZJz5b.js +1353 -0
  42. package/dist/empty-B-QJ-06w.js +59 -0
  43. package/dist/en-BgercpT0.js +4578 -0
  44. package/dist/entity-controls-D1K4Ot3O.js +76 -0
  45. package/dist/errors-CcsvDHu8.js +26 -0
  46. package/dist/footer-DC-Q0052.js +10675 -0
  47. package/dist/history-page-sAAhG54V.js +1400 -0
  48. package/dist/host.js +1523 -0
  49. package/dist/i18n-BgzakKoC.js +401 -0
  50. package/dist/i18n.js +2 -0
  51. package/dist/icon-D-pR9htW.js +57 -0
  52. package/dist/index-page-DMH82fZe.js +214 -0
  53. package/dist/index.js +19118 -0
  54. package/dist/item-B5SaTFQU.js +120 -0
  55. package/dist/lat-lng-B12P7QyY.js +11 -0
  56. package/dist/list-page-CvsdZb86.js +363 -0
  57. package/dist/location-map-renderer-DO5yfdSU.js +145 -0
  58. package/dist/location-picker-renderer-CjCxg6ai.js +105 -0
  59. package/dist/model-B8gGi4OK.js +9 -0
  60. package/dist/mutation-form-validators-BNz5bsv1.js +2408 -0
  61. package/dist/mutations-THtGG6Ai.js +240 -0
  62. package/dist/notice-card-DyGywFsW.js +246 -0
  63. package/dist/page-2KPemaAj.js +328 -0
  64. package/dist/page-6rIoTg2L.js +459 -0
  65. package/dist/page-C6giEoEd.js +1935 -0
  66. package/dist/page-DCbTxKsi.js +313 -0
  67. package/dist/page-DWO427hT.js +208 -0
  68. package/dist/page-LXu_2zm3.js +137 -0
  69. package/dist/page-aaUiVOnk.js +513 -0
  70. package/dist/page-header-RB2YFWlE.js +55 -0
  71. package/dist/page-title-CdCbiLt8.js +14 -0
  72. package/dist/page-v6LCwswN.js +304 -0
  73. package/dist/panel-DDy8tUNR.js +338 -0
  74. package/dist/parameter-values.js +215 -0
  75. package/dist/pl-lQ9HXV9k.js +4578 -0
  76. package/dist/presence-code-BfSXr50g.js +83 -0
  77. package/dist/progress-C7cxNJA1.js +83 -0
  78. package/dist/provider-BOeYHi0n.js +134 -0
  79. package/dist/provider-DoEpKcQ-.js +29015 -0
  80. package/dist/query-gate-DVhNIkge.js +33 -0
  81. package/dist/quick-report-CUVJnbKP.js +416 -0
  82. package/dist/radio-group-CZGqVbkJ.js +26 -0
  83. package/dist/retention-BYXNpYmR.js +62 -0
  84. package/dist/retention-note-CHhA6gjY.js +42 -0
  85. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  86. package/dist/ru-qTKINoUj.js +4578 -0
  87. package/dist/run-text-DvaO8LDF.js +113 -0
  88. package/dist/search-D4rDnE9T.js +265 -0
  89. package/dist/sections-kCOyc4NR.js +77 -0
  90. package/dist/select-BKiOWdSr.js +539 -0
  91. package/dist/select-eNgZdZ30.js +521 -0
  92. package/dist/skeleton-6yk8Tdh5.js +19 -0
  93. package/dist/slider-DorDsoF8.js +37 -0
  94. package/dist/spinner-C-HPNxOc.js +530 -0
  95. package/dist/src/audit/checkpoint-presentation.d.ts +2 -0
  96. package/dist/src/audit/checkpoints.d.ts +23 -0
  97. package/dist/src/audit/history-model.d.ts +3 -0
  98. package/dist/src/audit/history-page.d.ts +13 -0
  99. package/dist/src/audit/history-presentation.d.ts +21 -0
  100. package/dist/src/audit/history-search.d.ts +6 -0
  101. package/dist/src/audit/revert-checkpoint-dialog.d.ts +29 -0
  102. package/dist/src/audit/revert-device-confirmation.d.ts +20 -0
  103. package/dist/src/audit/setup-change-list.d.ts +5 -0
  104. package/dist/src/brand/brand-link.d.ts +7 -0
  105. package/dist/src/brand/local-brand-link.d.ts +11 -0
  106. package/dist/src/brand/overvis-logo.d.ts +10 -0
  107. package/dist/src/brand/workspace-brand-link.d.ts +10 -0
  108. package/dist/src/brand/workspace-favicon.d.ts +4 -0
  109. package/dist/src/chrome/language-switcher.d.ts +3 -0
  110. package/dist/src/chrome/mode-toggle.d.ts +1 -0
  111. package/dist/src/chrome/text-link.d.ts +8 -0
  112. package/dist/src/code-editor/code-editor.d.ts +55 -0
  113. package/dist/src/code-editor/formula-input.d.ts +20 -0
  114. package/dist/src/code-editor/json-positions.d.ts +26 -0
  115. package/dist/src/code-editor/language-features.d.ts +122 -0
  116. package/dist/src/code-editor/taskfile-language.d.ts +10 -0
  117. package/dist/src/dev-fatal/error-boundary.d.ts +10 -0
  118. package/dist/src/dev-fatal/format-console-error.d.ts +5 -0
  119. package/dist/src/dev-fatal/install.d.ts +6 -0
  120. package/dist/src/dev-fatal/is-enabled.d.ts +7 -0
  121. package/dist/src/dev-fatal/overlay.d.ts +8 -0
  122. package/dist/src/dev-fatal/report-render-error.d.ts +6 -0
  123. package/dist/src/dev-fatal/should-ignore.d.ts +5 -0
  124. package/dist/src/entry/host/index.d.ts +43 -0
  125. package/dist/src/entry/ui/index.d.ts +80 -0
  126. package/dist/src/form/api-error.d.ts +11 -0
  127. package/dist/src/form/fields/checkbox-field.d.ts +9 -0
  128. package/dist/src/form/fields/dashboard-picker-field.d.ts +13 -0
  129. package/dist/src/form/fields/formula-field.d.ts +11 -0
  130. package/dist/src/form/fields/otp-field.d.ts +14 -0
  131. package/dist/src/form/fields/parameter-picker-field.d.ts +3 -0
  132. package/dist/src/form/fields/text-field.d.ts +9 -0
  133. package/dist/src/form/fields/textarea-field.d.ts +6 -0
  134. package/dist/src/form/focus-first-invalid-field.d.ts +4 -0
  135. package/dist/src/form/form-contexts.d.ts +1 -0
  136. package/dist/src/form/form-error-banner.d.ts +4 -0
  137. package/dist/src/form/form-root.d.ts +18 -0
  138. package/dist/src/form/format-field-errors.d.ts +10 -0
  139. package/dist/src/form/index.d.ts +36 -0
  140. package/dist/src/form/map-trpc-to-form-errors.d.ts +34 -0
  141. package/dist/src/form/message.d.ts +5 -0
  142. package/dist/src/form/mutation-form-validators.d.ts +41 -0
  143. package/dist/src/form/submit-button.d.ts +13 -0
  144. package/dist/src/form/trpc-error-data.d.ts +19 -0
  145. package/dist/src/form/use-app-form.d.ts +89 -0
  146. package/dist/src/hooks/use-closed-minute.d.ts +6 -0
  147. package/dist/src/hooks/use-media-query.d.ts +2 -0
  148. package/dist/src/hooks/use-mobile.d.ts +1 -0
  149. package/dist/src/hooks/use-now.d.ts +5 -0
  150. package/dist/src/i18n/catalogs/de/action.d.ts +14 -0
  151. package/dist/src/i18n/catalogs/de/alarm.d.ts +79 -0
  152. package/dist/src/i18n/catalogs/de/api-error.d.ts +261 -0
  153. package/dist/src/i18n/catalogs/de/audit.d.ts +133 -0
  154. package/dist/src/i18n/catalogs/de/automation-editor.d.ts +220 -0
  155. package/dist/src/i18n/catalogs/de/automation-language.d.ts +249 -0
  156. package/dist/src/i18n/catalogs/de/automation.d.ts +59 -0
  157. package/dist/src/i18n/catalogs/de/brand.d.ts +4 -0
  158. package/dist/src/i18n/catalogs/de/cold-room.d.ts +26 -0
  159. package/dist/src/i18n/catalogs/de/copyable.d.ts +6 -0
  160. package/dist/src/i18n/catalogs/de/dashboard.d.ts +92 -0
  161. package/dist/src/i18n/catalogs/de/device-preset.d.ts +71 -0
  162. package/dist/src/i18n/catalogs/de/document.d.ts +52 -0
  163. package/dist/src/i18n/catalogs/de/edge-program-language.d.ts +165 -0
  164. package/dist/src/i18n/catalogs/de/edge-program.d.ts +238 -0
  165. package/dist/src/i18n/catalogs/de/endpoint.d.ts +112 -0
  166. package/dist/src/i18n/catalogs/de/error.d.ts +34 -0
  167. package/dist/src/i18n/catalogs/de/fleet.d.ts +247 -0
  168. package/dist/src/i18n/catalogs/de/formula.d.ts +35 -0
  169. package/dist/src/i18n/catalogs/de/graphics.d.ts +417 -0
  170. package/dist/src/i18n/catalogs/de/language.d.ts +10 -0
  171. package/dist/src/i18n/catalogs/de/messages.d.ts +19 -0
  172. package/dist/src/i18n/catalogs/de/parameter.d.ts +373 -0
  173. package/dist/src/i18n/catalogs/de/pull.d.ts +11 -0
  174. package/dist/src/i18n/catalogs/de/report.d.ts +377 -0
  175. package/dist/src/i18n/catalogs/de/setup.d.ts +65 -0
  176. package/dist/src/i18n/catalogs/de/starter.d.ts +38 -0
  177. package/dist/src/i18n/catalogs/de/storage.d.ts +124 -0
  178. package/dist/src/i18n/catalogs/de/symbols-hvac.d.ts +142 -0
  179. package/dist/src/i18n/catalogs/de/symbols-power.d.ts +122 -0
  180. package/dist/src/i18n/catalogs/de/symbols-quarry.d.ts +81 -0
  181. package/dist/src/i18n/catalogs/de/symbols.d.ts +676 -0
  182. package/dist/src/i18n/catalogs/de/theme.d.ts +4 -0
  183. package/dist/src/i18n/catalogs/de/ui.d.ts +37 -0
  184. package/dist/src/i18n/catalogs/de/workspace.d.ts +19 -0
  185. package/dist/src/i18n/catalogs/de.d.ts +4510 -0
  186. package/dist/src/i18n/catalogs/en/action.d.ts +14 -0
  187. package/dist/src/i18n/catalogs/en/alarm.d.ts +79 -0
  188. package/dist/src/i18n/catalogs/en/api-error.d.ts +261 -0
  189. package/dist/src/i18n/catalogs/en/audit.d.ts +133 -0
  190. package/dist/src/i18n/catalogs/en/automation-editor.d.ts +220 -0
  191. package/dist/src/i18n/catalogs/en/automation-language.d.ts +249 -0
  192. package/dist/src/i18n/catalogs/en/automation.d.ts +59 -0
  193. package/dist/src/i18n/catalogs/en/brand.d.ts +4 -0
  194. package/dist/src/i18n/catalogs/en/cold-room.d.ts +26 -0
  195. package/dist/src/i18n/catalogs/en/copyable.d.ts +6 -0
  196. package/dist/src/i18n/catalogs/en/dashboard.d.ts +92 -0
  197. package/dist/src/i18n/catalogs/en/device-preset.d.ts +71 -0
  198. package/dist/src/i18n/catalogs/en/document.d.ts +52 -0
  199. package/dist/src/i18n/catalogs/en/edge-program-language.d.ts +165 -0
  200. package/dist/src/i18n/catalogs/en/edge-program.d.ts +238 -0
  201. package/dist/src/i18n/catalogs/en/endpoint.d.ts +112 -0
  202. package/dist/src/i18n/catalogs/en/error.d.ts +34 -0
  203. package/dist/src/i18n/catalogs/en/fleet.d.ts +247 -0
  204. package/dist/src/i18n/catalogs/en/formula.d.ts +35 -0
  205. package/dist/src/i18n/catalogs/en/graphics.d.ts +417 -0
  206. package/dist/src/i18n/catalogs/en/language.d.ts +10 -0
  207. package/dist/src/i18n/catalogs/en/messages.d.ts +19 -0
  208. package/dist/src/i18n/catalogs/en/parameter.d.ts +373 -0
  209. package/dist/src/i18n/catalogs/en/pull.d.ts +11 -0
  210. package/dist/src/i18n/catalogs/en/report.d.ts +377 -0
  211. package/dist/src/i18n/catalogs/en/setup.d.ts +65 -0
  212. package/dist/src/i18n/catalogs/en/starter.d.ts +38 -0
  213. package/dist/src/i18n/catalogs/en/storage.d.ts +124 -0
  214. package/dist/src/i18n/catalogs/en/symbols-hvac.d.ts +142 -0
  215. package/dist/src/i18n/catalogs/en/symbols-power.d.ts +122 -0
  216. package/dist/src/i18n/catalogs/en/symbols-quarry.d.ts +81 -0
  217. package/dist/src/i18n/catalogs/en/symbols.d.ts +676 -0
  218. package/dist/src/i18n/catalogs/en/theme.d.ts +4 -0
  219. package/dist/src/i18n/catalogs/en/ui.d.ts +37 -0
  220. package/dist/src/i18n/catalogs/en/workspace.d.ts +19 -0
  221. package/dist/src/i18n/catalogs/en.d.ts +4510 -0
  222. package/dist/src/i18n/catalogs/pl/action.d.ts +14 -0
  223. package/dist/src/i18n/catalogs/pl/alarm.d.ts +79 -0
  224. package/dist/src/i18n/catalogs/pl/api-error.d.ts +261 -0
  225. package/dist/src/i18n/catalogs/pl/audit.d.ts +133 -0
  226. package/dist/src/i18n/catalogs/pl/automation-editor.d.ts +220 -0
  227. package/dist/src/i18n/catalogs/pl/automation-language.d.ts +249 -0
  228. package/dist/src/i18n/catalogs/pl/automation.d.ts +59 -0
  229. package/dist/src/i18n/catalogs/pl/brand.d.ts +4 -0
  230. package/dist/src/i18n/catalogs/pl/cold-room.d.ts +26 -0
  231. package/dist/src/i18n/catalogs/pl/copyable.d.ts +6 -0
  232. package/dist/src/i18n/catalogs/pl/dashboard.d.ts +92 -0
  233. package/dist/src/i18n/catalogs/pl/device-preset.d.ts +71 -0
  234. package/dist/src/i18n/catalogs/pl/document.d.ts +52 -0
  235. package/dist/src/i18n/catalogs/pl/edge-program-language.d.ts +165 -0
  236. package/dist/src/i18n/catalogs/pl/edge-program.d.ts +238 -0
  237. package/dist/src/i18n/catalogs/pl/endpoint.d.ts +112 -0
  238. package/dist/src/i18n/catalogs/pl/error.d.ts +34 -0
  239. package/dist/src/i18n/catalogs/pl/fleet.d.ts +247 -0
  240. package/dist/src/i18n/catalogs/pl/formula.d.ts +35 -0
  241. package/dist/src/i18n/catalogs/pl/graphics.d.ts +417 -0
  242. package/dist/src/i18n/catalogs/pl/language.d.ts +10 -0
  243. package/dist/src/i18n/catalogs/pl/messages.d.ts +19 -0
  244. package/dist/src/i18n/catalogs/pl/parameter.d.ts +373 -0
  245. package/dist/src/i18n/catalogs/pl/pull.d.ts +11 -0
  246. package/dist/src/i18n/catalogs/pl/report.d.ts +377 -0
  247. package/dist/src/i18n/catalogs/pl/setup.d.ts +65 -0
  248. package/dist/src/i18n/catalogs/pl/starter.d.ts +38 -0
  249. package/dist/src/i18n/catalogs/pl/storage.d.ts +124 -0
  250. package/dist/src/i18n/catalogs/pl/symbols-hvac.d.ts +142 -0
  251. package/dist/src/i18n/catalogs/pl/symbols-power.d.ts +122 -0
  252. package/dist/src/i18n/catalogs/pl/symbols-quarry.d.ts +81 -0
  253. package/dist/src/i18n/catalogs/pl/symbols.d.ts +676 -0
  254. package/dist/src/i18n/catalogs/pl/theme.d.ts +4 -0
  255. package/dist/src/i18n/catalogs/pl/ui.d.ts +37 -0
  256. package/dist/src/i18n/catalogs/pl/workspace.d.ts +19 -0
  257. package/dist/src/i18n/catalogs/pl.d.ts +4510 -0
  258. package/dist/src/i18n/catalogs/ru/action.d.ts +14 -0
  259. package/dist/src/i18n/catalogs/ru/alarm.d.ts +79 -0
  260. package/dist/src/i18n/catalogs/ru/api-error.d.ts +261 -0
  261. package/dist/src/i18n/catalogs/ru/audit.d.ts +133 -0
  262. package/dist/src/i18n/catalogs/ru/automation-editor.d.ts +220 -0
  263. package/dist/src/i18n/catalogs/ru/automation-language.d.ts +249 -0
  264. package/dist/src/i18n/catalogs/ru/automation.d.ts +59 -0
  265. package/dist/src/i18n/catalogs/ru/brand.d.ts +4 -0
  266. package/dist/src/i18n/catalogs/ru/cold-room.d.ts +26 -0
  267. package/dist/src/i18n/catalogs/ru/copyable.d.ts +6 -0
  268. package/dist/src/i18n/catalogs/ru/dashboard.d.ts +92 -0
  269. package/dist/src/i18n/catalogs/ru/device-preset.d.ts +71 -0
  270. package/dist/src/i18n/catalogs/ru/document.d.ts +52 -0
  271. package/dist/src/i18n/catalogs/ru/edge-program-language.d.ts +165 -0
  272. package/dist/src/i18n/catalogs/ru/edge-program.d.ts +238 -0
  273. package/dist/src/i18n/catalogs/ru/endpoint.d.ts +112 -0
  274. package/dist/src/i18n/catalogs/ru/error.d.ts +34 -0
  275. package/dist/src/i18n/catalogs/ru/fleet.d.ts +247 -0
  276. package/dist/src/i18n/catalogs/ru/formula.d.ts +35 -0
  277. package/dist/src/i18n/catalogs/ru/graphics.d.ts +417 -0
  278. package/dist/src/i18n/catalogs/ru/language.d.ts +10 -0
  279. package/dist/src/i18n/catalogs/ru/messages.d.ts +19 -0
  280. package/dist/src/i18n/catalogs/ru/parameter.d.ts +373 -0
  281. package/dist/src/i18n/catalogs/ru/pull.d.ts +11 -0
  282. package/dist/src/i18n/catalogs/ru/report.d.ts +377 -0
  283. package/dist/src/i18n/catalogs/ru/setup.d.ts +65 -0
  284. package/dist/src/i18n/catalogs/ru/starter.d.ts +38 -0
  285. package/dist/src/i18n/catalogs/ru/storage.d.ts +124 -0
  286. package/dist/src/i18n/catalogs/ru/symbols-hvac.d.ts +142 -0
  287. package/dist/src/i18n/catalogs/ru/symbols-power.d.ts +122 -0
  288. package/dist/src/i18n/catalogs/ru/symbols-quarry.d.ts +81 -0
  289. package/dist/src/i18n/catalogs/ru/symbols.d.ts +676 -0
  290. package/dist/src/i18n/catalogs/ru/theme.d.ts +4 -0
  291. package/dist/src/i18n/catalogs/ru/ui.d.ts +37 -0
  292. package/dist/src/i18n/catalogs/ru/workspace.d.ts +19 -0
  293. package/dist/src/i18n/catalogs/ru.d.ts +4510 -0
  294. package/dist/src/i18n/catalogs/uk/action.d.ts +14 -0
  295. package/dist/src/i18n/catalogs/uk/alarm.d.ts +79 -0
  296. package/dist/src/i18n/catalogs/uk/api-error.d.ts +261 -0
  297. package/dist/src/i18n/catalogs/uk/audit.d.ts +133 -0
  298. package/dist/src/i18n/catalogs/uk/automation-editor.d.ts +220 -0
  299. package/dist/src/i18n/catalogs/uk/automation-language.d.ts +249 -0
  300. package/dist/src/i18n/catalogs/uk/automation.d.ts +59 -0
  301. package/dist/src/i18n/catalogs/uk/brand.d.ts +4 -0
  302. package/dist/src/i18n/catalogs/uk/cold-room.d.ts +26 -0
  303. package/dist/src/i18n/catalogs/uk/copyable.d.ts +6 -0
  304. package/dist/src/i18n/catalogs/uk/dashboard.d.ts +92 -0
  305. package/dist/src/i18n/catalogs/uk/device-preset.d.ts +71 -0
  306. package/dist/src/i18n/catalogs/uk/document.d.ts +52 -0
  307. package/dist/src/i18n/catalogs/uk/edge-program-language.d.ts +165 -0
  308. package/dist/src/i18n/catalogs/uk/edge-program.d.ts +238 -0
  309. package/dist/src/i18n/catalogs/uk/endpoint.d.ts +112 -0
  310. package/dist/src/i18n/catalogs/uk/error.d.ts +34 -0
  311. package/dist/src/i18n/catalogs/uk/fleet.d.ts +247 -0
  312. package/dist/src/i18n/catalogs/uk/formula.d.ts +35 -0
  313. package/dist/src/i18n/catalogs/uk/graphics.d.ts +417 -0
  314. package/dist/src/i18n/catalogs/uk/language.d.ts +10 -0
  315. package/dist/src/i18n/catalogs/uk/messages.d.ts +19 -0
  316. package/dist/src/i18n/catalogs/uk/parameter.d.ts +373 -0
  317. package/dist/src/i18n/catalogs/uk/pull.d.ts +11 -0
  318. package/dist/src/i18n/catalogs/uk/report.d.ts +377 -0
  319. package/dist/src/i18n/catalogs/uk/setup.d.ts +65 -0
  320. package/dist/src/i18n/catalogs/uk/starter.d.ts +38 -0
  321. package/dist/src/i18n/catalogs/uk/storage.d.ts +124 -0
  322. package/dist/src/i18n/catalogs/uk/symbols-hvac.d.ts +142 -0
  323. package/dist/src/i18n/catalogs/uk/symbols-power.d.ts +122 -0
  324. package/dist/src/i18n/catalogs/uk/symbols-quarry.d.ts +81 -0
  325. package/dist/src/i18n/catalogs/uk/symbols.d.ts +676 -0
  326. package/dist/src/i18n/catalogs/uk/theme.d.ts +4 -0
  327. package/dist/src/i18n/catalogs/uk/ui.d.ts +37 -0
  328. package/dist/src/i18n/catalogs/uk/workspace.d.ts +19 -0
  329. package/dist/src/i18n/catalogs/uk.d.ts +4510 -0
  330. package/dist/src/i18n/index.d.ts +4 -0
  331. package/dist/src/i18n/locale.d.ts +11 -0
  332. package/dist/src/i18n/messages.d.ts +12 -0
  333. package/dist/src/i18n/use-language-change.d.ts +5 -0
  334. package/dist/src/i18n/use-locale.d.ts +1 -0
  335. package/dist/src/index.d.ts +151 -0
  336. package/dist/src/lib/utils.d.ts +2 -0
  337. package/dist/src/theme-provider.d.ts +16 -0
  338. package/dist/src/trpc.d.ts +37 -0
  339. package/dist/src/ui/accordion.d.ts +6 -0
  340. package/dist/src/ui/alert-dialog.d.ts +20 -0
  341. package/dist/src/ui/alert.d.ts +10 -0
  342. package/dist/src/ui/aspect-ratio.d.ts +6 -0
  343. package/dist/src/ui/attachment.d.ts +23 -0
  344. package/dist/src/ui/avatar.d.ts +11 -0
  345. package/dist/src/ui/badge.d.ts +6 -0
  346. package/dist/src/ui/breadcrumb.d.ts +10 -0
  347. package/dist/src/ui/bubble.d.ts +16 -0
  348. package/dist/src/ui/button-group.d.ts +10 -0
  349. package/dist/src/ui/button.d.ts +8 -0
  350. package/dist/src/ui/calendar.d.ts +10 -0
  351. package/dist/src/ui/card.d.ts +11 -0
  352. package/dist/src/ui/carousel.d.ts +28 -0
  353. package/dist/src/ui/chart.d.ts +60 -0
  354. package/dist/src/ui/checkbox.d.ts +3 -0
  355. package/dist/src/ui/collapsible.d.ts +5 -0
  356. package/dist/src/ui/combobox.d.ts +24 -0
  357. package/dist/src/ui/command.d.ts +19 -0
  358. package/dist/src/ui/content-overlay/dismiss.d.ts +10 -0
  359. package/dist/src/ui/content-overlay/region.d.ts +37 -0
  360. package/dist/src/ui/content-overlay/root.d.ts +3 -0
  361. package/dist/src/ui/content-overlay/tab-wrap.d.ts +6 -0
  362. package/dist/src/ui/context-menu.d.ts +28 -0
  363. package/dist/src/ui/data-table.d.ts +38 -0
  364. package/dist/src/ui/date-time-picker.d.ts +30 -0
  365. package/dist/src/ui/dialog.d.ts +19 -0
  366. package/dist/src/ui/direction.d.ts +3 -0
  367. package/dist/src/ui/drawer.d.ts +18 -0
  368. package/dist/src/ui/dropdown-menu.d.ts +29 -0
  369. package/dist/src/ui/empty.d.ts +11 -0
  370. package/dist/src/ui/field.d.ts +24 -0
  371. package/dist/src/ui/gauge-bar.d.ts +43 -0
  372. package/dist/src/ui/gauge.d.ts +24 -0
  373. package/dist/src/ui/hover-card.d.ts +5 -0
  374. package/dist/src/ui/input-group.d.ts +18 -0
  375. package/dist/src/ui/input-otp.d.ts +11 -0
  376. package/dist/src/ui/input.d.ts +3 -0
  377. package/dist/src/ui/item.d.ts +22 -0
  378. package/dist/src/ui/kbd.d.ts +3 -0
  379. package/dist/src/ui/label.d.ts +3 -0
  380. package/dist/src/ui/marker.d.ts +10 -0
  381. package/dist/src/ui/menubar.d.ts +28 -0
  382. package/dist/src/ui/message-history/context.d.ts +51 -0
  383. package/dist/src/ui/message-history/emit.d.ts +27 -0
  384. package/dist/src/ui/message-history/legacy-content.d.ts +6 -0
  385. package/dist/src/ui/message-history/legacy.d.ts +7 -0
  386. package/dist/src/ui/message-history/model.d.ts +22 -0
  387. package/dist/src/ui/message-history/panel.d.ts +6 -0
  388. package/dist/src/ui/message-history/store.d.ts +26 -0
  389. package/dist/src/ui/message-history/toast.d.ts +7 -0
  390. package/dist/src/ui/message-scroller.d.ts +20 -0
  391. package/dist/src/ui/message.d.ts +10 -0
  392. package/dist/src/ui/native-select.d.ts +8 -0
  393. package/dist/src/ui/navigation-menu.d.ts +11 -0
  394. package/dist/src/ui/notice-card.d.ts +61 -0
  395. package/dist/src/ui/page-header.d.ts +21 -0
  396. package/dist/src/ui/page-title.d.ts +5 -0
  397. package/dist/src/ui/pagination.d.ts +17 -0
  398. package/dist/src/ui/popover.d.ts +9 -0
  399. package/dist/src/ui/progress.d.ts +7 -0
  400. package/dist/src/ui/questionnaire.d.ts +19 -0
  401. package/dist/src/ui/radio-group.d.ts +5 -0
  402. package/dist/src/ui/resizable.d.ts +7 -0
  403. package/dist/src/ui/scroll-area.d.ts +5 -0
  404. package/dist/src/ui/select.d.ts +11 -0
  405. package/dist/src/ui/separator.d.ts +3 -0
  406. package/dist/src/ui/sheet.d.ts +14 -0
  407. package/dist/src/ui/sidebar.d.ts +63 -0
  408. package/dist/src/ui/skeleton.d.ts +7 -0
  409. package/dist/src/ui/slider.d.ts +3 -0
  410. package/dist/src/ui/sonner.d.ts +9 -0
  411. package/dist/src/ui/sparkline.d.ts +31 -0
  412. package/dist/src/ui/spinner.d.ts +2 -0
  413. package/dist/src/ui/svg-diagram/dom.d.ts +6 -0
  414. package/dist/src/ui/svg-diagram/types.d.ts +13 -0
  415. package/dist/src/ui/svg-diagram.d.ts +8 -0
  416. package/dist/src/ui/switch.d.ts +5 -0
  417. package/dist/src/ui/table.d.ts +10 -0
  418. package/dist/src/ui/tabs.d.ts +11 -0
  419. package/dist/src/ui/textarea.d.ts +3 -0
  420. package/dist/src/ui/theme-scope.d.ts +11 -0
  421. package/dist/src/ui/toggle-group.d.ts +11 -0
  422. package/dist/src/ui/toggle.d.ts +8 -0
  423. package/dist/src/ui/tooltip.d.ts +6 -0
  424. package/dist/src/version.d.ts +2 -0
  425. package/dist/src/workspace/access-label.d.ts +2 -0
  426. package/dist/src/workspace/alarms/actions.d.ts +19 -0
  427. package/dist/src/workspace/alarms/alarm-list.d.ts +65 -0
  428. package/dist/src/workspace/alarms/history.d.ts +17 -0
  429. package/dist/src/workspace/alarms/model.d.ts +29 -0
  430. package/dist/src/workspace/alarms/nav.d.ts +15 -0
  431. package/dist/src/workspace/alarms/page.d.ts +10 -0
  432. package/dist/src/workspace/alarms/provider.d.ts +30 -0
  433. package/dist/src/workspace/alarms/search.d.ts +8 -0
  434. package/dist/src/workspace/alarms/sound.d.ts +9 -0
  435. package/dist/src/workspace/automations/diagnostic-text.d.ts +6 -0
  436. package/dist/src/workspace/automations/editor-language.d.ts +13 -0
  437. package/dist/src/workspace/automations/item-descriptions.d.ts +3 -0
  438. package/dist/src/workspace/automations/parameter-names.d.ts +2 -0
  439. package/dist/src/workspace/automations/run-text.d.ts +18 -0
  440. package/dist/src/workspace/automations/trace-view.d.ts +24 -0
  441. package/dist/src/workspace/automations/use-catalog.d.ts +10 -0
  442. package/dist/src/workspace/caches.d.ts +41 -0
  443. package/dist/src/workspace/context.d.ts +71 -0
  444. package/dist/src/workspace/copyable-id.d.ts +4 -0
  445. package/dist/src/workspace/dashboards/actions-menu.d.ts +4 -0
  446. package/dist/src/workspace/dashboards/anchor-scroll.d.ts +11 -0
  447. package/dist/src/workspace/dashboards/bindings.d.ts +26 -0
  448. package/dist/src/workspace/dashboards/configuration-rename-dialog.d.ts +10 -0
  449. package/dist/src/workspace/dashboards/configuration-required.d.ts +10 -0
  450. package/dist/src/workspace/dashboards/configuration-update-queue.d.ts +2 -0
  451. package/dist/src/workspace/dashboards/copy-dialog.d.ts +7 -0
  452. package/dist/src/workspace/dashboards/document/blocks.d.ts +42 -0
  453. package/dist/src/workspace/dashboards/document/chart-data.d.ts +13 -0
  454. package/dist/src/workspace/dashboards/document/chart.d.ts +10 -0
  455. package/dist/src/workspace/dashboards/document/layout.d.ts +29 -0
  456. package/dist/src/workspace/dashboards/document/markdown.d.ts +7 -0
  457. package/dist/src/workspace/dashboards/document/sources.d.ts +32 -0
  458. package/dist/src/workspace/dashboards/document/tiles/chart.d.ts +23 -0
  459. package/dist/src/workspace/dashboards/document/tiles/context.d.ts +23 -0
  460. package/dist/src/workspace/dashboards/document/tiles/controls.d.ts +23 -0
  461. package/dist/src/workspace/dashboards/document/tiles/frame.d.ts +28 -0
  462. package/dist/src/workspace/dashboards/document/tiles/gauge-model.d.ts +4 -0
  463. package/dist/src/workspace/dashboards/document/tiles/gauge.d.ts +11 -0
  464. package/dist/src/workspace/dashboards/document/tiles/presentation.d.ts +29 -0
  465. package/dist/src/workspace/dashboards/document/tiles/reading.d.ts +14 -0
  466. package/dist/src/workspace/dashboards/document/tiles/sparkline.d.ts +7 -0
  467. package/dist/src/workspace/dashboards/document/tiles/tile.d.ts +8 -0
  468. package/dist/src/workspace/dashboards/document/tiles/tones.d.ts +44 -0
  469. package/dist/src/workspace/dashboards/document/tiles/use-tile-tone.d.ts +19 -0
  470. package/dist/src/workspace/dashboards/document/tiles/value.d.ts +8 -0
  471. package/dist/src/workspace/dashboards/document/view.d.ts +16 -0
  472. package/dist/src/workspace/dashboards/enabled-switch.d.ts +10 -0
  473. package/dist/src/workspace/dashboards/entrypoint.d.ts +15 -0
  474. package/dist/src/workspace/dashboards/icon.d.ts +6 -0
  475. package/dist/src/workspace/dashboards/load-module.d.ts +40 -0
  476. package/dist/src/workspace/dashboards/locale.d.ts +8 -0
  477. package/dist/src/workspace/dashboards/module-cache.d.ts +9 -0
  478. package/dist/src/workspace/dashboards/mount-diagnostics.d.ts +23 -0
  479. package/dist/src/workspace/dashboards/mount.d.ts +39 -0
  480. package/dist/src/workspace/dashboards/name.d.ts +11 -0
  481. package/dist/src/workspace/dashboards/navigation.d.ts +51 -0
  482. package/dist/src/workspace/dashboards/page-paths.d.ts +7 -0
  483. package/dist/src/workspace/dashboards/page-tabs.d.ts +23 -0
  484. package/dist/src/workspace/dashboards/page.d.ts +4 -0
  485. package/dist/src/workspace/dashboards/rotation.d.ts +26 -0
  486. package/dist/src/workspace/dashboards/search-params.d.ts +7 -0
  487. package/dist/src/workspace/dashboards/sortable-grid.d.ts +79 -0
  488. package/dist/src/workspace/dashboards/stylesheet.d.ts +9 -0
  489. package/dist/src/workspace/dashboards/use-configuration-mutation.d.ts +40 -0
  490. package/dist/src/workspace/device-api/errors.d.ts +6 -0
  491. package/dist/src/workspace/device-api/use-device-api.d.ts +75 -0
  492. package/dist/src/workspace/device-presets/cold-room-card.d.ts +17 -0
  493. package/dist/src/workspace/device-presets/cold-room-commands.d.ts +19 -0
  494. package/dist/src/workspace/device-presets/cold-room-labels.d.ts +5 -0
  495. package/dist/src/workspace/device-presets/cold-room-model.d.ts +141 -0
  496. package/dist/src/workspace/device-presets/command-button.d.ts +34 -0
  497. package/dist/src/workspace/device-presets/endpoint-unavailable.d.ts +15 -0
  498. package/dist/src/workspace/device-presets/gauge-scale.d.ts +23 -0
  499. package/dist/src/workspace/device-presets/gauges.d.ts +52 -0
  500. package/dist/src/workspace/device-presets/header.d.ts +14 -0
  501. package/dist/src/workspace/device-presets/layout.d.ts +52 -0
  502. package/dist/src/workspace/device-presets/overview.d.ts +103 -0
  503. package/dist/src/workspace/device-presets/quantity.d.ts +5 -0
  504. package/dist/src/workspace/device-presets/relay-test-panel.d.ts +37 -0
  505. package/dist/src/workspace/device-presets/relay-test.d.ts +164 -0
  506. package/dist/src/workspace/device-presets/series-colors.d.ts +58 -0
  507. package/dist/src/workspace/device-presets/settings-choice.d.ts +20 -0
  508. package/dist/src/workspace/device-presets/settings-fields.d.ts +39 -0
  509. package/dist/src/workspace/device-presets/settings-form.d.ts +35 -0
  510. package/dist/src/workspace/device-presets/settings-page.d.ts +29 -0
  511. package/dist/src/workspace/device-presets/settings-rows.d.ts +25 -0
  512. package/dist/src/workspace/device-presets/settings-section.d.ts +78 -0
  513. package/dist/src/workspace/device-presets/settings-text.d.ts +5 -0
  514. package/dist/src/workspace/device-presets/settings-types.d.ts +122 -0
  515. package/dist/src/workspace/device-presets/settings-write-dialog.d.ts +27 -0
  516. package/dist/src/workspace/device-presets/settings-write.d.ts +73 -0
  517. package/dist/src/workspace/device-presets/state-text.d.ts +17 -0
  518. package/dist/src/workspace/device-presets/trend-chart.d.ts +51 -0
  519. package/dist/src/workspace/device-presets/trend-model.d.ts +45 -0
  520. package/dist/src/workspace/device-presets/unsupported.d.ts +14 -0
  521. package/dist/src/workspace/device-presets/values.d.ts +56 -0
  522. package/dist/src/workspace/edge-programs/deploy-status.d.ts +12 -0
  523. package/dist/src/workspace/edge-programs/diagnostic-text.d.ts +9 -0
  524. package/dist/src/workspace/edge-programs/editor-language.d.ts +15 -0
  525. package/dist/src/workspace/edge-programs/item-descriptions.d.ts +3 -0
  526. package/dist/src/workspace/edge-programs/live-state.d.ts +12 -0
  527. package/dist/src/workspace/endpoint-status/provider.d.ts +16 -0
  528. package/dist/src/workspace/endpoint-status/store.d.ts +18 -0
  529. package/dist/src/workspace/errors.d.ts +1 -0
  530. package/dist/src/workspace/fleet/alarms.d.ts +27 -0
  531. package/dist/src/workspace/fleet/binding-editor.d.ts +65 -0
  532. package/dist/src/workspace/fleet/board-editor.d.ts +118 -0
  533. package/dist/src/workspace/fleet/command-buttons.d.ts +19 -0
  534. package/dist/src/workspace/fleet/command-entry.d.ts +25 -0
  535. package/dist/src/workspace/fleet/command-steps.d.ts +65 -0
  536. package/dist/src/workspace/fleet/control-mode.d.ts +30 -0
  537. package/dist/src/workspace/fleet/counter-bars.d.ts +109 -0
  538. package/dist/src/workspace/fleet/counter-notices.d.ts +23 -0
  539. package/dist/src/workspace/fleet/counter-period.d.ts +35 -0
  540. package/dist/src/workspace/fleet/counter-shares.d.ts +34 -0
  541. package/dist/src/workspace/fleet/counter-total.d.ts +43 -0
  542. package/dist/src/workspace/fleet/counter-totals.d.ts +77 -0
  543. package/dist/src/workspace/fleet/due-dates.d.ts +18 -0
  544. package/dist/src/workspace/fleet/duplicate-dialog.d.ts +63 -0
  545. package/dist/src/workspace/fleet/editor-dialog.d.ts +26 -0
  546. package/dist/src/workspace/fleet/equipment-setup.d.ts +44 -0
  547. package/dist/src/workspace/fleet/equipment-view.d.ts +31 -0
  548. package/dist/src/workspace/fleet/figure.d.ts +18 -0
  549. package/dist/src/workspace/fleet/form-types.d.ts +15 -0
  550. package/dist/src/workspace/fleet/group-command-dialogs.d.ts +43 -0
  551. package/dist/src/workspace/fleet/group-command.d.ts +83 -0
  552. package/dist/src/workspace/fleet/indicator-lights.d.ts +23 -0
  553. package/dist/src/workspace/fleet/map.d.ts +41 -0
  554. package/dist/src/workspace/fleet/mode-badge.d.ts +7 -0
  555. package/dist/src/workspace/fleet/operations.d.ts +23 -0
  556. package/dist/src/workspace/fleet/order-editor.d.ts +13 -0
  557. package/dist/src/workspace/fleet/overview-model.d.ts +43 -0
  558. package/dist/src/workspace/fleet/overview.d.ts +93 -0
  559. package/dist/src/workspace/fleet/page-header.d.ts +27 -0
  560. package/dist/src/workspace/fleet/parameters.d.ts +65 -0
  561. package/dist/src/workspace/fleet/period-settings.d.ts +66 -0
  562. package/dist/src/workspace/fleet/placement-fields.d.ts +104 -0
  563. package/dist/src/workspace/fleet/position.d.ts +13 -0
  564. package/dist/src/workspace/fleet/readings.d.ts +64 -0
  565. package/dist/src/workspace/fleet/section.d.ts +7 -0
  566. package/dist/src/workspace/fleet/site-page.d.ts +150 -0
  567. package/dist/src/workspace/fleet/slot-fields.d.ts +53 -0
  568. package/dist/src/workspace/fleet/starter-fields.d.ts +63 -0
  569. package/dist/src/workspace/fleet/status-badge.d.ts +23 -0
  570. package/dist/src/workspace/fleet/status.d.ts +85 -0
  571. package/dist/src/workspace/formulas/diagnostic-text.d.ts +7 -0
  572. package/dist/src/workspace/graphics/actions/details.d.ts +49 -0
  573. package/dist/src/workspace/graphics/actions/dialog.d.ts +12 -0
  574. package/dist/src/workspace/graphics/actions/selection.d.ts +1352 -0
  575. package/dist/src/workspace/graphics/binding-value.d.ts +19 -0
  576. package/dist/src/workspace/graphics/bindings.d.ts +847 -0
  577. package/dist/src/workspace/graphics/canvas.d.ts +47 -0
  578. package/dist/src/workspace/graphics/commands/fields.d.ts +7 -0
  579. package/dist/src/workspace/graphics/commands/model.d.ts +10 -0
  580. package/dist/src/workspace/graphics/commands/provider.d.ts +285 -0
  581. package/dist/src/workspace/graphics/dashboard-graphics.d.ts +12 -0
  582. package/dist/src/workspace/graphics/editor-session.d.ts +47 -0
  583. package/dist/src/workspace/graphics/framing.d.ts +28 -0
  584. package/dist/src/workspace/graphics/generated-drawing.d.ts +47 -0
  585. package/dist/src/workspace/graphics/geometry.d.ts +41 -0
  586. package/dist/src/workspace/graphics/image-cache.d.ts +18 -0
  587. package/dist/src/workspace/graphics/image-dialog.d.ts +5 -0
  588. package/dist/src/workspace/graphics/image-picker.d.ts +5 -0
  589. package/dist/src/workspace/graphics/inspector/bindings.d.ts +17 -0
  590. package/dist/src/workspace/graphics/inspector/element.d.ts +10 -0
  591. package/dist/src/workspace/graphics/inspector/fields.d.ts +69 -0
  592. package/dist/src/workspace/graphics/inspector/item.d.ts +862 -0
  593. package/dist/src/workspace/graphics/inspector/multi.d.ts +10 -0
  594. package/dist/src/workspace/graphics/inspector/panel.d.ts +27 -0
  595. package/dist/src/workspace/graphics/inspector/ports.d.ts +2 -0
  596. package/dist/src/workspace/graphics/inspector/section.d.ts +14 -0
  597. package/dist/src/workspace/graphics/inspector/slots.d.ts +7 -0
  598. package/dist/src/workspace/graphics/inspector/symbol.d.ts +11 -0
  599. package/dist/src/workspace/graphics/line-geometry.d.ts +26 -0
  600. package/dist/src/workspace/graphics/lines.d.ts +14 -0
  601. package/dist/src/workspace/graphics/node-memo.d.ts +3 -0
  602. package/dist/src/workspace/graphics/node.d.ts +3 -0
  603. package/dist/src/workspace/graphics/placement.d.ts +23 -0
  604. package/dist/src/workspace/graphics/quality-indicator.d.ts +6 -0
  605. package/dist/src/workspace/graphics/resize-handles.d.ts +8 -0
  606. package/dist/src/workspace/graphics/source-picker.d.ts +35 -0
  607. package/dist/src/workspace/graphics/symbol-issues.d.ts +26 -0
  608. package/dist/src/workspace/graphics/symbols/agriculture/fertigation.d.ts +1 -0
  609. package/dist/src/workspace/graphics/symbols/agriculture/index.d.ts +2 -0
  610. package/dist/src/workspace/graphics/symbols/agriculture/soil-sensor.d.ts +1 -0
  611. package/dist/src/workspace/graphics/symbols/agriculture/soil.d.ts +9 -0
  612. package/dist/src/workspace/graphics/symbols/agriculture/sprinkler.d.ts +1 -0
  613. package/dist/src/workspace/graphics/symbols/agriculture/zone.d.ts +1 -0
  614. package/dist/src/workspace/graphics/symbols/bindings.d.ts +34 -0
  615. package/dist/src/workspace/graphics/symbols/browser.d.ts +28 -0
  616. package/dist/src/workspace/graphics/symbols/builtins.d.ts +2 -0
  617. package/dist/src/workspace/graphics/symbols/button.d.ts +2 -0
  618. package/dist/src/workspace/graphics/symbols/catalog.d.ts +41 -0
  619. package/dist/src/workspace/graphics/symbols/compressed-air/compressor.d.ts +1 -0
  620. package/dist/src/workspace/graphics/symbols/compressed-air/drain.d.ts +15 -0
  621. package/dist/src/workspace/graphics/symbols/compressed-air/index.d.ts +1 -0
  622. package/dist/src/workspace/graphics/symbols/compressed-air/receiver.d.ts +1 -0
  623. package/dist/src/workspace/graphics/symbols/compressed-air/treatment.d.ts +2 -0
  624. package/dist/src/workspace/graphics/symbols/definition.d.ts +115 -0
  625. package/dist/src/workspace/graphics/symbols/electrical/breaker.d.ts +2 -0
  626. package/dist/src/workspace/graphics/symbols/electrical/compensation.d.ts +1 -0
  627. package/dist/src/workspace/graphics/symbols/electrical/index.d.ts +5 -0
  628. package/dist/src/workspace/graphics/symbols/electrical/loads.d.ts +3 -0
  629. package/dist/src/workspace/graphics/symbols/electrical/machines.d.ts +3 -0
  630. package/dist/src/workspace/graphics/symbols/electrical/metering.d.ts +8 -0
  631. package/dist/src/workspace/graphics/symbols/electrical/presentation.d.ts +132 -0
  632. package/dist/src/workspace/graphics/symbols/electrical/renewables.d.ts +2 -0
  633. package/dist/src/workspace/graphics/symbols/electrical/storage.d.ts +2 -0
  634. package/dist/src/workspace/graphics/symbols/electrical/supply.d.ts +2 -0
  635. package/dist/src/workspace/graphics/symbols/electrical/switchgear.d.ts +61 -0
  636. package/dist/src/workspace/graphics/symbols/food/filling.d.ts +1 -0
  637. package/dist/src/workspace/graphics/symbols/food/index.d.ts +1 -0
  638. package/dist/src/workspace/graphics/symbols/food/vessel.d.ts +1 -0
  639. package/dist/src/workspace/graphics/symbols/fuel-gas/gas-detector.d.ts +1 -0
  640. package/dist/src/workspace/graphics/symbols/fuel-gas/index.d.ts +1 -0
  641. package/dist/src/workspace/graphics/symbols/handles.d.ts +6 -0
  642. package/dist/src/workspace/graphics/symbols/hvac/air-handling.d.ts +4 -0
  643. package/dist/src/workspace/graphics/symbols/hvac/air-section.d.ts +60 -0
  644. package/dist/src/workspace/graphics/symbols/hvac/air-terminals.d.ts +2 -0
  645. package/dist/src/workspace/graphics/symbols/hvac/air-treatment.d.ts +2 -0
  646. package/dist/src/workspace/graphics/symbols/hvac/circuit.d.ts +45 -0
  647. package/dist/src/workspace/graphics/symbols/hvac/cooling-plant.d.ts +2 -0
  648. package/dist/src/workspace/graphics/symbols/hvac/firing.d.ts +2 -0
  649. package/dist/src/workspace/graphics/symbols/hvac/hydronic.d.ts +5 -0
  650. package/dist/src/workspace/graphics/symbols/hvac/index.d.ts +2 -0
  651. package/dist/src/workspace/graphics/symbols/hvac/instruments.d.ts +5 -0
  652. package/dist/src/workspace/graphics/symbols/hvac/presentation.d.ts +162 -0
  653. package/dist/src/workspace/graphics/symbols/manufacturing/actuators.d.ts +20 -0
  654. package/dist/src/workspace/graphics/symbols/manufacturing/conveyor.d.ts +26 -0
  655. package/dist/src/workspace/graphics/symbols/manufacturing/index.d.ts +3 -0
  656. package/dist/src/workspace/graphics/symbols/manufacturing/indicators.d.ts +2 -0
  657. package/dist/src/workspace/graphics/symbols/manufacturing/stations.d.ts +3 -0
  658. package/dist/src/workspace/graphics/symbols/ports.d.ts +12 -0
  659. package/dist/src/workspace/graphics/symbols/preferences.d.ts +27 -0
  660. package/dist/src/workspace/graphics/symbols/preview.d.ts +8 -0
  661. package/dist/src/workspace/graphics/symbols/properties.d.ts +46 -0
  662. package/dist/src/workspace/graphics/symbols/provider.d.ts +12 -0
  663. package/dist/src/workspace/graphics/symbols/pump-status-icon.d.ts +5 -0
  664. package/dist/src/workspace/graphics/symbols/pump.d.ts +2 -0
  665. package/dist/src/workspace/graphics/symbols/quality.d.ts +63 -0
  666. package/dist/src/workspace/graphics/symbols/quarry/belt-scale.d.ts +1 -0
  667. package/dist/src/workspace/graphics/symbols/quarry/chute.d.ts +1 -0
  668. package/dist/src/workspace/graphics/symbols/quarry/crusher.d.ts +2 -0
  669. package/dist/src/workspace/graphics/symbols/quarry/diverter-gate.d.ts +2 -0
  670. package/dist/src/workspace/graphics/symbols/quarry/dust-collector.d.ts +1 -0
  671. package/dist/src/workspace/graphics/symbols/quarry/feeder.d.ts +1 -0
  672. package/dist/src/workspace/graphics/symbols/quarry/hopper.d.ts +1 -0
  673. package/dist/src/workspace/graphics/symbols/quarry/index.d.ts +1 -0
  674. package/dist/src/workspace/graphics/symbols/quarry/parts.d.ts +18 -0
  675. package/dist/src/workspace/graphics/symbols/quarry/screen.d.ts +2 -0
  676. package/dist/src/workspace/graphics/symbols/quarry/spray-suppression.d.ts +1 -0
  677. package/dist/src/workspace/graphics/symbols/quarry/stockpile.d.ts +1 -0
  678. package/dist/src/workspace/graphics/symbols/quarry/trommel.d.ts +1 -0
  679. package/dist/src/workspace/graphics/symbols/reading.d.ts +3 -0
  680. package/dist/src/workspace/graphics/symbols/render.d.ts +12 -0
  681. package/dist/src/workspace/graphics/symbols/reservoir.d.ts +2 -0
  682. package/dist/src/workspace/graphics/symbols/serialize.d.ts +7 -0
  683. package/dist/src/workspace/graphics/symbols/status.d.ts +47 -0
  684. package/dist/src/workspace/graphics/symbols/thermal/furnace.d.ts +28 -0
  685. package/dist/src/workspace/graphics/symbols/thermal/heater.d.ts +6 -0
  686. package/dist/src/workspace/graphics/symbols/thermal/index.d.ts +1 -0
  687. package/dist/src/workspace/graphics/symbols/thermal/kiln.d.ts +1 -0
  688. package/dist/src/workspace/graphics/symbols/upright.d.ts +68 -0
  689. package/dist/src/workspace/graphics/symbols/variant-field.d.ts +17 -0
  690. package/dist/src/workspace/graphics/symbols/variants.d.ts +30 -0
  691. package/dist/src/workspace/graphics/symbols/viewport.d.ts +43 -0
  692. package/dist/src/workspace/graphics/symbols/warehouse/agv.d.ts +4 -0
  693. package/dist/src/workspace/graphics/symbols/warehouse/cold-room.d.ts +2 -0
  694. package/dist/src/workspace/graphics/symbols/warehouse/cooling-unit.d.ts +19 -0
  695. package/dist/src/workspace/graphics/symbols/warehouse/door.d.ts +61 -0
  696. package/dist/src/workspace/graphics/symbols/warehouse/index.d.ts +1 -0
  697. package/dist/src/workspace/graphics/symbols/warehouse/loading-dock.d.ts +2 -0
  698. package/dist/src/workspace/graphics/symbols/warehouse/pallet.d.ts +2 -0
  699. package/dist/src/workspace/graphics/symbols/warehouse/rack.d.ts +25 -0
  700. package/dist/src/workspace/graphics/symbols/warehouse/stacker-crane.d.ts +12 -0
  701. package/dist/src/workspace/graphics/symbols/warehouse/storage-zone.d.ts +34 -0
  702. package/dist/src/workspace/graphics/symbols/waste/baler.d.ts +5 -0
  703. package/dist/src/workspace/graphics/symbols/waste/compactor.d.ts +1 -0
  704. package/dist/src/workspace/graphics/symbols/waste/container.d.ts +7 -0
  705. package/dist/src/workspace/graphics/symbols/waste/index.d.ts +2 -0
  706. package/dist/src/workspace/graphics/symbols/waste/parts.d.ts +32 -0
  707. package/dist/src/workspace/graphics/symbols/waste/separator.d.ts +1 -0
  708. package/dist/src/workspace/graphics/symbols/waste/shredder.d.ts +1 -0
  709. package/dist/src/workspace/graphics/symbols/waste/vehicle.d.ts +1 -0
  710. package/dist/src/workspace/graphics/symbols/waste/weighbridge.d.ts +1 -0
  711. package/dist/src/workspace/graphics/symbols/water/aeration.d.ts +8 -0
  712. package/dist/src/workspace/graphics/symbols/water/artwork.d.ts +42 -0
  713. package/dist/src/workspace/graphics/symbols/water/clarifier.d.ts +1 -0
  714. package/dist/src/workspace/graphics/symbols/water/disinfection.d.ts +1 -0
  715. package/dist/src/workspace/graphics/symbols/water/dosing.d.ts +30 -0
  716. package/dist/src/workspace/graphics/symbols/water/filter.d.ts +1 -0
  717. package/dist/src/workspace/graphics/symbols/water/index.d.ts +8 -0
  718. package/dist/src/workspace/graphics/symbols/water/instruments.d.ts +3 -0
  719. package/dist/src/workspace/graphics/symbols/water/pumps.d.ts +7 -0
  720. package/dist/src/workspace/graphics/symbols/water/tank.d.ts +1 -0
  721. package/dist/src/workspace/graphics/symbols/water/treatment-state.d.ts +15 -0
  722. package/dist/src/workspace/graphics/symbols/water/valves.d.ts +8 -0
  723. package/dist/src/workspace/graphics/symbols/well.d.ts +2 -0
  724. package/dist/src/workspace/graphics/toolbar.d.ts +58 -0
  725. package/dist/src/workspace/graphics/use-images.d.ts +13 -0
  726. package/dist/src/workspace/graphics/view-frame.d.ts +31 -0
  727. package/dist/src/workspace/graphics/viewport-passthrough.d.ts +8 -0
  728. package/dist/src/workspace/index-page.d.ts +3 -0
  729. package/dist/src/workspace/layout.d.ts +3 -0
  730. package/dist/src/workspace/live-changes.d.ts +16 -0
  731. package/dist/src/workspace/local-message-identity.d.ts +2 -0
  732. package/dist/src/workspace/local-setup-link.d.ts +16 -0
  733. package/dist/src/workspace/local-workspace-app.d.ts +21 -0
  734. package/dist/src/workspace/maps/auth-failure.d.ts +5 -0
  735. package/dist/src/workspace/maps/error-boundary.d.ts +21 -0
  736. package/dist/src/workspace/maps/lat-lng.d.ts +8 -0
  737. package/dist/src/workspace/maps/location-map-renderer.d.ts +10 -0
  738. package/dist/src/workspace/maps/location-map.d.ts +40 -0
  739. package/dist/src/workspace/maps/location-picker-renderer.d.ts +20 -0
  740. package/dist/src/workspace/maps/location-picker.d.ts +31 -0
  741. package/dist/src/workspace/maps/use-browser-config.d.ts +11 -0
  742. package/dist/src/workspace/maps/use-reverse-geocode.d.ts +15 -0
  743. package/dist/src/workspace/mobile-nav.d.ts +13 -0
  744. package/dist/src/workspace/mutations.d.ts +10634 -0
  745. package/dist/src/workspace/no-access.d.ts +1 -0
  746. package/dist/src/workspace/page-navigation.d.ts +67 -0
  747. package/dist/src/workspace/page-state/branch-path.d.ts +7 -0
  748. package/dist/src/workspace/page-state/context.d.ts +14 -0
  749. package/dist/src/workspace/page-state/dashboard-context.d.ts +37 -0
  750. package/dist/src/workspace/page-state/dashboard.d.ts +65 -0
  751. package/dist/src/workspace/page-state/model.d.ts +48 -0
  752. package/dist/src/workspace/page-state/parameters.d.ts +11 -0
  753. package/dist/src/workspace/page-state/report.d.ts +16 -0
  754. package/dist/src/workspace/page-state/store.d.ts +10 -0
  755. package/dist/src/workspace/parameters/defaults.d.ts +7 -0
  756. package/dist/src/workspace/parameters/display.d.ts +28 -0
  757. package/dist/src/workspace/parameters/distinct-names.d.ts +12 -0
  758. package/dist/src/workspace/parameters/errors.d.ts +15 -0
  759. package/dist/src/workspace/parameters/form/shared-fields.d.ts +49 -0
  760. package/dist/src/workspace/parameters/form/values.d.ts +33 -0
  761. package/dist/src/workspace/parameters/geo-value.d.ts +9 -0
  762. package/dist/src/workspace/parameters/icon.d.ts +8 -0
  763. package/dist/src/workspace/parameters/inventory-options.d.ts +9 -0
  764. package/dist/src/workspace/parameters/live/condition.d.ts +4 -0
  765. package/dist/src/workspace/parameters/live/control-button.d.ts +13 -0
  766. package/dist/src/workspace/parameters/live/controls.d.ts +14 -0
  767. package/dist/src/workspace/parameters/live/coordinator.d.ts +87 -0
  768. package/dist/src/workspace/parameters/live/deadline.d.ts +13 -0
  769. package/dist/src/workspace/parameters/live/diagnostic-copy.d.ts +26 -0
  770. package/dist/src/workspace/parameters/live/diagnostic-links.d.ts +5 -0
  771. package/dist/src/workspace/parameters/live/diagnostics.d.ts +9 -0
  772. package/dist/src/workspace/parameters/live/history-windows.d.ts +53 -0
  773. package/dist/src/workspace/parameters/live/metric.d.ts +29 -0
  774. package/dist/src/workspace/parameters/live/model.d.ts +133 -0
  775. package/dist/src/workspace/parameters/live/provider.d.ts +49 -0
  776. package/dist/src/workspace/parameters/live/read-once.d.ts +13 -0
  777. package/dist/src/workspace/parameters/live/stale-note.d.ts +8 -0
  778. package/dist/src/workspace/parameters/live/use-history.d.ts +30 -0
  779. package/dist/src/workspace/parameters/live/use-stored-history.d.ts +85 -0
  780. package/dist/src/workspace/parameters/live/value-display.d.ts +25 -0
  781. package/dist/src/workspace/parameters/live/value-editor.d.ts +24 -0
  782. package/dist/src/workspace/parameters/live/write-review-dialog.d.ts +41 -0
  783. package/dist/src/workspace/parameters/live/write-review-form.d.ts +18 -0
  784. package/dist/src/workspace/parameters/live/write-sequence-dialog.d.ts +80 -0
  785. package/dist/src/workspace/parameters/metadata.d.ts +37 -0
  786. package/dist/src/workspace/parameters/option-labels.d.ts +14 -0
  787. package/dist/src/workspace/parameters/picker/browser.d.ts +41 -0
  788. package/dist/src/workspace/parameters/picker/model.d.ts +91 -0
  789. package/dist/src/workspace/parameters/picker/picker.d.ts +380 -0
  790. package/dist/src/workspace/parameters/runtime-errors.d.ts +23 -0
  791. package/dist/src/workspace/parameters/source-fields.d.ts +22 -0
  792. package/dist/src/workspace/parameters/value/cells.d.ts +21 -0
  793. package/dist/src/workspace/parameters/value/edit-draft.d.ts +24 -0
  794. package/dist/src/workspace/parameters/value/reads.d.ts +54 -0
  795. package/dist/src/workspace/parameters/value/state.d.ts +96 -0
  796. package/dist/src/workspace/parameters/value/type/datetime-parts.d.ts +12 -0
  797. package/dist/src/workspace/parameters/value/type/fields.d.ts +5 -0
  798. package/dist/src/workspace/parameters/value/type/geo.d.ts +10 -0
  799. package/dist/src/workspace/parameters/value/type/int-repr.d.ts +9 -0
  800. package/dist/src/workspace/parameters/writability.d.ts +26 -0
  801. package/dist/src/workspace/pull-instructions.d.ts +4 -0
  802. package/dist/src/workspace/query-gate.d.ts +40 -0
  803. package/dist/src/workspace/reports/aggregate-fetch.d.ts +25 -0
  804. package/dist/src/workspace/reports/bar-legend.d.ts +12 -0
  805. package/dist/src/workspace/reports/bar-path.d.ts +25 -0
  806. package/dist/src/workspace/reports/cadence-fetch.d.ts +25 -0
  807. package/dist/src/workspace/reports/calendar/demand.d.ts +46 -0
  808. package/dist/src/workspace/reports/calendar/layout.d.ts +98 -0
  809. package/dist/src/workspace/reports/calendar/representation.d.ts +7 -0
  810. package/dist/src/workspace/reports/cell-title.d.ts +11 -0
  811. package/dist/src/workspace/reports/chart/axes.d.ts +17 -0
  812. package/dist/src/workspace/reports/chart/build.d.ts +208 -0
  813. package/dist/src/workspace/reports/chart/caches.d.ts +57 -0
  814. package/dist/src/workspace/reports/chart/colors.d.ts +17 -0
  815. package/dist/src/workspace/reports/chart/comment-gutter.d.ts +44 -0
  816. package/dist/src/workspace/reports/chart/demand.d.ts +50 -0
  817. package/dist/src/workspace/reports/chart/paint.d.ts +17 -0
  818. package/dist/src/workspace/reports/chart/pan-zoom.d.ts +19 -0
  819. package/dist/src/workspace/reports/chart/payload.d.ts +57 -0
  820. package/dist/src/workspace/reports/chart/plot-interactions.d.ts +13 -0
  821. package/dist/src/workspace/reports/chart/plot-tooltip.d.ts +10 -0
  822. package/dist/src/workspace/reports/chart/plot.d.ts +29 -0
  823. package/dist/src/workspace/reports/chart/realtime.d.ts +96 -0
  824. package/dist/src/workspace/reports/chart/representation.d.ts +40 -0
  825. package/dist/src/workspace/reports/chart/tooltip.d.ts +36 -0
  826. package/dist/src/workspace/reports/chart/use-realtime.d.ts +44 -0
  827. package/dist/src/workspace/reports/color/cascade.d.ts +3 -0
  828. package/dist/src/workspace/reports/color/css.d.ts +5 -0
  829. package/dist/src/workspace/reports/color/select.d.ts +11 -0
  830. package/dist/src/workspace/reports/comments/author.d.ts +2 -0
  831. package/dist/src/workspace/reports/comments/errors.d.ts +11 -0
  832. package/dist/src/workspace/reports/comments/footer.d.ts +1 -0
  833. package/dist/src/workspace/reports/comments/use-comments.d.ts +9 -0
  834. package/dist/src/workspace/reports/csv/build.d.ts +29 -0
  835. package/dist/src/workspace/reports/csv/columns.d.ts +18 -0
  836. package/dist/src/workspace/reports/csv/fetch.d.ts +29 -0
  837. package/dist/src/workspace/reports/csv/use-export.d.ts +7 -0
  838. package/dist/src/workspace/reports/data/context.d.ts +79 -0
  839. package/dist/src/workspace/reports/data/extent.d.ts +40 -0
  840. package/dist/src/workspace/reports/data/provider.d.ts +20 -0
  841. package/dist/src/workspace/reports/data/report-caches.d.ts +56 -0
  842. package/dist/src/workspace/reports/data/specs.d.ts +38 -0
  843. package/dist/src/workspace/reports/demand-cache.d.ts +76 -0
  844. package/dist/src/workspace/reports/element-size.d.ts +7 -0
  845. package/dist/src/workspace/reports/generated.d.ts +46 -0
  846. package/dist/src/workspace/reports/histogram/build.d.ts +1 -0
  847. package/dist/src/workspace/reports/histogram/demand.d.ts +26 -0
  848. package/dist/src/workspace/reports/histogram/plot.d.ts +42 -0
  849. package/dist/src/workspace/reports/histogram/representation.d.ts +8 -0
  850. package/dist/src/workspace/reports/histogram/slots.d.ts +19 -0
  851. package/dist/src/workspace/reports/hourly-matrix/demand.d.ts +28 -0
  852. package/dist/src/workspace/reports/hourly-matrix/layout.d.ts +36 -0
  853. package/dist/src/workspace/reports/hourly-matrix/model.d.ts +66 -0
  854. package/dist/src/workspace/reports/hourly-matrix/representation.d.ts +7 -0
  855. package/dist/src/workspace/reports/html/build.d.ts +57 -0
  856. package/dist/src/workspace/reports/html/cache-clone.d.ts +36 -0
  857. package/dist/src/workspace/reports/html/calendar.d.ts +15 -0
  858. package/dist/src/workspace/reports/html/comments.d.ts +13 -0
  859. package/dist/src/workspace/reports/html/css.d.ts +2 -0
  860. package/dist/src/workspace/reports/html/document.d.ts +5 -0
  861. package/dist/src/workspace/reports/html/escape.d.ts +6 -0
  862. package/dist/src/workspace/reports/html/matrix.d.ts +13 -0
  863. package/dist/src/workspace/reports/html/mounted.d.ts +19 -0
  864. package/dist/src/workspace/reports/html/png.d.ts +39 -0
  865. package/dist/src/workspace/reports/html/ready.d.ts +56 -0
  866. package/dist/src/workspace/reports/html/table.d.ts +3 -0
  867. package/dist/src/workspace/reports/html/use-render.d.ts +8 -0
  868. package/dist/src/workspace/reports/html/widgets.d.ts +31 -0
  869. package/dist/src/workspace/reports/page.d.ts +4 -0
  870. package/dist/src/workspace/reports/preset/errors.d.ts +5 -0
  871. package/dist/src/workspace/reports/preset/form-helpers.d.ts +65 -0
  872. package/dist/src/workspace/reports/preset/submit.d.ts +43 -0
  873. package/dist/src/workspace/reports/quick-report.d.ts +17 -0
  874. package/dist/src/workspace/reports/readings-client.d.ts +23 -0
  875. package/dist/src/workspace/reports/runtime-chrome.d.ts +15 -0
  876. package/dist/src/workspace/reports/sankey/demand.d.ts +47 -0
  877. package/dist/src/workspace/reports/sankey/graph.d.ts +28 -0
  878. package/dist/src/workspace/reports/sankey/layout.d.ts +80 -0
  879. package/dist/src/workspace/reports/sankey/representation.d.ts +7 -0
  880. package/dist/src/workspace/reports/sankey/use-caches.d.ts +16 -0
  881. package/dist/src/workspace/reports/session/init.d.ts +9 -0
  882. package/dist/src/workspace/reports/session/storage.d.ts +24 -0
  883. package/dist/src/workspace/reports/state-duration/demand.d.ts +39 -0
  884. package/dist/src/workspace/reports/state-duration/reduce.d.ts +27 -0
  885. package/dist/src/workspace/reports/state-duration/representation.d.ts +7 -0
  886. package/dist/src/workspace/reports/state-duration/use-caches.d.ts +15 -0
  887. package/dist/src/workspace/reports/table/cache-fetch.d.ts +8 -0
  888. package/dist/src/workspace/reports/table/chunk.d.ts +31 -0
  889. package/dist/src/workspace/reports/table/demand.d.ts +83 -0
  890. package/dist/src/workspace/reports/table/fetch.d.ts +42 -0
  891. package/dist/src/workspace/reports/table/format.d.ts +7 -0
  892. package/dist/src/workspace/reports/table/representation.d.ts +10 -0
  893. package/dist/src/workspace/reports/table/rows.d.ts +31 -0
  894. package/dist/src/workspace/reports/table/snapshot.d.ts +40 -0
  895. package/dist/src/workspace/reports/table/totals.d.ts +4 -0
  896. package/dist/src/workspace/reports/time-buckets/build.d.ts +40 -0
  897. package/dist/src/workspace/reports/time-buckets/demand.d.ts +52 -0
  898. package/dist/src/workspace/reports/time-buckets/navigate.d.ts +26 -0
  899. package/dist/src/workspace/reports/time-buckets/plot.d.ts +58 -0
  900. package/dist/src/workspace/reports/time-buckets/representation.d.ts +8 -0
  901. package/dist/src/workspace/reports/time-buckets/slots.d.ts +23 -0
  902. package/dist/src/workspace/reports/time-nav.d.ts +1 -0
  903. package/dist/src/workspace/reports/use-demand-cache.d.ts +29 -0
  904. package/dist/src/workspace/reports/use-quick-report.d.ts +45 -0
  905. package/dist/src/workspace/reports/view.d.ts +6 -0
  906. package/dist/src/workspace/routes.d.ts +23 -0
  907. package/dist/src/workspace/setup/automations/alarm-rule-dialog.d.ts +7 -0
  908. package/dist/src/workspace/setup/automations/alarm-rule-lists.d.ts +61 -0
  909. package/dist/src/workspace/setup/automations/alarm-rules-page.d.ts +4 -0
  910. package/dist/src/workspace/setup/automations/document.d.ts +39 -0
  911. package/dist/src/workspace/setup/automations/dry-run.d.ts +12 -0
  912. package/dist/src/workspace/setup/automations/editor-form.d.ts +22 -0
  913. package/dist/src/workspace/setup/automations/editor-page.d.ts +14 -0
  914. package/dist/src/workspace/setup/automations/editor-tab.d.ts +6 -0
  915. package/dist/src/workspace/setup/automations/entity-controls.d.ts +22 -0
  916. package/dist/src/workspace/setup/automations/history.d.ts +15 -0
  917. package/dist/src/workspace/setup/automations/list-page.d.ts +28 -0
  918. package/dist/src/workspace/setup/automations/starter-dialog.d.ts +10 -0
  919. package/dist/src/workspace/setup/automations/starter-handoff.d.ts +17 -0
  920. package/dist/src/workspace/setup/base-revision.d.ts +64 -0
  921. package/dist/src/workspace/setup/breadcrumbs.d.ts +10 -0
  922. package/dist/src/workspace/setup/catalog-list.d.ts +21 -0
  923. package/dist/src/workspace/setup/dashboards-order.d.ts +10 -0
  924. package/dist/src/workspace/setup/dashboards-page.d.ts +24 -0
  925. package/dist/src/workspace/setup/dashboards-reorder-queue.d.ts +13 -0
  926. package/dist/src/workspace/setup/dashboards-sortable-list.d.ts +6 -0
  927. package/dist/src/workspace/setup/endpoints/connection-error.d.ts +3 -0
  928. package/dist/src/workspace/setup/endpoints/connection-indicator.d.ts +4 -0
  929. package/dist/src/workspace/setup/endpoints/device-log-clock.d.ts +7 -0
  930. package/dist/src/workspace/setup/endpoints/display.d.ts +12 -0
  931. package/dist/src/workspace/setup/endpoints/edit-dialog.d.ts +5 -0
  932. package/dist/src/workspace/setup/endpoints/enabled-switch.d.ts +10 -0
  933. package/dist/src/workspace/setup/endpoints/form-problem.d.ts +5 -0
  934. package/dist/src/workspace/setup/endpoints/page.d.ts +11 -0
  935. package/dist/src/workspace/setup/endpoints/presence-challenge.d.ts +34 -0
  936. package/dist/src/workspace/setup/endpoints/presence-code.d.ts +6 -0
  937. package/dist/src/workspace/setup/endpoints/programs/deploy-status-bar.d.ts +13 -0
  938. package/dist/src/workspace/setup/endpoints/programs/device-log.d.ts +15 -0
  939. package/dist/src/workspace/setup/endpoints/programs/dialogs.d.ts +16 -0
  940. package/dist/src/workspace/setup/endpoints/programs/live-state-pane.d.ts +7 -0
  941. package/dist/src/workspace/setup/endpoints/programs/program-editor.d.ts +79 -0
  942. package/dist/src/workspace/setup/endpoints/programs/programs-tab.d.ts +14 -0
  943. package/dist/src/workspace/setup/endpoints/programs/settings-dialog.d.ts +9 -0
  944. package/dist/src/workspace/setup/endpoints/programs/starter-dialog.d.ts +17 -0
  945. package/dist/src/workspace/setup/endpoints/programs/tasks-table.d.ts +5 -0
  946. package/dist/src/workspace/setup/endpoints/sharing.d.ts +9 -0
  947. package/dist/src/workspace/setup/endpoints/status-connection.d.ts +8 -0
  948. package/dist/src/workspace/setup/endpoints/status-device-ui-progress.d.ts +9 -0
  949. package/dist/src/workspace/setup/endpoints/status-device-ui.d.ts +8 -0
  950. package/dist/src/workspace/setup/endpoints/status-page.d.ts +14 -0
  951. package/dist/src/workspace/setup/endpoints/status-recorded.d.ts +13 -0
  952. package/dist/src/workspace/setup/endpoints/status-tab.d.ts +12 -0
  953. package/dist/src/workspace/setup/endpoints/wireguard-docs.d.ts +11 -0
  954. package/dist/src/workspace/setup/files/errors.d.ts +1 -0
  955. package/dist/src/workspace/setup/files/http.d.ts +21 -0
  956. package/dist/src/workspace/setup/files/page.d.ts +3 -0
  957. package/dist/src/workspace/setup/menu.d.ts +14 -0
  958. package/dist/src/workspace/setup/nav.d.ts +11 -0
  959. package/dist/src/workspace/setup/parameters/dialogs.d.ts +32 -0
  960. package/dist/src/workspace/setup/parameters/edit/create-branch-form.d.ts +10 -0
  961. package/dist/src/workspace/setup/parameters/edit/dialog-body.d.ts +13 -0
  962. package/dist/src/workspace/setup/parameters/edit/form.d.ts +22 -0
  963. package/dist/src/workspace/setup/parameters/page.d.ts +3 -0
  964. package/dist/src/workspace/setup/parameters/recorded.d.ts +14 -0
  965. package/dist/src/workspace/setup/parameters/selection.d.ts +45 -0
  966. package/dist/src/workspace/setup/parameters/stamp-from-template-form.d.ts +10 -0
  967. package/dist/src/workspace/setup/parameters/toolbar.d.ts +32 -0
  968. package/dist/src/workspace/setup/parameters/tree/expand.d.ts +10 -0
  969. package/dist/src/workspace/setup/parameters/tree/model.d.ts +61 -0
  970. package/dist/src/workspace/setup/parameters/tree/rows.d.ts +38 -0
  971. package/dist/src/workspace/setup/parameters/tree/storage.d.ts +13 -0
  972. package/dist/src/workspace/setup/parameters/use-tree-selection.d.ts +21 -0
  973. package/dist/src/workspace/setup/parameters/use-tree-view.d.ts +22 -0
  974. package/dist/src/workspace/setup/report/add-parameters-dialog.d.ts +8 -0
  975. package/dist/src/workspace/setup/report/calendar-editor.d.ts +9 -0
  976. package/dist/src/workspace/setup/report/chart-editor.d.ts +14 -0
  977. package/dist/src/workspace/setup/report/edit/confirm-removal-dialog.d.ts +9 -0
  978. package/dist/src/workspace/setup/report/edit/dialog-body.d.ts +10 -0
  979. package/dist/src/workspace/setup/report/edit/form.d.ts +14 -0
  980. package/dist/src/workspace/setup/report/edit/representations-section.d.ts +11 -0
  981. package/dist/src/workspace/setup/report/edit/sections.d.ts +23 -0
  982. package/dist/src/workspace/setup/report/edit/state.d.ts +29 -0
  983. package/dist/src/workspace/setup/report/foldable-item-card.d.ts +47 -0
  984. package/dist/src/workspace/setup/report/histogram-editor.d.ts +9 -0
  985. package/dist/src/workspace/setup/report/hourly-matrix-editor.d.ts +9 -0
  986. package/dist/src/workspace/setup/report/includes-literal.d.ts +1 -0
  987. package/dist/src/workspace/setup/report/layout-editor.d.ts +6 -0
  988. package/dist/src/workspace/setup/report/number-draft-input.d.ts +23 -0
  989. package/dist/src/workspace/setup/report/page.d.ts +3 -0
  990. package/dist/src/workspace/setup/report/sankey-editor.d.ts +9 -0
  991. package/dist/src/workspace/setup/report/state-duration-editor.d.ts +9 -0
  992. package/dist/src/workspace/setup/report/table-editor.d.ts +9 -0
  993. package/dist/src/workspace/setup/report/time-buckets-editor.d.ts +9 -0
  994. package/dist/src/workspace/setup/route/dialog.d.ts +33 -0
  995. package/dist/src/workspace/setup/route/dialogs.d.ts +41 -0
  996. package/dist/src/workspace/setup/sections.d.ts +17 -0
  997. package/dist/src/workspace/setup/starters/starter-fields.d.ts +45 -0
  998. package/dist/src/workspace/setup/starters/starter-form.d.ts +50 -0
  999. package/dist/src/workspace/setup/storage/dialogs.d.ts +77 -0
  1000. package/dist/src/workspace/setup/storage/format.d.ts +6 -0
  1001. package/dist/src/workspace/setup/storage/page.d.ts +3 -0
  1002. package/dist/src/workspace/setup/storage/retention-note.d.ts +11 -0
  1003. package/dist/src/workspace/setup/storage/retention.d.ts +21 -0
  1004. package/dist/src/workspace/shell.d.ts +21 -0
  1005. package/dist/src/workspace/sidebar-nav-link.d.ts +13 -0
  1006. package/dist/src/workspace/suspended.d.ts +8 -0
  1007. package/dist/starter-fields-BRLX0z-v.js +586 -0
  1008. package/dist/starter-handoff-BA3ucMKL.js +19 -0
  1009. package/dist/status-page-DAHiKM9P.js +3286 -0
  1010. package/dist/styles-reference.css +54 -0
  1011. package/dist/styles.css +2 -0
  1012. package/dist/switch-BqD0RH_G.js +18 -0
  1013. package/dist/table-Q2-voLuw.js +65 -0
  1014. package/dist/tabs-CSIucYFP.js +57 -0
  1015. package/dist/theme-provider-BkRohQFU.js +61 -0
  1016. package/dist/toggle-group-9Bs0Mm3r.js +82 -0
  1017. package/dist/trpc-CvJUuUXp.js +153 -0
  1018. package/dist/ui.js +2174 -0
  1019. package/dist/uk-CwpJAxmx.js +4578 -0
  1020. package/dist/utils-CX-Pz5p6.js +8 -0
  1021. package/dist/wireguard-docs-AfU6NzTL.js +81 -0
  1022. package/dist/writability-BuH-spxv.js +57 -0
  1023. package/package.json +149 -3
@@ -0,0 +1,1935 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { r as t } from "./trpc-CvJUuUXp.js";
3
+ import { f as n, h as r, m as i, n as a } from "./i18n-BgzakKoC.js";
4
+ import { B as o, L as s, S as c, Y as l, a as u, at as d, b as f, d as p, i as m, n as h, t as g, x as _, y as v, z as y } from "./mutation-form-validators-BNz5bsv1.js";
5
+ import { A as b, B as x, H as S, L as C, M as w, V as T, Y as E, c as D, d as O, f as k, g as A, j, t as M } from "./spinner-C-HPNxOc.js";
6
+ import { t as N } from "./button-6SxPBYMz.js";
7
+ import { a as P, i as F, l as I, o as L, r as R, t as z } from "./dialog-BIhQXcZC.js";
8
+ import { n as ee } from "./skeleton-6yk8Tdh5.js";
9
+ import { a as te, s as ne } from "./context-u9KJQmdB.js";
10
+ import { n as re } from "./api-error-9rQmUN5L.js";
11
+ import { _ as ie, a as B, c as ae, d as V, f as oe, h as se, i as H, l as U, m as ce, n as le, o as ue, p as de, r as fe, s as pe, t as me, u as W, x as he } from "./quick-report-CUVJnbKP.js";
12
+ import { r as ge } from "./writability-BuH-spxv.js";
13
+ import { t as _e } from "./switch-BqD0RH_G.js";
14
+ import { c as ve } from "./mutations-THtGG6Ai.js";
15
+ import { t as ye } from "./copyable-id-DYGiAcnq.js";
16
+ import { n as be } from "./icon-D-pR9htW.js";
17
+ import { a as G, h as xe, r as Se, t as Ce } from "./dropdown-menu-DSzbBq3v.js";
18
+ import { t as we } from "./page-header-RB2YFWlE.js";
19
+ import { i as Te, r as Ee, t as De } from "./tabs-CSIucYFP.js";
20
+ import { t as Oe } from "./breadcrumbs-0cjsV2cq.js";
21
+ import { r as ke, t as Ae } from "./retention-note-CHhA6gjY.js";
22
+ import { t as je } from "./model-B8gGi4OK.js";
23
+ import { c as Me, d as Ne, f as Pe, h as Fe, l as Ie, m as Le, n as Re, o as ze, p as Be, s as Ve, u as He } from "./dialogs-B6BRnf3Q.js";
24
+ import { createContext as Ue, createElement as We, memo as Ge, useCallback as K, useContext as Ke, useEffect as q, useMemo as J, useRef as qe, useState as Y, useSyncExternalStore as Je } from "react";
25
+ import { Fragment as X, jsx as Z, jsxs as Q } from "react/jsx-runtime";
26
+ import { ChartLineIcon as Ye, ChevronDownIcon as Xe, ChevronRightIcon as Ze, ChevronsDownUpIcon as Qe, ChevronsUpDownIcon as $e, ClockIcon as et, EraserIcon as tt, HistoryIcon as nt, ListTreeIcon as rt, MoreHorizontalIcon as it, PlusIcon as at, Trash2Icon as ot } from "lucide-react";
27
+ import { formatAppDateTime as st, resolveLocalized as $ } from "@overvis/hmi-shared";
28
+ import { STORAGE_MAX_TARGETS as ct, canManageWorkspace as lt } from "@overvis/hmi-shared/workspace";
29
+ import { parameterBranchNameFormSchema as ut, parameterTemplateStampFormSchema as dt, parameterTemplateStampFormToInput as ft, parseParameterUnitIdString as pt } from "@overvis/hmi-shared/parameter";
30
+ import { REPORT_PRESET_LIST_BY_PARAMETER_IDS_MAX as mt } from "@overvis/hmi-shared/report";
31
+ import { Link as ht, useNavigate as gt } from "@tanstack/react-router";
32
+ //#region src/workspace/page-state/branch-path.ts
33
+ function _t(e) {
34
+ let t = [], n = /* @__PURE__ */ new Set(), r = e.branchId;
35
+ for (; r != null && !n.has(r);) {
36
+ n.add(r);
37
+ let i = e.branchesById.get(r);
38
+ if (i == null) break;
39
+ t.push($(i.name, e.locale)), r = i.parentId;
40
+ }
41
+ return t.reverse();
42
+ }
43
+ //#endregion
44
+ //#region src/workspace/page-state/parameters.ts
45
+ function vt(e) {
46
+ let t = new Map(e.parameters.map((e) => [e.id, e])), n = new Map(e.branches.map((e) => [e.id, e])), r = [];
47
+ for (let i of e.selection.selectedParamIds) {
48
+ let a = t.get(i);
49
+ a != null && r.push({
50
+ id: a.id,
51
+ name: $(a.name, e.locale),
52
+ units: je(a.units, e.locale),
53
+ valueType: a.valueType.name,
54
+ branchPath: _t({
55
+ branchId: a.branchId,
56
+ branchesById: n,
57
+ locale: e.locale
58
+ })
59
+ });
60
+ }
61
+ let i = [];
62
+ for (let t of e.selection.selectedBranchIds) {
63
+ let r = n.get(t);
64
+ r != null && i.push({
65
+ id: r.id,
66
+ name: $(r.name, e.locale)
67
+ });
68
+ }
69
+ return {
70
+ kind: "parameters",
71
+ selectedParameters: r,
72
+ selectedBranches: i
73
+ };
74
+ }
75
+ //#endregion
76
+ //#region src/workspace/parameters/value/reads.tsx
77
+ var yt = 1e3;
78
+ function bt() {
79
+ let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
80
+ function n(n) {
81
+ if (n === e) return;
82
+ let r = e;
83
+ e = n;
84
+ let i = /* @__PURE__ */ new Set();
85
+ for (let [e, t] of n) r.get(e) !== t && i.add(e);
86
+ for (let e of r.keys()) n.has(e) || i.add(e);
87
+ for (let e of i) {
88
+ let n = t.get(e);
89
+ if (n != null) for (let e of n) e();
90
+ }
91
+ }
92
+ return {
93
+ get: (t) => e.get(t),
94
+ subscribe(e, n) {
95
+ let r = t.get(e);
96
+ return r ?? (r = /* @__PURE__ */ new Set(), t.set(e, r)), r.add(n), () => {
97
+ r.delete(n), r.size === 0 && t.delete(e);
98
+ };
99
+ },
100
+ update: (t) => {
101
+ n(t(e));
102
+ }
103
+ };
104
+ }
105
+ var xt = Ue(null);
106
+ function St({ store: e, children: t }) {
107
+ return We(xt.Provider, { value: e }, t);
108
+ }
109
+ var Ct = Ue(null);
110
+ function wt({ value: e, children: t }) {
111
+ return We(Ct.Provider, { value: e }, t);
112
+ }
113
+ var Tt = Ue("repr");
114
+ function Et({ mode: e, children: t }) {
115
+ return We(Tt.Provider, { value: e }, t);
116
+ }
117
+ function Dt() {
118
+ return Ke(Tt);
119
+ }
120
+ function Ot(e, t) {
121
+ let [n, r] = Y(!1), [i, s] = Y(null), [c, l] = Y(() => e.getSnapshot().selectedParamIds), [u] = Y(bt), d = o({
122
+ parameterIds: J(() => Be(c, t), [t, c]),
123
+ intervalMs: yt,
124
+ enabled: n
125
+ }), f = y();
126
+ q(() => e.subscribe(() => {
127
+ let t = e.getSnapshot().selectedParamIds;
128
+ l(t), t.size === 0 && r(!1);
129
+ }), [e]), q(() => {
130
+ u.update((e) => {
131
+ let t = !1, n = new Map(e);
132
+ for (let [r, i] of d.states) {
133
+ let a = de(e.get(r), i);
134
+ a != null && a !== e.get(r) && (n.set(r, a), t = !0);
135
+ }
136
+ return t ? n : e;
137
+ });
138
+ }, [d.states, u]);
139
+ let p = K(() => {
140
+ s(null);
141
+ }, []), m = K((e) => {
142
+ s(e);
143
+ }, []), h = a(), g = K((e, t) => {
144
+ s(null), f.writeValues({ items: [{
145
+ paramId: e,
146
+ ...t
147
+ }] }).then((t) => {
148
+ let n = t.results[e];
149
+ if (n?.status !== "error") return;
150
+ let r = "reason" in n.error ? n.error.reason : void 0, i = "params" in n.error ? n.error.params : void 0;
151
+ h.error(he({
152
+ code: n.error.code,
153
+ ...r == null ? {} : { reason: r },
154
+ ...i == null ? {} : { params: i }
155
+ }));
156
+ }).catch((e) => {
157
+ h.error(re(e));
158
+ });
159
+ }, [f, h]), _ = K((e) => {
160
+ e && c.size === 0 || (e && s(null), r(e));
161
+ }, [c.size]), v = K((e) => {
162
+ e === 0 && r(!1);
163
+ }, []), b = K((e) => {
164
+ s(null);
165
+ let n = Be(new Set(e), t);
166
+ f.refreshValues(n.length > 0 ? n : e);
167
+ }, [f, t]);
168
+ return {
169
+ live: n,
170
+ setLiveEnabled: _,
171
+ clearParamSelectionSideEffects: v,
172
+ paramValueStore: u,
173
+ readPending: d.reading,
174
+ anySaving: d.saving,
175
+ runRead: b,
176
+ editingParamId: i,
177
+ startEdit: m,
178
+ cancelEdit: p,
179
+ commitWrite: g
180
+ };
181
+ }
182
+ //#endregion
183
+ //#region src/workspace/setup/parameters/dialogs.tsx
184
+ function kt({ workspaceId: e, dialog: t, onCancel: n, onDone: r }) {
185
+ let a = i(), { createBranch: o, updateBranch: s } = ve(e), c = u({
186
+ defaultValues: { name: t.mode === "rename" ? t.name : "" },
187
+ validators: g({
188
+ schema: ut,
189
+ submit: async (n) => {
190
+ let r = n.name.trim();
191
+ return t.mode === "rename" ? await s.mutateAsync({
192
+ id: t.branchId,
193
+ name: r,
194
+ ...t.revision === void 0 ? {} : { baseRevision: t.revision }
195
+ }) : t.mode === "create-child" ? await o.mutateAsync({
196
+ parentId: t.parentId,
197
+ name: r
198
+ }) : await o.mutateAsync({
199
+ workspaceId: e,
200
+ parentId: null,
201
+ name: r
202
+ }), null;
203
+ },
204
+ mapError: (e, t) => m(e, t, { codeFields: ke })
205
+ }),
206
+ onSubmitInvalid: p,
207
+ onSubmit: () => {
208
+ r(t.mode);
209
+ }
210
+ });
211
+ return /* @__PURE__ */ Z(c.AppForm, { children: /* @__PURE__ */ Q(c.FormRoot, {
212
+ layout: "dialog",
213
+ children: [
214
+ /* @__PURE__ */ Q(L, { children: [/* @__PURE__ */ Z(I, { children: t.mode === "rename" ? a("parameter_rename_branch") : t.mode === "create-child" ? a("parameter_create_child_branch_title") : a("parameter_create_root_branch_title") }), t.mode === "rename" ? /* @__PURE__ */ Z(ye, { id: t.branchId }) : null] }),
215
+ /* @__PURE__ */ Q(T, { children: [/* @__PURE__ */ Z(c.AppField, {
216
+ name: "name",
217
+ children: (e) => /* @__PURE__ */ Z(e.TextField, {
218
+ label: a("parameter_branch_field_name"),
219
+ id: "parameter-branch-name",
220
+ autoFocus: !0
221
+ })
222
+ }), t.mode === "rename" ? /* @__PURE__ */ Z(Ae, {
223
+ workspaceId: e,
224
+ target: {
225
+ kind: "branch",
226
+ id: t.branchId
227
+ }
228
+ }) : null] }),
229
+ /* @__PURE__ */ Q(P, { children: [/* @__PURE__ */ Z(N, {
230
+ type: "button",
231
+ variant: "outline",
232
+ onClick: () => {
233
+ n();
234
+ },
235
+ children: a("action_cancel")
236
+ }), /* @__PURE__ */ Z(c.SubmitButton, {
237
+ label: t.mode === "rename" ? a("parameter_rename_branch_submit") : a("parameter_create_branch_submit"),
238
+ pendingLabel: t.mode === "rename" ? a("action_saving") : a("action_creating")
239
+ })] })
240
+ ]
241
+ }) });
242
+ }
243
+ function At(e, t) {
244
+ return Object.fromEntries(e.flatMap((e) => {
245
+ let n = t.get(e);
246
+ return n === void 0 ? [] : [[e, n]];
247
+ }));
248
+ }
249
+ function jt({ workspaceId: e, paramIds: n, branchIds: a, subtreeByBranchId: o, revisions: s, onCancel: c, onDeleted: l }) {
250
+ let d = i(), f = r(), [h, _] = Y(!1), v = ve(e).removeSelection, [y] = Y(() => ({
251
+ paramBases: At(n, s.params),
252
+ branchBases: At(a, s.branches)
253
+ })), { paramCount: b, branchCount: x } = J(() => Ne(n, a, o), [
254
+ n,
255
+ a,
256
+ o
257
+ ]), S = J(() => Pe(n, a, o), [
258
+ n,
259
+ a,
260
+ o
261
+ ]), C = S.length > mt, w = S.length > 0 && !C, T = t.report.preset.listByParameterIds.useQuery({
262
+ workspaceId: e,
263
+ parameterIds: w ? S : []
264
+ }, {
265
+ enabled: w,
266
+ staleTime: 0,
267
+ refetchOnMount: "always"
268
+ }), E = w && T.fetchStatus === "paused", D = T.data == null, O = w && (T.isPending || E && D || T.isFetching && D), k = w && T.isError && !T.isFetching && !E, A = k || E && D, j = C ? [] : T.data?.reportPresets ?? [], M = S.length === 0 || w && !O && !k && !h, R = u({
269
+ defaultValues: {},
270
+ validators: g({
271
+ submit: async () => (await v.mutateAsync({
272
+ paramIds: n,
273
+ branchIds: a,
274
+ ...y
275
+ }), null),
276
+ mapError: (e, t) => m(e, t, { codeFields: ke })
277
+ }),
278
+ onSubmitInvalid: p,
279
+ onSubmit: () => {
280
+ l();
281
+ }
282
+ });
283
+ return /* @__PURE__ */ Z(R.AppForm, { children: /* @__PURE__ */ Q(R.FormRoot, {
284
+ layout: "dialog",
285
+ children: [
286
+ /* @__PURE__ */ Q(L, { children: [/* @__PURE__ */ Z(I, { children: d("parameter_delete_title") }), /* @__PURE__ */ Z(F, { children: d("parameter_delete_description", {
287
+ params: String(b),
288
+ branches: String(x)
289
+ }) })] }),
290
+ O ? /* @__PURE__ */ Z("p", {
291
+ className: "text-sm text-muted-foreground",
292
+ children: d("parameter_delete_reports_checking")
293
+ }) : null,
294
+ C ? /* @__PURE__ */ Z("p", {
295
+ className: "text-sm",
296
+ children: d("parameter_delete_reports_over_cap")
297
+ }) : null,
298
+ A ? /* @__PURE__ */ Q("div", {
299
+ className: "flex flex-col items-start gap-2",
300
+ children: [k ? /* @__PURE__ */ Z("p", {
301
+ className: "text-sm text-destructive",
302
+ role: "alert",
303
+ children: d("parameter_delete_reports_error")
304
+ }) : null, /* @__PURE__ */ Z(N, {
305
+ type: "button",
306
+ variant: "outline",
307
+ size: "sm",
308
+ disabled: h,
309
+ onClick: () => {
310
+ _(!0), T.refetch().finally(() => {
311
+ _(!1);
312
+ });
313
+ },
314
+ children: d("parameter_delete_reports_retry")
315
+ })]
316
+ }) : null,
317
+ j.length > 0 ? /* @__PURE__ */ Q("div", {
318
+ className: "flex flex-col gap-2",
319
+ children: [/* @__PURE__ */ Z("p", {
320
+ className: "text-sm",
321
+ children: d("parameter_delete_reports_will_lose")
322
+ }), /* @__PURE__ */ Z("ul", {
323
+ className: "max-h-40 overflow-y-auto text-sm",
324
+ children: j.map((e) => /* @__PURE__ */ Z("li", { children: $(e.title, f) }, e.id))
325
+ })]
326
+ }) : null,
327
+ /* @__PURE__ */ Q(P, { children: [/* @__PURE__ */ Z(N, {
328
+ type: "button",
329
+ variant: "outline",
330
+ onClick: () => {
331
+ c();
332
+ },
333
+ children: d("action_cancel")
334
+ }), /* @__PURE__ */ Z(R.SubmitButton, {
335
+ label: d("parameter_delete_action"),
336
+ pendingLabel: d("action_deleting"),
337
+ variant: "destructive",
338
+ disabled: !M
339
+ })] })
340
+ ]
341
+ }) });
342
+ }
343
+ //#endregion
344
+ //#region src/workspace/setup/parameters/tree/expand.ts
345
+ function Mt(e) {
346
+ let t = new Set(e.expanded);
347
+ if (e.shiftKey) {
348
+ let n = e.subtreeBranchIds ?? [e.branchId];
349
+ for (let r of n) e.visuallyOpen ? t.delete(r) : t.add(r);
350
+ } else e.visuallyOpen ? t.delete(e.branchId) : t.add(e.branchId);
351
+ return t;
352
+ }
353
+ function Nt(e, t) {
354
+ if (e.size !== t.size) return !1;
355
+ for (let n of e) if (!t.has(n)) return !1;
356
+ return !0;
357
+ }
358
+ //#endregion
359
+ //#region src/workspace/setup/parameters/selection.tsx
360
+ function Pt(e) {
361
+ if (e != null) for (let t of e) t();
362
+ }
363
+ function Ft(e, t, n) {
364
+ let r = e.get(t) ?? /* @__PURE__ */ new Set();
365
+ return e.set(t, r), r.add(n), () => {
366
+ r.delete(n), r.size === 0 && e.delete(t);
367
+ };
368
+ }
369
+ function It(e) {
370
+ let t = {
371
+ selectedParamIds: new Set(e?.selectedParamIds ?? []),
372
+ selectedBranchIds: new Set(e?.selectedBranchIds ?? []),
373
+ checkStateByBranchId: /* @__PURE__ */ new Map()
374
+ }, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
375
+ return {
376
+ getSnapshot() {
377
+ return t;
378
+ },
379
+ getParamSelected(e) {
380
+ return t.selectedParamIds.has(e);
381
+ },
382
+ getBranchCheck(e) {
383
+ return t.checkStateByBranchId.get(e) ?? !1;
384
+ },
385
+ subscribe(e) {
386
+ return n.add(e), () => {
387
+ n.delete(e);
388
+ };
389
+ },
390
+ subscribeParam: (e, t) => Ft(r, e, t),
391
+ subscribeBranch: (e, t) => Ft(i, e, t),
392
+ commit(e) {
393
+ let a = t, o = [];
394
+ for (let t of e.selectedParamIds) a.selectedParamIds.has(t) || o.push(t);
395
+ for (let t of a.selectedParamIds) e.selectedParamIds.has(t) || o.push(t);
396
+ let s = !Nt(e.selectedBranchIds, a.selectedBranchIds), c = [], l = /* @__PURE__ */ new Set([...a.checkStateByBranchId.keys(), ...e.checkStateByBranchId.keys()]);
397
+ for (let t of l) (a.checkStateByBranchId.get(t) ?? !1) !== (e.checkStateByBranchId.get(t) ?? !1) && c.push(t);
398
+ if (o.length === 0 && c.length === 0 && !s) return !1;
399
+ t = e;
400
+ for (let e of o) Pt(r.get(e));
401
+ for (let e of c) Pt(i.get(e));
402
+ return Pt(n), !0;
403
+ }
404
+ };
405
+ }
406
+ var Lt = Ue(null);
407
+ function Rt({ store: e, children: t }) {
408
+ return We(Lt.Provider, { value: e }, t);
409
+ }
410
+ function zt() {
411
+ let e = Ke(Lt);
412
+ if (e == null) throw Error("ParamTreeSelectionProvider is required");
413
+ return e;
414
+ }
415
+ function Bt({ paramId: e, branchId: t, label: n, onParamCheck: r }) {
416
+ let i = zt();
417
+ return /* @__PURE__ */ Z(E, {
418
+ "aria-label": n,
419
+ checked: Je((t) => i.subscribeParam(e, t), () => i.getParamSelected(e), () => i.getParamSelected(e)),
420
+ onCheckedChange: (n) => {
421
+ r(e, t, n);
422
+ }
423
+ });
424
+ }
425
+ function Vt({ branchId: e, label: t, onBranchCheck: n }) {
426
+ let r = zt(), i = Je((t) => r.subscribeBranch(e, t), () => r.getBranchCheck(e), () => r.getBranchCheck(e));
427
+ return /* @__PURE__ */ Z(E, {
428
+ "aria-label": t,
429
+ checked: i === !0,
430
+ indeterminate: i === "indeterminate",
431
+ onCheckedChange: (t) => {
432
+ n(e, t);
433
+ }
434
+ });
435
+ }
436
+ function Ht(e) {
437
+ return Je(e.subscribe, e.getSnapshot, e.getSnapshot);
438
+ }
439
+ //#endregion
440
+ //#region src/workspace/setup/parameters/stamp-from-template-form.tsx
441
+ function Ut(e) {
442
+ return {
443
+ workspace: e.filter((e) => e.origin === "workspace"),
444
+ overvis: e.filter((e) => e.origin === "overvis")
445
+ };
446
+ }
447
+ function Wt(e) {
448
+ let t = e.rootBranchName.trim();
449
+ return e.templateId.length === 0 || e.endpointId.length === 0 || t.length === 0 || pt(e.unitId) == null ? !1 : dt["~standard"].validate({
450
+ ...e,
451
+ rootBranchName: t
452
+ }).issues === void 0;
453
+ }
454
+ function Gt({ workspaceId: e, onCancel: a, onDone: o }) {
455
+ let s = i(), c = r(), l = t.templates.parameter.list.useQuery({ workspaceId: e }), f = t.endpoint.list.useQuery({ workspaceId: e }), m = ve(e).stampTemplate, _ = l.data?.templates ?? [], v = Ut(_), y = f.data?.endpoints ?? [], E = l.isLoading, D = f.isLoading, O = l.isError, k = f.isError, A = !E && !O && _.length === 0, M = !D && !k && y.length === 0, R = u({
456
+ defaultValues: {
457
+ templateId: "",
458
+ endpointId: "",
459
+ rootBranchName: "",
460
+ unitId: ""
461
+ },
462
+ validators: g({
463
+ schema: dt,
464
+ submit: async (t) => {
465
+ let r = ft(t, { workspaceId: e });
466
+ return r.ok ? (await m.mutateAsync(r.input), null) : h(r, ({ problem: e }) => n(e === "unit_id_invalid" ? "error_template_unit_id_required" : "error_parameter_name_invalid"));
467
+ }
468
+ }),
469
+ onSubmitInvalid: p,
470
+ onSubmit: () => {
471
+ o();
472
+ }
473
+ });
474
+ return /* @__PURE__ */ Z(R.AppForm, { children: /* @__PURE__ */ Q(R.FormRoot, {
475
+ layout: "dialog",
476
+ children: [
477
+ /* @__PURE__ */ Q(L, { children: [/* @__PURE__ */ Z(I, { children: s("parameter_from_template_title") }), /* @__PURE__ */ Z(F, { children: s("parameter_from_template_description") })] }),
478
+ /* @__PURE__ */ Q(T, { children: [
479
+ /* @__PURE__ */ Z(R.AppField, {
480
+ name: "templateId",
481
+ children: (e) => {
482
+ let t = !e.state.meta.isValid, n = d(e.state.meta.errors, e.name), r = E || O || A;
483
+ return /* @__PURE__ */ Q(C, {
484
+ "data-invalid": t ? !0 : void 0,
485
+ children: [
486
+ /* @__PURE__ */ Z(S, {
487
+ htmlFor: "parameter-from-template-template",
488
+ children: s("parameter_from_template_field_template")
489
+ }),
490
+ /* @__PURE__ */ Z(b, {
491
+ id: "parameter-from-template-template",
492
+ className: "w-full",
493
+ value: e.state.value,
494
+ disabled: r,
495
+ "aria-invalid": t || void 0,
496
+ onBlur: e.handleBlur,
497
+ onChange: (t) => {
498
+ let n = t.target.value;
499
+ e.handleChange(n);
500
+ let r = _.find((e) => e.id === n);
501
+ r != null && (R.setFieldValue("rootBranchName", $(r.title, c)), R.setFieldValue("unitId", String(r.defaultUnitId ?? 1)));
502
+ },
503
+ children: E ? /* @__PURE__ */ Z(w, {
504
+ value: "",
505
+ children: s("parameter_from_template_template_loading")
506
+ }) : O ? /* @__PURE__ */ Z(w, {
507
+ value: "",
508
+ children: s("parameter_from_template_template_error")
509
+ }) : A ? /* @__PURE__ */ Z(w, {
510
+ value: "",
511
+ children: s("parameter_from_template_template_empty")
512
+ }) : /* @__PURE__ */ Q(X, { children: [
513
+ /* @__PURE__ */ Z(w, { value: "" }),
514
+ v.workspace.length > 0 ? /* @__PURE__ */ Z(j, {
515
+ label: s("parameter_from_template_group_workspace"),
516
+ children: v.workspace.map((e) => /* @__PURE__ */ Z(w, {
517
+ value: e.id,
518
+ children: $(e.title, c)
519
+ }, e.id))
520
+ }) : null,
521
+ v.overvis.length > 0 ? /* @__PURE__ */ Z(j, {
522
+ label: s("parameter_from_template_group_overvis"),
523
+ children: v.overvis.map((e) => /* @__PURE__ */ Z(w, {
524
+ value: e.id,
525
+ children: $(e.title, c)
526
+ }, e.id))
527
+ }) : null
528
+ ] })
529
+ }),
530
+ /* @__PURE__ */ Z(x, { errors: n })
531
+ ]
532
+ });
533
+ }
534
+ }),
535
+ /* @__PURE__ */ Z(R.AppField, {
536
+ name: "endpointId",
537
+ children: (e) => {
538
+ let t = !e.state.meta.isValid, n = d(e.state.meta.errors, e.name), r = D || k || M;
539
+ return /* @__PURE__ */ Q(C, {
540
+ "data-invalid": t ? !0 : void 0,
541
+ children: [
542
+ /* @__PURE__ */ Z(S, {
543
+ htmlFor: "parameter-from-template-endpoint",
544
+ children: s("parameter_from_template_field_endpoint")
545
+ }),
546
+ /* @__PURE__ */ Z(b, {
547
+ id: "parameter-from-template-endpoint",
548
+ className: "w-full",
549
+ value: e.state.value,
550
+ disabled: r,
551
+ "aria-invalid": t || void 0,
552
+ onBlur: e.handleBlur,
553
+ onChange: (t) => {
554
+ e.handleChange(t.target.value);
555
+ },
556
+ children: D ? /* @__PURE__ */ Z(w, {
557
+ value: "",
558
+ children: s("parameter_from_template_endpoint_loading")
559
+ }) : k ? /* @__PURE__ */ Z(w, {
560
+ value: "",
561
+ children: s("parameter_from_template_endpoint_error")
562
+ }) : M ? /* @__PURE__ */ Z(w, {
563
+ value: "",
564
+ children: s("parameter_from_template_endpoint_empty")
565
+ }) : /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(w, { value: "" }), y.map((e) => /* @__PURE__ */ Z(w, {
566
+ value: e.id,
567
+ children: $(e.name, c)
568
+ }, e.id))] })
569
+ }),
570
+ /* @__PURE__ */ Z(x, { errors: n })
571
+ ]
572
+ });
573
+ }
574
+ }),
575
+ /* @__PURE__ */ Z(R.AppField, {
576
+ name: "rootBranchName",
577
+ children: (e) => /* @__PURE__ */ Z(e.TextField, {
578
+ label: s("parameter_from_template_field_root_name"),
579
+ id: "parameter-from-template-root-name"
580
+ })
581
+ }),
582
+ /* @__PURE__ */ Z(R.AppField, {
583
+ name: "unitId",
584
+ children: (e) => /* @__PURE__ */ Z(e.TextField, {
585
+ label: s("parameter_from_template_field_unit_id"),
586
+ id: "parameter-from-template-unit-id",
587
+ type: "number",
588
+ inputMode: "numeric",
589
+ min: 0,
590
+ max: 255
591
+ })
592
+ })
593
+ ] }),
594
+ /* @__PURE__ */ Q(P, { children: [/* @__PURE__ */ Z(N, {
595
+ type: "button",
596
+ variant: "outline",
597
+ onClick: () => {
598
+ a();
599
+ },
600
+ children: s("action_cancel")
601
+ }), /* @__PURE__ */ Z(R.Subscribe, {
602
+ selector: (e) => Wt(e.values) && !E && !D && !O && !k && !A && !M,
603
+ children: (e) => /* @__PURE__ */ Z(R.SubmitButton, {
604
+ label: s("parameter_from_template_submit"),
605
+ pendingLabel: s("action_saving"),
606
+ disabled: !e
607
+ })
608
+ })] })
609
+ ]
610
+ }) });
611
+ }
612
+ //#endregion
613
+ //#region src/workspace/parameters/value/cells.tsx
614
+ function Kt({ selectedCount: e, live: t, readPending: n, writePending: r, displayMode: a, onRead: o, onLiveChange: s, onDisplayModeChange: c }) {
615
+ let l = i();
616
+ return /* @__PURE__ */ Q(X, { children: [
617
+ /* @__PURE__ */ Z(N, {
618
+ type: "button",
619
+ size: "xs",
620
+ variant: "outline",
621
+ disabled: e === 0 || n || r,
622
+ onClick: o,
623
+ children: l("parameter_read_action")
624
+ }),
625
+ /* @__PURE__ */ Q("label", {
626
+ className: "flex items-center gap-1.5 text-xs text-muted-foreground",
627
+ children: [/* @__PURE__ */ Z(_e, {
628
+ size: "sm",
629
+ checked: t,
630
+ disabled: r || e === 0 && !t,
631
+ "aria-label": l("parameter_live_label"),
632
+ onCheckedChange: s
633
+ }), l("parameter_live_label")]
634
+ }),
635
+ /* @__PURE__ */ Z(De, {
636
+ value: a,
637
+ className: "ml-2",
638
+ onValueChange: (e) => {
639
+ typeof e == "string" && (e === "repr" || e === "number" || e === "hex") && c(e);
640
+ },
641
+ children: /* @__PURE__ */ Q(Ee, {
642
+ size: "sm",
643
+ children: [
644
+ /* @__PURE__ */ Z(Te, {
645
+ value: "repr",
646
+ children: l("parameter_value_mode_repr")
647
+ }),
648
+ /* @__PURE__ */ Z(Te, {
649
+ value: "number",
650
+ children: l("parameter_value_mode_number")
651
+ }),
652
+ /* @__PURE__ */ Z(Te, {
653
+ value: "hex",
654
+ children: l("parameter_value_mode_hex")
655
+ })
656
+ ]
657
+ })
658
+ })
659
+ ] });
660
+ }
661
+ function qt(e) {
662
+ return W(st(e));
663
+ }
664
+ function Jt(e, t, n) {
665
+ if (e === "hex") return pe(t.rawHex);
666
+ if (e === "number") {
667
+ let e = U(t);
668
+ return n.name === "datetime" ? qt(e) : W(e);
669
+ }
670
+ let r = ae(t.value);
671
+ return n.name === "datetime" ? qt(r) : W(r);
672
+ }
673
+ function Yt(e) {
674
+ return he({
675
+ code: e.code,
676
+ ...e.reason == null ? {} : { reason: e.reason },
677
+ ...e.params == null ? {} : { params: e.params }
678
+ });
679
+ }
680
+ function Xt({ paramId: e, currentValue: t, rawHex: n, numberValue: r, boolValue: a, valueType: o, units: s, displayMode: c, onCancel: l, onCommit: u }) {
681
+ let d = i(), f = o.name === "datetime", p = o.name === "geo" && c !== "hex", { displayValue: m, choices: h, matchedChoice: g, initialDraft: _ } = B({
682
+ valueType: o,
683
+ currentValue: t,
684
+ rawHex: n,
685
+ numberValue: r,
686
+ boolValue: a,
687
+ displayMode: c
688
+ }), v = p ? H(m) : null, [y, x] = Y(_), [S, C] = Y(v == null ? "" : String(v.lat)), [T, E] = Y(v == null ? "" : String(v.lon)), [D, O] = Y(!1), [k, A] = Y(!1), [j, M] = Y(!1), N = qe(!1), P = qe(null), F = qe(null);
689
+ q(() => () => {
690
+ P.current != null && window.clearTimeout(P.current);
691
+ }, []);
692
+ function I() {
693
+ N.current || (N.current = !0, l());
694
+ }
695
+ function L(e) {
696
+ P.current != null && window.clearTimeout(P.current), P.current = window.setTimeout(() => {
697
+ P.current = null, !(p && e instanceof Node && F.current?.contains(e)) && I();
698
+ }, 0);
699
+ }
700
+ function R(e) {
701
+ if (N.current) return;
702
+ let n = e.trim();
703
+ if (t !== void 0 && n === _) {
704
+ I();
705
+ return;
706
+ }
707
+ let r = ue({
708
+ text: n,
709
+ valueType: o
710
+ });
711
+ if (r === null) {
712
+ A(!0);
713
+ return;
714
+ }
715
+ N.current = !0, P.current != null && (window.clearTimeout(P.current), P.current = null), u({ value: r });
716
+ }
717
+ function z() {
718
+ if (N.current) return;
719
+ let e = H(`${S.trim()},${T.trim()}`);
720
+ if (e == null) {
721
+ M(!0);
722
+ return;
723
+ }
724
+ if (fe(e.lat, e.lon, m)) {
725
+ I();
726
+ return;
727
+ }
728
+ let t = le(e.lat, e.lon);
729
+ N.current = !0, P.current != null && (window.clearTimeout(P.current), P.current = null), u({ value: t });
730
+ }
731
+ function ee(e) {
732
+ if (N.current) return;
733
+ let t = ce(e);
734
+ if (t === n) {
735
+ O(!1), I();
736
+ return;
737
+ }
738
+ if (t.length === 0 || !oe(t)) {
739
+ O(!0);
740
+ return;
741
+ }
742
+ O(!1), N.current = !0, P.current != null && (window.clearTimeout(P.current), P.current = null), u({ rawHex: t });
743
+ }
744
+ let te = c !== "hex" && s != null && s.length > 0 && !(c === "repr" && ge(o) != null);
745
+ return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
746
+ className: "\n mx-1.5 min-w-4 flex-1 self-end border-b border-dotted border-muted-foreground/20\n ",
747
+ "aria-hidden": !0
748
+ }), /* @__PURE__ */ Q("div", {
749
+ className: "\n flex max-w-[40%] shrink-0 items-baseline justify-end gap-1 font-mono text-xs leading-none\n ",
750
+ children: [c === "hex" ? /* @__PURE__ */ Q("div", {
751
+ className: "flex min-w-0 flex-col items-end gap-0.5",
752
+ children: [/* @__PURE__ */ Q("div", {
753
+ className: "flex max-w-full items-baseline gap-1",
754
+ children: [/* @__PURE__ */ Z("span", {
755
+ className: "shrink-0 text-muted-foreground",
756
+ children: "0x"
757
+ }), /* @__PURE__ */ Z("input", {
758
+ autoFocus: !0,
759
+ value: y,
760
+ size: Math.max(y.length, 1),
761
+ "aria-invalid": D,
762
+ onChange: (e) => {
763
+ O(!1), x(e.target.value);
764
+ },
765
+ onBlur: (e) => {
766
+ L(e.relatedTarget);
767
+ },
768
+ onKeyDown: (e) => {
769
+ if (e.key === "Escape") {
770
+ e.preventDefault(), I();
771
+ return;
772
+ }
773
+ e.key === "Enter" && (e.preventDefault(), ee(y));
774
+ },
775
+ className: "\n max-w-full min-w-[1ch] border-0 border-b border-solid border-foreground\n bg-transparent p-0 font-mono text-xs leading-none text-foreground outline-none\n ",
776
+ "aria-label": e,
777
+ title: d("parameter_value_hex_input_hint")
778
+ })]
779
+ }), D ? /* @__PURE__ */ Z("span", {
780
+ className: "max-w-full text-[0.65rem] leading-tight text-destructive",
781
+ children: d("parameter_value_hex_input_hint")
782
+ }) : null]
783
+ }) : h == null ? p ? /* @__PURE__ */ Q("div", {
784
+ ref: F,
785
+ className: "flex min-w-0 flex-col items-end gap-0.5",
786
+ children: [/* @__PURE__ */ Q("div", {
787
+ className: "flex max-w-full items-baseline gap-1",
788
+ children: [
789
+ /* @__PURE__ */ Z("input", {
790
+ autoFocus: !0,
791
+ value: S,
792
+ size: Math.max(S.length, 4),
793
+ "aria-invalid": j,
794
+ "aria-label": d("parameter_field_geo_latitude"),
795
+ onChange: (e) => {
796
+ M(!1), C(e.target.value);
797
+ },
798
+ onBlur: (e) => {
799
+ L(e.relatedTarget);
800
+ },
801
+ onKeyDown: (e) => {
802
+ if (e.key === "Escape") {
803
+ e.preventDefault(), I();
804
+ return;
805
+ }
806
+ e.key === "Enter" && (e.preventDefault(), z());
807
+ },
808
+ className: "\n max-w-[12ch] min-w-[4ch] border-0 border-b border-solid border-foreground\n bg-transparent p-0 font-mono text-xs leading-none text-foreground outline-none\n ",
809
+ title: d("parameter_value_geo_input_hint")
810
+ }),
811
+ /* @__PURE__ */ Z("span", {
812
+ className: "shrink-0 text-muted-foreground",
813
+ children: ","
814
+ }),
815
+ /* @__PURE__ */ Z("input", {
816
+ value: T,
817
+ size: Math.max(T.length, 4),
818
+ "aria-invalid": j,
819
+ "aria-label": d("parameter_field_geo_longitude"),
820
+ onChange: (e) => {
821
+ M(!1), E(e.target.value);
822
+ },
823
+ onBlur: (e) => {
824
+ L(e.relatedTarget);
825
+ },
826
+ onKeyDown: (e) => {
827
+ if (e.key === "Escape") {
828
+ e.preventDefault(), I();
829
+ return;
830
+ }
831
+ e.key === "Enter" && (e.preventDefault(), z());
832
+ },
833
+ className: "\n max-w-[12ch] min-w-[4ch] border-0 border-b border-solid border-foreground\n bg-transparent p-0 font-mono text-xs leading-none text-foreground outline-none\n ",
834
+ title: d("parameter_value_geo_input_hint")
835
+ })
836
+ ]
837
+ }), j ? /* @__PURE__ */ Z("span", {
838
+ className: "max-w-full text-[0.65rem] leading-tight text-destructive",
839
+ children: d("parameter_value_geo_input_hint")
840
+ }) : null]
841
+ }) : /* @__PURE__ */ Q("div", {
842
+ className: "flex min-w-0 flex-col items-end gap-0.5",
843
+ children: [/* @__PURE__ */ Z("input", {
844
+ autoFocus: !0,
845
+ value: y,
846
+ size: Math.max(y.length, 1),
847
+ "aria-invalid": k,
848
+ onChange: (e) => {
849
+ A(!1), x(e.target.value);
850
+ },
851
+ onBlur: (e) => {
852
+ L(e.relatedTarget);
853
+ },
854
+ onKeyDown: (e) => {
855
+ if (e.key === "Escape") {
856
+ e.preventDefault(), I();
857
+ return;
858
+ }
859
+ e.key === "Enter" && (e.preventDefault(), R(y));
860
+ },
861
+ className: "\n max-w-full min-w-[1ch] border-0 border-b border-solid border-foreground\n bg-transparent p-0 font-mono text-xs leading-none text-foreground outline-none\n ",
862
+ "aria-label": e,
863
+ title: f ? d("parameter_value_datetime_input_hint") : void 0
864
+ }), k ? /* @__PURE__ */ Z("span", {
865
+ className: "max-w-full text-[0.65rem] leading-tight text-destructive",
866
+ children: d("parameter_value_datetime_input_hint")
867
+ }) : null]
868
+ }) : /* @__PURE__ */ Q(b, {
869
+ size: "inline",
870
+ className: "max-w-full border-b border-solid border-foreground",
871
+ autoFocus: !0,
872
+ value: g?.writeValue ?? "",
873
+ onChange: (e) => {
874
+ let t = e.target.value;
875
+ if (t.length === 0) {
876
+ I();
877
+ return;
878
+ }
879
+ R(t);
880
+ },
881
+ onBlur: (e) => {
882
+ L(e.relatedTarget);
883
+ },
884
+ onKeyDown: (e) => {
885
+ e.key === "Escape" && (e.preventDefault(), I());
886
+ },
887
+ "aria-label": e,
888
+ children: [g == null ? /* @__PURE__ */ Z(w, { value: "" }) : null, h.map((e) => /* @__PURE__ */ Z(w, {
889
+ value: e.writeValue,
890
+ children: e.label
891
+ }, e.writeValue))]
892
+ }), te ? /* @__PURE__ */ Z("span", {
893
+ className: "shrink-0 leading-none text-muted-foreground",
894
+ children: s
895
+ }) : null]
896
+ })] });
897
+ }
898
+ function Zt({ paramId: e, state: t, units: n, writable: r, valueType: a }) {
899
+ let o = i(), s = Ke(Ct), c = Dt();
900
+ if (t == null) return null;
901
+ let u = t.status === "ok" || t.status === "failedReading" && t.reading.status === "ok" || t.status === "error" && t.code === "decode_error", d = V(t), f = s != null && !s.live && r && u && !d ? s : null;
902
+ if (f?.editingParamId === e) {
903
+ let r = f, i = t.status === "failedReading" ? t.reading : t;
904
+ return /* @__PURE__ */ Z(Xt, {
905
+ paramId: e,
906
+ ...i.status === "ok" ? {
907
+ currentValue: i.value,
908
+ rawHex: i.rawHex,
909
+ ...i.numberValue === void 0 ? {} : { numberValue: i.numberValue },
910
+ ...i.boolValue === void 0 ? {} : { boolValue: i.boolValue }
911
+ } : {},
912
+ valueType: a,
913
+ units: n,
914
+ displayMode: c,
915
+ onCancel: r.cancelEdit,
916
+ onCommit: (t) => {
917
+ r.commitWrite(e, t);
918
+ }
919
+ });
920
+ }
921
+ let p = t.status === "ok" || t.status === "error" || t.status === "lastKnown" || t.status === "failedReading", m = t.status !== "loading" && t.refreshing, h = t.status === "loading" || m || d, g = (t.status === "ok" || t.status === "lastKnown" || t.status === "failedReading") && c !== "hex" && n != null && n.length > 0 && !(c === "repr" && ge(a) != null);
922
+ return /* @__PURE__ */ Q(X, { children: [p ? /* @__PURE__ */ Z("div", {
923
+ className: "\n mx-1.5 mb-0.5 min-w-4 flex-1 self-end border-b border-dotted border-muted-foreground/20\n ",
924
+ "aria-hidden": !0
925
+ }) : /* @__PURE__ */ Z("div", {
926
+ className: "min-w-0 flex-1",
927
+ "aria-hidden": !0
928
+ }), /* @__PURE__ */ Q("div", {
929
+ className: t.status === "failedReading" ? "\n flex max-w-[70%] shrink-0 items-baseline justify-end gap-1 font-mono text-xs\n leading-none\n " : "\n flex max-w-[40%] shrink-0 items-baseline justify-end gap-1 font-mono text-xs\n leading-none\n ",
930
+ children: [h ? /* @__PURE__ */ Z(M, { className: "size-3.5 shrink-0 self-center text-muted-foreground" }) : null, t.status === "loading" ? null : V(t) ? /* @__PURE__ */ Z("span", {
931
+ className: "min-w-0 truncate text-muted-foreground",
932
+ children: o("action_saving")
933
+ }) : t.status === "ok" ? /* @__PURE__ */ Q("span", {
934
+ className: "inline-flex min-w-0 flex-wrap items-center justify-end gap-1",
935
+ title: t.freshness === "stale" ? l(t.receivedAt) : void 0,
936
+ children: [/* @__PURE__ */ Q("span", {
937
+ className: "inline-flex min-w-0 items-baseline gap-1",
938
+ children: [f == null ? /* @__PURE__ */ Z("span", {
939
+ className: t.freshness === "stale" ? "min-w-0 truncate leading-none text-muted-foreground" : "min-w-0 truncate leading-none text-foreground",
940
+ children: Jt(c, t, a)
941
+ }) : /* @__PURE__ */ Z(N, {
942
+ type: "button",
943
+ variant: "link",
944
+ className: "\n h-auto max-w-full min-w-0 p-0 font-mono text-xs leading-none text-blue-600\n hover:no-underline\n data-[stale=true]:text-muted-foreground\n ",
945
+ "data-stale": t.freshness === "stale",
946
+ onClick: () => {
947
+ f.startEdit(e);
948
+ },
949
+ children: /* @__PURE__ */ Z("span", {
950
+ className: "\n inline-flex max-w-full border-b border-dotted border-blue-600/80 pb-px\n ",
951
+ children: /* @__PURE__ */ Z("span", {
952
+ className: "truncate leading-none",
953
+ children: Jt(c, t, a)
954
+ })
955
+ })
956
+ }), g ? /* @__PURE__ */ Z("span", {
957
+ className: "shrink-0 leading-none text-muted-foreground",
958
+ children: n
959
+ }) : null]
960
+ }), t.freshness === "stale" ? /* @__PURE__ */ Z("span", {
961
+ className: "sr-only",
962
+ children: l(t.receivedAt)
963
+ }) : null]
964
+ }) : t.status === "lastKnown" ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("span", {
965
+ className: "min-w-0 truncate leading-none text-muted-foreground",
966
+ children: Jt(c, t, a)
967
+ }), g ? /* @__PURE__ */ Z("span", {
968
+ className: "shrink-0 leading-none text-muted-foreground",
969
+ children: n
970
+ }) : null] }) : t.status === "failedReading" ? /* @__PURE__ */ Q(X, { children: [
971
+ t.reading.status === "ok" && f != null ? /* @__PURE__ */ Z(N, {
972
+ type: "button",
973
+ variant: "link",
974
+ className: "\n h-auto max-w-full min-w-0 p-0 font-mono text-xs leading-none text-blue-600\n hover:no-underline\n data-[stale=true]:text-muted-foreground\n ",
975
+ "data-stale": "true",
976
+ onClick: () => {
977
+ f.startEdit(e);
978
+ },
979
+ children: /* @__PURE__ */ Z("span", {
980
+ className: "truncate leading-none",
981
+ children: Jt(c, t.reading, a)
982
+ })
983
+ }) : /* @__PURE__ */ Z("span", {
984
+ className: "min-w-0 truncate leading-none text-muted-foreground",
985
+ children: Jt(c, t.reading, a)
986
+ }),
987
+ g ? /* @__PURE__ */ Z("span", {
988
+ className: "shrink-0 leading-none text-muted-foreground",
989
+ children: n
990
+ }) : null,
991
+ /* @__PURE__ */ Z("span", {
992
+ className: "shrink-0 text-destructive",
993
+ children: Yt(t.failure)
994
+ })
995
+ ] }) : /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("span", {
996
+ className: "min-w-0 truncate text-destructive",
997
+ title: Yt(t),
998
+ children: Yt(t)
999
+ }), f == null ? null : /* @__PURE__ */ Z(N, {
1000
+ type: "button",
1001
+ variant: "link",
1002
+ size: "xs",
1003
+ onClick: () => {
1004
+ f.startEdit(e);
1005
+ },
1006
+ children: o("parameter_value_write_action")
1007
+ })] })]
1008
+ })] });
1009
+ }
1010
+ function Qt(e) {
1011
+ let t = Ke(xt);
1012
+ return Je((n) => t == null ? () => void 0 : t.subscribe(e, n), () => t?.get(e), () => t?.get(e));
1013
+ }
1014
+ function $t({ paramId: e, units: t, writable: n, valueType: r }) {
1015
+ return /* @__PURE__ */ Z(Zt, {
1016
+ paramId: e,
1017
+ state: Qt(e),
1018
+ units: t,
1019
+ writable: n,
1020
+ valueType: r
1021
+ });
1022
+ }
1023
+ //#endregion
1024
+ //#region src/workspace/setup/parameters/toolbar.tsx
1025
+ function en({ workspaceId: e, filter: t, onFilterChange: n, filterActive: r, hasBranches: o, treeReady: s, selectionStore: c, knownParamIds: l, paramIdsInTreeOrder: u, onAddRootBranch: d, onAddFromTemplate: f, onDeleteSelection: p, onDeleteReadings: m, onExpandAll: h, onCollapseAll: g, showDetails: _, onShowDetailsChange: v, live: y, readPending: b, writePending: x, displayMode: S, runRead: C, onLiveChange: w, onDisplayModeChange: T }) {
1026
+ let E = i(), O = a(), k = gt(), A = lt(te().access), j = ie({
1027
+ workspaceId: e,
1028
+ navigateToReport: (t) => {
1029
+ k({
1030
+ to: "/workspace/$workspaceId/reports/$presetId",
1031
+ params: {
1032
+ workspaceId: e,
1033
+ presetId: t
1034
+ }
1035
+ });
1036
+ },
1037
+ onSkipped: () => {
1038
+ O.warning(E("report_quick_skipped"));
1039
+ },
1040
+ onError: (e) => {
1041
+ let t = re(e);
1042
+ O.error(t);
1043
+ }
1044
+ }), M = Ht(c), P = M.selectedParamIds.size + M.selectedBranchIds.size, F = s ? Be(new Set([...M.selectedParamIds].filter((e) => l.has(e))), u) : [], I = me({
1045
+ parameterIds: F,
1046
+ pending: j.isPending
1047
+ });
1048
+ return /* @__PURE__ */ Q("div", {
1049
+ className: "\n sticky top-0 z-10 flex flex-col gap-1.5 border-b bg-background/95 px-4 py-2\n backdrop-blur-sm\n supports-backdrop-filter:bg-background/80\n ",
1050
+ children: [/* @__PURE__ */ Q("div", {
1051
+ className: "flex flex-wrap items-center gap-2",
1052
+ children: [
1053
+ /* @__PURE__ */ Z(D, {
1054
+ value: t,
1055
+ onChange: (e) => {
1056
+ n(e.target.value);
1057
+ },
1058
+ placeholder: E("parameter_filter_placeholder"),
1059
+ className: "\n h-8 min-w-0 flex-1 basis-40\n sm:max-w-xs sm:flex-none\n "
1060
+ }),
1061
+ /* @__PURE__ */ Q(Ce, { children: [/* @__PURE__ */ Q(xe, {
1062
+ render: /* @__PURE__ */ Z(N, {
1063
+ type: "button",
1064
+ size: "sm",
1065
+ variant: "outline"
1066
+ }),
1067
+ children: [
1068
+ /* @__PURE__ */ Z(at, { "data-icon": "inline-start" }),
1069
+ E("parameter_add_menu"),
1070
+ /* @__PURE__ */ Z(Xe, {
1071
+ "data-icon": "inline-end",
1072
+ className: "opacity-70"
1073
+ })
1074
+ ]
1075
+ }), /* @__PURE__ */ Q(Se, {
1076
+ align: "start",
1077
+ className: "w-auto min-w-40",
1078
+ children: [
1079
+ /* @__PURE__ */ Z(G, {
1080
+ onClick: d,
1081
+ children: E("parameter_add_root_branch")
1082
+ }),
1083
+ /* @__PURE__ */ Z(G, {
1084
+ disabled: !o,
1085
+ onClick: () => {
1086
+ k({
1087
+ to: "/workspace/$workspaceId/setup/parameters/new",
1088
+ params: { workspaceId: e }
1089
+ });
1090
+ },
1091
+ children: E("parameter_add_action")
1092
+ }),
1093
+ /* @__PURE__ */ Z(G, {
1094
+ onClick: f,
1095
+ children: E("parameter_add_from_template")
1096
+ })
1097
+ ]
1098
+ })] }),
1099
+ /* @__PURE__ */ Q(N, {
1100
+ type: "button",
1101
+ size: "sm",
1102
+ variant: "destructive",
1103
+ disabled: !s || P === 0,
1104
+ onClick: p,
1105
+ children: [/* @__PURE__ */ Z(ot, { "data-icon": "inline-start" }), E("parameter_delete_action")]
1106
+ }),
1107
+ A ? /* @__PURE__ */ Q(N, {
1108
+ type: "button",
1109
+ size: "sm",
1110
+ variant: "outline",
1111
+ disabled: !s || P === 0,
1112
+ onClick: m,
1113
+ children: [/* @__PURE__ */ Z(tt, { "data-icon": "inline-start" }), E("storage_delete_readings_selection")]
1114
+ }) : null,
1115
+ /* @__PURE__ */ Q(N, {
1116
+ type: "button",
1117
+ size: "sm",
1118
+ variant: "outline",
1119
+ disabled: !s || I.kind !== "ready",
1120
+ onClick: () => {
1121
+ I.kind === "ready" && j.create({
1122
+ parameterIds: I.parameterIds,
1123
+ title: E("parameter_quick_report")
1124
+ });
1125
+ },
1126
+ children: [/* @__PURE__ */ Z(Ye, { "data-icon": "inline-start" }), E("parameter_quick_report")]
1127
+ }),
1128
+ I.kind === "over_limit" ? /* @__PURE__ */ Z("p", {
1129
+ className: "text-xs text-muted-foreground",
1130
+ children: E("parameter_quick_report_limit", { limit: String(I.limit) })
1131
+ }) : null
1132
+ ]
1133
+ }), /* @__PURE__ */ Q("div", {
1134
+ className: "flex flex-wrap items-center gap-1.5",
1135
+ children: [
1136
+ /* @__PURE__ */ Q(N, {
1137
+ type: "button",
1138
+ size: "xs",
1139
+ variant: "ghost",
1140
+ disabled: !o || r,
1141
+ onClick: h,
1142
+ children: [/* @__PURE__ */ Z($e, { "data-icon": "inline-start" }), E("parameter_expand_all")]
1143
+ }),
1144
+ /* @__PURE__ */ Q(N, {
1145
+ type: "button",
1146
+ size: "xs",
1147
+ variant: "ghost",
1148
+ disabled: !o || r,
1149
+ onClick: g,
1150
+ children: [/* @__PURE__ */ Z(Qe, { "data-icon": "inline-start" }), E("parameter_collapse_all")]
1151
+ }),
1152
+ /* @__PURE__ */ Q("label", {
1153
+ className: "ml-3 flex items-center gap-1.5 text-xs text-muted-foreground",
1154
+ children: [/* @__PURE__ */ Z(_e, {
1155
+ size: "sm",
1156
+ checked: _,
1157
+ disabled: !o,
1158
+ "aria-label": E("parameter_details_label"),
1159
+ onCheckedChange: v
1160
+ }), E("parameter_details_label")]
1161
+ }),
1162
+ /* @__PURE__ */ Z("div", {
1163
+ className: "ml-auto flex flex-wrap items-center gap-1.5",
1164
+ children: /* @__PURE__ */ Z(Kt, {
1165
+ selectedCount: F.length,
1166
+ live: y,
1167
+ readPending: b,
1168
+ writePending: x,
1169
+ displayMode: S,
1170
+ onRead: () => {
1171
+ C(F);
1172
+ },
1173
+ onLiveChange: (e) => {
1174
+ s && w(e);
1175
+ },
1176
+ onDisplayModeChange: T
1177
+ })
1178
+ })
1179
+ ]
1180
+ })]
1181
+ });
1182
+ }
1183
+ //#endregion
1184
+ //#region src/workspace/setup/parameters/tree/rows.tsx
1185
+ var tn = Ge(function({ id: e, name: t, depth: n, paramCount: r, hasChildren: a, open: o, menuOpen: s, onToggleExpand: c, onBranchCheck: l, onMenuOpenChange: u, onAddChildBranch: d, onAddParam: f, onRename: p }) {
1186
+ let m = i(), h = m(o ? "parameter_collapse" : "parameter_expand"), g = (t) => {
1187
+ c(e, { shiftKey: t });
1188
+ };
1189
+ return /* @__PURE__ */ Q("div", {
1190
+ "data-context-branch-id": e,
1191
+ className: `
1192
+ group/branch-row flex min-h-7 w-full items-center gap-1 pr-2
1193
+ ${Fe(n)}
1194
+ `,
1195
+ children: [
1196
+ /* @__PURE__ */ Z("button", {
1197
+ type: "button",
1198
+ className: "-ml-1.5 flex size-7 shrink-0 items-center justify-center text-muted-foreground",
1199
+ "aria-label": h,
1200
+ disabled: !a,
1201
+ onClick: (e) => {
1202
+ g(e.shiftKey);
1203
+ },
1204
+ children: Z(a ? o ? Xe : Ze : "span", { className: "size-3.5" })
1205
+ }),
1206
+ /* @__PURE__ */ Z(Vt, {
1207
+ branchId: e,
1208
+ label: m("parameter_select_named", { name: t }),
1209
+ onBranchCheck: l
1210
+ }),
1211
+ /* @__PURE__ */ Q("span", {
1212
+ className: "flex min-w-0 items-baseline gap-1",
1213
+ children: [a ? /* @__PURE__ */ Z("button", {
1214
+ type: "button",
1215
+ className: "min-w-0 cursor-pointer truncate text-left font-medium",
1216
+ "aria-label": h,
1217
+ onClick: (e) => {
1218
+ g(e.shiftKey);
1219
+ },
1220
+ children: t
1221
+ }) : /* @__PURE__ */ Z("span", {
1222
+ className: "min-w-0 truncate font-medium",
1223
+ children: t
1224
+ }), /* @__PURE__ */ Z("span", {
1225
+ className: "shrink-0 text-xs text-muted-foreground/50",
1226
+ children: r
1227
+ })]
1228
+ }),
1229
+ /* @__PURE__ */ Q(Ce, {
1230
+ open: s,
1231
+ onOpenChange: (t) => {
1232
+ u(e, t);
1233
+ },
1234
+ children: [/* @__PURE__ */ Z(xe, {
1235
+ render: /* @__PURE__ */ Z(N, {
1236
+ type: "button",
1237
+ variant: "ghost",
1238
+ size: "icon-xs",
1239
+ "aria-label": m("parameter_actions_named", { name: t }),
1240
+ className: "\n ml-auto size-5 opacity-0\n group-focus-within/branch-row:opacity-100\n group-hover/branch-row:opacity-100\n data-popup-open:opacity-100\n "
1241
+ }),
1242
+ children: /* @__PURE__ */ Z(it, { className: "size-3.5" })
1243
+ }), s ? /* @__PURE__ */ Q(Se, {
1244
+ align: "end",
1245
+ children: [
1246
+ /* @__PURE__ */ Z(G, {
1247
+ onClick: () => {
1248
+ d(e);
1249
+ },
1250
+ children: m("parameter_add_child_branch")
1251
+ }),
1252
+ /* @__PURE__ */ Z(G, {
1253
+ onClick: () => {
1254
+ f(e);
1255
+ },
1256
+ children: m("parameter_add_action")
1257
+ }),
1258
+ /* @__PURE__ */ Z(G, {
1259
+ onClick: () => {
1260
+ p(e, t);
1261
+ },
1262
+ children: m("parameter_rename_branch")
1263
+ })
1264
+ ]
1265
+ }) : null]
1266
+ })
1267
+ ]
1268
+ });
1269
+ });
1270
+ function nn({ deviceLog: e }) {
1271
+ let t = i();
1272
+ return /* @__PURE__ */ Q(O, { children: [/* @__PURE__ */ Z(A, {
1273
+ openOnHover: !0,
1274
+ delay: 150,
1275
+ className: "\n inline-flex shrink-0 items-center self-center rounded-sm text-muted-foreground\n focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none\n ",
1276
+ "aria-label": t("parameter_device_log_chip_aria"),
1277
+ children: /* @__PURE__ */ Z(nt, {
1278
+ className: "size-3",
1279
+ "aria-hidden": !0,
1280
+ strokeWidth: 2.25
1281
+ })
1282
+ }), /* @__PURE__ */ Q(k, {
1283
+ side: "top",
1284
+ className: "w-auto max-w-xs gap-1 p-2.5 text-xs",
1285
+ children: [
1286
+ /* @__PURE__ */ Z("p", {
1287
+ className: "font-medium text-foreground",
1288
+ children: t("parameter_device_log_title")
1289
+ }),
1290
+ /* @__PURE__ */ Q("p", {
1291
+ className: "text-muted-foreground",
1292
+ children: [
1293
+ t("parameter_device_log_pull", { minutes: e.pullMinutes }),
1294
+ " · ",
1295
+ e.lastImportAt == null ? t("parameter_device_log_no_import") : t("parameter_device_log_last_import", { when: st(e.lastImportAt) })
1296
+ ]
1297
+ }),
1298
+ e.completeThrough == null ? null : /* @__PURE__ */ Z("p", {
1299
+ className: "text-muted-foreground",
1300
+ children: t("parameter_device_log_complete_through", { when: st(e.completeThrough) })
1301
+ })
1302
+ ]
1303
+ })] });
1304
+ }
1305
+ var rn = Ge(function({ id: e, branchId: t, depth: n, icon: r, units: a, disabled: o, backgroundReadingPeriodMs: s, deviceLog: c, lastReadingReceivedAt: l, nextReadingDueAt: u, parts: d, details: p, showDetails: m, workspaceId: h, writable: g, valueType: y, onParamCheck: b }) {
1306
+ let x = i(), S = Qt(e), C = S?.status === "ok" || S?.status === "lastKnown" || S?.status === "failedReading", w = d.units != null && !C ? d.units : null, T = f(o, s), E = /* @__PURE__ */ Q(X, { children: [
1307
+ /* @__PURE__ */ Z("span", {
1308
+ className: "-ml-1.5 size-7 shrink-0",
1309
+ "aria-hidden": !0
1310
+ }),
1311
+ /* @__PURE__ */ Z("span", {
1312
+ className: "size-4 shrink-0",
1313
+ "aria-hidden": !0
1314
+ }),
1315
+ /* @__PURE__ */ Z("span", {
1316
+ className: "size-3.5 shrink-0",
1317
+ "aria-hidden": !0
1318
+ })
1319
+ ] });
1320
+ return /* @__PURE__ */ Q("div", {
1321
+ "data-context-parameter-id": e,
1322
+ "data-context-branch-id": t,
1323
+ className: `
1324
+ flex w-full flex-col
1325
+ ${Fe(n)}
1326
+ ${o ? "opacity-70" : ""}
1327
+ `,
1328
+ children: [/* @__PURE__ */ Q("div", {
1329
+ className: "flex min-h-7 w-full items-center gap-1 pr-2",
1330
+ children: [
1331
+ /* @__PURE__ */ Z("span", {
1332
+ className: "-ml-1.5 size-7 shrink-0",
1333
+ "aria-hidden": !0
1334
+ }),
1335
+ /* @__PURE__ */ Z(Bt, {
1336
+ paramId: e,
1337
+ branchId: t,
1338
+ label: x("parameter_select_named", { name: d.name }),
1339
+ onParamCheck: b
1340
+ }),
1341
+ /* @__PURE__ */ Z(be, {
1342
+ icon: r,
1343
+ className: "size-3.5 shrink-0 text-muted-foreground",
1344
+ strokeWidth: 1.75
1345
+ }),
1346
+ /* @__PURE__ */ Q("div", {
1347
+ className: "flex min-w-0 flex-1 items-center",
1348
+ children: [/* @__PURE__ */ Q("div", {
1349
+ className: "flex items-baseline gap-1",
1350
+ children: [
1351
+ /* @__PURE__ */ Z("div", {
1352
+ className: "min-w-0 truncate",
1353
+ children: /* @__PURE__ */ Q(ht, {
1354
+ to: "/workspace/$workspaceId/setup/parameters/$parameterId",
1355
+ params: {
1356
+ workspaceId: h,
1357
+ parameterId: e
1358
+ },
1359
+ className: "\n font-medium text-primary\n hover:underline\n ",
1360
+ children: [
1361
+ d.mnemonic == null ? null : /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("span", {
1362
+ className: "font-mono",
1363
+ children: d.mnemonic
1364
+ }), " · "] }),
1365
+ d.name,
1366
+ w == null ? null : `, ${w}`
1367
+ ]
1368
+ })
1369
+ }),
1370
+ T == null ? null : /* @__PURE__ */ Q("span", {
1371
+ className: "shrink-0 text-xs text-muted-foreground",
1372
+ role: "img",
1373
+ "aria-label": v(T),
1374
+ children: [/* @__PURE__ */ Z(et, {
1375
+ className: "mr-0.5 inline-block size-3 align-[-0.125em]",
1376
+ "aria-hidden": !0,
1377
+ strokeWidth: 2.25
1378
+ }), _(T)]
1379
+ }),
1380
+ c == null ? null : /* @__PURE__ */ Z(nn, { deviceLog: c }),
1381
+ o ? /* @__PURE__ */ Z("span", {
1382
+ className: "\n inline-block shrink-0 rounded-sm border border-border px-1 py-px align-middle\n text-[10px] leading-none font-medium tracking-wide text-muted-foreground\n uppercase\n ",
1383
+ children: x("parameter_off_marker")
1384
+ }) : null
1385
+ ]
1386
+ }), /* @__PURE__ */ Z($t, {
1387
+ paramId: e,
1388
+ units: a,
1389
+ writable: g,
1390
+ valueType: y
1391
+ })]
1392
+ })
1393
+ ]
1394
+ }), m && p != null ? /* @__PURE__ */ Q("div", {
1395
+ className: "flex gap-1 pr-2 pb-1",
1396
+ children: [E, /* @__PURE__ */ Q("div", {
1397
+ className: "mt-0.5 flex min-w-0 flex-1 flex-col gap-1.5",
1398
+ children: [p.description == null ? null : /* @__PURE__ */ Z("p", {
1399
+ className: "text-xs/snug wrap-break-word whitespace-pre-wrap text-foreground/75",
1400
+ children: p.description
1401
+ }), /* @__PURE__ */ Q("p", {
1402
+ className: "font-mono text-[11px] leading-snug wrap-break-word text-muted-foreground",
1403
+ children: [
1404
+ p.metaLine,
1405
+ l == null ? null : /* @__PURE__ */ Q(X, { children: [" · ", x("parameter_details_last_reading", { when: st(l) })] }),
1406
+ u == null ? null : /* @__PURE__ */ Q(X, { children: [" · ", x("parameter_details_next_reading", { when: st(u) })] }),
1407
+ p.tags.map((e) => /* @__PURE__ */ Q("span", { children: [" · ", /* @__PURE__ */ Z("span", {
1408
+ className: "\n inline-flex max-w-full items-center rounded-sm bg-amber-500/10 px-1.5 py-px\n font-sans text-amber-950/80\n dark:bg-amber-400/10 dark:text-amber-100/80\n ",
1409
+ children: /* @__PURE__ */ Z("span", {
1410
+ className: "truncate",
1411
+ children: e
1412
+ })
1413
+ })] }, e))
1414
+ ]
1415
+ })]
1416
+ })]
1417
+ }) : null]
1418
+ });
1419
+ }), an = "overvis.setup.parameterTreeExpanded.", on = "overvis.setup.parameterTreeSelection.", sn = "overvis.setup.parameterValueDisplayMode", cn = "overvis.setup.parameterTreeDetails.";
1420
+ function ln(e) {
1421
+ return Array.isArray(e) && e.every((e) => typeof e == "string");
1422
+ }
1423
+ function un(e, t, n) {
1424
+ try {
1425
+ let r = e().getItem(t);
1426
+ return r == null ? null : n(r);
1427
+ } catch {
1428
+ return null;
1429
+ }
1430
+ }
1431
+ function dn(e, t, n) {
1432
+ try {
1433
+ e().setItem(t, n);
1434
+ } catch {}
1435
+ }
1436
+ var fn = () => localStorage, pn = () => sessionStorage;
1437
+ function mn(e) {
1438
+ return un(fn, `${an}${e}`, (e) => {
1439
+ let t = JSON.parse(e);
1440
+ return ln(t) ? new Set(t) : null;
1441
+ });
1442
+ }
1443
+ function hn(e, t) {
1444
+ dn(fn, `${an}${e}`, JSON.stringify([...t]));
1445
+ }
1446
+ function gn(e) {
1447
+ return un(fn, `${on}${e}`, (e) => {
1448
+ let t = JSON.parse(e);
1449
+ return typeof t != "object" || !t || !("paramIds" in t) || !("branchIds" in t) || !ln(t.paramIds) || !ln(t.branchIds) ? null : {
1450
+ paramIds: t.paramIds,
1451
+ branchIds: t.branchIds
1452
+ };
1453
+ });
1454
+ }
1455
+ function _n(e, t, n) {
1456
+ dn(fn, `${on}${e}`, JSON.stringify({
1457
+ paramIds: [...t],
1458
+ branchIds: [...n]
1459
+ }));
1460
+ }
1461
+ function vn(e, t) {
1462
+ return new Set([...e].filter((e) => t.has(e)));
1463
+ }
1464
+ function yn() {
1465
+ return un(pn, sn, (e) => e === "repr" || e === "number" || e === "hex" ? e : null) ?? "repr";
1466
+ }
1467
+ function bn(e) {
1468
+ dn(pn, sn, e);
1469
+ }
1470
+ function xn(e) {
1471
+ return un(pn, `${cn}${e}`, (e) => e === "1") ?? !1;
1472
+ }
1473
+ function Sn(e, t) {
1474
+ dn(pn, `${cn}${e}`, t ? "1" : "0");
1475
+ }
1476
+ //#endregion
1477
+ //#region src/workspace/setup/parameters/use-tree-selection.ts
1478
+ function Cn(e) {
1479
+ let t = gn(e);
1480
+ return It(t == null ? void 0 : {
1481
+ selectedParamIds: new Set(t.paramIds),
1482
+ selectedBranchIds: new Set(t.branchIds)
1483
+ });
1484
+ }
1485
+ function wn(e, t, n) {
1486
+ let r = t;
1487
+ for (; r != null;) e.delete(r), r = n.get(r) ?? null;
1488
+ }
1489
+ function Tn({ workspaceId: e, selectionStore: t, indexes: n, treeReady: r, knownParamIds: i, knownBranchIds: a, clearParamSelectionSideEffects: o }) {
1490
+ let { branchesByParent: s, paramsByBranch: c, parentById: l, subtreeByBranchId: u } = n, d = K((n, r) => {
1491
+ t.commit({
1492
+ selectedParamIds: n,
1493
+ selectedBranchIds: r,
1494
+ checkStateByBranchId: ze(s, c, r, n)
1495
+ }) && _n(e, n, r);
1496
+ }, [
1497
+ t,
1498
+ e,
1499
+ s,
1500
+ c
1501
+ ]);
1502
+ return q(() => {
1503
+ if (!r) return;
1504
+ let e = t.getSnapshot();
1505
+ d(vn(e.selectedParamIds, i), vn(e.selectedBranchIds, a));
1506
+ }, [
1507
+ r,
1508
+ i,
1509
+ a,
1510
+ t,
1511
+ d
1512
+ ]), {
1513
+ onBranchCheck: K((e, n) => {
1514
+ let r = u.get(e);
1515
+ if (r == null) return;
1516
+ let i = t.getSnapshot(), a = new Set(i.selectedBranchIds), s = new Set(i.selectedParamIds);
1517
+ if (n) {
1518
+ for (let e of r.branchIds) a.add(e);
1519
+ for (let e of r.paramIds) s.add(e);
1520
+ } else {
1521
+ for (let e of r.branchIds) a.delete(e);
1522
+ for (let e of r.paramIds) s.delete(e);
1523
+ wn(a, e, l);
1524
+ }
1525
+ d(s, a), o(s.size);
1526
+ }, [
1527
+ u,
1528
+ l,
1529
+ t,
1530
+ d,
1531
+ o
1532
+ ]),
1533
+ onParamCheck: K((e, n, r) => {
1534
+ let i = t.getSnapshot(), a = new Set(i.selectedParamIds), s = new Set(i.selectedBranchIds);
1535
+ r ? a.add(e) : (a.delete(e), wn(s, n, l)), d(a, s), o(a.size);
1536
+ }, [
1537
+ l,
1538
+ t,
1539
+ d,
1540
+ o
1541
+ ]),
1542
+ clearSelection: () => {
1543
+ d(/* @__PURE__ */ new Set(), /* @__PURE__ */ new Set()), o(0);
1544
+ }
1545
+ };
1546
+ }
1547
+ //#endregion
1548
+ //#region src/workspace/setup/parameters/use-tree-view.ts
1549
+ var En = 200;
1550
+ function Dn({ workspaceId: e, branches: t, parameters: n, indexes: i, treeReady: a, knownBranchIds: o }) {
1551
+ let s = r(), { branchesByParent: c, paramsByBranch: l, parentById: u, subtreeByBranchId: d, paramCountByBranchId: f } = i, [p, m] = Y(""), [h, g] = Y("");
1552
+ q(() => {
1553
+ let e = window.setTimeout(() => {
1554
+ g(p);
1555
+ }, En);
1556
+ return () => {
1557
+ window.clearTimeout(e);
1558
+ };
1559
+ }, [p]);
1560
+ let [_, v] = Y(() => mn(e)), y = J(() => (c.get(null) ?? []).map((e) => e.id), [c]);
1561
+ if (a && _ != null) {
1562
+ let t = vn(_, o);
1563
+ Nt(t, _) || (v(t), hn(e, t));
1564
+ }
1565
+ let b = J(() => {
1566
+ let e = _ ?? new Set(y);
1567
+ return a ? vn(e, o) : e;
1568
+ }, [
1569
+ _,
1570
+ y,
1571
+ a,
1572
+ o
1573
+ ]), x = h.trim(), S = x.length > 0, C = J(() => S ? new Set(n.filter((e) => Le(e, x)).map((e) => e.id)) : null, [
1574
+ S,
1575
+ x,
1576
+ n
1577
+ ]), w = J(() => {
1578
+ if (C == null) return null;
1579
+ let e = /* @__PURE__ */ new Set();
1580
+ for (let t of n) {
1581
+ if (!C.has(t.id)) continue;
1582
+ let n = t.branchId;
1583
+ for (; n != null;) e.add(n), n = u.get(n) ?? null;
1584
+ }
1585
+ return e;
1586
+ }, [
1587
+ C,
1588
+ n,
1589
+ u
1590
+ ]), T = J(() => Ve(n, s), [n, s]);
1591
+ return {
1592
+ filter: p,
1593
+ setFilter: m,
1594
+ filterActive: S,
1595
+ rows: J(() => Ie({
1596
+ locale: s,
1597
+ branchesByParent: c,
1598
+ paramsByBranch: l,
1599
+ paramCountByBranchId: f,
1600
+ partsByParamId: T,
1601
+ effectiveExpanded: b,
1602
+ filterActive: S,
1603
+ matchingParamIds: C,
1604
+ ancestorsOfMatches: w
1605
+ }), [
1606
+ s,
1607
+ c,
1608
+ l,
1609
+ f,
1610
+ T,
1611
+ b,
1612
+ S,
1613
+ C,
1614
+ w
1615
+ ]),
1616
+ effectiveExpanded: b,
1617
+ onToggleExpand: K((t, { shiftKey: n }) => {
1618
+ v((r) => {
1619
+ let i = r ?? new Set(y), a = Mt({
1620
+ expanded: i,
1621
+ branchId: t,
1622
+ shiftKey: n,
1623
+ visuallyOpen: S || i.has(t),
1624
+ subtreeBranchIds: d.get(t)?.branchIds
1625
+ }), s = o.size > 0 ? vn(a, o) : a;
1626
+ return hn(e, s), s;
1627
+ });
1628
+ }, [
1629
+ y,
1630
+ d,
1631
+ o,
1632
+ e,
1633
+ S
1634
+ ]),
1635
+ expandAll: () => {
1636
+ let n = new Set(t.map((e) => e.id));
1637
+ hn(e, n), v(n);
1638
+ },
1639
+ collapseAll: () => {
1640
+ let t = /* @__PURE__ */ new Set();
1641
+ hn(e, t), v(t);
1642
+ }
1643
+ };
1644
+ }
1645
+ //#endregion
1646
+ //#region src/workspace/setup/parameters/page.tsx
1647
+ var On = /* @__PURE__ */ e({ SetupParametersPage: () => kn });
1648
+ function kn({ workspaceId: e }) {
1649
+ return /* @__PURE__ */ Z(s, {
1650
+ access: te().access,
1651
+ children: /* @__PURE__ */ Z(An, { workspaceId: e })
1652
+ });
1653
+ }
1654
+ function An({ workspaceId: e }) {
1655
+ let n = i(), o = a(), s = r(), l = gt(), u = t.parameter.listTree.useQuery({ workspaceId: e }), d = J(() => u.data?.branches ?? [], [u.data?.branches]), f = J(() => u.data?.parameters ?? [], [u.data?.parameters]), [p] = Y(() => Cn(e)), [m, h] = Y(null), [g, _] = Y(() => yn()), [v, y] = Y(() => xn(e)), [b, x] = Y(!1), S = t.endpoint.list.useQuery({ workspaceId: e }, { enabled: v || b }), C = K((t) => {
1656
+ y(t), Sn(e, t);
1657
+ }, [e]), w = J(() => Me(d, f), [d, f]), T = J(() => He(w), [w]), { live: E, setLiveEnabled: D, clearParamSelectionSideEffects: O, paramValueStore: k, readPending: A, anySaving: j, runRead: M, editingParamId: P, startEdit: F, cancelEdit: I, commitWrite: L } = Ot(p, T);
1658
+ q(() => {
1659
+ u.data != null && k.update((e) => se(e, u.data.parameters));
1660
+ }, [k, u.data]);
1661
+ let te = K((e) => {
1662
+ e !== g && (I(), _(e), bn(e));
1663
+ }, [I, g]), re = J(() => ({
1664
+ editingParamId: P,
1665
+ startEdit: F,
1666
+ cancelEdit: I,
1667
+ commitWrite: L,
1668
+ live: E,
1669
+ displayMode: g
1670
+ }), [
1671
+ P,
1672
+ F,
1673
+ I,
1674
+ L,
1675
+ E,
1676
+ g
1677
+ ]), [ie, B] = Y(null), [ae, V] = Y(!1), [oe, H] = Y(null), U = J(() => new Set(f.map((e) => e.id)), [f]), ce = J(() => new Set(d.map((e) => e.id)), [d]), le = u.isSuccess, { onBranchCheck: ue, onParamCheck: de, clearSelection: fe } = Tn({
1678
+ workspaceId: e,
1679
+ selectionStore: p,
1680
+ indexes: w,
1681
+ treeReady: le,
1682
+ knownParamIds: U,
1683
+ knownBranchIds: ce,
1684
+ clearParamSelectionSideEffects: O
1685
+ }), { filter: pe, setFilter: me, filterActive: W, rows: he, effectiveExpanded: ge, onToggleExpand: _e, expandAll: ve, collapseAll: ye } = Dn({
1686
+ workspaceId: e,
1687
+ branches: d,
1688
+ parameters: f,
1689
+ indexes: w,
1690
+ treeReady: le,
1691
+ knownBranchIds: ce
1692
+ }), be = J(() => {
1693
+ let e = /* @__PURE__ */ new Map(), t = s;
1694
+ for (let n of S.data?.endpoints ?? []) e.set(n.id, $(n.name, t));
1695
+ return e;
1696
+ }, [s, S.data?.endpoints]), G = J(() => {
1697
+ if (!v) return null;
1698
+ let e = /* @__PURE__ */ new Map();
1699
+ for (let t of f) e.set(t.id, c(t, be));
1700
+ return e;
1701
+ }, [
1702
+ v,
1703
+ f,
1704
+ be
1705
+ ]);
1706
+ m != null && !he.some((e) => e.kind === "branch" && e.id === m) && h(null);
1707
+ let xe = K((e, t) => {
1708
+ h(t ? e : null);
1709
+ }, []), Se = K((e) => {
1710
+ h(null), B({
1711
+ mode: "create-child",
1712
+ parentId: e
1713
+ });
1714
+ }, []), Ce = K((t) => {
1715
+ h(null), l({
1716
+ to: "/workspace/$workspaceId/setup/parameters/new",
1717
+ params: { workspaceId: e },
1718
+ search: { branchId: t }
1719
+ });
1720
+ }, [l, e]), Te = K((e, t) => {
1721
+ h(null), B({
1722
+ mode: "rename",
1723
+ branchId: e,
1724
+ name: t,
1725
+ revision: d.find((t) => t.id === e)?.revision
1726
+ });
1727
+ }, [d]), Ee = J(() => ({
1728
+ params: new Map(f.map((e) => [e.id, e.revision])),
1729
+ branches: new Map(d.map((e) => [e.id, e.revision]))
1730
+ }), [d, f]);
1731
+ return ne("parameters", K(() => vt({
1732
+ selection: p.getSnapshot(),
1733
+ parameters: f,
1734
+ branches: d,
1735
+ locale: s
1736
+ }), [
1737
+ s,
1738
+ d,
1739
+ f,
1740
+ p
1741
+ ])), /* @__PURE__ */ Q("div", {
1742
+ className: "flex w-full flex-col",
1743
+ children: [
1744
+ /* @__PURE__ */ Z(we, {
1745
+ icon: /* @__PURE__ */ Z(rt, {}),
1746
+ breadcrumbs: /* @__PURE__ */ Z(Oe, { workspaceId: e }),
1747
+ title: n("setup_parameters_title"),
1748
+ description: n("setup_parameters_description")
1749
+ }),
1750
+ /* @__PURE__ */ Z(en, {
1751
+ workspaceId: e,
1752
+ filter: pe,
1753
+ onFilterChange: me,
1754
+ filterActive: W,
1755
+ hasBranches: d.length > 0,
1756
+ treeReady: le,
1757
+ selectionStore: p,
1758
+ knownParamIds: U,
1759
+ paramIdsInTreeOrder: T,
1760
+ onAddRootBranch: () => {
1761
+ B({ mode: "create-root" });
1762
+ },
1763
+ onAddFromTemplate: () => {
1764
+ x(!0);
1765
+ },
1766
+ onDeleteSelection: () => {
1767
+ V(!0);
1768
+ },
1769
+ onDeleteReadings: () => {
1770
+ let e = p.getSnapshot(), t = new Set([...e.selectedParamIds].filter((e) => U.has(e)));
1771
+ for (let n of e.selectedBranchIds) for (let e of w.subtreeByBranchId.get(n)?.paramIds ?? []) t.add(e);
1772
+ if (t.size === 0) {
1773
+ o.info(n("storage_delete_preview_nothing"));
1774
+ return;
1775
+ }
1776
+ if (t.size > ct) {
1777
+ o.info(n("storage_delete_selection_too_large", { max: String(ct) }));
1778
+ return;
1779
+ }
1780
+ H([...t]);
1781
+ },
1782
+ onExpandAll: ve,
1783
+ onCollapseAll: ye,
1784
+ showDetails: v,
1785
+ onShowDetailsChange: C,
1786
+ live: E,
1787
+ readPending: A,
1788
+ writePending: j,
1789
+ displayMode: g,
1790
+ runRead: M,
1791
+ onLiveChange: D,
1792
+ onDisplayModeChange: te
1793
+ }),
1794
+ u.isLoading ? /* @__PURE__ */ Q("div", {
1795
+ className: "space-y-1 p-4",
1796
+ children: [
1797
+ /* @__PURE__ */ Z(ee, { className: "h-5 w-2/3" }),
1798
+ /* @__PURE__ */ Z(ee, { className: "h-5 w-1/2" }),
1799
+ /* @__PURE__ */ Z(ee, { className: "h-5 w-3/5" })
1800
+ ]
1801
+ }) : d.length === 0 ? /* @__PURE__ */ Q("div", {
1802
+ className: "space-y-2 p-4",
1803
+ children: [/* @__PURE__ */ Z("p", {
1804
+ className: "text-sm text-muted-foreground",
1805
+ children: n("setup_parameters_empty")
1806
+ }), /* @__PURE__ */ Q(N, {
1807
+ type: "button",
1808
+ size: "sm",
1809
+ onClick: () => {
1810
+ B({ mode: "create-root" });
1811
+ },
1812
+ children: [/* @__PURE__ */ Z(at, { "data-icon": "inline-start" }), n("parameter_add_root_branch")]
1813
+ })]
1814
+ }) : he.length === 0 && W ? /* @__PURE__ */ Z("p", {
1815
+ className: "p-4 text-sm text-muted-foreground",
1816
+ children: n("parameter_filter_empty")
1817
+ }) : /* @__PURE__ */ Z(Rt, {
1818
+ store: p,
1819
+ children: /* @__PURE__ */ Z(St, {
1820
+ store: k,
1821
+ children: /* @__PURE__ */ Z(Et, {
1822
+ mode: g,
1823
+ children: /* @__PURE__ */ Z(wt, {
1824
+ value: re,
1825
+ children: /* @__PURE__ */ Z("div", {
1826
+ className: "flex flex-col px-4 py-2 text-sm",
1827
+ children: he.map((t) => t.kind === "branch" ? /* @__PURE__ */ Z(tn, {
1828
+ id: t.id,
1829
+ name: t.name,
1830
+ depth: t.depth,
1831
+ paramCount: t.paramCount,
1832
+ hasChildren: t.hasChildren,
1833
+ open: W || ge.has(t.id),
1834
+ menuOpen: m === t.id,
1835
+ onToggleExpand: _e,
1836
+ onBranchCheck: ue,
1837
+ onMenuOpenChange: xe,
1838
+ onAddChildBranch: Se,
1839
+ onAddParam: Ce,
1840
+ onRename: Te
1841
+ }, t.id) : /* @__PURE__ */ Z(rn, {
1842
+ id: t.id,
1843
+ branchId: t.branchId,
1844
+ depth: t.depth,
1845
+ icon: t.icon,
1846
+ units: t.units,
1847
+ disabled: t.disabled,
1848
+ backgroundReadingPeriodMs: t.backgroundReadingPeriodMs,
1849
+ deviceLog: t.deviceLog,
1850
+ lastReadingReceivedAt: t.lastReadingReceivedAt,
1851
+ nextReadingDueAt: t.nextReadingDueAt,
1852
+ parts: t.parts,
1853
+ details: G?.get(t.id) ?? null,
1854
+ showDetails: v,
1855
+ workspaceId: e,
1856
+ writable: t.writable,
1857
+ valueType: t.valueType,
1858
+ onParamCheck: de
1859
+ }, t.id))
1860
+ })
1861
+ })
1862
+ })
1863
+ })
1864
+ }),
1865
+ /* @__PURE__ */ Z(z, {
1866
+ open: ie != null,
1867
+ onOpenChange: (e) => {
1868
+ e || B(null);
1869
+ },
1870
+ children: /* @__PURE__ */ Z(R, { children: ie == null ? null : /* @__PURE__ */ Z(kt, {
1871
+ workspaceId: e,
1872
+ dialog: ie,
1873
+ onCancel: () => {
1874
+ B(null);
1875
+ },
1876
+ onDone: (e) => {
1877
+ B(null), o.success(n(e === "rename" ? "parameter_branch_rename_toast" : "parameter_branch_create_toast"));
1878
+ }
1879
+ }) })
1880
+ }),
1881
+ /* @__PURE__ */ Z(z, {
1882
+ open: b,
1883
+ onOpenChange: x,
1884
+ children: /* @__PURE__ */ Z(R, { children: b ? /* @__PURE__ */ Z(Gt, {
1885
+ workspaceId: e,
1886
+ onCancel: () => {
1887
+ x(!1);
1888
+ },
1889
+ onDone: () => {
1890
+ x(!1), o.success(n("parameter_from_template_toast"));
1891
+ }
1892
+ }) : null })
1893
+ }),
1894
+ /* @__PURE__ */ Z(z, {
1895
+ open: oe != null,
1896
+ onOpenChange: (e) => {
1897
+ e || H(null);
1898
+ },
1899
+ children: /* @__PURE__ */ Z(R, { children: oe == null ? null : /* @__PURE__ */ Z(Re, {
1900
+ workspaceId: e,
1901
+ scope: {
1902
+ kind: "parameters",
1903
+ parameterIds: oe,
1904
+ label: n("storage_selected_parameters", { count: String(oe.length) })
1905
+ },
1906
+ onCancel: () => {
1907
+ H(null);
1908
+ },
1909
+ onStarted: () => {
1910
+ H(null), o.success(n("storage_deletion_started"));
1911
+ }
1912
+ }) })
1913
+ }),
1914
+ /* @__PURE__ */ Z(z, {
1915
+ open: ae,
1916
+ onOpenChange: V,
1917
+ children: /* @__PURE__ */ Z(R, { children: ae ? /* @__PURE__ */ Z(jt, {
1918
+ workspaceId: e,
1919
+ paramIds: [...p.getSnapshot().selectedParamIds].filter((e) => U.has(e)),
1920
+ branchIds: [...p.getSnapshot().selectedBranchIds].filter((e) => ce.has(e)),
1921
+ subtreeByBranchId: w.subtreeByBranchId,
1922
+ revisions: Ee,
1923
+ onCancel: () => {
1924
+ V(!1);
1925
+ },
1926
+ onDeleted: () => {
1927
+ fe(), V(!1), o.success(n("parameter_delete_toast"));
1928
+ }
1929
+ }) : null })
1930
+ })
1931
+ ]
1932
+ });
1933
+ }
1934
+ //#endregion
1935
+ export { On as n, kn as t };