@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
@@ -55,18 +55,8 @@ declare class KosConfigPropertyImpl implements KosConfigProperty {
55
55
  */
56
56
  get schemaFormat(): string;
57
57
  /**
58
- * Gets available options for enumerated properties.
59
- *
60
- * @returns Array of options with label/value pairs for dropdowns and selection controls
61
- *
62
- * @example Get Property Options
63
- * ```typescript
64
- * const options = statusProperty.options;
65
- * // Returns: [
66
- * // { label: "Active", value: "active" },
67
- * // { label: "Inactive", value: "inactive" }
68
- * // ]
69
- * ```
58
+ * Options for an enumerated property: the `optionsExpander` when set, otherwise
59
+ * the schema's enum values or the values derived from its schema.
70
60
  */
71
61
  get options(): OptionsType[];
72
62
  convertUnit(converter?: UnitConverter, defaultSystem?: string, defaultMeasure?: string): {
@@ -83,25 +73,15 @@ declare class KosConfigPropertyImpl implements KosConfigProperty {
83
73
  };
84
74
  };
85
75
  /**
86
- * Sets the configuration property value with automatic unit conversion.
87
- *
88
- * @param value - The new value to set (in regional units)
76
+ * Writes the value, given in display units, through {@link updateProperty}.
89
77
  *
90
- * @example Update Property Value
91
- * ```typescript
92
- * pumpRateProperty.value = 1.2; // Sets rate to 1.2 mL/s (converted to backend units)
93
- * ```
78
+ * @param value - The new value in display units
94
79
  */
95
80
  set value(value: ConfigPropertyTypes);
96
81
  /**
97
- * Gets the configuration property value converted to regional units.
82
+ * The value converted to display units.
98
83
  *
99
- * @returns Property value in regional display units
100
- *
101
- * @example Get Property Value
102
- * ```typescript
103
- * const currentRate = pumpRateProperty.value; // Gets rate in mL/s (regional units)
104
- * ```
84
+ * @returns Property value in display units
105
85
  */
106
86
  get value(): ConfigPropertyTypes;
107
87
  /**
@@ -117,16 +97,9 @@ declare class KosConfigPropertyImpl implements KosConfigProperty {
117
97
  */
118
98
  get significantValue(): unknown;
119
99
  /**
120
- * Gets the previous property value before the last update.
121
- *
122
- * @returns Previous property value in regional display units
100
+ * The value before the last update, in display units.
123
101
  *
124
- * @example Track Value Changes
125
- * ```typescript
126
- * const oldValue = pumpRateProperty.previousValue; // Previous rate value
127
- * const newValue = pumpRateProperty.value; // Current rate value
128
- * console.log(`Rate changed from ${oldValue} to ${newValue}`);
129
- * ```
102
+ * @returns Previous property value in display units
130
103
  */
131
104
  get previousValue(): {};
132
105
  getValue(current: boolean): {};
@@ -135,27 +108,15 @@ declare class KosConfigPropertyImpl implements KosConfigProperty {
135
108
  */
136
109
  activate(): Promise<void>;
137
110
  /**
138
- * Gets the formatted display string with units and localization.
111
+ * The value formatted with its unit for the active locale, such as `"72.5 °F"`.
139
112
  *
140
- * @returns Localized string representation with appropriate units (e.g., "1.2 mL/s", "150 °F")
141
- *
142
- * @example Display Formatted Value
143
- * ```typescript
144
- * const display = temperatureProperty.displayValue; // "72.5 °F"
145
- * const rate = pumpRateProperty.displayValue; // "1.2 mL/s"
146
- * ```
113
+ * @returns Localized string representation with units
147
114
  */
148
115
  get displayValue(): string;
149
116
  /**
150
- * Gets the unit of measure for the property value.
151
- *
152
- * @returns Unit string (e.g., "°F", "mL/s", "seconds") or empty string for unitless properties
117
+ * Display unit of the value, such as `"°F"` or `"mL"`.
153
118
  *
154
- * @example Get Property Unit
155
- * ```typescript
156
- * const unit = temperatureProperty.unit; // "°F" or "°C" based on regional settings
157
- * const rateUnit = pumpRateProperty.unit; // "mL/s"
158
- * ```
119
+ * @returns Unit string, or an empty string for unitless properties
159
120
  */
160
121
  get unit(): string | undefined;
161
122
  /**
@@ -170,18 +131,10 @@ declare class KosConfigPropertyImpl implements KosConfigProperty {
170
131
  getFormatterOptions(converter?: ConfigPropConverter): Intl.NumberFormat | null;
171
132
  private getConverter;
172
133
  /**
173
- * Updates the configuration property value with automatic unit conversion.
174
- *
175
- * @param value - The new value to set (in regional display units)
176
- *
177
- * @example Update Property
178
- * ```typescript
179
- * // Set temperature in Fahrenheit (regional unit)
180
- * await temperatureProperty.updateProperty(75.5);
134
+ * Converts the value from display units to backend units and writes it to the
135
+ * bean.
181
136
  *
182
- * // Set pump rate in mL/s (regional unit)
183
- * await pumpRateProperty.updateProperty(1.2);
184
- * ```
137
+ * @param value - The new value in display units
185
138
  */
186
139
  updateProperty(value: ConfigPropertyTypes): Promise<void>;
187
140
  }
@@ -1 +1 @@
1
- {"version":3,"file":"config-bean-prop-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/config-bean-prop/config-bean-prop-model.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAS3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAKpD,OAAO,KAAK,EACV,qBAAqB,EACrB,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,WAAW,EACZ,MAAM,SAAS,CAAC;AAuDjB;;;GAGG;AACH,cACM,qBAAsB,YAAW,iBAAiB;IACtD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAG5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAM9B,UAAU,EAAG,eAAe,CAAC;IAW7B,IAAI,EAAG,gBAAgB,CAAC;gBAEZ,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB;IAe3D;;;;;;;QAOI;IACJ,2BAA2B,CACzB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM;IAgBf;;;;;;;;;QASI;IACJ,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAW5D;;;;OAIG;IACH,IAAI,UAAU,iEAOb;IAED;;;;OAIG;IACH,IAAI,YAAY,WAMf;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,OAAO,kBAwBV;IAED,WAAW,CACT,SAAS,CAAC,EAAE,aAAa,EACzB,aAAa,CAAC,EAAE,MAAM,EACtB,cAAc,CAAC,EAAE,MAAM;;;;;IAazB,iBAAiB;;;;;;;;IAajB;;;;;;;;;OASG;IACH,IAAI,KAAK,CAAC,KAAK,EAAE,mBAAmB,EAEnC;IAED;;;;;;;;;OASG;IACH,IAAI,KAAK,IAdQ,mBAAmB,CAgBnC;IAED;;;;OAIG;IACH,IAAI,QAAQ,YAEX;IAED;;;;OAIG;IACH,IAAI,gBAAgB,YA8BnB;IAED;;;;;;;;;;;OAWG;IACH,IAAI,aAAa,OAEhB;IAED,QAAQ,CAAC,OAAO,EAAE,OAAO;IAczB;;OAEG;IACG,QAAQ;IAId;;;;;;;;;;OAUG;IACH,IAAI,YAAY,WA2Bf;IAED;;;;;;;;;;OAUG;IACH,IAAI,IAAI,uBAWP;IAED;;;;OAIG;IACH,IAAI,cAAc,uEAMjB;IAED,OAAO,CAAC,oBAAoB;IAQ5B,OAAO,CAAC,sBAAsB;IAW9B,OAAO,CAAC,cAAc;IAgBtB,mBAAmB,CAAC,SAAS,CAAC,EAAE,mBAAmB;IAuDnD,OAAO,CAAC,YAAY;IA6DpB;;;;;;;;;;;;;OAaG;IACG,cAAc,CAAC,KAAK,EAAE,mBAAmB;CAgBhD;AAED,QAAA,MAAM,YAAY;;;;;;;;8BA1mBM,+BACvB,EAED,iBAAiB;CAknBhB,CAAC;AACF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"config-bean-prop-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/config-bean-prop/config-bean-prop-model.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAS3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAKpD,OAAO,KAAK,EACV,qBAAqB,EACrB,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,WAAW,EACZ,MAAM,SAAS,CAAC;AAuDjB;;;GAGG;AACH,cACM,qBAAsB,YAAW,iBAAiB;IACtD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAG5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAM9B,UAAU,EAAG,eAAe,CAAC;IAW7B,IAAI,EAAG,gBAAgB,CAAC;gBAEZ,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB;IAe3D;;;;;;;QAOI;IACJ,2BAA2B,CACzB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM;IAgBf;;;;;;;;;QASI;IACJ,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAW5D;;;;OAIG;IACH,IAAI,UAAU,iEAOb;IAED;;;;OAIG;IACH,IAAI,YAAY,WAMf;IAED;;;OAGG;IACH,IAAI,OAAO,kBAwBV;IAED,WAAW,CACT,SAAS,CAAC,EAAE,aAAa,EACzB,aAAa,CAAC,EAAE,MAAM,EACtB,cAAc,CAAC,EAAE,MAAM;;;;;IAazB,iBAAiB;;;;;;;;IAajB;;;;OAIG;IACH,IAAI,KAAK,CAAC,KAAK,EAAE,mBAAmB,EAEnC;IAED;;;;OAIG;IACH,IAAI,KAAK,IATQ,mBAAmB,CAWnC;IAED;;;;OAIG;IACH,IAAI,QAAQ,YAEX;IAED;;;;OAIG;IACH,IAAI,gBAAgB,YA8BnB;IAED;;;;OAIG;IACH,IAAI,aAAa,OAEhB;IAED,QAAQ,CAAC,OAAO,EAAE,OAAO;IAczB;;OAEG;IACG,QAAQ;IAId;;;;OAIG;IACH,IAAI,YAAY,WA2Bf;IAED;;;;OAIG;IACH,IAAI,IAAI,uBAWP;IAED;;;;OAIG;IACH,IAAI,cAAc,uEAMjB;IAED,OAAO,CAAC,oBAAoB;IAQ5B,OAAO,CAAC,sBAAsB;IAW9B,OAAO,CAAC,cAAc;IAgBtB,mBAAmB,CAAC,SAAS,CAAC,EAAE,mBAAmB;IAuDnD,OAAO,CAAC,YAAY;IA6DpB;;;;;OAKG;IACG,cAAc,CAAC,KAAK,EAAE,mBAAmB;CAgBhD;AAED,QAAA,MAAM,YAAY;;;;;;;;8BA3jBM,+BACvB,EAED,iBAAiB;CAmkBhB,CAAC;AACF,eAAe,YAAY,CAAC"}
@@ -3,27 +3,18 @@ import { SchemaNodeType, SchemaOptionsType } from '../../../services/config-bean
3
3
  import { IKosDataModel } from '../../core';
4
4
  import { ConfigPropertyTypes } from '../../types';
5
5
  /**
6
- * Unit conversion configuration for KosConfigProperty instances.
6
+ * Unit conversion for a {@link KosConfigProperty}: the units the backend stores
7
+ * and the units shown to the user.
7
8
  *
8
- * Defines how configuration property values should be converted between backend
9
- * storage units (typically SI) and regional display units. The converter enables
10
- * automatic unit conversion based on device region while maintaining precision.
9
+ * When `from.system` is omitted the backend value is treated as SI; when `to`
10
+ * omits a system or unit, the region's default unit system and its default unit
11
+ * for the measure are used.
11
12
  *
12
- * @example Temperature Conversion
13
+ * @example
13
14
  * ```typescript
14
- * const temperatureConverter: ConfigPropConverter = {
15
- * measure: 'temperature',
16
- * from: { unit: 'kelvin', system: 'si' }, // Backend storage
17
- * to: { system: 'auto' } // Auto-detect regional display
18
- * };
19
- * ```
20
- *
21
- * @example Volume Conversion with Specific Units
22
- * ```typescript
23
- * const volumeConverter: ConfigPropConverter = {
24
- * measure: 'volume',
25
- * from: { unit: 'liter' }, // Backend in liters
26
- * to: { unit: 'fluid-ounce', system: 'imperial' } // Force US fluid ounces
15
+ * const converter: ConfigPropConverter = {
16
+ * measure: "volume",
17
+ * from: { unit: "milliliter" },
27
18
  * };
28
19
  * ```
29
20
  *
@@ -32,49 +23,19 @@ import { ConfigPropertyTypes } from '../../types';
32
23
  * @category Configuration
33
24
  */
34
25
  export interface ConfigPropConverter {
35
- /**
36
- * The physical measure being converted (temperature, volume, pressure, etc.).
37
- * This helps the system understand what type of conversion to perform.
38
- */
26
+ /** Physical measure being converted, such as `temperature` or `volume`. */
39
27
  measure?: string;
40
28
 
41
- /**
42
- * Source unit configuration (typically backend storage units).
43
- * Defines the unit system and specific unit that values are stored in.
44
- */
29
+ /** Units the backend stores the value in. */
45
30
  from?: UnitConverter;
46
31
 
47
- /**
48
- * Target unit configuration (display units).
49
- * Defines how values should be displayed to users, including regional preferences.
50
- */
32
+ /** Units the value is displayed in. */
51
33
  to?: UnitConverter;
52
34
  }
53
35
 
54
36
  /**
55
- * Formatting options for numeric configuration property display values.
56
- *
57
- * Supports both static formatting options and dynamic formatting based on unit system.
58
- * Built on top of the Intl.NumberFormat API for internationalization support.
59
- *
60
- * @example Static Formatting Options
61
- * ```typescript
62
- * const staticFormatter: FormatOptions = {
63
- * style: 'unit',
64
- * unit: 'celsius',
65
- * maximumFractionDigits: 1
66
- * };
67
- * ```
68
- *
69
- * @example Dynamic System-Based Formatting
70
- * ```typescript
71
- * const dynamicFormatter: FormatOptions = (system: string) => {
72
- * if (system === 'imperial') {
73
- * return { style: 'unit', unit: 'fahrenheit', maximumFractionDigits: 0 };
74
- * }
75
- * return { style: 'unit', unit: 'celsius', maximumFractionDigits: 1 };
76
- * };
77
- * ```
37
+ * `Intl.NumberFormat` options for a property's display value, either fixed or
38
+ * computed from the active unit system.
78
39
  *
79
40
  * @kosService core.use-config-property
80
41
  * @group KOS Model
@@ -85,19 +46,7 @@ export type FormatOptions =
85
46
  | ((system: string) => Intl.NumberFormatOptions);
86
47
 
87
48
  /**
88
- * Option definition for enumerated configuration properties.
89
- *
90
- * Represents a single selectable option with a display label and internal value.
91
- * Used for configuration properties that have predefined valid values.
92
- *
93
- * @example Basic Options
94
- * ```typescript
95
- * const optionsList: OptionsType[] = [
96
- * { label: 'Low Speed', value: 'low' },
97
- * { label: 'Medium Speed', value: 'medium' },
98
- * { label: 'High Speed', value: 'high' }
99
- * ];
100
- * ```
49
+ * A selectable value of an enumerated configuration property.
101
50
  *
102
51
  * @kosService core.use-config-property
103
52
  * @group KOS Model
@@ -111,39 +60,8 @@ export interface OptionsType {
111
60
  }
112
61
 
113
62
  /**
114
- * Options provider for configuration properties with enumerated values.
115
- *
116
- * Can be either a static list of options or a dynamic function that generates
117
- * options based on the current unit system. Useful for configuration properties
118
- * that need different option sets based on regional settings.
119
- *
120
- * @example Static Options List
121
- * ```typescript
122
- * const staticOptions: OptionsExpander = [
123
- * { label: 'Automatic', value: 'auto' },
124
- * { label: 'Manual', value: 'manual' },
125
- * { label: 'Disabled', value: 'disabled' }
126
- * ];
127
- * ```
128
- *
129
- * @example Dynamic System-Based Options
130
- * ```typescript
131
- * const dynamicOptions: OptionsExpander = (system: string, schemaOptions?: string[]) => {
132
- * const baseOptions = [
133
- * { label: 'Automatic', value: 'auto' },
134
- * { label: 'Manual', value: 'manual' }
135
- * ];
136
- *
137
- * // Add system-specific options
138
- * if (system === 'imperial') {
139
- * baseOptions.push({ label: 'Imperial Mode', value: 'imperial' });
140
- * } else if (system === 'metric') {
141
- * baseOptions.push({ label: 'Metric Mode', value: 'metric' });
142
- * }
143
- *
144
- * return baseOptions;
145
- * };
146
- * ```
63
+ * Options for an enumerated property: a fixed list, or a function of the active
64
+ * unit system and the values the schema allows.
147
65
  *
148
66
  * @kosService core.use-config-property
149
67
  * @group KOS Model
@@ -154,36 +72,8 @@ export type OptionsExpander =
154
72
  | ((system: string, options?: string[]) => OptionsType[]);
155
73
 
156
74
  /**
157
- * Configuration options for KosConfigProperty instances.
158
- *
159
- * These options define how individual configuration properties access and display
160
- * values from the backend configuration system. They specify the configuration path,
161
- * attribute name, and optional unit conversion and formatting behavior.
162
- *
163
- * @example Basic Property Configuration
164
- * ```typescript
165
- * const pumpRateOptions: ConfigBeanPropOptions = {
166
- * path: 'assembly:core:board:micro:pump:S4',
167
- * attribute: 'nominalRate'
168
- * };
169
- * ```
170
- *
171
- * @example Property with Unit Conversion
172
- * ```typescript
173
- * const temperatureOptions: ConfigBeanPropOptions = {
174
- * path: 'assembly:core:board:cooling',
175
- * attribute: 'targetTemperature',
176
- * converter: {
177
- * measure: 'temperature',
178
- * from: { unit: 'kelvin' },
179
- * to: { system: 'auto' }
180
- * },
181
- * formatter: {
182
- * style: 'unit',
183
- * maximumFractionDigits: 1
184
- * }
185
- * };
186
- * ```
75
+ * Options for a {@link KosConfigProperty}. These are the parameters of
76
+ * `@kosConfigProperty`.
187
77
  *
188
78
  * @kosService core.use-config-property
189
79
  * @group KOS Model
@@ -191,97 +81,30 @@ export type OptionsExpander =
191
81
  */
192
82
  export interface ConfigBeanPropOptions {
193
83
  /**
194
- * The hierarchical configuration path using colon-separated notation.
195
- *
196
- * This path identifies the specific configuration bean that contains
197
- * the target attribute. Must match the path used by the parent ConfigBeanModel.
198
- *
199
- * @example Common Configuration Paths
200
- * ```typescript
201
- * // Hardware component configuration
202
- * path: 'assembly:core:board:micro:pump:S4'
203
- *
204
- * // System-level configuration
205
- * path: 'system:app'
206
- *
207
- * // Service configuration
208
- * path: 'kos:service:CANPumpMgr'
209
- * ```
84
+ * Colon-separated path of the config bean that holds the attribute, such as `system:app`.
210
85
  */
211
86
  path: string;
212
87
 
213
88
  /**
214
- * The specific attribute name within the configuration bean.
215
- *
216
- * This identifies which property within the configuration bean
217
- * this KosConfigProperty instance should access and manage.
218
- *
219
- * @example Attribute Examples
220
- * ```typescript
221
- * attribute: 'nominalRate' // For pump flow rates
222
- * attribute: 'targetTemperature' // For temperature settings
223
- * attribute: 'enabled' // For boolean flags
224
- * attribute: 'retryCount' // For numeric counters
225
- * ```
89
+ * Attribute within the bean, such as `nominalRate` or `settings.durationSec`.
226
90
  */
227
91
  attribute: string;
228
92
 
229
93
  /**
230
- * Optional unit conversion configuration.
231
- *
232
- * When provided, enables automatic conversion between backend storage units
233
- * and regional display units. If omitted, no unit conversion is performed.
234
- *
235
- * @example Temperature Conversion
236
- * ```typescript
237
- * converter: {
238
- * from: { unit: 'kelvin', system: 'si' },
239
- * to: { system: 'auto' } // Auto-detect regional system
240
- * }
241
- * ```
94
+ * Unit conversion between backend and display units. Without it, values are shown as stored.
242
95
  */
243
96
  converter?: { measure?: string; from?: UnitConverter; to?: UnitConverter };
244
97
 
245
- /**
246
- * Optional display formatting configuration.
247
- *
248
- * Configures how numeric values are formatted for display, including
249
- * decimal places, units, and locale-specific formatting rules.
250
- *
251
- * @example Custom Formatting
252
- * ```typescript
253
- * formatter: {
254
- * style: 'unit',
255
- * unit: 'celsius',
256
- * maximumFractionDigits: 1,
257
- * minimumFractionDigits: 1
258
- * }
259
- * ```
260
- */
98
+ /** Number formatting for `displayValue`. */
261
99
  formatter?: FormatOptions;
262
100
 
263
101
  /**
264
- * Optional predefined options for enumerated properties.
265
- *
266
- * Provides a list of valid values for configuration properties that
267
- * have discrete options rather than continuous values.
268
- *
269
- * @example Static Options
270
- * ```typescript
271
- * optionsExpander: [
272
- * { label: 'Low', value: 'low' },
273
- * { label: 'Medium', value: 'medium' },
274
- * { label: 'High', value: 'high' }
275
- * ]
276
- * ```
102
+ * Options for an enumerated property, replacing those derived from the schema.
277
103
  */
278
104
  optionsExpander?: OptionsExpander;
279
105
 
280
106
  /**
281
- * Optional custom service base path.
282
- *
283
- * When provided, overrides the default configuration service endpoint.
284
- * Useful for testing, development, or alternative service implementations.
107
+ * Base path of the config service, when it differs from the default.
285
108
  *
286
109
  * @default undefined (uses default KOS configuration service path)
287
110
  */
@@ -290,8 +113,8 @@ export interface ConfigBeanPropOptions {
290
113
  /**
291
114
  * Connection the property's bean is routed to.
292
115
  *
293
- * Set it when one window binds the same config path on several devices;
294
- * the property and bean model ids include it so devices never share a bean.
116
+ * Set it when one window binds the same config path on several devices; the
117
+ * property and bean model ids include it so each device gets its own bean.
295
118
  *
296
119
  * @default undefined (the transport's default connection)
297
120
  */
@@ -299,17 +122,13 @@ export interface ConfigBeanPropOptions {
299
122
  }
300
123
 
301
124
  /**
302
- * Individual configuration property with automatic unit conversion and regional formatting.
303
- *
304
- * Provides type-safe access to specific configuration attributes with built-in unit conversion
305
- * between backend storage units (typically SI) and regional display units.
125
+ * One attribute of a config bean, with unit conversion to the region's display
126
+ * units and number formatting. Declare it on a model with `@kosConfigProperty`.
306
127
  *
307
- * @example Basic Usage
128
+ * @example
308
129
  * ```typescript
309
- * const pumpRate = KosConfigProperty.create('pump-rate', {
310
- * path: 'assembly:core:board:micro:pump:S4',
311
- * attribute: 'nominalRate'
312
- * });
130
+ * @kosConfigProperty({ path: "system:app", attribute: "settings.durationSec", converter: { to: "second" } })
131
+ * durationSec!: KosConfigProperty<number>;
313
132
  * ```
314
133
  *
315
134
  * @kosService core.use-config-property
@@ -357,8 +176,8 @@ export interface KosConfigProperty<
357
176
  readonly schemaFormat?: string;
358
177
 
359
178
  /**
360
- * Updates the property value and persists it to the backend.
361
- * Automatically handles unit conversion from display units to backend storage units.
179
+ * Writes a new value to the backend, converting it from display units to
180
+ * backend units first.
362
181
  *
363
182
  * @param value The new value in display units
364
183
  */