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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (981) 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-sheAq-pb.js +414 -0
  6. package/dist/alarm-rule-dialog-D_ml7V0v.js +417 -0
  7. package/dist/alarm-rule-lists-DaA4soF4.js +342 -0
  8. package/dist/alarm-rules-page-OFjOQ-dm.js +118 -0
  9. package/dist/alert-dialog-B60PF7S9.js +891 -0
  10. package/dist/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  11. package/dist/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  12. package/dist/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  13. package/dist/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  14. package/dist/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  15. package/dist/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  16. package/dist/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  17. package/dist/base-revision-DYCOZS0R.js +103 -0
  18. package/dist/breadcrumbs-D2u8KZQo.js +20 -0
  19. package/dist/catalog-list-LXuRix0-.js +75 -0
  20. package/dist/code-editor-BMSyzAxu.js +142 -0
  21. package/dist/dashboard-bindings.js +25 -0
  22. package/dist/dashboards-page-wnmmLpVC.js +1040 -0
  23. package/dist/de-hkEr2usK.js +4577 -0
  24. package/dist/diagnostic-text-CsbENUNI.js +116 -0
  25. package/dist/dialogs-AtIYlNSy.js +722 -0
  26. package/dist/dialogs-DsHbKgZD.js +7753 -0
  27. package/dist/display-DSyEwQt8.js +77 -0
  28. package/dist/editor-language-CTfJBXMs.js +435 -0
  29. package/dist/editor-page-BWbVGJvU.js +1337 -0
  30. package/dist/en-UW_k-Bd6.js +4577 -0
  31. package/dist/entity-controls-BCuRx882.js +71 -0
  32. package/dist/errors-Cawve9yD.js +25 -0
  33. package/dist/footer-B9XdpVzq.js +10564 -0
  34. package/dist/host.js +8991 -0
  35. package/dist/i18n-Dt6xbSK6.js +388 -0
  36. package/dist/i18n.js +1 -0
  37. package/dist/index.js +18922 -0
  38. package/dist/lat-lng-Bl77AGSO.js +10 -0
  39. package/dist/list-page-agHupfNb.js +356 -0
  40. package/dist/location-map-renderer-kxU6cgFl.js +145 -0
  41. package/dist/location-picker-renderer-B1_-n8lf.js +104 -0
  42. package/dist/model-tpg_xpFB.js +8 -0
  43. package/dist/notice-card-CH28rYUt.js +242 -0
  44. package/dist/page-CZPHJUmz.js +296 -0
  45. package/dist/page-DpdkOGGb.js +449 -0
  46. package/dist/page-HCGXXGjy.js +507 -0
  47. package/dist/panel-BCwBlB_h.js +949 -0
  48. package/dist/parameter-values.js +202 -0
  49. package/dist/pl-BokvsP3J.js +4577 -0
  50. package/dist/presence-code-cT6wxlTg.js +73 -0
  51. package/dist/query-gate-DqmHsZ07.js +33 -0
  52. package/dist/quick-report-DEqqwQxR.js +33336 -0
  53. package/dist/retention-DZ0reGGe.js +60 -0
  54. package/dist/retention-note-nequESpo.js +40 -0
  55. package/dist/rolldown-runtime-CGnMp29N.js +10 -0
  56. package/dist/ru-DZSlsRHq.js +4577 -0
  57. package/dist/run-text-DneX9rWh.js +112 -0
  58. package/dist/search-DP9_alSQ.js +262 -0
  59. package/dist/sections-BU7NKUOQ.js +76 -0
  60. package/dist/select-Te6Qv1Zu.js +533 -0
  61. package/dist/spinner-BRcNKwjH.js +511 -0
  62. package/dist/src/audit/checkpoint-presentation.d.ts +2 -0
  63. package/dist/src/audit/checkpoints.d.ts +23 -0
  64. package/dist/src/audit/history-model.d.ts +3 -0
  65. package/dist/src/audit/history-page.d.ts +13 -0
  66. package/dist/src/audit/history-presentation.d.ts +21 -0
  67. package/dist/src/audit/history-search.d.ts +6 -0
  68. package/dist/src/audit/revert-checkpoint-dialog.d.ts +29 -0
  69. package/dist/src/audit/revert-device-confirmation.d.ts +20 -0
  70. package/dist/src/audit/setup-change-list.d.ts +5 -0
  71. package/dist/src/brand/brand-link.d.ts +7 -0
  72. package/dist/src/brand/local-brand-link.d.ts +11 -0
  73. package/dist/src/brand/overvis-logo.d.ts +10 -0
  74. package/dist/src/brand/workspace-brand-link.d.ts +10 -0
  75. package/dist/src/brand/workspace-favicon.d.ts +4 -0
  76. package/dist/src/chrome/language-switcher.d.ts +3 -0
  77. package/dist/src/chrome/mode-toggle.d.ts +1 -0
  78. package/dist/src/chrome/text-link.d.ts +8 -0
  79. package/dist/src/code-editor/code-editor.d.ts +55 -0
  80. package/dist/src/code-editor/formula-input.d.ts +20 -0
  81. package/dist/src/code-editor/json-positions.d.ts +26 -0
  82. package/dist/src/code-editor/language-features.d.ts +122 -0
  83. package/dist/src/code-editor/taskfile-language.d.ts +10 -0
  84. package/dist/src/dev-fatal/error-boundary.d.ts +10 -0
  85. package/dist/src/dev-fatal/format-console-error.d.ts +5 -0
  86. package/dist/src/dev-fatal/install.d.ts +6 -0
  87. package/dist/src/dev-fatal/is-enabled.d.ts +7 -0
  88. package/dist/src/dev-fatal/overlay.d.ts +8 -0
  89. package/dist/src/dev-fatal/report-render-error.d.ts +6 -0
  90. package/dist/src/dev-fatal/should-ignore.d.ts +5 -0
  91. package/dist/src/entry/host/index.d.ts +43 -0
  92. package/dist/src/entry/ui/index.d.ts +80 -0
  93. package/dist/src/form/api-error.d.ts +11 -0
  94. package/dist/src/form/fields/checkbox-field.d.ts +9 -0
  95. package/dist/src/form/fields/dashboard-picker-field.d.ts +13 -0
  96. package/dist/src/form/fields/formula-field.d.ts +11 -0
  97. package/dist/src/form/fields/otp-field.d.ts +14 -0
  98. package/dist/src/form/fields/parameter-picker-field.d.ts +3 -0
  99. package/dist/src/form/fields/text-field.d.ts +9 -0
  100. package/dist/src/form/fields/textarea-field.d.ts +6 -0
  101. package/dist/src/form/focus-first-invalid-field.d.ts +4 -0
  102. package/dist/src/form/form-contexts.d.ts +1 -0
  103. package/dist/src/form/form-error-banner.d.ts +4 -0
  104. package/dist/src/form/form-root.d.ts +18 -0
  105. package/dist/src/form/format-field-errors.d.ts +10 -0
  106. package/dist/src/form/index.d.ts +36 -0
  107. package/dist/src/form/map-trpc-to-form-errors.d.ts +34 -0
  108. package/dist/src/form/message.d.ts +5 -0
  109. package/dist/src/form/mutation-form-validators.d.ts +41 -0
  110. package/dist/src/form/submit-button.d.ts +13 -0
  111. package/dist/src/form/trpc-error-data.d.ts +19 -0
  112. package/dist/src/form/use-app-form.d.ts +89 -0
  113. package/dist/src/hooks/use-closed-minute.d.ts +6 -0
  114. package/dist/src/hooks/use-media-query.d.ts +2 -0
  115. package/dist/src/hooks/use-mobile.d.ts +1 -0
  116. package/dist/src/hooks/use-now.d.ts +5 -0
  117. package/dist/src/i18n/catalogs/de/action.d.ts +14 -0
  118. package/dist/src/i18n/catalogs/de/alarm.d.ts +79 -0
  119. package/dist/src/i18n/catalogs/de/api-error.d.ts +261 -0
  120. package/dist/src/i18n/catalogs/de/audit.d.ts +133 -0
  121. package/dist/src/i18n/catalogs/de/automation-editor.d.ts +220 -0
  122. package/dist/src/i18n/catalogs/de/automation-language.d.ts +249 -0
  123. package/dist/src/i18n/catalogs/de/automation.d.ts +59 -0
  124. package/dist/src/i18n/catalogs/de/brand.d.ts +4 -0
  125. package/dist/src/i18n/catalogs/de/cold-room.d.ts +26 -0
  126. package/dist/src/i18n/catalogs/de/copyable.d.ts +6 -0
  127. package/dist/src/i18n/catalogs/de/dashboard.d.ts +92 -0
  128. package/dist/src/i18n/catalogs/de/device-preset.d.ts +71 -0
  129. package/dist/src/i18n/catalogs/de/document.d.ts +52 -0
  130. package/dist/src/i18n/catalogs/de/edge-program-language.d.ts +165 -0
  131. package/dist/src/i18n/catalogs/de/edge-program.d.ts +238 -0
  132. package/dist/src/i18n/catalogs/de/endpoint.d.ts +112 -0
  133. package/dist/src/i18n/catalogs/de/error.d.ts +34 -0
  134. package/dist/src/i18n/catalogs/de/fleet.d.ts +247 -0
  135. package/dist/src/i18n/catalogs/de/formula.d.ts +35 -0
  136. package/dist/src/i18n/catalogs/de/graphics.d.ts +417 -0
  137. package/dist/src/i18n/catalogs/de/language.d.ts +10 -0
  138. package/dist/src/i18n/catalogs/de/messages.d.ts +19 -0
  139. package/dist/src/i18n/catalogs/de/parameter.d.ts +373 -0
  140. package/dist/src/i18n/catalogs/de/pull.d.ts +11 -0
  141. package/dist/src/i18n/catalogs/de/report.d.ts +377 -0
  142. package/dist/src/i18n/catalogs/de/setup.d.ts +65 -0
  143. package/dist/src/i18n/catalogs/de/starter.d.ts +38 -0
  144. package/dist/src/i18n/catalogs/de/storage.d.ts +124 -0
  145. package/dist/src/i18n/catalogs/de/symbols-hvac.d.ts +142 -0
  146. package/dist/src/i18n/catalogs/de/symbols-power.d.ts +122 -0
  147. package/dist/src/i18n/catalogs/de/symbols-quarry.d.ts +81 -0
  148. package/dist/src/i18n/catalogs/de/symbols.d.ts +676 -0
  149. package/dist/src/i18n/catalogs/de/theme.d.ts +4 -0
  150. package/dist/src/i18n/catalogs/de/ui.d.ts +37 -0
  151. package/dist/src/i18n/catalogs/de/workspace.d.ts +19 -0
  152. package/dist/src/i18n/catalogs/de.d.ts +4510 -0
  153. package/dist/src/i18n/catalogs/en/action.d.ts +14 -0
  154. package/dist/src/i18n/catalogs/en/alarm.d.ts +79 -0
  155. package/dist/src/i18n/catalogs/en/api-error.d.ts +261 -0
  156. package/dist/src/i18n/catalogs/en/audit.d.ts +133 -0
  157. package/dist/src/i18n/catalogs/en/automation-editor.d.ts +220 -0
  158. package/dist/src/i18n/catalogs/en/automation-language.d.ts +249 -0
  159. package/dist/src/i18n/catalogs/en/automation.d.ts +59 -0
  160. package/dist/src/i18n/catalogs/en/brand.d.ts +4 -0
  161. package/dist/src/i18n/catalogs/en/cold-room.d.ts +26 -0
  162. package/dist/src/i18n/catalogs/en/copyable.d.ts +6 -0
  163. package/dist/src/i18n/catalogs/en/dashboard.d.ts +92 -0
  164. package/dist/src/i18n/catalogs/en/device-preset.d.ts +71 -0
  165. package/dist/src/i18n/catalogs/en/document.d.ts +52 -0
  166. package/dist/src/i18n/catalogs/en/edge-program-language.d.ts +165 -0
  167. package/dist/src/i18n/catalogs/en/edge-program.d.ts +238 -0
  168. package/dist/src/i18n/catalogs/en/endpoint.d.ts +112 -0
  169. package/dist/src/i18n/catalogs/en/error.d.ts +34 -0
  170. package/dist/src/i18n/catalogs/en/fleet.d.ts +247 -0
  171. package/dist/src/i18n/catalogs/en/formula.d.ts +35 -0
  172. package/dist/src/i18n/catalogs/en/graphics.d.ts +417 -0
  173. package/dist/src/i18n/catalogs/en/language.d.ts +10 -0
  174. package/dist/src/i18n/catalogs/en/messages.d.ts +19 -0
  175. package/dist/src/i18n/catalogs/en/parameter.d.ts +373 -0
  176. package/dist/src/i18n/catalogs/en/pull.d.ts +11 -0
  177. package/dist/src/i18n/catalogs/en/report.d.ts +377 -0
  178. package/dist/src/i18n/catalogs/en/setup.d.ts +65 -0
  179. package/dist/src/i18n/catalogs/en/starter.d.ts +38 -0
  180. package/dist/src/i18n/catalogs/en/storage.d.ts +124 -0
  181. package/dist/src/i18n/catalogs/en/symbols-hvac.d.ts +142 -0
  182. package/dist/src/i18n/catalogs/en/symbols-power.d.ts +122 -0
  183. package/dist/src/i18n/catalogs/en/symbols-quarry.d.ts +81 -0
  184. package/dist/src/i18n/catalogs/en/symbols.d.ts +676 -0
  185. package/dist/src/i18n/catalogs/en/theme.d.ts +4 -0
  186. package/dist/src/i18n/catalogs/en/ui.d.ts +37 -0
  187. package/dist/src/i18n/catalogs/en/workspace.d.ts +19 -0
  188. package/dist/src/i18n/catalogs/en.d.ts +4510 -0
  189. package/dist/src/i18n/catalogs/pl/action.d.ts +14 -0
  190. package/dist/src/i18n/catalogs/pl/alarm.d.ts +79 -0
  191. package/dist/src/i18n/catalogs/pl/api-error.d.ts +261 -0
  192. package/dist/src/i18n/catalogs/pl/audit.d.ts +133 -0
  193. package/dist/src/i18n/catalogs/pl/automation-editor.d.ts +220 -0
  194. package/dist/src/i18n/catalogs/pl/automation-language.d.ts +249 -0
  195. package/dist/src/i18n/catalogs/pl/automation.d.ts +59 -0
  196. package/dist/src/i18n/catalogs/pl/brand.d.ts +4 -0
  197. package/dist/src/i18n/catalogs/pl/cold-room.d.ts +26 -0
  198. package/dist/src/i18n/catalogs/pl/copyable.d.ts +6 -0
  199. package/dist/src/i18n/catalogs/pl/dashboard.d.ts +92 -0
  200. package/dist/src/i18n/catalogs/pl/device-preset.d.ts +71 -0
  201. package/dist/src/i18n/catalogs/pl/document.d.ts +52 -0
  202. package/dist/src/i18n/catalogs/pl/edge-program-language.d.ts +165 -0
  203. package/dist/src/i18n/catalogs/pl/edge-program.d.ts +238 -0
  204. package/dist/src/i18n/catalogs/pl/endpoint.d.ts +112 -0
  205. package/dist/src/i18n/catalogs/pl/error.d.ts +34 -0
  206. package/dist/src/i18n/catalogs/pl/fleet.d.ts +247 -0
  207. package/dist/src/i18n/catalogs/pl/formula.d.ts +35 -0
  208. package/dist/src/i18n/catalogs/pl/graphics.d.ts +417 -0
  209. package/dist/src/i18n/catalogs/pl/language.d.ts +10 -0
  210. package/dist/src/i18n/catalogs/pl/messages.d.ts +19 -0
  211. package/dist/src/i18n/catalogs/pl/parameter.d.ts +373 -0
  212. package/dist/src/i18n/catalogs/pl/pull.d.ts +11 -0
  213. package/dist/src/i18n/catalogs/pl/report.d.ts +377 -0
  214. package/dist/src/i18n/catalogs/pl/setup.d.ts +65 -0
  215. package/dist/src/i18n/catalogs/pl/starter.d.ts +38 -0
  216. package/dist/src/i18n/catalogs/pl/storage.d.ts +124 -0
  217. package/dist/src/i18n/catalogs/pl/symbols-hvac.d.ts +142 -0
  218. package/dist/src/i18n/catalogs/pl/symbols-power.d.ts +122 -0
  219. package/dist/src/i18n/catalogs/pl/symbols-quarry.d.ts +81 -0
  220. package/dist/src/i18n/catalogs/pl/symbols.d.ts +676 -0
  221. package/dist/src/i18n/catalogs/pl/theme.d.ts +4 -0
  222. package/dist/src/i18n/catalogs/pl/ui.d.ts +37 -0
  223. package/dist/src/i18n/catalogs/pl/workspace.d.ts +19 -0
  224. package/dist/src/i18n/catalogs/pl.d.ts +4510 -0
  225. package/dist/src/i18n/catalogs/ru/action.d.ts +14 -0
  226. package/dist/src/i18n/catalogs/ru/alarm.d.ts +79 -0
  227. package/dist/src/i18n/catalogs/ru/api-error.d.ts +261 -0
  228. package/dist/src/i18n/catalogs/ru/audit.d.ts +133 -0
  229. package/dist/src/i18n/catalogs/ru/automation-editor.d.ts +220 -0
  230. package/dist/src/i18n/catalogs/ru/automation-language.d.ts +249 -0
  231. package/dist/src/i18n/catalogs/ru/automation.d.ts +59 -0
  232. package/dist/src/i18n/catalogs/ru/brand.d.ts +4 -0
  233. package/dist/src/i18n/catalogs/ru/cold-room.d.ts +26 -0
  234. package/dist/src/i18n/catalogs/ru/copyable.d.ts +6 -0
  235. package/dist/src/i18n/catalogs/ru/dashboard.d.ts +92 -0
  236. package/dist/src/i18n/catalogs/ru/device-preset.d.ts +71 -0
  237. package/dist/src/i18n/catalogs/ru/document.d.ts +52 -0
  238. package/dist/src/i18n/catalogs/ru/edge-program-language.d.ts +165 -0
  239. package/dist/src/i18n/catalogs/ru/edge-program.d.ts +238 -0
  240. package/dist/src/i18n/catalogs/ru/endpoint.d.ts +112 -0
  241. package/dist/src/i18n/catalogs/ru/error.d.ts +34 -0
  242. package/dist/src/i18n/catalogs/ru/fleet.d.ts +247 -0
  243. package/dist/src/i18n/catalogs/ru/formula.d.ts +35 -0
  244. package/dist/src/i18n/catalogs/ru/graphics.d.ts +417 -0
  245. package/dist/src/i18n/catalogs/ru/language.d.ts +10 -0
  246. package/dist/src/i18n/catalogs/ru/messages.d.ts +19 -0
  247. package/dist/src/i18n/catalogs/ru/parameter.d.ts +373 -0
  248. package/dist/src/i18n/catalogs/ru/pull.d.ts +11 -0
  249. package/dist/src/i18n/catalogs/ru/report.d.ts +377 -0
  250. package/dist/src/i18n/catalogs/ru/setup.d.ts +65 -0
  251. package/dist/src/i18n/catalogs/ru/starter.d.ts +38 -0
  252. package/dist/src/i18n/catalogs/ru/storage.d.ts +124 -0
  253. package/dist/src/i18n/catalogs/ru/symbols-hvac.d.ts +142 -0
  254. package/dist/src/i18n/catalogs/ru/symbols-power.d.ts +122 -0
  255. package/dist/src/i18n/catalogs/ru/symbols-quarry.d.ts +81 -0
  256. package/dist/src/i18n/catalogs/ru/symbols.d.ts +676 -0
  257. package/dist/src/i18n/catalogs/ru/theme.d.ts +4 -0
  258. package/dist/src/i18n/catalogs/ru/ui.d.ts +37 -0
  259. package/dist/src/i18n/catalogs/ru/workspace.d.ts +19 -0
  260. package/dist/src/i18n/catalogs/ru.d.ts +4510 -0
  261. package/dist/src/i18n/catalogs/uk/action.d.ts +14 -0
  262. package/dist/src/i18n/catalogs/uk/alarm.d.ts +79 -0
  263. package/dist/src/i18n/catalogs/uk/api-error.d.ts +261 -0
  264. package/dist/src/i18n/catalogs/uk/audit.d.ts +133 -0
  265. package/dist/src/i18n/catalogs/uk/automation-editor.d.ts +220 -0
  266. package/dist/src/i18n/catalogs/uk/automation-language.d.ts +249 -0
  267. package/dist/src/i18n/catalogs/uk/automation.d.ts +59 -0
  268. package/dist/src/i18n/catalogs/uk/brand.d.ts +4 -0
  269. package/dist/src/i18n/catalogs/uk/cold-room.d.ts +26 -0
  270. package/dist/src/i18n/catalogs/uk/copyable.d.ts +6 -0
  271. package/dist/src/i18n/catalogs/uk/dashboard.d.ts +92 -0
  272. package/dist/src/i18n/catalogs/uk/device-preset.d.ts +71 -0
  273. package/dist/src/i18n/catalogs/uk/document.d.ts +52 -0
  274. package/dist/src/i18n/catalogs/uk/edge-program-language.d.ts +165 -0
  275. package/dist/src/i18n/catalogs/uk/edge-program.d.ts +238 -0
  276. package/dist/src/i18n/catalogs/uk/endpoint.d.ts +112 -0
  277. package/dist/src/i18n/catalogs/uk/error.d.ts +34 -0
  278. package/dist/src/i18n/catalogs/uk/fleet.d.ts +247 -0
  279. package/dist/src/i18n/catalogs/uk/formula.d.ts +35 -0
  280. package/dist/src/i18n/catalogs/uk/graphics.d.ts +417 -0
  281. package/dist/src/i18n/catalogs/uk/language.d.ts +10 -0
  282. package/dist/src/i18n/catalogs/uk/messages.d.ts +19 -0
  283. package/dist/src/i18n/catalogs/uk/parameter.d.ts +373 -0
  284. package/dist/src/i18n/catalogs/uk/pull.d.ts +11 -0
  285. package/dist/src/i18n/catalogs/uk/report.d.ts +377 -0
  286. package/dist/src/i18n/catalogs/uk/setup.d.ts +65 -0
  287. package/dist/src/i18n/catalogs/uk/starter.d.ts +38 -0
  288. package/dist/src/i18n/catalogs/uk/storage.d.ts +124 -0
  289. package/dist/src/i18n/catalogs/uk/symbols-hvac.d.ts +142 -0
  290. package/dist/src/i18n/catalogs/uk/symbols-power.d.ts +122 -0
  291. package/dist/src/i18n/catalogs/uk/symbols-quarry.d.ts +81 -0
  292. package/dist/src/i18n/catalogs/uk/symbols.d.ts +676 -0
  293. package/dist/src/i18n/catalogs/uk/theme.d.ts +4 -0
  294. package/dist/src/i18n/catalogs/uk/ui.d.ts +37 -0
  295. package/dist/src/i18n/catalogs/uk/workspace.d.ts +19 -0
  296. package/dist/src/i18n/catalogs/uk.d.ts +4510 -0
  297. package/dist/src/i18n/index.d.ts +4 -0
  298. package/dist/src/i18n/locale.d.ts +11 -0
  299. package/dist/src/i18n/messages.d.ts +12 -0
  300. package/dist/src/i18n/use-language-change.d.ts +5 -0
  301. package/dist/src/i18n/use-locale.d.ts +1 -0
  302. package/dist/src/index.d.ts +151 -0
  303. package/dist/src/lib/utils.d.ts +2 -0
  304. package/dist/src/theme-provider.d.ts +16 -0
  305. package/dist/src/trpc.d.ts +37 -0
  306. package/dist/src/ui/accordion.d.ts +6 -0
  307. package/dist/src/ui/alert-dialog.d.ts +20 -0
  308. package/dist/src/ui/alert.d.ts +10 -0
  309. package/dist/src/ui/aspect-ratio.d.ts +6 -0
  310. package/dist/src/ui/attachment.d.ts +23 -0
  311. package/dist/src/ui/avatar.d.ts +11 -0
  312. package/dist/src/ui/badge.d.ts +6 -0
  313. package/dist/src/ui/breadcrumb.d.ts +10 -0
  314. package/dist/src/ui/bubble.d.ts +16 -0
  315. package/dist/src/ui/button-group.d.ts +10 -0
  316. package/dist/src/ui/button.d.ts +8 -0
  317. package/dist/src/ui/calendar.d.ts +10 -0
  318. package/dist/src/ui/card.d.ts +11 -0
  319. package/dist/src/ui/carousel.d.ts +28 -0
  320. package/dist/src/ui/chart.d.ts +60 -0
  321. package/dist/src/ui/checkbox.d.ts +3 -0
  322. package/dist/src/ui/collapsible.d.ts +5 -0
  323. package/dist/src/ui/combobox.d.ts +24 -0
  324. package/dist/src/ui/command.d.ts +19 -0
  325. package/dist/src/ui/content-overlay/dismiss.d.ts +10 -0
  326. package/dist/src/ui/content-overlay/region.d.ts +37 -0
  327. package/dist/src/ui/content-overlay/root.d.ts +3 -0
  328. package/dist/src/ui/content-overlay/tab-wrap.d.ts +6 -0
  329. package/dist/src/ui/context-menu.d.ts +28 -0
  330. package/dist/src/ui/data-table.d.ts +38 -0
  331. package/dist/src/ui/date-time-picker.d.ts +30 -0
  332. package/dist/src/ui/dialog.d.ts +19 -0
  333. package/dist/src/ui/direction.d.ts +3 -0
  334. package/dist/src/ui/drawer.d.ts +18 -0
  335. package/dist/src/ui/dropdown-menu.d.ts +29 -0
  336. package/dist/src/ui/empty.d.ts +11 -0
  337. package/dist/src/ui/field.d.ts +24 -0
  338. package/dist/src/ui/gauge-bar.d.ts +43 -0
  339. package/dist/src/ui/gauge.d.ts +24 -0
  340. package/dist/src/ui/hover-card.d.ts +5 -0
  341. package/dist/src/ui/input-group.d.ts +18 -0
  342. package/dist/src/ui/input-otp.d.ts +11 -0
  343. package/dist/src/ui/input.d.ts +3 -0
  344. package/dist/src/ui/item.d.ts +22 -0
  345. package/dist/src/ui/kbd.d.ts +3 -0
  346. package/dist/src/ui/label.d.ts +3 -0
  347. package/dist/src/ui/marker.d.ts +10 -0
  348. package/dist/src/ui/menubar.d.ts +28 -0
  349. package/dist/src/ui/message-history/context.d.ts +51 -0
  350. package/dist/src/ui/message-history/emit.d.ts +27 -0
  351. package/dist/src/ui/message-history/legacy-content.d.ts +6 -0
  352. package/dist/src/ui/message-history/legacy.d.ts +7 -0
  353. package/dist/src/ui/message-history/model.d.ts +22 -0
  354. package/dist/src/ui/message-history/panel.d.ts +6 -0
  355. package/dist/src/ui/message-history/store.d.ts +26 -0
  356. package/dist/src/ui/message-history/toast.d.ts +7 -0
  357. package/dist/src/ui/message-scroller.d.ts +20 -0
  358. package/dist/src/ui/message.d.ts +10 -0
  359. package/dist/src/ui/native-select.d.ts +8 -0
  360. package/dist/src/ui/navigation-menu.d.ts +11 -0
  361. package/dist/src/ui/notice-card.d.ts +61 -0
  362. package/dist/src/ui/page-header.d.ts +21 -0
  363. package/dist/src/ui/page-title.d.ts +5 -0
  364. package/dist/src/ui/pagination.d.ts +17 -0
  365. package/dist/src/ui/popover.d.ts +9 -0
  366. package/dist/src/ui/progress.d.ts +7 -0
  367. package/dist/src/ui/questionnaire.d.ts +19 -0
  368. package/dist/src/ui/radio-group.d.ts +5 -0
  369. package/dist/src/ui/resizable.d.ts +7 -0
  370. package/dist/src/ui/scroll-area.d.ts +5 -0
  371. package/dist/src/ui/select.d.ts +11 -0
  372. package/dist/src/ui/separator.d.ts +3 -0
  373. package/dist/src/ui/sheet.d.ts +14 -0
  374. package/dist/src/ui/sidebar.d.ts +63 -0
  375. package/dist/src/ui/skeleton.d.ts +7 -0
  376. package/dist/src/ui/slider.d.ts +3 -0
  377. package/dist/src/ui/sonner.d.ts +9 -0
  378. package/dist/src/ui/sparkline.d.ts +31 -0
  379. package/dist/src/ui/spinner.d.ts +2 -0
  380. package/dist/src/ui/svg-diagram/dom.d.ts +6 -0
  381. package/dist/src/ui/svg-diagram/types.d.ts +13 -0
  382. package/dist/src/ui/svg-diagram.d.ts +8 -0
  383. package/dist/src/ui/switch.d.ts +5 -0
  384. package/dist/src/ui/table.d.ts +10 -0
  385. package/dist/src/ui/tabs.d.ts +11 -0
  386. package/dist/src/ui/textarea.d.ts +3 -0
  387. package/dist/src/ui/theme-scope.d.ts +11 -0
  388. package/dist/src/ui/toggle-group.d.ts +11 -0
  389. package/dist/src/ui/toggle.d.ts +8 -0
  390. package/dist/src/ui/tooltip.d.ts +6 -0
  391. package/dist/src/version.d.ts +2 -0
  392. package/dist/src/workspace/access-label.d.ts +2 -0
  393. package/dist/src/workspace/alarms/actions.d.ts +19 -0
  394. package/dist/src/workspace/alarms/alarm-list.d.ts +65 -0
  395. package/dist/src/workspace/alarms/history.d.ts +17 -0
  396. package/dist/src/workspace/alarms/model.d.ts +29 -0
  397. package/dist/src/workspace/alarms/nav.d.ts +15 -0
  398. package/dist/src/workspace/alarms/page.d.ts +10 -0
  399. package/dist/src/workspace/alarms/provider.d.ts +30 -0
  400. package/dist/src/workspace/alarms/search.d.ts +8 -0
  401. package/dist/src/workspace/alarms/sound.d.ts +9 -0
  402. package/dist/src/workspace/automations/diagnostic-text.d.ts +6 -0
  403. package/dist/src/workspace/automations/editor-language.d.ts +13 -0
  404. package/dist/src/workspace/automations/item-descriptions.d.ts +3 -0
  405. package/dist/src/workspace/automations/parameter-names.d.ts +2 -0
  406. package/dist/src/workspace/automations/run-text.d.ts +18 -0
  407. package/dist/src/workspace/automations/trace-view.d.ts +24 -0
  408. package/dist/src/workspace/automations/use-catalog.d.ts +10 -0
  409. package/dist/src/workspace/caches.d.ts +41 -0
  410. package/dist/src/workspace/context.d.ts +71 -0
  411. package/dist/src/workspace/copyable-id.d.ts +4 -0
  412. package/dist/src/workspace/dashboards/actions-menu.d.ts +4 -0
  413. package/dist/src/workspace/dashboards/anchor-scroll.d.ts +11 -0
  414. package/dist/src/workspace/dashboards/bindings.d.ts +26 -0
  415. package/dist/src/workspace/dashboards/configuration-rename-dialog.d.ts +10 -0
  416. package/dist/src/workspace/dashboards/configuration-required.d.ts +10 -0
  417. package/dist/src/workspace/dashboards/configuration-update-queue.d.ts +2 -0
  418. package/dist/src/workspace/dashboards/copy-dialog.d.ts +7 -0
  419. package/dist/src/workspace/dashboards/document/blocks.d.ts +42 -0
  420. package/dist/src/workspace/dashboards/document/chart-data.d.ts +13 -0
  421. package/dist/src/workspace/dashboards/document/chart.d.ts +10 -0
  422. package/dist/src/workspace/dashboards/document/layout.d.ts +29 -0
  423. package/dist/src/workspace/dashboards/document/markdown.d.ts +7 -0
  424. package/dist/src/workspace/dashboards/document/sources.d.ts +32 -0
  425. package/dist/src/workspace/dashboards/document/tiles/chart.d.ts +23 -0
  426. package/dist/src/workspace/dashboards/document/tiles/context.d.ts +23 -0
  427. package/dist/src/workspace/dashboards/document/tiles/controls.d.ts +23 -0
  428. package/dist/src/workspace/dashboards/document/tiles/frame.d.ts +28 -0
  429. package/dist/src/workspace/dashboards/document/tiles/gauge-model.d.ts +4 -0
  430. package/dist/src/workspace/dashboards/document/tiles/gauge.d.ts +11 -0
  431. package/dist/src/workspace/dashboards/document/tiles/presentation.d.ts +29 -0
  432. package/dist/src/workspace/dashboards/document/tiles/reading.d.ts +14 -0
  433. package/dist/src/workspace/dashboards/document/tiles/sparkline.d.ts +7 -0
  434. package/dist/src/workspace/dashboards/document/tiles/tile.d.ts +8 -0
  435. package/dist/src/workspace/dashboards/document/tiles/tones.d.ts +44 -0
  436. package/dist/src/workspace/dashboards/document/tiles/use-tile-tone.d.ts +19 -0
  437. package/dist/src/workspace/dashboards/document/tiles/value.d.ts +8 -0
  438. package/dist/src/workspace/dashboards/document/view.d.ts +16 -0
  439. package/dist/src/workspace/dashboards/enabled-switch.d.ts +10 -0
  440. package/dist/src/workspace/dashboards/entrypoint.d.ts +15 -0
  441. package/dist/src/workspace/dashboards/icon.d.ts +6 -0
  442. package/dist/src/workspace/dashboards/load-module.d.ts +40 -0
  443. package/dist/src/workspace/dashboards/locale.d.ts +8 -0
  444. package/dist/src/workspace/dashboards/module-cache.d.ts +9 -0
  445. package/dist/src/workspace/dashboards/mount-diagnostics.d.ts +23 -0
  446. package/dist/src/workspace/dashboards/mount.d.ts +39 -0
  447. package/dist/src/workspace/dashboards/name.d.ts +11 -0
  448. package/dist/src/workspace/dashboards/navigation.d.ts +51 -0
  449. package/dist/src/workspace/dashboards/page-paths.d.ts +7 -0
  450. package/dist/src/workspace/dashboards/page-tabs.d.ts +23 -0
  451. package/dist/src/workspace/dashboards/page.d.ts +4 -0
  452. package/dist/src/workspace/dashboards/rotation.d.ts +26 -0
  453. package/dist/src/workspace/dashboards/search-params.d.ts +7 -0
  454. package/dist/src/workspace/dashboards/sortable-grid.d.ts +79 -0
  455. package/dist/src/workspace/dashboards/stylesheet.d.ts +9 -0
  456. package/dist/src/workspace/dashboards/use-configuration-mutation.d.ts +40 -0
  457. package/dist/src/workspace/device-api/errors.d.ts +6 -0
  458. package/dist/src/workspace/device-api/use-device-api.d.ts +75 -0
  459. package/dist/src/workspace/device-presets/cold-room-card.d.ts +17 -0
  460. package/dist/src/workspace/device-presets/cold-room-commands.d.ts +19 -0
  461. package/dist/src/workspace/device-presets/cold-room-labels.d.ts +5 -0
  462. package/dist/src/workspace/device-presets/cold-room-model.d.ts +141 -0
  463. package/dist/src/workspace/device-presets/command-button.d.ts +34 -0
  464. package/dist/src/workspace/device-presets/endpoint-unavailable.d.ts +15 -0
  465. package/dist/src/workspace/device-presets/gauge-scale.d.ts +23 -0
  466. package/dist/src/workspace/device-presets/gauges.d.ts +52 -0
  467. package/dist/src/workspace/device-presets/header.d.ts +14 -0
  468. package/dist/src/workspace/device-presets/layout.d.ts +52 -0
  469. package/dist/src/workspace/device-presets/overview.d.ts +103 -0
  470. package/dist/src/workspace/device-presets/quantity.d.ts +5 -0
  471. package/dist/src/workspace/device-presets/relay-test-panel.d.ts +37 -0
  472. package/dist/src/workspace/device-presets/relay-test.d.ts +164 -0
  473. package/dist/src/workspace/device-presets/series-colors.d.ts +58 -0
  474. package/dist/src/workspace/device-presets/settings-choice.d.ts +20 -0
  475. package/dist/src/workspace/device-presets/settings-fields.d.ts +39 -0
  476. package/dist/src/workspace/device-presets/settings-form.d.ts +35 -0
  477. package/dist/src/workspace/device-presets/settings-page.d.ts +29 -0
  478. package/dist/src/workspace/device-presets/settings-rows.d.ts +25 -0
  479. package/dist/src/workspace/device-presets/settings-section.d.ts +78 -0
  480. package/dist/src/workspace/device-presets/settings-text.d.ts +5 -0
  481. package/dist/src/workspace/device-presets/settings-types.d.ts +122 -0
  482. package/dist/src/workspace/device-presets/settings-write-dialog.d.ts +27 -0
  483. package/dist/src/workspace/device-presets/settings-write.d.ts +73 -0
  484. package/dist/src/workspace/device-presets/state-text.d.ts +17 -0
  485. package/dist/src/workspace/device-presets/trend-chart.d.ts +51 -0
  486. package/dist/src/workspace/device-presets/trend-model.d.ts +45 -0
  487. package/dist/src/workspace/device-presets/unsupported.d.ts +14 -0
  488. package/dist/src/workspace/device-presets/values.d.ts +56 -0
  489. package/dist/src/workspace/edge-programs/deploy-status.d.ts +12 -0
  490. package/dist/src/workspace/edge-programs/diagnostic-text.d.ts +9 -0
  491. package/dist/src/workspace/edge-programs/editor-language.d.ts +15 -0
  492. package/dist/src/workspace/edge-programs/item-descriptions.d.ts +3 -0
  493. package/dist/src/workspace/edge-programs/live-state.d.ts +12 -0
  494. package/dist/src/workspace/endpoint-status/provider.d.ts +16 -0
  495. package/dist/src/workspace/endpoint-status/store.d.ts +18 -0
  496. package/dist/src/workspace/errors.d.ts +1 -0
  497. package/dist/src/workspace/fleet/alarms.d.ts +27 -0
  498. package/dist/src/workspace/fleet/binding-editor.d.ts +65 -0
  499. package/dist/src/workspace/fleet/board-editor.d.ts +118 -0
  500. package/dist/src/workspace/fleet/command-buttons.d.ts +19 -0
  501. package/dist/src/workspace/fleet/command-entry.d.ts +25 -0
  502. package/dist/src/workspace/fleet/command-steps.d.ts +65 -0
  503. package/dist/src/workspace/fleet/control-mode.d.ts +30 -0
  504. package/dist/src/workspace/fleet/counter-bars.d.ts +109 -0
  505. package/dist/src/workspace/fleet/counter-notices.d.ts +23 -0
  506. package/dist/src/workspace/fleet/counter-period.d.ts +35 -0
  507. package/dist/src/workspace/fleet/counter-shares.d.ts +34 -0
  508. package/dist/src/workspace/fleet/counter-total.d.ts +43 -0
  509. package/dist/src/workspace/fleet/counter-totals.d.ts +77 -0
  510. package/dist/src/workspace/fleet/due-dates.d.ts +18 -0
  511. package/dist/src/workspace/fleet/duplicate-dialog.d.ts +63 -0
  512. package/dist/src/workspace/fleet/editor-dialog.d.ts +26 -0
  513. package/dist/src/workspace/fleet/equipment-setup.d.ts +44 -0
  514. package/dist/src/workspace/fleet/equipment-view.d.ts +31 -0
  515. package/dist/src/workspace/fleet/figure.d.ts +18 -0
  516. package/dist/src/workspace/fleet/form-types.d.ts +15 -0
  517. package/dist/src/workspace/fleet/group-command-dialogs.d.ts +43 -0
  518. package/dist/src/workspace/fleet/group-command.d.ts +83 -0
  519. package/dist/src/workspace/fleet/indicator-lights.d.ts +23 -0
  520. package/dist/src/workspace/fleet/map.d.ts +41 -0
  521. package/dist/src/workspace/fleet/mode-badge.d.ts +7 -0
  522. package/dist/src/workspace/fleet/operations.d.ts +23 -0
  523. package/dist/src/workspace/fleet/order-editor.d.ts +13 -0
  524. package/dist/src/workspace/fleet/overview-model.d.ts +43 -0
  525. package/dist/src/workspace/fleet/overview.d.ts +93 -0
  526. package/dist/src/workspace/fleet/page-header.d.ts +27 -0
  527. package/dist/src/workspace/fleet/parameters.d.ts +65 -0
  528. package/dist/src/workspace/fleet/period-settings.d.ts +66 -0
  529. package/dist/src/workspace/fleet/placement-fields.d.ts +104 -0
  530. package/dist/src/workspace/fleet/position.d.ts +13 -0
  531. package/dist/src/workspace/fleet/readings.d.ts +64 -0
  532. package/dist/src/workspace/fleet/section.d.ts +7 -0
  533. package/dist/src/workspace/fleet/site-page.d.ts +150 -0
  534. package/dist/src/workspace/fleet/slot-fields.d.ts +53 -0
  535. package/dist/src/workspace/fleet/starter-fields.d.ts +63 -0
  536. package/dist/src/workspace/fleet/status-badge.d.ts +23 -0
  537. package/dist/src/workspace/fleet/status.d.ts +85 -0
  538. package/dist/src/workspace/formulas/diagnostic-text.d.ts +7 -0
  539. package/dist/src/workspace/graphics/actions/details.d.ts +49 -0
  540. package/dist/src/workspace/graphics/actions/dialog.d.ts +12 -0
  541. package/dist/src/workspace/graphics/actions/selection.d.ts +1352 -0
  542. package/dist/src/workspace/graphics/binding-value.d.ts +19 -0
  543. package/dist/src/workspace/graphics/bindings.d.ts +847 -0
  544. package/dist/src/workspace/graphics/canvas.d.ts +47 -0
  545. package/dist/src/workspace/graphics/commands/fields.d.ts +7 -0
  546. package/dist/src/workspace/graphics/commands/model.d.ts +10 -0
  547. package/dist/src/workspace/graphics/commands/provider.d.ts +285 -0
  548. package/dist/src/workspace/graphics/dashboard-graphics.d.ts +12 -0
  549. package/dist/src/workspace/graphics/editor-session.d.ts +47 -0
  550. package/dist/src/workspace/graphics/framing.d.ts +28 -0
  551. package/dist/src/workspace/graphics/generated-drawing.d.ts +47 -0
  552. package/dist/src/workspace/graphics/geometry.d.ts +41 -0
  553. package/dist/src/workspace/graphics/image-cache.d.ts +18 -0
  554. package/dist/src/workspace/graphics/image-dialog.d.ts +5 -0
  555. package/dist/src/workspace/graphics/image-picker.d.ts +5 -0
  556. package/dist/src/workspace/graphics/inspector/bindings.d.ts +17 -0
  557. package/dist/src/workspace/graphics/inspector/element.d.ts +10 -0
  558. package/dist/src/workspace/graphics/inspector/fields.d.ts +69 -0
  559. package/dist/src/workspace/graphics/inspector/item.d.ts +862 -0
  560. package/dist/src/workspace/graphics/inspector/multi.d.ts +10 -0
  561. package/dist/src/workspace/graphics/inspector/panel.d.ts +27 -0
  562. package/dist/src/workspace/graphics/inspector/ports.d.ts +2 -0
  563. package/dist/src/workspace/graphics/inspector/section.d.ts +14 -0
  564. package/dist/src/workspace/graphics/inspector/slots.d.ts +7 -0
  565. package/dist/src/workspace/graphics/inspector/symbol.d.ts +11 -0
  566. package/dist/src/workspace/graphics/line-geometry.d.ts +26 -0
  567. package/dist/src/workspace/graphics/lines.d.ts +14 -0
  568. package/dist/src/workspace/graphics/node-memo.d.ts +3 -0
  569. package/dist/src/workspace/graphics/node.d.ts +3 -0
  570. package/dist/src/workspace/graphics/placement.d.ts +23 -0
  571. package/dist/src/workspace/graphics/quality-indicator.d.ts +6 -0
  572. package/dist/src/workspace/graphics/resize-handles.d.ts +8 -0
  573. package/dist/src/workspace/graphics/source-picker.d.ts +35 -0
  574. package/dist/src/workspace/graphics/symbol-issues.d.ts +26 -0
  575. package/dist/src/workspace/graphics/symbols/agriculture/fertigation.d.ts +1 -0
  576. package/dist/src/workspace/graphics/symbols/agriculture/index.d.ts +2 -0
  577. package/dist/src/workspace/graphics/symbols/agriculture/soil-sensor.d.ts +1 -0
  578. package/dist/src/workspace/graphics/symbols/agriculture/soil.d.ts +9 -0
  579. package/dist/src/workspace/graphics/symbols/agriculture/sprinkler.d.ts +1 -0
  580. package/dist/src/workspace/graphics/symbols/agriculture/zone.d.ts +1 -0
  581. package/dist/src/workspace/graphics/symbols/bindings.d.ts +34 -0
  582. package/dist/src/workspace/graphics/symbols/browser.d.ts +28 -0
  583. package/dist/src/workspace/graphics/symbols/builtins.d.ts +2 -0
  584. package/dist/src/workspace/graphics/symbols/button.d.ts +2 -0
  585. package/dist/src/workspace/graphics/symbols/catalog.d.ts +41 -0
  586. package/dist/src/workspace/graphics/symbols/compressed-air/compressor.d.ts +1 -0
  587. package/dist/src/workspace/graphics/symbols/compressed-air/drain.d.ts +15 -0
  588. package/dist/src/workspace/graphics/symbols/compressed-air/index.d.ts +1 -0
  589. package/dist/src/workspace/graphics/symbols/compressed-air/receiver.d.ts +1 -0
  590. package/dist/src/workspace/graphics/symbols/compressed-air/treatment.d.ts +2 -0
  591. package/dist/src/workspace/graphics/symbols/definition.d.ts +115 -0
  592. package/dist/src/workspace/graphics/symbols/electrical/breaker.d.ts +2 -0
  593. package/dist/src/workspace/graphics/symbols/electrical/compensation.d.ts +1 -0
  594. package/dist/src/workspace/graphics/symbols/electrical/index.d.ts +5 -0
  595. package/dist/src/workspace/graphics/symbols/electrical/loads.d.ts +3 -0
  596. package/dist/src/workspace/graphics/symbols/electrical/machines.d.ts +3 -0
  597. package/dist/src/workspace/graphics/symbols/electrical/metering.d.ts +8 -0
  598. package/dist/src/workspace/graphics/symbols/electrical/presentation.d.ts +132 -0
  599. package/dist/src/workspace/graphics/symbols/electrical/renewables.d.ts +2 -0
  600. package/dist/src/workspace/graphics/symbols/electrical/storage.d.ts +2 -0
  601. package/dist/src/workspace/graphics/symbols/electrical/supply.d.ts +2 -0
  602. package/dist/src/workspace/graphics/symbols/electrical/switchgear.d.ts +61 -0
  603. package/dist/src/workspace/graphics/symbols/food/filling.d.ts +1 -0
  604. package/dist/src/workspace/graphics/symbols/food/index.d.ts +1 -0
  605. package/dist/src/workspace/graphics/symbols/food/vessel.d.ts +1 -0
  606. package/dist/src/workspace/graphics/symbols/fuel-gas/gas-detector.d.ts +1 -0
  607. package/dist/src/workspace/graphics/symbols/fuel-gas/index.d.ts +1 -0
  608. package/dist/src/workspace/graphics/symbols/handles.d.ts +6 -0
  609. package/dist/src/workspace/graphics/symbols/hvac/air-handling.d.ts +4 -0
  610. package/dist/src/workspace/graphics/symbols/hvac/air-section.d.ts +60 -0
  611. package/dist/src/workspace/graphics/symbols/hvac/air-terminals.d.ts +2 -0
  612. package/dist/src/workspace/graphics/symbols/hvac/air-treatment.d.ts +2 -0
  613. package/dist/src/workspace/graphics/symbols/hvac/circuit.d.ts +45 -0
  614. package/dist/src/workspace/graphics/symbols/hvac/cooling-plant.d.ts +2 -0
  615. package/dist/src/workspace/graphics/symbols/hvac/firing.d.ts +2 -0
  616. package/dist/src/workspace/graphics/symbols/hvac/hydronic.d.ts +5 -0
  617. package/dist/src/workspace/graphics/symbols/hvac/index.d.ts +2 -0
  618. package/dist/src/workspace/graphics/symbols/hvac/instruments.d.ts +5 -0
  619. package/dist/src/workspace/graphics/symbols/hvac/presentation.d.ts +162 -0
  620. package/dist/src/workspace/graphics/symbols/manufacturing/actuators.d.ts +20 -0
  621. package/dist/src/workspace/graphics/symbols/manufacturing/conveyor.d.ts +26 -0
  622. package/dist/src/workspace/graphics/symbols/manufacturing/index.d.ts +3 -0
  623. package/dist/src/workspace/graphics/symbols/manufacturing/indicators.d.ts +2 -0
  624. package/dist/src/workspace/graphics/symbols/manufacturing/stations.d.ts +3 -0
  625. package/dist/src/workspace/graphics/symbols/ports.d.ts +12 -0
  626. package/dist/src/workspace/graphics/symbols/preferences.d.ts +27 -0
  627. package/dist/src/workspace/graphics/symbols/preview.d.ts +8 -0
  628. package/dist/src/workspace/graphics/symbols/properties.d.ts +46 -0
  629. package/dist/src/workspace/graphics/symbols/provider.d.ts +12 -0
  630. package/dist/src/workspace/graphics/symbols/pump-status-icon.d.ts +5 -0
  631. package/dist/src/workspace/graphics/symbols/pump.d.ts +2 -0
  632. package/dist/src/workspace/graphics/symbols/quality.d.ts +63 -0
  633. package/dist/src/workspace/graphics/symbols/quarry/belt-scale.d.ts +1 -0
  634. package/dist/src/workspace/graphics/symbols/quarry/chute.d.ts +1 -0
  635. package/dist/src/workspace/graphics/symbols/quarry/crusher.d.ts +2 -0
  636. package/dist/src/workspace/graphics/symbols/quarry/diverter-gate.d.ts +2 -0
  637. package/dist/src/workspace/graphics/symbols/quarry/dust-collector.d.ts +1 -0
  638. package/dist/src/workspace/graphics/symbols/quarry/feeder.d.ts +1 -0
  639. package/dist/src/workspace/graphics/symbols/quarry/hopper.d.ts +1 -0
  640. package/dist/src/workspace/graphics/symbols/quarry/index.d.ts +1 -0
  641. package/dist/src/workspace/graphics/symbols/quarry/parts.d.ts +18 -0
  642. package/dist/src/workspace/graphics/symbols/quarry/screen.d.ts +2 -0
  643. package/dist/src/workspace/graphics/symbols/quarry/spray-suppression.d.ts +1 -0
  644. package/dist/src/workspace/graphics/symbols/quarry/stockpile.d.ts +1 -0
  645. package/dist/src/workspace/graphics/symbols/quarry/trommel.d.ts +1 -0
  646. package/dist/src/workspace/graphics/symbols/reading.d.ts +3 -0
  647. package/dist/src/workspace/graphics/symbols/render.d.ts +12 -0
  648. package/dist/src/workspace/graphics/symbols/reservoir.d.ts +2 -0
  649. package/dist/src/workspace/graphics/symbols/serialize.d.ts +7 -0
  650. package/dist/src/workspace/graphics/symbols/status.d.ts +47 -0
  651. package/dist/src/workspace/graphics/symbols/thermal/furnace.d.ts +28 -0
  652. package/dist/src/workspace/graphics/symbols/thermal/heater.d.ts +6 -0
  653. package/dist/src/workspace/graphics/symbols/thermal/index.d.ts +1 -0
  654. package/dist/src/workspace/graphics/symbols/thermal/kiln.d.ts +1 -0
  655. package/dist/src/workspace/graphics/symbols/upright.d.ts +68 -0
  656. package/dist/src/workspace/graphics/symbols/variant-field.d.ts +17 -0
  657. package/dist/src/workspace/graphics/symbols/variants.d.ts +30 -0
  658. package/dist/src/workspace/graphics/symbols/viewport.d.ts +43 -0
  659. package/dist/src/workspace/graphics/symbols/warehouse/agv.d.ts +4 -0
  660. package/dist/src/workspace/graphics/symbols/warehouse/cold-room.d.ts +2 -0
  661. package/dist/src/workspace/graphics/symbols/warehouse/cooling-unit.d.ts +19 -0
  662. package/dist/src/workspace/graphics/symbols/warehouse/door.d.ts +61 -0
  663. package/dist/src/workspace/graphics/symbols/warehouse/index.d.ts +1 -0
  664. package/dist/src/workspace/graphics/symbols/warehouse/loading-dock.d.ts +2 -0
  665. package/dist/src/workspace/graphics/symbols/warehouse/pallet.d.ts +2 -0
  666. package/dist/src/workspace/graphics/symbols/warehouse/rack.d.ts +25 -0
  667. package/dist/src/workspace/graphics/symbols/warehouse/stacker-crane.d.ts +12 -0
  668. package/dist/src/workspace/graphics/symbols/warehouse/storage-zone.d.ts +34 -0
  669. package/dist/src/workspace/graphics/symbols/waste/baler.d.ts +5 -0
  670. package/dist/src/workspace/graphics/symbols/waste/compactor.d.ts +1 -0
  671. package/dist/src/workspace/graphics/symbols/waste/container.d.ts +7 -0
  672. package/dist/src/workspace/graphics/symbols/waste/index.d.ts +2 -0
  673. package/dist/src/workspace/graphics/symbols/waste/parts.d.ts +32 -0
  674. package/dist/src/workspace/graphics/symbols/waste/separator.d.ts +1 -0
  675. package/dist/src/workspace/graphics/symbols/waste/shredder.d.ts +1 -0
  676. package/dist/src/workspace/graphics/symbols/waste/vehicle.d.ts +1 -0
  677. package/dist/src/workspace/graphics/symbols/waste/weighbridge.d.ts +1 -0
  678. package/dist/src/workspace/graphics/symbols/water/aeration.d.ts +8 -0
  679. package/dist/src/workspace/graphics/symbols/water/artwork.d.ts +42 -0
  680. package/dist/src/workspace/graphics/symbols/water/clarifier.d.ts +1 -0
  681. package/dist/src/workspace/graphics/symbols/water/disinfection.d.ts +1 -0
  682. package/dist/src/workspace/graphics/symbols/water/dosing.d.ts +30 -0
  683. package/dist/src/workspace/graphics/symbols/water/filter.d.ts +1 -0
  684. package/dist/src/workspace/graphics/symbols/water/index.d.ts +8 -0
  685. package/dist/src/workspace/graphics/symbols/water/instruments.d.ts +3 -0
  686. package/dist/src/workspace/graphics/symbols/water/pumps.d.ts +7 -0
  687. package/dist/src/workspace/graphics/symbols/water/tank.d.ts +1 -0
  688. package/dist/src/workspace/graphics/symbols/water/treatment-state.d.ts +15 -0
  689. package/dist/src/workspace/graphics/symbols/water/valves.d.ts +8 -0
  690. package/dist/src/workspace/graphics/symbols/well.d.ts +2 -0
  691. package/dist/src/workspace/graphics/toolbar.d.ts +58 -0
  692. package/dist/src/workspace/graphics/use-images.d.ts +13 -0
  693. package/dist/src/workspace/graphics/view-frame.d.ts +31 -0
  694. package/dist/src/workspace/graphics/viewport-passthrough.d.ts +8 -0
  695. package/dist/src/workspace/index-page.d.ts +3 -0
  696. package/dist/src/workspace/layout.d.ts +3 -0
  697. package/dist/src/workspace/live-changes.d.ts +16 -0
  698. package/dist/src/workspace/local-message-identity.d.ts +2 -0
  699. package/dist/src/workspace/local-setup-link.d.ts +16 -0
  700. package/dist/src/workspace/local-workspace-app.d.ts +21 -0
  701. package/dist/src/workspace/maps/auth-failure.d.ts +5 -0
  702. package/dist/src/workspace/maps/error-boundary.d.ts +21 -0
  703. package/dist/src/workspace/maps/lat-lng.d.ts +8 -0
  704. package/dist/src/workspace/maps/location-map-renderer.d.ts +10 -0
  705. package/dist/src/workspace/maps/location-map.d.ts +40 -0
  706. package/dist/src/workspace/maps/location-picker-renderer.d.ts +20 -0
  707. package/dist/src/workspace/maps/location-picker.d.ts +31 -0
  708. package/dist/src/workspace/maps/use-browser-config.d.ts +11 -0
  709. package/dist/src/workspace/maps/use-reverse-geocode.d.ts +15 -0
  710. package/dist/src/workspace/mobile-nav.d.ts +13 -0
  711. package/dist/src/workspace/mutations.d.ts +10634 -0
  712. package/dist/src/workspace/no-access.d.ts +1 -0
  713. package/dist/src/workspace/page-navigation.d.ts +67 -0
  714. package/dist/src/workspace/page-state/branch-path.d.ts +7 -0
  715. package/dist/src/workspace/page-state/context.d.ts +14 -0
  716. package/dist/src/workspace/page-state/dashboard-context.d.ts +37 -0
  717. package/dist/src/workspace/page-state/dashboard.d.ts +65 -0
  718. package/dist/src/workspace/page-state/model.d.ts +48 -0
  719. package/dist/src/workspace/page-state/parameters.d.ts +11 -0
  720. package/dist/src/workspace/page-state/report.d.ts +16 -0
  721. package/dist/src/workspace/page-state/store.d.ts +10 -0
  722. package/dist/src/workspace/parameters/defaults.d.ts +7 -0
  723. package/dist/src/workspace/parameters/display.d.ts +28 -0
  724. package/dist/src/workspace/parameters/distinct-names.d.ts +12 -0
  725. package/dist/src/workspace/parameters/errors.d.ts +15 -0
  726. package/dist/src/workspace/parameters/form/shared-fields.d.ts +49 -0
  727. package/dist/src/workspace/parameters/form/values.d.ts +33 -0
  728. package/dist/src/workspace/parameters/geo-value.d.ts +9 -0
  729. package/dist/src/workspace/parameters/icon.d.ts +8 -0
  730. package/dist/src/workspace/parameters/inventory-options.d.ts +9 -0
  731. package/dist/src/workspace/parameters/live/condition.d.ts +4 -0
  732. package/dist/src/workspace/parameters/live/control-button.d.ts +13 -0
  733. package/dist/src/workspace/parameters/live/controls.d.ts +14 -0
  734. package/dist/src/workspace/parameters/live/coordinator.d.ts +87 -0
  735. package/dist/src/workspace/parameters/live/deadline.d.ts +13 -0
  736. package/dist/src/workspace/parameters/live/diagnostic-copy.d.ts +26 -0
  737. package/dist/src/workspace/parameters/live/diagnostic-links.d.ts +5 -0
  738. package/dist/src/workspace/parameters/live/diagnostics.d.ts +9 -0
  739. package/dist/src/workspace/parameters/live/history-windows.d.ts +53 -0
  740. package/dist/src/workspace/parameters/live/metric.d.ts +29 -0
  741. package/dist/src/workspace/parameters/live/model.d.ts +133 -0
  742. package/dist/src/workspace/parameters/live/provider.d.ts +49 -0
  743. package/dist/src/workspace/parameters/live/read-once.d.ts +13 -0
  744. package/dist/src/workspace/parameters/live/stale-note.d.ts +8 -0
  745. package/dist/src/workspace/parameters/live/use-history.d.ts +30 -0
  746. package/dist/src/workspace/parameters/live/use-stored-history.d.ts +85 -0
  747. package/dist/src/workspace/parameters/live/value-display.d.ts +25 -0
  748. package/dist/src/workspace/parameters/live/value-editor.d.ts +24 -0
  749. package/dist/src/workspace/parameters/live/write-review-dialog.d.ts +41 -0
  750. package/dist/src/workspace/parameters/live/write-review-form.d.ts +18 -0
  751. package/dist/src/workspace/parameters/live/write-sequence-dialog.d.ts +80 -0
  752. package/dist/src/workspace/parameters/metadata.d.ts +37 -0
  753. package/dist/src/workspace/parameters/option-labels.d.ts +14 -0
  754. package/dist/src/workspace/parameters/picker/browser.d.ts +41 -0
  755. package/dist/src/workspace/parameters/picker/model.d.ts +91 -0
  756. package/dist/src/workspace/parameters/picker/picker.d.ts +380 -0
  757. package/dist/src/workspace/parameters/runtime-errors.d.ts +23 -0
  758. package/dist/src/workspace/parameters/source-fields.d.ts +22 -0
  759. package/dist/src/workspace/parameters/value/cells.d.ts +21 -0
  760. package/dist/src/workspace/parameters/value/edit-draft.d.ts +24 -0
  761. package/dist/src/workspace/parameters/value/reads.d.ts +54 -0
  762. package/dist/src/workspace/parameters/value/state.d.ts +96 -0
  763. package/dist/src/workspace/parameters/value/type/datetime-parts.d.ts +12 -0
  764. package/dist/src/workspace/parameters/value/type/fields.d.ts +5 -0
  765. package/dist/src/workspace/parameters/value/type/geo.d.ts +10 -0
  766. package/dist/src/workspace/parameters/value/type/int-repr.d.ts +9 -0
  767. package/dist/src/workspace/parameters/writability.d.ts +26 -0
  768. package/dist/src/workspace/pull-instructions.d.ts +4 -0
  769. package/dist/src/workspace/query-gate.d.ts +40 -0
  770. package/dist/src/workspace/reports/aggregate-fetch.d.ts +25 -0
  771. package/dist/src/workspace/reports/bar-legend.d.ts +12 -0
  772. package/dist/src/workspace/reports/bar-path.d.ts +25 -0
  773. package/dist/src/workspace/reports/cadence-fetch.d.ts +25 -0
  774. package/dist/src/workspace/reports/calendar/demand.d.ts +46 -0
  775. package/dist/src/workspace/reports/calendar/layout.d.ts +98 -0
  776. package/dist/src/workspace/reports/calendar/representation.d.ts +7 -0
  777. package/dist/src/workspace/reports/cell-title.d.ts +11 -0
  778. package/dist/src/workspace/reports/chart/axes.d.ts +17 -0
  779. package/dist/src/workspace/reports/chart/build.d.ts +208 -0
  780. package/dist/src/workspace/reports/chart/caches.d.ts +57 -0
  781. package/dist/src/workspace/reports/chart/colors.d.ts +17 -0
  782. package/dist/src/workspace/reports/chart/comment-gutter.d.ts +44 -0
  783. package/dist/src/workspace/reports/chart/demand.d.ts +50 -0
  784. package/dist/src/workspace/reports/chart/paint.d.ts +17 -0
  785. package/dist/src/workspace/reports/chart/pan-zoom.d.ts +19 -0
  786. package/dist/src/workspace/reports/chart/payload.d.ts +57 -0
  787. package/dist/src/workspace/reports/chart/plot-interactions.d.ts +13 -0
  788. package/dist/src/workspace/reports/chart/plot-tooltip.d.ts +10 -0
  789. package/dist/src/workspace/reports/chart/plot.d.ts +29 -0
  790. package/dist/src/workspace/reports/chart/realtime.d.ts +96 -0
  791. package/dist/src/workspace/reports/chart/representation.d.ts +40 -0
  792. package/dist/src/workspace/reports/chart/tooltip.d.ts +36 -0
  793. package/dist/src/workspace/reports/chart/use-realtime.d.ts +44 -0
  794. package/dist/src/workspace/reports/color/cascade.d.ts +3 -0
  795. package/dist/src/workspace/reports/color/css.d.ts +5 -0
  796. package/dist/src/workspace/reports/color/select.d.ts +11 -0
  797. package/dist/src/workspace/reports/comments/author.d.ts +2 -0
  798. package/dist/src/workspace/reports/comments/errors.d.ts +11 -0
  799. package/dist/src/workspace/reports/comments/footer.d.ts +1 -0
  800. package/dist/src/workspace/reports/comments/use-comments.d.ts +9 -0
  801. package/dist/src/workspace/reports/csv/build.d.ts +29 -0
  802. package/dist/src/workspace/reports/csv/columns.d.ts +18 -0
  803. package/dist/src/workspace/reports/csv/fetch.d.ts +29 -0
  804. package/dist/src/workspace/reports/csv/use-export.d.ts +7 -0
  805. package/dist/src/workspace/reports/data/context.d.ts +79 -0
  806. package/dist/src/workspace/reports/data/extent.d.ts +40 -0
  807. package/dist/src/workspace/reports/data/provider.d.ts +20 -0
  808. package/dist/src/workspace/reports/data/report-caches.d.ts +56 -0
  809. package/dist/src/workspace/reports/data/specs.d.ts +38 -0
  810. package/dist/src/workspace/reports/demand-cache.d.ts +76 -0
  811. package/dist/src/workspace/reports/element-size.d.ts +7 -0
  812. package/dist/src/workspace/reports/generated.d.ts +46 -0
  813. package/dist/src/workspace/reports/histogram/build.d.ts +1 -0
  814. package/dist/src/workspace/reports/histogram/demand.d.ts +26 -0
  815. package/dist/src/workspace/reports/histogram/plot.d.ts +42 -0
  816. package/dist/src/workspace/reports/histogram/representation.d.ts +8 -0
  817. package/dist/src/workspace/reports/histogram/slots.d.ts +19 -0
  818. package/dist/src/workspace/reports/hourly-matrix/demand.d.ts +28 -0
  819. package/dist/src/workspace/reports/hourly-matrix/layout.d.ts +36 -0
  820. package/dist/src/workspace/reports/hourly-matrix/model.d.ts +66 -0
  821. package/dist/src/workspace/reports/hourly-matrix/representation.d.ts +7 -0
  822. package/dist/src/workspace/reports/html/build.d.ts +57 -0
  823. package/dist/src/workspace/reports/html/cache-clone.d.ts +36 -0
  824. package/dist/src/workspace/reports/html/calendar.d.ts +15 -0
  825. package/dist/src/workspace/reports/html/comments.d.ts +13 -0
  826. package/dist/src/workspace/reports/html/css.d.ts +2 -0
  827. package/dist/src/workspace/reports/html/document.d.ts +5 -0
  828. package/dist/src/workspace/reports/html/escape.d.ts +6 -0
  829. package/dist/src/workspace/reports/html/matrix.d.ts +13 -0
  830. package/dist/src/workspace/reports/html/mounted.d.ts +19 -0
  831. package/dist/src/workspace/reports/html/png.d.ts +39 -0
  832. package/dist/src/workspace/reports/html/ready.d.ts +56 -0
  833. package/dist/src/workspace/reports/html/table.d.ts +3 -0
  834. package/dist/src/workspace/reports/html/use-render.d.ts +8 -0
  835. package/dist/src/workspace/reports/html/widgets.d.ts +31 -0
  836. package/dist/src/workspace/reports/page.d.ts +4 -0
  837. package/dist/src/workspace/reports/preset/errors.d.ts +5 -0
  838. package/dist/src/workspace/reports/preset/form-helpers.d.ts +65 -0
  839. package/dist/src/workspace/reports/preset/submit.d.ts +43 -0
  840. package/dist/src/workspace/reports/quick-report.d.ts +17 -0
  841. package/dist/src/workspace/reports/readings-client.d.ts +23 -0
  842. package/dist/src/workspace/reports/runtime-chrome.d.ts +15 -0
  843. package/dist/src/workspace/reports/sankey/demand.d.ts +47 -0
  844. package/dist/src/workspace/reports/sankey/graph.d.ts +28 -0
  845. package/dist/src/workspace/reports/sankey/layout.d.ts +80 -0
  846. package/dist/src/workspace/reports/sankey/representation.d.ts +7 -0
  847. package/dist/src/workspace/reports/sankey/use-caches.d.ts +16 -0
  848. package/dist/src/workspace/reports/session/init.d.ts +9 -0
  849. package/dist/src/workspace/reports/session/storage.d.ts +24 -0
  850. package/dist/src/workspace/reports/state-duration/demand.d.ts +39 -0
  851. package/dist/src/workspace/reports/state-duration/reduce.d.ts +27 -0
  852. package/dist/src/workspace/reports/state-duration/representation.d.ts +7 -0
  853. package/dist/src/workspace/reports/state-duration/use-caches.d.ts +15 -0
  854. package/dist/src/workspace/reports/table/cache-fetch.d.ts +8 -0
  855. package/dist/src/workspace/reports/table/chunk.d.ts +31 -0
  856. package/dist/src/workspace/reports/table/demand.d.ts +83 -0
  857. package/dist/src/workspace/reports/table/fetch.d.ts +42 -0
  858. package/dist/src/workspace/reports/table/format.d.ts +7 -0
  859. package/dist/src/workspace/reports/table/representation.d.ts +10 -0
  860. package/dist/src/workspace/reports/table/rows.d.ts +31 -0
  861. package/dist/src/workspace/reports/table/snapshot.d.ts +40 -0
  862. package/dist/src/workspace/reports/table/totals.d.ts +4 -0
  863. package/dist/src/workspace/reports/time-buckets/build.d.ts +40 -0
  864. package/dist/src/workspace/reports/time-buckets/demand.d.ts +52 -0
  865. package/dist/src/workspace/reports/time-buckets/navigate.d.ts +26 -0
  866. package/dist/src/workspace/reports/time-buckets/plot.d.ts +58 -0
  867. package/dist/src/workspace/reports/time-buckets/representation.d.ts +8 -0
  868. package/dist/src/workspace/reports/time-buckets/slots.d.ts +23 -0
  869. package/dist/src/workspace/reports/time-nav.d.ts +1 -0
  870. package/dist/src/workspace/reports/use-demand-cache.d.ts +29 -0
  871. package/dist/src/workspace/reports/use-quick-report.d.ts +45 -0
  872. package/dist/src/workspace/reports/view.d.ts +6 -0
  873. package/dist/src/workspace/routes.d.ts +23 -0
  874. package/dist/src/workspace/setup/automations/alarm-rule-dialog.d.ts +7 -0
  875. package/dist/src/workspace/setup/automations/alarm-rule-lists.d.ts +61 -0
  876. package/dist/src/workspace/setup/automations/alarm-rules-page.d.ts +4 -0
  877. package/dist/src/workspace/setup/automations/document.d.ts +39 -0
  878. package/dist/src/workspace/setup/automations/dry-run.d.ts +12 -0
  879. package/dist/src/workspace/setup/automations/editor-form.d.ts +22 -0
  880. package/dist/src/workspace/setup/automations/editor-page.d.ts +14 -0
  881. package/dist/src/workspace/setup/automations/editor-tab.d.ts +6 -0
  882. package/dist/src/workspace/setup/automations/entity-controls.d.ts +22 -0
  883. package/dist/src/workspace/setup/automations/history.d.ts +15 -0
  884. package/dist/src/workspace/setup/automations/list-page.d.ts +28 -0
  885. package/dist/src/workspace/setup/automations/starter-dialog.d.ts +10 -0
  886. package/dist/src/workspace/setup/automations/starter-handoff.d.ts +17 -0
  887. package/dist/src/workspace/setup/base-revision.d.ts +64 -0
  888. package/dist/src/workspace/setup/breadcrumbs.d.ts +10 -0
  889. package/dist/src/workspace/setup/catalog-list.d.ts +21 -0
  890. package/dist/src/workspace/setup/dashboards-order.d.ts +10 -0
  891. package/dist/src/workspace/setup/dashboards-page.d.ts +24 -0
  892. package/dist/src/workspace/setup/dashboards-reorder-queue.d.ts +13 -0
  893. package/dist/src/workspace/setup/dashboards-sortable-list.d.ts +6 -0
  894. package/dist/src/workspace/setup/endpoints/connection-error.d.ts +3 -0
  895. package/dist/src/workspace/setup/endpoints/connection-indicator.d.ts +4 -0
  896. package/dist/src/workspace/setup/endpoints/device-log-clock.d.ts +7 -0
  897. package/dist/src/workspace/setup/endpoints/display.d.ts +12 -0
  898. package/dist/src/workspace/setup/endpoints/edit-dialog.d.ts +5 -0
  899. package/dist/src/workspace/setup/endpoints/enabled-switch.d.ts +10 -0
  900. package/dist/src/workspace/setup/endpoints/form-problem.d.ts +5 -0
  901. package/dist/src/workspace/setup/endpoints/page.d.ts +11 -0
  902. package/dist/src/workspace/setup/endpoints/presence-challenge.d.ts +34 -0
  903. package/dist/src/workspace/setup/endpoints/presence-code.d.ts +6 -0
  904. package/dist/src/workspace/setup/endpoints/programs/deploy-status-bar.d.ts +13 -0
  905. package/dist/src/workspace/setup/endpoints/programs/device-log.d.ts +15 -0
  906. package/dist/src/workspace/setup/endpoints/programs/dialogs.d.ts +16 -0
  907. package/dist/src/workspace/setup/endpoints/programs/live-state-pane.d.ts +7 -0
  908. package/dist/src/workspace/setup/endpoints/programs/program-editor.d.ts +79 -0
  909. package/dist/src/workspace/setup/endpoints/programs/programs-tab.d.ts +14 -0
  910. package/dist/src/workspace/setup/endpoints/programs/settings-dialog.d.ts +9 -0
  911. package/dist/src/workspace/setup/endpoints/programs/starter-dialog.d.ts +17 -0
  912. package/dist/src/workspace/setup/endpoints/programs/tasks-table.d.ts +5 -0
  913. package/dist/src/workspace/setup/endpoints/sharing.d.ts +9 -0
  914. package/dist/src/workspace/setup/endpoints/status-connection.d.ts +8 -0
  915. package/dist/src/workspace/setup/endpoints/status-device-ui-progress.d.ts +9 -0
  916. package/dist/src/workspace/setup/endpoints/status-device-ui.d.ts +8 -0
  917. package/dist/src/workspace/setup/endpoints/status-page.d.ts +14 -0
  918. package/dist/src/workspace/setup/endpoints/status-recorded.d.ts +13 -0
  919. package/dist/src/workspace/setup/endpoints/status-tab.d.ts +12 -0
  920. package/dist/src/workspace/setup/endpoints/wireguard-docs.d.ts +11 -0
  921. package/dist/src/workspace/setup/files/errors.d.ts +1 -0
  922. package/dist/src/workspace/setup/files/http.d.ts +21 -0
  923. package/dist/src/workspace/setup/files/page.d.ts +3 -0
  924. package/dist/src/workspace/setup/menu.d.ts +14 -0
  925. package/dist/src/workspace/setup/nav.d.ts +11 -0
  926. package/dist/src/workspace/setup/parameters/dialogs.d.ts +32 -0
  927. package/dist/src/workspace/setup/parameters/edit/create-branch-form.d.ts +10 -0
  928. package/dist/src/workspace/setup/parameters/edit/dialog-body.d.ts +13 -0
  929. package/dist/src/workspace/setup/parameters/edit/form.d.ts +22 -0
  930. package/dist/src/workspace/setup/parameters/page.d.ts +3 -0
  931. package/dist/src/workspace/setup/parameters/recorded.d.ts +14 -0
  932. package/dist/src/workspace/setup/parameters/selection.d.ts +45 -0
  933. package/dist/src/workspace/setup/parameters/stamp-from-template-form.d.ts +10 -0
  934. package/dist/src/workspace/setup/parameters/toolbar.d.ts +32 -0
  935. package/dist/src/workspace/setup/parameters/tree/expand.d.ts +10 -0
  936. package/dist/src/workspace/setup/parameters/tree/model.d.ts +61 -0
  937. package/dist/src/workspace/setup/parameters/tree/rows.d.ts +38 -0
  938. package/dist/src/workspace/setup/parameters/tree/storage.d.ts +13 -0
  939. package/dist/src/workspace/setup/parameters/use-tree-selection.d.ts +21 -0
  940. package/dist/src/workspace/setup/parameters/use-tree-view.d.ts +22 -0
  941. package/dist/src/workspace/setup/report/add-parameters-dialog.d.ts +8 -0
  942. package/dist/src/workspace/setup/report/calendar-editor.d.ts +9 -0
  943. package/dist/src/workspace/setup/report/chart-editor.d.ts +14 -0
  944. package/dist/src/workspace/setup/report/edit/confirm-removal-dialog.d.ts +9 -0
  945. package/dist/src/workspace/setup/report/edit/dialog-body.d.ts +10 -0
  946. package/dist/src/workspace/setup/report/edit/form.d.ts +14 -0
  947. package/dist/src/workspace/setup/report/edit/representations-section.d.ts +11 -0
  948. package/dist/src/workspace/setup/report/edit/sections.d.ts +23 -0
  949. package/dist/src/workspace/setup/report/edit/state.d.ts +29 -0
  950. package/dist/src/workspace/setup/report/foldable-item-card.d.ts +47 -0
  951. package/dist/src/workspace/setup/report/histogram-editor.d.ts +9 -0
  952. package/dist/src/workspace/setup/report/hourly-matrix-editor.d.ts +9 -0
  953. package/dist/src/workspace/setup/report/includes-literal.d.ts +1 -0
  954. package/dist/src/workspace/setup/report/layout-editor.d.ts +6 -0
  955. package/dist/src/workspace/setup/report/number-draft-input.d.ts +23 -0
  956. package/dist/src/workspace/setup/report/page.d.ts +3 -0
  957. package/dist/src/workspace/setup/report/sankey-editor.d.ts +9 -0
  958. package/dist/src/workspace/setup/report/state-duration-editor.d.ts +9 -0
  959. package/dist/src/workspace/setup/report/table-editor.d.ts +9 -0
  960. package/dist/src/workspace/setup/report/time-buckets-editor.d.ts +9 -0
  961. package/dist/src/workspace/setup/route/dialog.d.ts +33 -0
  962. package/dist/src/workspace/setup/route/dialogs.d.ts +41 -0
  963. package/dist/src/workspace/setup/sections.d.ts +17 -0
  964. package/dist/src/workspace/setup/starters/starter-fields.d.ts +45 -0
  965. package/dist/src/workspace/setup/starters/starter-form.d.ts +50 -0
  966. package/dist/src/workspace/setup/storage/dialogs.d.ts +77 -0
  967. package/dist/src/workspace/setup/storage/format.d.ts +6 -0
  968. package/dist/src/workspace/setup/storage/page.d.ts +3 -0
  969. package/dist/src/workspace/setup/storage/retention-note.d.ts +11 -0
  970. package/dist/src/workspace/setup/storage/retention.d.ts +21 -0
  971. package/dist/src/workspace/shell.d.ts +21 -0
  972. package/dist/src/workspace/sidebar-nav-link.d.ts +13 -0
  973. package/dist/src/workspace/suspended.d.ts +8 -0
  974. package/dist/starter-fields-yM4B49nd.js +583 -0
  975. package/dist/starter-handoff-BaK8Ss8I.js +18 -0
  976. package/dist/styles-reference.css +54 -0
  977. package/dist/styles.css +2 -0
  978. package/dist/ui.js +2134 -0
  979. package/dist/uk-CjXPq9Lk.js +4577 -0
  980. package/dist/wireguard-docs-CC8XKBR7.js +78 -0
  981. package/package.json +155 -3
@@ -0,0 +1,1337 @@
1
+ import { Fr as e, Jr as t, Kn as n, Nt as r, Qn as i, Wn as a, ii as o, zn as s } from "./quick-report-DEqqwQxR.js";
2
+ import { h as c, m as l, n as u } from "./i18n-Dt6xbSK6.js";
3
+ import { $ as d, B as f, Nt as p, R as m, at as h, ct as g, jt as _, lt as v, rt as y, st as b, tt as x, ut as S, xt as C } from "./alert-dialog-B60PF7S9.js";
4
+ import { A as w, H as T, L as E, M as D, Y as O, j as k, l as A, t as j } from "./spinner-BRcNKwjH.js";
5
+ import { a as M, c as N, d as P, i as F, n as ee, r as I, s as L, u as R } from "./notice-card-CH28rYUt.js";
6
+ import { t as z } from "./diagnostic-text-CsbENUNI.js";
7
+ import { a as te, b as ne, i as re, n as ie } from "./panel-BCwBlB_h.js";
8
+ import { n as ae, r as oe, t as B } from "./query-gate-DqmHsZ07.js";
9
+ import { t as se } from "./breadcrumbs-D2u8KZQo.js";
10
+ import { n as ce, t as le } from "./base-revision-DYCOZS0R.js";
11
+ import { t as ue } from "./code-editor-BMSyzAxu.js";
12
+ import { a as de, i as fe, n as pe, o as V, r as me, t as he } from "./run-text-DneX9rWh.js";
13
+ import { n as ge, t as _e } from "./editor-language-CTfJBXMs.js";
14
+ import { n as ve } from "./starter-handoff-BaK8Ss8I.js";
15
+ import { n as ye, t as be } from "./entity-controls-BCuRx882.js";
16
+ import { useCallback as xe, useDeferredValue as Se, useEffect as Ce, useId as we, useMemo as H, useRef as Te, useState as U } from "react";
17
+ import { Fragment as Ee, jsx as W, jsxs as G } from "react/jsx-runtime";
18
+ import K from "typebox";
19
+ import { ChevronRightIcon as De, CircleAlertIcon as Oe, CircleCheckIcon as ke, FlaskConicalIcon as Ae, HistoryIcon as je, RefreshCwIcon as Me, SparklesIcon as Ne, Trash2Icon as Pe, TriangleAlertIcon as Fe, WorkflowIcon as Ie } from "lucide-react";
20
+ import { formatAppDateTime as Le, resolveLocalized as q, schema as Re } from "@overvis/hmi-shared";
21
+ import { Value as ze } from "typebox/value";
22
+ import { automationCatalog as Be, automationContextOf as Ve, automationLanguageService as He, automationTextsInLocale as Ue, automationType as We, automationTypedValueType as Ge, maxProcedureSteps as Ke, restoreAutomationTexts as qe, validateAutomation as Je } from "@overvis/hmi-shared/automation";
23
+ import { useNavigate as Ye, useRouter as Xe } from "@tanstack/react-router";
24
+ import { formatExpressionValue as Ze } from "@overvis/hmi-shared/expression";
25
+ import { json as Qe, jsonLanguage as $e } from "@codemirror/lang-json";
26
+ // src/code-editor/json-positions.ts
27
+ var et = /* @__PURE__ */ new Set([
28
+ "{",
29
+ "}",
30
+ "[",
31
+ "]",
32
+ ",",
33
+ ":"
34
+ ]);
35
+ function J(e) {
36
+ return $e.parser.parse(e);
37
+ }
38
+ function Y(e) {
39
+ let t = [];
40
+ for (let n = e.firstChild; n !== null; n = n.nextSibling) !et.has(n.name) && !n.type.isError && t.push(n);
41
+ return t;
42
+ }
43
+ function tt(e) {
44
+ return e.replaceAll("~1", "/").replaceAll("~0", "~");
45
+ }
46
+ function nt(e, t) {
47
+ try {
48
+ let n = JSON.parse(e.slice(t.from, t.to));
49
+ return typeof n == "string" ? n : null;
50
+ } catch {
51
+ return null;
52
+ }
53
+ }
54
+ function rt(e) {
55
+ return e.name === "Property" ? Y(e)[1] ?? null : e;
56
+ }
57
+ function it(e, t, n) {
58
+ let r = Y(e.topNode)[0];
59
+ if (r === void 0) return null;
60
+ let i = n === "" ? [] : n.split("/").slice(1).map(tt);
61
+ for (let e of i) {
62
+ let n = null;
63
+ if (r.name === "Object") {
64
+ let i = [...Y(r)].reverse().find((n) => {
65
+ let r = n.firstChild;
66
+ return r !== null && nt(t, r) === e;
67
+ });
68
+ n = i === void 0 ? null : rt(i);
69
+ } else r.name === "Array" && /^\d+$/.test(e) && (n = Y(r)[Number(e)] ?? null);
70
+ if (n === null) return {
71
+ node: r,
72
+ exact: !1
73
+ };
74
+ r = n;
75
+ }
76
+ return {
77
+ node: r,
78
+ exact: !0
79
+ };
80
+ }
81
+ function at(e) {
82
+ if (e.name !== "Object" && e.name !== "Array") return {
83
+ from: e.from,
84
+ to: e.to
85
+ };
86
+ let t = e.parent, n = t?.name === "Property" ? t.firstChild : null;
87
+ return n === null ? {
88
+ from: e.from,
89
+ to: Math.min(e.from + 1, e.to)
90
+ } : {
91
+ from: n.from,
92
+ to: n.to
93
+ };
94
+ }
95
+ function ot(e, t, n) {
96
+ let r = [], i = t + 1, a = Math.max(i, n - 1);
97
+ for (; i < a;) r.push(i), e[i] === "\\" ? i += e[i + 1] === "u" ? 6 : 2 : i += 1;
98
+ return r.push(a), r;
99
+ }
100
+ function X(e, t, n, r) {
101
+ let i = it(e, t, n);
102
+ if (i === null) return {
103
+ from: 0,
104
+ to: Math.min(1, t.length)
105
+ };
106
+ let { node: a, exact: o } = i;
107
+ if (o && r !== void 0 && a.name === "String") {
108
+ let e = ot(t, a.from, a.to), n = e.length - 1, i = e[Math.min(Math.max(r.start, 0), n)] ?? a.from, o = e[Math.min(Math.max(r.end, r.start), n)] ?? a.to;
109
+ return o > i ? {
110
+ from: i,
111
+ to: o
112
+ } : {
113
+ from: i,
114
+ to: Math.min(i + 1, a.to)
115
+ };
116
+ }
117
+ return at(a);
118
+ }
119
+ function st(e, t) {
120
+ let n = { span: null };
121
+ if (e.iterate({ enter: (e) => {
122
+ if (n.span !== null) return !1;
123
+ if (!e.type.isError) return;
124
+ let r = Math.max(0, Math.min(e.from, t.length - 1));
125
+ return n.span = {
126
+ from: r,
127
+ to: Math.min(Math.max(e.to, r + 1), t.length)
128
+ }, !1;
129
+ } }), n.span !== null) return n.span;
130
+ try {
131
+ return JSON.parse(t), null;
132
+ } catch {
133
+ return {
134
+ from: 0,
135
+ to: Math.min(1, t.length)
136
+ };
137
+ }
138
+ }
139
+ // src/workspace/automations/use-catalog.ts
140
+ function ct(e) {
141
+ let t = c(), n = o.parameter.listTree.useQuery({ workspaceId: e }), r = o.endpoint.listSummaries.useQuery({ workspaceId: e }), i = o.alarmRule.list.useQuery({ workspaceId: e }), a = o.automation.list.useQuery({ workspaceId: e }), s = o.automation.members.useQuery({ workspaceId: e });
142
+ return H(() => Be({
143
+ locale: t,
144
+ branches: n.data?.branches ?? [],
145
+ parameters: n.data?.parameters ?? [],
146
+ endpoints: r.data?.endpoints ?? [],
147
+ alarmRules: i.data?.items ?? [],
148
+ automations: a.data?.items ?? [],
149
+ members: s.data?.members ?? []
150
+ }), [
151
+ t,
152
+ n.data,
153
+ r.data,
154
+ i.data,
155
+ a.data,
156
+ s.data
157
+ ]);
158
+ }
159
+ function lt(e) {
160
+ let t = Xe();
161
+ return xe((n, r) => {
162
+ let i = (() => {
163
+ switch (n) {
164
+ case "parameter": return t.buildLocation({
165
+ to: "/workspace/$workspaceId/setup/parameters/$parameterId",
166
+ params: {
167
+ workspaceId: e,
168
+ parameterId: r
169
+ }
170
+ }).publicHref;
171
+ case "endpoint": return t.buildLocation({
172
+ to: "/workspace/$workspaceId/setup/endpoints/$endpointId",
173
+ params: {
174
+ workspaceId: e,
175
+ endpointId: r
176
+ }
177
+ }).publicHref;
178
+ case "alarmRule": return t.buildLocation({
179
+ to: "/workspace/$workspaceId/setup/automations/alarm-rules/$alarmRuleId",
180
+ params: {
181
+ workspaceId: e,
182
+ alarmRuleId: r
183
+ }
184
+ }).publicHref;
185
+ case "automation": return t.buildLocation({
186
+ to: "/workspace/$workspaceId/setup/automations/$automationId",
187
+ params: {
188
+ workspaceId: e,
189
+ automationId: r
190
+ }
191
+ }).publicHref;
192
+ case "member": return null;
193
+ }
194
+ })();
195
+ i !== null && window.open(i, "_blank", "noopener");
196
+ }, [t, e]);
197
+ }
198
+ // src/workspace/setup/automations/document.ts
199
+ var ut = K.Object({
200
+ text: K.String(),
201
+ dashboardId: K.String()
202
+ }), dt = Re(ut), ft = /* @__PURE__ */ "kind.name.description.pollIntervalMs.minRunIntervalMs.writeLimit.count.periodMs.type.lifetime.source.parameterId.endpointId.alarm.alarmRuleId.automationId.key.initial.formula.event.offsetMs.everyMs.times.weekdays.inputs.transitions.command.minRole.run.variable.procedure.max.counter.value.level.severity.message.title.body.params.latching.recipients.roles.userIds.notifyDelayMs.excludeChannels.delayMs.cancelKey.branches.when.heldForMs.once.steps.else.triggers.variables.procedures.onInit".split("."), pt = new Map(ft.map((e, t) => [e, t]));
203
+ function Z(e) {
204
+ if (Array.isArray(e)) return e.map(Z);
205
+ if (typeof e != "object" || !e) return e;
206
+ let t = Object.entries(e), n = (e) => pt.get(e) ?? ft.length;
207
+ return Object.fromEntries(t.map(([e, t], n) => ({
208
+ key: e,
209
+ inner: t,
210
+ index: n
211
+ })).sort((e, t) => n(e.key) - n(t.key) || e.index - t.index).map(({ key: e, inner: t }) => [e, Z(t)]));
212
+ }
213
+ function mt(e) {
214
+ return `${JSON.stringify(Z(e), null, 2)}\n`;
215
+ }
216
+ function ht(e, t) {
217
+ let n = Math.max(6e4, t.minTriggerIntervalMs);
218
+ return {
219
+ name: e,
220
+ pollIntervalMs: Math.max(1e4, t.minTriggerIntervalMs),
221
+ minRunIntervalMs: Math.max(1e4, t.minTriggerIntervalMs),
222
+ writeLimit: {
223
+ count: Math.min(10, t.maxWritesPerMinute),
224
+ periodMs: 6e4
225
+ },
226
+ triggers: [{
227
+ kind: "period",
228
+ everyMs: n,
229
+ run: "main"
230
+ }],
231
+ variables: [],
232
+ procedures: [{
233
+ name: "main",
234
+ steps: [{
235
+ kind: "writeLog",
236
+ level: "info",
237
+ message: "\"Hello\""
238
+ }]
239
+ }]
240
+ };
241
+ }
242
+ var gt = /^(?:\/name|\/description|.*\/message\/(?:title|body))$/;
243
+ function _t(e, t, n, r = (e) => e) {
244
+ let i = J(e), a = st(i, e);
245
+ if (a !== null) return {
246
+ value: null,
247
+ automation: null,
248
+ problems: [{
249
+ span: a,
250
+ severity: "error",
251
+ diagnostic: null
252
+ }],
253
+ errorCount: 1,
254
+ stepBudget: /* @__PURE__ */ new Map(),
255
+ maxSteps: null
256
+ };
257
+ let o = r(JSON.parse(e)), s = Je(o, Ve(t, n), t.limits), c = s.diagnostics.map((t) => ({
258
+ span: X(i, e, t.path, gt.test(t.path) ? void 0 : t.range),
259
+ severity: t.severity,
260
+ diagnostic: t
261
+ })).sort((e, t) => (e.severity === t.severity ? 0 : e.severity === "error" ? -1 : 1) || e.span.from - t.span.from), l = ze.Check(We, o) ? o : null;
262
+ return {
263
+ value: o,
264
+ automation: l,
265
+ problems: c,
266
+ errorCount: c.filter((e) => e.severity === "error").length,
267
+ stepBudget: l === null ? /* @__PURE__ */ new Map() : Ke(l.procedures),
268
+ maxSteps: s.maxSteps
269
+ };
270
+ }
271
+ // src/workspace/automations/parameter-names.ts
272
+ function vt(e) {
273
+ let t = c(), n = o.parameter.listTree.useQuery({ workspaceId: e }), r = H(() => new Map((n.data?.parameters ?? []).map((e) => [e.id, q(e.name, t)])), [n.data, t]);
274
+ return (e) => r.get(e) ?? null;
275
+ }
276
+ // src/workspace/automations/trace-view.tsx
277
+ function yt(e) {
278
+ if (typeof e != "object" || !e || !("procedures" in e)) return [];
279
+ let t = e.procedures;
280
+ return Array.isArray(t) ? t.map((e) => typeof e == "object" && e && "name" in e && typeof e.name == "string" ? e.name : "") : [];
281
+ }
282
+ function bt() {
283
+ let e = l();
284
+ return (t, n) => {
285
+ let r = t.split("/").slice(1);
286
+ if (r[0] !== "procedures" || r[1] === void 0) return t;
287
+ let i = Number(r[1]), a = [n[i] ?? `#${String(i + 1)}`];
288
+ for (let t = 2; t < r.length; t += 2) {
289
+ let n = r[t], i = Number(r[t + 1]);
290
+ if (n === "steps") a.push(String(i + 1));
291
+ else if (n === "branches") a.push(e("automation_location_branch", { n: String(i + 1) }));
292
+ else if (n === "else") a.push(e("automation_location_else")), --t;
293
+ else break;
294
+ }
295
+ return a.join(" › ");
296
+ };
297
+ }
298
+ function xt(e) {
299
+ return typeof e == "object" && !!e && !Array.isArray(e);
300
+ }
301
+ function St() {
302
+ let e = c();
303
+ return (t) => {
304
+ if (!xt(t)) return "";
305
+ let n = t.title, r;
306
+ if (typeof n == "string") r = n;
307
+ else if (xt(n)) {
308
+ let t = Object.fromEntries(Object.entries(n).filter((e) => typeof e[1] == "string"));
309
+ r = q(t, e);
310
+ } else return "";
311
+ let i = xt(t.params) ? t.params : {};
312
+ return r.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g, (e, t) => {
313
+ let n = i[t];
314
+ return ze.Check(Ge, n) ? typeof n.value == "string" ? n.value : (n.type === "duration" || n.type === "timeOfDay") && n.value !== null ? Ze(n.value, n.type, "UTC") ?? e : me(n) : e;
315
+ });
316
+ };
317
+ }
318
+ function Q({ values: e, empty: t }) {
319
+ let n = Object.entries(e).sort(([e], [t]) => e.localeCompare(t));
320
+ return n.length === 0 ? /* @__PURE__ */ W("p", {
321
+ className: "text-sm text-muted-foreground",
322
+ children: t
323
+ }) : /* @__PURE__ */ W("dl", {
324
+ className: "grid grid-cols-[minmax(0,auto)_minmax(0,1fr)] gap-x-4 gap-y-1 text-sm",
325
+ children: n.map(([e, t]) => /* @__PURE__ */ G("div", {
326
+ className: "contents",
327
+ children: [/* @__PURE__ */ W("dt", {
328
+ className: "truncate font-mono text-muted-foreground",
329
+ children: e
330
+ }), /* @__PURE__ */ W("dd", {
331
+ className: "truncate font-mono",
332
+ children: me(t)
333
+ })]
334
+ }, e))
335
+ });
336
+ }
337
+ function Ct(e) {
338
+ if (e.kind === "writeLog") switch (e.detail.level) {
339
+ case "error": return "destructive";
340
+ case "warn": return "warning";
341
+ case "info": return "secondary";
342
+ default: return "outline";
343
+ }
344
+ return e.kind === "fail" || e.kind === "writeFailed" || e.kind === "writeDropped" || e.kind === "writeLimited" ? "destructive" : "outline";
345
+ }
346
+ function wt({ step: e }) {
347
+ let t = e.detail.level, n = Ct(e);
348
+ return /* @__PURE__ */ W(A, {
349
+ variant: n,
350
+ className: "shrink-0 font-mono",
351
+ children: e.kind === "writeLog" && typeof t == "string" ? `${V(e.kind)} · ${t}` : V(e.kind)
352
+ });
353
+ }
354
+ function Tt({ steps: e, procedures: t, parameterName: n, onReveal: r }) {
355
+ let i = bt();
356
+ return /* @__PURE__ */ W("ol", {
357
+ className: "divide-y rounded-md border text-sm",
358
+ children: e.map((e, a) => {
359
+ let o = de(e, n);
360
+ return /* @__PURE__ */ G("li", {
361
+ className: "\n flex flex-col gap-1 px-3 py-1.5\n sm:flex-row sm:items-center sm:gap-3\n ",
362
+ children: [/* @__PURE__ */ G("div", {
363
+ className: "flex min-w-0 flex-1 items-center gap-2",
364
+ children: [
365
+ /* @__PURE__ */ W("span", {
366
+ className: "w-8 shrink-0 text-right text-xs text-muted-foreground tabular-nums",
367
+ children: a + 1
368
+ }),
369
+ /* @__PURE__ */ W(wt, { step: e }),
370
+ o === "" ? null : /* @__PURE__ */ W("span", {
371
+ className: "min-w-0 truncate font-mono",
372
+ children: o
373
+ })
374
+ ]
375
+ }), e.path === "" ? null : r == null ? /* @__PURE__ */ W("span", {
376
+ className: "shrink-0 text-xs text-muted-foreground",
377
+ children: i(e.path, t)
378
+ }) : /* @__PURE__ */ W(_, {
379
+ type: "button",
380
+ variant: "link",
381
+ size: "sm",
382
+ className: "\n h-auto shrink-0 self-start p-0 text-xs\n sm:self-auto\n ",
383
+ onClick: () => {
384
+ r(e.path);
385
+ },
386
+ children: i(e.path, t)
387
+ })]
388
+ }, a);
389
+ })
390
+ });
391
+ }
392
+ function Et({ effects: e, parameterName: t, empty: n }) {
393
+ let r = l(), i = St();
394
+ if (e.length === 0) return /* @__PURE__ */ W("p", {
395
+ className: "text-sm text-muted-foreground",
396
+ children: n
397
+ });
398
+ let a = (e) => typeof e == "string" ? e : "";
399
+ return /* @__PURE__ */ W("ul", {
400
+ className: "divide-y rounded-md border text-sm",
401
+ children: e.map((e, n) => {
402
+ let o = e.detail, s;
403
+ switch (e.kind) {
404
+ case "writeParameter": {
405
+ let e = a(o.parameterId);
406
+ s = `${t(e) ?? e} ← ${a(o.value)}`;
407
+ break;
408
+ }
409
+ case "notify":
410
+ case "reply":
411
+ s = i(o.message);
412
+ break;
413
+ case "raiseAlarm":
414
+ s = r("automation_effect_alarm", {
415
+ key: a(o.key),
416
+ title: i(o.message)
417
+ });
418
+ break;
419
+ case "clearAlarm":
420
+ s = a(o.key);
421
+ break;
422
+ case "cancelNotify":
423
+ s = a(o.cancelKey);
424
+ break;
425
+ default: s = "";
426
+ }
427
+ let c = a(o.severity);
428
+ return /* @__PURE__ */ G("li", {
429
+ className: "flex items-center gap-2 px-3 py-1.5",
430
+ children: [
431
+ /* @__PURE__ */ W(A, {
432
+ variant: "outline",
433
+ className: "shrink-0",
434
+ children: V(e.kind)
435
+ }),
436
+ o.limited === !0 ? /* @__PURE__ */ W(A, {
437
+ variant: "destructive",
438
+ className: "shrink-0",
439
+ children: V("writeLimited")
440
+ }) : null,
441
+ c === "" ? null : /* @__PURE__ */ W(A, {
442
+ variant: c === "urgent" ? "destructive" : "secondary",
443
+ children: fe(c)
444
+ }),
445
+ /* @__PURE__ */ W("span", {
446
+ className: "min-w-0 truncate",
447
+ children: s
448
+ })
449
+ ]
450
+ }, n);
451
+ })
452
+ });
453
+ }
454
+ // src/workspace/setup/automations/dry-run.tsx
455
+ function Dt(e) {
456
+ return e.triggers[0]?.run ?? e.procedures[0]?.name ?? "";
457
+ }
458
+ function $({ title: e, children: t }) {
459
+ return /* @__PURE__ */ G("section", {
460
+ className: "flex min-w-0 flex-col gap-2",
461
+ children: [/* @__PURE__ */ W("h4", {
462
+ className: "text-sm font-medium",
463
+ children: e
464
+ }), t]
465
+ });
466
+ }
467
+ function Ot({ workspaceId: e, automationId: t, automation: n, onReveal: r }) {
468
+ let i = l(), s = we(), c = we(), [u, d] = U(null), [f, p] = U(!1), m = vt(e), h = o.automation.dryRun.useMutation(), g = n?.procedures.map((e) => e.name) ?? [], v = u !== null && g.includes(u) ? u : n === null ? "" : Dt(n), b = n?.triggers.some((e) => e.kind === "telegram" && e.run === v) ?? !1, S = h.data, C = h.variables;
469
+ return /* @__PURE__ */ G(M, { children: [/* @__PURE__ */ G(R, { children: [/* @__PURE__ */ G(P, {
470
+ className: "flex items-center gap-2",
471
+ children: [/* @__PURE__ */ W(Ae, { className: "size-4" }), i("automation_dry_run_title")]
472
+ }), /* @__PURE__ */ W(N, { children: i("automation_dry_run_description") })] }), /* @__PURE__ */ G(L, {
473
+ className: "flex flex-col gap-4",
474
+ children: [
475
+ /* @__PURE__ */ G("div", {
476
+ className: "\n flex flex-col gap-3\n sm:flex-row sm:items-end\n ",
477
+ children: [
478
+ /* @__PURE__ */ G(E, {
479
+ className: "sm:max-w-64",
480
+ children: [/* @__PURE__ */ W(T, {
481
+ htmlFor: s,
482
+ children: i("automation_dry_run_procedure")
483
+ }), /* @__PURE__ */ W(w, {
484
+ id: s,
485
+ value: v,
486
+ disabled: n === null,
487
+ onChange: (e) => {
488
+ d(e.target.value);
489
+ },
490
+ children: g.map((e) => /* @__PURE__ */ W(D, {
491
+ value: e,
492
+ children: e
493
+ }, e))
494
+ })]
495
+ }),
496
+ b ? /* @__PURE__ */ G("div", {
497
+ className: "\n flex items-center gap-2\n sm:pb-2\n ",
498
+ children: [/* @__PURE__ */ W(O, {
499
+ id: c,
500
+ checked: f,
501
+ onCheckedChange: (e) => {
502
+ p(e);
503
+ }
504
+ }), /* @__PURE__ */ W("label", {
505
+ htmlFor: c,
506
+ className: "text-sm",
507
+ children: i("automation_dry_run_command")
508
+ })]
509
+ }) : null,
510
+ /* @__PURE__ */ G(_, {
511
+ type: "button",
512
+ variant: "outline",
513
+ disabled: n === null || v === "" || h.isPending,
514
+ onClick: () => {
515
+ n !== null && h.mutate({
516
+ workspaceId: e,
517
+ ...t === void 0 ? {} : { automationId: t },
518
+ document: n,
519
+ procedure: v,
520
+ ...b && f ? { command: !0 } : {}
521
+ });
522
+ },
523
+ children: [h.isPending ? /* @__PURE__ */ W(j, { "data-icon": "inline-start" }) : null, i("automation_dry_run_submit")]
524
+ })
525
+ ]
526
+ }),
527
+ n === null ? /* @__PURE__ */ W("p", {
528
+ className: "text-sm text-muted-foreground",
529
+ children: i("automation_dry_run_needs_valid")
530
+ }) : null,
531
+ h.isError ? /* @__PURE__ */ W(x, {
532
+ variant: "destructive",
533
+ children: /* @__PURE__ */ W(y, { children: a(h.error) })
534
+ }) : null,
535
+ S != null && C != null && n !== null ? /* @__PURE__ */ G("div", {
536
+ className: "flex flex-col gap-4",
537
+ children: [
538
+ /* @__PURE__ */ G("div", {
539
+ className: "flex flex-wrap items-center gap-2 text-sm",
540
+ children: [/* @__PURE__ */ W(A, {
541
+ variant: S.status === "ok" ? "success" : "destructive",
542
+ children: S.status === "ok" ? i("automation_run_ok") : i("automation_run_failed")
543
+ }), /* @__PURE__ */ W("span", {
544
+ className: "text-muted-foreground",
545
+ children: i("automation_dry_run_summary", {
546
+ procedure: C.procedure,
547
+ at: Le(S.startedAt),
548
+ steps: String(S.steps),
549
+ limit: String(S.maxSteps)
550
+ })
551
+ })]
552
+ }),
553
+ S.errorCode === null ? null : /* @__PURE__ */ W(x, {
554
+ variant: "destructive",
555
+ children: /* @__PURE__ */ W(y, { children: he(S.errorCode, S.error) })
556
+ }),
557
+ /* @__PURE__ */ W("p", {
558
+ className: "text-sm text-muted-foreground",
559
+ children: i("automation_dry_run_applied_nothing")
560
+ }),
561
+ /* @__PURE__ */ G("div", {
562
+ className: "\n grid grid-cols-1 gap-4\n lg:grid-cols-2\n ",
563
+ children: [
564
+ /* @__PURE__ */ W($, {
565
+ title: i("automation_run_inputs"),
566
+ children: /* @__PURE__ */ W(Q, {
567
+ values: S.inputs,
568
+ empty: i("automation_run_no_inputs")
569
+ })
570
+ }),
571
+ /* @__PURE__ */ G($, {
572
+ title: i("automation_dry_run_effects"),
573
+ children: [S.status === "failed" && S.effects.length > 0 ? /* @__PURE__ */ W("p", {
574
+ className: "text-sm text-muted-foreground",
575
+ children: i("automation_dry_run_failed_applies_nothing")
576
+ }) : null, /* @__PURE__ */ W(Et, {
577
+ effects: S.effects,
578
+ parameterName: m,
579
+ empty: i("automation_dry_run_no_effects")
580
+ })]
581
+ }),
582
+ /* @__PURE__ */ W($, {
583
+ title: i("automation_dry_run_state_before"),
584
+ children: /* @__PURE__ */ W(Q, {
585
+ values: S.stateBefore,
586
+ empty: i("automation_run_no_state")
587
+ })
588
+ }),
589
+ /* @__PURE__ */ W($, {
590
+ title: i("automation_dry_run_state_after"),
591
+ children: /* @__PURE__ */ W(Q, {
592
+ values: S.stateAfter,
593
+ empty: i("automation_run_no_state")
594
+ })
595
+ })
596
+ ]
597
+ }),
598
+ /* @__PURE__ */ W($, {
599
+ title: i("automation_run_steps"),
600
+ children: S.trace.length === 0 ? /* @__PURE__ */ W("p", {
601
+ className: "text-sm text-muted-foreground",
602
+ children: i("automation_run_no_steps")
603
+ }) : /* @__PURE__ */ W(Tt, {
604
+ steps: S.trace,
605
+ procedures: yt(C.document),
606
+ parameterName: m,
607
+ ...JSON.stringify(C.document) === JSON.stringify(n) ? { onReveal: r } : {}
608
+ })
609
+ })
610
+ ]
611
+ }) : null
612
+ ]
613
+ })] });
614
+ }
615
+ // src/workspace/setup/automations/editor-form.tsx
616
+ var kt = [];
617
+ function At(e) {
618
+ return String(e / 1e3);
619
+ }
620
+ function jt({ workspaceId: e, detail: t, context: a, editorRef: o, onCreated: d, onReload: f, onDirtyChange: p, starter: m }) {
621
+ let h = l(), g = u(), _ = c(), [v] = U(_), y = r(e), b = ce(t?.revision), x = t?.id, [S, C] = U(t?.document ?? m ?? null), [w, T] = U(t?.dashboardId ?? ""), [E, D] = U(() => {
622
+ let e = t?.document ?? m;
623
+ return mt(e === void 0 ? ht(h("automation_new_name"), a.limits) : Ue(e, v));
624
+ }), O = n({
625
+ defaultValues: {
626
+ text: E,
627
+ dashboardId: t?.dashboardId ?? ""
628
+ },
629
+ validators: s({
630
+ schema: dt,
631
+ submit: async (t) => {
632
+ let n = _t(t.text, a, x, (e) => qe(S, e, v));
633
+ if (n.errorCount > 0 || n.automation === null) return {
634
+ form: () => h("automation_editor_save_has_errors"),
635
+ fields: {}
636
+ };
637
+ let r = n.automation, i = t.dashboardId === "" ? null : t.dashboardId;
638
+ if (x == null) {
639
+ let t = await y.create.mutateAsync({
640
+ workspaceId: e,
641
+ document: r,
642
+ dashboardId: i
643
+ });
644
+ d?.(t.id);
645
+ } else {
646
+ let e = await y.update.mutateAsync({
647
+ id: x,
648
+ document: r,
649
+ dashboardId: i,
650
+ ...b.baseRevision === void 0 ? {} : { baseRevision: b.baseRevision }
651
+ });
652
+ b.rebase(e.revision), C(r), D(t.text), T(t.dashboardId);
653
+ }
654
+ return null;
655
+ },
656
+ mapError: b.mapError(),
657
+ onError: b.onError
658
+ }),
659
+ onSubmitInvalid: i,
660
+ onSubmit: () => {
661
+ g.success(h(x == null ? "automation_create_toast" : "automation_save_toast"));
662
+ }
663
+ }), [k, A] = U(t?.revision), [j, M] = U(null);
664
+ if (t !== void 0 && t.revision !== k && (A(t.revision), t.revision !== b.baseRevision && O.state.values.text === E && O.state.values.dashboardId === w)) {
665
+ let e = mt(Ue(t.document, v));
666
+ C(t.document), D(e), b.rebase(t.revision), T(t.dashboardId ?? ""), M({
667
+ text: e,
668
+ dashboardId: t.dashboardId ?? ""
669
+ });
670
+ }
671
+ return Ce(() => {
672
+ j !== null && O.reset(j);
673
+ }, [j, O]), /* @__PURE__ */ W(O.AppForm, { children: /* @__PURE__ */ G(O.FormRoot, {
674
+ banner: !1,
675
+ className: "flex flex-col gap-4",
676
+ children: [/* @__PURE__ */ W(O.Subscribe, {
677
+ selector: (e) => e.values.text,
678
+ children: (n) => /* @__PURE__ */ W(Rt, {
679
+ automationName: t == null ? h("automation_new_name") : q(t.name, v),
680
+ text: n,
681
+ savedText: E,
682
+ original: S,
683
+ locale: v,
684
+ ...p === void 0 ? {} : { onDirtyChange: p },
685
+ context: a,
686
+ automationId: x,
687
+ workspaceId: e,
688
+ onText: (e) => {
689
+ O.setFieldValue("text", e);
690
+ },
691
+ editorRef: o,
692
+ dashboardField: /* @__PURE__ */ W(O.AppField, {
693
+ name: "dashboardId",
694
+ children: (t) => /* @__PURE__ */ W(t.DashboardPickerField, {
695
+ label: h("automation_field_dashboard"),
696
+ workspaceId: e,
697
+ description: h("automation_field_dashboard_description")
698
+ })
699
+ })
700
+ })
701
+ }), /* @__PURE__ */ G("div", {
702
+ className: "flex flex-col gap-2",
703
+ children: [
704
+ /* @__PURE__ */ W(le, {
705
+ base: b,
706
+ onReload: f
707
+ }),
708
+ /* @__PURE__ */ W(O.FormErrorBanner, {}),
709
+ /* @__PURE__ */ W("div", {
710
+ className: "flex justify-end",
711
+ children: /* @__PURE__ */ W(O.SubmitButton, {
712
+ label: h(x == null ? "automation_create_submit" : "action_save"),
713
+ pendingLabel: h("action_saving")
714
+ })
715
+ })
716
+ ]
717
+ })]
718
+ }) });
719
+ }
720
+ var Mt = 30;
721
+ function Nt(e, t) {
722
+ let n = t.span.from, r = e.lastIndexOf("\n", n - 1) + 1, i = e.indexOf("\n", n);
723
+ return {
724
+ line: String(e.slice(0, n).split("\n").length),
725
+ column: String(n - r + 1),
726
+ excerpt: e.slice(r, i === -1 ? e.length : i).trim(),
727
+ code: t.diagnostic?.code ?? "json_syntax",
728
+ path: t.diagnostic?.path ?? ""
729
+ };
730
+ }
731
+ function Pt({ actions: e, onApply: t }) {
732
+ return e.length === 0 ? null : /* @__PURE__ */ W("div", {
733
+ className: "flex flex-wrap gap-x-1 gap-y-0.5 pb-1 pl-8",
734
+ children: e.map((e, n) => /* @__PURE__ */ G(_, {
735
+ type: "button",
736
+ variant: "link",
737
+ size: "xs",
738
+ className: "h-auto max-w-full px-0 py-0.5 text-left text-xs whitespace-normal",
739
+ onClick: () => {
740
+ t(e);
741
+ },
742
+ children: [e.run !== void 0 && e.edit === void 0 ? /* @__PURE__ */ W(Ne, { "data-icon": "inline-start" }) : null, e.label]
743
+ }, n))
744
+ });
745
+ }
746
+ var Ft = [
747
+ "trigger",
748
+ "variable",
749
+ "procedure",
750
+ "field"
751
+ ];
752
+ function It({ outline: e, onPick: t }) {
753
+ let n = l(), r = (e) => {
754
+ switch (e) {
755
+ case "trigger": return n("automation_outline_triggers");
756
+ case "variable": return n("automation_outline_variables");
757
+ case "procedure": return n("automation_outline_procedures");
758
+ case "field": return n("automation_outline_fields");
759
+ }
760
+ };
761
+ return /* @__PURE__ */ G(w, {
762
+ size: "sm",
763
+ "aria-label": n("automation_outline_label"),
764
+ value: "",
765
+ disabled: e.length === 0,
766
+ className: "\n w-full\n sm:w-72\n ",
767
+ onChange: (n) => {
768
+ let r = e[Number(n.target.value)];
769
+ r !== void 0 && t(r);
770
+ },
771
+ children: [/* @__PURE__ */ W(D, {
772
+ value: "",
773
+ children: n("automation_outline_placeholder")
774
+ }), Ft.map((t) => {
775
+ let n = e.map((e, t) => ({
776
+ item: e,
777
+ index: t
778
+ })).filter(({ item: e }) => e.kind === t);
779
+ return n.length === 0 ? null : /* @__PURE__ */ W(k, {
780
+ label: r(t),
781
+ children: n.map(({ item: e, index: t }) => /* @__PURE__ */ W(D, {
782
+ value: String(t),
783
+ children: e.detail === void 0 ? e.label : `${e.label} → ${e.detail}`
784
+ }, t))
785
+ }, t);
786
+ })]
787
+ });
788
+ }
789
+ function Lt({ problem: e }) {
790
+ return e.severity === "error" ? /* @__PURE__ */ W(Oe, { className: "mt-0.5 size-4 shrink-0 text-destructive" }) : /* @__PURE__ */ W(Fe, { className: "\n mt-0.5 size-4 shrink-0 text-amber-600\n dark:text-amber-400\n " });
791
+ }
792
+ function Rt({ text: n, savedText: r, original: i, locale: a, context: o, automationId: s, workspaceId: c, onText: u, editorRef: d, dashboardField: f, onDirtyChange: m, automationName: h }) {
793
+ let g = l(), _ = n !== r;
794
+ Ce(() => {
795
+ m?.(_);
796
+ }, [_, m]);
797
+ let v = Se(n), y = H(() => _t(v, o, s, (e) => qe(i, e, a)), [
798
+ v,
799
+ o,
800
+ s,
801
+ i,
802
+ a
803
+ ]), b = ct(c), x = lt(c), S = H(() => He({
804
+ document: "automation",
805
+ context: Ve(o, s),
806
+ catalog: b
807
+ }), [
808
+ o,
809
+ s,
810
+ b
811
+ ]), C = g("automation_language_docs"), w = H(() => [Qe(), t(_e(S, x, C))], [
812
+ S,
813
+ x,
814
+ C
815
+ ]), { openAssistant: T } = e(), E = (e) => e.diagnostic === null ? g("automation_editor_json_syntax") : z(e.diagnostic), D = H(() => y.problems.map((e, t) => {
816
+ let n = T === void 0 ? [] : [{
817
+ label: g("automation_ask_assistant"),
818
+ run: () => {
819
+ T(g("automation_ask_assistant_message", {
820
+ ...Nt(v, e),
821
+ automation: s === void 0 ? h : `${h} (${s})`,
822
+ problem: e.diagnostic === null ? g("automation_editor_json_syntax") : z(e.diagnostic)
823
+ }));
824
+ }
825
+ }];
826
+ return [...e.diagnostic === null || t >= Mt ? [] : ge(S, v, e.diagnostic), ...n];
827
+ }), [
828
+ y,
829
+ v,
830
+ S,
831
+ T,
832
+ h,
833
+ s,
834
+ g
835
+ ]), O = H(() => y.problems.map((e, t) => ({
836
+ from: e.span.from,
837
+ to: e.span.to,
838
+ severity: e.severity,
839
+ message: e.diagnostic === null ? g("automation_editor_json_syntax") : z(e.diagnostic),
840
+ actions: D[t] ?? []
841
+ })), [
842
+ y,
843
+ D,
844
+ g
845
+ ]), k = H(() => S.outline(v), [S, v]), A = y.problems.length - y.errorCount, j = (e, t) => {
846
+ d.current?.reveal(e, t);
847
+ }, N = o.limits.maxStepsPerRun, F = y.automation?.procedures ?? [];
848
+ return /* @__PURE__ */ G("div", {
849
+ className: "flex flex-col gap-4",
850
+ children: [/* @__PURE__ */ G("div", {
851
+ className: "\n grid grid-cols-1 gap-4\n lg:grid-cols-[minmax(0,1fr)_20rem]\n ",
852
+ children: [/* @__PURE__ */ G("div", {
853
+ className: "flex min-w-0 flex-col gap-2",
854
+ children: [
855
+ /* @__PURE__ */ W(It, {
856
+ outline: k,
857
+ onPick: (e) => {
858
+ j(e.from, e.from);
859
+ }
860
+ }),
861
+ /* @__PURE__ */ W(ue, {
862
+ ref: d,
863
+ id: "automation-document",
864
+ ariaLabel: g("automation_editor_document"),
865
+ ariaDescribedBy: "automation-document-status",
866
+ value: n,
867
+ onChange: u,
868
+ extensions: w,
869
+ diagnostics: v === n ? O : kt,
870
+ invalid: y.errorCount > 0,
871
+ className: "h-[60vh] min-h-80"
872
+ }),
873
+ /* @__PURE__ */ G("p", {
874
+ id: "automation-document-status",
875
+ className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",
876
+ children: [
877
+ /* @__PURE__ */ W("span", { children: y.problems.length === 0 ? g("automation_editor_no_problems") : g("automation_editor_problem_counts", {
878
+ errors: String(y.errorCount),
879
+ warnings: String(A)
880
+ }) }),
881
+ n === r ? null : /* @__PURE__ */ W("span", { children: g("automation_editor_unsaved") }),
882
+ /* @__PURE__ */ W("span", { children: g("automation_editor_keyboard_hint") })
883
+ ]
884
+ })
885
+ ]
886
+ }), /* @__PURE__ */ G("div", {
887
+ className: "flex min-w-0 flex-col gap-4",
888
+ children: [
889
+ /* @__PURE__ */ G(M, {
890
+ size: "sm",
891
+ children: [/* @__PURE__ */ W(R, { children: /* @__PURE__ */ W(P, { children: g("automation_editor_problems") }) }), /* @__PURE__ */ W(L, { children: y.problems.length === 0 ? /* @__PURE__ */ G("p", {
892
+ className: "flex items-center gap-2 text-sm text-muted-foreground",
893
+ children: [/* @__PURE__ */ W(ke, { className: "\n size-4 text-emerald-600\n dark:text-emerald-400\n " }), g("automation_editor_no_problems")]
894
+ }) : /* @__PURE__ */ W("ul", {
895
+ className: "-mx-2 flex max-h-72 flex-col overflow-y-auto",
896
+ children: y.problems.map((e, t) => /* @__PURE__ */ G("li", { children: [/* @__PURE__ */ G("button", {
897
+ type: "button",
898
+ className: "\n flex w-full gap-2 rounded-md px-2 py-1.5 text-left text-sm\n hover:bg-muted\n focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none\n ",
899
+ onClick: () => {
900
+ j(e.span.from, e.span.to);
901
+ },
902
+ children: [/* @__PURE__ */ W(Lt, { problem: e }), /* @__PURE__ */ W("span", {
903
+ className: "min-w-0 wrap-break-word",
904
+ children: E(e)
905
+ })]
906
+ }), /* @__PURE__ */ W(Pt, {
907
+ actions: (D[t] ?? []).filter((e) => e.edit === void 0 || v === n),
908
+ onApply: (e) => {
909
+ let t = d.current;
910
+ if (e.edit !== void 0) {
911
+ if (t?.text() !== v) return;
912
+ t.apply(e.edit);
913
+ }
914
+ e.run?.();
915
+ }
916
+ })] }, t))
917
+ }) })]
918
+ }),
919
+ /* @__PURE__ */ G(M, {
920
+ size: "sm",
921
+ children: [/* @__PURE__ */ W(R, { children: /* @__PURE__ */ W(P, { children: g("automation_editor_step_budget") }) }), /* @__PURE__ */ G(L, {
922
+ className: "flex flex-col gap-2 text-sm",
923
+ children: [/* @__PURE__ */ W("p", {
924
+ className: "text-muted-foreground",
925
+ children: g("automation_editor_step_budget_description", { limit: String(N) })
926
+ }), F.length === 0 ? null : /* @__PURE__ */ W("dl", {
927
+ className: "grid grid-cols-[minmax(0,1fr)_auto] gap-x-4 gap-y-1",
928
+ children: F.map((e) => {
929
+ let t = y.stepBudget.get(e.name);
930
+ return /* @__PURE__ */ G("div", {
931
+ className: "contents",
932
+ children: [/* @__PURE__ */ W("dt", {
933
+ className: "truncate font-mono",
934
+ children: e.name
935
+ }), /* @__PURE__ */ W("dd", {
936
+ className: p("text-right tabular-nums", t !== void 0 && t > N && "text-destructive"),
937
+ children: t === void 0 ? "—" : `${String(t)} / ${String(N)}`
938
+ })]
939
+ }, e.name);
940
+ })
941
+ })]
942
+ })]
943
+ }),
944
+ /* @__PURE__ */ G(M, {
945
+ size: "sm",
946
+ children: [/* @__PURE__ */ W(R, { children: /* @__PURE__ */ W(P, { children: g("automation_editor_limits") }) }), /* @__PURE__ */ W(L, { children: /* @__PURE__ */ G("dl", {
947
+ className: "grid grid-cols-[minmax(0,1fr)_auto] gap-x-4 gap-y-1 text-sm",
948
+ children: [
949
+ /* @__PURE__ */ W("dt", {
950
+ className: "text-muted-foreground",
951
+ children: g("automation_limit_steps")
952
+ }),
953
+ /* @__PURE__ */ W("dd", {
954
+ className: "text-right tabular-nums",
955
+ children: o.limits.maxStepsPerRun
956
+ }),
957
+ /* @__PURE__ */ W("dt", {
958
+ className: "text-muted-foreground",
959
+ children: g("automation_limit_interval")
960
+ }),
961
+ /* @__PURE__ */ W("dd", {
962
+ className: "text-right tabular-nums",
963
+ children: g("automation_seconds", { seconds: At(o.limits.minTriggerIntervalMs) })
964
+ }),
965
+ /* @__PURE__ */ W("dt", {
966
+ className: "text-muted-foreground",
967
+ children: g("automation_limit_writes")
968
+ }),
969
+ /* @__PURE__ */ W("dd", {
970
+ className: "text-right tabular-nums",
971
+ children: o.limits.maxWritesPerMinute
972
+ })
973
+ ]
974
+ }) })]
975
+ }),
976
+ f
977
+ ]
978
+ })]
979
+ }), /* @__PURE__ */ W(Ot, {
980
+ workspaceId: c,
981
+ automationId: s,
982
+ automation: y.errorCount === 0 ? y.automation : null,
983
+ onReveal: (e) => {
984
+ let t = X(J(n), n, e);
985
+ j(t.from, t.to);
986
+ }
987
+ })]
988
+ });
989
+ }
990
+ // src/workspace/setup/automations/history.tsx
991
+ var zt = 50;
992
+ function Bt(e) {
993
+ return e < 1e3 ? `${String(e)} µs` : `${(e / 1e3).toFixed(e < 1e4 ? 2 : 0)} ms`;
994
+ }
995
+ function Vt({ automationId: e, workspaceId: t, run: n, procedures: r, onReveal: i, sameVersion: s }) {
996
+ let c = l(), u = vt(t), d = o.automation.runTrace.useQuery({
997
+ id: e,
998
+ runId: n.runId
999
+ });
1000
+ if (d.isPending) return /* @__PURE__ */ W(C, { className: "h-24 w-full" });
1001
+ if (d.isError) return /* @__PURE__ */ W(B, { message: a(d.error) });
1002
+ let { inputs: f, steps: p } = d.data;
1003
+ return f === null && p.length === 0 ? /* @__PURE__ */ W("p", {
1004
+ className: "text-sm text-muted-foreground",
1005
+ children: n.steps === 0 ? c("automation_run_no_steps") : c("automation_run_trace_expired")
1006
+ }) : /* @__PURE__ */ G("div", {
1007
+ className: "flex flex-col gap-4",
1008
+ children: [f === null ? null : /* @__PURE__ */ G("section", {
1009
+ className: "flex flex-col gap-2",
1010
+ children: [/* @__PURE__ */ W("h4", {
1011
+ className: "text-sm font-medium",
1012
+ children: c("automation_run_inputs")
1013
+ }), /* @__PURE__ */ W(Q, {
1014
+ values: f,
1015
+ empty: c("automation_run_no_inputs")
1016
+ })]
1017
+ }), /* @__PURE__ */ G("section", {
1018
+ className: "flex flex-col gap-2",
1019
+ children: [
1020
+ /* @__PURE__ */ W("h4", {
1021
+ className: "text-sm font-medium",
1022
+ children: c("automation_run_steps")
1023
+ }),
1024
+ p.length === 0 ? /* @__PURE__ */ W("p", {
1025
+ className: "text-sm text-muted-foreground",
1026
+ children: c("automation_run_no_steps")
1027
+ }) : /* @__PURE__ */ W(Tt, {
1028
+ steps: p,
1029
+ procedures: s ? r : [],
1030
+ parameterName: u,
1031
+ ...i === void 0 ? {} : { onReveal: i }
1032
+ }),
1033
+ s ? null : /* @__PURE__ */ W("p", {
1034
+ className: "text-xs text-muted-foreground",
1035
+ children: c("automation_run_earlier_version")
1036
+ }),
1037
+ n.traceTruncated ? /* @__PURE__ */ W("p", {
1038
+ className: "text-xs text-muted-foreground",
1039
+ children: c("automation_run_trace_truncated", { steps: String(n.steps) })
1040
+ }) : null
1041
+ ]
1042
+ })]
1043
+ });
1044
+ }
1045
+ function Ht({ automationId: e, workspaceId: t, run: n, procedures: r, onReveal: i, savedRevision: a, editorShowsSaved: o }) {
1046
+ let s = l(), [c, u] = U(!1), d = n.procedure === "";
1047
+ return /* @__PURE__ */ G(ee, {
1048
+ open: c,
1049
+ onOpenChange: u,
1050
+ render: /* @__PURE__ */ W("li", {}),
1051
+ children: [/* @__PURE__ */ G(F, {
1052
+ className: "\n flex w-full items-start gap-2 px-3 py-2 text-left text-sm\n hover:bg-muted/40\n focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none\n ",
1053
+ children: [/* @__PURE__ */ W(De, { className: p("mt-0.5 size-4 shrink-0 text-muted-foreground transition-transform", c && "rotate-90") }), /* @__PURE__ */ G("div", {
1054
+ className: "flex min-w-0 flex-1 flex-col gap-1",
1055
+ children: [
1056
+ /* @__PURE__ */ G("div", {
1057
+ className: "flex flex-wrap items-center gap-x-3 gap-y-1",
1058
+ children: [
1059
+ /* @__PURE__ */ W("span", {
1060
+ className: "tabular-nums",
1061
+ children: Le(n.startedAt)
1062
+ }),
1063
+ /* @__PURE__ */ W(A, {
1064
+ variant: n.status === "ok" ? "success" : "destructive",
1065
+ children: n.status === "ok" ? s("automation_run_ok") : s("automation_run_failed")
1066
+ }),
1067
+ /* @__PURE__ */ W("span", {
1068
+ className: "min-w-0 truncate text-muted-foreground",
1069
+ children: pe(n.triggerKind, n.trigger)
1070
+ }),
1071
+ d ? null : /* @__PURE__ */ W("span", {
1072
+ className: "font-mono text-xs",
1073
+ children: n.procedure
1074
+ })
1075
+ ]
1076
+ }),
1077
+ d ? null : /* @__PURE__ */ G("div", {
1078
+ className: "flex flex-wrap gap-x-3 gap-y-1 text-xs text-muted-foreground",
1079
+ children: [
1080
+ /* @__PURE__ */ W("span", { children: s("automation_run_duration", { duration: Bt(n.durationUs) }) }),
1081
+ /* @__PURE__ */ W("span", { children: s("automation_run_step_count", { steps: String(n.steps) }) }),
1082
+ /* @__PURE__ */ W("span", { children: s("automation_run_write_count", { writes: String(n.writes) }) }),
1083
+ n.writesLimited > 0 ? /* @__PURE__ */ W("span", {
1084
+ className: "text-destructive",
1085
+ children: s("automation_run_limited_count", { writes: String(n.writesLimited) })
1086
+ }) : null,
1087
+ /* @__PURE__ */ W("span", { children: s("automation_run_notification_count", { notifications: String(n.notifications) }) })
1088
+ ]
1089
+ }),
1090
+ n.errorCode === null ? null : /* @__PURE__ */ W("p", {
1091
+ className: "text-destructive",
1092
+ children: he(n.errorCode, n.error)
1093
+ })
1094
+ ]
1095
+ })]
1096
+ }), /* @__PURE__ */ W(I, {
1097
+ className: "\n border-t bg-muted/20 p-3\n sm:pl-9\n ",
1098
+ children: c ? /* @__PURE__ */ W(Vt, {
1099
+ automationId: e,
1100
+ workspaceId: t,
1101
+ run: n,
1102
+ procedures: r,
1103
+ sameVersion: n.revision === a,
1104
+ onReveal: n.revision === a && o ? i : void 0
1105
+ }) : null
1106
+ })]
1107
+ });
1108
+ }
1109
+ function Ut({ workspaceId: e, automationId: t, document: n, savedRevision: r, editorShowsSaved: i, onReveal: s }) {
1110
+ let c = l(), [u, f] = U(!1), [p, m] = U(null), [y, x] = U(!1), [w, T] = U(null), E = o.useUtils(), D = o.automation.runs.useQuery({
1111
+ id: t,
1112
+ failedOnly: u,
1113
+ limit: zt
1114
+ }), O = yt(n), k = Te(0), A = () => {
1115
+ k.current += 1, m(null), T(null), x(!1);
1116
+ }, j = D.data?.next ?? null, M = j === null ? "" : `${j.startedAt}|${j.runId}`, N = p?.after === M ? p : null, P = N === null ? j : N.next, F = [...D.data?.items ?? [], ...N?.items ?? []];
1117
+ return /* @__PURE__ */ G("div", {
1118
+ className: "flex flex-col gap-3",
1119
+ children: [
1120
+ /* @__PURE__ */ G("div", {
1121
+ className: "flex flex-wrap items-center justify-between gap-2",
1122
+ children: [/* @__PURE__ */ W("p", {
1123
+ className: "text-sm text-muted-foreground",
1124
+ children: c("automation_history_description")
1125
+ }), /* @__PURE__ */ G("div", {
1126
+ className: "flex items-center gap-3",
1127
+ children: [/* @__PURE__ */ G("label", {
1128
+ className: "flex items-center gap-2 text-sm",
1129
+ children: [/* @__PURE__ */ W(d, {
1130
+ size: "sm",
1131
+ checked: u,
1132
+ onCheckedChange: (e) => {
1133
+ f(e), A();
1134
+ }
1135
+ }), c("automation_history_failed_only")]
1136
+ }), /* @__PURE__ */ G(_, {
1137
+ type: "button",
1138
+ variant: "outline",
1139
+ size: "sm",
1140
+ disabled: D.isFetching,
1141
+ onClick: () => {
1142
+ A(), D.refetch();
1143
+ },
1144
+ children: [/* @__PURE__ */ W(Me, { "data-icon": "inline-start" }), c("automation_history_refresh")]
1145
+ })]
1146
+ })]
1147
+ }),
1148
+ D.isPending ? /* @__PURE__ */ G("div", {
1149
+ className: "flex flex-col gap-2",
1150
+ children: [/* @__PURE__ */ W(C, { className: "h-12 w-full" }), /* @__PURE__ */ W(C, { className: "h-12 w-full" })]
1151
+ }) : D.isError ? /* @__PURE__ */ W(B, { message: a(D.error) }) : F.length === 0 ? /* @__PURE__ */ W(h, {
1152
+ className: "border",
1153
+ children: /* @__PURE__ */ G(g, { children: [
1154
+ /* @__PURE__ */ W(v, {
1155
+ variant: "icon",
1156
+ children: /* @__PURE__ */ W(je, {})
1157
+ }),
1158
+ /* @__PURE__ */ W(S, { children: c("automation_history_empty_title") }),
1159
+ /* @__PURE__ */ W(b, { children: c("automation_history_empty_description") })
1160
+ ] })
1161
+ }) : /* @__PURE__ */ W("ul", {
1162
+ className: "divide-y rounded-lg border bg-card",
1163
+ children: F.map((n) => /* @__PURE__ */ W(Ht, {
1164
+ automationId: t,
1165
+ workspaceId: e,
1166
+ run: n,
1167
+ procedures: O,
1168
+ onReveal: s,
1169
+ savedRevision: r,
1170
+ editorShowsSaved: i
1171
+ }, n.runId))
1172
+ }),
1173
+ w === null ? null : /* @__PURE__ */ W(B, { message: a(w) }),
1174
+ P === null || D.isPending ? null : /* @__PURE__ */ W(_, {
1175
+ type: "button",
1176
+ variant: "outline",
1177
+ className: "self-center",
1178
+ disabled: y,
1179
+ onClick: () => {
1180
+ let e = k.current, n = M, r = () => k.current === e;
1181
+ x(!0), T(null), E.client.automation.runs.query({
1182
+ id: t,
1183
+ failedOnly: u,
1184
+ limit: zt,
1185
+ before: P
1186
+ }).then((e) => {
1187
+ r() && m((t) => ({
1188
+ after: n,
1189
+ items: [...t?.after === n ? t.items : [], ...e.items],
1190
+ next: e.next
1191
+ }));
1192
+ }, (e) => {
1193
+ r() && T(e);
1194
+ }).finally(() => {
1195
+ r() && x(!1);
1196
+ });
1197
+ },
1198
+ children: c("automation_history_older")
1199
+ })
1200
+ ]
1201
+ });
1202
+ }
1203
+ // src/workspace/setup/automations/editor-page.tsx
1204
+ function Wt({ workspaceId: e, automationId: t, tab: n = "editor", onTabChange: r, onCreated: i, starterHandoff: s }) {
1205
+ let d = l(), h = u(), g = c(), v = Ye(), y = o.useUtils(), b = Te(null), [x, S] = U(0), [w, T] = U(!1), [E, D] = U(!1), O = t != null, [k] = U(() => O ? void 0 : ve(s)), A = o.automation.validationContext.useQuery({ workspaceId: e }), j = o.automation.get.useQuery({ id: t ?? "" }, { enabled: O }), M = A.data, N = j.data, P = M != null && (!O || N != null), F = {
1206
+ isLoading: A.isLoading || O && j.isLoading,
1207
+ isError: !P && (A.isError || O && j.isError),
1208
+ error: O ? j.error : A.error,
1209
+ data: P ? {
1210
+ context: M,
1211
+ detail: N
1212
+ } : void 0
1213
+ }, ee = P && (A.isError || O && j.isError), I = O ? n : "editor", L = () => {
1214
+ v({
1215
+ to: "/workspace/$workspaceId/setup/automations",
1216
+ params: { workspaceId: e }
1217
+ });
1218
+ };
1219
+ return /* @__PURE__ */ G("div", {
1220
+ className: "flex size-full min-h-0 flex-col",
1221
+ children: [
1222
+ /* @__PURE__ */ W(ne, {
1223
+ icon: /* @__PURE__ */ W(Ie, {}),
1224
+ breadcrumbs: /* @__PURE__ */ W(se, {
1225
+ workspaceId: e,
1226
+ section: "automations"
1227
+ }),
1228
+ title: N == null ? d("automation_create_title") : q(N.name, g),
1229
+ actions: N == null ? null : /* @__PURE__ */ G("div", {
1230
+ className: "flex items-center gap-2",
1231
+ children: [/* @__PURE__ */ W(ye, {
1232
+ workspaceId: e,
1233
+ entity: N,
1234
+ kind: "automation"
1235
+ }), /* @__PURE__ */ W(_, {
1236
+ type: "button",
1237
+ variant: "ghost",
1238
+ size: "icon-sm",
1239
+ "aria-label": d("automation_delete_action"),
1240
+ onClick: () => {
1241
+ T(!0);
1242
+ },
1243
+ children: /* @__PURE__ */ W(Pe, {})
1244
+ })]
1245
+ })
1246
+ }),
1247
+ /* @__PURE__ */ W("div", {
1248
+ className: "flex w-full max-w-7xl flex-1 flex-col gap-4 p-4",
1249
+ children: /* @__PURE__ */ W(oe, {
1250
+ query: F,
1251
+ loading: /* @__PURE__ */ G("div", {
1252
+ className: "flex flex-col gap-4",
1253
+ children: [/* @__PURE__ */ W(C, { className: "h-8 w-64" }), /* @__PURE__ */ W(C, { className: "h-96 w-full" })]
1254
+ }),
1255
+ error: (e) => /* @__PURE__ */ W(ae, {
1256
+ className: "flex-1 justify-center p-8",
1257
+ message: a(e ?? "automation_not_found"),
1258
+ onRetry: () => Promise.all([A.refetch(), j.refetch()])
1259
+ }),
1260
+ children: (n) => /* @__PURE__ */ G(Ee, { children: [
1261
+ ee ? /* @__PURE__ */ W(B, {
1262
+ message: a(j.error ?? A.error),
1263
+ onRetry: () => Promise.all([A.refetch(), j.refetch()])
1264
+ }) : null,
1265
+ O ? /* @__PURE__ */ W(ie, {
1266
+ value: I,
1267
+ onValueChange: (e) => {
1268
+ (e === "editor" || e === "history") && r?.(e);
1269
+ },
1270
+ children: /* @__PURE__ */ G(re, {
1271
+ variant: "line",
1272
+ children: [/* @__PURE__ */ W(te, {
1273
+ value: "editor",
1274
+ children: d("automation_tab_editor")
1275
+ }), /* @__PURE__ */ W(te, {
1276
+ value: "history",
1277
+ children: d("automation_tab_history")
1278
+ })]
1279
+ })
1280
+ }) : null,
1281
+ /* @__PURE__ */ W("div", {
1282
+ className: p(I !== "editor" && "hidden"),
1283
+ children: /* @__PURE__ */ W(jt, {
1284
+ onDirtyChange: D,
1285
+ ...k === void 0 ? {} : { starter: k },
1286
+ workspaceId: e,
1287
+ detail: n.detail,
1288
+ context: n.context,
1289
+ editorRef: b,
1290
+ ...i == null ? {} : { onCreated: i },
1291
+ onReload: async () => {
1292
+ if (t == null) return;
1293
+ let e = await y.client.automation.get.query({ id: t });
1294
+ y.automation.get.setData({ id: t }, e), S((e) => e + 1);
1295
+ }
1296
+ }, `${t ?? "new"}-${String(x)}`)
1297
+ }),
1298
+ O && I === "history" && n.detail != null ? /* @__PURE__ */ W(Ut, {
1299
+ workspaceId: e,
1300
+ automationId: n.detail.id,
1301
+ document: n.detail.document,
1302
+ savedRevision: n.detail.revision,
1303
+ editorShowsSaved: !E,
1304
+ onReveal: (e) => {
1305
+ r?.("editor"), requestAnimationFrame(() => {
1306
+ let t = b.current;
1307
+ if (t == null) return;
1308
+ let n = t.text(), r = X(J(n), n, e);
1309
+ t.reveal(r.from, r.to);
1310
+ });
1311
+ }
1312
+ }) : null
1313
+ ] })
1314
+ })
1315
+ }),
1316
+ /* @__PURE__ */ W(m, {
1317
+ open: w && N != null,
1318
+ onOpenChange: (e) => {
1319
+ e || T(!1);
1320
+ },
1321
+ children: /* @__PURE__ */ W(f, { children: N == null ? null : /* @__PURE__ */ W(be, {
1322
+ workspaceId: e,
1323
+ kind: "automation",
1324
+ id: N.id,
1325
+ baseRevision: N.revision,
1326
+ onCancel: () => {
1327
+ T(!1);
1328
+ },
1329
+ onDeleted: () => {
1330
+ T(!1), h.success(d("automation_delete_toast")), L();
1331
+ }
1332
+ }) })
1333
+ })
1334
+ ]
1335
+ });
1336
+ }
1337
+ export { Wt as SetupAutomationEditorPage };