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

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 +26 -88
  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 +69 -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,46 +1,6 @@
1
1
  /**
2
- * Configuration options for creating KeyValue model instances.
3
- *
4
- * The namespace option allows you to create isolated key-value stores that don't
5
- * interfere with each other, even when using the same keys. This is essential for
6
- * organizing different types of data and preventing key collisions.
7
- *
8
- * @example Default Namespace
9
- * ```typescript
10
- * // Uses default 'studio' namespace
11
- * const store = KeyValue.instance('my-store')
12
- * .options({})
13
- * .build();
14
- * ```
15
- *
16
- * @example Custom Namespace
17
- * ```typescript
18
- * // Create isolated stores with custom namespaces
19
- * const userStore = KeyValue.instance('user')
20
- * .options({ namespace: 'user-data' })
21
- * .build();
22
- *
23
- * const appStore = KeyValue.instance('app')
24
- * .options({ namespace: 'app-state' })
25
- * .build();
26
- *
27
- * // Same key, different namespaces = no collision
28
- * await userStore.updateState('id', 'user-123');
29
- * await appStore.updateState('id', 'app-456');
30
- * ```
31
- *
32
- * @example Namespace Conventions
33
- * ```typescript
34
- * // Recommended namespace patterns
35
- * const examples: KeyValueOptions[] = [
36
- * { namespace: 'user-preferences' }, // User-specific settings
37
- * { namespace: 'application-state' }, // Global app state
38
- * { namespace: 'feature-flags' }, // Feature toggles
39
- * { namespace: 'session-data' }, // Session-specific data
40
- * { namespace: 'cache-layer' }, // Cached API responses
41
- * { namespace: 'dev-tools' } // Development/debug data
42
- * ];
43
- * ```
2
+ * Options for a {@link KeyValueModel}. Stores with different namespaces keep
3
+ * separate keys.
44
4
  *
45
5
  * @kosService core.key-value
46
6
  * @group KOS Model
@@ -49,10 +9,7 @@
49
9
  */
50
10
  export interface KeyValueOptions {
51
11
  /**
52
- * Namespace for the key-value store to prevent key collisions between different stores.
53
- *
54
- * Defaults to 'studio' if not specified. Choose descriptive namespaces that clearly
55
- * indicate the purpose of the stored data.
12
+ * Namespace of the store on the device.
56
13
  *
57
14
  * @default 'studio'
58
15
  */
@@ -0,0 +1,29 @@
1
+ import { Parser } from 'expr-eval';
2
+ import { KosData } from '../../../core';
3
+ import { ExpressionResult } from './kos-expression-evaluator-model';
4
+ /**
5
+ * An expression parsed once and evaluated against any context object.
6
+ */
7
+ export interface ParsedExpression {
8
+ /** The expression string it was parsed from */
9
+ readonly expression: string;
10
+ /** Evaluate against the given context data; a failure is returned as `error`, not thrown */
11
+ evaluate(contextData: Record<string, unknown>): ExpressionResult;
12
+ }
13
+ /**
14
+ * Parsed expressions keyed by expression string, least recently used evicted
15
+ * first once `limit` is reached.
16
+ */
17
+ export declare class ExpressionParseCache {
18
+ private readonly parser;
19
+ private readonly limit;
20
+ private readonly entries;
21
+ constructor(parser: Parser, limit?: number);
22
+ parse(expression: string): ParsedExpression;
23
+ }
24
+ /**
25
+ * Layers `local` over `base` without copying either: a key `local` owns wins,
26
+ * every other key reads through to `base`.
27
+ */
28
+ export declare const layerContext: (base: KosData<Record<string, unknown>>, local: Record<string, unknown>) => Record<string, unknown>;
29
+ //# sourceMappingURL=expression-parse-cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expression-parse-cache.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-expression-evaluator/expression-parse-cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,+CAA+C;IAC/C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,4FAA4F;IAC5F,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,gBAAgB,CAAC;CAClE;AA6BD;;;GAGG;AACH,qBAAa,oBAAoB;IAI7B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAuC;gBAG5C,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,MAA0B;IAGpD,KAAK,CAAC,UAAU,EAAE,MAAM,GAAG,gBAAgB;CAkB5C;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACtC,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC7B,MAAM,CAAC,MAAM,EAAE,OAAO,CAUrB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export type { KosExpressionEvaluatorModel, KosExpressionEvaluatorModelImpl, ExpressionResult, NamedExpression, } from './kos-expression-evaluator-model';
2
+ export type { ParsedExpression } from './expression-parse-cache';
2
3
  export type * from './types';
3
4
  export declare const KosExpressionEvaluator: import('../../..').KosModelRegistrationType<import('./kos-expression-evaluator-model').KosExpressionEvaluatorModel<string>, import('./types').KosExpressionEvaluatorOptions>;
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-expression-evaluator/index.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,2BAA2B,EAC3B,+BAA+B,EAC/B,gBAAgB,EAChB,eAAe,GAChB,MAAM,kCAAkC,CAAC;AAC1C,mBAAmB,SAAS,CAAC;AAE7B,eAAO,MAAM,sBAAsB,8KACW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-expression-evaluator/index.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,2BAA2B,EAC3B,+BAA+B,EAC/B,gBAAgB,EAChB,eAAe,GAChB,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,mBAAmB,SAAS,CAAC;AAE7B,eAAO,MAAM,sBAAsB,8KACW,CAAC"}
@@ -2,20 +2,11 @@ import { KosModelRegistrationType } from '../../../core';
2
2
  import { IKosDataModel, KosCreationContext } from '../../../core/core/kosModel';
3
3
  import { IKosIdentifiable } from '../../../core/core/types';
4
4
  import { PublicModelInterface } from '../../../core/types';
5
+ import { ParsedExpression } from './expression-parse-cache';
5
6
  import { KosExpressionEvaluatorOptions } from './types';
6
7
  export declare const MODEL_TYPE = "kos-expression-evaluator-model";
7
8
  /**
8
- * Result of evaluating an expression, containing either a successful value or error details.
9
- *
10
- * @example
11
- * ```typescript
12
- * const result = evaluator.getExpressionValue('myExpression');
13
- * if (result?.error) {
14
- * console.error(`Expression error: ${result.error}`);
15
- * } else {
16
- * console.log(`Result: ${result?.value}`);
17
- * }
18
- * ```
9
+ * Result of evaluating an expression: the value, or the error message when evaluation failed.
19
10
  */
20
11
  export interface ExpressionResult {
21
12
  /** The computed value of the expression, or undefined if evaluation failed */
@@ -28,37 +19,37 @@ export interface NamedExpression {
28
19
  name: string;
29
20
  /** The expression string (JavaScript-like syntax) */
30
21
  expression: string;
31
- /** Getter that returns the cached result */
22
+ /** The current result, re-evaluated only after a context value it read changes */
32
23
  get result(): ExpressionResult;
33
- /** Method to evaluate the expression with given context data */
24
+ /** Evaluate the expression against the given context data */
34
25
  evaluate(contextData: Record<string, unknown>): ExpressionResult;
35
- /** Method to update the cached result */
26
+ /**
27
+ * @deprecated The result is derived from the context data; this has no effect.
28
+ */
36
29
  updateResult(result: ExpressionResult): void;
37
30
  }
38
31
  /**
39
- * KOS Expression Evaluator Model - Reactive expression evaluation with dynamic context and type-safe named expressions.
32
+ * Evaluates named expressions against context data and keeps their results
33
+ * current. Each expression's result is a computed over the context values it
34
+ * reads: it re-evaluates only after one of those values changes, and only when
35
+ * read. A `kosComponent` or model effect that reads `results[name]` re-renders
36
+ * when that expression's result changes, and not for any other expression.
40
37
  *
41
- * This model provides a reactive expression evaluation system that automatically re-evaluates
42
- * expressions when their context data changes. Perfect for business rules, computed values,
43
- * and conditional logic that needs to stay synchronized with changing data.
38
+ * `evaluateWithLocalContext` evaluates an expression against the context with
39
+ * a local object layered over it, such as a list row's item, and
40
+ * `parseExpression` returns a cached parse to evaluate against any object.
44
41
  *
45
- * ## Key Features
46
- * - **Automatic reactivity** - Expressions re-evaluate when dependencies change thanks to KOS reactive patterns
47
- * - **Type safety** - Generic type parameter provides compile-time checking for expression names
48
- * - **Efficient updates** - Only affected expressions recalculate when their data dependencies change
49
- * - **Synchronous access** - Results available immediately via getters
50
- * - **Error handling** - Expressions with runtime errors are handled gracefully
51
- * - **KOS model integration** - Add any KOS model to context for fully reactive expressions
42
+ * Expressions use `expr-eval` syntax, plus the built-in functions `exists(value)`
43
+ * and `isEmpty(value)` and any `customFunctions` passed in the options. The type
44
+ * parameter narrows the accepted expression names.
52
45
  *
53
46
  * @interface
54
- * @example Basic Usage
47
+ * @example
55
48
  * ```typescript
56
- * const evaluator = KosExpressionEvaluatorModel.instance('my-evaluator').build();
57
- *
58
- * evaluator.setContextData({ temperature: 72, humidity: 45 });
59
- * evaluator.addExpression('isComfortable', 'temperature >= 68 && temperature <= 78');
60
- *
61
- * console.log(evaluator.results.isComfortable?.value); // true
49
+ * const evaluator = KosExpressionEvaluator.instance("my-evaluator").options({}).build();
50
+ * evaluator.setContextData({ temperature: 72 });
51
+ * evaluator.addExpression("isComfortable", "temperature >= 68 and temperature <= 78");
52
+ * evaluator.results.isComfortable?.value; // true
62
53
  * ```
63
54
  *
64
55
  * @group KOS Model
@@ -77,7 +68,8 @@ export declare class KosExpressionEvaluatorModelImpl<T extends string = string>
77
68
  private parser;
78
69
  private _data;
79
70
  private _expressions;
80
- private _results;
71
+ private _parseCache;
72
+ private _resultsView;
81
73
  private _contextRevision;
82
74
  constructor(modelId: string, options: KosExpressionEvaluatorOptions, context: KosCreationContext);
83
75
  /**
@@ -88,120 +80,96 @@ export declare class KosExpressionEvaluatorModelImpl<T extends string = string>
88
80
  get data(): Record<string, unknown>;
89
81
  get contextRevision(): number;
90
82
  /**
91
- * Replace the entire context data with new values. All expressions will
92
- * automatically re-evaluate against the new context.
83
+ * Replace the context data. An expression re-evaluates only if a value it
84
+ * read changed.
93
85
  *
94
86
  * @param newData - Complete new context data to replace existing data
95
- *
96
- * @example
97
- * ```typescript
98
- * evaluator.setContextData({ temperature: 75, humidity: 40 });
99
- * ```
100
87
  */
101
88
  setContextData(newData: Record<string, unknown>): void;
102
89
  /**
103
- * Update a single value in the context data. All expressions using this
104
- * value will automatically re-evaluate.
90
+ * Set one top-level context value.
105
91
  *
106
92
  * @param key - The context data key to update
107
93
  * @param value - The new value to set
108
- *
109
- * @example
110
- * ```typescript
111
- * evaluator.updateContextValue('temperature', 85);
112
- * ```
113
94
  */
114
95
  updateContextValue(key: string, value: unknown): void;
115
96
  /**
116
- * Update a nested property in the context data using dot notation.
117
- * This method safely updates nested properties without replacing the entire object structure.
97
+ * Set a nested context value by dot-separated path, such as
98
+ * `sensors.humidity`, creating intermediate objects as needed.
118
99
  *
119
- * @param path - Dot-separated path to the nested property (e.g., 'sensors.humidity', 'config.thresholds.temp')
100
+ * @param path - Dot-separated path to the nested property
120
101
  * @param value - The new value to set at the nested path
121
- *
122
- * @example
123
- * ```typescript
124
- * evaluator.updateNestedValue('sensors.humidity', 60);
125
- * ```
126
102
  */
127
103
  updateNestedValue(path: string, value: unknown): void;
128
104
  /**
129
- * Add a KOS model to the evaluation context. The model's observable properties
130
- * will be accessible via dotted notation and expressions will automatically
131
- * re-evaluate when the model's data changes.
105
+ * Add a KOS model to the context under `key`. Expressions read its properties
106
+ * with dotted notation (`sensor.temperature`) and re-evaluate when they change.
132
107
  *
133
108
  * @param key - The context key to store the model under
134
- * @param model - Any KOS model instance (must be observable)
135
- *
136
- * @example
137
- * ```typescript
138
- * const sensorModel = SensorModel.instance('main-sensor').build();
139
- * evaluator.addModelToContext('sensor', sensorModel);
140
- * evaluator.addExpression('isCritical', 'sensor.temperature > 80');
141
- * ```
109
+ * @param model - KOS model instance
142
110
  */
143
111
  addModelToContext(key: string, model: unknown): void;
144
112
  /**
145
- * Add a named expression that will be automatically evaluated against context data.
146
- * The expression will re-evaluate whenever its dependencies in the context change.
113
+ * Add a named expression. It evaluates on first read. Adding a name that
114
+ * exists replaces that expression.
147
115
  *
148
- * @param name - Unique identifier for this expression (type-safe when using generic)
149
- * @param expressionString - JavaScript-like expression string
116
+ * @param name - Unique identifier for this expression
117
+ * @param expressionString - Expression in `expr-eval` syntax
150
118
  * @throws {Error} If the expression has invalid syntax
151
- *
152
- * @example
153
- * ```typescript
154
- * evaluator.addExpression('isHot', 'temperature > 80');
155
- * ```
156
119
  */
157
120
  addExpression(name: T, expressionString: string): void;
121
+ /**
122
+ * Remove a named expression and release the context values it tracks.
123
+ *
124
+ * @param name - The expression name
125
+ * @returns Whether an expression was removed
126
+ */
158
127
  removeExpression(name: T): boolean;
159
128
  getExpression(name: T): NamedExpression | undefined;
160
129
  getExpressionValue(name: T): ExpressionResult | undefined;
161
130
  /**
162
- * Get the cached result of an expression without triggering re-evaluation.
163
- * This is useful for dependency tracking in effects where you want to avoid
164
- * creating reactive chains through the expression evaluation.
165
- *
166
- * @param name - The expression name to get the cached result for
167
- * @returns The last cached result, or undefined if expression doesn't exist
131
+ * The result of an expression without a warning when it does not exist. It
132
+ * re-evaluates only if a context value it read changed since the last
133
+ * evaluation, and a reader tracks the result, not the expression's inputs.
168
134
  *
169
- * @example
170
- * ```typescript
171
- * const cached = evaluator.getCachedExpressionValue('myExpression');
172
- * ```
135
+ * @param name - The expression name to get the result for
136
+ * @returns The result, or undefined if expression doesn't exist
173
137
  */
174
138
  getCachedExpressionValue(name: T): ExpressionResult | undefined;
175
139
  get expressions(): NamedExpression[];
176
140
  get expressionNames(): T[];
177
- get results(): Record<T, ExpressionResult>;
178
141
  /**
179
- * Force re-evaluation of all expressions and update cached results.
180
- * This is called by the effect when context data changes.
142
+ * Every expression's result by name. Reading `results[name]` evaluates only
143
+ * that expression, and only if a context value it read changed.
181
144
  */
182
- private evaluateAllExpressions;
145
+ get results(): Record<T, ExpressionResult>;
183
146
  /**
184
- * Evaluate a specific expression and update the cached result if it changed.
147
+ * Parse an expression, or return the cached parse of the same string, to
148
+ * evaluate against any context object.
149
+ *
150
+ * @param expressionString - Expression in `expr-eval` syntax
151
+ * @returns The parsed expression
152
+ * @throws {Error} If the expression has invalid syntax
185
153
  */
186
- private evaluateExpression;
154
+ parseExpression(expressionString: string): ParsedExpression;
187
155
  /**
188
- * Internal method to update the results object when expression values change.
189
- * This is called by ReactiveExpression when its value changes.
190
- * ObservableData handles dynamic properties automatically with MobX atoms.
156
+ * Evaluate an expression against the context data with `localContext`
157
+ * layered over it, without copying either. A key in `localContext` wins over
158
+ * the same context key. Called from a reactive render, the reader tracks only
159
+ * the values the expression read.
160
+ *
161
+ * @param expressionString - Expression in `expr-eval` syntax
162
+ * @param localContext - Values that apply to this evaluation only, such as a row's item
163
+ * @returns The result; a syntax or evaluation failure is returned as `error`
191
164
  */
192
- private updateResult;
165
+ evaluateWithLocalContext(expressionString: string, localContext?: Record<string, unknown>): ExpressionResult;
166
+ private createResultsView;
193
167
  /**
194
- * Create an anonymous reactive expression and return its generated ID.
195
- * The expression becomes fully reactive and can be accessed via the returned ID.
196
- *
197
- * @param expressionString - JavaScript-like expression string
198
- * @returns Generated UUID that can be used to access the expression via `getExpressionValue(id)` or `results[id]`
168
+ * Add an expression under a generated id and return the id, for use with
169
+ * `getExpressionValue(id)` or `results[id]`.
199
170
  *
200
- * @example
201
- * ```typescript
202
- * const tempCheckId = evaluator.createExpression('temperature > 75');
203
- * const result = evaluator.getExpressionValue(tempCheckId);
204
- * ```
171
+ * @param expressionString - Expression in `expr-eval` syntax
172
+ * @returns Generated expression id
205
173
  */
206
174
  createExpression(expressionString: string): string;
207
175
  }
@@ -1 +1 @@
1
- {"version":3,"file":"kos-expression-evaluator-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-expression-evaluator/kos-expression-evaluator-model.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"kos-expression-evaluator-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-expression-evaluator/kos-expression-evaluator-model.ts"],"names":[],"mappings":"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"}
@@ -1,15 +1,5 @@
1
1
  /**
2
- * KOS Expression Evaluator Services
3
- *
4
- * The Expression Evaluator model is a purely computational model that performs
5
- * local expression evaluation against context data. It does not require any
6
- * HTTP services or external API calls.
7
- *
8
- * All functionality is self-contained within the model using:
9
- * - expr-eval library for expression parsing and evaluation
10
- * - KOS reactive patterns for automatic re-evaluation
11
- * - Local context data storage
12
- *
13
- * No external services are needed.
2
+ * The expression evaluator runs entirely in the browser with `expr-eval` and
3
+ * calls no backend services.
14
4
  */
15
5
  //# sourceMappingURL=kos-expression-evaluator-services.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kos-expression-evaluator-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/kos-ui-sdk/src/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
1
+ {"version":3,"file":"kos-expression-evaluator-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/kos-ui-sdk/src/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -9,54 +9,14 @@ import { KosLogManagerOptions, LogLevelDescriptor, LogOverride } from './types';
9
9
  */
10
10
  export declare const MODEL_TYPE = "kos-log-manager-model";
11
11
  /**
12
- * KOS Log Manager Model - Centralized runtime log level management for the entire KOS system.
12
+ * Applies backend log level overrides to the UI's loggers at runtime.
13
13
  *
14
- * This singleton model provides comprehensive control over logging behavior across the KOS UI SDK
15
- * and connected applications. It manages dynamic log level overrides, responds to real-time
16
- * configuration changes, and provides both REST API and WebSocket interfaces for log management.
17
- * Essential for debugging, performance monitoring, and production troubleshooting.
18
- *
19
- * ## Key Features
20
- * - **Runtime Log Level Control** - Dynamically adjust log levels without application restart
21
- * - **Hierarchical Logger Management** - Apply overrides to parent loggers and all children
22
- * - **Real-time Configuration** - WebSocket-based updates propagate instantly across clients
23
- * - **REST API Integration** - Query and manage logger configurations via HTTP endpoints
24
- * - **Override Persistence** - Log overrides are maintained across sessions and page refreshes
25
- * - **Multi-Node Support** - Coordinate logging across different KOS device nodes
26
- *
27
- * ## Topic-Based Reactivity
28
- * The model listens to these KOS topics for real-time log management:
29
- * - **`/kos/logs/override/add/*`** - Fired when new log level overrides are created
30
- * - **`/kos/logs/override/remove/*`** - Fired when log level overrides are removed
31
- *
32
- * Both topics support wildcard capture for node type targeting, enabling precise
33
- * control over which device nodes receive logging configuration changes.
34
- *
35
- * ## Architecture Integration
36
- * The log manager integrates with the broader KOS logging ecosystem:
37
- * - **KosLog System** - Manages underlying logger instances and level settings
38
- * - **LogStreamModel** - Streams managed by this model's log level policies
39
- * - **LogBlockModel** - Individual log entries governed by level settings
40
- * - **REST Endpoints** - Provides `/api/kos/ui/loggers` for external access
41
- *
42
- * ## Common Use Cases
43
- * - **Development Debugging** - Increase log verbosity for specific components during development
44
- * - **Production Troubleshooting** - Temporarily enable debug logging to diagnose issues
45
- * - **Performance Monitoring** - Adjust log levels to reduce overhead in production
46
- * - **System Administration** - Centrally manage logging across distributed KOS deployments
47
- * - **Dynamic Configuration** - Change logging behavior without service interruption
48
- * - **Selective Logging** - Enable detailed logging for specific modules while keeping others quiet
14
+ * On load the model fetches the overrides of type `UI` and applies each to the
15
+ * named logger and every logger whose name starts with it. It then follows the
16
+ * `/kos/logs/override/add/*` and `/kos/logs/override/remove/*` topics, and
17
+ * serves the current logger levels at `GET /api/kos/ui/loggers`.
49
18
  *
50
19
  * @interface
51
- * @example Basic Usage
52
- * ```typescript
53
- * const logManager = KosLogManager.instance('log-control').build();
54
- *
55
- * // Get all current logger configurations via REST API
56
- * const loggers = await logManager.getAllLoggers();
57
- * console.log(`Managing ${loggers.length} loggers`);
58
- * ```
59
- *
60
20
  * @group KOS Model
61
21
  * @category Device Logging
62
22
  * @useDeclaredType
@@ -85,7 +45,8 @@ export declare class KosLogManagerModelImpl implements IKosDataModel, IKosIdenti
85
45
  */
86
46
  private resolveLoggers;
87
47
  /**
88
- * REST API endpoint to retrieve all logger configurations.
48
+ * Every registered logger and its effective level, served at
49
+ * `GET /api/kos/ui/loggers`.
89
50
  * @get /api/kos/ui/loggers
90
51
  * @param _req - The incoming request (unused)
91
52
  * @param res - The response object to send logger data
@@ -1 +1 @@
1
- {"version":3,"file":"kos-log-manager-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-log-manager/kos-log-manager-model.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,WAAW,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAIL,KAAK,uBAAuB,EAC7B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EAElB,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,UAAU,0BAA0B,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,sBAAsB,CAAC,CAAC;AA2B9E;;;GAGG;AACH,qBACa,sBAAuB,YAAW,aAAa,EAAE,gBAAgB;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IAEjC,OAAO,CAAC,UAAU,CAAiC;gBAEjD,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,kBAAkB;IAU7B,WAAW,CAAC,QAAQ,EAAE,oBAAoB,GAAG,IAAI;IAMjD;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAqBtB;;;;;;OAMG;IAEG,aAAa,CACjB,IAAI,CAAC,EAAE,UAAU,EACjB,GAAG,CAAC,EAAE,WAAW,GAChB,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAOhC;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAwBpB;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAsBtB;;;;;OAKG;IAMH,mBAAmB,CACjB,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,uBAAuB,CAAC,GAAG,CAAC;IAWvC;;;;OAIG;IAMH,qBAAqB,CAAC,QAAQ,EAAE,WAAW;IAK3C;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAwB5B"}
1
+ {"version":3,"file":"kos-log-manager-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-log-manager/kos-log-manager-model.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,WAAW,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAIL,KAAK,uBAAuB,EAC7B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EAElB,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,UAAU,0BAA0B,CAAC;AAElD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,sBAAsB,CAAC,CAAC;AA2B9E;;;GAGG;AACH,qBACa,sBAAuB,YAAW,aAAa,EAAE,gBAAgB;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IAEjC,OAAO,CAAC,UAAU,CAAiC;gBAEjD,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,kBAAkB;IAU7B,WAAW,CAAC,QAAQ,EAAE,oBAAoB,GAAG,IAAI;IAMjD;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAqBtB;;;;;;;OAOG;IAEG,aAAa,CACjB,IAAI,CAAC,EAAE,UAAU,EACjB,GAAG,CAAC,EAAE,WAAW,GAChB,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAOhC;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAwBpB;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAsBtB;;;;;OAKG;IAMH,mBAAmB,CACjB,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,uBAAuB,CAAC,GAAG,CAAC;IAWvC;;;;OAIG;IAMH,qBAAqB,CAAC,QAAQ,EAAE,WAAW;IAK3C;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAwB5B"}
@@ -2,90 +2,15 @@ import { SingletonKosModelRegistrationFactory } from '../../../core/core/registr
2
2
  import { KosLogManagerOptions } from './types';
3
3
  import { KosLogManagerModel } from './kos-log-manager-model';
4
4
  /**
5
- * # KosLogManager
6
- *
7
- * The registration bean includes convenience methods for creating and working with KosLogManagerModel instances.
8
-
9
- *
10
- * ## type
11
- * The type property is a string that identifies the model type.
12
- * 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
13
- * used when declaring dependencies on models.
14
- *
15
- * @example
16
- * ```typescript
17
- *
18
- * @kosDependency({modelType: KosLogManager.type, id: "kosLogManagerId"})
19
- * private kosLogManagerModel: KosLogManagerModel;
20
- * ```
21
- *
22
- *
23
- * ## factory
24
- *
25
- * The factory method creates a factory function that can be used to create new KosLogManagerModel instances.
26
- *
27
-
28
- * As this is a singleton model, the factory function accepts the model options as its argument.
29
- *
30
- * If a model with the same model type already exists, the factory function will return the existing model. The options will be ignored
31
- * in this case and the existing model will be returned in its current state.
32
- *
33
- * @example
34
- * ```typescript
35
- * const model = KosLogManager.factory({
36
- * // Add option data
37
- * });
38
-
39
- * ```
40
-
41
-
42
- *
43
- * ## predicate
44
- *
45
- * [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 KosLogManagerModel.
46
- *
47
- * @example
48
- * ```typescript
49
- *
50
- * const model: IKosDataModel = ...; // some model
51
- *
52
- * if (KosLogManager.predicate(model)) {
53
- * // if the function evaluates to true, the model is narrowed down to KosLogManagerModel
54
- * // and the compiler will know that the model has the KosLogManagerModel interface
55
- * model.updateAvailability(false);
56
-
57
- * }
58
- * ```
59
- *
60
- * ## registration
61
- *
62
- * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
63
- * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
5
+ * Registration for {@link KosLogManagerModel}, a singleton model.
64
6
  *
7
+ * `type` identifies the model in the registry and in `@kosDependency` declarations.
8
+ * `register()` adds the model to the registry. `instance()` builds or returns the single instance; later calls ignore the options.
65
9
  *
66
10
  * @example
67
- *
68
- * In an application registration file you can declare the model registration as follows:
69
- *
70
- * **registration.ts**
71
11
  * ```typescript
72
- * import { KosLogManager } from "@kos-ui/project-models";
73
- * import { KosModelRegistry } from "@kosdev-code/kos-dispense-sdk";
74
- *
75
- * import { initKosProvider } from "@kosdev-code/kos-ui-sdk";
76
- *
77
- * KosModelRegistry.dispense
78
- * .models()
79
- * .model(KosLogManager);
12
+ * const model = KosLogManager.instance().options(options).build();
80
13
  * ```
81
- *
82
- * ## registration.singleton
83
-
84
- * The kosLogManager model is a singleton model. This means that each time the factory function is called , the same instance will be returned.
85
- * If the model does not yet exist, it will be created passing in the provided options to initialize it.
86
- *
87
- * Singleton models don't require an ID as they will use the model type as their ID to guarantee uniqueness throughout the system.
88
-
89
- * */
14
+ */
90
15
  export declare const KosLogManager: SingletonKosModelRegistrationFactory<KosLogManagerModel, KosLogManagerOptions>;
91
16
  //# sourceMappingURL=kos-log-manager-registration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kos-log-manager-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-log-manager/kos-log-manager-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAGL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqFK;AACL,eAAO,MAAM,aAAa,gFAMxB,CAAC"}
1
+ {"version":3,"file":"kos-log-manager-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-log-manager/kos-log-manager-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAGL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,gFAMxB,CAAC"}