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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (355) hide show
  1. package/.kos.json +3 -2
  2. package/common/events/async-event-bus.d.ts +8 -11
  3. package/common/events/async-event-bus.d.ts.map +1 -1
  4. package/common/events/eventBus.d.ts +1 -18
  5. package/common/events/eventBus.d.ts.map +1 -1
  6. package/core/core/companion-instantiator.d.ts +5 -0
  7. package/core/core/companion-instantiator.d.ts.map +1 -1
  8. package/core/core/decorators/index.d.ts +1 -0
  9. package/core/core/decorators/index.d.ts.map +1 -1
  10. package/core/core/decorators/kos-child.d.ts +2 -3
  11. package/core/core/decorators/kos-child.d.ts.map +1 -1
  12. package/core/core/decorators/kos-companion.d.ts +25 -87
  13. package/core/core/decorators/kos-companion.d.ts.map +1 -1
  14. package/core/core/decorators/kos-container-aware-reconcile.test-d.d.ts +2 -0
  15. package/core/core/decorators/kos-container-aware-reconcile.test-d.d.ts.map +1 -0
  16. package/core/core/decorators/kos-container-aware.d.ts +191 -420
  17. package/core/core/decorators/kos-container-aware.d.ts.map +1 -1
  18. package/core/core/decorators/kos-execute-service-request.d.ts +7 -11
  19. package/core/core/decorators/kos-execute-service-request.d.ts.map +1 -1
  20. package/core/core/decorators/kos-execution-context.d.ts +14 -31
  21. package/core/core/decorators/kos-execution-context.d.ts.map +1 -1
  22. package/core/core/decorators/kos-future-aware.d.ts +21 -74
  23. package/core/core/decorators/kos-future-aware.d.ts.map +1 -1
  24. package/core/core/decorators/kos-http-decorators.d.ts +18 -62
  25. package/core/core/decorators/kos-http-decorators.d.ts.map +1 -1
  26. package/core/core/decorators/kos-logger-aware.d.ts +10 -60
  27. package/core/core/decorators/kos-logger-aware.d.ts.map +1 -1
  28. package/core/core/decorators/kos-mixin.d.ts +67 -0
  29. package/core/core/decorators/kos-mixin.d.ts.map +1 -0
  30. package/core/core/decorators/kos-model-effect.d.ts +10 -9
  31. package/core/core/decorators/kos-model-effect.d.ts.map +1 -1
  32. package/core/core/decorators/kos-multiple-future-aware.d.ts +22 -131
  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 -14
  35. package/core/core/decorators/kos-reload-aware.d.ts.map +1 -1
  36. package/core/core/decorators/kos-service-request-helpers.d.ts +3 -1
  37. package/core/core/decorators/kos-service-request-helpers.d.ts.map +1 -1
  38. package/core/core/decorators/kos-service-request.d.ts +85 -265
  39. package/core/core/decorators/kos-service-request.d.ts.map +1 -1
  40. package/core/core/decorators/kos-state-machine.d.ts +44 -273
  41. package/core/core/decorators/kos-state-machine.d.ts.map +1 -1
  42. package/core/core/decorators/kos-topic-handler-flow-control.d.ts +37 -29
  43. package/core/core/decorators/kos-topic-handler-flow-control.d.ts.map +1 -1
  44. package/core/core/decorators/kos-trouble-aware.d.ts +9 -43
  45. package/core/core/decorators/kos-trouble-aware.d.ts.map +1 -1
  46. package/core/core/decorators/kos-view-model.d.ts +20 -100
  47. package/core/core/decorators/kos-view-model.d.ts.map +1 -1
  48. package/core/core/decorators/kosDependency.d.ts +4 -2
  49. package/core/core/decorators/kosDependency.d.ts.map +1 -1
  50. package/core/core/decorators/kosModel.d.ts.map +1 -1
  51. package/core/core/decorators/kosTopicHandler.d.ts +28 -98
  52. package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
  53. package/core/core/decorators/propKeys.d.ts +1 -0
  54. package/core/core/decorators/propKeys.d.ts.map +1 -1
  55. package/core/core/extension/extension-manager.d.ts.map +1 -1
  56. package/core/core/indexing/index.d.ts +2 -4
  57. package/core/core/indexing/index.d.ts.map +1 -1
  58. package/core/core/indexing/kos-container-index-aware.d.ts +17 -48
  59. package/core/core/indexing/kos-container-index-aware.d.ts.map +1 -1
  60. package/core/core/indexing/kos-index-aware.d.ts +11 -37
  61. package/core/core/indexing/kos-index-aware.d.ts.map +1 -1
  62. package/core/core/kos-container-index.d.ts +11 -0
  63. package/core/core/kos-container-index.d.ts.map +1 -1
  64. package/core/core/kos-container-model.d.ts +11 -32
  65. package/core/core/kos-container-model.d.ts.map +1 -1
  66. package/core/core/kos-data-container.d.ts +6 -6
  67. package/core/core/kos-data-container.d.ts.map +1 -1
  68. package/core/core/kosCore.d.ts +22 -4
  69. package/core/core/kosCore.d.ts.map +1 -1
  70. package/core/core/kosModel.d.ts +21 -8
  71. package/core/core/kosModel.d.ts.map +1 -1
  72. package/core/core/kosModelManager.d.ts +2 -3
  73. package/core/core/kosModelManager.d.ts.map +1 -1
  74. package/core/core/lifecycle/constants.d.ts +6 -2
  75. package/core/core/lifecycle/constants.d.ts.map +1 -1
  76. package/core/core/lifecycle/kosCoreLifecycle.d.ts +11 -1
  77. package/core/core/lifecycle/kosCoreLifecycle.d.ts.map +1 -1
  78. package/core/core/lifecycle/kosModelLifecycle.d.ts +6 -0
  79. package/core/core/lifecycle/kosModelLifecycle.d.ts.map +1 -1
  80. package/core/core/lifecycle/model-machine.d.ts +6 -0
  81. package/core/core/lifecycle/model-machine.d.ts.map +1 -1
  82. package/core/core/model/kos-fsm-manager.d.ts +6 -0
  83. package/core/core/model/kos-fsm-manager.d.ts.map +1 -1
  84. package/core/core/model/kos-model-component-factory.d.ts +1 -1
  85. package/core/core/model/kos-model-component-factory.d.ts.map +1 -1
  86. package/core/core/model/kos-offline-queue.d.ts +1 -1
  87. package/core/core/model/kos-service-request-manager.d.ts +7 -2
  88. package/core/core/model/kos-service-request-manager.d.ts.map +1 -1
  89. package/core/core/model/kos-subscription-manager.d.ts +2 -2
  90. package/core/core/model/kos-subscription-manager.d.ts.map +1 -1
  91. package/core/core/model/service-response-store.d.ts +4 -16
  92. package/core/core/model/service-response-store.d.ts.map +1 -1
  93. package/core/core/reconnect/reconnect-fixture.d.ts +17 -0
  94. package/core/core/reconnect/reconnect-fixture.d.ts.map +1 -0
  95. package/core/core/registration/model-registration.d.ts.map +1 -1
  96. package/core/core/services/app-startup-service.d.ts +5 -13
  97. package/core/core/services/app-startup-service.d.ts.map +1 -1
  98. package/core/core/services/intent-service.d.ts +3 -12
  99. package/core/core/services/intent-service.d.ts.map +1 -1
  100. package/core/core/transport/mock/mock-frames.d.ts +3 -3
  101. package/core/core/transport/transport.d.ts +1 -1
  102. package/core/core/transport/transport.d.ts.map +1 -1
  103. package/core/core/transport/webSocketTransport.d.ts +10 -0
  104. package/core/core/transport/webSocketTransport.d.ts.map +1 -1
  105. package/core/types/kos-dependency.d.ts +13 -4
  106. package/core/types/kos-dependency.d.ts.map +1 -1
  107. package/core/types/model.d.ts +4 -8
  108. package/core/types/model.d.ts.map +1 -1
  109. package/core/types/service-response-store.d.ts +3 -15
  110. package/core/types/service-response-store.d.ts.map +1 -1
  111. package/core/types/utils/kos-fetch.d.ts +25 -37
  112. package/core/types/utils/kos-fetch.d.ts.map +1 -1
  113. package/core/util/abortable-when.d.ts +5 -6
  114. package/core/util/abortable-when.d.ts.map +1 -1
  115. package/core/util/ancestor-path-visitor.d.ts +14 -20
  116. package/core/util/ancestor-path-visitor.d.ts.map +1 -1
  117. package/core/util/container-utils.d.ts +26 -159
  118. package/core/util/container-utils.d.ts.map +1 -1
  119. package/core/util/date-utils.d.ts +9 -58
  120. package/core/util/date-utils.d.ts.map +1 -1
  121. package/core/util/debounce.d.ts +1 -8
  122. package/core/util/debounce.d.ts.map +1 -1
  123. package/core/util/kos-fetch.d.ts +1 -1
  124. package/core/util/kos-fetch.d.ts.map +1 -1
  125. package/core/util/kos-model-utils.d.ts +10 -11
  126. package/core/util/kos-model-utils.d.ts.map +1 -1
  127. package/core/util/model-attribute-utils.d.ts +5 -22
  128. package/core/util/model-attribute-utils.d.ts.map +1 -1
  129. package/core/util/model-type-guards.d.ts.map +1 -1
  130. package/core/util/model-utils.d.ts.map +1 -1
  131. package/core/util/promise-utils.d.ts +1 -26
  132. package/core/util/promise-utils.d.ts.map +1 -1
  133. package/core/util/service-factory.d.ts +5 -23
  134. package/core/util/service-factory.d.ts.map +1 -1
  135. package/core/util/service-request-error.d.ts +3 -5
  136. package/core/util/service-request-error.d.ts.map +1 -1
  137. package/core/util/service-response.d.ts +12 -67
  138. package/core/util/service-response.d.ts.map +1 -1
  139. package/core/util/transport-not-ready-error.d.ts +11 -13
  140. package/core/util/transport-not-ready-error.d.ts.map +1 -1
  141. package/core/util/when-ready.d.ts +1 -8
  142. package/core/util/when-ready.d.ts.map +1 -1
  143. package/index.cjs +983 -11777
  144. package/index.cjs.map +1 -1
  145. package/index.js +1056 -11854
  146. package/index.js.map +1 -1
  147. package/models/decorators/future-service.d.ts +7 -7
  148. package/models/models/browser-router/browser-router-model.d.ts +10 -39
  149. package/models/models/browser-router/browser-router-model.d.ts.map +1 -1
  150. package/models/models/browser-router/browser-router-registration.d.ts +5 -77
  151. package/models/models/browser-router/browser-router-registration.d.ts.map +1 -1
  152. package/models/models/browser-router/types/index.d.ts +2 -16
  153. package/models/models/canvas-dispatcher/canvas-dispatcher-registration.d.ts +5 -77
  154. package/models/models/canvas-dispatcher/canvas-dispatcher-registration.d.ts.map +1 -1
  155. package/models/models/canvas-renderer/canvas-renderer-registration.d.ts +5 -75
  156. package/models/models/canvas-renderer/canvas-renderer-registration.d.ts.map +1 -1
  157. package/models/models/config-bean/config-bean-model-builder.d.ts +4 -11
  158. package/models/models/config-bean/config-bean-model-builder.d.ts.map +1 -1
  159. package/models/models/config-bean/config-bean-model.d.ts +23 -66
  160. package/models/models/config-bean/config-bean-model.d.ts.map +1 -1
  161. package/models/models/config-bean-prop/config-bean-prop-model.d.ts +15 -62
  162. package/models/models/config-bean-prop/config-bean-prop-model.d.ts.map +1 -1
  163. package/models/models/config-bean-prop/types/index.d.ts +34 -215
  164. package/models/models/device/device-model.d.ts +20 -199
  165. package/models/models/device/device-model.d.ts.map +1 -1
  166. package/models/models/device/device-registration.d.ts +7 -87
  167. package/models/models/device/device-registration.d.ts.map +1 -1
  168. package/models/models/device/types/index.d.ts +5 -34
  169. package/models/models/future/future-aware.d.ts +7 -71
  170. package/models/models/future/future-aware.d.ts.map +1 -1
  171. package/models/models/future/future-model-builder.d.ts +2 -2
  172. package/models/models/future/future-model.d.ts +3 -23
  173. package/models/models/future/future-model.d.ts.map +1 -1
  174. package/models/models/future/future-types.d.ts +28 -145
  175. package/models/models/future/future-types.d.ts.map +1 -1
  176. package/models/models/gpio-chip/gpio-chip-builders.d.ts +14 -0
  177. package/models/models/gpio-chip/gpio-chip-builders.d.ts.map +1 -0
  178. package/models/models/gpio-chip/gpio-chip-container-model.d.ts +2 -1
  179. package/models/models/gpio-chip/gpio-chip-container-model.d.ts.map +1 -1
  180. package/models/models/key-value/key-value-model.d.ts +12 -72
  181. package/models/models/key-value/key-value-model.d.ts.map +1 -1
  182. package/models/models/key-value/key-value-registration.d.ts +5 -77
  183. package/models/models/key-value/key-value-registration.d.ts.map +1 -1
  184. package/models/models/key-value/services/key-value-services.d.ts +13 -72
  185. package/models/models/key-value/services/key-value-services.d.ts.map +1 -1
  186. package/models/models/key-value/types/index.d.ts +3 -46
  187. package/models/models/kos-expression-evaluator/expression-parse-cache.d.ts +29 -0
  188. package/models/models/kos-expression-evaluator/expression-parse-cache.d.ts.map +1 -0
  189. package/models/models/kos-expression-evaluator/index.d.ts +1 -0
  190. package/models/models/kos-expression-evaluator/index.d.ts.map +1 -1
  191. package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts +73 -105
  192. package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts.map +1 -1
  193. package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts +2 -12
  194. package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts.map +1 -1
  195. package/models/models/kos-log-manager/kos-log-manager-model.d.ts +7 -46
  196. package/models/models/kos-log-manager/kos-log-manager-model.d.ts.map +1 -1
  197. package/models/models/kos-log-manager/kos-log-manager-registration.d.ts +5 -80
  198. package/models/models/kos-log-manager/kos-log-manager-registration.d.ts.map +1 -1
  199. package/models/models/kos-log-manager/types/index.d.ts +13 -156
  200. package/models/models/kos-time/kos-time-model.d.ts +8 -39
  201. package/models/models/kos-time/kos-time-model.d.ts.map +1 -1
  202. package/models/models/kos-time/kos-time-registration.d.ts +6 -73
  203. package/models/models/kos-time/kos-time-registration.d.ts.map +1 -1
  204. package/models/models/kos-time/types/index.d.ts +3 -58
  205. package/models/models/log-block/log-block-container-model.d.ts +2 -118
  206. package/models/models/log-block/log-block-container-model.d.ts.map +1 -1
  207. package/models/models/log-block/log-block-container-registration.d.ts +5 -75
  208. package/models/models/log-block/log-block-container-registration.d.ts.map +1 -1
  209. package/models/models/log-block/log-block-model.d.ts +5 -168
  210. package/models/models/log-block/log-block-model.d.ts.map +1 -1
  211. package/models/models/log-block/log-block-registration.d.ts +5 -75
  212. package/models/models/log-block/log-block-registration.d.ts.map +1 -1
  213. package/models/models/log-block/types/index.d.ts +14 -81
  214. package/models/models/log-stream/log-stream-container-model.d.ts +8 -35
  215. package/models/models/log-stream/log-stream-container-model.d.ts.map +1 -1
  216. package/models/models/log-stream/log-stream-container-registration.d.ts +5 -75
  217. package/models/models/log-stream/log-stream-container-registration.d.ts.map +1 -1
  218. package/models/models/log-stream/log-stream-model.d.ts +8 -29
  219. package/models/models/log-stream/log-stream-model.d.ts.map +1 -1
  220. package/models/models/log-stream/log-stream-registration.d.ts +5 -75
  221. package/models/models/log-stream/log-stream-registration.d.ts.map +1 -1
  222. package/models/models/log-stream/types/index.d.ts +5 -60
  223. package/models/models/network-interface/network-interface-container-model.d.ts +6 -35
  224. package/models/models/network-interface/network-interface-container-model.d.ts.map +1 -1
  225. package/models/models/network-interface/network-interface-container-registration.d.ts +5 -73
  226. package/models/models/network-interface/network-interface-container-registration.d.ts.map +1 -1
  227. package/models/models/network-interface/network-interface-model.d.ts +5 -43
  228. package/models/models/network-interface/network-interface-model.d.ts.map +1 -1
  229. package/models/models/network-interface/network-interface-registration.d.ts +5 -73
  230. package/models/models/network-interface/network-interface-registration.d.ts.map +1 -1
  231. package/models/models/network-interface/types/index.d.ts +2 -16
  232. package/models/models/ota/ota-model.d.ts +11 -39
  233. package/models/models/ota/ota-model.d.ts.map +1 -1
  234. package/models/models/ota/ota-registration.d.ts +5 -77
  235. package/models/models/ota/ota-registration.d.ts.map +1 -1
  236. package/models/models/ota/types/index.d.ts +2 -141
  237. package/models/models/region-info/types/index.d.ts +19 -99
  238. package/models/models/region-info/types/index.d.ts.map +1 -1
  239. package/models/models/software-info/services/software-info-services.d.ts +2 -14
  240. package/models/models/software-info/services/software-info-services.d.ts.map +1 -1
  241. package/models/models/software-info/software-info-model.d.ts +3 -39
  242. package/models/models/software-info/software-info-model.d.ts.map +1 -1
  243. package/models/models/software-info/software-info-registration.d.ts +6 -73
  244. package/models/models/software-info/software-info-registration.d.ts.map +1 -1
  245. package/models/models/software-info/types/index.d.ts +6 -20
  246. package/models/models/state-bean/state-bean-model.d.ts +10 -41
  247. package/models/models/state-bean/state-bean-model.d.ts.map +1 -1
  248. package/models/models/state-bean/state-bean-registration.d.ts +6 -73
  249. package/models/models/state-bean/state-bean-registration.d.ts.map +1 -1
  250. package/models/models/state-bean/types/index.d.ts +4 -84
  251. package/models/models/state-prop/state-prop-model.d.ts +6 -40
  252. package/models/models/state-prop/state-prop-model.d.ts.map +1 -1
  253. package/models/models/state-prop/state-prop-registration.d.ts +6 -73
  254. package/models/models/state-prop/state-prop-registration.d.ts.map +1 -1
  255. package/models/models/state-prop/types/index.d.ts +5 -37
  256. package/models/models/storage-device/storage-device-container-model.d.ts +7 -273
  257. package/models/models/storage-device/storage-device-container-model.d.ts.map +1 -1
  258. package/models/models/storage-device/storage-device-container-registration.d.ts +5 -75
  259. package/models/models/storage-device/storage-device-container-registration.d.ts.map +1 -1
  260. package/models/models/storage-device/storage-device-model.d.ts +3 -49
  261. package/models/models/storage-device/storage-device-model.d.ts.map +1 -1
  262. package/models/models/storage-device/storage-device-registration.d.ts +5 -75
  263. package/models/models/storage-device/storage-device-registration.d.ts.map +1 -1
  264. package/models/models/storage-device/types/index.d.ts +13 -82
  265. package/models/models/studio-properties/studio-properties-model.d.ts +13 -36
  266. package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -1
  267. package/models/models/studio-properties/studio-properties-registration.d.ts +5 -75
  268. package/models/models/studio-properties/studio-properties-registration.d.ts.map +1 -1
  269. package/models/models/studio-properties/types/index.d.ts +2 -24
  270. package/models/models/translation/descriptor-merge.d.ts +13 -17
  271. package/models/models/translation/descriptor-merge.d.ts.map +1 -1
  272. package/models/models/translation/services/translation-services.d.ts +19 -77
  273. package/models/models/translation/services/translation-services.d.ts.map +1 -1
  274. package/models/models/translation/test-harness.d.ts +6 -8
  275. package/models/models/translation/test-harness.d.ts.map +1 -1
  276. package/models/models/translation/translation-container-model.d.ts +7 -59
  277. package/models/models/translation/translation-container-model.d.ts.map +1 -1
  278. package/models/models/translation/translation-container-registration.d.ts +6 -73
  279. package/models/models/translation/translation-container-registration.d.ts.map +1 -1
  280. package/models/models/translation/translation-model.d.ts +17 -50
  281. package/models/models/translation/translation-model.d.ts.map +1 -1
  282. package/models/models/translation/translation-registration.d.ts +6 -73
  283. package/models/models/translation/translation-registration.d.ts.map +1 -1
  284. package/models/models/translation/types/index.d.ts +51 -276
  285. package/models/models/trouble/trouble-registration.d.ts +6 -73
  286. package/models/models/trouble/trouble-registration.d.ts.map +1 -1
  287. package/models/models/trouble/types/index.d.ts +17 -188
  288. package/models/models/trouble/utils/is-trouble-aware.d.ts +4 -85
  289. package/models/models/trouble/utils/is-trouble-aware.d.ts.map +1 -1
  290. package/models/models/trouble-container/trouble-builders.d.ts +11 -0
  291. package/models/models/trouble-container/trouble-builders.d.ts.map +1 -0
  292. package/models/models/trouble-container/trouble-container-model.d.ts +2 -1
  293. package/models/models/trouble-container/trouble-container-model.d.ts.map +1 -1
  294. package/models/models/usb-update/usb-update-container-registration.d.ts +5 -75
  295. package/models/models/usb-update/usb-update-container-registration.d.ts.map +1 -1
  296. package/models/models/usb-update/usb-update-registration.d.ts +5 -75
  297. package/models/models/usb-update/usb-update-registration.d.ts.map +1 -1
  298. package/models/types/cancellable-promise.d.ts +6 -9
  299. package/models/types/cancellable-promise.d.ts.map +1 -1
  300. package/models/utils/await-future-call.d.ts +9 -21
  301. package/models/utils/await-future-call.d.ts.map +1 -1
  302. package/models/utils/cancellable-future-call.d.ts +8 -19
  303. package/models/utils/cancellable-future-call.d.ts.map +1 -1
  304. package/models/utils/cancellable-service.d.ts +14 -23
  305. package/models/utils/cancellable-service.d.ts.map +1 -1
  306. package/models/utils/conversion-utils.d.ts +8 -48
  307. package/models/utils/conversion-utils.d.ts.map +1 -1
  308. package/models/utils/persistence-store.d.ts +1 -1
  309. package/models/utils/service.d.ts +14 -48
  310. package/models/utils/service.d.ts.map +1 -1
  311. package/models/utils/services/kos/daily/service.d.ts +5 -5
  312. package/models/utils/services/kos/daily/service.d.ts.map +1 -1
  313. package/models/utils/services/vfs/daily/service.d.ts +5 -5
  314. package/models/utils/services/vfs/daily/service.d.ts.map +1 -1
  315. package/models/utils/timer-manager.d.ts.map +1 -1
  316. package/package.json +2 -2
  317. package/{index-CRb8ucfF.cjs → software-info-registration-Le3V0a6v.cjs} +12187 -986
  318. package/software-info-registration-Le3V0a6v.cjs.map +1 -0
  319. package/software-info-registration-kSGacOka.js +24809 -0
  320. package/software-info-registration-kSGacOka.js.map +1 -0
  321. package/testing/index.d.ts +32 -34
  322. package/testing/index.d.ts.map +1 -1
  323. package/testing.cjs +2 -1
  324. package/testing.cjs.map +1 -1
  325. package/testing.js +2 -1
  326. package/testing.js.map +1 -1
  327. package/ui/components/connection-dev-button/connection-dev-button-styles.d.ts +9 -0
  328. package/ui/components/connection-dev-button/connection-dev-button-styles.d.ts.map +1 -0
  329. package/ui/components/connection-dev-button/index.d.ts +36 -0
  330. package/ui/components/connection-dev-button/index.d.ts.map +1 -0
  331. package/ui/components/connection-dev-button/use-connection-dev-state.d.ts +29 -0
  332. package/ui/components/connection-dev-button/use-connection-dev-state.d.ts.map +1 -0
  333. package/ui/components/index.d.ts +1 -0
  334. package/ui/components/index.d.ts.map +1 -1
  335. package/ui/features/canvas/hooks/use-image-renderer.d.ts +5 -4
  336. package/ui/features/canvas/hooks/use-image-renderer.d.ts.map +1 -1
  337. package/ui/hooks/use-function-warmup.d.ts +4 -14
  338. package/ui/hooks/use-function-warmup.d.ts.map +1 -1
  339. package/ui/hooks/use-kos-date-formats.d.ts +15 -29
  340. package/ui/hooks/use-kos-date-formats.d.ts.map +1 -1
  341. package/ui/hooks/use-kos-region-timezones.d.ts +4 -55
  342. package/ui/hooks/use-kos-region-timezones.d.ts.map +1 -1
  343. package/ui/hooks/use-kos-regions.d.ts +11 -23
  344. package/ui/hooks/use-kos-regions.d.ts.map +1 -1
  345. package/ui/hooks/use-kos-time-formats.d.ts +16 -31
  346. package/ui/hooks/use-kos-time-formats.d.ts.map +1 -1
  347. package/ui/hooks/use-kos-unit-systems.d.ts +13 -27
  348. package/ui/hooks/use-kos-unit-systems.d.ts.map +1 -1
  349. package/ui/hooks/view-model/use-view-model.d.ts +6 -31
  350. package/ui/hooks/view-model/use-view-model.d.ts.map +1 -1
  351. package/ui/policies/reload-on-disconnect-policy.d.ts +5 -6
  352. package/ui/policies/reload-on-disconnect-policy.d.ts.map +1 -1
  353. package/index-CRb8ucfF.cjs.map +0 -1
  354. package/index-YzHb2lnB.js +0 -13607
  355. package/index-YzHb2lnB.js.map +0 -1
@@ -4,78 +4,10 @@ import { TranslationContainerModel } from '../translation-container-model';
4
4
  // --------------- Translation ---------------
5
5
 
6
6
  /**
7
- * Configuration options for Translation model instances.
8
- *
9
- * This interface defines the complete configuration structure for individual translation
10
- * namespace models, including locale settings, resolution strategies, and custom loading
11
- * mechanisms. Translation models handle the actual key resolution and interpolation for
12
- * specific functional areas within KOS applications.
13
- *
14
- * @example Basic Translation Configuration
15
- * ```typescript
16
- * // Device status translations with English fallback
17
- * const statusOptions: TranslationOptions = {
18
- * namespace: 'device-status',
19
- * currentLocale: 'es',
20
- * defaultLocale: 'en',
21
- * descriptor: {
22
- * 'es': {
23
- * fallbacks: ['en']
24
- * },
25
- * 'en': {
26
- * fallbacks: []
27
- * }
28
- * },
29
- * kosParentId: 'translation-container'
30
- * };
31
- *
32
- * const statusTranslation = Translation.instance('status-translations')
33
- * .options(statusOptions)
34
- * .build();
35
- * ```
36
- *
37
- * @example Custom Bundle Resolution
38
- * ```typescript
39
- * // API-based translation loading
40
- * const apiBundleResolver = async (
41
- * namespace: string,
42
- * locale: string,
43
- * context?: KosContext
44
- * ): Promise<TranslationResponse> => {
45
- * const response = await fetch(`/api/translations/${namespace}/${locale}`);
46
- * return await response.json();
47
- * };
48
- *
49
- * const apiOptions: TranslationOptions = {
50
- * namespace: 'alerts',
51
- * currentLocale: 'fr',
52
- * defaultLocale: 'en',
53
- * descriptor: {
54
- * 'fr': { fallbacks: ['en'] },
55
- * 'en': { fallbacks: [] }
56
- * },
57
- * bundleResolver: apiBundleResolver,
58
- * kosParentId: 'translation-container'
59
- * };
60
- * ```
61
- *
62
- * @example Multi-Regional Configuration
63
- * ```typescript
64
- * // Complex fallback chains for regional variations
65
- * const regionalOptions: TranslationOptions = {
66
- * namespace: 'regional-ui',
67
- * currentLocale: 'pt-BR',
68
- * defaultLocale: 'en',
69
- * descriptor: {
70
- * 'pt-BR': { fallbacks: ['pt', 'es', 'en'] },
71
- * 'pt-PT': { fallbacks: ['pt', 'es', 'en'] },
72
- * 'pt': { fallbacks: ['es', 'en'] },
73
- * 'es': { fallbacks: ['en'] },
74
- * 'en': { fallbacks: [] }
75
- * },
76
- * kosParentId: 'translation-container'
77
- * };
78
- * ```
7
+ * Options for a {@link TranslationModel}, which loads and resolves the keys of
8
+ * one translation namespace. Translation models are normally created by a
9
+ * {@link TranslationContainerModel}, which supplies these options from its
10
+ * descriptor.
79
11
  *
80
12
  * @kosService core.translation
81
13
  * @group KOS Model
@@ -83,65 +15,45 @@ import { TranslationContainerModel } from '../translation-container-model';
83
15
  */
84
16
  export interface TranslationOptions extends KosParentAware {
85
17
  /**
86
- * Translation namespace identifier, typically corresponding to a feature area.
87
- * Used to organize translations by functional domain and prevent key conflicts.
88
- *
89
- * @example "device-status"
90
- * @example "user-settings"
91
- * @example "maintenance-scheduler"
18
+ * Namespace this model serves, usually a feature area such as `"device-status"`.
92
19
  */
93
20
  namespace: string;
94
21
 
95
- /**
96
- * Current active locale for this translation model.
97
- * Determines which language variant to load and display.
98
- *
99
- * @example "en" - English
100
- * @example "es" - Spanish
101
- * @example "pt-BR" - Brazilian Portuguese
102
- */
22
+ /** Active locale, such as `"en"` or `"pt-BR"`. */
103
23
  currentLocale: string;
104
24
 
105
25
  /**
106
- * Default fallback locale when translations are missing in the current locale.
107
- * Typically set to the primary application language.
26
+ * Locale used when the active locale has no descriptor or declares no fallbacks.
108
27
  *
109
28
  * @default "en"
110
29
  */
111
30
  defaultLocale: string;
112
31
 
113
- /**
114
- * Optional base URL for translation file loading.
115
- * Used with default file-based resolution strategy.
116
- *
117
- * @example "/assets/locales"
118
- * @example "https://cdn.example.com/translations"
119
- */
32
+ /** Base URL prepended to translation file paths. */
120
33
  rootUrl?: string;
121
34
 
122
35
  /**
123
- * Locale descriptors defining fallback chains and configuration for each locale.
124
- * Maps locale codes to their fallback hierarchy and metadata.
36
+ * Per-locale descriptors, keyed by locale code. Each declares the fallback chain for its locale.
125
37
  */
126
38
  descriptor: Record<string, LocaleDescriptor>;
127
39
 
128
40
  /**
129
- * Optional custom path resolver for translation file loading.
130
- * Overrides default path construction logic.
41
+ * Builds the path of a namespace's translation file for a locale. Defaults to
42
+ * the resolver the parent container provides.
131
43
  *
132
44
  * @param namespace - Target translation namespace
133
45
  * @param locale - Target locale code
134
- * @returns Full path to translation resource
46
+ * @returns Path to the translation file
135
47
  */
136
48
  resolver?: (namespace: string, locale: string) => string;
137
49
 
138
50
  /**
139
- * Optional custom bundle resolver for advanced translation loading strategies.
140
- * Enables loading from APIs, device storage, or custom sources.
51
+ * Loads translation data directly instead of fetching a file. When set,
52
+ * `resolver` is not used.
141
53
  *
142
54
  * @param namespace - Target translation namespace
143
55
  * @param locale - Target locale code
144
- * @param context - KOS context for accessing shared data
56
+ * @param context - KOS context of the translation model
145
57
  * @returns Promise resolving to translation data
146
58
  */
147
59
  bundleResolver?: (
@@ -154,97 +66,25 @@ export interface TranslationOptions extends KosParentAware {
154
66
  // --------------- TranslationContainer ---------------
155
67
 
156
68
  /**
157
- * Configuration options for TranslationContainer model instances.
69
+ * Options for a {@link TranslationContainerModel}, which creates one
70
+ * {@link TranslationModel} per namespace as each is first resolved and switches
71
+ * all of them when the application locale changes.
158
72
  *
159
- * This interface defines the configuration structure for translation container models,
160
- * which manage multiple translation namespaces and coordinate global locale switching.
161
- * Containers serve as the central orchestration point for internationalization in KOS
162
- * applications.
163
- *
164
- * @example Basic Container Configuration
73
+ * @example
165
74
  * ```typescript
166
- * // Multi-namespace application translations
167
- * const containerOptions: TranslationContainerOptions = {
168
- * lang: 'es',
169
- * defaultNamespace: 'common',
75
+ * const options: TranslationContainerOptions = {
76
+ * lang: "es",
170
77
  * descriptor: {
171
78
  * namespaces: {
172
- * 'common': {
173
- * basePath: '/assets/locales',
79
+ * common: {
80
+ * basePath: "/assets/locales",
174
81
  * locales: {
175
- * 'en': { file: 'en/common.json', defaultLocale: 'en' },
176
- * 'es': { file: 'es/common.json', defaultLocale: 'en' },
177
- * 'fr': { file: 'fr/common.json', defaultLocale: 'en' }
178
- * }
82
+ * en: { file: "en/common.json", defaultLocale: "en" },
83
+ * es: { file: "es/common.json", defaultLocale: "en", fallbacks: ["en"] },
84
+ * },
179
85
  * },
180
- * 'dashboard': {
181
- * basePath: '/assets/locales',
182
- * locales: {
183
- * 'en': { file: 'en/dashboard.json', defaultLocale: 'en' },
184
- * 'es': { file: 'es/dashboard.json', defaultLocale: 'en' },
185
- * 'fr': { file: 'fr/dashboard.json', defaultLocale: 'en' }
186
- * }
187
- * }
188
- * }
189
- * }
190
- * };
191
- *
192
- * const appTranslations = TranslationContainer.instance('app-i18n')
193
- * .options(containerOptions)
194
- * .build();
195
- * ```
196
- *
197
- * @example CDN-Based Translation Loading
198
- * ```typescript
199
- * // Custom resolver for CDN-hosted translations
200
- * const cdnResolver = function(
201
- * namespace: string,
202
- * locale: string
203
- * ): string {
204
- * return `https://cdn.example.com/translations/${namespace}/${locale}.json`;
205
- * };
206
- *
207
- * const cdnOptions: TranslationContainerOptions = {
208
- * lang: 'ja',
209
- * resolver: cdnResolver,
210
- * descriptor: {
211
- * namespaces: {
212
- * 'device-control': {
213
- * basePath: '', // Ignored with custom resolver
214
- * locales: {
215
- * 'ja': { file: '', defaultLocale: 'en' },
216
- * 'en': { file: '', defaultLocale: 'en' }
217
- * }
218
- * }
219
- * }
220
- * }
221
- * };
222
- * ```
223
- *
224
- * @example Development Environment Setup
225
- * ```typescript
226
- * // Hot-reload friendly configuration for development
227
- * const devOptions: TranslationContainerOptions = {
228
- * lang: 'en',
229
- * rootUrl: '/dev-translations',
230
- * descriptor: {
231
- * namespaces: {
232
- * 'ui': {
233
- * basePath: '/ui-translations',
234
- * locales: {
235
- * 'en': { file: 'en/ui.json', defaultLocale: 'en' },
236
- * 'es': { file: 'es/ui.json', defaultLocale: 'en' }
237
- * }
238
- * },
239
- * 'forms': {
240
- * basePath: '/form-translations',
241
- * locales: {
242
- * 'en': { file: 'en/forms.json', defaultLocale: 'en' },
243
- * 'es': { file: 'es/forms.json', defaultLocale: 'en' }
244
- * }
245
- * }
246
- * }
247
- * }
86
+ * },
87
+ * },
248
88
  * };
249
89
  * ```
250
90
  *
@@ -253,58 +93,30 @@ export interface TranslationOptions extends KosParentAware {
253
93
  * @category i18n
254
94
  */
255
95
  export interface TranslationContainerOptions {
256
- /**
257
- * Current application-wide locale setting.
258
- * Applied to all child translation models when they are created or updated.
259
- *
260
- * @example "en" - English
261
- * @example "es" - Spanish
262
- * @example "pt-BR" - Brazilian Portuguese
263
- */
96
+ /** Application-wide locale, applied to every namespace model. */
264
97
  lang: string;
265
98
 
266
- /**
267
- * Comprehensive locale and namespace descriptor defining the complete
268
- * translation structure for the application.
269
- */
99
+ /** Namespaces and the locale files each one provides. */
270
100
  descriptor: Localization;
271
101
 
272
102
  /**
273
- * Optional default namespace for application-wide common translations.
274
- * When specified, provides easy access to shared UI elements and messages.
275
- *
276
- * @example "common"
277
- * @example "shared"
278
- * @example "ui-elements"
103
+ * Namespace exposed as the container's `defaultNamespace` model, such as `"common"`.
279
104
  */
280
105
  defaultNamespace?: string;
281
106
 
282
- /**
283
- * Optional base URL for all translation file loading.
284
- * Applied as prefix to all translation resource paths.
285
- *
286
- * @example "/assets/locales"
287
- * @example "https://cdn.example.com/app-translations"
288
- * @example "/tenant-specific/translations"
289
- */
107
+ /** Base URL prepended to every translation file path. */
290
108
  rootUrl?: string;
291
109
 
292
- /**
293
- * Optional URL for loading translation descriptor dynamically.
294
- * Enables runtime configuration of translation structure.
295
- *
296
- * @example "/api/translations/descriptor"
297
- * @example "https://config.example.com/translation-manifest.json"
298
- */
110
+ /** URL of the localization descriptor. */
299
111
  descriptorUrl?: string;
300
112
 
301
113
  /**
302
- * Optional custom resolver for translation file path construction.
303
- * Overrides default path resolution logic for all namespaces.
114
+ * Builds the path of a namespace's translation file for a locale, replacing
115
+ * the default path construction for every namespace.
304
116
  *
305
117
  * @param namespace - Target translation namespace
306
118
  * @param locale - Target locale code
307
- * @returns Full path to translation resource
119
+ * @returns Path to the translation file
308
120
  */
309
121
  resolver?: (
310
122
  this: TranslationContainerModel,
@@ -313,23 +125,18 @@ export interface TranslationContainerOptions {
313
125
  ) => string;
314
126
 
315
127
  /**
316
- * Optional custom bundle loader, applied to every namespace this container
317
- * resolves. Replaces path resolution entirely: when supplied, `resolver` is
318
- * not consulted and no file is fetched — the container asks this function for
319
- * the translation data instead.
128
+ * Loads translation data for every namespace this container serves, instead of
129
+ * fetching files. When set, `resolver` is not used.
320
130
  *
321
- * Each namespace's Translation model calls it once per locale in its fallback
322
- * chain, and the results are merged in that chain's order exactly as loaded
323
- * files are. A per-namespace `bundleResolver` passed directly to
324
- * `Translation` still wins over this one.
325
- *
326
- * This is the seam for loading translations from somewhere other than static
327
- * files — an API, device storage, an in-memory catalog — and the seam tests
328
- * use to drive a container without a network.
131
+ * Each namespace's translation model calls it once per locale in its fallback
132
+ * chain and merges the results in chain order, as it does for loaded files. A
133
+ * `bundleResolver` passed directly to a `Translation` takes precedence. Use it to
134
+ * serve translations from an API, device storage or an in-memory catalog, or to
135
+ * drive a container in tests.
329
136
  *
330
137
  * @param namespace - Target translation namespace
331
138
  * @param locale - Target locale code
332
- * @param context - KOS context for accessing shared data
139
+ * @param context - KOS context of the translation model
333
140
  * @returns Promise resolving to translation data
334
141
  */
335
142
  bundleResolver?: (
@@ -340,10 +147,8 @@ export interface TranslationContainerOptions {
340
147
  }
341
148
 
342
149
  /**
343
- * Type definitions for variable interpolation in translation keys.
344
- *
345
- * Translation models support sophisticated variable substitution patterns
346
- * for dynamic content in internationalized applications.
150
+ * Options for resolving a translation key: either a default value string, or an
151
+ * object.
347
152
  *
348
153
  * @kosService core.translation
349
154
  * @group KOS Model
@@ -351,51 +156,21 @@ export interface TranslationContainerOptions {
351
156
  */
352
157
  export type ResolveTranslationOptions<T = string> =
353
158
  | {
354
- /**
355
- * Context variables for template-based interpolation using {{variable}} syntax.
356
- *
357
- * @example
358
- * ```typescript
359
- * t('welcome.message', {
360
- * context: { username: 'John', unreadCount: 5 }
361
- * })
362
- * // "Welcome {{username}}, you have {{unreadCount}} messages"
363
- * // Result: "Welcome John, you have 5 messages"
364
- * ```
365
- */
159
+ /** Values substituted into `{{variable}}` placeholders. */
366
160
  context?: Record<string, any>;
367
161
 
368
162
  /**
369
- * Data variables for macro-based interpolation using __variable__ syntax.
370
- *
371
- * @example
372
- * ```typescript
373
- * t('system.info', {
374
- * data: { version: '2.1.0', platform: 'Linux' }
375
- * })
376
- * // "System __version__ running on __platform__"
377
- * // Result: "System 2.1.0 running on Linux"
378
- * ```
163
+ * Values substituted into `{{variable}}` placeholders; takes precedence over the options object itself.
379
164
  */
380
165
  data?: Record<string, any>;
381
166
 
382
167
  /**
383
- * Contextual modifier for conditional key resolution.
384
- * Enables different translations based on application state.
385
- *
386
- * @example
387
- * ```typescript
388
- * // Translation file: { "title": "Create", "title_edit": "Update" }
389
- * t('title', { context: 'edit' })
390
- * // Resolves to "title_edit" key, returns "Update"
391
- * ```
168
+ * Suffix that selects a variant key: with `context: "edit"`, key `title`
169
+ * resolves `title_edit` when it exists.
392
170
  */
393
171
  context?: string;
394
172
 
395
- /**
396
- * Fallback value when translation key is not found.
397
- * Ensures graceful degradation for missing translations.
398
- */
173
+ /** Value returned when the key is not found. */
399
174
  defaultValue?: T;
400
175
  }
401
176
  | string;
@@ -1,83 +1,16 @@
1
1
  import { KosModelRegistrationBean } from '../../../core';
2
2
  import { TroubleModel, TroubleOptions } from './types';
3
3
  /**
4
- * # Translation
4
+ * Registration for {@link TroubleModel}.
5
5
  *
6
- * The registration bean includes convenience methods for creating and working with TranslationModel instances.
7
- *
8
- * ## type
9
- * The type property is a string that identifies the model type.
10
- * The type is used to identify the model type in the model registry and to narrow down the model type in type predicates. It's most frequently
11
- * used when declaring dependencies on models.
6
+ * `type` identifies the model in the registry and in `@kosDependency` declarations.
7
+ * `factory(id)(options)` creates the model, or returns the existing one when the id is already in use. `predicate` narrows a model to `TroubleModel`.
8
+ * Spread `registration` into an application's model registry.
12
9
  *
13
10
  * @example
14
11
  * ```typescript
15
- *
16
- * @kosDependency({modelType: Translation.type, id: "translationId"})
17
- * private translationModel: TranslationModel;
12
+ * const model = Trouble.factory("troubleId")(options);
18
13
  * ```
19
- *
20
- *
21
- * ## factory
22
- *
23
- * The factory method creates a factory function that can be used to create new TranslationModel instances.
24
- *
25
-
26
- * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
27
- *
28
- * If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
29
- * in this case and the existing model will be returned in its current state.
30
- *
31
- * @example
32
- * ```typescript
33
- * const model = Translation.factory("translationId")({
34
- * // Add option data
35
- * });
36
- * ```
37
-
38
-
39
- *
40
- * ## predicate
41
- *
42
- * [Typescript type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates) function that will identify and narrow down a model to a TranslationModel.
43
- *
44
- * @example
45
- * ```typescript
46
- *
47
- * const model: IKosDataModel = ...; // some model
48
- *
49
- * if (Translation.predicate(model)) {
50
- * // if the function evaluates to true, the model is narrowed down to TranslationModel
51
- * // and the compiler will know that the model has the TranslationModel interface
52
- * model.updateAvailability(false);
53
- * }
54
- * ```
55
- *
56
- * ## registration
57
- *
58
- * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
59
- * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
60
- *
61
- *
62
- * @example
63
- *
64
- * In an application registration file you can declare the model registration as follows:
65
- *
66
- * **registration.ts**
67
- * ```typescript
68
- * import { Translation } from "@kosdev-code/kos-dispense-sdk";
69
- * ...
70
- * import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
71
- * export const kosModels: IKosRegistry["models"] = {
72
- * ...Translation.registration,
73
- * };
74
- * ```
75
- *
76
- * ## registration.singleton
77
-
78
- * The translation model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
79
- * If the factory function is called with an ID that already exists, the existing model will be returned.
80
-
81
- * */
14
+ */
82
15
  export declare const Trouble: Readonly<KosModelRegistrationBean<TroubleModel, TroubleOptions>>;
83
16
  //# sourceMappingURL=trouble-registration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trouble-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/trouble/trouble-registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAG9D,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AACL,eAAO,MAAM,OAAO,EAAE,QAAQ,CAC5B,wBAAwB,CAAC,YAAY,EAAE,cAAc,CAAC,CAWvD,CAAC"}
1
+ {"version":3,"file":"trouble-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/trouble/trouble-registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAG9D,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE5D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO,EAAE,QAAQ,CAC5B,wBAAwB,CAAC,YAAY,EAAE,cAAc,CAAC,CAWvD,CAAC"}