@kosdev-code/kos-ui-sdk 3.0.26 → 3.0.27

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 (339) hide show
  1. package/.kos.json +2 -1
  2. package/common/events/async-event-bus.d.ts +8 -11
  3. package/common/events/async-event-bus.d.ts.map +1 -1
  4. package/common/events/eventBus.d.ts +1 -18
  5. package/common/events/eventBus.d.ts.map +1 -1
  6. package/core/core/companion-instantiator.d.ts +5 -0
  7. package/core/core/companion-instantiator.d.ts.map +1 -1
  8. package/core/core/decorators/index.d.ts +1 -0
  9. package/core/core/decorators/index.d.ts.map +1 -1
  10. package/core/core/decorators/kos-child.d.ts +2 -3
  11. package/core/core/decorators/kos-child.d.ts.map +1 -1
  12. package/core/core/decorators/kos-companion.d.ts +25 -87
  13. package/core/core/decorators/kos-companion.d.ts.map +1 -1
  14. package/core/core/decorators/kos-container-aware-reconcile.test-d.d.ts +2 -0
  15. package/core/core/decorators/kos-container-aware-reconcile.test-d.d.ts.map +1 -0
  16. package/core/core/decorators/kos-container-aware.d.ts +191 -420
  17. package/core/core/decorators/kos-container-aware.d.ts.map +1 -1
  18. package/core/core/decorators/kos-execute-service-request.d.ts +7 -11
  19. package/core/core/decorators/kos-execute-service-request.d.ts.map +1 -1
  20. package/core/core/decorators/kos-execution-context.d.ts +14 -31
  21. package/core/core/decorators/kos-execution-context.d.ts.map +1 -1
  22. package/core/core/decorators/kos-future-aware.d.ts +21 -74
  23. package/core/core/decorators/kos-future-aware.d.ts.map +1 -1
  24. package/core/core/decorators/kos-http-decorators.d.ts +18 -62
  25. package/core/core/decorators/kos-http-decorators.d.ts.map +1 -1
  26. package/core/core/decorators/kos-logger-aware.d.ts +10 -60
  27. package/core/core/decorators/kos-logger-aware.d.ts.map +1 -1
  28. package/core/core/decorators/kos-mixin.d.ts +67 -0
  29. package/core/core/decorators/kos-mixin.d.ts.map +1 -0
  30. package/core/core/decorators/kos-model-effect.d.ts +10 -9
  31. package/core/core/decorators/kos-model-effect.d.ts.map +1 -1
  32. package/core/core/decorators/kos-multiple-future-aware.d.ts +21 -94
  33. package/core/core/decorators/kos-multiple-future-aware.d.ts.map +1 -1
  34. package/core/core/decorators/kos-reload-aware.d.ts +14 -16
  35. package/core/core/decorators/kos-reload-aware.d.ts.map +1 -1
  36. package/core/core/decorators/kos-service-request.d.ts +80 -238
  37. package/core/core/decorators/kos-service-request.d.ts.map +1 -1
  38. package/core/core/decorators/kos-state-machine.d.ts +35 -275
  39. package/core/core/decorators/kos-state-machine.d.ts.map +1 -1
  40. package/core/core/decorators/kos-topic-handler-flow-control.d.ts +11 -3
  41. package/core/core/decorators/kos-topic-handler-flow-control.d.ts.map +1 -1
  42. package/core/core/decorators/kos-trouble-aware.d.ts +9 -43
  43. package/core/core/decorators/kos-trouble-aware.d.ts.map +1 -1
  44. package/core/core/decorators/kos-view-model.d.ts +20 -100
  45. package/core/core/decorators/kos-view-model.d.ts.map +1 -1
  46. package/core/core/decorators/kosModel.d.ts.map +1 -1
  47. package/core/core/decorators/kosTopicHandler.d.ts +28 -89
  48. package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
  49. package/core/core/decorators/propKeys.d.ts +1 -0
  50. package/core/core/decorators/propKeys.d.ts.map +1 -1
  51. package/core/core/indexing/index.d.ts +2 -4
  52. package/core/core/indexing/index.d.ts.map +1 -1
  53. package/core/core/indexing/kos-container-index-aware.d.ts +17 -48
  54. package/core/core/indexing/kos-container-index-aware.d.ts.map +1 -1
  55. package/core/core/indexing/kos-index-aware.d.ts +11 -37
  56. package/core/core/indexing/kos-index-aware.d.ts.map +1 -1
  57. package/core/core/kos-container-index.d.ts +11 -0
  58. package/core/core/kos-container-index.d.ts.map +1 -1
  59. package/core/core/kos-container-model.d.ts +11 -32
  60. package/core/core/kos-container-model.d.ts.map +1 -1
  61. package/core/core/kos-data-container.d.ts +6 -6
  62. package/core/core/kos-data-container.d.ts.map +1 -1
  63. package/core/core/kosCore.d.ts +7 -4
  64. package/core/core/kosCore.d.ts.map +1 -1
  65. package/core/core/kosModel.d.ts +16 -8
  66. package/core/core/kosModel.d.ts.map +1 -1
  67. package/core/core/kosModelManager.d.ts +2 -3
  68. package/core/core/kosModelManager.d.ts.map +1 -1
  69. package/core/core/lifecycle/constants.d.ts +6 -2
  70. package/core/core/lifecycle/constants.d.ts.map +1 -1
  71. package/core/core/lifecycle/kosCoreLifecycle.d.ts +11 -1
  72. package/core/core/lifecycle/kosCoreLifecycle.d.ts.map +1 -1
  73. package/core/core/lifecycle/kosModelLifecycle.d.ts +6 -0
  74. package/core/core/lifecycle/kosModelLifecycle.d.ts.map +1 -1
  75. package/core/core/lifecycle/model-machine.d.ts +6 -0
  76. package/core/core/lifecycle/model-machine.d.ts.map +1 -1
  77. package/core/core/model/kos-fsm-manager.d.ts +6 -0
  78. package/core/core/model/kos-fsm-manager.d.ts.map +1 -1
  79. package/core/core/model/kos-offline-queue.d.ts +1 -1
  80. package/core/core/model/kos-subscription-manager.d.ts.map +1 -1
  81. package/core/core/model/service-response-store.d.ts +2 -15
  82. package/core/core/model/service-response-store.d.ts.map +1 -1
  83. package/core/core/reconnect/reconnect-fixture.d.ts +17 -0
  84. package/core/core/reconnect/reconnect-fixture.d.ts.map +1 -0
  85. package/core/core/registration/model-registration.d.ts.map +1 -1
  86. package/core/core/services/app-startup-service.d.ts +5 -13
  87. package/core/core/services/app-startup-service.d.ts.map +1 -1
  88. package/core/core/services/intent-service.d.ts +3 -12
  89. package/core/core/services/intent-service.d.ts.map +1 -1
  90. package/core/core/transport/mock/mock-frames.d.ts +3 -3
  91. package/core/core/transport/transport.d.ts +1 -1
  92. package/core/core/transport/transport.d.ts.map +1 -1
  93. package/core/core/transport/webSocketTransport.d.ts +10 -0
  94. package/core/core/transport/webSocketTransport.d.ts.map +1 -1
  95. package/core/types/model.d.ts +4 -8
  96. package/core/types/model.d.ts.map +1 -1
  97. package/core/types/service-response-store.d.ts +3 -11
  98. package/core/types/service-response-store.d.ts.map +1 -1
  99. package/core/types/utils/kos-fetch.d.ts +25 -37
  100. package/core/types/utils/kos-fetch.d.ts.map +1 -1
  101. package/core/util/abortable-when.d.ts +5 -6
  102. package/core/util/abortable-when.d.ts.map +1 -1
  103. package/core/util/ancestor-path-visitor.d.ts +14 -20
  104. package/core/util/ancestor-path-visitor.d.ts.map +1 -1
  105. package/core/util/container-utils.d.ts +26 -159
  106. package/core/util/container-utils.d.ts.map +1 -1
  107. package/core/util/date-utils.d.ts +9 -58
  108. package/core/util/date-utils.d.ts.map +1 -1
  109. package/core/util/debounce.d.ts +1 -8
  110. package/core/util/debounce.d.ts.map +1 -1
  111. package/core/util/kos-fetch.d.ts +1 -1
  112. package/core/util/kos-fetch.d.ts.map +1 -1
  113. package/core/util/kos-model-utils.d.ts +10 -11
  114. package/core/util/kos-model-utils.d.ts.map +1 -1
  115. package/core/util/model-attribute-utils.d.ts +5 -22
  116. package/core/util/model-attribute-utils.d.ts.map +1 -1
  117. package/core/util/model-type-guards.d.ts.map +1 -1
  118. package/core/util/promise-utils.d.ts +1 -26
  119. package/core/util/promise-utils.d.ts.map +1 -1
  120. package/core/util/service-factory.d.ts +5 -23
  121. package/core/util/service-factory.d.ts.map +1 -1
  122. package/core/util/service-request-error.d.ts +3 -5
  123. package/core/util/service-request-error.d.ts.map +1 -1
  124. package/core/util/service-response.d.ts +12 -67
  125. package/core/util/service-response.d.ts.map +1 -1
  126. package/core/util/transport-not-ready-error.d.ts +11 -13
  127. package/core/util/transport-not-ready-error.d.ts.map +1 -1
  128. package/core/util/when-ready.d.ts +1 -8
  129. package/core/util/when-ready.d.ts.map +1 -1
  130. package/index.cjs +692 -11760
  131. package/index.cjs.map +1 -1
  132. package/index.js +774 -11846
  133. package/index.js.map +1 -1
  134. package/models/decorators/future-service.d.ts +7 -7
  135. package/models/models/browser-router/browser-router-model.d.ts +10 -39
  136. package/models/models/browser-router/browser-router-model.d.ts.map +1 -1
  137. package/models/models/browser-router/browser-router-registration.d.ts +5 -77
  138. package/models/models/browser-router/browser-router-registration.d.ts.map +1 -1
  139. package/models/models/browser-router/types/index.d.ts +2 -16
  140. package/models/models/canvas-dispatcher/canvas-dispatcher-registration.d.ts +5 -77
  141. package/models/models/canvas-dispatcher/canvas-dispatcher-registration.d.ts.map +1 -1
  142. package/models/models/canvas-renderer/canvas-renderer-registration.d.ts +5 -75
  143. package/models/models/canvas-renderer/canvas-renderer-registration.d.ts.map +1 -1
  144. package/models/models/config-bean/config-bean-model-builder.d.ts +4 -11
  145. package/models/models/config-bean/config-bean-model-builder.d.ts.map +1 -1
  146. package/models/models/config-bean/config-bean-model.d.ts +23 -66
  147. package/models/models/config-bean/config-bean-model.d.ts.map +1 -1
  148. package/models/models/config-bean-prop/config-bean-prop-model.d.ts +15 -62
  149. package/models/models/config-bean-prop/config-bean-prop-model.d.ts.map +1 -1
  150. package/models/models/config-bean-prop/types/index.d.ts +34 -215
  151. package/models/models/device/device-model.d.ts +20 -199
  152. package/models/models/device/device-model.d.ts.map +1 -1
  153. package/models/models/device/device-registration.d.ts +7 -87
  154. package/models/models/device/device-registration.d.ts.map +1 -1
  155. package/models/models/device/types/index.d.ts +5 -34
  156. package/models/models/future/future-aware.d.ts +7 -71
  157. package/models/models/future/future-aware.d.ts.map +1 -1
  158. package/models/models/future/future-model-builder.d.ts +2 -2
  159. package/models/models/future/future-model.d.ts +3 -23
  160. package/models/models/future/future-model.d.ts.map +1 -1
  161. package/models/models/future/future-types.d.ts +28 -145
  162. package/models/models/future/future-types.d.ts.map +1 -1
  163. package/models/models/gpio-chip/gpio-chip-builders.d.ts +14 -0
  164. package/models/models/gpio-chip/gpio-chip-builders.d.ts.map +1 -0
  165. package/models/models/gpio-chip/gpio-chip-container-model.d.ts +2 -1
  166. package/models/models/gpio-chip/gpio-chip-container-model.d.ts.map +1 -1
  167. package/models/models/key-value/key-value-model.d.ts +12 -72
  168. package/models/models/key-value/key-value-model.d.ts.map +1 -1
  169. package/models/models/key-value/key-value-registration.d.ts +5 -77
  170. package/models/models/key-value/key-value-registration.d.ts.map +1 -1
  171. package/models/models/key-value/services/key-value-services.d.ts +13 -72
  172. package/models/models/key-value/services/key-value-services.d.ts.map +1 -1
  173. package/models/models/key-value/types/index.d.ts +3 -46
  174. package/models/models/kos-expression-evaluator/expression-parse-cache.d.ts +29 -0
  175. package/models/models/kos-expression-evaluator/expression-parse-cache.d.ts.map +1 -0
  176. package/models/models/kos-expression-evaluator/index.d.ts +1 -0
  177. package/models/models/kos-expression-evaluator/index.d.ts.map +1 -1
  178. package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts +73 -105
  179. package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts.map +1 -1
  180. package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts +2 -12
  181. package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts.map +1 -1
  182. package/models/models/kos-log-manager/kos-log-manager-model.d.ts +7 -46
  183. package/models/models/kos-log-manager/kos-log-manager-model.d.ts.map +1 -1
  184. package/models/models/kos-log-manager/kos-log-manager-registration.d.ts +5 -80
  185. package/models/models/kos-log-manager/kos-log-manager-registration.d.ts.map +1 -1
  186. package/models/models/kos-log-manager/types/index.d.ts +13 -156
  187. package/models/models/kos-time/kos-time-model.d.ts +8 -39
  188. package/models/models/kos-time/kos-time-model.d.ts.map +1 -1
  189. package/models/models/kos-time/kos-time-registration.d.ts +6 -73
  190. package/models/models/kos-time/kos-time-registration.d.ts.map +1 -1
  191. package/models/models/kos-time/types/index.d.ts +3 -58
  192. package/models/models/log-block/log-block-container-model.d.ts +2 -118
  193. package/models/models/log-block/log-block-container-model.d.ts.map +1 -1
  194. package/models/models/log-block/log-block-container-registration.d.ts +5 -75
  195. package/models/models/log-block/log-block-container-registration.d.ts.map +1 -1
  196. package/models/models/log-block/log-block-model.d.ts +5 -168
  197. package/models/models/log-block/log-block-model.d.ts.map +1 -1
  198. package/models/models/log-block/log-block-registration.d.ts +5 -75
  199. package/models/models/log-block/log-block-registration.d.ts.map +1 -1
  200. package/models/models/log-block/types/index.d.ts +14 -81
  201. package/models/models/log-stream/log-stream-container-model.d.ts +8 -35
  202. package/models/models/log-stream/log-stream-container-model.d.ts.map +1 -1
  203. package/models/models/log-stream/log-stream-container-registration.d.ts +5 -75
  204. package/models/models/log-stream/log-stream-container-registration.d.ts.map +1 -1
  205. package/models/models/log-stream/log-stream-model.d.ts +8 -29
  206. package/models/models/log-stream/log-stream-model.d.ts.map +1 -1
  207. package/models/models/log-stream/log-stream-registration.d.ts +5 -75
  208. package/models/models/log-stream/log-stream-registration.d.ts.map +1 -1
  209. package/models/models/log-stream/types/index.d.ts +5 -60
  210. package/models/models/network-interface/network-interface-container-model.d.ts +6 -35
  211. package/models/models/network-interface/network-interface-container-model.d.ts.map +1 -1
  212. package/models/models/network-interface/network-interface-container-registration.d.ts +5 -73
  213. package/models/models/network-interface/network-interface-container-registration.d.ts.map +1 -1
  214. package/models/models/network-interface/network-interface-model.d.ts +5 -43
  215. package/models/models/network-interface/network-interface-model.d.ts.map +1 -1
  216. package/models/models/network-interface/network-interface-registration.d.ts +5 -73
  217. package/models/models/network-interface/network-interface-registration.d.ts.map +1 -1
  218. package/models/models/network-interface/types/index.d.ts +2 -16
  219. package/models/models/ota/ota-model.d.ts +11 -39
  220. package/models/models/ota/ota-model.d.ts.map +1 -1
  221. package/models/models/ota/ota-registration.d.ts +5 -77
  222. package/models/models/ota/ota-registration.d.ts.map +1 -1
  223. package/models/models/ota/types/index.d.ts +2 -141
  224. package/models/models/region-info/types/index.d.ts +19 -99
  225. package/models/models/region-info/types/index.d.ts.map +1 -1
  226. package/models/models/software-info/services/software-info-services.d.ts +2 -14
  227. package/models/models/software-info/services/software-info-services.d.ts.map +1 -1
  228. package/models/models/software-info/software-info-model.d.ts +3 -39
  229. package/models/models/software-info/software-info-model.d.ts.map +1 -1
  230. package/models/models/software-info/software-info-registration.d.ts +6 -73
  231. package/models/models/software-info/software-info-registration.d.ts.map +1 -1
  232. package/models/models/software-info/types/index.d.ts +6 -20
  233. package/models/models/state-bean/state-bean-model.d.ts +10 -41
  234. package/models/models/state-bean/state-bean-model.d.ts.map +1 -1
  235. package/models/models/state-bean/state-bean-registration.d.ts +6 -73
  236. package/models/models/state-bean/state-bean-registration.d.ts.map +1 -1
  237. package/models/models/state-bean/types/index.d.ts +4 -84
  238. package/models/models/state-prop/state-prop-model.d.ts +6 -40
  239. package/models/models/state-prop/state-prop-model.d.ts.map +1 -1
  240. package/models/models/state-prop/state-prop-registration.d.ts +6 -73
  241. package/models/models/state-prop/state-prop-registration.d.ts.map +1 -1
  242. package/models/models/state-prop/types/index.d.ts +5 -37
  243. package/models/models/storage-device/storage-device-container-model.d.ts +7 -273
  244. package/models/models/storage-device/storage-device-container-model.d.ts.map +1 -1
  245. package/models/models/storage-device/storage-device-container-registration.d.ts +5 -75
  246. package/models/models/storage-device/storage-device-container-registration.d.ts.map +1 -1
  247. package/models/models/storage-device/storage-device-model.d.ts +3 -49
  248. package/models/models/storage-device/storage-device-model.d.ts.map +1 -1
  249. package/models/models/storage-device/storage-device-registration.d.ts +5 -75
  250. package/models/models/storage-device/storage-device-registration.d.ts.map +1 -1
  251. package/models/models/storage-device/types/index.d.ts +13 -82
  252. package/models/models/studio-properties/studio-properties-model.d.ts +13 -36
  253. package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -1
  254. package/models/models/studio-properties/studio-properties-registration.d.ts +5 -75
  255. package/models/models/studio-properties/studio-properties-registration.d.ts.map +1 -1
  256. package/models/models/studio-properties/types/index.d.ts +2 -24
  257. package/models/models/translation/descriptor-merge.d.ts +13 -17
  258. package/models/models/translation/descriptor-merge.d.ts.map +1 -1
  259. package/models/models/translation/services/translation-services.d.ts +19 -77
  260. package/models/models/translation/services/translation-services.d.ts.map +1 -1
  261. package/models/models/translation/test-harness.d.ts +6 -8
  262. package/models/models/translation/test-harness.d.ts.map +1 -1
  263. package/models/models/translation/translation-container-model.d.ts +7 -59
  264. package/models/models/translation/translation-container-model.d.ts.map +1 -1
  265. package/models/models/translation/translation-container-registration.d.ts +6 -73
  266. package/models/models/translation/translation-container-registration.d.ts.map +1 -1
  267. package/models/models/translation/translation-model.d.ts +17 -50
  268. package/models/models/translation/translation-model.d.ts.map +1 -1
  269. package/models/models/translation/translation-registration.d.ts +6 -73
  270. package/models/models/translation/translation-registration.d.ts.map +1 -1
  271. package/models/models/translation/types/index.d.ts +51 -276
  272. package/models/models/trouble/trouble-registration.d.ts +6 -73
  273. package/models/models/trouble/trouble-registration.d.ts.map +1 -1
  274. package/models/models/trouble/types/index.d.ts +17 -188
  275. package/models/models/trouble/utils/is-trouble-aware.d.ts +4 -85
  276. package/models/models/trouble/utils/is-trouble-aware.d.ts.map +1 -1
  277. package/models/models/trouble-container/trouble-builders.d.ts +11 -0
  278. package/models/models/trouble-container/trouble-builders.d.ts.map +1 -0
  279. package/models/models/trouble-container/trouble-container-model.d.ts +2 -1
  280. package/models/models/trouble-container/trouble-container-model.d.ts.map +1 -1
  281. package/models/models/usb-update/usb-update-container-registration.d.ts +5 -75
  282. package/models/models/usb-update/usb-update-container-registration.d.ts.map +1 -1
  283. package/models/models/usb-update/usb-update-registration.d.ts +5 -75
  284. package/models/models/usb-update/usb-update-registration.d.ts.map +1 -1
  285. package/models/types/cancellable-promise.d.ts +6 -9
  286. package/models/types/cancellable-promise.d.ts.map +1 -1
  287. package/models/utils/await-future-call.d.ts +9 -21
  288. package/models/utils/await-future-call.d.ts.map +1 -1
  289. package/models/utils/cancellable-future-call.d.ts +8 -19
  290. package/models/utils/cancellable-future-call.d.ts.map +1 -1
  291. package/models/utils/cancellable-service.d.ts +14 -23
  292. package/models/utils/cancellable-service.d.ts.map +1 -1
  293. package/models/utils/conversion-utils.d.ts +8 -48
  294. package/models/utils/conversion-utils.d.ts.map +1 -1
  295. package/models/utils/persistence-store.d.ts +1 -1
  296. package/models/utils/service.d.ts +14 -48
  297. package/models/utils/service.d.ts.map +1 -1
  298. package/models/utils/services/kos/daily/service.d.ts +4 -4
  299. package/models/utils/services/vfs/daily/service.d.ts +4 -4
  300. package/models/utils/timer-manager.d.ts.map +1 -1
  301. package/package.json +2 -2
  302. package/{index-D52vEGXT.cjs → software-info-registration-Le3V0a6v.cjs} +11906 -416
  303. package/software-info-registration-Le3V0a6v.cjs.map +1 -0
  304. package/{index-Csq0zQtb.js → software-info-registration-kSGacOka.js} +12116 -625
  305. package/software-info-registration-kSGacOka.js.map +1 -0
  306. package/testing/index.d.ts +32 -34
  307. package/testing/index.d.ts.map +1 -1
  308. package/testing.cjs +2 -1
  309. package/testing.cjs.map +1 -1
  310. package/testing.js +2 -1
  311. package/testing.js.map +1 -1
  312. package/ui/components/connection-dev-button/connection-dev-button-styles.d.ts +9 -0
  313. package/ui/components/connection-dev-button/connection-dev-button-styles.d.ts.map +1 -0
  314. package/ui/components/connection-dev-button/index.d.ts +36 -0
  315. package/ui/components/connection-dev-button/index.d.ts.map +1 -0
  316. package/ui/components/connection-dev-button/use-connection-dev-state.d.ts +29 -0
  317. package/ui/components/connection-dev-button/use-connection-dev-state.d.ts.map +1 -0
  318. package/ui/components/index.d.ts +1 -0
  319. package/ui/components/index.d.ts.map +1 -1
  320. package/ui/features/canvas/hooks/use-image-renderer.d.ts +5 -4
  321. package/ui/features/canvas/hooks/use-image-renderer.d.ts.map +1 -1
  322. package/ui/hooks/use-function-warmup.d.ts +4 -14
  323. package/ui/hooks/use-function-warmup.d.ts.map +1 -1
  324. package/ui/hooks/use-kos-date-formats.d.ts +15 -29
  325. package/ui/hooks/use-kos-date-formats.d.ts.map +1 -1
  326. package/ui/hooks/use-kos-region-timezones.d.ts +4 -55
  327. package/ui/hooks/use-kos-region-timezones.d.ts.map +1 -1
  328. package/ui/hooks/use-kos-regions.d.ts +11 -23
  329. package/ui/hooks/use-kos-regions.d.ts.map +1 -1
  330. package/ui/hooks/use-kos-time-formats.d.ts +16 -31
  331. package/ui/hooks/use-kos-time-formats.d.ts.map +1 -1
  332. package/ui/hooks/use-kos-unit-systems.d.ts +13 -27
  333. package/ui/hooks/use-kos-unit-systems.d.ts.map +1 -1
  334. package/ui/hooks/view-model/use-view-model.d.ts +6 -31
  335. package/ui/hooks/view-model/use-view-model.d.ts.map +1 -1
  336. package/ui/policies/reload-on-disconnect-policy.d.ts +5 -6
  337. package/ui/policies/reload-on-disconnect-policy.d.ts.map +1 -1
  338. package/index-Csq0zQtb.js.map +0 -1
  339. package/index-D52vEGXT.cjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"software-info-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/kos-ui-sdk/src/models/models/software-info/services/software-info-services.ts"],"names":[],"mappings":"AAKA,OAAO,EAAO,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAQ5D,MAAM,WAAW,KAAK;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,8BAA8B,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CACvD,wBAAwB,EACxB,KAAK,CACN,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,WAAW,KACnB,OAAO,CAAC,0BAA0B,CAmBpC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,0BAA0B;YAEq7uM,oDAAsB;GADt8uM,CAAC"}
1
+ {"version":3,"file":"software-info-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/kos-ui-sdk/src/models/models/software-info/services/software-info-services.ts"],"names":[],"mappings":"AAKA,OAAO,EAAO,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAQ5D,MAAM,WAAW,KAAK;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,8BAA8B,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CACvD,wBAAwB,EACxB,KAAK,CACN,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,WAAW,KACnB,OAAO,CAAC,0BAA0B,CAmBpC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B;YAE4mvM,oDAAsB;GAD7nvM,CAAC"}
@@ -3,47 +3,11 @@ import { PublicModelInterface } from '../../../core/types';
3
3
  import { ArtifactsType, NodeInfoType, SoftwareInfoOptions } from './types';
4
4
  export declare const MODEL_TYPE = "software-info-model";
5
5
  /**
6
- * SoftwareInfo - System software version and artifact management for KOS devices.
7
- *
8
- * The SoftwareInfo model provides comprehensive visibility into installed software versions,
9
- * artifacts, and system components across all nodes in a KOS device. This model is essential
10
- * for applications that need to display system information, perform version checks, or
11
- * manage software compatibility and updates.
12
- *
13
- * ## Key Features
14
- * - **Node-Based Architecture** - Track software information across multiple device nodes
15
- * - **Artifact Management** - Complete visibility into installed software components and versions
16
- * - **Version Tracking** - Monitor KOS framework versions and application artifacts
17
- * - **Group Organization** - Automatic categorization of artifacts by functional groups
18
- * - **System Overview** - Comprehensive system software inventory and version reporting
19
- * - **Compatibility Checking** - Version information for dependency and compatibility validation
20
- *
21
- * ## Data Structure
22
- * The model organizes software information hierarchically:
23
- * - **Nodes** - Individual system nodes (primary, secondary, etc.)
24
- * - **Artifacts** - Software components installed on each node
25
- * - **Groups** - Logical grouping of related artifacts (core, ui, services, etc.)
26
- * - **Versions** - Specific version information for each artifact
27
- *
28
- * ## Common Use Cases
29
- * - **System Information Display** - Show installed software versions to users and administrators
30
- * - **Version Compatibility** - Check software versions before updates or feature activation
31
- * - **Support Diagnostics** - Provide detailed software information for troubleshooting
32
- * - **Update Planning** - Assess current software state before planning updates
33
- * - **Inventory Management** - Track and report on installed software components
6
+ * Software installed on each node of the device. On load the model reads the
7
+ * manifest and fills `nodes`, one entry per node with its KOS version and its
8
+ * artifacts grouped by artifact group.
34
9
  *
35
10
  * @interface
36
- * @example Basic Usage
37
- * ```typescript
38
- * const softwareInfo = SoftwareInfo.instance('system-info').build();
39
- *
40
- * // Access system software information across nodes
41
- * const nodes = softwareInfo.nodes;
42
- * nodes?.forEach(node => {
43
- * console.log(`Node ${node.nodeName}: KOS ${node.kosVersion}`);
44
- * });
45
- * ```
46
- *
47
11
  * @group KOS Model
48
12
  * @category System Integration
49
13
  * @useDeclaredType
@@ -1 +1 @@
1
- {"version":3,"file":"software-info-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/software-info/software-info-model.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEhF,eAAO,MAAM,UAAU,wBAAwB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,qBAAqB,CAAC,CAAC;AAE5E;;;GAGG;AACH,qBACa,qBAAsB,YAAW,aAAa;IACzD,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IAEjC,sFAAsF;IACtF,KAAK,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC;gBAEhC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAE,kBAAkB;IAS7B;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;;;;;OAMG;IACH,OAAO,CAAC,GAAG,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,MAAM,aAAa;IAU3D;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAuB5B"}
1
+ {"version":3,"file":"software-info-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/software-info/software-info-model.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEhF,eAAO,MAAM,UAAU,wBAAwB,CAAC;AAEhD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,qBAAqB,CAAC,CAAC;AAE5E;;;GAGG;AACH,qBACa,qBAAsB,YAAW,aAAa;IACzD,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IAEjC,sFAAsF;IACtF,KAAK,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC;gBAEhC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAE,kBAAkB;IAS7B;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;;;;;OAMG;IACH,OAAO,CAAC,GAAG,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,MAAM,aAAa;IAU3D;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAuB5B"}
@@ -1,83 +1,16 @@
1
1
  import { KosModelRegistrationBean } from '../../../core/types';
2
2
  import { SoftwareInfoModel, SoftwareInfoOptions } from './types';
3
3
  /**
4
- * # SoftwareInfo
4
+ * Registration for {@link SoftwareInfoModel}.
5
5
  *
6
- * The registration bean includes convenience methods for creating and working with SoftwareInfoModel instances.
7
- *
8
- * ## type
9
- * The type property is a string that identifies the model type.
10
- * The type is used to identify the model type in the model registry and to narrow down the model type in type predicates. It's most frequently
11
- * used when declaring dependencies on models.
6
+ * `type` identifies the model in the registry and in `@kosDependency` declarations.
7
+ * `factory(id)(options)` creates the model, or returns the existing one when the id is already in use. `predicate` narrows a model to `SoftwareInfoModel`.
8
+ * Spread `registration` into an application's model registry.
12
9
  *
13
10
  * @example
14
11
  * ```typescript
15
- *
16
- * @kosDependency({modelType: SoftwareInfo.type, id: "softwareInfoId"})
17
- * private softwareInfoModel: SoftwareInfoModel;
12
+ * const model = SoftwareInfo.factory("softwareInfoId")(options);
18
13
  * ```
19
- *
20
- *
21
- * ## factory
22
- *
23
- * The factory method creates a factory function that can be used to create new SoftwareInfoModel instances.
24
- *
25
-
26
- * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
27
- *
28
- * If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
29
- * in this case and the existing model will be returned in its current state.
30
- *
31
- * @example
32
- * ```typescript
33
- * const model = SoftwareInfo.factory("softwareInfoId")({
34
- * // Add option data
35
- * });
36
- * ```
37
-
38
-
39
- *
40
- * ## predicate
41
- *
42
- * [Typescript type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates) function that will identify and narrow down a model to a SoftwareInfoModel.
43
- *
44
- * @example
45
- * ```typescript
46
- *
47
- * const model: IKosDataModel = ...; // some model
48
- *
49
- * if (SoftwareInfo.predicate(model)) {
50
- * // if the function evaluates to true, the model is narrowed down to SoftwareInfoModel
51
- * // and the compiler will know that the model has the SoftwareInfoModel interface
52
- * model.updateAvailability(false);
53
- * }
54
- * ```
55
- *
56
- * ## registration
57
- *
58
- * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
59
- * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
60
- *
61
- *
62
- * @example
63
- *
64
- * In an application registration file you can declare the model registration as follows:
65
- *
66
- * **registration.ts**
67
- * ```typescript
68
- * import { SoftwareInfo } from "@kos-ui/kos-dispenser-model";
69
- * ...
70
- * import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
71
- * export const kosModels: IKosRegistry["models"] = {
72
- * ...SoftwareInfo.registration,
73
- * };
74
- * ```
75
- *
76
- * ## registration.singleton
77
-
78
- * The softwareInfo model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
79
- * If the factory function is called with an ID that already exists, the existing model will be returned.
80
-
81
- * */
14
+ */
82
15
  export declare const SoftwareInfo: Readonly<KosModelRegistrationBean<SoftwareInfoModel, SoftwareInfoOptions>>;
83
16
  //# sourceMappingURL=software-info-registration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"software-info-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/software-info/software-info-registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AACL,eAAO,MAAM,YAAY,EAAE,QAAQ,CACjC,wBAAwB,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAajE,CAAC"}
1
+ {"version":3,"file":"software-info-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/software-info/software-info-registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEtE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,EAAE,QAAQ,CACjC,wBAAwB,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAajE,CAAC"}
@@ -1,23 +1,15 @@
1
1
  import { PublicModelInterface } from '../../../../core';
2
2
  import { SoftwareInfoModelImpl } from '../software-info-model';
3
3
  /**
4
- * Configuration options for SoftwareInfo model instances.
5
- *
6
- * This interface defines the configuration options for the SoftwareInfo model.
7
- * Currently, no specific configuration options are required as the model
8
- * automatically loads software information from the system manifest API.
9
- *
10
- * @example Basic Usage
11
- * ```typescript
12
- * const softwareInfo = SoftwareInfo.instance('system-info').build();
13
- * ```
4
+ * Options for a {@link SoftwareInfoModel}. The model takes none; it loads its
5
+ * data from the system manifest.
14
6
  *
15
7
  * @kosService core.software-info
16
8
  * @category Model Configuration
17
9
  * @category System Integration
18
10
  */
19
11
  export interface SoftwareInfoOptions {
20
- /** Reserved for future extensibility - currently no options required */
12
+ /** No options are accepted. */
21
13
  [key: string]: never;
22
14
  }
23
15
 
@@ -29,10 +21,7 @@ export interface SoftwareInfoOptions {
29
21
  export type SoftwareInfoModel = PublicModelInterface<SoftwareInfoModelImpl>;
30
22
 
31
23
  /**
32
- * Software artifact information representing an individual component or package.
33
- *
34
- * This interface describes a software artifact (component, package, or module)
35
- * installed on a KOS device node, including its identification, grouping, and version.
24
+ * A software artifact installed on a node.
36
25
  *
37
26
  * @kosService core.software-info
38
27
  * @group KOS Model
@@ -48,11 +37,8 @@ export interface ArtifactsType {
48
37
  }
49
38
 
50
39
  /**
51
- * Node software information representing all software components on a device node.
52
- *
53
- * This interface describes the complete software configuration of a single KOS device node,
54
- * including the node identification, KOS framework version, and all installed artifacts
55
- * organized by functional groups.
40
+ * The software installed on one node: its KOS version and its artifacts,
41
+ * grouped by artifact group.
56
42
  *
57
43
  * @kosService core.software-info
58
44
  * @group KOS Model
@@ -5,50 +5,19 @@ import { StateBeanResponse } from './services';
5
5
  import { StateBeanModel, StateBeanOptions, StatePropsMap } from './types';
6
6
  export declare const MODEL_TYPE = "state-bean-model";
7
7
  /**
8
- * StateBean - Reactive state management for KOS device state properties.
8
+ * The device state properties at one state path. The model loads them on load
9
+ * and applies `/kos/state/{path}` topic updates, converting `"true"`/`"false"`
10
+ * and numeric strings to booleans and numbers. `props` is a reactive map, so a
11
+ * `kosComponent` reading it re-renders when a property changes.
9
12
  *
10
- * The StateBean model provides real-time access to KOS device state information through
11
- * reactive properties that automatically synchronize with device state changes via WebSocket
12
- * topics. This model is essential for applications that need to monitor device state,
13
- * track property changes, or build reactive UIs that respond to device status updates.
14
- *
15
- * ## Key Features
16
- * - **Real-time Synchronization** - Automatic updates via `/kos/state/{path}` WebSocket topics
17
- * - **Type-safe Properties** - Strongly typed state properties with automatic type conversion
18
- * - **Observable State Map** - Reactive Map-based property storage for efficient updates
19
- * - **Automatic Type Conversion** - Smart conversion of string values to boolean/number types
20
- * - **Path-based Organization** - Hierarchical state organization using dot-notation paths
21
- * - **Lifecycle Management** - Proper initialization and loading of state data
22
- *
23
- * ## Topic-Based Reactivity
24
- * The model listens to KOS topics for real-time synchronization:
25
- * - **`/kos/state/{path}`** - Receives state updates for the specified path, triggering automatic property updates across all connected clients
26
- *
27
- * ## State Property Types
28
- * Supports all common KOS state property types:
29
- * - **string** - Text values, configuration strings, identifiers
30
- * - **number** - Numeric values, counters, measurements, percentages
31
- * - **boolean** - Status flags, enabled/disabled states, operational flags
32
- * - **object** - Complex state objects, nested configurations
33
- *
34
- * ## Common Use Cases
35
- * - **Device Status Monitoring** - Track operational states, error conditions, health metrics
36
- * - **Configuration State** - Monitor dynamic configuration changes and feature flags
37
- * - **System Status Dashboards** - Build real-time status displays and monitoring interfaces
38
- * - **Conditional UI Logic** - Show/hide UI elements based on device state
39
- * - **State-dependent Operations** - Enable/disable functionality based on device state
40
- * - **Multi-client Synchronization** - Keep multiple clients in sync with device state
13
+ * Declare one on a model with `@kosStateBean`, or a single property with
14
+ * `@kosStateProp`.
41
15
  *
42
16
  * @interface
43
- * @example Basic Usage
17
+ * @example
44
18
  * ```typescript
45
- * const deviceState = StateBean.instance('device-status')
46
- * .options({ path: 'device.operational.status' })
47
- * .build();
48
- *
49
- * // Access reactive state properties
50
- * const isOnline = deviceState.props.get('online') as boolean;
51
- * const temperature = deviceState.props.get('temperature') as number;
19
+ * @kosStateBean({ path: "system:app" })
20
+ * appState!: StateBean;
52
21
  * ```
53
22
  *
54
23
  * @group KOS Model
@@ -92,7 +61,7 @@ export declare class StateBeanModelImpl<T extends Record<string, StatePropertyTy
92
61
  */
93
62
  init(): Promise<void>;
94
63
  /**
95
- * Updates multiple properties at once with type conversion.
64
+ * Sets several properties at once.
96
65
  * @param props Properties to update
97
66
  * @private
98
67
  */
@@ -1 +1 @@
1
- {"version":3,"file":"state-bean-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/state-bean/state-bean-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,eAAe,CAAC;AAQvB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAoB,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE/E,eAAO,MAAM,UAAU,qBAAqB,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,MAAM,MAAM,SAAS,CACnB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,MAAM,CACnD,MAAM,EACN,kBAAkB,CACnB,IACC,oBAAoB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AAIhD;;;GAGG;AACH,qBACa,kBAAkB,CAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,MAAM,CACnD,MAAM,EACN,kBAAkB,CACnB,CACD,YAAW,cAAc,CAAC,CAAC,CAAC,EAAE,eAAe;IAE7C,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,6CAA6C;IAC7C,IAAI,EAAG,MAAM,CAAC;IACd,sEAAsE;IACtE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACxB,mDAAmD;IACnD,MAAM,EAAE,gBAAgB,CAAC;gBAEvB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,kBAAkB;IAQ7B;;;OAGG;IACH,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAI5C;;;;;OAKG;IAKH,uBAAuB,CAAC,SAAS,EAAE,iBAAiB;IAkBpD;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC;IAMrD;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAO5B"}
1
+ {"version":3,"file":"state-bean-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/state-bean/state-bean-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,eAAe,CAAC;AAQvB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAoB,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE/E,eAAO,MAAM,UAAU,qBAAqB,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,MAAM,SAAS,CACnB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,MAAM,CACnD,MAAM,EACN,kBAAkB,CACnB,IACC,oBAAoB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AAIhD;;;GAGG;AACH,qBACa,kBAAkB,CAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,MAAM,CACnD,MAAM,EACN,kBAAkB,CACnB,CACD,YAAW,cAAc,CAAC,CAAC,CAAC,EAAE,eAAe;IAE7C,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,6CAA6C;IAC7C,IAAI,EAAG,MAAM,CAAC;IACd,sEAAsE;IACtE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACxB,mDAAmD;IACnD,MAAM,EAAE,gBAAgB,CAAC;gBAEvB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,kBAAkB;IAQ7B;;;OAGG;IACH,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAI5C;;;;;OAKG;IAKH,uBAAuB,CAAC,SAAS,EAAE,iBAAiB;IAkBpD;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC;IAMrD;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAO5B"}
@@ -1,83 +1,16 @@
1
1
  import { KosModelRegistrationBean } from '../../../core';
2
2
  import { StateBeanModel, StateBeanOptions } from './types';
3
3
  /**
4
- * # StateBean
4
+ * Registration for {@link StateBeanModel}.
5
5
  *
6
- * The registration bean includes convenience methods for creating and working with StateBeanModel instances.
7
- *
8
- * ## type
9
- * The type property is a string that identifies the model type.
10
- * The type is used to identify the model type in the model registry and to narrow down the model type in type predicates. It's most frequently
11
- * used when declaring dependencies on models.
6
+ * `type` identifies the model in the registry and in `@kosDependency` declarations.
7
+ * `factory(id)(options)` creates the model, or returns the existing one when the id is already in use. `predicate` narrows a model to `StateBeanModel`.
8
+ * Spread `registration` into an application's model registry.
12
9
  *
13
10
  * @example
14
11
  * ```typescript
15
- *
16
- * @kosDependency({modelType: StateBean.type, id: "stateBeanId"})
17
- * private stateBeanModel: StateBeanModel;
12
+ * const model = StateBean.factory("stateBeanId")(options);
18
13
  * ```
19
- *
20
- *
21
- * ## factory
22
- *
23
- * The factory method creates a factory function that can be used to create new StateBeanModel instances.
24
- *
25
-
26
- * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
27
- *
28
- * If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
29
- * in this case and the existing model will be returned in its current state.
30
- *
31
- * @example
32
- * ```typescript
33
- * const model = StateBean.factory("stateBeanId")({
34
- * // Add option data
35
- * });
36
- * ```
37
-
38
-
39
- *
40
- * ## predicate
41
- *
42
- * [Typescript type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates) function that will identify and narrow down a model to a StateBeanModel.
43
- *
44
- * @example
45
- * ```typescript
46
- *
47
- * const model: IKosDataModel = ...; // some model
48
- *
49
- * if (StateBean.predicate(model)) {
50
- * // if the function evaluates to true, the model is narrowed down to StateBeanModel
51
- * // and the compiler will know that the model has the StateBeanModel interface
52
- * model.updateAvailability(false);
53
- * }
54
- * ```
55
- *
56
- * ## registration
57
- *
58
- * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
59
- * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
60
- *
61
- *
62
- * @example
63
- *
64
- * In an application registration file you can declare the model registration as follows:
65
- *
66
- * **registration.ts**
67
- * ```typescript
68
- * import { StateBean } from "@kosdev-code/kos-dispense-sdk";
69
- * ...
70
- * import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
71
- * export const kosModels: IKosRegistry["models"] = {
72
- * ...StateBean.registration,
73
- * };
74
- * ```
75
- *
76
- * ## registration.singleton
77
-
78
- * The stateBean model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
79
- * If the factory function is called with an ID that already exists, the existing model will be returned.
80
-
81
- * */
14
+ */
82
15
  export declare const StateBean: Readonly<KosModelRegistrationBean<StateBeanModel, StateBeanOptions>>;
83
16
  //# sourceMappingURL=state-bean-registration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"state-bean-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/state-bean/state-bean-registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAG9D,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AACL,eAAO,MAAM,SAAS,EAAE,QAAQ,CAC9B,wBAAwB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAW3D,CAAC"}
1
+ {"version":3,"file":"state-bean-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/state-bean/state-bean-registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAG9D,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS,EAAE,QAAQ,CAC9B,wBAAwB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAW3D,CAAC"}
@@ -1,64 +1,13 @@
1
1
  import { StatePropertyTypes } from '../../types';
2
2
  /**
3
- * Configuration options for StateBean model instances.
4
- *
5
- * This interface defines the configuration options for the StateBean model,
6
- * specifying which state path the model should monitor for real-time updates.
7
- *
8
- * @example Basic StateBean Model Creation
9
- * ```typescript
10
- * // Monitor device operational status
11
- * const deviceState = StateBean.instance('device-status')
12
- * .options({ path: 'device.operational.status' })
13
- * .build();
14
- *
15
- * // Monitor system health metrics
16
- * const healthState = StateBean.instance('system-health')
17
- * .options({ path: 'system.health.metrics' })
18
- * .build();
19
- * ```
20
- *
21
- * @example Path Patterns
22
- * ```typescript
23
- * // Different path patterns for different use cases
24
- * const networkOptions: StateBeanOptions = {
25
- * path: 'network.interfaces.primary' // Network interface state
26
- * };
27
- *
28
- * const pumpOptions: StateBeanOptions = {
29
- * path: 'assembly.pumps.status' // Pump system state
30
- * };
31
- *
32
- * const brewingOptions: StateBeanOptions = {
33
- * path: 'beverage.brewing.process' // Brewing process state
34
- * };
35
- * ```
36
- *
37
- * @example Hierarchical State Organization
38
- * ```typescript
39
- * // Use dot notation for hierarchical state paths
40
- * const parentState = StateBean.instance('parent')
41
- * .options({ path: 'system' })
42
- * .build();
43
- *
44
- * const childState = StateBean.instance('child')
45
- * .options({ path: 'system.subsystem.component' })
46
- * .build();
47
- * ```
3
+ * Options for a {@link StateBean}: the device state path to follow.
48
4
  *
49
5
  * @kosService core.state-bean
50
6
  * @category Model Configuration
51
7
  * @category State Management
52
8
  */
53
9
  export interface StateBeanOptions {
54
- /**
55
- * State path to monitor for updates using dot notation hierarchy.
56
- * This path corresponds to the WebSocket topic `/kos/state/{path}` for real-time updates.
57
- *
58
- * @example "device.operational.status"
59
- * @example "network.interfaces.primary"
60
- * @example "assembly.pumps.status"
61
- */
10
+ /** State path to follow. Updates arrive on the `/kos/state/{path}` topic. */
62
11
  path: string;
63
12
  }
64
13
 
@@ -70,32 +19,7 @@ export interface StateBeanOptions {
70
19
  type StateKeys<T extends Record<string, StatePropertyTypes>> = keyof T;
71
20
 
72
21
  /**
73
- * Reactive Map-based storage for state properties with type safety.
74
- *
75
- * This Map provides efficient storage and retrieval of state properties with automatic
76
- * reactivity through MobX observables. The Map structure allows for dynamic property
77
- * addition/removal while maintaining type safety for known properties.
78
- *
79
- * @example Accessing State Properties
80
- * ```typescript
81
- * // Define typed state interface
82
- * interface PumpState {
83
- * active: boolean;
84
- * flowRate: number;
85
- * temperature: number;
86
- * lastMaintenance: string;
87
- * }
88
- *
89
- * const pumpState = StateBean.instance('pump-monitor')
90
- * .options({ path: 'assembly.pumps.pump1' })
91
- * .build() as StateBean<PumpState>;
92
- *
93
- * // Type-safe property access
94
- * const isActive = pumpState.props.get('active') as boolean;
95
- * const currentFlow = pumpState.props.get('flowRate') as number;
96
- * const temp = pumpState.props.get('temperature') as number;
97
- * const maintenance = pumpState.props.get('lastMaintenance') as string;
98
- * ```
22
+ * Reactive map of a state bean's properties, keyed by property name.
99
23
  *
100
24
  * @template T - The state property type mapping
101
25
  *
@@ -106,11 +30,7 @@ type StateKeys<T extends Record<string, StatePropertyTypes>> = keyof T;
106
30
  export type StatePropsMap<T> = Map<StateKeys<T>, T[keyof T]>;
107
31
 
108
32
  /**
109
- * State Bean Model interface - maintains the state of KOS device state properties.
110
- *
111
- * This interface represents the public API for StateBean models, providing reactive
112
- * access to device state properties through an observable Map structure. The interface
113
- * supports real-time synchronization with device state via WebSocket topics.
33
+ * Public API of a {@link StateBean}.
114
34
  *
115
35
  * @kosService core.state-bean
116
36
  * @group KOS Model
@@ -5,49 +5,15 @@ import { StatePropertyTypes } from '../types';
5
5
  import { KosStateProp, StatePropOptions } from './types';
6
6
  export declare const MODEL_TYPE = "state-prop-model";
7
7
  /**
8
- * StateProp - Focused access to individual state properties with dependency on StateBean.
9
- *
10
- * The StateProp model provides targeted access to a single property within a StateBean,
11
- * offering a focused interface for components or services that only need to monitor
12
- * specific state values. This model automatically manages its dependency on the underlying
13
- * StateBean and provides reactive access to individual property values.
14
- *
15
- * ## Key Features
16
- * - **Single Property Focus** - Access one specific property from a StateBean path
17
- * - **Automatic StateBean Dependency** - Manages StateBean dependency transparently
18
- * - **Type-safe Value Access** - Strongly typed property value with generic support
19
- * - **Reactive Updates** - Automatically updates when underlying StateBean changes
20
- * - **Simplified Interface** - Clean `.value` accessor for property values
21
- * - **String Conversion** - Built-in `toString()` method for display purposes
22
- *
23
- * ## StateBean Integration
24
- * StateProp models automatically create and manage dependencies on StateBean models:
25
- * - **Automatic Dependency** - Creates StateBean with matching path automatically
26
- * - **Shared StateBean** - Multiple StateProp models can share the same StateBean
27
- * - **Lifecycle Management** - Proper initialization and cleanup of dependencies
28
- * - **Real-time Synchronization** - Inherits WebSocket updates from StateBean
29
- *
30
- * ## Common Use Cases
31
- * - **Single Value Components** - React components that only need one state property
32
- * - **Conditional Logic** - Enable/disable functionality based on specific state
33
- * - **Status Indicators** - Display individual status flags or measurements
34
- * - **Property Validation** - Monitor specific properties for validation rules
35
- * - **Focused Updates** - Reduce re-renders by tracking only needed properties
36
- * - **Service Dependencies** - Services that depend on specific state values
8
+ * One property of a device state bean. The model depends on the
9
+ * {@link StateBean} for its path, which StateProps on the same path share, and
10
+ * `value` reads the attribute from it reactively.
37
11
  *
38
12
  * @interface
39
- * @example Basic Usage
13
+ * @example
40
14
  * ```typescript
41
- * const deviceOnline = StateProp.instance('device-online')
42
- * .options({
43
- * path: 'device.operational.status',
44
- * attribute: 'online'
45
- * })
46
- * .build();
47
- *
48
- * // Access focused property value with type safety
49
- * const isOnline = deviceOnline.value as boolean;
50
- * console.log(`Status: ${deviceOnline.toString()}`);
15
+ * @kosStateProp({ path: "system:app", attribute: "online" })
16
+ * online!: StateProp<boolean>;
51
17
  * ```
52
18
  *
53
19
  * @group KOS Model
@@ -1 +1 @@
1
- {"version":3,"file":"state-prop-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/state-prop/state-prop-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,qBAAqB,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE9D,eAAO,MAAM,UAAU,qBAAqB,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,IACrE,oBAAoB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AAI9C;;;GAGG;AACH,qBACa,kBAAkB,CAC7B,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,CACjD,YAAW,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe;IAE3C,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,SAAS,EAAE,MAAM,CAAC;IAClB,mDAAmD;IACnD,MAAM,EAAE,gBAAgB,CAAC;IAEzB,+DAA+D;IAM/D,SAAS,EAAG,cAAc,CAAC;gBAGzB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,kBAAkB;IAW7B,oEAAoE;IACpE,IAAI,KAAK,IAAI,CAAC,GAAG,SAAS,CAEzB;IAID;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;;OAGG;IACH,QAAQ,IAAI,MAAM;CAGnB"}
1
+ {"version":3,"file":"state-prop-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/state-prop/state-prop-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,qBAAqB,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE9D,eAAO,MAAM,UAAU,qBAAqB,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,IACrE,oBAAoB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AAI9C;;;GAGG;AACH,qBACa,kBAAkB,CAC7B,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,CACjD,YAAW,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe;IAE3C,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,SAAS,EAAE,MAAM,CAAC;IAClB,mDAAmD;IACnD,MAAM,EAAE,gBAAgB,CAAC;IAEzB,+DAA+D;IAM/D,SAAS,EAAG,cAAc,CAAC;gBAGzB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,kBAAkB;IAW7B,oEAAoE;IACpE,IAAI,KAAK,IAAI,CAAC,GAAG,SAAS,CAEzB;IAID;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;;OAGG;IACH,QAAQ,IAAI,MAAM;CAGnB"}