@kosdev-code/kos-ui-sdk 0.1.0-dev.5053

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 (964) hide show
  1. package/common/constants/index.d.ts +27 -0
  2. package/common/constants/index.d.ts.map +1 -0
  3. package/common/events/async-event-bus.d.ts +96 -0
  4. package/common/events/async-event-bus.d.ts.map +1 -0
  5. package/common/events/eventBus.d.ts +77 -0
  6. package/common/events/eventBus.d.ts.map +1 -0
  7. package/common/events/eventBus.functional.d.ts +150 -0
  8. package/common/events/eventBus.functional.d.ts.map +1 -0
  9. package/common/events/eventBus.state.d.ts +118 -0
  10. package/common/events/eventBus.state.d.ts.map +1 -0
  11. package/common/events/index.d.ts +18 -0
  12. package/common/events/index.d.ts.map +1 -0
  13. package/common/file-utils.d.ts +9 -0
  14. package/common/file-utils.d.ts.map +1 -0
  15. package/common/index.d.ts +4 -0
  16. package/common/index.d.ts.map +1 -0
  17. package/common/types/global.d.ts +19 -0
  18. package/core/core/api/index.d.ts +2 -0
  19. package/core/core/api/index.d.ts.map +1 -0
  20. package/core/core/api/wrapPromise.d.ts +14 -0
  21. package/core/core/api/wrapPromise.d.ts.map +1 -0
  22. package/core/core/context/index.d.ts +2 -0
  23. package/core/core/context/index.d.ts.map +1 -0
  24. package/core/core/context/kos-context-manager.d.ts +31 -0
  25. package/core/core/context/kos-context-manager.d.ts.map +1 -0
  26. package/core/core/decorators/index.d.ts +19 -0
  27. package/core/core/decorators/index.d.ts.map +1 -0
  28. package/core/core/decorators/kos-child.d.ts +19 -0
  29. package/core/core/decorators/kos-child.d.ts.map +1 -0
  30. package/core/core/decorators/kos-companion.d.ts +128 -0
  31. package/core/core/decorators/kos-companion.d.ts.map +1 -0
  32. package/core/core/decorators/kos-container-aware.d.ts +465 -0
  33. package/core/core/decorators/kos-container-aware.d.ts.map +1 -0
  34. package/core/core/decorators/kos-context.d.ts +2 -0
  35. package/core/core/decorators/kos-context.d.ts.map +1 -0
  36. package/core/core/decorators/kos-future-aware.d.ts +150 -0
  37. package/core/core/decorators/kos-future-aware.d.ts.map +1 -0
  38. package/core/core/decorators/kos-http-decorators.d.ts +110 -0
  39. package/core/core/decorators/kos-http-decorators.d.ts.map +1 -0
  40. package/core/core/decorators/kos-log.d.ts +11 -0
  41. package/core/core/decorators/kos-log.d.ts.map +1 -0
  42. package/core/core/decorators/kos-logger-aware.d.ts +96 -0
  43. package/core/core/decorators/kos-logger-aware.d.ts.map +1 -0
  44. package/core/core/decorators/kos-model-effect.d.ts +28 -0
  45. package/core/core/decorators/kos-model-effect.d.ts.map +1 -0
  46. package/core/core/decorators/kos-multiple-future-aware.d.ts +193 -0
  47. package/core/core/decorators/kos-multiple-future-aware.d.ts.map +1 -0
  48. package/core/core/decorators/kos-parent.d.ts +11 -0
  49. package/core/core/decorators/kos-parent.d.ts.map +1 -0
  50. package/core/core/decorators/kos-reference.d.ts +6 -0
  51. package/core/core/decorators/kos-reference.d.ts.map +1 -0
  52. package/core/core/decorators/kos-topic-handler-flow-control.d.ts +130 -0
  53. package/core/core/decorators/kos-topic-handler-flow-control.d.ts.map +1 -0
  54. package/core/core/decorators/kos-trouble-aware.d.ts +71 -0
  55. package/core/core/decorators/kos-trouble-aware.d.ts.map +1 -0
  56. package/core/core/decorators/kosDependency.d.ts +16 -0
  57. package/core/core/decorators/kosDependency.d.ts.map +1 -0
  58. package/core/core/decorators/kosModel.d.ts +16 -0
  59. package/core/core/decorators/kosModel.d.ts.map +1 -0
  60. package/core/core/decorators/kosSubscribe.d.ts +9 -0
  61. package/core/core/decorators/kosSubscribe.d.ts.map +1 -0
  62. package/core/core/decorators/kosTopicHandler.d.ts +220 -0
  63. package/core/core/decorators/kosTopicHandler.d.ts.map +1 -0
  64. package/core/core/decorators/propKeys.d.ts +20 -0
  65. package/core/core/decorators/propKeys.d.ts.map +1 -0
  66. package/core/core/decorators/resolve-parameters.d.ts +8 -0
  67. package/core/core/decorators/resolve-parameters.d.ts.map +1 -0
  68. package/core/core/dependency-manager.d.ts +9 -0
  69. package/core/core/dependency-manager.d.ts.map +1 -0
  70. package/core/core/extension/extension-manager.d.ts +45 -0
  71. package/core/core/extension/extension-manager.d.ts.map +1 -0
  72. package/core/core/extension/index.d.ts +4 -0
  73. package/core/core/extension/index.d.ts.map +1 -0
  74. package/core/core/extension/initialize-extension.d.ts +45 -0
  75. package/core/core/extension/initialize-extension.d.ts.map +1 -0
  76. package/core/core/extension/plugin-extension-manager.d.ts +23 -0
  77. package/core/core/extension/plugin-extension-manager.d.ts.map +1 -0
  78. package/core/core/kos-container-index.d.ts +34 -0
  79. package/core/core/kos-container-index.d.ts.map +1 -0
  80. package/core/core/kos-container-model.d.ts +77 -0
  81. package/core/core/kos-container-model.d.ts.map +1 -0
  82. package/core/core/kos-data-container.d.ts +54 -0
  83. package/core/core/kos-data-container.d.ts.map +1 -0
  84. package/core/core/kos-deletion-manager.d.ts +5 -0
  85. package/core/core/kos-deletion-manager.d.ts.map +1 -0
  86. package/core/core/kos-model-factory.d.ts +19 -0
  87. package/core/core/kos-model-factory.d.ts.map +1 -0
  88. package/core/core/kos-registration.d.ts +26 -0
  89. package/core/core/kos-registration.d.ts.map +1 -0
  90. package/core/core/kos-singleton-registration.d.ts +25 -0
  91. package/core/core/kos-singleton-registration.d.ts.map +1 -0
  92. package/core/core/kosCore.d.ts +80 -0
  93. package/core/core/kosCore.d.ts.map +1 -0
  94. package/core/core/kosModel.d.ts +155 -0
  95. package/core/core/kosModel.d.ts.map +1 -0
  96. package/core/core/kosModelManager.d.ts +207 -0
  97. package/core/core/kosModelManager.d.ts.map +1 -0
  98. package/core/core/lifecycle/constants.d.ts +37 -0
  99. package/core/core/lifecycle/constants.d.ts.map +1 -0
  100. package/core/core/lifecycle/index.d.ts +2 -0
  101. package/core/core/lifecycle/index.d.ts.map +1 -0
  102. package/core/core/lifecycle/kosCoreLifecycle.d.ts +86 -0
  103. package/core/core/lifecycle/kosCoreLifecycle.d.ts.map +1 -0
  104. package/core/core/lifecycle/kosModelLifecycle.d.ts +57 -0
  105. package/core/core/lifecycle/kosModelLifecycle.d.ts.map +1 -0
  106. package/core/core/lifecycle/model-active-machine.d.ts +31 -0
  107. package/core/core/lifecycle/model-active-machine.d.ts.map +1 -0
  108. package/core/core/lifecycle/model-machine.d.ts +28 -0
  109. package/core/core/lifecycle/model-machine.d.ts.map +1 -0
  110. package/core/core/lifecycle/model-online-machine.d.ts +19 -0
  111. package/core/core/lifecycle/model-online-machine.d.ts.map +1 -0
  112. package/core/core/log/index.d.ts +2 -0
  113. package/core/core/log/index.d.ts.map +1 -0
  114. package/core/core/log/log.d.ts +36 -0
  115. package/core/core/log/log.d.ts.map +1 -0
  116. package/core/core/model/apply-kos-dev-tool-support.d.ts +2 -0
  117. package/core/core/model/apply-kos-dev-tool-support.d.ts.map +1 -0
  118. package/core/core/model/kos-child-resolver.d.ts +10 -0
  119. package/core/core/model/kos-child-resolver.d.ts.map +1 -0
  120. package/core/core/model/kos-companion-model-manager.d.ts +14 -0
  121. package/core/core/model/kos-companion-model-manager.d.ts.map +1 -0
  122. package/core/core/model/kos-effects-manager.d.ts +14 -0
  123. package/core/core/model/kos-effects-manager.d.ts.map +1 -0
  124. package/core/core/model/kos-fsm-manager.d.ts +24 -0
  125. package/core/core/model/kos-fsm-manager.d.ts.map +1 -0
  126. package/core/core/model/kos-http-route-manager.d.ts +85 -0
  127. package/core/core/model/kos-http-route-manager.d.ts.map +1 -0
  128. package/core/core/model/kos-logger-factory.d.ts +9 -0
  129. package/core/core/model/kos-logger-factory.d.ts.map +1 -0
  130. package/core/core/model/kos-model-component-factory.d.ts +25 -0
  131. package/core/core/model/kos-model-component-factory.d.ts.map +1 -0
  132. package/core/core/model/kos-offline-queue.d.ts +17 -0
  133. package/core/core/model/kos-offline-queue.d.ts.map +1 -0
  134. package/core/core/model/kos-online-lifecycle-manager.d.ts +12 -0
  135. package/core/core/model/kos-online-lifecycle-manager.d.ts.map +1 -0
  136. package/core/core/model/kos-subscription-manager.d.ts +31 -0
  137. package/core/core/model/kos-subscription-manager.d.ts.map +1 -0
  138. package/core/core/model/logger-utils.d.ts +9 -0
  139. package/core/core/model/logger-utils.d.ts.map +1 -0
  140. package/core/core/model/model-introspection-utils.d.ts +6 -0
  141. package/core/core/model/model-introspection-utils.d.ts.map +1 -0
  142. package/core/core/model-cache.d.ts +28 -0
  143. package/core/core/model-cache.d.ts.map +1 -0
  144. package/core/core/model-instantiator.d.ts +15 -0
  145. package/core/core/model-instantiator.d.ts.map +1 -0
  146. package/core/core/model-registry.d.ts +16 -0
  147. package/core/core/model-registry.d.ts.map +1 -0
  148. package/core/core/models/index.d.ts +2 -0
  149. package/core/core/models/index.d.ts.map +1 -0
  150. package/core/core/models/kos-core/index.d.ts +12 -0
  151. package/core/core/models/kos-core/index.d.ts.map +1 -0
  152. package/core/core/models/kos-token/index.d.ts +11 -0
  153. package/core/core/models/kos-token/index.d.ts.map +1 -0
  154. package/core/core/registration/base-kos-model-registration.d.ts +10 -0
  155. package/core/core/registration/base-kos-model-registration.d.ts.map +1 -0
  156. package/core/core/registration/index.d.ts +5 -0
  157. package/core/core/registration/index.d.ts.map +1 -0
  158. package/core/core/registration/model-registration.d.ts +45 -0
  159. package/core/core/registration/model-registration.d.ts.map +1 -0
  160. package/core/core/registration/registration-manager.d.ts +41 -0
  161. package/core/core/registration/registration-manager.d.ts.map +1 -0
  162. package/core/core/registration/singleton-kos-model-registration-factory.d.ts +10 -0
  163. package/core/core/registration/singleton-kos-model-registration-factory.d.ts.map +1 -0
  164. package/core/core/services/app-startup-service.d.ts +74 -0
  165. package/core/core/services/app-startup-service.d.ts.map +1 -0
  166. package/core/core/services/browser-router.d.ts +66 -0
  167. package/core/core/services/browser-router.d.ts.map +1 -0
  168. package/core/core/services/index.d.ts +5 -0
  169. package/core/core/services/index.d.ts.map +1 -0
  170. package/core/core/services/intent-service.d.ts +55 -0
  171. package/core/core/services/intent-service.d.ts.map +1 -0
  172. package/core/core/transport/base-message-transport.d.ts +53 -0
  173. package/core/core/transport/base-message-transport.d.ts.map +1 -0
  174. package/core/core/transport/bridge-message-transport.d.ts +7 -0
  175. package/core/core/transport/bridge-message-transport.d.ts.map +1 -0
  176. package/core/core/transport/bridge-transport.d.ts +29 -0
  177. package/core/core/transport/bridge-transport.d.ts.map +1 -0
  178. package/core/core/transport/detect-wakeup.d.ts +2 -0
  179. package/core/core/transport/detect-wakeup.d.ts.map +1 -0
  180. package/core/core/transport/fos-message-transport.d.ts +7 -0
  181. package/core/core/transport/fos-message-transport.d.ts.map +1 -0
  182. package/core/core/transport/index.d.ts +3 -0
  183. package/core/core/transport/index.d.ts.map +1 -0
  184. package/core/core/transport/kos-message-transport.d.ts +7 -0
  185. package/core/core/transport/kos-message-transport.d.ts.map +1 -0
  186. package/core/core/transport/transport-factory.d.ts +27 -0
  187. package/core/core/transport/transport-factory.d.ts.map +1 -0
  188. package/core/core/transport/transport.d.ts +12 -0
  189. package/core/core/transport/transport.d.ts.map +1 -0
  190. package/core/core/transport/web-socket-transport-adapter.d.ts +6 -0
  191. package/core/core/transport/web-socket-transport-adapter.d.ts.map +1 -0
  192. package/core/core/transport/webSocketTransport.d.ts +84 -0
  193. package/core/core/transport/webSocketTransport.d.ts.map +1 -0
  194. package/core/core/types/index.d.ts +4 -0
  195. package/core/core/types/index.d.ts.map +1 -0
  196. package/core/core/types/kos-model-manager-types.d.ts +33 -0
  197. package/core/core/types/kos-model-manager-types.d.ts.map +1 -0
  198. package/core/core/types/model.d.ts +26 -0
  199. package/core/core/types/model.d.ts.map +1 -0
  200. package/core/core/types/registration.d.ts +54 -0
  201. package/core/core/types/registration.d.ts.map +1 -0
  202. package/core/core/types/serviceTypes.d.ts +9 -0
  203. package/core/core/types/serviceTypes.d.ts.map +1 -0
  204. package/core/index.d.ts +61 -0
  205. package/core/index.d.ts.map +1 -0
  206. package/core/lib/kos-ui-core.d.ts +2 -0
  207. package/core/lib/kos-ui-core.d.ts.map +1 -0
  208. package/core/mocks/browser.d.ts +3 -0
  209. package/core/mocks/browser.d.ts.map +1 -0
  210. package/core/mocks/handlers.d.ts +3 -0
  211. package/core/mocks/handlers.d.ts.map +1 -0
  212. package/core/mocks/server.d.ts +3 -0
  213. package/core/mocks/server.d.ts.map +1 -0
  214. package/core/types/global.d.ts +68 -0
  215. package/core/types/index.d.ts +4 -0
  216. package/core/types/index.d.ts.map +1 -0
  217. package/core/types/kos-dependency.d.ts +21 -0
  218. package/core/types/kos-dependency.d.ts.map +1 -0
  219. package/core/types/model.d.ts +100 -0
  220. package/core/types/model.d.ts.map +1 -0
  221. package/core/types/utils/kos-fetch.d.ts +134 -0
  222. package/core/types/utils/kos-fetch.d.ts.map +1 -0
  223. package/core/util/api-request-id.d.ts +2 -0
  224. package/core/util/api-request-id.d.ts.map +1 -0
  225. package/core/util/apply-mixins.d.ts +2 -0
  226. package/core/util/apply-mixins.d.ts.map +1 -0
  227. package/core/util/array-utils.d.ts +2 -0
  228. package/core/util/array-utils.d.ts.map +1 -0
  229. package/core/util/await-first-matching-when.d.ts +5 -0
  230. package/core/util/await-first-matching-when.d.ts.map +1 -0
  231. package/core/util/binary-utils.d.ts +44 -0
  232. package/core/util/binary-utils.d.ts.map +1 -0
  233. package/core/util/container-utils.d.ts +119 -0
  234. package/core/util/container-utils.d.ts.map +1 -0
  235. package/core/util/cycle-detection.d.ts +12 -0
  236. package/core/util/cycle-detection.d.ts.map +1 -0
  237. package/core/util/date-utils.d.ts +104 -0
  238. package/core/util/date-utils.d.ts.map +1 -0
  239. package/core/util/debounce.d.ts +19 -0
  240. package/core/util/debounce.d.ts.map +1 -0
  241. package/core/util/feature-flags.d.ts +16 -0
  242. package/core/util/feature-flags.d.ts.map +1 -0
  243. package/core/util/get-query-params.d.ts +2 -0
  244. package/core/util/get-query-params.d.ts.map +1 -0
  245. package/core/util/hsl-to-hex.d.ts +5 -0
  246. package/core/util/hsl-to-hex.d.ts.map +1 -0
  247. package/core/util/index.d.ts +32 -0
  248. package/core/util/index.d.ts.map +1 -0
  249. package/core/util/kos-config-init.d.ts +15 -0
  250. package/core/util/kos-config-init.d.ts.map +1 -0
  251. package/core/util/kos-core-utils.d.ts +4 -0
  252. package/core/util/kos-core-utils.d.ts.map +1 -0
  253. package/core/util/kos-data-mapper-utils.d.ts +14 -0
  254. package/core/util/kos-data-mapper-utils.d.ts.map +1 -0
  255. package/core/util/kos-fetch.d.ts +18 -0
  256. package/core/util/kos-fetch.d.ts.map +1 -0
  257. package/core/util/kos-message-utils.d.ts +34 -0
  258. package/core/util/kos-message-utils.d.ts.map +1 -0
  259. package/core/util/kos-model-formatter.d.ts +21 -0
  260. package/core/util/kos-model-formatter.d.ts.map +1 -0
  261. package/core/util/kos-model-utils.d.ts +101 -0
  262. package/core/util/kos-model-utils.d.ts.map +1 -0
  263. package/core/util/kos-model-visitor.d.ts +41 -0
  264. package/core/util/kos-model-visitor.d.ts.map +1 -0
  265. package/core/util/kos-service-request.d.ts +65 -0
  266. package/core/util/kos-service-request.d.ts.map +1 -0
  267. package/core/util/log-utils.d.ts +6 -0
  268. package/core/util/log-utils.d.ts.map +1 -0
  269. package/core/util/logger-plugin.d.ts +2 -0
  270. package/core/util/logger-plugin.d.ts.map +1 -0
  271. package/core/util/middleware.d.ts +14 -0
  272. package/core/util/middleware.d.ts.map +1 -0
  273. package/core/util/model-attribute-utils.d.ts +37 -0
  274. package/core/util/model-attribute-utils.d.ts.map +1 -0
  275. package/core/util/model-factory.d.ts +5 -0
  276. package/core/util/model-factory.d.ts.map +1 -0
  277. package/core/util/model-registration-utils.d.ts +6 -0
  278. package/core/util/model-registration-utils.d.ts.map +1 -0
  279. package/core/util/model-utils.d.ts +45 -0
  280. package/core/util/model-utils.d.ts.map +1 -0
  281. package/core/util/observable-proxy-map.d.ts +10 -0
  282. package/core/util/observable-proxy-map.d.ts.map +1 -0
  283. package/core/util/paired-client-heartbeat.d.ts +18 -0
  284. package/core/util/paired-client-heartbeat.d.ts.map +1 -0
  285. package/core/util/pipe.d.ts +4 -0
  286. package/core/util/pipe.d.ts.map +1 -0
  287. package/core/util/reference-cache.d.ts +17 -0
  288. package/core/util/reference-cache.d.ts.map +1 -0
  289. package/core/util/retry-with-exponential-backoff.d.ts +18 -0
  290. package/core/util/retry-with-exponential-backoff.d.ts.map +1 -0
  291. package/core/util/service-factory.d.ts +177 -0
  292. package/core/util/service-factory.d.ts.map +1 -0
  293. package/core/util/session-utils.d.ts +3 -0
  294. package/core/util/session-utils.d.ts.map +1 -0
  295. package/core/util/setRandomInterval.d.ts +5 -0
  296. package/core/util/setRandomInterval.d.ts.map +1 -0
  297. package/core/util/wait-for-request.d.ts +15 -0
  298. package/core/util/wait-for-request.d.ts.map +1 -0
  299. package/core/util/when-ready.d.ts +21 -0
  300. package/core/util/when-ready.d.ts.map +1 -0
  301. package/index.cjs +198 -0
  302. package/index.cjs.map +1 -0
  303. package/index.d.cts +10 -0
  304. package/index.d.ts +10 -0
  305. package/index.d.ts.map +1 -0
  306. package/index.js +17032 -0
  307. package/index.js.map +1 -0
  308. package/models/constants/index.d.ts +18 -0
  309. package/models/constants/index.d.ts.map +1 -0
  310. package/models/decorators/future-service.d.ts +14 -0
  311. package/models/decorators/future-service.d.ts.map +1 -0
  312. package/models/decorators/index.d.ts +6 -0
  313. package/models/decorators/index.d.ts.map +1 -0
  314. package/models/decorators/kos-config-bean-prop.d.ts +42 -0
  315. package/models/decorators/kos-config-bean-prop.d.ts.map +1 -0
  316. package/models/decorators/kos-config-bean.d.ts +8 -0
  317. package/models/decorators/kos-config-bean.d.ts.map +1 -0
  318. package/models/decorators/kos-state-bean.d.ts +6 -0
  319. package/models/decorators/kos-state-bean.d.ts.map +1 -0
  320. package/models/decorators/kos-state-prop.d.ts +10 -0
  321. package/models/decorators/kos-state-prop.d.ts.map +1 -0
  322. package/models/index.d.ts +13 -0
  323. package/models/index.d.ts.map +1 -0
  324. package/models/model.d.ts +7 -0
  325. package/models/models/browser-router/browser-router-model.d.ts +116 -0
  326. package/models/models/browser-router/browser-router-model.d.ts.map +1 -0
  327. package/models/models/browser-router/browser-router-registration.d.ts +89 -0
  328. package/models/models/browser-router/browser-router-registration.d.ts.map +1 -0
  329. package/models/models/browser-router/index.d.ts +4 -0
  330. package/models/models/browser-router/index.d.ts.map +1 -0
  331. package/models/models/browser-router/types/index.d.ts +25 -0
  332. package/models/models/browser-router/utils/index.d.ts +2 -0
  333. package/models/models/browser-router/utils/index.d.ts.map +1 -0
  334. package/models/models/browser-router/utils/init-kos-browser-router.d.ts +2 -0
  335. package/models/models/browser-router/utils/init-kos-browser-router.d.ts.map +1 -0
  336. package/models/models/canvas-dispatcher/canvas-dispatcher-model.d.ts +29 -0
  337. package/models/models/canvas-dispatcher/canvas-dispatcher-model.d.ts.map +1 -0
  338. package/models/models/canvas-dispatcher/canvas-dispatcher-registration.d.ts +89 -0
  339. package/models/models/canvas-dispatcher/canvas-dispatcher-registration.d.ts.map +1 -0
  340. package/models/models/canvas-dispatcher/index.d.ts +5 -0
  341. package/models/models/canvas-dispatcher/index.d.ts.map +1 -0
  342. package/models/models/canvas-dispatcher/services/canvas-dispatcher-services.d.ts +8 -0
  343. package/models/models/canvas-dispatcher/services/canvas-dispatcher-services.d.ts.map +1 -0
  344. package/models/models/canvas-dispatcher/services/index.d.ts +2 -0
  345. package/models/models/canvas-dispatcher/services/index.d.ts.map +1 -0
  346. package/models/models/canvas-dispatcher/types/index.d.ts +192 -0
  347. package/models/models/canvas-dispatcher/utils/color-utils.d.ts +34 -0
  348. package/models/models/canvas-dispatcher/utils/color-utils.d.ts.map +1 -0
  349. package/models/models/canvas-dispatcher/utils/encode-frame.d.ts +14 -0
  350. package/models/models/canvas-dispatcher/utils/encode-frame.d.ts.map +1 -0
  351. package/models/models/canvas-dispatcher/utils/renderers/base/canvas-2d-renderer.d.ts +37 -0
  352. package/models/models/canvas-dispatcher/utils/renderers/base/canvas-2d-renderer.d.ts.map +1 -0
  353. package/models/models/canvas-dispatcher/utils/renderers/base/gradient-base-renderer.d.ts +2 -0
  354. package/models/models/canvas-dispatcher/utils/renderers/base/gradient-base-renderer.d.ts.map +1 -0
  355. package/models/models/canvas-dispatcher/utils/renderers/base/video-base-renderer.d.ts +71 -0
  356. package/models/models/canvas-dispatcher/utils/renderers/base/video-base-renderer.d.ts.map +1 -0
  357. package/models/models/canvas-dispatcher/utils/renderers/base/webgl-base-renderer.d.ts +51 -0
  358. package/models/models/canvas-dispatcher/utils/renderers/base/webgl-base-renderer.d.ts.map +1 -0
  359. package/models/models/canvas-dispatcher/utils/renderers/drop-renderer.d.ts +60 -0
  360. package/models/models/canvas-dispatcher/utils/renderers/drop-renderer.d.ts.map +1 -0
  361. package/models/models/canvas-dispatcher/utils/renderers/gradient-renderer.d.ts +22 -0
  362. package/models/models/canvas-dispatcher/utils/renderers/gradient-renderer.d.ts.map +1 -0
  363. package/models/models/canvas-dispatcher/utils/renderers/image-renderer.d.ts +15 -0
  364. package/models/models/canvas-dispatcher/utils/renderers/image-renderer.d.ts.map +1 -0
  365. package/models/models/canvas-dispatcher/utils/renderers/looping-video-renderer.d.ts +30 -0
  366. package/models/models/canvas-dispatcher/utils/renderers/looping-video-renderer.d.ts.map +1 -0
  367. package/models/models/canvas-dispatcher/utils/renderers/matrix-renderer.d.ts +44 -0
  368. package/models/models/canvas-dispatcher/utils/renderers/matrix-renderer.d.ts.map +1 -0
  369. package/models/models/canvas-dispatcher/utils/renderers/mixins/one-shot-renderer-mixin.d.ts +5 -0
  370. package/models/models/canvas-dispatcher/utils/renderers/mixins/one-shot-renderer-mixin.d.ts.map +1 -0
  371. package/models/models/canvas-dispatcher/utils/renderers/overlay-renderer.d.ts +76 -0
  372. package/models/models/canvas-dispatcher/utils/renderers/overlay-renderer.d.ts.map +1 -0
  373. package/models/models/canvas-dispatcher/utils/renderers/renderer-factory.d.ts +25 -0
  374. package/models/models/canvas-dispatcher/utils/renderers/renderer-factory.d.ts.map +1 -0
  375. package/models/models/canvas-dispatcher/utils/renderers/scrolling-image-renderer.d.ts +46 -0
  376. package/models/models/canvas-dispatcher/utils/renderers/scrolling-image-renderer.d.ts.map +1 -0
  377. package/models/models/canvas-dispatcher/utils/renderers/scrolling-text-renderer.d.ts +56 -0
  378. package/models/models/canvas-dispatcher/utils/renderers/scrolling-text-renderer.d.ts.map +1 -0
  379. package/models/models/canvas-dispatcher/utils/renderers/sequence-renderer.d.ts +46 -0
  380. package/models/models/canvas-dispatcher/utils/renderers/sequence-renderer.d.ts.map +1 -0
  381. package/models/models/canvas-dispatcher/utils/renderers/solid-color-renderer.d.ts +21 -0
  382. package/models/models/canvas-dispatcher/utils/renderers/solid-color-renderer.d.ts.map +1 -0
  383. package/models/models/canvas-dispatcher/utils/renderers/sweep-renderer.d.ts +52 -0
  384. package/models/models/canvas-dispatcher/utils/renderers/sweep-renderer.d.ts.map +1 -0
  385. package/models/models/canvas-dispatcher/utils/renderers/swirl-renderer.d.ts +13 -0
  386. package/models/models/canvas-dispatcher/utils/renderers/swirl-renderer.d.ts.map +1 -0
  387. package/models/models/canvas-renderer/canvas-renderer-model.d.ts +49 -0
  388. package/models/models/canvas-renderer/canvas-renderer-model.d.ts.map +1 -0
  389. package/models/models/canvas-renderer/canvas-renderer-registration.d.ts +87 -0
  390. package/models/models/canvas-renderer/canvas-renderer-registration.d.ts.map +1 -0
  391. package/models/models/canvas-renderer/index.d.ts +4 -0
  392. package/models/models/canvas-renderer/index.d.ts.map +1 -0
  393. package/models/models/canvas-renderer/types/index.d.ts +8 -0
  394. package/models/models/config-bean/config-bean-model-builder.d.ts +59 -0
  395. package/models/models/config-bean/config-bean-model-builder.d.ts.map +1 -0
  396. package/models/models/config-bean/config-bean-model.d.ts +179 -0
  397. package/models/models/config-bean/config-bean-model.d.ts.map +1 -0
  398. package/models/models/config-bean/config-bean-types.d.ts +69 -0
  399. package/models/models/config-bean/config-bean-types.d.ts.map +1 -0
  400. package/models/models/config-bean/index.d.ts +4 -0
  401. package/models/models/config-bean/index.d.ts.map +1 -0
  402. package/models/models/config-bean/types/index.d.ts +33 -0
  403. package/models/models/config-bean-prop/config-bean-prop-model.d.ts +197 -0
  404. package/models/models/config-bean-prop/config-bean-prop-model.d.ts.map +1 -0
  405. package/models/models/config-bean-prop/config-options-factory.d.ts +6 -0
  406. package/models/models/config-bean-prop/config-options-factory.d.ts.map +1 -0
  407. package/models/models/config-bean-prop/index.d.ts +3 -0
  408. package/models/models/config-bean-prop/index.d.ts.map +1 -0
  409. package/models/models/config-bean-prop/types/index.d.ts +352 -0
  410. package/models/models/device/device-model.d.ts +258 -0
  411. package/models/models/device/device-model.d.ts.map +1 -0
  412. package/models/models/device/device-registration.d.ts +102 -0
  413. package/models/models/device/device-registration.d.ts.map +1 -0
  414. package/models/models/device/index.d.ts +5 -0
  415. package/models/models/device/index.d.ts.map +1 -0
  416. package/models/models/device/services/device-services.d.ts +21 -0
  417. package/models/models/device/services/device-services.d.ts.map +1 -0
  418. package/models/models/device/services/index.d.ts +2 -0
  419. package/models/models/device/services/index.d.ts.map +1 -0
  420. package/models/models/device/types/index.d.ts +46 -0
  421. package/models/models/future/future-aware.d.ts +115 -0
  422. package/models/models/future/future-aware.d.ts.map +1 -0
  423. package/models/models/future/future-factory.d.ts +5 -0
  424. package/models/models/future/future-factory.d.ts.map +1 -0
  425. package/models/models/future/future-model-builder.d.ts +76 -0
  426. package/models/models/future/future-model-builder.d.ts.map +1 -0
  427. package/models/models/future/future-model.d.ts +95 -0
  428. package/models/models/future/future-model.d.ts.map +1 -0
  429. package/models/models/future/future-types.d.ts +265 -0
  430. package/models/models/future/future-types.d.ts.map +1 -0
  431. package/models/models/future/index.d.ts +6 -0
  432. package/models/models/future/index.d.ts.map +1 -0
  433. package/models/models/future-container/future-container-factory.d.ts +5 -0
  434. package/models/models/future-container/future-container-factory.d.ts.map +1 -0
  435. package/models/models/future-container/future-container-model.d.ts +124 -0
  436. package/models/models/future-container/future-container-model.d.ts.map +1 -0
  437. package/models/models/future-container/future-container-types.d.ts +109 -0
  438. package/models/models/future-container/future-container-types.d.ts.map +1 -0
  439. package/models/models/future-container/index.d.ts +4 -0
  440. package/models/models/future-container/index.d.ts.map +1 -0
  441. package/models/models/index.d.ts +22 -0
  442. package/models/models/index.d.ts.map +1 -0
  443. package/models/models/key-value/index.d.ts +9 -0
  444. package/models/models/key-value/index.d.ts.map +1 -0
  445. package/models/models/key-value/key-value-model.d.ts +130 -0
  446. package/models/models/key-value/key-value-model.d.ts.map +1 -0
  447. package/models/models/key-value/key-value-registration.d.ts +89 -0
  448. package/models/models/key-value/key-value-registration.d.ts.map +1 -0
  449. package/models/models/key-value/services/index.d.ts +2 -0
  450. package/models/models/key-value/services/index.d.ts.map +1 -0
  451. package/models/models/key-value/services/key-value-services.d.ts +140 -0
  452. package/models/models/key-value/services/key-value-services.d.ts.map +1 -0
  453. package/models/models/key-value/types/index.d.ts +59 -0
  454. package/models/models/kos-core/index.d.ts +11 -0
  455. package/models/models/kos-core/index.d.ts.map +1 -0
  456. package/models/models/kos-expression-evaluator/index.d.ts +4 -0
  457. package/models/models/kos-expression-evaluator/index.d.ts.map +1 -0
  458. package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts +209 -0
  459. package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts.map +1 -0
  460. package/models/models/kos-expression-evaluator/services/index.d.ts +6 -0
  461. package/models/models/kos-expression-evaluator/services/index.d.ts.map +1 -0
  462. package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts +15 -0
  463. package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts.map +1 -0
  464. package/models/models/kos-expression-evaluator/types/index.d.ts +1 -0
  465. package/models/models/kos-log-manager/index.d.ts +5 -0
  466. package/models/models/kos-log-manager/index.d.ts.map +1 -0
  467. package/models/models/kos-log-manager/kos-log-manager-model.d.ts +139 -0
  468. package/models/models/kos-log-manager/kos-log-manager-model.d.ts.map +1 -0
  469. package/models/models/kos-log-manager/kos-log-manager-registration.d.ts +92 -0
  470. package/models/models/kos-log-manager/kos-log-manager-registration.d.ts.map +1 -0
  471. package/models/models/kos-log-manager/services/index.d.ts +2 -0
  472. package/models/models/kos-log-manager/services/index.d.ts.map +1 -0
  473. package/models/models/kos-log-manager/services/kos-log-manager-services.d.ts +12 -0
  474. package/models/models/kos-log-manager/services/kos-log-manager-services.d.ts.map +1 -0
  475. package/models/models/kos-log-manager/types/index.d.ts +201 -0
  476. package/models/models/kos-time/index.d.ts +5 -0
  477. package/models/models/kos-time/index.d.ts.map +1 -0
  478. package/models/models/kos-time/kos-time-model.d.ts +100 -0
  479. package/models/models/kos-time/kos-time-model.d.ts.map +1 -0
  480. package/models/models/kos-time/kos-time-registration.d.ts +87 -0
  481. package/models/models/kos-time/kos-time-registration.d.ts.map +1 -0
  482. package/models/models/kos-time/services/index.d.ts +2 -0
  483. package/models/models/kos-time/services/index.d.ts.map +1 -0
  484. package/models/models/kos-time/services/kos-time-services.d.ts +16 -0
  485. package/models/models/kos-time/services/kos-time-services.d.ts.map +1 -0
  486. package/models/models/kos-time/types/index.d.ts +93 -0
  487. package/models/models/kos-token/index.d.ts +11 -0
  488. package/models/models/kos-token/index.d.ts.map +1 -0
  489. package/models/models/log-block/index.d.ts +6 -0
  490. package/models/models/log-block/index.d.ts.map +1 -0
  491. package/models/models/log-block/log-block-container-model.d.ts +155 -0
  492. package/models/models/log-block/log-block-container-model.d.ts.map +1 -0
  493. package/models/models/log-block/log-block-container-registration.d.ts +87 -0
  494. package/models/models/log-block/log-block-container-registration.d.ts.map +1 -0
  495. package/models/models/log-block/log-block-model.d.ts +213 -0
  496. package/models/models/log-block/log-block-model.d.ts.map +1 -0
  497. package/models/models/log-block/log-block-registration.d.ts +87 -0
  498. package/models/models/log-block/log-block-registration.d.ts.map +1 -0
  499. package/models/models/log-block/types/index.d.ts +167 -0
  500. package/models/models/log-stream/index.d.ts +11 -0
  501. package/models/models/log-stream/index.d.ts.map +1 -0
  502. package/models/models/log-stream/log-stream-container-model.d.ts +97 -0
  503. package/models/models/log-stream/log-stream-container-model.d.ts.map +1 -0
  504. package/models/models/log-stream/log-stream-container-registration.d.ts +87 -0
  505. package/models/models/log-stream/log-stream-container-registration.d.ts.map +1 -0
  506. package/models/models/log-stream/log-stream-model.d.ts +93 -0
  507. package/models/models/log-stream/log-stream-model.d.ts.map +1 -0
  508. package/models/models/log-stream/log-stream-registration.d.ts +87 -0
  509. package/models/models/log-stream/log-stream-registration.d.ts.map +1 -0
  510. package/models/models/log-stream/services/index.d.ts +2 -0
  511. package/models/models/log-stream/services/index.d.ts.map +1 -0
  512. package/models/models/log-stream/services/log-stream-services.d.ts +23 -0
  513. package/models/models/log-stream/services/log-stream-services.d.ts.map +1 -0
  514. package/models/models/log-stream/types/index.d.ts +86 -0
  515. package/models/models/network-interface/index.d.ts +11 -0
  516. package/models/models/network-interface/index.d.ts.map +1 -0
  517. package/models/models/network-interface/network-interface-container-model.d.ts +83 -0
  518. package/models/models/network-interface/network-interface-container-model.d.ts.map +1 -0
  519. package/models/models/network-interface/network-interface-container-registration.d.ts +87 -0
  520. package/models/models/network-interface/network-interface-container-registration.d.ts.map +1 -0
  521. package/models/models/network-interface/network-interface-model.d.ts +102 -0
  522. package/models/models/network-interface/network-interface-model.d.ts.map +1 -0
  523. package/models/models/network-interface/network-interface-registration.d.ts +87 -0
  524. package/models/models/network-interface/network-interface-registration.d.ts.map +1 -0
  525. package/models/models/network-interface/services/index.d.ts +2 -0
  526. package/models/models/network-interface/services/index.d.ts.map +1 -0
  527. package/models/models/network-interface/services/network-interface-services.d.ts +100 -0
  528. package/models/models/network-interface/services/network-interface-services.d.ts.map +1 -0
  529. package/models/models/network-interface/types/index.d.ts +31 -0
  530. package/models/models/ota/index.d.ts +4 -0
  531. package/models/models/ota/index.d.ts.map +1 -0
  532. package/models/models/ota/ota-model.d.ts +105 -0
  533. package/models/models/ota/ota-model.d.ts.map +1 -0
  534. package/models/models/ota/ota-registration.d.ts +89 -0
  535. package/models/models/ota/ota-registration.d.ts.map +1 -0
  536. package/models/models/ota/services/index.d.ts +2 -0
  537. package/models/models/ota/services/index.d.ts.map +1 -0
  538. package/models/models/ota/services/ota-services.d.ts +8 -0
  539. package/models/models/ota/services/ota-services.d.ts.map +1 -0
  540. package/models/models/ota/types/index.d.ts +202 -0
  541. package/models/models/region-info/index.d.ts +5 -0
  542. package/models/models/region-info/index.d.ts.map +1 -0
  543. package/models/models/region-info/region-info-model.d.ts +99 -0
  544. package/models/models/region-info/region-info-model.d.ts.map +1 -0
  545. package/models/models/region-info/services/index.d.ts +2 -0
  546. package/models/models/region-info/services/index.d.ts.map +1 -0
  547. package/models/models/region-info/services/region-info-services.d.ts +48 -0
  548. package/models/models/region-info/services/region-info-services.d.ts.map +1 -0
  549. package/models/models/region-info/types/index.d.ts +296 -0
  550. package/models/models/region-info/types/index.d.ts.map +1 -0
  551. package/models/models/region-info/utils/unit-system-utils.d.ts +4 -0
  552. package/models/models/region-info/utils/unit-system-utils.d.ts.map +1 -0
  553. package/models/models/software-info/index.d.ts +4 -0
  554. package/models/models/software-info/index.d.ts.map +1 -0
  555. package/models/models/software-info/services/index.d.ts +2 -0
  556. package/models/models/software-info/services/index.d.ts.map +1 -0
  557. package/models/models/software-info/services/software-info-services.d.ts +44 -0
  558. package/models/models/software-info/services/software-info-services.d.ts.map +1 -0
  559. package/models/models/software-info/software-info-model.d.ts +86 -0
  560. package/models/models/software-info/software-info-model.d.ts.map +1 -0
  561. package/models/models/software-info/software-info-registration.d.ts +84 -0
  562. package/models/models/software-info/software-info-registration.d.ts.map +1 -0
  563. package/models/models/software-info/types/index.d.ts +67 -0
  564. package/models/models/state-bean/index.d.ts +4 -0
  565. package/models/models/state-bean/index.d.ts.map +1 -0
  566. package/models/models/state-bean/services/index.d.ts +2 -0
  567. package/models/models/state-bean/services/index.d.ts.map +1 -0
  568. package/models/models/state-bean/services/state-bean-services.d.ts +14 -0
  569. package/models/models/state-bean/services/state-bean-services.d.ts.map +1 -0
  570. package/models/models/state-bean/state-bean-model.d.ts +106 -0
  571. package/models/models/state-bean/state-bean-model.d.ts.map +1 -0
  572. package/models/models/state-bean/state-bean-registration.d.ts +84 -0
  573. package/models/models/state-bean/state-bean-registration.d.ts.map +1 -0
  574. package/models/models/state-bean/types/index.d.ts +132 -0
  575. package/models/models/state-prop/index.d.ts +4 -0
  576. package/models/models/state-prop/index.d.ts.map +1 -0
  577. package/models/models/state-prop/services/index.d.ts +2 -0
  578. package/models/models/state-prop/services/index.d.ts.map +1 -0
  579. package/models/models/state-prop/services/state-prop-services.d.ts +11 -0
  580. package/models/models/state-prop/services/state-prop-services.d.ts.map +1 -0
  581. package/models/models/state-prop/state-prop-model.d.ts +96 -0
  582. package/models/models/state-prop/state-prop-model.d.ts.map +1 -0
  583. package/models/models/state-prop/state-prop-registration.d.ts +84 -0
  584. package/models/models/state-prop/state-prop-registration.d.ts.map +1 -0
  585. package/models/models/state-prop/types/index.d.ts +68 -0
  586. package/models/models/storage-device/index.d.ts +7 -0
  587. package/models/models/storage-device/index.d.ts.map +1 -0
  588. package/models/models/storage-device/services/index.d.ts +2 -0
  589. package/models/models/storage-device/services/index.d.ts.map +1 -0
  590. package/models/models/storage-device/services/storage-device-services.d.ts +23 -0
  591. package/models/models/storage-device/services/storage-device-services.d.ts.map +1 -0
  592. package/models/models/storage-device/storage-device-container-model.d.ts +318 -0
  593. package/models/models/storage-device/storage-device-container-model.d.ts.map +1 -0
  594. package/models/models/storage-device/storage-device-container-registration.d.ts +86 -0
  595. package/models/models/storage-device/storage-device-container-registration.d.ts.map +1 -0
  596. package/models/models/storage-device/storage-device-model.d.ts +109 -0
  597. package/models/models/storage-device/storage-device-model.d.ts.map +1 -0
  598. package/models/models/storage-device/storage-device-registration.d.ts +87 -0
  599. package/models/models/storage-device/storage-device-registration.d.ts.map +1 -0
  600. package/models/models/storage-device/types/index.d.ts +132 -0
  601. package/models/models/studio-properties/index.d.ts +5 -0
  602. package/models/models/studio-properties/index.d.ts.map +1 -0
  603. package/models/models/studio-properties/services/index.d.ts +2 -0
  604. package/models/models/studio-properties/services/index.d.ts.map +1 -0
  605. package/models/models/studio-properties/services/studio-properties-services.d.ts +15 -0
  606. package/models/models/studio-properties/services/studio-properties-services.d.ts.map +1 -0
  607. package/models/models/studio-properties/studio-properties-model.d.ts +97 -0
  608. package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -0
  609. package/models/models/studio-properties/studio-properties-registration.d.ts +87 -0
  610. package/models/models/studio-properties/studio-properties-registration.d.ts.map +1 -0
  611. package/models/models/studio-properties/types/index.d.ts +32 -0
  612. package/models/models/translation/constants.d.ts +2 -0
  613. package/models/models/translation/constants.d.ts.map +1 -0
  614. package/models/models/translation/index.d.ts +9 -0
  615. package/models/models/translation/index.d.ts.map +1 -0
  616. package/models/models/translation/services/index.d.ts +2 -0
  617. package/models/models/translation/services/index.d.ts.map +1 -0
  618. package/models/models/translation/services/translation-services.d.ts +151 -0
  619. package/models/models/translation/services/translation-services.d.ts.map +1 -0
  620. package/models/models/translation/translation-container-model.d.ts +126 -0
  621. package/models/models/translation/translation-container-model.d.ts.map +1 -0
  622. package/models/models/translation/translation-container-registration.d.ts +88 -0
  623. package/models/models/translation/translation-container-registration.d.ts.map +1 -0
  624. package/models/models/translation/translation-context.d.ts +12 -0
  625. package/models/models/translation/translation-context.d.ts.map +1 -0
  626. package/models/models/translation/translation-model.d.ts +154 -0
  627. package/models/models/translation/translation-model.d.ts.map +1 -0
  628. package/models/models/translation/translation-registration.d.ts +85 -0
  629. package/models/models/translation/translation-registration.d.ts.map +1 -0
  630. package/models/models/translation/types/index.d.ts +383 -0
  631. package/models/models/trouble/handlers/resolvable-trouble-handler.d.ts +16 -0
  632. package/models/models/trouble/handlers/resolvable-trouble-handler.d.ts.map +1 -0
  633. package/models/models/trouble/index.d.ts +9 -0
  634. package/models/models/trouble/index.d.ts.map +1 -0
  635. package/models/models/trouble/services/index.d.ts +2 -0
  636. package/models/models/trouble/services/index.d.ts.map +1 -0
  637. package/models/models/trouble/services/trouble-services.d.ts +23 -0
  638. package/models/models/trouble/services/trouble-services.d.ts.map +1 -0
  639. package/models/models/trouble/trouble-model.d.ts +43 -0
  640. package/models/models/trouble/trouble-model.d.ts.map +1 -0
  641. package/models/models/trouble/trouble-registration.d.ts +84 -0
  642. package/models/models/trouble/trouble-registration.d.ts.map +1 -0
  643. package/models/models/trouble/types/index.d.ts +373 -0
  644. package/models/models/trouble/utils/is-trouble-aware.d.ts +98 -0
  645. package/models/models/trouble/utils/is-trouble-aware.d.ts.map +1 -0
  646. package/models/models/trouble/utils/trouble-data-extension.d.ts +5 -0
  647. package/models/models/trouble/utils/trouble-data-extension.d.ts.map +1 -0
  648. package/models/models/trouble/utils/trouble-extension.d.ts +5 -0
  649. package/models/models/trouble/utils/trouble-extension.d.ts.map +1 -0
  650. package/models/models/trouble/utils/trouble-reducer.d.ts +4 -0
  651. package/models/models/trouble/utils/trouble-reducer.d.ts.map +1 -0
  652. package/models/models/trouble-container/index.d.ts +5 -0
  653. package/models/models/trouble-container/index.d.ts.map +1 -0
  654. package/models/models/trouble-container/trouble-container-model.d.ts +27 -0
  655. package/models/models/trouble-container/trouble-container-model.d.ts.map +1 -0
  656. package/models/models/trouble-container/trouble-utils.d.ts +5 -0
  657. package/models/models/trouble-container/trouble-utils.d.ts.map +1 -0
  658. package/models/models/trouble-container/types/index.d.ts +4 -0
  659. package/models/models/types/index.d.ts +3 -0
  660. package/models/models/types/index.d.ts.map +1 -0
  661. package/models/models/usb-update/index.d.ts +7 -0
  662. package/models/models/usb-update/index.d.ts.map +1 -0
  663. package/models/models/usb-update/services/index.d.ts +2 -0
  664. package/models/models/usb-update/services/index.d.ts.map +1 -0
  665. package/models/models/usb-update/services/usb-update-services.d.ts +22 -0
  666. package/models/models/usb-update/services/usb-update-services.d.ts.map +1 -0
  667. package/models/models/usb-update/types/index.d.ts +14 -0
  668. package/models/models/usb-update/usb-update-container-model.d.ts +34 -0
  669. package/models/models/usb-update/usb-update-container-model.d.ts.map +1 -0
  670. package/models/models/usb-update/usb-update-container-registration.d.ts +87 -0
  671. package/models/models/usb-update/usb-update-container-registration.d.ts.map +1 -0
  672. package/models/models/usb-update/usb-update-model.d.ts +30 -0
  673. package/models/models/usb-update/usb-update-model.d.ts.map +1 -0
  674. package/models/models/usb-update/usb-update-registration.d.ts +87 -0
  675. package/models/models/usb-update/usb-update-registration.d.ts.map +1 -0
  676. package/models/models/ws-event/index.d.ts +4 -0
  677. package/models/models/ws-event/index.d.ts.map +1 -0
  678. package/models/models/ws-event/types/index.d.ts +25 -0
  679. package/models/models/ws-event/types/index.d.ts.map +1 -0
  680. package/models/models/ws-event/ws-event-factory.d.ts +5 -0
  681. package/models/models/ws-event/ws-event-factory.d.ts.map +1 -0
  682. package/models/models/ws-event/ws-event-model.d.ts +15 -0
  683. package/models/models/ws-event/ws-event-model.d.ts.map +1 -0
  684. package/models/registration.d.ts +7 -0
  685. package/models/registration.d.ts.map +1 -0
  686. package/models/services/config-bean/index.d.ts +144 -0
  687. package/models/services/config-bean/index.d.ts.map +1 -0
  688. package/models/services/future/index.d.ts +98 -0
  689. package/models/services/future/index.d.ts.map +1 -0
  690. package/models/services/index.d.ts +4 -0
  691. package/models/services/index.d.ts.map +1 -0
  692. package/models/services/login/index.d.ts +78 -0
  693. package/models/services/login/index.d.ts.map +1 -0
  694. package/models/services/trouble/index.d.ts +59 -0
  695. package/models/services/trouble/index.d.ts.map +1 -0
  696. package/models/types/cancellable-promise.d.ts +49 -0
  697. package/models/types/cancellable-promise.d.ts.map +1 -0
  698. package/models/types/future-interfaces.d.ts +55 -0
  699. package/models/types/future-interfaces.d.ts.map +1 -0
  700. package/models/types/global.d.ts +19 -0
  701. package/models/types/index.d.ts +3 -0
  702. package/models/types/index.d.ts.map +1 -0
  703. package/models/utils/cancellable-future-call.d.ts +54 -0
  704. package/models/utils/cancellable-future-call.d.ts.map +1 -0
  705. package/models/utils/cancellable-service.d.ts +79 -0
  706. package/models/utils/cancellable-service.d.ts.map +1 -0
  707. package/models/utils/client.d.ts +79 -0
  708. package/models/utils/client.d.ts.map +1 -0
  709. package/models/utils/conversion-utils.d.ts +67 -0
  710. package/models/utils/conversion-utils.d.ts.map +1 -0
  711. package/models/utils/core-registration-manager.d.ts +21 -0
  712. package/models/utils/core-registration-manager.d.ts.map +1 -0
  713. package/models/utils/extension-manager.d.ts +23 -0
  714. package/models/utils/extension-manager.d.ts.map +1 -0
  715. package/models/utils/future-manager/index.d.ts +9 -0
  716. package/models/utils/future-manager/index.d.ts.map +1 -0
  717. package/models/utils/index.d.ts +12 -0
  718. package/models/utils/index.d.ts.map +1 -0
  719. package/models/utils/model-event-utils.d.ts +3 -0
  720. package/models/utils/model-event-utils.d.ts.map +1 -0
  721. package/models/utils/openapi.d.ts +9311 -0
  722. package/models/utils/persistence-store.d.ts +58 -0
  723. package/models/utils/persistence-store.d.ts.map +1 -0
  724. package/models/utils/prop-utils.d.ts +3 -0
  725. package/models/utils/prop-utils.d.ts.map +1 -0
  726. package/models/utils/region-utils.d.ts +2 -0
  727. package/models/utils/region-utils.d.ts.map +1 -0
  728. package/models/utils/service.d.ts +87 -0
  729. package/models/utils/service.d.ts.map +1 -0
  730. package/models/utils/timer-manager.d.ts +159 -0
  731. package/models/utils/timer-manager.d.ts.map +1 -0
  732. package/models/utils/timezone-utils.d.ts +2 -0
  733. package/models/utils/timezone-utils.d.ts.map +1 -0
  734. package/models/utils/trouble-utils.d.ts +6 -0
  735. package/models/utils/trouble-utils.d.ts.map +1 -0
  736. package/models/utils/types.d.ts +9637 -0
  737. package/models/utils/types.d.ts.map +1 -0
  738. package/package.json +42 -0
  739. package/ui/components/error-boundary/error-boundary.d.ts +16 -0
  740. package/ui/components/error-boundary/error-boundary.d.ts.map +1 -0
  741. package/ui/components/error-boundary/index.d.ts +2 -0
  742. package/ui/components/error-boundary/index.d.ts.map +1 -0
  743. package/ui/components/index.d.ts +5 -0
  744. package/ui/components/index.d.ts.map +1 -0
  745. package/ui/components/kos-model-loader/contexts/kos-model-context.d.ts +12 -0
  746. package/ui/components/kos-model-loader/contexts/kos-model-context.d.ts.map +1 -0
  747. package/ui/components/kos-model-loader/contexts/kos-model-hierarchy-context.d.ts +16 -0
  748. package/ui/components/kos-model-loader/contexts/kos-model-hierarchy-context.d.ts.map +1 -0
  749. package/ui/components/kos-model-loader/index.d.ts +4 -0
  750. package/ui/components/kos-model-loader/index.d.ts.map +1 -0
  751. package/ui/components/kos-model-loader/kos-model-loader.d.ts +13 -0
  752. package/ui/components/kos-model-loader/kos-model-loader.d.ts.map +1 -0
  753. package/ui/components/loading-message/index.d.ts +12 -0
  754. package/ui/components/loading-message/index.d.ts.map +1 -0
  755. package/ui/components/loading-message/loading-message-styles.d.ts +3 -0
  756. package/ui/components/loading-message/loading-message-styles.d.ts.map +1 -0
  757. package/ui/components/progress-bar/index.d.ts +2 -0
  758. package/ui/components/progress-bar/index.d.ts.map +1 -0
  759. package/ui/components/progress-bar/progress-bar.d.ts +11 -0
  760. package/ui/components/progress-bar/progress-bar.d.ts.map +1 -0
  761. package/ui/constants/index.d.ts +2 -0
  762. package/ui/constants/index.d.ts.map +1 -0
  763. package/ui/contexts/create-model-context.d.ts +28 -0
  764. package/ui/contexts/create-model-context.d.ts.map +1 -0
  765. package/ui/contexts/fetch-kos-core.d.ts +6 -0
  766. package/ui/contexts/fetch-kos-core.d.ts.map +1 -0
  767. package/ui/contexts/index.d.ts +7 -0
  768. package/ui/contexts/index.d.ts.map +1 -0
  769. package/ui/contexts/kos-core-context.d.ts +16 -0
  770. package/ui/contexts/kos-core-context.d.ts.map +1 -0
  771. package/ui/contexts/kos-model-context.d.ts +10 -0
  772. package/ui/contexts/kos-model-context.d.ts.map +1 -0
  773. package/ui/contexts/kos-time/index.d.ts +2 -0
  774. package/ui/contexts/kos-time/index.d.ts.map +1 -0
  775. package/ui/contexts/kos-time/kos-time-provider.d.ts +13 -0
  776. package/ui/contexts/kos-time/kos-time-provider.d.ts.map +1 -0
  777. package/ui/contexts/modal-context.d.ts +13 -0
  778. package/ui/contexts/modal-context.d.ts.map +1 -0
  779. package/ui/contexts/software-info/index.d.ts +2 -0
  780. package/ui/contexts/software-info/index.d.ts.map +1 -0
  781. package/ui/contexts/software-info/software-info-provider.d.ts +14 -0
  782. package/ui/contexts/software-info/software-info-provider.d.ts.map +1 -0
  783. package/ui/contexts/state-bean/index.d.ts +2 -0
  784. package/ui/contexts/state-bean/index.d.ts.map +1 -0
  785. package/ui/contexts/state-bean/state-bean-provider.d.ts +14 -0
  786. package/ui/contexts/state-bean/state-bean-provider.d.ts.map +1 -0
  787. package/ui/contexts/token-context.d.ts +9 -0
  788. package/ui/contexts/token-context.d.ts.map +1 -0
  789. package/ui/contexts/translation-container/index.d.ts +2 -0
  790. package/ui/contexts/translation-container/index.d.ts.map +1 -0
  791. package/ui/contexts/translation-container/kos-translations-provider.d.ts +18 -0
  792. package/ui/contexts/translation-container/kos-translations-provider.d.ts.map +1 -0
  793. package/ui/features/canvas/components/canvas-streamer/canvas-streamer.d.ts +15 -0
  794. package/ui/features/canvas/components/canvas-streamer/canvas-streamer.d.ts.map +1 -0
  795. package/ui/features/canvas/components/canvas-streamer/index.d.ts +2 -0
  796. package/ui/features/canvas/components/canvas-streamer/index.d.ts.map +1 -0
  797. package/ui/features/canvas/components/index.d.ts +2 -0
  798. package/ui/features/canvas/components/index.d.ts.map +1 -0
  799. package/ui/features/canvas/components/rgb-332-visualizer/rgb-332-visualizer.d.ts +5 -0
  800. package/ui/features/canvas/components/rgb-332-visualizer/rgb-332-visualizer.d.ts.map +1 -0
  801. package/ui/features/canvas/hooks/canvas-dispatcher/index.d.ts +3 -0
  802. package/ui/features/canvas/hooks/canvas-dispatcher/index.d.ts.map +1 -0
  803. package/ui/features/canvas/hooks/canvas-dispatcher/use-canvas-dispatcher.d.ts +14 -0
  804. package/ui/features/canvas/hooks/canvas-dispatcher/use-canvas-dispatcher.d.ts.map +1 -0
  805. package/ui/features/canvas/hooks/canvas-dispatcher/with-canvas-dispatcher.d.ts +9 -0
  806. package/ui/features/canvas/hooks/canvas-dispatcher/with-canvas-dispatcher.d.ts.map +1 -0
  807. package/ui/features/canvas/hooks/use-gradient-renderer.d.ts +14 -0
  808. package/ui/features/canvas/hooks/use-gradient-renderer.d.ts.map +1 -0
  809. package/ui/features/canvas/hooks/use-image-renderer.d.ts +22 -0
  810. package/ui/features/canvas/hooks/use-image-renderer.d.ts.map +1 -0
  811. package/ui/features/canvas/hooks/use-solid-color-renderer.d.ts +11 -0
  812. package/ui/features/canvas/hooks/use-solid-color-renderer.d.ts.map +1 -0
  813. package/ui/features/canvas/hooks/use-streamable-renderer.d.ts +17 -0
  814. package/ui/features/canvas/hooks/use-streamable-renderer.d.ts.map +1 -0
  815. package/ui/features/canvas/hooks/use-sweep-renderer.d.ts +32 -0
  816. package/ui/features/canvas/hooks/use-sweep-renderer.d.ts.map +1 -0
  817. package/ui/features/canvas/hooks/use-swirl-renderer.d.ts +22 -0
  818. package/ui/features/canvas/hooks/use-swirl-renderer.d.ts.map +1 -0
  819. package/ui/features/canvas/hooks/use-video-renderer.d.ts +24 -0
  820. package/ui/features/canvas/hooks/use-video-renderer.d.ts.map +1 -0
  821. package/ui/features/canvas/index.d.ts +2 -0
  822. package/ui/features/canvas/index.d.ts.map +1 -0
  823. package/ui/features/canvas/utils/preview-decoder.d.ts +29 -0
  824. package/ui/features/canvas/utils/preview-decoder.d.ts.map +1 -0
  825. package/ui/features/index.d.ts +2 -0
  826. package/ui/features/index.d.ts.map +1 -0
  827. package/ui/hooks/device/index.d.ts +3 -0
  828. package/ui/hooks/device/index.d.ts.map +1 -0
  829. package/ui/hooks/device/use-device.d.ts +14 -0
  830. package/ui/hooks/device/use-device.d.ts.map +1 -0
  831. package/ui/hooks/device/with-device.d.ts +9 -0
  832. package/ui/hooks/device/with-device.d.ts.map +1 -0
  833. package/ui/hooks/fetch-model.d.ts +6 -0
  834. package/ui/hooks/fetch-model.d.ts.map +1 -0
  835. package/ui/hooks/index.d.ts +31 -0
  836. package/ui/hooks/index.d.ts.map +1 -0
  837. package/ui/hooks/kos-time/index.d.ts +3 -0
  838. package/ui/hooks/kos-time/index.d.ts.map +1 -0
  839. package/ui/hooks/kos-time/use-kos-time.d.ts +14 -0
  840. package/ui/hooks/kos-time/use-kos-time.d.ts.map +1 -0
  841. package/ui/hooks/kos-time/with-kos-time.d.ts +8 -0
  842. package/ui/hooks/kos-time/with-kos-time.d.ts.map +1 -0
  843. package/ui/hooks/network-interface-container/index.d.ts +3 -0
  844. package/ui/hooks/network-interface-container/index.d.ts.map +1 -0
  845. package/ui/hooks/network-interface-container/use-network-interface-container.d.ts +14 -0
  846. package/ui/hooks/network-interface-container/use-network-interface-container.d.ts.map +1 -0
  847. package/ui/hooks/network-interface-container/with-network-interface-container.d.ts +9 -0
  848. package/ui/hooks/network-interface-container/with-network-interface-container.d.ts.map +1 -0
  849. package/ui/hooks/ota/index.d.ts +3 -0
  850. package/ui/hooks/ota/index.d.ts.map +1 -0
  851. package/ui/hooks/ota/use-ota.d.ts +14 -0
  852. package/ui/hooks/ota/use-ota.d.ts.map +1 -0
  853. package/ui/hooks/ota/with-ota.d.ts +9 -0
  854. package/ui/hooks/ota/with-ota.d.ts.map +1 -0
  855. package/ui/hooks/outside-alerter.d.ts +11 -0
  856. package/ui/hooks/outside-alerter.d.ts.map +1 -0
  857. package/ui/hooks/software-info/index.d.ts +3 -0
  858. package/ui/hooks/software-info/index.d.ts.map +1 -0
  859. package/ui/hooks/software-info/use-software-info.d.ts +14 -0
  860. package/ui/hooks/software-info/use-software-info.d.ts.map +1 -0
  861. package/ui/hooks/software-info/with-software-info.d.ts +8 -0
  862. package/ui/hooks/software-info/with-software-info.d.ts.map +1 -0
  863. package/ui/hooks/state-bean/use-state-bean.d.ts +14 -0
  864. package/ui/hooks/state-bean/use-state-bean.d.ts.map +1 -0
  865. package/ui/hooks/state-bean/with-state-bean.d.ts +8 -0
  866. package/ui/hooks/state-bean/with-state-bean.d.ts.map +1 -0
  867. package/ui/hooks/state-prop/index.d.ts +2 -0
  868. package/ui/hooks/state-prop/index.d.ts.map +1 -0
  869. package/ui/hooks/state-prop/use-state-prop.d.ts +15 -0
  870. package/ui/hooks/state-prop/use-state-prop.d.ts.map +1 -0
  871. package/ui/hooks/storage-device-container/index.d.ts +3 -0
  872. package/ui/hooks/storage-device-container/index.d.ts.map +1 -0
  873. package/ui/hooks/storage-device-container/use-storage-device-container.d.ts +16 -0
  874. package/ui/hooks/storage-device-container/use-storage-device-container.d.ts.map +1 -0
  875. package/ui/hooks/storage-device-container/with-storage-device-container.d.ts +9 -0
  876. package/ui/hooks/storage-device-container/with-storage-device-container.d.ts.map +1 -0
  877. package/ui/hooks/timer/index.d.ts +2 -0
  878. package/ui/hooks/timer/index.d.ts.map +1 -0
  879. package/ui/hooks/timer/use-timer.d.ts +23 -0
  880. package/ui/hooks/timer/use-timer.d.ts.map +1 -0
  881. package/ui/hooks/translation-container/index.d.ts +6 -0
  882. package/ui/hooks/translation-container/index.d.ts.map +1 -0
  883. package/ui/hooks/translation-container/trans.d.ts +21 -0
  884. package/ui/hooks/translation-container/trans.d.ts.map +1 -0
  885. package/ui/hooks/translation-container/use-translation-container.d.ts +14 -0
  886. package/ui/hooks/translation-container/use-translation-container.d.ts.map +1 -0
  887. package/ui/hooks/translation-container/use-translation.d.ts +14 -0
  888. package/ui/hooks/translation-container/use-translation.d.ts.map +1 -0
  889. package/ui/hooks/translation-container/with-translation-container.d.ts +9 -0
  890. package/ui/hooks/translation-container/with-translation-container.d.ts.map +1 -0
  891. package/ui/hooks/trouble/index.d.ts +5 -0
  892. package/ui/hooks/trouble/index.d.ts.map +1 -0
  893. package/ui/hooks/trouble/use-trouble-container.d.ts +14 -0
  894. package/ui/hooks/trouble/use-trouble-container.d.ts.map +1 -0
  895. package/ui/hooks/trouble/use-trouble-visibility.d.ts +16 -0
  896. package/ui/hooks/trouble/use-trouble-visibility.d.ts.map +1 -0
  897. package/ui/hooks/trouble/use-trouble.d.ts +14 -0
  898. package/ui/hooks/trouble/use-trouble.d.ts.map +1 -0
  899. package/ui/hooks/trouble/with-trouble-container.d.ts +8 -0
  900. package/ui/hooks/trouble/with-trouble-container.d.ts.map +1 -0
  901. package/ui/hooks/usb-update-container/index.d.ts +3 -0
  902. package/ui/hooks/usb-update-container/index.d.ts.map +1 -0
  903. package/ui/hooks/usb-update-container/use-usb-update-container.d.ts +17 -0
  904. package/ui/hooks/usb-update-container/use-usb-update-container.d.ts.map +1 -0
  905. package/ui/hooks/usb-update-container/with-usb-update-container.d.ts +9 -0
  906. package/ui/hooks/usb-update-container/with-usb-update-container.d.ts.map +1 -0
  907. package/ui/hooks/use-config-bean.d.ts +15 -0
  908. package/ui/hooks/use-config-bean.d.ts.map +1 -0
  909. package/ui/hooks/use-config-property.d.ts +29 -0
  910. package/ui/hooks/use-config-property.d.ts.map +1 -0
  911. package/ui/hooks/use-date-props.d.ts +169 -0
  912. package/ui/hooks/use-date-props.d.ts.map +1 -0
  913. package/ui/hooks/use-date-relative-prop.d.ts +49 -0
  914. package/ui/hooks/use-date-relative-prop.d.ts.map +1 -0
  915. package/ui/hooks/use-function-warmup.d.ts +61 -0
  916. package/ui/hooks/use-function-warmup.d.ts.map +1 -0
  917. package/ui/hooks/use-kos-date-formats.d.ts +57 -0
  918. package/ui/hooks/use-kos-date-formats.d.ts.map +1 -0
  919. package/ui/hooks/use-kos-model.d.ts +24 -0
  920. package/ui/hooks/use-kos-model.d.ts.map +1 -0
  921. package/ui/hooks/use-kos-region-timezones.d.ts +89 -0
  922. package/ui/hooks/use-kos-region-timezones.d.ts.map +1 -0
  923. package/ui/hooks/use-kos-regions.d.ts +59 -0
  924. package/ui/hooks/use-kos-regions.d.ts.map +1 -0
  925. package/ui/hooks/use-kos-time-formats.d.ts +58 -0
  926. package/ui/hooks/use-kos-time-formats.d.ts.map +1 -0
  927. package/ui/hooks/use-kos-token.d.ts +5 -0
  928. package/ui/hooks/use-kos-token.d.ts.map +1 -0
  929. package/ui/hooks/use-kos-unit-systems.d.ts +56 -0
  930. package/ui/hooks/use-kos-unit-systems.d.ts.map +1 -0
  931. package/ui/hooks/use-local-computed.d.ts +7 -0
  932. package/ui/hooks/use-local-computed.d.ts.map +1 -0
  933. package/ui/hooks/use-mutation-observer.d.ts +13 -0
  934. package/ui/hooks/use-mutation-observer.d.ts.map +1 -0
  935. package/ui/hooks/use-press-gesture/index.d.ts +4 -0
  936. package/ui/hooks/use-press-gesture/index.d.ts.map +1 -0
  937. package/ui/hooks/use-press-gesture/strategy/dom-intersection-strategy.d.ts +4 -0
  938. package/ui/hooks/use-press-gesture/strategy/dom-intersection-strategy.d.ts.map +1 -0
  939. package/ui/hooks/use-press-gesture/strategy/intersection-strategy.d.ts +9 -0
  940. package/ui/hooks/use-press-gesture/strategy/intersection-strategy.d.ts.map +1 -0
  941. package/ui/hooks/use-press-gesture/use-press-gesture.d.ts +17 -0
  942. package/ui/hooks/use-press-gesture/use-press-gesture.d.ts.map +1 -0
  943. package/ui/hooks/use-project-reloading.d.ts +2 -0
  944. package/ui/hooks/use-project-reloading.d.ts.map +1 -0
  945. package/ui/hooks/use-region-time-props.d.ts +27 -0
  946. package/ui/hooks/use-region-time-props.d.ts.map +1 -0
  947. package/ui/hooks/use-time-props.d.ts +68 -0
  948. package/ui/hooks/use-time-props.d.ts.map +1 -0
  949. package/ui/hooks/with-project-reload.d.ts +7 -0
  950. package/ui/hooks/with-project-reload.d.ts.map +1 -0
  951. package/ui/i18n/config.d.ts +11 -0
  952. package/ui/i18n/config.d.ts.map +1 -0
  953. package/ui/index.d.ts +7 -0
  954. package/ui/index.d.ts.map +1 -0
  955. package/ui/mocks/browser.d.ts +3 -0
  956. package/ui/mocks/browser.d.ts.map +1 -0
  957. package/ui/mocks/handlers.d.ts +3 -0
  958. package/ui/mocks/handlers.d.ts.map +1 -0
  959. package/ui/utils/date-utils.d.ts +34 -0
  960. package/ui/utils/date-utils.d.ts.map +1 -0
  961. package/ui/utils/date.d.ts +31 -0
  962. package/ui/utils/date.d.ts.map +1 -0
  963. package/ui/utils/index.d.ts +2 -0
  964. package/ui/utils/index.d.ts.map +1 -0
@@ -0,0 +1,151 @@
1
+ /**
2
+ * @fileoverview Translation service functions for internationalization and localization.
3
+ *
4
+ * This module provides service functions for loading translation data, managing locale
5
+ * descriptors, and handling multi-language content in KOS applications. Supports both
6
+ * static file-based translations and dynamic translation service integration.
7
+ *
8
+ * @module TranslationServices
9
+ */
10
+ /**
11
+ * Generic translation data response format.
12
+ *
13
+ * Represents the structure of translation data returned from various translation
14
+ * endpoints, supporting flexible key-value structures for different locales
15
+ * and translation namespaces.
16
+ *
17
+ * @group KOS Model
18
+ * @category i18n
19
+ */
20
+ export type TranslationResponse = Record<string, any>;
21
+ /**
22
+ * Locale descriptor defining translation file location and fallback behavior.
23
+ *
24
+ * Describes how to locate and load translation files for a specific locale,
25
+ * including fallback chains for graceful degradation when translations are
26
+ * missing or incomplete.
27
+ *
28
+ * @group KOS Model
29
+ * @category i18n
30
+ */
31
+ export interface LocaleDescriptor {
32
+ /** Default locale to use when this locale's translations are unavailable */
33
+ defaultLocale: string;
34
+ /** Path to the translation file for this locale */
35
+ file: string;
36
+ /** Optional array of fallback locales to try in order */
37
+ fallbacks?: string[];
38
+ }
39
+ /**
40
+ * Complete localization configuration for organizing translation namespaces.
41
+ *
42
+ * Defines the structure for managing multiple translation namespaces with
43
+ * locale-specific configurations. Enables organized translation management
44
+ * across different features or components of an application.
45
+ *
46
+ * @group KOS Model
47
+ * @category i18n
48
+ */
49
+ export interface Localization {
50
+ /**
51
+ * Translation namespaces organized by feature or component.
52
+ * Each namespace contains locale configurations and file paths.
53
+ */
54
+ namespaces: {
55
+ [key: string]: {
56
+ /** Locale-specific configuration for this namespace */
57
+ locales: {
58
+ [key: string]: LocaleDescriptor;
59
+ };
60
+ /** Base path for translation files in this namespace */
61
+ basePath: string;
62
+ };
63
+ };
64
+ /** Root path for the localization configuration */
65
+ path: string;
66
+ }
67
+ /**
68
+ * Loads translation data from a specified URL.
69
+ *
70
+ * Fetches translation JSON files from static resources or translation services.
71
+ * Handles network errors gracefully by returning empty objects rather than
72
+ * throwing exceptions, enabling fallback behavior in translation systems.
73
+ *
74
+ * @param url - Relative or absolute URL to the translation file
75
+ * @param root - Optional root URL override (defaults to current window origin)
76
+ * @returns Promise resolving to translation data object
77
+ *
78
+ * @throws {Error} When network request fails unexpectedly (non-200 responses return empty object)
79
+ *
80
+ * @example Load Translation File
81
+ * ```typescript
82
+ * const frenchTranslations = await getTranslations('/assets/locales/fr/common.json');
83
+ * console.log('Welcome message:', frenchTranslations.welcome);
84
+ *
85
+ * const customTranslations = await getTranslations('/api/translations/dashboard', 'https://translations.example.com');
86
+ * ```
87
+ *
88
+ * @group KOS Model
89
+ * @category i18n
90
+ */
91
+ export declare const getTranslations: (url: string, root?: string) => Promise<any>;
92
+ /**
93
+ * Retrieves the system-wide localization configuration descriptor.
94
+ *
95
+ * Fetches the complete localization configuration from the KOS system,
96
+ * including namespace definitions, locale mappings, and file path information.
97
+ * Used for initializing translation containers with proper configuration.
98
+ *
99
+ * @returns Promise resolving to complete localization descriptor
100
+ *
101
+ * @throws {Error} When service request fails or returns non-200 status
102
+ *
103
+ * @example Initialize Translation System
104
+ * ```typescript
105
+ * const localizationConfig = await getLocalizationDescriptor();
106
+ * const translationContainer = TranslationContainer.instance('app-i18n')
107
+ * .options({
108
+ * lang: 'en',
109
+ * descriptor: localizationConfig
110
+ * })
111
+ * .build();
112
+ * ```
113
+ *
114
+ * @group KOS Model
115
+ * @category i18n
116
+ */
117
+ export declare const getLocalizationDescriptor: () => Promise<Localization>;
118
+ /**
119
+ * Creates a context-specific localization descriptor retrieval function.
120
+ *
121
+ * Returns a curried function that fetches localization configuration for a
122
+ * specific context from the KOS system. Useful for creating context-aware
123
+ * translation loaders that can be configured once and used multiple times.
124
+ *
125
+ * @param context - Context identifier for localization configuration
126
+ * @returns Async function that retrieves context-specific localization descriptor
127
+ *
128
+ * @throws {Error} When service request fails or context is not found
129
+ *
130
+ * @example Create Context-Specific Loader
131
+ * ```typescript
132
+ * const getStudioTranslations = getKosLocalizationDescriptor('studio');
133
+ * const studioConfig = await getStudioTranslations();
134
+ *
135
+ * const getDeviceTranslations = getKosLocalizationDescriptor('device');
136
+ * const deviceConfig = await getDeviceTranslations();
137
+ *
138
+ * // Use in translation container initialization
139
+ * const container = TranslationContainer.instance('context-aware')
140
+ * .options({
141
+ * lang: 'es',
142
+ * descriptor: studioConfig
143
+ * })
144
+ * .build();
145
+ * ```
146
+ *
147
+ * @group KOS Model
148
+ * @category i18n
149
+ */
150
+ export declare const getKosLocalizationDescriptor: (context: string) => () => Promise<Localization>;
151
+ //# sourceMappingURL=translation-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/translation/services/translation-services.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAuBH;;;;;;;;;GASG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEtD;;;;;;;;;GASG;AACH,MAAM,WAAW,gBAAgB;IAC/B,4EAA4E;IAC5E,aAAa,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,UAAU,EAAE;QACV,CAAC,GAAG,EAAE,MAAM,GAAG;YACb,uDAAuD;YACvD,OAAO,EAAE;gBACP,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC;aACjC,CAAC;YACF,wDAAwD;YACxD,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;KACH,CAAC;IACF,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;CACd;AAoBD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,eAAe,QAAe,MAAM,SAAS,MAAM,iBAgB/D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,yBAAyB,6BAYrC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,4BAA4B,YAAa,MAAM,gCAY3D,CAAC"}
@@ -0,0 +1,126 @@
1
+ import { TranslationContainerOptions } from './types';
2
+ import { TranslationModel } from './translation-model';
3
+ import { Localization } from './services';
4
+ import { PublicModelInterface } from '../../../core/types';
5
+ import { IKosDataModel, IKosIdentifiable, IKosModelContainer, IKosModelHolder, KosCreationContext, ReloadAware } from '../../../core';
6
+
7
+ export declare const MODEL_TYPE = "translation-container-model";
8
+ /**
9
+ * TranslationContainer - Multi-namespace translation management with automatic locale switching.
10
+ *
11
+ * The TranslationContainer model serves as the central orchestrator for internationalization in KOS
12
+ * applications. It manages multiple translation namespaces, handles global locale switching, and provides
13
+ * namespace resolution with fallback chains. This container enables building sophisticated multi-language
14
+ * interfaces that adapt automatically to user language preferences across all application features.
15
+ *
16
+ * ## Key Features
17
+ * - **Multi-Namespace Management** - Organize translations by feature areas (dashboard, alerts, settings)
18
+ * - **Global Locale Control** - Centralized locale switching affects all contained translation models
19
+ * - **Automatic Discovery** - Dynamic namespace loading and registration as features request translations
20
+ * - **Fallback Resolution** - Sophisticated locale fallback chains for graceful degradation
21
+ * - **Custom Resolvers** - Flexible translation loading strategies for different deployment scenarios
22
+ * - **Reload Capability** - Dynamic translation updates without application restart
23
+ * - **Default Namespace** - Optional primary namespace for application-wide common translations
24
+ *
25
+ * ## Namespace Organization
26
+ * Translation namespaces organize translations by functional areas:
27
+ * - **Feature-Based**: dashboard, device-config, maintenance, alerts
28
+ * - **Component-Based**: forms, modals, navigation, status-displays
29
+ * - **Common**: common, shared, ui-elements for cross-cutting concerns
30
+ *
31
+ * ## Locale Management Architecture
32
+ * The container manages locale switching across all child translation models:
33
+ * 1. **Centralized Control**: Single point for locale changes
34
+ * 2. **Automatic Propagation**: All child models receive locale updates
35
+ * 3. **Reactive Loading**: Translation files loaded automatically on locale switch
36
+ * 4. **Fallback Coordination**: Container coordinates fallback chains across namespaces
37
+ *
38
+ * ## Common Use Cases
39
+ * - **Application Initialization** - Bootstrap internationalization system with locale descriptors
40
+ * - **User Language Switching** - Provide language selector that updates entire application
41
+ * - **Feature Translation Loading** - Dynamic namespace registration as features are accessed
42
+ * - **Multi-Tenant Systems** - Different translation sets for different deployments
43
+ * - **Development Workflows** - Hot-reload translations during development
44
+ * - **Global Device Interfaces** - Centralized management for device control applications
45
+ *
46
+ * @example Basic Usage
47
+ * ```typescript
48
+ * const translationContainer = TranslationContainer.instance('app-translations')
49
+ * .options({
50
+ * lang: 'es',
51
+ * defaultNamespace: 'common',
52
+ * descriptor: {
53
+ * namespaces: {
54
+ * 'common': {
55
+ * basePath: '/assets/locales',
56
+ * locales: {
57
+ * 'en': { file: 'en/common.json', defaultLocale: 'en' },
58
+ * 'es': { file: 'es/common.json', defaultLocale: 'en' }
59
+ * }
60
+ * }
61
+ * }
62
+ * }
63
+ * })
64
+ * .build();
65
+ *
66
+ * // Access translations and switch language
67
+ * const commonTranslations = translationContainer.getModel('common');
68
+ * translationContainer.currentLocale = 'fr';
69
+ * ```
70
+ *
71
+ * @group KOS Model
72
+ * @category i18n
73
+ * @interface
74
+ * @useDeclaredType
75
+ *
76
+ * @see {@link TranslationContainerOptions} - Configuration options for TranslationContainer instances
77
+ * @see {@link TranslationModel} - Individual translation namespace model
78
+ * @see {@link useKosTranslation} - React hook for accessing container translations
79
+ * @see {@link useKosTranslationContext} - React hook for container-level operations
80
+ */
81
+ export type TranslationContainerModel = PublicModelInterface<TranslationContainerModelImpl>;
82
+ /**
83
+ * @ignore
84
+ * @internal
85
+ */
86
+ export declare class TranslationContainerModelImpl implements IKosIdentifiable, IKosModelHolder<TranslationModel>, IKosDataModel, ReloadAware {
87
+ /** Unique identifier for the container model instance */
88
+ id: string;
89
+ /** Currently active locale for all managed translation namespaces */
90
+ lang: string;
91
+ /** Base URL for loading translation resources */
92
+ private rootUrl?;
93
+ /** Localization descriptor defining namespace configuration and locale mappings */
94
+ descriptor: Localization;
95
+ /** Optional default namespace identifier for primary application translations */
96
+ private _defaultNamespace?;
97
+ /** Path resolver function for constructing translation file URLs */
98
+ private resolver;
99
+ /** Context logger for debugging translation operations */
100
+ private logger;
101
+ /** URL for dynamically loading localization descriptors */
102
+ private descriptorUrl?;
103
+ /** Array tracking registered namespace identifiers */
104
+ private namespaces;
105
+ /** Container for managing Translation model instances */
106
+ private _models;
107
+ constructor(modelId: string, options: TranslationContainerOptions, context: KosCreationContext);
108
+ set currentLocale(locale: string);
109
+ get defaultNamespace(): TranslationModel | undefined;
110
+ getModel(id: string): TranslationModel | undefined;
111
+ get models(): IKosModelContainer<TranslationModel>;
112
+ get data(): TranslationModel[];
113
+ reload(): Promise<void>;
114
+ resolveNamespace(namespace: string): TranslationModel;
115
+ addModel(model: TranslationModel): void;
116
+ removeModel(id: string): void;
117
+ /**
118
+ * @internal
119
+ */
120
+ init(): Promise<void>;
121
+ /**
122
+ * @internal
123
+ */
124
+ load(): Promise<void>;
125
+ }
126
+ //# sourceMappingURL=translation-container-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation-container-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/translation/translation-container-model.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EAEf,kBAAkB,EAClB,WAAW,EACZ,MAAM,eAAe,CAAC;AASvB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D,eAAO,MAAM,UAAU,gCAAgC,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,MAAM,MAAM,yBAAyB,GACnC,oBAAoB,CAAC,6BAA6B,CAAC,CAAC;AAmBtD;;;GAGG;AACH,qBACa,6BACX,YACE,gBAAgB,EAChB,eAAe,CAAC,gBAAgB,CAAC,EACjC,aAAa,EACb,WAAW;IAEb,yDAAyD;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,mFAAmF;IACnF,UAAU,EAAE,YAAY,CAAC;IACzB,iFAAiF;IACjF,OAAO,CAAC,iBAAiB,CAAC,CAAS;IACnC,oEAAoE;IACpE,OAAO,CAAC,QAAQ,CAIJ;IACZ,0DAA0D;IAC1D,OAAO,CAAC,MAAM,CAAmB;IACjC,2DAA2D;IAC3D,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,sDAAsD;IACtD,OAAO,CAAC,UAAU,CAAgB;IAClC,yDAAyD;IAC/C,OAAO,CAAC,OAAO,CAAuC;gBAE9D,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,kBAAkB;IAiB7B,IAAI,aAAa,CAAC,MAAM,EAAE,MAAM,EAK/B;IACD,IAAI,gBAAgB,iCAInB;IACD,QAAQ,CAAC,EAAE,EAAE,MAAM;IAInB,IAAI,MAAM,yCAET;IACD,IAAI,IAAI,uBAEP;IAEK,MAAM;IAMZ,gBAAgB,CAAC,SAAS,EAAE,MAAM;IA4ClC,QAAQ,CAAC,KAAK,EAAE,gBAAgB;IAIhC,WAAW,CAAC,EAAE,EAAE,MAAM;IAKtB;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAM3B;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
@@ -0,0 +1,88 @@
1
+ import { TranslationContainerOptions } from './types';
2
+ import { TranslationContainerModel } from './translation-container-model';
3
+ import { SingletonKosModelRegistrationBean } from '../../../core';
4
+
5
+ /**
6
+ * # TranslationContainer
7
+ *
8
+ * The registration bean includes convenience methods for creating and working with TranslationContainerModel instances.
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: TranslationContainer.type, id: "translationContainerId"})
19
+ * private translationContainerModel: TranslationContainerModel;
20
+ * ```
21
+ *
22
+ *
23
+ * ## factory
24
+ *
25
+ * The factory method creates a factory function that can be used to create new TranslationContainerModel 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 = TranslationContainer.factory({
36
+ * // Add option data
37
+ * });
38
+ * ```
39
+
40
+
41
+ *
42
+ * ## predicate
43
+ *
44
+ * [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 TranslationContainerModel.
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ *
49
+ * const model: IKosDataModel = ...; // some model
50
+ *
51
+ * if (TranslationContainer.predicate(model)) {
52
+ * // if the function evaluates to true, the model is narrowed down to TranslationContainerModel
53
+ * // and the compiler will know that the model has the TranslationContainerModel interface
54
+ * model.updateAvailability(false);
55
+ * }
56
+ * ```
57
+ *
58
+ * ## registration
59
+ *
60
+ * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
61
+ * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
62
+ *
63
+ *
64
+ * @example
65
+ *
66
+ * In an application registration file you can declare the model registration as follows:
67
+ *
68
+ * **registration.ts**
69
+ * ```typescript
70
+ * import { TranslationContainer } from "@kosdev-code/kos-dispense-sdk";
71
+ * ...
72
+ * import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
73
+ * export const kosModels: IKosRegistry["models"] = {
74
+ * ...TranslationContainer.registration,
75
+ * };
76
+ * ```
77
+ *
78
+ * ## registration.singleton
79
+
80
+ * The translationContainer model is a singleton model. This means that each time the factory function is called , the same instance will be returned.
81
+ * If the model does not yet exist, it will be created passing in the provided options to initialize it.
82
+ *
83
+ * Singleton models don't require an ID as they will use the model type as their ID to guarantee uniqueness throughout the system.
84
+ * @group KOS Model
85
+ * @category i18n
86
+ * */
87
+ export declare const TranslationContainer: Readonly<SingletonKosModelRegistrationBean<TranslationContainerModel, TranslationContainerOptions>>;
88
+ //# sourceMappingURL=translation-container-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation-container-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/translation/translation-container-registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAK/E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiFK;AACL,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CACzC,iCAAiC,CAC/B,yBAAyB,EACzB,2BAA2B,CAC5B,CAcF,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { TranslationContainerOptions } from './types';
2
+
3
+ export declare const TranslationContext: {
4
+ set(name: string, value: any): void;
5
+ get(name: string): any;
6
+ };
7
+ export declare const KosTranslations: {
8
+ init(options: TranslationContainerOptions): Promise<{
9
+ translations: import('./translation-container-model').TranslationContainerModel;
10
+ }>;
11
+ };
12
+ //# sourceMappingURL=translation-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation-context.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/translation/translation-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D,eAAO,MAAM,kBAAkB;cACnB,MAAM,SAAS,GAAG;cAMlB,MAAM;CAIjB,CAAC;AAEF,eAAO,MAAM,eAAe;kBACN,2BAA2B;;;CAKhD,CAAC"}
@@ -0,0 +1,154 @@
1
+ import { TranslationOptions } from './types';
2
+ import { LocaleDescriptor, TranslationResponse } from './services';
3
+ import { PublicModelInterface } from '../../../core/types';
4
+ import { IKosDataModel, IKosIdentifiable, KosContext, KosCreationContext } from '../../../core';
5
+
6
+ export declare const MODEL_TYPE = "translation-model";
7
+ interface ResolveTranslationOptionsBase<T = string> {
8
+ context?: string;
9
+ defaultValue?: T;
10
+ }
11
+ interface ResolveTranslationsDataOptions<T = string> extends ResolveTranslationOptionsBase<T> {
12
+ data: Record<string, any> | string;
13
+ }
14
+ type ResolveTranslationsOptionsMap<T = string> = ResolveTranslationOptionsBase<T> & Record<string, string | number | boolean | undefined | null>;
15
+ export type ResolveTranslationOptions<T = string> = ResolveTranslationsDataOptions<T> | ResolveTranslationsOptionsMap<T>;
16
+ /**
17
+ * Translation - Individual namespace translations with automatic locale switching and interpolation.
18
+ *
19
+ * The Translation model provides access to localized text for a specific namespace within a KOS
20
+ * application. It handles locale switching, fallback chains, variable interpolation, and context-aware
21
+ * translations for building truly international device interfaces that adapt to user language preferences
22
+ * automatically.
23
+ *
24
+ * ## Key Features
25
+ * - **Namespace Isolation** - Translations organized by functional area or feature
26
+ * - **Automatic Locale Switching** - React to parent container locale changes
27
+ * - **Fallback Chains** - Graceful degradation through locale hierarchy (pt-BR → pt → es → en)
28
+ * - **Variable Interpolation** - Support for both template (`{{variable}}`) and macro (`__variable__`) substitution
29
+ * - **Context-Aware Keys** - Conditional translations based on context (e.g., `title_edit` vs `title`)
30
+ * - **Real-time Updates** - Automatic UI updates when locale or translations change
31
+ * - **Bundle Resolution** - Custom loading strategies for different deployment scenarios
32
+ *
33
+ * ## Variable Interpolation Patterns
34
+ * The model supports two interpolation patterns for dynamic content:
35
+ * - **Template Variables** (`{{variable}}`) - Context-based substitution passed via options
36
+ * - **Macro Variables** (`__variable__`) - Data-based substitution from nested objects
37
+ *
38
+ * ## Fallback Resolution
39
+ * When translations are missing, the system follows a sophisticated fallback chain:
40
+ * 1. **Current locale** (e.g., `pt-BR`)
41
+ * 2. **Parent locale** (e.g., `pt`)
42
+ * 3. **Fallback locales** (configured per locale, e.g., `es`)
43
+ * 4. **Default locale** (typically `en`)
44
+ * 5. **Provided default value** or raw key
45
+ *
46
+ * ## Common Use Cases
47
+ * - **Feature-Specific UI** - Isolated translations for dashboards, settings, alerts
48
+ * - **Form Validation** - Localized error messages with variable interpolation
49
+ * - **Status Displays** - Dynamic content with device state and user context
50
+ * - **Multi-Language Interfaces** - Complete internationalization for global deployments
51
+ * - **Context-Aware Content** - Mode-specific text (create vs edit, online vs offline)
52
+ * - **Rich Text Support** - Integration with Trans component for formatted content
53
+ *
54
+ * @interface
55
+ * @example Basic Usage
56
+ * ```typescript
57
+ * const statusTranslations = Translation.instance('device-status')
58
+ * .options({
59
+ * namespace: 'device-status',
60
+ * currentLocale: 'es',
61
+ * defaultLocale: 'en',
62
+ * descriptor: {
63
+ * 'es': { fallbacks: ['en'] },
64
+ * 'en': { fallbacks: [] }
65
+ * }
66
+ * })
67
+ * .build();
68
+ *
69
+ * // Resolve localized keys with fallback support
70
+ * const title = statusTranslations.resolveKey('title');
71
+ * ```
72
+ *
73
+ * @group KOS Model
74
+ * @category i18n
75
+ * @useDeclaredType
76
+ *
77
+ * @see {@link TranslationOptions} - Configuration options for Translation instances
78
+ * @see {@link TranslationContainerModel} - Container for managing multiple translation namespaces
79
+ * @see {@link useKosTranslation} - React hook for accessing translations in components
80
+ * @see {@link Trans} - React component for rich text translations with markup
81
+ */
82
+ export type TranslationModel = PublicModelInterface<TranslationModelImpl>;
83
+ export declare const expandMacros: (text: string, data: Record<string, any>) => any;
84
+ export declare const replaceText: (text: string, data: Record<string, any>, context?: Record<string, any>) => any;
85
+ export declare class TranslationModelImpl implements IKosDataModel, IKosIdentifiable {
86
+ /** Unique identifier for the model instance */
87
+ id: string;
88
+ /** Namespace identifier for translation key isolation */
89
+ namespace: string;
90
+ /** Locale descriptor configuration mapping locales to fallback chains */
91
+ descriptor: Record<string, LocaleDescriptor>;
92
+ /** Default locale to use when no translation is found in fallback chain */
93
+ defaultLocale: string;
94
+ /** Currently active locale for translation resolution */
95
+ currentLocale: string;
96
+ /** Custom bundle resolver for loading translation data */
97
+ bundleResolver?: (namespace: string, locale: string, context?: KosContext) => Promise<TranslationResponse>;
98
+ /** Flattened translation data for efficient key lookup */
99
+ private data;
100
+ /** Context logger for debugging and diagnostics */
101
+ private logger;
102
+ /** Path resolver function for translation bundle location */
103
+ private resolver;
104
+ /** Reaction disposer for locale change monitoring */
105
+ private disposer?;
106
+ /** Parent translation container reference for namespace resolution */
107
+ private context;
108
+ /** Base URL for loading translation resources */
109
+ private rootUrl?;
110
+ constructor(modelId: string, options: TranslationOptions, context: KosCreationContext);
111
+ /**
112
+ * Builds the fallback chain for a given locale.
113
+ * @param locale The locale to get translation fallback chain for
114
+ * @returns Array of locales in priority order
115
+ * @private
116
+ */
117
+ getTranslationLocales(locale: string): string[];
118
+ /**
119
+ * Loads and merges translations for all locales in the fallback chain.
120
+ * @private
121
+ */
122
+ private loadTranslations;
123
+ /**
124
+ * @internal
125
+ */
126
+ init(): Promise<void>;
127
+ /**
128
+ * Checks if a translation key exists in the current namespace.
129
+ * @param _key Translation key, optionally with namespace prefix
130
+ * @returns True if the key exists
131
+ */
132
+ exists(_key: string): any;
133
+ /**
134
+ * Resolves a translation key with optional variable interpolation.
135
+ * @param _key Translation key, optionally with namespace prefix
136
+ * @param options Options for interpolation and fallback
137
+ * @returns Resolved translation string or array
138
+ */
139
+ resolveKey<T = string>(_key: string, options?: ResolveTranslationOptions<T> | string): any;
140
+ /**
141
+ * @internal
142
+ */
143
+ unload(): void;
144
+ /**
145
+ * @internal
146
+ */
147
+ load(): Promise<void>;
148
+ /**
149
+ * @internal
150
+ */
151
+ ready(): Promise<void>;
152
+ }
153
+ export {};
154
+ //# sourceMappingURL=translation-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/translation/translation-model.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,UAAU,EAEV,kBAAkB,EACnB,MAAM,eAAe,CAAC;AAOvB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EAEpB,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,UAAU,sBAAsB,CAAC;AAC9C,UAAU,6BAA6B,CAAC,CAAC,GAAG,MAAM;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,CAAC;CAClB;AAED,UAAU,8BAA8B,CAAC,CAAC,GAAG,MAAM,CACjD,SAAQ,6BAA6B,CAAC,CAAC,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC;CACpC;AAED,KAAK,6BAA6B,CAAC,CAAC,GAAG,MAAM,IAC3C,6BAA6B,CAAC,CAAC,CAAC,GAC9B,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC,CAAC;AACjE,MAAM,MAAM,yBAAyB,CAAC,CAAC,GAAG,MAAM,IAC5C,8BAA8B,CAAC,CAAC,CAAC,GACjC,6BAA6B,CAAC,CAAC,CAAC,CAAC;AACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;AAuD1E,eAAO,MAAM,YAAY,SAAU,MAAM,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,QAoBnE,CAAC;AAEF,eAAO,MAAM,WAAW,SAChB,MAAM,QACN,OAAO,MAAM,EAAE,GAAG,CAAC,YACf,OAAO,MAAM,EAAE,GAAG,CAAC,QAgB9B,CAAC;AAUF,qBAEa,oBAAqB,YAAW,aAAa,EAAE,gBAAgB;IAC1E,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,yDAAyD;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC7C,2EAA2E;IAC3E,aAAa,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,aAAa,EAAE,MAAM,CAAC;IACtB,0DAA0D;IAC1D,cAAc,CAAC,EAAE,CACf,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,UAAU,KACjB,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAClC,0DAA0D;IAC1D,OAAO,CAAC,IAAI,CAAsB;IAClC,mDAAmD;IACnD,OAAO,CAAC,MAAM,CAAmB;IACjC,6DAA6D;IAC7D,OAAO,CAAC,QAAQ,CAAgD;IAChE,qDAAqD;IACrD,OAAO,CAAC,QAAQ,CAAC,CAAoB;IACrC,sEAAsE;IACtE,OAAO,CAAC,OAAO,CAA4B;IAC3C,iDAAiD;IACjD,OAAO,CAAC,OAAO,CAAC,CAAS;gBAEvB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,kBAAkB;IAqB7B;;;;;OAKG;IACH,qBAAqB,CAAC,MAAM,EAAE,MAAM;IAepC;;;OAGG;YACW,gBAAgB;IAoC9B;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM;IAYnB;;;;;OAKG;IACH,UAAU,CAAC,CAAC,GAAG,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,yBAAyB,CAAC,CAAC,CAAC,GAAG,MAAM;IAmCjD;;OAEG;IACH,MAAM,IAAI,IAAI;IAOd;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAK3B;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAY7B"}
@@ -0,0 +1,85 @@
1
+ import { TranslationOptions } from './types';
2
+ import { TranslationModel } from './translation-model';
3
+ import { KosModelRegistrationBean } from '../../../core';
4
+
5
+ /**
6
+ * # Translation
7
+ *
8
+ * The registration bean includes convenience methods for creating and working with TranslationModel instances.
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: Translation.type, id: "translationId"})
19
+ * private translationModel: TranslationModel;
20
+ * ```
21
+ *
22
+ *
23
+ * ## factory
24
+ *
25
+ * The factory method creates a factory function that can be used to create new TranslationModel instances.
26
+ *
27
+
28
+ * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
29
+ *
30
+ * If a model with the specified id 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 = Translation.factory("translationId")({
36
+ * // Add option data
37
+ * });
38
+ * ```
39
+
40
+
41
+ *
42
+ * ## predicate
43
+ *
44
+ * [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.
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ *
49
+ * const model: IKosDataModel = ...; // some model
50
+ *
51
+ * if (Translation.predicate(model)) {
52
+ * // if the function evaluates to true, the model is narrowed down to TranslationModel
53
+ * // and the compiler will know that the model has the TranslationModel interface
54
+ * model.updateAvailability(false);
55
+ * }
56
+ * ```
57
+ *
58
+ * ## registration
59
+ *
60
+ * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
61
+ * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
62
+ *
63
+ *
64
+ * @example
65
+ *
66
+ * In an application registration file you can declare the model registration as follows:
67
+ *
68
+ * **registration.ts**
69
+ * ```typescript
70
+ * import { Translation } from "@kosdev-code/kos-dispense-sdk";
71
+ * ...
72
+ * import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
73
+ * export const kosModels: IKosRegistry["models"] = {
74
+ * ...Translation.registration,
75
+ * };
76
+ * ```
77
+ *
78
+ * ## registration.singleton
79
+
80
+ * 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.
81
+ * If the factory function is called with an ID that already exists, the existing model will be returned.
82
+
83
+ * */
84
+ export declare const Translation: Readonly<KosModelRegistrationBean<TranslationModel, TranslationOptions>>;
85
+ //# sourceMappingURL=translation-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/translation/translation-registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAE9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AACL,eAAO,MAAM,WAAW,EAAE,QAAQ,CAChC,wBAAwB,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAW/D,CAAC"}