@vscada/primitives 0.0.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 (311) hide show
  1. package/dist/.tsbuildinfo +1 -0
  2. package/dist/annotation/index.d.ts +9 -0
  3. package/dist/annotation/index.d.ts.map +1 -0
  4. package/dist/annotation/off-page/index.d.ts +3 -0
  5. package/dist/annotation/off-page/index.d.ts.map +1 -0
  6. package/dist/annotation/off-page/off-page.stories.d.ts +7 -0
  7. package/dist/annotation/off-page/off-page.stories.d.ts.map +1 -0
  8. package/dist/annotation/story-kit.d.ts +28 -0
  9. package/dist/annotation/story-kit.d.ts.map +1 -0
  10. package/dist/annotation.js +44 -0
  11. package/dist/base-CByO_2mM.js +87 -0
  12. package/dist/bevel-DnmDNvyc.js +14 -0
  13. package/dist/chrome/bevel.d.ts +21 -0
  14. package/dist/chrome/bevel.d.ts.map +1 -0
  15. package/dist/controls/index.d.ts +4 -0
  16. package/dist/controls/index.d.ts.map +1 -0
  17. package/dist/controls/motor-starter-panel/index.d.ts +4 -0
  18. package/dist/controls/motor-starter-panel/index.d.ts.map +1 -0
  19. package/dist/controls/motor-starter-panel/motor-starter-panel.stories.d.ts +10 -0
  20. package/dist/controls/motor-starter-panel/motor-starter-panel.stories.d.ts.map +1 -0
  21. package/dist/controls/pushbutton/index.d.ts +4 -0
  22. package/dist/controls/pushbutton/index.d.ts.map +1 -0
  23. package/dist/controls/pushbutton/pushbutton.stories.d.ts +7 -0
  24. package/dist/controls/pushbutton/pushbutton.stories.d.ts.map +1 -0
  25. package/dist/controls/selector-switch/index.d.ts +4 -0
  26. package/dist/controls/selector-switch/index.d.ts.map +1 -0
  27. package/dist/controls/selector-switch/selector-switch.stories.d.ts +8 -0
  28. package/dist/controls/selector-switch/selector-switch.stories.d.ts.map +1 -0
  29. package/dist/controls/story-kit.d.ts +31 -0
  30. package/dist/controls/story-kit.d.ts.map +1 -0
  31. package/dist/controls.js +149 -0
  32. package/dist/conveyance/conveyor/conveyor.stories.d.ts +9 -0
  33. package/dist/conveyance/conveyor/conveyor.stories.d.ts.map +1 -0
  34. package/dist/conveyance/conveyor/index.d.ts +4 -0
  35. package/dist/conveyance/conveyor/index.d.ts.map +1 -0
  36. package/dist/conveyance/duct/duct.stories.d.ts +7 -0
  37. package/dist/conveyance/duct/duct.stories.d.ts.map +1 -0
  38. package/dist/conveyance/duct/index.d.ts +4 -0
  39. package/dist/conveyance/duct/index.d.ts.map +1 -0
  40. package/dist/conveyance/index.d.ts +5 -0
  41. package/dist/conveyance/index.d.ts.map +1 -0
  42. package/dist/conveyance/pipe/dash.d.ts +28 -0
  43. package/dist/conveyance/pipe/dash.d.ts.map +1 -0
  44. package/dist/conveyance/pipe/flange.d.ts +9 -0
  45. package/dist/conveyance/pipe/flange.d.ts.map +1 -0
  46. package/dist/conveyance/pipe/index.d.ts +3 -0
  47. package/dist/conveyance/pipe/index.d.ts.map +1 -0
  48. package/dist/conveyance/pipe/wave.d.ts +29 -0
  49. package/dist/conveyance/pipe/wave.d.ts.map +1 -0
  50. package/dist/conveyance/screw-feeder/index.d.ts +4 -0
  51. package/dist/conveyance/screw-feeder/index.d.ts.map +1 -0
  52. package/dist/conveyance/screw-feeder/screw-feeder.stories.d.ts +7 -0
  53. package/dist/conveyance/screw-feeder/screw-feeder.stories.d.ts.map +1 -0
  54. package/dist/conveyance/story-kit.d.ts +28 -0
  55. package/dist/conveyance/story-kit.d.ts.map +1 -0
  56. package/dist/conveyance.js +345 -0
  57. package/dist/electrical/base.d.ts +54 -0
  58. package/dist/electrical/base.d.ts.map +1 -0
  59. package/dist/electrical/breaker/breaker.stories.d.ts +9 -0
  60. package/dist/electrical/breaker/breaker.stories.d.ts.map +1 -0
  61. package/dist/electrical/breaker/index.d.ts +4 -0
  62. package/dist/electrical/breaker/index.d.ts.map +1 -0
  63. package/dist/electrical/busbar/busbar.stories.d.ts +8 -0
  64. package/dist/electrical/busbar/busbar.stories.d.ts.map +1 -0
  65. package/dist/electrical/busbar/index.d.ts +4 -0
  66. package/dist/electrical/busbar/index.d.ts.map +1 -0
  67. package/dist/electrical/generator/generator.stories.d.ts +9 -0
  68. package/dist/electrical/generator/generator.stories.d.ts.map +1 -0
  69. package/dist/electrical/generator/index.d.ts +4 -0
  70. package/dist/electrical/generator/index.d.ts.map +1 -0
  71. package/dist/electrical/index.d.ts +4 -0
  72. package/dist/electrical/index.d.ts.map +1 -0
  73. package/dist/electrical/single-line.stories.d.ts +15 -0
  74. package/dist/electrical/single-line.stories.d.ts.map +1 -0
  75. package/dist/electrical/story-kit.d.ts +34 -0
  76. package/dist/electrical/story-kit.d.ts.map +1 -0
  77. package/dist/electrical/transformer/index.d.ts +4 -0
  78. package/dist/electrical/transformer/index.d.ts.map +1 -0
  79. package/dist/electrical/transformer/transformer.stories.d.ts +8 -0
  80. package/dist/electrical/transformer/transformer.stories.d.ts.map +1 -0
  81. package/dist/electrical.js +214 -0
  82. package/dist/filtration/bag-filter/bag-filter.stories.d.ts +6 -0
  83. package/dist/filtration/bag-filter/bag-filter.stories.d.ts.map +1 -0
  84. package/dist/filtration/bag-filter/index.d.ts +3 -0
  85. package/dist/filtration/bag-filter/index.d.ts.map +1 -0
  86. package/dist/filtration/base.d.ts +25 -0
  87. package/dist/filtration/base.d.ts.map +1 -0
  88. package/dist/filtration/cyclone/cyclone.stories.d.ts +6 -0
  89. package/dist/filtration/cyclone/cyclone.stories.d.ts.map +1 -0
  90. package/dist/filtration/cyclone/index.d.ts +3 -0
  91. package/dist/filtration/cyclone/index.d.ts.map +1 -0
  92. package/dist/filtration/index.d.ts +9 -0
  93. package/dist/filtration/index.d.ts.map +1 -0
  94. package/dist/filtration/scrubber/index.d.ts +3 -0
  95. package/dist/filtration/scrubber/index.d.ts.map +1 -0
  96. package/dist/filtration/scrubber/scrubber.stories.d.ts +6 -0
  97. package/dist/filtration/scrubber/scrubber.stories.d.ts.map +1 -0
  98. package/dist/filtration/stack/index.d.ts +3 -0
  99. package/dist/filtration/stack/index.d.ts.map +1 -0
  100. package/dist/filtration/stack/stack.stories.d.ts +6 -0
  101. package/dist/filtration/stack/stack.stories.d.ts.map +1 -0
  102. package/dist/filtration/story-kit.d.ts +27 -0
  103. package/dist/filtration/story-kit.d.ts.map +1 -0
  104. package/dist/filtration.js +163 -0
  105. package/dist/gradients/pipe-gradient.d.ts +35 -0
  106. package/dist/gradients/pipe-gradient.d.ts.map +1 -0
  107. package/dist/heat/base.d.ts +28 -0
  108. package/dist/heat/base.d.ts.map +1 -0
  109. package/dist/heat/boiler/boiler.stories.d.ts +8 -0
  110. package/dist/heat/boiler/boiler.stories.d.ts.map +1 -0
  111. package/dist/heat/boiler/index.d.ts +3 -0
  112. package/dist/heat/boiler/index.d.ts.map +1 -0
  113. package/dist/heat/coil/coil.stories.d.ts +6 -0
  114. package/dist/heat/coil/coil.stories.d.ts.map +1 -0
  115. package/dist/heat/coil/index.d.ts +3 -0
  116. package/dist/heat/coil/index.d.ts.map +1 -0
  117. package/dist/heat/condenser/condenser.stories.d.ts +6 -0
  118. package/dist/heat/condenser/condenser.stories.d.ts.map +1 -0
  119. package/dist/heat/condenser/index.d.ts +3 -0
  120. package/dist/heat/condenser/index.d.ts.map +1 -0
  121. package/dist/heat/cooling-tower/cooling-tower.stories.d.ts +6 -0
  122. package/dist/heat/cooling-tower/cooling-tower.stories.d.ts.map +1 -0
  123. package/dist/heat/cooling-tower/index.d.ts +3 -0
  124. package/dist/heat/cooling-tower/index.d.ts.map +1 -0
  125. package/dist/heat/furnace/furnace.stories.d.ts +8 -0
  126. package/dist/heat/furnace/furnace.stories.d.ts.map +1 -0
  127. package/dist/heat/furnace/index.d.ts +3 -0
  128. package/dist/heat/furnace/index.d.ts.map +1 -0
  129. package/dist/heat/index.d.ts +9 -0
  130. package/dist/heat/index.d.ts.map +1 -0
  131. package/dist/heat/shell-tube/index.d.ts +3 -0
  132. package/dist/heat/shell-tube/index.d.ts.map +1 -0
  133. package/dist/heat/shell-tube/shell-tube.stories.d.ts +6 -0
  134. package/dist/heat/shell-tube/shell-tube.stories.d.ts.map +1 -0
  135. package/dist/heat/story-kit.d.ts +27 -0
  136. package/dist/heat/story-kit.d.ts.map +1 -0
  137. package/dist/heat.js +290 -0
  138. package/dist/index.d.ts +2 -0
  139. package/dist/index.d.ts.map +1 -0
  140. package/dist/index.js +4 -0
  141. package/dist/instruments/bargraph/bargraph.stories.d.ts +8 -0
  142. package/dist/instruments/bargraph/bargraph.stories.d.ts.map +1 -0
  143. package/dist/instruments/bargraph/index.d.ts +3 -0
  144. package/dist/instruments/bargraph/index.d.ts.map +1 -0
  145. package/dist/instruments/face.d.ts +15 -0
  146. package/dist/instruments/face.d.ts.map +1 -0
  147. package/dist/instruments/gauge-analog/gauge-analog.stories.d.ts +11 -0
  148. package/dist/instruments/gauge-analog/gauge-analog.stories.d.ts.map +1 -0
  149. package/dist/instruments/gauge-analog/index.d.ts +3 -0
  150. package/dist/instruments/gauge-analog/index.d.ts.map +1 -0
  151. package/dist/instruments/gauge-digital/gauge-digital.stories.d.ts +7 -0
  152. package/dist/instruments/gauge-digital/gauge-digital.stories.d.ts.map +1 -0
  153. package/dist/instruments/gauge-digital/index.d.ts +3 -0
  154. package/dist/instruments/gauge-digital/index.d.ts.map +1 -0
  155. package/dist/instruments/index.d.ts +10 -0
  156. package/dist/instruments/index.d.ts.map +1 -0
  157. package/dist/instruments/indicator-lamp/index.d.ts +3 -0
  158. package/dist/instruments/indicator-lamp/index.d.ts.map +1 -0
  159. package/dist/instruments/indicator-lamp/indicator-lamp.stories.d.ts +9 -0
  160. package/dist/instruments/indicator-lamp/indicator-lamp.stories.d.ts.map +1 -0
  161. package/dist/instruments/readout-panel/index.d.ts +3 -0
  162. package/dist/instruments/readout-panel/index.d.ts.map +1 -0
  163. package/dist/instruments/readout-panel/readout-panel.stories.d.ts +6 -0
  164. package/dist/instruments/readout-panel/readout-panel.stories.d.ts.map +1 -0
  165. package/dist/instruments/story-kit.d.ts +29 -0
  166. package/dist/instruments/story-kit.d.ts.map +1 -0
  167. package/dist/instruments/trend-mini/index.d.ts +3 -0
  168. package/dist/instruments/trend-mini/index.d.ts.map +1 -0
  169. package/dist/instruments/trend-mini/trend-mini.stories.d.ts +6 -0
  170. package/dist/instruments/trend-mini/trend-mini.stories.d.ts.map +1 -0
  171. package/dist/instruments.js +347 -0
  172. package/dist/motion/seamless-loop.d.ts +14 -0
  173. package/dist/motion/seamless-loop.d.ts.map +1 -0
  174. package/dist/pipe-gradient-B538FEvi.js +18 -0
  175. package/dist/readout/index.d.ts +3 -0
  176. package/dist/readout/index.d.ts.map +1 -0
  177. package/dist/readout/readout.stories.d.ts +8 -0
  178. package/dist/readout/readout.stories.d.ts.map +1 -0
  179. package/dist/readout/story-kit.d.ts +27 -0
  180. package/dist/readout/story-kit.d.ts.map +1 -0
  181. package/dist/readout.js +33 -0
  182. package/dist/recipe-BxxL1vV1.js +383 -0
  183. package/dist/rotating/compressor/compressor.stories.d.ts +28 -0
  184. package/dist/rotating/compressor/compressor.stories.d.ts.map +1 -0
  185. package/dist/rotating/compressor/index.d.ts +3 -0
  186. package/dist/rotating/compressor/index.d.ts.map +1 -0
  187. package/dist/rotating/fan-axial/fan-axial.stories.d.ts +31 -0
  188. package/dist/rotating/fan-axial/fan-axial.stories.d.ts.map +1 -0
  189. package/dist/rotating/fan-axial/index.d.ts +3 -0
  190. package/dist/rotating/fan-axial/index.d.ts.map +1 -0
  191. package/dist/rotating/fan-centrifugal/fan-centrifugal.stories.d.ts +31 -0
  192. package/dist/rotating/fan-centrifugal/fan-centrifugal.stories.d.ts.map +1 -0
  193. package/dist/rotating/fan-centrifugal/index.d.ts +3 -0
  194. package/dist/rotating/fan-centrifugal/index.d.ts.map +1 -0
  195. package/dist/rotating/index.d.ts +12 -0
  196. package/dist/rotating/index.d.ts.map +1 -0
  197. package/dist/rotating/motor/index.d.ts +3 -0
  198. package/dist/rotating/motor/index.d.ts.map +1 -0
  199. package/dist/rotating/motor/motor.stories.d.ts +28 -0
  200. package/dist/rotating/motor/motor.stories.d.ts.map +1 -0
  201. package/dist/rotating/pump-centrifugal/index.d.ts +3 -0
  202. package/dist/rotating/pump-centrifugal/index.d.ts.map +1 -0
  203. package/dist/rotating/pump-centrifugal/pump-centrifugal.stories.d.ts +29 -0
  204. package/dist/rotating/pump-centrifugal/pump-centrifugal.stories.d.ts.map +1 -0
  205. package/dist/rotating/pump-positive-displacement/index.d.ts +3 -0
  206. package/dist/rotating/pump-positive-displacement/index.d.ts.map +1 -0
  207. package/dist/rotating/pump-positive-displacement/pump-positive-displacement.stories.d.ts +28 -0
  208. package/dist/rotating/pump-positive-displacement/pump-positive-displacement.stories.d.ts.map +1 -0
  209. package/dist/rotating/story-kit.d.ts +65 -0
  210. package/dist/rotating/story-kit.d.ts.map +1 -0
  211. package/dist/rotating/turbine/index.d.ts +3 -0
  212. package/dist/rotating/turbine/index.d.ts.map +1 -0
  213. package/dist/rotating/turbine/turbine.stories.d.ts +29 -0
  214. package/dist/rotating/turbine/turbine.stories.d.ts.map +1 -0
  215. package/dist/rotating.js +513 -0
  216. package/dist/rotation-drive/base.d.ts +110 -0
  217. package/dist/rotation-drive/base.d.ts.map +1 -0
  218. package/dist/valves/ball/ball.stories.d.ts +26 -0
  219. package/dist/valves/ball/ball.stories.d.ts.map +1 -0
  220. package/dist/valves/ball/index.d.ts +3 -0
  221. package/dist/valves/ball/index.d.ts.map +1 -0
  222. package/dist/valves/base.d.ts +70 -0
  223. package/dist/valves/base.d.ts.map +1 -0
  224. package/dist/valves/butterfly/butterfly.stories.d.ts +26 -0
  225. package/dist/valves/butterfly/butterfly.stories.d.ts.map +1 -0
  226. package/dist/valves/butterfly/index.d.ts +3 -0
  227. package/dist/valves/butterfly/index.d.ts.map +1 -0
  228. package/dist/valves/check/check.stories.d.ts +25 -0
  229. package/dist/valves/check/check.stories.d.ts.map +1 -0
  230. package/dist/valves/check/index.d.ts +3 -0
  231. package/dist/valves/check/index.d.ts.map +1 -0
  232. package/dist/valves/control/control.stories.d.ts +26 -0
  233. package/dist/valves/control/control.stories.d.ts.map +1 -0
  234. package/dist/valves/control/index.d.ts +3 -0
  235. package/dist/valves/control/index.d.ts.map +1 -0
  236. package/dist/valves/gate/gate.stories.d.ts +26 -0
  237. package/dist/valves/gate/gate.stories.d.ts.map +1 -0
  238. package/dist/valves/gate/index.d.ts +3 -0
  239. package/dist/valves/gate/index.d.ts.map +1 -0
  240. package/dist/valves/index.d.ts +8 -0
  241. package/dist/valves/index.d.ts.map +1 -0
  242. package/dist/valves/relief/index.d.ts +3 -0
  243. package/dist/valves/relief/index.d.ts.map +1 -0
  244. package/dist/valves/relief/relief.stories.d.ts +26 -0
  245. package/dist/valves/relief/relief.stories.d.ts.map +1 -0
  246. package/dist/valves/story-kit.d.ts +54 -0
  247. package/dist/valves/story-kit.d.ts.map +1 -0
  248. package/dist/valves.js +424 -0
  249. package/dist/vapor/base.d.ts +42 -0
  250. package/dist/vapor/base.d.ts.map +1 -0
  251. package/dist/vapor/billow-layer.d.ts +33 -0
  252. package/dist/vapor/billow-layer.d.ts.map +1 -0
  253. package/dist/vapor/billow-path.d.ts +36 -0
  254. package/dist/vapor/billow-path.d.ts.map +1 -0
  255. package/dist/vapor/index.d.ts +8 -0
  256. package/dist/vapor/index.d.ts.map +1 -0
  257. package/dist/vapor/plume/index.d.ts +3 -0
  258. package/dist/vapor/plume/index.d.ts.map +1 -0
  259. package/dist/vapor/plume/plume.stories.d.ts +9 -0
  260. package/dist/vapor/plume/plume.stories.d.ts.map +1 -0
  261. package/dist/vapor/steam-vent/index.d.ts +3 -0
  262. package/dist/vapor/steam-vent/index.d.ts.map +1 -0
  263. package/dist/vapor/steam-vent/steam-vent.stories.d.ts +9 -0
  264. package/dist/vapor/steam-vent/steam-vent.stories.d.ts.map +1 -0
  265. package/dist/vapor/story-kit.d.ts +28 -0
  266. package/dist/vapor/story-kit.d.ts.map +1 -0
  267. package/dist/vapor.js +194 -0
  268. package/dist/vessel-body/hardware.d.ts +13 -0
  269. package/dist/vessel-body/hardware.d.ts.map +1 -0
  270. package/dist/vessel-body/liquid/dished-bottom.d.ts +33 -0
  271. package/dist/vessel-body/liquid/dished-bottom.d.ts.map +1 -0
  272. package/dist/vessel-body/liquid/index.d.ts +11 -0
  273. package/dist/vessel-body/liquid/index.d.ts.map +1 -0
  274. package/dist/vessel-body/liquid/wave-layer.d.ts +57 -0
  275. package/dist/vessel-body/liquid/wave-layer.d.ts.map +1 -0
  276. package/dist/vessel-body/liquid/wave-path.d.ts +45 -0
  277. package/dist/vessel-body/liquid/wave-path.d.ts.map +1 -0
  278. package/dist/vessel-body/recipe.d.ts +85 -0
  279. package/dist/vessel-body/recipe.d.ts.map +1 -0
  280. package/dist/vessel-body/shapes.d.ts +78 -0
  281. package/dist/vessel-body/shapes.d.ts.map +1 -0
  282. package/dist/vessels/drum/drum.stories.d.ts +33 -0
  283. package/dist/vessels/drum/drum.stories.d.ts.map +1 -0
  284. package/dist/vessels/drum/index.d.ts +3 -0
  285. package/dist/vessels/drum/index.d.ts.map +1 -0
  286. package/dist/vessels/hopper/hopper.stories.d.ts +39 -0
  287. package/dist/vessels/hopper/hopper.stories.d.ts.map +1 -0
  288. package/dist/vessels/hopper/index.d.ts +3 -0
  289. package/dist/vessels/hopper/index.d.ts.map +1 -0
  290. package/dist/vessels/index.d.ts +10 -0
  291. package/dist/vessels/index.d.ts.map +1 -0
  292. package/dist/vessels/silo/index.d.ts +3 -0
  293. package/dist/vessels/silo/index.d.ts.map +1 -0
  294. package/dist/vessels/silo/silo.stories.d.ts +33 -0
  295. package/dist/vessels/silo/silo.stories.d.ts.map +1 -0
  296. package/dist/vessels/story-kit.d.ts +83 -0
  297. package/dist/vessels/story-kit.d.ts.map +1 -0
  298. package/dist/vessels/tank-horizontal/index.d.ts +3 -0
  299. package/dist/vessels/tank-horizontal/index.d.ts.map +1 -0
  300. package/dist/vessels/tank-horizontal/tank-horizontal.stories.d.ts +33 -0
  301. package/dist/vessels/tank-horizontal/tank-horizontal.stories.d.ts.map +1 -0
  302. package/dist/vessels/tank-spherical/index.d.ts +3 -0
  303. package/dist/vessels/tank-spherical/index.d.ts.map +1 -0
  304. package/dist/vessels/tank-spherical/tank-spherical.stories.d.ts +33 -0
  305. package/dist/vessels/tank-spherical/tank-spherical.stories.d.ts.map +1 -0
  306. package/dist/vessels/tank-vertical/index.d.ts +3 -0
  307. package/dist/vessels/tank-vertical/index.d.ts.map +1 -0
  308. package/dist/vessels/tank-vertical/tank-vertical.stories.d.ts +47 -0
  309. package/dist/vessels/tank-vertical/tank-vertical.stories.d.ts.map +1 -0
  310. package/dist/vessels.js +198 -0
  311. package/package.json +76 -0
@@ -0,0 +1,383 @@
1
+ import { resolveAlarmBand as e, resolveAlarmColor as t, resolveMediumStyle as n } from "@vscada/core";
2
+ //#region src/vessel-body/hardware.ts
3
+ var r = "http://www.w3.org/2000/svg";
4
+ function i(e, t, n, i, a) {
5
+ let o = document.createElementNS(r, "rect");
6
+ return o.setAttribute("x", String(e)), o.setAttribute("y", String(t)), o.setAttribute("width", String(n)), o.setAttribute("height", String(i)), o.setAttribute("fill", a?.hardwareFillColor ?? "none"), o.setAttribute("stroke", a?.hardwareStrokeColor ?? "none"), a?.strokeWidth !== void 0 && o.setAttribute("stroke-width", String(a.strokeWidth)), o;
7
+ }
8
+ function a(e, t, n, i) {
9
+ let a = document.createElementNS(r, "circle");
10
+ return a.setAttribute("cx", String(e)), a.setAttribute("cy", String(t)), a.setAttribute("r", String(n)), a.setAttribute("fill", i?.hardwareFillColor ?? "none"), a.setAttribute("stroke", i?.hardwareStrokeColor ?? "none"), i?.strokeWidth !== void 0 && a.setAttribute("stroke-width", String(i.strokeWidth)), a;
11
+ }
12
+ function o(e, t, n, i, a) {
13
+ let o = document.createElementNS(r, "line");
14
+ return o.setAttribute("x1", String(e)), o.setAttribute("y1", String(t)), o.setAttribute("x2", String(n)), o.setAttribute("y2", String(i)), o.setAttribute("stroke", a?.weldLineColor ?? "none"), o.setAttribute("stroke-width", String((a?.strokeWidth ?? 2) * .5)), o.setAttribute("stroke-dasharray", "4 3"), o.setAttribute("class", "vscada-vessel-weld"), o;
15
+ }
16
+ function s(e, t, n, r) {
17
+ let i = a(e, t, n, r);
18
+ return i.setAttribute("class", "vscada-vessel-manway"), i;
19
+ }
20
+ function c(e, t, n, r) {
21
+ let i = a(e, t, n, r);
22
+ return i.setAttribute("class", "vscada-vessel-bung"), i;
23
+ }
24
+ function l(e, t, n, r, a) {
25
+ let o = i(e, t, n, r, a);
26
+ return o.setAttribute("class", "vscada-vessel-nozzle"), o;
27
+ }
28
+ function u(e, t, n, r, a) {
29
+ let o = i(e, t, n, r, a);
30
+ return o.setAttribute("class", "vscada-vessel-lug"), o;
31
+ }
32
+ function d(e, t, n, r, a) {
33
+ let o = i(e, t, n, r, a);
34
+ return o.setAttribute("class", "vscada-vessel-skirt"), o;
35
+ }
36
+ function f(e, t, n, i, a) {
37
+ let o = document.createElementNS(r, "line");
38
+ return o.setAttribute("x1", String(e)), o.setAttribute("y1", String(t)), o.setAttribute("x2", String(n)), o.setAttribute("y2", String(i)), o.setAttribute("stroke", a?.hardwareStrokeColor ?? "none"), a?.strokeWidth !== void 0 && o.setAttribute("stroke-width", String(a.strokeWidth)), o.setAttribute("class", "vscada-vessel-leg"), o;
39
+ }
40
+ function p(e, t, n, i) {
41
+ let a = document.createElementNS(r, "g");
42
+ switch (a.setAttribute("class", "vscada-vessel-hardware"), n) {
43
+ case "tank-vertical":
44
+ a.appendChild(l(e * .45, -t * .03, e * .1, t * .05, i)), a.appendChild(s(e * .22, t * .1, e * .05, i)), a.appendChild(u(e * .06, t * .06, e * .06, t * .03, i)), a.appendChild(u(e * .88, t * .06, e * .06, t * .03, i)), a.appendChild(d(e * .1, t * .96, e * .8, t * .04, i)), a.appendChild(o(0, t * .35, e, t * .35, i)), a.appendChild(o(0, t * .68, e, t * .68, i));
45
+ break;
46
+ case "tank-horizontal":
47
+ a.appendChild(l(e * .46, -t * .05, e * .08, t * .06, i)), a.appendChild(s(e * .75, t * .2, t * .06, i)), a.appendChild(d(e * .18, t * .9, e * .1, t * .14, i)), a.appendChild(d(e * .72, t * .9, e * .1, t * .14, i)), a.appendChild(o(e * .22, 0, e * .22, t, i)), a.appendChild(o(e * .78, 0, e * .78, t, i));
48
+ break;
49
+ case "drum":
50
+ a.appendChild(c(e * .5, -t * .02, t * .05, i)), a.appendChild(u(e * .15, t * .85, e * .08, t * .1, i)), a.appendChild(u(e * .77, t * .85, e * .08, t * .1, i)), a.appendChild(o(e * .5, 0, e * .5, t, i));
51
+ break;
52
+ case "sphere": {
53
+ let n = e / 2, r = t / 2, o = Math.min(e, t) / 2;
54
+ a.appendChild(l(n - e * .04, r - o - t * .04, e * .08, t * .05, i)), a.appendChild(f(n - o * .5, r + o * .6, n - o * .9, t, i)), a.appendChild(f(n, r + o * .8, n, t, i)), a.appendChild(f(n + o * .5, r + o * .6, n + o * .9, t, i));
55
+ break;
56
+ }
57
+ case "hopper":
58
+ a.appendChild(l(e * .45, -t * .03, e * .1, t * .04, i)), a.appendChild(s(e * .2, t * .12, e * .05, i)), a.appendChild(l(e * .42, t * .98, e * .16, t * .05, i)), a.appendChild(o(0, t * .5, e, t * .5, i));
59
+ break;
60
+ case "silo":
61
+ a.appendChild(l(e * .46, -t * .03, e * .08, t * .04, i)), a.appendChild(s(e * .15, t * .3, e * .04, i)), a.appendChild(d(e * .1, t * .94, e * .8, t * .06, i)), a.appendChild(o(0, t * .45, e, t * .45, i)), a.appendChild(o(0, t * .7, e, t * .7, i));
62
+ break;
63
+ }
64
+ return a;
65
+ }
66
+ function m(e, t, n, r = 6) {
67
+ let i = [], a = r > 0 ? r : 6, o = (e) => -t * Math.sin(2 * Math.PI * e / n);
68
+ for (let t = 0; t < e; t += a) i.push({
69
+ x: t,
70
+ y: o(t)
71
+ });
72
+ return i.push({
73
+ x: e,
74
+ y: o(e)
75
+ }), i;
76
+ }
77
+ function h(e, t, n, r = 6) {
78
+ return m(e, t, n, r).map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ");
79
+ }
80
+ function g(e, t, n, r, i = 6) {
81
+ return `${h(e, t, n, i)} L${e},${r} L0,${r} Z`;
82
+ }
83
+ //#endregion
84
+ //#region src/vessel-body/liquid/wave-layer.ts
85
+ var _ = "http://www.w3.org/2000/svg", v = 4e3;
86
+ function y(e) {
87
+ return Math.max(e * 2.5, 6);
88
+ }
89
+ function b(e, t) {
90
+ let { containerWidth: n, amplitude: r, period: i, speedFactor: a, color: o, opacity: s, specular: c } = e, l = Math.max(n * 2, n + i), u = g(l, r, i, y(r)), d = document.createElementNS(_, "g");
91
+ d.setAttribute("class", "vscada-liquid-wave-carrier");
92
+ let f = document.createElementNS(_, "g");
93
+ f.setAttribute("class", "vscada-liquid-wave-loop"), d.appendChild(f);
94
+ let p = document.createElementNS(_, "path");
95
+ if (p.setAttribute("class", "vscada-liquid-wave-fill"), p.setAttribute("d", u), p.setAttribute("fill", o), p.setAttribute("fill-opacity", String(s)), p.setAttribute("stroke", "none"), f.appendChild(p), c !== "none") {
96
+ let e = document.createElementNS(_, "path");
97
+ e.setAttribute("class", `vscada-liquid-wave-specular vscada-liquid-wave-specular--${c}`), e.setAttribute("d", h(l, r, i)), e.setAttribute("fill", "none"), e.setAttribute("stroke", o), e.setAttribute("stroke-width", c === "sharp" ? "2" : String(Math.max(r * 2, 8)));
98
+ let t = Math.min(1, Math.max(0, (c === "sharp" ? .9 : .35) * s));
99
+ e.setAttribute("stroke-opacity", String(t)), f.appendChild(e);
100
+ }
101
+ let m = t.animateTransform(f, ["translateX(0px)", `translateX(-${i}px)`], v);
102
+ return m.setPlaybackRate(a), {
103
+ carrier: d,
104
+ control: m
105
+ };
106
+ }
107
+ //#endregion
108
+ //#region src/vessel-body/liquid/dished-bottom.ts
109
+ var x = .18;
110
+ function S(e, t, n = x) {
111
+ return Math.min(e * n, t * .4);
112
+ }
113
+ function C(e, t, n = x) {
114
+ let r = S(e, t, n), i = t - r;
115
+ return `M0,0 H${e} V${i} A${e / 2},${r} 0 0 1 0,${i} Z`;
116
+ }
117
+ //#endregion
118
+ //#region src/vessel-body/shapes.ts
119
+ var w = .5, T = .18, E = .18;
120
+ function D(e, t, n = x) {
121
+ let r = Math.min(t * n * 2, e * .4), i = t / 2, a = e - r;
122
+ return `M${r},0 H${a} A${r},${i} 0 0 1 ${a},${t} H${r} A${r},${i} 0 0 1 ${r},0 Z`;
123
+ }
124
+ function O(e, t, n = x) {
125
+ return Math.min(t * n * 2, e * .4);
126
+ }
127
+ function k(e, t) {
128
+ return {
129
+ cx: e / 2,
130
+ cy: t / 2,
131
+ r: Math.min(e, t) / 2
132
+ };
133
+ }
134
+ function A(e, t) {
135
+ let { cx: n, cy: r, r: i } = k(e, t);
136
+ return `M${n - i},${r} A${i},${i} 0 1 0 ${n + i},${r} A${i},${i} 0 1 0 ${n - i},${r} Z`;
137
+ }
138
+ function j(e, t, n = w, r = T) {
139
+ let i = t * n, a = e * r, o = (e - a) / 2;
140
+ return `M0,0 H${e} V${i} L${o + a},${t} L${o},${t} Z`;
141
+ }
142
+ function M(e, t, n = E) {
143
+ let r = t * n;
144
+ return `M0,${r} L${e / 2},0 L${e},${r} V${t} H0 Z`;
145
+ }
146
+ function N(e, t = E) {
147
+ return e * t;
148
+ }
149
+ function P(e, t, n = E) {
150
+ return `M0,${N(t, n)} H${e} V${t} H0 Z`;
151
+ }
152
+ //#endregion
153
+ //#region src/vessel-body/recipe.ts
154
+ var F = "http://www.w3.org/2000/svg", I = .12, L = .3, R = .12, z = .4, B = .36, V = .24, H = .35, U = .6, W = .05, G = .3, K = 4;
155
+ function q(e) {
156
+ return Number.isNaN(e) ? 0 : Math.min(Math.max(e, 0), 1);
157
+ }
158
+ function J(e, t, n) {
159
+ e.querySelector(`#${t}`) || e.appendChild(n());
160
+ }
161
+ function Y(e, t, n) {
162
+ let r = document.createElementNS(F, "linearGradient");
163
+ r.setAttribute("id", e), r.setAttribute("x1", "0"), r.setAttribute("y1", "0"), r.setAttribute("x2", t === "x" ? "1" : "0"), r.setAttribute("y2", t === "x" ? "0" : "1");
164
+ for (let e of n) {
165
+ let t = document.createElementNS(F, "stop");
166
+ t.setAttribute("offset", String(e.offset)), t.setAttribute("stop-color", e.color), r.appendChild(t);
167
+ }
168
+ return r;
169
+ }
170
+ function X(e, t) {
171
+ let n = document.createElementNS(F, "radialGradient");
172
+ n.setAttribute("id", e), n.setAttribute("cx", "0.35"), n.setAttribute("cy", "0.3"), n.setAttribute("r", "0.75");
173
+ for (let e of t) {
174
+ let t = document.createElementNS(F, "stop");
175
+ t.setAttribute("offset", String(e.offset)), t.setAttribute("stop-color", e.color), n.appendChild(t);
176
+ }
177
+ return n;
178
+ }
179
+ function Z(e, t, n) {
180
+ J(e, t, () => {
181
+ let e = document.createElementNS(F, "clipPath");
182
+ e.setAttribute("id", t);
183
+ let r = document.createElementNS(F, "path");
184
+ return r.setAttribute("d", n), e.appendChild(r), e;
185
+ });
186
+ }
187
+ function Q(e, t, n, r) {
188
+ let i = document.createElementNS(F, "path");
189
+ if (i.setAttribute("class", "vscada-vessel-body-base"), i.setAttribute("d", e), i.setAttribute("stroke", t?.bodyStrokeColor ?? "none"), t?.strokeWidth !== void 0 && i.setAttribute("stroke-width", String(t.strokeWidth)), t?.bodyGradientTopColor && t.bodyGradientBottomColor) {
190
+ let e = `vscada-vessel-body-gradient-${r}`;
191
+ J(n, e, () => Y(e, "y", [{
192
+ offset: 0,
193
+ color: t.bodyGradientTopColor
194
+ }, {
195
+ offset: 1,
196
+ color: t.bodyGradientBottomColor
197
+ }])), i.setAttribute("fill", `url(#${e})`);
198
+ } else i.setAttribute("fill", t?.bodyFillColor ?? "none");
199
+ return i;
200
+ }
201
+ function $(e, t, n, r, i, a) {
202
+ let o = document.createElementNS(F, "path");
203
+ o.setAttribute("class", "vscada-vessel-shading"), o.setAttribute("d", e), o.setAttribute("clip-path", `url(#${a})`);
204
+ let s = n?.shadingDarkColor, c = n?.shadingLightColor, l = n?.shadingMidColor;
205
+ if (s && c && l) {
206
+ let e = `vscada-vessel-shading-gradient-${i}`;
207
+ J(r, e, () => t === "spherical" ? X(e, [
208
+ {
209
+ offset: 0,
210
+ color: c
211
+ },
212
+ {
213
+ offset: U,
214
+ color: l
215
+ },
216
+ {
217
+ offset: 1,
218
+ color: s
219
+ }
220
+ ]) : Y(e, t === "vertical" ? "x" : "y", [
221
+ {
222
+ offset: 0,
223
+ color: s
224
+ },
225
+ {
226
+ offset: H,
227
+ color: c
228
+ },
229
+ {
230
+ offset: U,
231
+ color: l
232
+ },
233
+ {
234
+ offset: 1,
235
+ color: s
236
+ }
237
+ ])), o.setAttribute("fill", `url(#${e})`);
238
+ } else o.setAttribute("fill", "none");
239
+ return o;
240
+ }
241
+ function ee(e, t, n, r, i) {
242
+ let a = r?.specularColor ?? "none";
243
+ if (n === "spherical") {
244
+ let { cx: n, cy: r, r: o } = k(e, t), s = document.createElementNS(F, "ellipse");
245
+ return s.setAttribute("class", "vscada-vessel-specular"), s.setAttribute("cx", String(n - o * z)), s.setAttribute("cy", String(r - o * z)), s.setAttribute("rx", String(o * B)), s.setAttribute("ry", String(o * V)), s.setAttribute("fill", a), s.setAttribute("fill-opacity", String(R)), s.setAttribute("clip-path", `url(#${i})`), s;
246
+ }
247
+ let o = document.createElementNS(F, "rect");
248
+ if (o.setAttribute("class", "vscada-vessel-specular"), o.setAttribute("fill", a), o.setAttribute("fill-opacity", String(R)), o.setAttribute("clip-path", `url(#${i})`), n === "vertical") {
249
+ let n = e * I;
250
+ o.setAttribute("x", String(e * L - n / 2)), o.setAttribute("y", "0"), o.setAttribute("width", String(n)), o.setAttribute("height", String(t));
251
+ } else {
252
+ let n = t * I;
253
+ o.setAttribute("x", "0"), o.setAttribute("y", String(t * L - n / 2)), o.setAttribute("width", String(e)), o.setAttribute("height", String(n));
254
+ }
255
+ return o;
256
+ }
257
+ function te(e, t) {
258
+ let n = document.createElementNS(F, "g");
259
+ n.setAttribute("class", "vscada-vessel-rim");
260
+ for (let r of e) {
261
+ let e = document.createElementNS(F, "ellipse");
262
+ e.setAttribute("cx", String(r.cx)), e.setAttribute("cy", String(r.cy)), e.setAttribute("rx", String(r.rx)), e.setAttribute("ry", String(r.ry)), e.setAttribute("fill", "none"), e.setAttribute("stroke", t?.rimStrokeColor ?? "none"), t?.strokeWidth !== void 0 && e.setAttribute("stroke-width", String(t.strokeWidth)), n.appendChild(e);
263
+ let i = document.createElementNS(F, "path");
264
+ if (i.setAttribute("d", `M${r.cx - r.rx},${r.cy} A${r.rx},${r.ry} 0 0 1 ${r.cx + r.rx},${r.cy}`), i.setAttribute("fill", "none"), i.setAttribute("stroke", t?.rimHighlightColor ?? "none"), t?.strokeWidth !== void 0 && i.setAttribute("stroke-width", String(t.strokeWidth)), n.appendChild(i), r.crownRibbing) for (let e = 0; e < K; e++) {
265
+ let i = e / (K - 1) * 2 - 1, a = r.cx + i * r.rx * .6, o = r.cy - r.ry * .6, s = document.createElementNS(F, "line");
266
+ s.setAttribute("x1", String(a)), s.setAttribute("y1", String(r.cy)), s.setAttribute("x2", String(a)), s.setAttribute("y2", String(o)), s.setAttribute("stroke", t?.rimHighlightColor ?? "none"), t?.strokeWidth !== void 0 && s.setAttribute("stroke-width", String(t.strokeWidth)), n.appendChild(s);
267
+ }
268
+ }
269
+ return n;
270
+ }
271
+ function ne(e, t, n) {
272
+ let r = document.createElementNS(F, "ellipse");
273
+ return r.setAttribute("class", "vscada-vessel-shadow"), r.setAttribute("cx", String(e / 2)), r.setAttribute("cy", String(t)), r.setAttribute("rx", String(e * .55)), r.setAttribute("ry", String(e * W)), r.setAttribute("fill", n?.contactShadowColor ?? "none"), r.setAttribute("fill-opacity", String(G)), r;
274
+ }
275
+ function re(e) {
276
+ return e.bindings.find((e) => e.type === "level");
277
+ }
278
+ function ie({ element: r, theme: i, renderer: a, geometry: o }) {
279
+ let { w: s, h: c, id: l } = r, u = i.tokens.vessel, d = i.tokens.liquid, f = o.liquidClipPathD ?? o.bodyPathD, m = document.createElementNS(F, "g");
280
+ m.setAttribute("data-element-id", l), m.setAttribute("class", "vscada-vessel"), m.setAttribute("data-vessel-type", o.hardware), m.setAttribute("data-alarm-band", "normal");
281
+ let h = `vscada-vessel-body-clip-${l}`;
282
+ Z(i.defs, h, o.bodyPathD);
283
+ let g = `vscada-vessel-liquid-clip-${l}`;
284
+ Z(i.defs, g, f), m.appendChild(Q(o.bodyPathD, u, i.defs, l)), m.appendChild($(o.bodyPathD, o.orientation, u, i.defs, l, h));
285
+ let _ = document.createElementNS(F, "g");
286
+ _.setAttribute("class", "vscada-vessel-liquid"), _.setAttribute("clip-path", `url(#${g})`);
287
+ let v = document.createElementNS(F, "g");
288
+ v.setAttribute("class", "vscada-vessel-liquid-fill"), v.style.transformOrigin = `0px ${c}px`, _.appendChild(v);
289
+ let y = document.createElementNS(F, "rect");
290
+ y.setAttribute("width", String(s)), y.setAttribute("height", String(c));
291
+ let x = r.medium ?? d?.defaultMedium ?? "", S = d?.media[x] ?? (d ? d.media[d.defaultMedium] : void 0);
292
+ if (S) {
293
+ let e = `vscada-vessel-fill-${l}`;
294
+ J(i.defs, e, () => Y(e, "y", [{
295
+ offset: 0,
296
+ color: S.top
297
+ }, {
298
+ offset: 1,
299
+ color: S.bottom
300
+ }])), y.setAttribute("fill", `url(#${e})`);
301
+ } else y.setAttribute("fill", "none");
302
+ v.appendChild(y);
303
+ let C = n(i.tokens.medium, r.medium), w = C?.color ?? S?.top ?? d?.surfaceColor, T = C?.specular !== void 0, E = [], D = [];
304
+ if (d && w && s > 0) {
305
+ let e = Math.max(1, Math.floor(d.waveCount ?? 1));
306
+ for (let t = 0; t < e; t++) {
307
+ let e = b({
308
+ containerWidth: s,
309
+ amplitude: C?.waveAmplitude ?? 3,
310
+ period: C?.wavePeriod ?? 80,
311
+ speedFactor: C?.waveSpeed ?? 1,
312
+ color: w,
313
+ opacity: C?.opacity ?? .4,
314
+ specular: C?.specular ?? "sharp"
315
+ }, a);
316
+ e.carrier.classList.add("vscada-vessel-wave"), _.appendChild(e.carrier), E.push(e);
317
+ let t = e.carrier.querySelector(".vscada-liquid-wave-specular");
318
+ t && D.push(t);
319
+ }
320
+ }
321
+ let O = T ? void 0 : document.createElementNS(F, "line");
322
+ if (O) {
323
+ O.setAttribute("class", "vscada-vessel-surface"), O.setAttribute("x1", "0"), O.setAttribute("x2", String(s)), O.setAttribute("y1", "0"), O.setAttribute("y2", "0");
324
+ let e = t(u?.alarm, "normal", d?.surfaceColor) ?? "none";
325
+ O.setAttribute("stroke", e), u?.strokeWidth !== void 0 && O.setAttribute("stroke-width", String(u.strokeWidth)), _.appendChild(O);
326
+ }
327
+ m.appendChild(_), m.appendChild(ee(s, c, o.orientation, u, h)), m.appendChild(te(o.rims, u)), m.appendChild(p(s, c, o.hardware, u));
328
+ let k = re(r), A = document.createElementNS(F, "g");
329
+ A.setAttribute("class", "vscada-vessel-thresholds");
330
+ let j = o.markerMinY ?? 0;
331
+ if (k) {
332
+ let e = k.max - k.min, n = r.thresholds.filter((e) => e.tag === k.tag);
333
+ for (let r of n) {
334
+ let n = e === 0 ? 0 : q((r.value - k.min) / e), i = Math.max(c * (1 - n), j), a = document.createElementNS(F, "line");
335
+ a.setAttribute("class", `vscada-vessel-threshold-marker vscada-vessel-threshold-marker--${r.level}`), a.setAttribute("data-level", r.level), a.setAttribute("x1", String(-s * .06)), a.setAttribute("x2", String(s * 1.06)), a.setAttribute("y1", String(i)), a.setAttribute("y2", String(i)), a.setAttribute("stroke", t(u?.alarm, r.level, void 0) ?? "none"), u?.strokeWidth !== void 0 && a.setAttribute("stroke-width", String(u.strokeWidth)), A.appendChild(a);
336
+ }
337
+ }
338
+ m.appendChild(A), m.appendChild(ne(s, c, u));
339
+ let M = {};
340
+ if (k) {
341
+ let n = k.max - k.min, i = r.thresholds.filter((e) => e.tag === k.tag);
342
+ M[k.tag] = {
343
+ kind: "numeric",
344
+ write(r, a) {
345
+ if (typeof a != "number") return;
346
+ let o = n === 0 ? 0 : q((a - k.min) / n), s = c * (1 - o);
347
+ for (let e of E) r.setTransform(e.carrier, `translateY(${s}px)`);
348
+ O && (r.setAttr(O, "y1", String(s)), r.setAttr(O, "y2", String(s)));
349
+ let l = e(a, i);
350
+ if (O) {
351
+ let e = t(u?.alarm, l, d?.surfaceColor) ?? "none";
352
+ r.setAttr(O, "stroke", e);
353
+ }
354
+ if (!O && D.length > 0) {
355
+ let e = (l === "normal" ? void 0 : t(u?.alarm, l, void 0)) ?? w ?? "none";
356
+ for (let t of D) r.setAttr(t, "stroke", e);
357
+ }
358
+ r.setAttr(m, "data-alarm-band", l), r.setTransform(v, `scaleY(${o})`);
359
+ }
360
+ };
361
+ }
362
+ if (E.length > 0) {
363
+ let e = {
364
+ kind: "animation",
365
+ pause() {
366
+ for (let e of E) e.control.pause();
367
+ },
368
+ resume() {
369
+ for (let e of E) e.control.resume();
370
+ },
371
+ seek(e) {
372
+ for (let t of E) t.control.seek(e);
373
+ }
374
+ };
375
+ M[`__vessel-wave-animation-${l}`] = e;
376
+ }
377
+ return {
378
+ svg: m,
379
+ handles: M
380
+ };
381
+ }
382
+ //#endregion
383
+ export { N as a, k as c, C as d, j as i, A as l, O as n, P as o, D as r, M as s, ie as t, x as u };
@@ -0,0 +1,28 @@
1
+ import { type RotatingStory, type RotatingStoryArgs, type RotatingStoryMeta } from '../story-kit';
2
+ export declare const meta: RotatingStoryMeta;
3
+ export declare const argTypes: {
4
+ readonly state: {
5
+ readonly control: {
6
+ readonly type: "select";
7
+ };
8
+ };
9
+ readonly speed: {
10
+ readonly control: {
11
+ readonly type: "range";
12
+ readonly min: 0;
13
+ readonly max: 1;
14
+ readonly step: 1;
15
+ };
16
+ };
17
+ readonly stale: {
18
+ readonly control: "boolean";
19
+ };
20
+ };
21
+ export declare const Default: RotatingStory;
22
+ export declare const Running: RotatingStory;
23
+ export declare const Starting: RotatingStory;
24
+ export declare const Tripped: RotatingStory;
25
+ export declare const StaleFreeze: RotatingStory;
26
+ export declare function render(container: HTMLElement, args?: Partial<RotatingStoryArgs>): import("../story-kit").MountedRotatingStory;
27
+ export default meta;
28
+ //# sourceMappingURL=compressor.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compressor.stories.d.ts","sourceRoot":"","sources":["../../../src/rotating/compressor/compressor.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEhJ,eAAO,MAAM,IAAI,EAAE,iBAOlB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;CAA2B,CAAC;AAEjD,eAAO,MAAM,OAAO,EAAE,aAAmC,CAAC;AAC1D,eAAO,MAAM,OAAO,EAAE,aAA0F,CAAC;AACjH,eAAO,MAAM,QAAQ,EAAE,aAAwG,CAAC;AAChI,eAAO,MAAM,OAAO,EAAE,aAAyF,CAAC;AAChH,eAAO,MAAM,WAAW,EAAE,aAAgG,CAAC;AAE3H,wBAAgB,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,GAAE,OAAO,CAAC,iBAAiB,CAAM,+CAEnF;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PrimitiveGroup } from '@vscada/core';
2
+ export declare const rotating: PrimitiveGroup;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rotating/compressor/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,cAAc,EAAyD,MAAM,cAAc,CAAC;AAuHrH,eAAO,MAAM,QAAQ,EAAE,cAGrB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { type RotatingStory, type RotatingStoryArgs, type RotatingStoryMeta } from '../story-kit';
2
+ /** `maxSpeed` (1500) straddles the preview theme's `fan.blurThresholdRpm` (900) so both Task 3 crossover modes are reachable via the speed control. */
3
+ export declare const meta: RotatingStoryMeta;
4
+ export declare const argTypes: {
5
+ readonly state: {
6
+ readonly control: {
7
+ readonly type: "select";
8
+ };
9
+ };
10
+ readonly speed: {
11
+ readonly control: {
12
+ readonly type: "range";
13
+ readonly min: 0;
14
+ readonly max: 1;
15
+ readonly step: 1;
16
+ };
17
+ };
18
+ readonly stale: {
19
+ readonly control: "boolean";
20
+ };
21
+ };
22
+ export declare const Default: RotatingStory;
23
+ /** Task 3/4 — below `blurThresholdRpm * 0.95` (855): discrete blade group visible. */
24
+ export declare const Discrete: RotatingStory;
25
+ /** Task 3/4 — above `blurThresholdRpm * 1.05` (945): blurred-disc group visible. */
26
+ export declare const Blurred: RotatingStory;
27
+ export declare const Fault: RotatingStory;
28
+ export declare const StaleFreeze: RotatingStory;
29
+ export declare function render(container: HTMLElement, args?: Partial<RotatingStoryArgs>): import("../story-kit").MountedRotatingStory;
30
+ export default meta;
31
+ //# sourceMappingURL=fan-axial.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fan-axial.stories.d.ts","sourceRoot":"","sources":["../../../src/rotating/fan-axial/fan-axial.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEhJ,uJAAuJ;AACvJ,eAAO,MAAM,IAAI,EAAE,iBAOlB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;CAA2B,CAAC;AAEjD,eAAO,MAAM,OAAO,EAAE,aAAmC,CAAC;AAC1D,sFAAsF;AACtF,eAAO,MAAM,QAAQ,EAAE,aAA0G,CAAC;AAClI,oFAAoF;AACpF,eAAO,MAAM,OAAO,EAAE,aAAwG,CAAC;AAC/H,eAAO,MAAM,KAAK,EAAE,aAAqF,CAAC;AAC1G,eAAO,MAAM,WAAW,EAAE,aAA0G,CAAC;AAErI,wBAAgB,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,GAAE,OAAO,CAAC,iBAAiB,CAAM,+CAEnF;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PrimitiveGroup } from '@vscada/core';
2
+ export declare const rotating: PrimitiveGroup;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rotating/fan-axial/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,cAAc,EAAyD,MAAM,cAAc,CAAC;AAyKrH,eAAO,MAAM,QAAQ,EAAE,cAGrB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { type RotatingStory, type RotatingStoryArgs, type RotatingStoryMeta } from '../story-kit';
2
+ /** `maxSpeed` (1500) straddles the preview theme's `fan.blurThresholdRpm` (900) so both Task 3 crossover modes are reachable via the speed control. */
3
+ export declare const meta: RotatingStoryMeta;
4
+ export declare const argTypes: {
5
+ readonly state: {
6
+ readonly control: {
7
+ readonly type: "select";
8
+ };
9
+ };
10
+ readonly speed: {
11
+ readonly control: {
12
+ readonly type: "range";
13
+ readonly min: 0;
14
+ readonly max: 1;
15
+ readonly step: 1;
16
+ };
17
+ };
18
+ readonly stale: {
19
+ readonly control: "boolean";
20
+ };
21
+ };
22
+ export declare const Default: RotatingStory;
23
+ /** Task 3/4 — below `blurThresholdRpm * 0.95` (855): discrete drum+blade group visible. */
24
+ export declare const Discrete: RotatingStory;
25
+ /** Task 3/4 — above `blurThresholdRpm * 1.05` (945): blurred-disc group visible. */
26
+ export declare const Blurred: RotatingStory;
27
+ export declare const Fault: RotatingStory;
28
+ export declare const StaleFreeze: RotatingStory;
29
+ export declare function render(container: HTMLElement, args?: Partial<RotatingStoryArgs>): import("../story-kit").MountedRotatingStory;
30
+ export default meta;
31
+ //# sourceMappingURL=fan-centrifugal.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fan-centrifugal.stories.d.ts","sourceRoot":"","sources":["../../../src/rotating/fan-centrifugal/fan-centrifugal.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEhJ,uJAAuJ;AACvJ,eAAO,MAAM,IAAI,EAAE,iBAOlB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;CAA2B,CAAC;AAEjD,eAAO,MAAM,OAAO,EAAE,aAAmC,CAAC;AAC1D,2FAA2F;AAC3F,eAAO,MAAM,QAAQ,EAAE,aAA0G,CAAC;AAClI,oFAAoF;AACpF,eAAO,MAAM,OAAO,EAAE,aAAwG,CAAC;AAC/H,eAAO,MAAM,KAAK,EAAE,aAAqF,CAAC;AAC1G,eAAO,MAAM,WAAW,EAAE,aAA0G,CAAC;AAErI,wBAAgB,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,GAAE,OAAO,CAAC,iBAAiB,CAAM,+CAEnF;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PrimitiveGroup } from '@vscada/core';
2
+ export declare const rotating: PrimitiveGroup;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rotating/fan-centrifugal/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,cAAc,EAAyD,MAAM,cAAc,CAAC;AAwKrH,eAAO,MAAM,QAAQ,EAAE,cAGrB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { PrimitiveGroup } from '@vscada/core';
2
+ /**
3
+ * Rotating-equipment entry point (§6.1). Story 1.5 shipped pump-centrifugal;
4
+ * Story 3.4 (the rotating-equipment batch) adds the remaining six §6.1-listed
5
+ * types, all built on `./base.ts`'s shared FSM/tween/lamp-label/animation-
6
+ * registration machinery (Dev Notes: "extract-then-specialize") — this file
7
+ * just merges every registered rotating primitive's `primitives` record
8
+ * into one `PrimitiveGroup`, matching `vessels/index.ts`'s established
9
+ * merge pattern.
10
+ */
11
+ export declare const rotating: PrimitiveGroup;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rotating/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AASnD;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,EAAE,cAWrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PrimitiveGroup } from '@vscada/core';
2
+ export declare const rotating: PrimitiveGroup;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rotating/motor/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,cAAc,EAAyD,MAAM,cAAc,CAAC;AAmIrH,eAAO,MAAM,QAAQ,EAAE,cAGrB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { type RotatingStory, type RotatingStoryArgs, type RotatingStoryMeta } from '../story-kit';
2
+ export declare const meta: RotatingStoryMeta;
3
+ export declare const argTypes: {
4
+ readonly state: {
5
+ readonly control: {
6
+ readonly type: "select";
7
+ };
8
+ };
9
+ readonly speed: {
10
+ readonly control: {
11
+ readonly type: "range";
12
+ readonly min: 0;
13
+ readonly max: 1;
14
+ readonly step: 1;
15
+ };
16
+ };
17
+ readonly stale: {
18
+ readonly control: "boolean";
19
+ };
20
+ };
21
+ export declare const Default: RotatingStory;
22
+ export declare const Running: RotatingStory;
23
+ export declare const Starting: RotatingStory;
24
+ export declare const Tripped: RotatingStory;
25
+ export declare const StaleFreeze: RotatingStory;
26
+ export declare function render(container: HTMLElement, args?: Partial<RotatingStoryArgs>): import("../story-kit").MountedRotatingStory;
27
+ export default meta;
28
+ //# sourceMappingURL=motor.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"motor.stories.d.ts","sourceRoot":"","sources":["../../../src/rotating/motor/motor.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEhJ,eAAO,MAAM,IAAI,EAAE,iBAOlB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;CAA2B,CAAC;AAEjD,eAAO,MAAM,OAAO,EAAE,aAAmC,CAAC;AAC1D,eAAO,MAAM,OAAO,EAAE,aAAgG,CAAC;AACvH,eAAO,MAAM,QAAQ,EAAE,aAAuG,CAAC;AAC/H,eAAO,MAAM,OAAO,EAAE,aAAyF,CAAC;AAChH,eAAO,MAAM,WAAW,EAAE,aAAgG,CAAC;AAE3H,wBAAgB,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,GAAE,OAAO,CAAC,iBAAiB,CAAM,+CAEnF;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PrimitiveGroup } from '@vscada/core';
2
+ export declare const rotating: PrimitiveGroup;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rotating/pump-centrifugal/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,cAAc,EAAyD,MAAM,cAAc,CAAC;AAiGrH,eAAO,MAAM,QAAQ,EAAE,cAGrB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { type RotatingStory, type RotatingStoryArgs, type RotatingStoryMeta } from '../story-kit';
2
+ /** Story 3.4 Task 4 — reference pattern every other rotating-equipment `.stories.ts` file in this batch follows. */
3
+ export declare const meta: RotatingStoryMeta;
4
+ export declare const argTypes: {
5
+ readonly state: {
6
+ readonly control: {
7
+ readonly type: "select";
8
+ };
9
+ };
10
+ readonly speed: {
11
+ readonly control: {
12
+ readonly type: "range";
13
+ readonly min: 0;
14
+ readonly max: 1;
15
+ readonly step: 1;
16
+ };
17
+ };
18
+ readonly stale: {
19
+ readonly control: "boolean";
20
+ };
21
+ };
22
+ export declare const Default: RotatingStory;
23
+ export declare const Running: RotatingStory;
24
+ export declare const Starting: RotatingStory;
25
+ export declare const Tripped: RotatingStory;
26
+ export declare const StaleFreeze: RotatingStory;
27
+ export declare function render(container: HTMLElement, args?: Partial<RotatingStoryArgs>): import("../story-kit").MountedRotatingStory;
28
+ export default meta;
29
+ //# sourceMappingURL=pump-centrifugal.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pump-centrifugal.stories.d.ts","sourceRoot":"","sources":["../../../src/rotating/pump-centrifugal/pump-centrifugal.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEhJ,oHAAoH;AACpH,eAAO,MAAM,IAAI,EAAE,iBAOlB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;CAA2B,CAAC;AAEjD,eAAO,MAAM,OAAO,EAAE,aAAmC,CAAC;AAC1D,eAAO,MAAM,OAAO,EAAE,aAAyF,CAAC;AAChH,eAAO,MAAM,QAAQ,EAAE,aAAuG,CAAC;AAC/H,eAAO,MAAM,OAAO,EAAE,aAAyF,CAAC;AAChH,eAAO,MAAM,WAAW,EAAE,aAA+F,CAAC;AAE1H,wBAAgB,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,GAAE,OAAO,CAAC,iBAAiB,CAAM,+CAEnF;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PrimitiveGroup } from '@vscada/core';
2
+ export declare const rotating: PrimitiveGroup;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rotating/pump-positive-displacement/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,cAAc,EAAyD,MAAM,cAAc,CAAC;AA6GrH,eAAO,MAAM,QAAQ,EAAE,cAGrB,CAAC"}