@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.
- package/common/constants/index.d.ts +27 -0
- package/common/constants/index.d.ts.map +1 -0
- package/common/events/async-event-bus.d.ts +96 -0
- package/common/events/async-event-bus.d.ts.map +1 -0
- package/common/events/eventBus.d.ts +77 -0
- package/common/events/eventBus.d.ts.map +1 -0
- package/common/events/eventBus.functional.d.ts +150 -0
- package/common/events/eventBus.functional.d.ts.map +1 -0
- package/common/events/eventBus.state.d.ts +118 -0
- package/common/events/eventBus.state.d.ts.map +1 -0
- package/common/events/index.d.ts +18 -0
- package/common/events/index.d.ts.map +1 -0
- package/common/file-utils.d.ts +9 -0
- package/common/file-utils.d.ts.map +1 -0
- package/common/index.d.ts +4 -0
- package/common/index.d.ts.map +1 -0
- package/common/types/global.d.ts +19 -0
- package/core/core/api/index.d.ts +2 -0
- package/core/core/api/index.d.ts.map +1 -0
- package/core/core/api/wrapPromise.d.ts +14 -0
- package/core/core/api/wrapPromise.d.ts.map +1 -0
- package/core/core/context/index.d.ts +2 -0
- package/core/core/context/index.d.ts.map +1 -0
- package/core/core/context/kos-context-manager.d.ts +31 -0
- package/core/core/context/kos-context-manager.d.ts.map +1 -0
- package/core/core/decorators/index.d.ts +19 -0
- package/core/core/decorators/index.d.ts.map +1 -0
- package/core/core/decorators/kos-child.d.ts +19 -0
- package/core/core/decorators/kos-child.d.ts.map +1 -0
- package/core/core/decorators/kos-companion.d.ts +128 -0
- package/core/core/decorators/kos-companion.d.ts.map +1 -0
- package/core/core/decorators/kos-container-aware.d.ts +465 -0
- package/core/core/decorators/kos-container-aware.d.ts.map +1 -0
- package/core/core/decorators/kos-context.d.ts +2 -0
- package/core/core/decorators/kos-context.d.ts.map +1 -0
- package/core/core/decorators/kos-future-aware.d.ts +150 -0
- package/core/core/decorators/kos-future-aware.d.ts.map +1 -0
- package/core/core/decorators/kos-http-decorators.d.ts +110 -0
- package/core/core/decorators/kos-http-decorators.d.ts.map +1 -0
- package/core/core/decorators/kos-log.d.ts +11 -0
- package/core/core/decorators/kos-log.d.ts.map +1 -0
- package/core/core/decorators/kos-logger-aware.d.ts +96 -0
- package/core/core/decorators/kos-logger-aware.d.ts.map +1 -0
- package/core/core/decorators/kos-model-effect.d.ts +28 -0
- package/core/core/decorators/kos-model-effect.d.ts.map +1 -0
- package/core/core/decorators/kos-multiple-future-aware.d.ts +193 -0
- package/core/core/decorators/kos-multiple-future-aware.d.ts.map +1 -0
- package/core/core/decorators/kos-parent.d.ts +11 -0
- package/core/core/decorators/kos-parent.d.ts.map +1 -0
- package/core/core/decorators/kos-reference.d.ts +6 -0
- package/core/core/decorators/kos-reference.d.ts.map +1 -0
- package/core/core/decorators/kos-topic-handler-flow-control.d.ts +130 -0
- package/core/core/decorators/kos-topic-handler-flow-control.d.ts.map +1 -0
- package/core/core/decorators/kos-trouble-aware.d.ts +71 -0
- package/core/core/decorators/kos-trouble-aware.d.ts.map +1 -0
- package/core/core/decorators/kosDependency.d.ts +16 -0
- package/core/core/decorators/kosDependency.d.ts.map +1 -0
- package/core/core/decorators/kosModel.d.ts +16 -0
- package/core/core/decorators/kosModel.d.ts.map +1 -0
- package/core/core/decorators/kosSubscribe.d.ts +9 -0
- package/core/core/decorators/kosSubscribe.d.ts.map +1 -0
- package/core/core/decorators/kosTopicHandler.d.ts +220 -0
- package/core/core/decorators/kosTopicHandler.d.ts.map +1 -0
- package/core/core/decorators/propKeys.d.ts +20 -0
- package/core/core/decorators/propKeys.d.ts.map +1 -0
- package/core/core/decorators/resolve-parameters.d.ts +8 -0
- package/core/core/decorators/resolve-parameters.d.ts.map +1 -0
- package/core/core/dependency-manager.d.ts +9 -0
- package/core/core/dependency-manager.d.ts.map +1 -0
- package/core/core/extension/extension-manager.d.ts +45 -0
- package/core/core/extension/extension-manager.d.ts.map +1 -0
- package/core/core/extension/index.d.ts +4 -0
- package/core/core/extension/index.d.ts.map +1 -0
- package/core/core/extension/initialize-extension.d.ts +45 -0
- package/core/core/extension/initialize-extension.d.ts.map +1 -0
- package/core/core/extension/plugin-extension-manager.d.ts +23 -0
- package/core/core/extension/plugin-extension-manager.d.ts.map +1 -0
- package/core/core/kos-container-index.d.ts +34 -0
- package/core/core/kos-container-index.d.ts.map +1 -0
- package/core/core/kos-container-model.d.ts +77 -0
- package/core/core/kos-container-model.d.ts.map +1 -0
- package/core/core/kos-data-container.d.ts +54 -0
- package/core/core/kos-data-container.d.ts.map +1 -0
- package/core/core/kos-deletion-manager.d.ts +5 -0
- package/core/core/kos-deletion-manager.d.ts.map +1 -0
- package/core/core/kos-model-factory.d.ts +19 -0
- package/core/core/kos-model-factory.d.ts.map +1 -0
- package/core/core/kos-registration.d.ts +26 -0
- package/core/core/kos-registration.d.ts.map +1 -0
- package/core/core/kos-singleton-registration.d.ts +25 -0
- package/core/core/kos-singleton-registration.d.ts.map +1 -0
- package/core/core/kosCore.d.ts +80 -0
- package/core/core/kosCore.d.ts.map +1 -0
- package/core/core/kosModel.d.ts +155 -0
- package/core/core/kosModel.d.ts.map +1 -0
- package/core/core/kosModelManager.d.ts +207 -0
- package/core/core/kosModelManager.d.ts.map +1 -0
- package/core/core/lifecycle/constants.d.ts +37 -0
- package/core/core/lifecycle/constants.d.ts.map +1 -0
- package/core/core/lifecycle/index.d.ts +2 -0
- package/core/core/lifecycle/index.d.ts.map +1 -0
- package/core/core/lifecycle/kosCoreLifecycle.d.ts +86 -0
- package/core/core/lifecycle/kosCoreLifecycle.d.ts.map +1 -0
- package/core/core/lifecycle/kosModelLifecycle.d.ts +57 -0
- package/core/core/lifecycle/kosModelLifecycle.d.ts.map +1 -0
- package/core/core/lifecycle/model-active-machine.d.ts +31 -0
- package/core/core/lifecycle/model-active-machine.d.ts.map +1 -0
- package/core/core/lifecycle/model-machine.d.ts +28 -0
- package/core/core/lifecycle/model-machine.d.ts.map +1 -0
- package/core/core/lifecycle/model-online-machine.d.ts +19 -0
- package/core/core/lifecycle/model-online-machine.d.ts.map +1 -0
- package/core/core/log/index.d.ts +2 -0
- package/core/core/log/index.d.ts.map +1 -0
- package/core/core/log/log.d.ts +36 -0
- package/core/core/log/log.d.ts.map +1 -0
- package/core/core/model/apply-kos-dev-tool-support.d.ts +2 -0
- package/core/core/model/apply-kos-dev-tool-support.d.ts.map +1 -0
- package/core/core/model/kos-child-resolver.d.ts +10 -0
- package/core/core/model/kos-child-resolver.d.ts.map +1 -0
- package/core/core/model/kos-companion-model-manager.d.ts +14 -0
- package/core/core/model/kos-companion-model-manager.d.ts.map +1 -0
- package/core/core/model/kos-effects-manager.d.ts +14 -0
- package/core/core/model/kos-effects-manager.d.ts.map +1 -0
- package/core/core/model/kos-fsm-manager.d.ts +24 -0
- package/core/core/model/kos-fsm-manager.d.ts.map +1 -0
- package/core/core/model/kos-http-route-manager.d.ts +85 -0
- package/core/core/model/kos-http-route-manager.d.ts.map +1 -0
- package/core/core/model/kos-logger-factory.d.ts +9 -0
- package/core/core/model/kos-logger-factory.d.ts.map +1 -0
- package/core/core/model/kos-model-component-factory.d.ts +25 -0
- package/core/core/model/kos-model-component-factory.d.ts.map +1 -0
- package/core/core/model/kos-offline-queue.d.ts +17 -0
- package/core/core/model/kos-offline-queue.d.ts.map +1 -0
- package/core/core/model/kos-online-lifecycle-manager.d.ts +12 -0
- package/core/core/model/kos-online-lifecycle-manager.d.ts.map +1 -0
- package/core/core/model/kos-subscription-manager.d.ts +31 -0
- package/core/core/model/kos-subscription-manager.d.ts.map +1 -0
- package/core/core/model/logger-utils.d.ts +9 -0
- package/core/core/model/logger-utils.d.ts.map +1 -0
- package/core/core/model/model-introspection-utils.d.ts +6 -0
- package/core/core/model/model-introspection-utils.d.ts.map +1 -0
- package/core/core/model-cache.d.ts +28 -0
- package/core/core/model-cache.d.ts.map +1 -0
- package/core/core/model-instantiator.d.ts +15 -0
- package/core/core/model-instantiator.d.ts.map +1 -0
- package/core/core/model-registry.d.ts +16 -0
- package/core/core/model-registry.d.ts.map +1 -0
- package/core/core/models/index.d.ts +2 -0
- package/core/core/models/index.d.ts.map +1 -0
- package/core/core/models/kos-core/index.d.ts +12 -0
- package/core/core/models/kos-core/index.d.ts.map +1 -0
- package/core/core/models/kos-token/index.d.ts +11 -0
- package/core/core/models/kos-token/index.d.ts.map +1 -0
- package/core/core/registration/base-kos-model-registration.d.ts +10 -0
- package/core/core/registration/base-kos-model-registration.d.ts.map +1 -0
- package/core/core/registration/index.d.ts +5 -0
- package/core/core/registration/index.d.ts.map +1 -0
- package/core/core/registration/model-registration.d.ts +45 -0
- package/core/core/registration/model-registration.d.ts.map +1 -0
- package/core/core/registration/registration-manager.d.ts +41 -0
- package/core/core/registration/registration-manager.d.ts.map +1 -0
- package/core/core/registration/singleton-kos-model-registration-factory.d.ts +10 -0
- package/core/core/registration/singleton-kos-model-registration-factory.d.ts.map +1 -0
- package/core/core/services/app-startup-service.d.ts +74 -0
- package/core/core/services/app-startup-service.d.ts.map +1 -0
- package/core/core/services/browser-router.d.ts +66 -0
- package/core/core/services/browser-router.d.ts.map +1 -0
- package/core/core/services/index.d.ts +5 -0
- package/core/core/services/index.d.ts.map +1 -0
- package/core/core/services/intent-service.d.ts +55 -0
- package/core/core/services/intent-service.d.ts.map +1 -0
- package/core/core/transport/base-message-transport.d.ts +53 -0
- package/core/core/transport/base-message-transport.d.ts.map +1 -0
- package/core/core/transport/bridge-message-transport.d.ts +7 -0
- package/core/core/transport/bridge-message-transport.d.ts.map +1 -0
- package/core/core/transport/bridge-transport.d.ts +29 -0
- package/core/core/transport/bridge-transport.d.ts.map +1 -0
- package/core/core/transport/detect-wakeup.d.ts +2 -0
- package/core/core/transport/detect-wakeup.d.ts.map +1 -0
- package/core/core/transport/fos-message-transport.d.ts +7 -0
- package/core/core/transport/fos-message-transport.d.ts.map +1 -0
- package/core/core/transport/index.d.ts +3 -0
- package/core/core/transport/index.d.ts.map +1 -0
- package/core/core/transport/kos-message-transport.d.ts +7 -0
- package/core/core/transport/kos-message-transport.d.ts.map +1 -0
- package/core/core/transport/transport-factory.d.ts +27 -0
- package/core/core/transport/transport-factory.d.ts.map +1 -0
- package/core/core/transport/transport.d.ts +12 -0
- package/core/core/transport/transport.d.ts.map +1 -0
- package/core/core/transport/web-socket-transport-adapter.d.ts +6 -0
- package/core/core/transport/web-socket-transport-adapter.d.ts.map +1 -0
- package/core/core/transport/webSocketTransport.d.ts +84 -0
- package/core/core/transport/webSocketTransport.d.ts.map +1 -0
- package/core/core/types/index.d.ts +4 -0
- package/core/core/types/index.d.ts.map +1 -0
- package/core/core/types/kos-model-manager-types.d.ts +33 -0
- package/core/core/types/kos-model-manager-types.d.ts.map +1 -0
- package/core/core/types/model.d.ts +26 -0
- package/core/core/types/model.d.ts.map +1 -0
- package/core/core/types/registration.d.ts +54 -0
- package/core/core/types/registration.d.ts.map +1 -0
- package/core/core/types/serviceTypes.d.ts +9 -0
- package/core/core/types/serviceTypes.d.ts.map +1 -0
- package/core/index.d.ts +61 -0
- package/core/index.d.ts.map +1 -0
- package/core/lib/kos-ui-core.d.ts +2 -0
- package/core/lib/kos-ui-core.d.ts.map +1 -0
- package/core/mocks/browser.d.ts +3 -0
- package/core/mocks/browser.d.ts.map +1 -0
- package/core/mocks/handlers.d.ts +3 -0
- package/core/mocks/handlers.d.ts.map +1 -0
- package/core/mocks/server.d.ts +3 -0
- package/core/mocks/server.d.ts.map +1 -0
- package/core/types/global.d.ts +68 -0
- package/core/types/index.d.ts +4 -0
- package/core/types/index.d.ts.map +1 -0
- package/core/types/kos-dependency.d.ts +21 -0
- package/core/types/kos-dependency.d.ts.map +1 -0
- package/core/types/model.d.ts +100 -0
- package/core/types/model.d.ts.map +1 -0
- package/core/types/utils/kos-fetch.d.ts +134 -0
- package/core/types/utils/kos-fetch.d.ts.map +1 -0
- package/core/util/api-request-id.d.ts +2 -0
- package/core/util/api-request-id.d.ts.map +1 -0
- package/core/util/apply-mixins.d.ts +2 -0
- package/core/util/apply-mixins.d.ts.map +1 -0
- package/core/util/array-utils.d.ts +2 -0
- package/core/util/array-utils.d.ts.map +1 -0
- package/core/util/await-first-matching-when.d.ts +5 -0
- package/core/util/await-first-matching-when.d.ts.map +1 -0
- package/core/util/binary-utils.d.ts +44 -0
- package/core/util/binary-utils.d.ts.map +1 -0
- package/core/util/container-utils.d.ts +119 -0
- package/core/util/container-utils.d.ts.map +1 -0
- package/core/util/cycle-detection.d.ts +12 -0
- package/core/util/cycle-detection.d.ts.map +1 -0
- package/core/util/date-utils.d.ts +104 -0
- package/core/util/date-utils.d.ts.map +1 -0
- package/core/util/debounce.d.ts +19 -0
- package/core/util/debounce.d.ts.map +1 -0
- package/core/util/feature-flags.d.ts +16 -0
- package/core/util/feature-flags.d.ts.map +1 -0
- package/core/util/get-query-params.d.ts +2 -0
- package/core/util/get-query-params.d.ts.map +1 -0
- package/core/util/hsl-to-hex.d.ts +5 -0
- package/core/util/hsl-to-hex.d.ts.map +1 -0
- package/core/util/index.d.ts +32 -0
- package/core/util/index.d.ts.map +1 -0
- package/core/util/kos-config-init.d.ts +15 -0
- package/core/util/kos-config-init.d.ts.map +1 -0
- package/core/util/kos-core-utils.d.ts +4 -0
- package/core/util/kos-core-utils.d.ts.map +1 -0
- package/core/util/kos-data-mapper-utils.d.ts +14 -0
- package/core/util/kos-data-mapper-utils.d.ts.map +1 -0
- package/core/util/kos-fetch.d.ts +18 -0
- package/core/util/kos-fetch.d.ts.map +1 -0
- package/core/util/kos-message-utils.d.ts +34 -0
- package/core/util/kos-message-utils.d.ts.map +1 -0
- package/core/util/kos-model-formatter.d.ts +21 -0
- package/core/util/kos-model-formatter.d.ts.map +1 -0
- package/core/util/kos-model-utils.d.ts +101 -0
- package/core/util/kos-model-utils.d.ts.map +1 -0
- package/core/util/kos-model-visitor.d.ts +41 -0
- package/core/util/kos-model-visitor.d.ts.map +1 -0
- package/core/util/kos-service-request.d.ts +65 -0
- package/core/util/kos-service-request.d.ts.map +1 -0
- package/core/util/log-utils.d.ts +6 -0
- package/core/util/log-utils.d.ts.map +1 -0
- package/core/util/logger-plugin.d.ts +2 -0
- package/core/util/logger-plugin.d.ts.map +1 -0
- package/core/util/middleware.d.ts +14 -0
- package/core/util/middleware.d.ts.map +1 -0
- package/core/util/model-attribute-utils.d.ts +37 -0
- package/core/util/model-attribute-utils.d.ts.map +1 -0
- package/core/util/model-factory.d.ts +5 -0
- package/core/util/model-factory.d.ts.map +1 -0
- package/core/util/model-registration-utils.d.ts +6 -0
- package/core/util/model-registration-utils.d.ts.map +1 -0
- package/core/util/model-utils.d.ts +45 -0
- package/core/util/model-utils.d.ts.map +1 -0
- package/core/util/observable-proxy-map.d.ts +10 -0
- package/core/util/observable-proxy-map.d.ts.map +1 -0
- package/core/util/paired-client-heartbeat.d.ts +18 -0
- package/core/util/paired-client-heartbeat.d.ts.map +1 -0
- package/core/util/pipe.d.ts +4 -0
- package/core/util/pipe.d.ts.map +1 -0
- package/core/util/reference-cache.d.ts +17 -0
- package/core/util/reference-cache.d.ts.map +1 -0
- package/core/util/retry-with-exponential-backoff.d.ts +18 -0
- package/core/util/retry-with-exponential-backoff.d.ts.map +1 -0
- package/core/util/service-factory.d.ts +177 -0
- package/core/util/service-factory.d.ts.map +1 -0
- package/core/util/session-utils.d.ts +3 -0
- package/core/util/session-utils.d.ts.map +1 -0
- package/core/util/setRandomInterval.d.ts +5 -0
- package/core/util/setRandomInterval.d.ts.map +1 -0
- package/core/util/wait-for-request.d.ts +15 -0
- package/core/util/wait-for-request.d.ts.map +1 -0
- package/core/util/when-ready.d.ts +21 -0
- package/core/util/when-ready.d.ts.map +1 -0
- package/index.cjs +198 -0
- package/index.cjs.map +1 -0
- package/index.d.cts +10 -0
- package/index.d.ts +10 -0
- package/index.d.ts.map +1 -0
- package/index.js +17032 -0
- package/index.js.map +1 -0
- package/models/constants/index.d.ts +18 -0
- package/models/constants/index.d.ts.map +1 -0
- package/models/decorators/future-service.d.ts +14 -0
- package/models/decorators/future-service.d.ts.map +1 -0
- package/models/decorators/index.d.ts +6 -0
- package/models/decorators/index.d.ts.map +1 -0
- package/models/decorators/kos-config-bean-prop.d.ts +42 -0
- package/models/decorators/kos-config-bean-prop.d.ts.map +1 -0
- package/models/decorators/kos-config-bean.d.ts +8 -0
- package/models/decorators/kos-config-bean.d.ts.map +1 -0
- package/models/decorators/kos-state-bean.d.ts +6 -0
- package/models/decorators/kos-state-bean.d.ts.map +1 -0
- package/models/decorators/kos-state-prop.d.ts +10 -0
- package/models/decorators/kos-state-prop.d.ts.map +1 -0
- package/models/index.d.ts +13 -0
- package/models/index.d.ts.map +1 -0
- package/models/model.d.ts +7 -0
- package/models/models/browser-router/browser-router-model.d.ts +116 -0
- package/models/models/browser-router/browser-router-model.d.ts.map +1 -0
- package/models/models/browser-router/browser-router-registration.d.ts +89 -0
- package/models/models/browser-router/browser-router-registration.d.ts.map +1 -0
- package/models/models/browser-router/index.d.ts +4 -0
- package/models/models/browser-router/index.d.ts.map +1 -0
- package/models/models/browser-router/types/index.d.ts +25 -0
- package/models/models/browser-router/utils/index.d.ts +2 -0
- package/models/models/browser-router/utils/index.d.ts.map +1 -0
- package/models/models/browser-router/utils/init-kos-browser-router.d.ts +2 -0
- package/models/models/browser-router/utils/init-kos-browser-router.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/canvas-dispatcher-model.d.ts +29 -0
- package/models/models/canvas-dispatcher/canvas-dispatcher-model.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/canvas-dispatcher-registration.d.ts +89 -0
- package/models/models/canvas-dispatcher/canvas-dispatcher-registration.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/index.d.ts +5 -0
- package/models/models/canvas-dispatcher/index.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/services/canvas-dispatcher-services.d.ts +8 -0
- package/models/models/canvas-dispatcher/services/canvas-dispatcher-services.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/services/index.d.ts +2 -0
- package/models/models/canvas-dispatcher/services/index.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/types/index.d.ts +192 -0
- package/models/models/canvas-dispatcher/utils/color-utils.d.ts +34 -0
- package/models/models/canvas-dispatcher/utils/color-utils.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/encode-frame.d.ts +14 -0
- package/models/models/canvas-dispatcher/utils/encode-frame.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/base/canvas-2d-renderer.d.ts +37 -0
- package/models/models/canvas-dispatcher/utils/renderers/base/canvas-2d-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/base/gradient-base-renderer.d.ts +2 -0
- package/models/models/canvas-dispatcher/utils/renderers/base/gradient-base-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/base/video-base-renderer.d.ts +71 -0
- package/models/models/canvas-dispatcher/utils/renderers/base/video-base-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/base/webgl-base-renderer.d.ts +51 -0
- package/models/models/canvas-dispatcher/utils/renderers/base/webgl-base-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/drop-renderer.d.ts +60 -0
- package/models/models/canvas-dispatcher/utils/renderers/drop-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/gradient-renderer.d.ts +22 -0
- package/models/models/canvas-dispatcher/utils/renderers/gradient-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/image-renderer.d.ts +15 -0
- package/models/models/canvas-dispatcher/utils/renderers/image-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/looping-video-renderer.d.ts +30 -0
- package/models/models/canvas-dispatcher/utils/renderers/looping-video-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/matrix-renderer.d.ts +44 -0
- package/models/models/canvas-dispatcher/utils/renderers/matrix-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/mixins/one-shot-renderer-mixin.d.ts +5 -0
- package/models/models/canvas-dispatcher/utils/renderers/mixins/one-shot-renderer-mixin.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/overlay-renderer.d.ts +76 -0
- package/models/models/canvas-dispatcher/utils/renderers/overlay-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/renderer-factory.d.ts +25 -0
- package/models/models/canvas-dispatcher/utils/renderers/renderer-factory.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/scrolling-image-renderer.d.ts +46 -0
- package/models/models/canvas-dispatcher/utils/renderers/scrolling-image-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/scrolling-text-renderer.d.ts +56 -0
- package/models/models/canvas-dispatcher/utils/renderers/scrolling-text-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/sequence-renderer.d.ts +46 -0
- package/models/models/canvas-dispatcher/utils/renderers/sequence-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/solid-color-renderer.d.ts +21 -0
- package/models/models/canvas-dispatcher/utils/renderers/solid-color-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/sweep-renderer.d.ts +52 -0
- package/models/models/canvas-dispatcher/utils/renderers/sweep-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/swirl-renderer.d.ts +13 -0
- package/models/models/canvas-dispatcher/utils/renderers/swirl-renderer.d.ts.map +1 -0
- package/models/models/canvas-renderer/canvas-renderer-model.d.ts +49 -0
- package/models/models/canvas-renderer/canvas-renderer-model.d.ts.map +1 -0
- package/models/models/canvas-renderer/canvas-renderer-registration.d.ts +87 -0
- package/models/models/canvas-renderer/canvas-renderer-registration.d.ts.map +1 -0
- package/models/models/canvas-renderer/index.d.ts +4 -0
- package/models/models/canvas-renderer/index.d.ts.map +1 -0
- package/models/models/canvas-renderer/types/index.d.ts +8 -0
- package/models/models/config-bean/config-bean-model-builder.d.ts +59 -0
- package/models/models/config-bean/config-bean-model-builder.d.ts.map +1 -0
- package/models/models/config-bean/config-bean-model.d.ts +179 -0
- package/models/models/config-bean/config-bean-model.d.ts.map +1 -0
- package/models/models/config-bean/config-bean-types.d.ts +69 -0
- package/models/models/config-bean/config-bean-types.d.ts.map +1 -0
- package/models/models/config-bean/index.d.ts +4 -0
- package/models/models/config-bean/index.d.ts.map +1 -0
- package/models/models/config-bean/types/index.d.ts +33 -0
- package/models/models/config-bean-prop/config-bean-prop-model.d.ts +197 -0
- package/models/models/config-bean-prop/config-bean-prop-model.d.ts.map +1 -0
- package/models/models/config-bean-prop/config-options-factory.d.ts +6 -0
- package/models/models/config-bean-prop/config-options-factory.d.ts.map +1 -0
- package/models/models/config-bean-prop/index.d.ts +3 -0
- package/models/models/config-bean-prop/index.d.ts.map +1 -0
- package/models/models/config-bean-prop/types/index.d.ts +352 -0
- package/models/models/device/device-model.d.ts +258 -0
- package/models/models/device/device-model.d.ts.map +1 -0
- package/models/models/device/device-registration.d.ts +102 -0
- package/models/models/device/device-registration.d.ts.map +1 -0
- package/models/models/device/index.d.ts +5 -0
- package/models/models/device/index.d.ts.map +1 -0
- package/models/models/device/services/device-services.d.ts +21 -0
- package/models/models/device/services/device-services.d.ts.map +1 -0
- package/models/models/device/services/index.d.ts +2 -0
- package/models/models/device/services/index.d.ts.map +1 -0
- package/models/models/device/types/index.d.ts +46 -0
- package/models/models/future/future-aware.d.ts +115 -0
- package/models/models/future/future-aware.d.ts.map +1 -0
- package/models/models/future/future-factory.d.ts +5 -0
- package/models/models/future/future-factory.d.ts.map +1 -0
- package/models/models/future/future-model-builder.d.ts +76 -0
- package/models/models/future/future-model-builder.d.ts.map +1 -0
- package/models/models/future/future-model.d.ts +95 -0
- package/models/models/future/future-model.d.ts.map +1 -0
- package/models/models/future/future-types.d.ts +265 -0
- package/models/models/future/future-types.d.ts.map +1 -0
- package/models/models/future/index.d.ts +6 -0
- package/models/models/future/index.d.ts.map +1 -0
- package/models/models/future-container/future-container-factory.d.ts +5 -0
- package/models/models/future-container/future-container-factory.d.ts.map +1 -0
- package/models/models/future-container/future-container-model.d.ts +124 -0
- package/models/models/future-container/future-container-model.d.ts.map +1 -0
- package/models/models/future-container/future-container-types.d.ts +109 -0
- package/models/models/future-container/future-container-types.d.ts.map +1 -0
- package/models/models/future-container/index.d.ts +4 -0
- package/models/models/future-container/index.d.ts.map +1 -0
- package/models/models/index.d.ts +22 -0
- package/models/models/index.d.ts.map +1 -0
- package/models/models/key-value/index.d.ts +9 -0
- package/models/models/key-value/index.d.ts.map +1 -0
- package/models/models/key-value/key-value-model.d.ts +130 -0
- package/models/models/key-value/key-value-model.d.ts.map +1 -0
- package/models/models/key-value/key-value-registration.d.ts +89 -0
- package/models/models/key-value/key-value-registration.d.ts.map +1 -0
- package/models/models/key-value/services/index.d.ts +2 -0
- package/models/models/key-value/services/index.d.ts.map +1 -0
- package/models/models/key-value/services/key-value-services.d.ts +140 -0
- package/models/models/key-value/services/key-value-services.d.ts.map +1 -0
- package/models/models/key-value/types/index.d.ts +59 -0
- package/models/models/kos-core/index.d.ts +11 -0
- package/models/models/kos-core/index.d.ts.map +1 -0
- package/models/models/kos-expression-evaluator/index.d.ts +4 -0
- package/models/models/kos-expression-evaluator/index.d.ts.map +1 -0
- package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts +209 -0
- package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts.map +1 -0
- package/models/models/kos-expression-evaluator/services/index.d.ts +6 -0
- package/models/models/kos-expression-evaluator/services/index.d.ts.map +1 -0
- package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts +15 -0
- package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts.map +1 -0
- package/models/models/kos-expression-evaluator/types/index.d.ts +1 -0
- package/models/models/kos-log-manager/index.d.ts +5 -0
- package/models/models/kos-log-manager/index.d.ts.map +1 -0
- package/models/models/kos-log-manager/kos-log-manager-model.d.ts +139 -0
- package/models/models/kos-log-manager/kos-log-manager-model.d.ts.map +1 -0
- package/models/models/kos-log-manager/kos-log-manager-registration.d.ts +92 -0
- package/models/models/kos-log-manager/kos-log-manager-registration.d.ts.map +1 -0
- package/models/models/kos-log-manager/services/index.d.ts +2 -0
- package/models/models/kos-log-manager/services/index.d.ts.map +1 -0
- package/models/models/kos-log-manager/services/kos-log-manager-services.d.ts +12 -0
- package/models/models/kos-log-manager/services/kos-log-manager-services.d.ts.map +1 -0
- package/models/models/kos-log-manager/types/index.d.ts +201 -0
- package/models/models/kos-time/index.d.ts +5 -0
- package/models/models/kos-time/index.d.ts.map +1 -0
- package/models/models/kos-time/kos-time-model.d.ts +100 -0
- package/models/models/kos-time/kos-time-model.d.ts.map +1 -0
- package/models/models/kos-time/kos-time-registration.d.ts +87 -0
- package/models/models/kos-time/kos-time-registration.d.ts.map +1 -0
- package/models/models/kos-time/services/index.d.ts +2 -0
- package/models/models/kos-time/services/index.d.ts.map +1 -0
- package/models/models/kos-time/services/kos-time-services.d.ts +16 -0
- package/models/models/kos-time/services/kos-time-services.d.ts.map +1 -0
- package/models/models/kos-time/types/index.d.ts +93 -0
- package/models/models/kos-token/index.d.ts +11 -0
- package/models/models/kos-token/index.d.ts.map +1 -0
- package/models/models/log-block/index.d.ts +6 -0
- package/models/models/log-block/index.d.ts.map +1 -0
- package/models/models/log-block/log-block-container-model.d.ts +155 -0
- package/models/models/log-block/log-block-container-model.d.ts.map +1 -0
- package/models/models/log-block/log-block-container-registration.d.ts +87 -0
- package/models/models/log-block/log-block-container-registration.d.ts.map +1 -0
- package/models/models/log-block/log-block-model.d.ts +213 -0
- package/models/models/log-block/log-block-model.d.ts.map +1 -0
- package/models/models/log-block/log-block-registration.d.ts +87 -0
- package/models/models/log-block/log-block-registration.d.ts.map +1 -0
- package/models/models/log-block/types/index.d.ts +167 -0
- package/models/models/log-stream/index.d.ts +11 -0
- package/models/models/log-stream/index.d.ts.map +1 -0
- package/models/models/log-stream/log-stream-container-model.d.ts +97 -0
- package/models/models/log-stream/log-stream-container-model.d.ts.map +1 -0
- package/models/models/log-stream/log-stream-container-registration.d.ts +87 -0
- package/models/models/log-stream/log-stream-container-registration.d.ts.map +1 -0
- package/models/models/log-stream/log-stream-model.d.ts +93 -0
- package/models/models/log-stream/log-stream-model.d.ts.map +1 -0
- package/models/models/log-stream/log-stream-registration.d.ts +87 -0
- package/models/models/log-stream/log-stream-registration.d.ts.map +1 -0
- package/models/models/log-stream/services/index.d.ts +2 -0
- package/models/models/log-stream/services/index.d.ts.map +1 -0
- package/models/models/log-stream/services/log-stream-services.d.ts +23 -0
- package/models/models/log-stream/services/log-stream-services.d.ts.map +1 -0
- package/models/models/log-stream/types/index.d.ts +86 -0
- package/models/models/network-interface/index.d.ts +11 -0
- package/models/models/network-interface/index.d.ts.map +1 -0
- package/models/models/network-interface/network-interface-container-model.d.ts +83 -0
- package/models/models/network-interface/network-interface-container-model.d.ts.map +1 -0
- package/models/models/network-interface/network-interface-container-registration.d.ts +87 -0
- package/models/models/network-interface/network-interface-container-registration.d.ts.map +1 -0
- package/models/models/network-interface/network-interface-model.d.ts +102 -0
- package/models/models/network-interface/network-interface-model.d.ts.map +1 -0
- package/models/models/network-interface/network-interface-registration.d.ts +87 -0
- package/models/models/network-interface/network-interface-registration.d.ts.map +1 -0
- package/models/models/network-interface/services/index.d.ts +2 -0
- package/models/models/network-interface/services/index.d.ts.map +1 -0
- package/models/models/network-interface/services/network-interface-services.d.ts +100 -0
- package/models/models/network-interface/services/network-interface-services.d.ts.map +1 -0
- package/models/models/network-interface/types/index.d.ts +31 -0
- package/models/models/ota/index.d.ts +4 -0
- package/models/models/ota/index.d.ts.map +1 -0
- package/models/models/ota/ota-model.d.ts +105 -0
- package/models/models/ota/ota-model.d.ts.map +1 -0
- package/models/models/ota/ota-registration.d.ts +89 -0
- package/models/models/ota/ota-registration.d.ts.map +1 -0
- package/models/models/ota/services/index.d.ts +2 -0
- package/models/models/ota/services/index.d.ts.map +1 -0
- package/models/models/ota/services/ota-services.d.ts +8 -0
- package/models/models/ota/services/ota-services.d.ts.map +1 -0
- package/models/models/ota/types/index.d.ts +202 -0
- package/models/models/region-info/index.d.ts +5 -0
- package/models/models/region-info/index.d.ts.map +1 -0
- package/models/models/region-info/region-info-model.d.ts +99 -0
- package/models/models/region-info/region-info-model.d.ts.map +1 -0
- package/models/models/region-info/services/index.d.ts +2 -0
- package/models/models/region-info/services/index.d.ts.map +1 -0
- package/models/models/region-info/services/region-info-services.d.ts +48 -0
- package/models/models/region-info/services/region-info-services.d.ts.map +1 -0
- package/models/models/region-info/types/index.d.ts +296 -0
- package/models/models/region-info/types/index.d.ts.map +1 -0
- package/models/models/region-info/utils/unit-system-utils.d.ts +4 -0
- package/models/models/region-info/utils/unit-system-utils.d.ts.map +1 -0
- package/models/models/software-info/index.d.ts +4 -0
- package/models/models/software-info/index.d.ts.map +1 -0
- package/models/models/software-info/services/index.d.ts +2 -0
- package/models/models/software-info/services/index.d.ts.map +1 -0
- package/models/models/software-info/services/software-info-services.d.ts +44 -0
- package/models/models/software-info/services/software-info-services.d.ts.map +1 -0
- package/models/models/software-info/software-info-model.d.ts +86 -0
- package/models/models/software-info/software-info-model.d.ts.map +1 -0
- package/models/models/software-info/software-info-registration.d.ts +84 -0
- package/models/models/software-info/software-info-registration.d.ts.map +1 -0
- package/models/models/software-info/types/index.d.ts +67 -0
- package/models/models/state-bean/index.d.ts +4 -0
- package/models/models/state-bean/index.d.ts.map +1 -0
- package/models/models/state-bean/services/index.d.ts +2 -0
- package/models/models/state-bean/services/index.d.ts.map +1 -0
- package/models/models/state-bean/services/state-bean-services.d.ts +14 -0
- package/models/models/state-bean/services/state-bean-services.d.ts.map +1 -0
- package/models/models/state-bean/state-bean-model.d.ts +106 -0
- package/models/models/state-bean/state-bean-model.d.ts.map +1 -0
- package/models/models/state-bean/state-bean-registration.d.ts +84 -0
- package/models/models/state-bean/state-bean-registration.d.ts.map +1 -0
- package/models/models/state-bean/types/index.d.ts +132 -0
- package/models/models/state-prop/index.d.ts +4 -0
- package/models/models/state-prop/index.d.ts.map +1 -0
- package/models/models/state-prop/services/index.d.ts +2 -0
- package/models/models/state-prop/services/index.d.ts.map +1 -0
- package/models/models/state-prop/services/state-prop-services.d.ts +11 -0
- package/models/models/state-prop/services/state-prop-services.d.ts.map +1 -0
- package/models/models/state-prop/state-prop-model.d.ts +96 -0
- package/models/models/state-prop/state-prop-model.d.ts.map +1 -0
- package/models/models/state-prop/state-prop-registration.d.ts +84 -0
- package/models/models/state-prop/state-prop-registration.d.ts.map +1 -0
- package/models/models/state-prop/types/index.d.ts +68 -0
- package/models/models/storage-device/index.d.ts +7 -0
- package/models/models/storage-device/index.d.ts.map +1 -0
- package/models/models/storage-device/services/index.d.ts +2 -0
- package/models/models/storage-device/services/index.d.ts.map +1 -0
- package/models/models/storage-device/services/storage-device-services.d.ts +23 -0
- package/models/models/storage-device/services/storage-device-services.d.ts.map +1 -0
- package/models/models/storage-device/storage-device-container-model.d.ts +318 -0
- package/models/models/storage-device/storage-device-container-model.d.ts.map +1 -0
- package/models/models/storage-device/storage-device-container-registration.d.ts +86 -0
- package/models/models/storage-device/storage-device-container-registration.d.ts.map +1 -0
- package/models/models/storage-device/storage-device-model.d.ts +109 -0
- package/models/models/storage-device/storage-device-model.d.ts.map +1 -0
- package/models/models/storage-device/storage-device-registration.d.ts +87 -0
- package/models/models/storage-device/storage-device-registration.d.ts.map +1 -0
- package/models/models/storage-device/types/index.d.ts +132 -0
- package/models/models/studio-properties/index.d.ts +5 -0
- package/models/models/studio-properties/index.d.ts.map +1 -0
- package/models/models/studio-properties/services/index.d.ts +2 -0
- package/models/models/studio-properties/services/index.d.ts.map +1 -0
- package/models/models/studio-properties/services/studio-properties-services.d.ts +15 -0
- package/models/models/studio-properties/services/studio-properties-services.d.ts.map +1 -0
- package/models/models/studio-properties/studio-properties-model.d.ts +97 -0
- package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -0
- package/models/models/studio-properties/studio-properties-registration.d.ts +87 -0
- package/models/models/studio-properties/studio-properties-registration.d.ts.map +1 -0
- package/models/models/studio-properties/types/index.d.ts +32 -0
- package/models/models/translation/constants.d.ts +2 -0
- package/models/models/translation/constants.d.ts.map +1 -0
- package/models/models/translation/index.d.ts +9 -0
- package/models/models/translation/index.d.ts.map +1 -0
- package/models/models/translation/services/index.d.ts +2 -0
- package/models/models/translation/services/index.d.ts.map +1 -0
- package/models/models/translation/services/translation-services.d.ts +151 -0
- package/models/models/translation/services/translation-services.d.ts.map +1 -0
- package/models/models/translation/translation-container-model.d.ts +126 -0
- package/models/models/translation/translation-container-model.d.ts.map +1 -0
- package/models/models/translation/translation-container-registration.d.ts +88 -0
- package/models/models/translation/translation-container-registration.d.ts.map +1 -0
- package/models/models/translation/translation-context.d.ts +12 -0
- package/models/models/translation/translation-context.d.ts.map +1 -0
- package/models/models/translation/translation-model.d.ts +154 -0
- package/models/models/translation/translation-model.d.ts.map +1 -0
- package/models/models/translation/translation-registration.d.ts +85 -0
- package/models/models/translation/translation-registration.d.ts.map +1 -0
- package/models/models/translation/types/index.d.ts +383 -0
- package/models/models/trouble/handlers/resolvable-trouble-handler.d.ts +16 -0
- package/models/models/trouble/handlers/resolvable-trouble-handler.d.ts.map +1 -0
- package/models/models/trouble/index.d.ts +9 -0
- package/models/models/trouble/index.d.ts.map +1 -0
- package/models/models/trouble/services/index.d.ts +2 -0
- package/models/models/trouble/services/index.d.ts.map +1 -0
- package/models/models/trouble/services/trouble-services.d.ts +23 -0
- package/models/models/trouble/services/trouble-services.d.ts.map +1 -0
- package/models/models/trouble/trouble-model.d.ts +43 -0
- package/models/models/trouble/trouble-model.d.ts.map +1 -0
- package/models/models/trouble/trouble-registration.d.ts +84 -0
- package/models/models/trouble/trouble-registration.d.ts.map +1 -0
- package/models/models/trouble/types/index.d.ts +373 -0
- package/models/models/trouble/utils/is-trouble-aware.d.ts +98 -0
- package/models/models/trouble/utils/is-trouble-aware.d.ts.map +1 -0
- package/models/models/trouble/utils/trouble-data-extension.d.ts +5 -0
- package/models/models/trouble/utils/trouble-data-extension.d.ts.map +1 -0
- package/models/models/trouble/utils/trouble-extension.d.ts +5 -0
- package/models/models/trouble/utils/trouble-extension.d.ts.map +1 -0
- package/models/models/trouble/utils/trouble-reducer.d.ts +4 -0
- package/models/models/trouble/utils/trouble-reducer.d.ts.map +1 -0
- package/models/models/trouble-container/index.d.ts +5 -0
- package/models/models/trouble-container/index.d.ts.map +1 -0
- package/models/models/trouble-container/trouble-container-model.d.ts +27 -0
- package/models/models/trouble-container/trouble-container-model.d.ts.map +1 -0
- package/models/models/trouble-container/trouble-utils.d.ts +5 -0
- package/models/models/trouble-container/trouble-utils.d.ts.map +1 -0
- package/models/models/trouble-container/types/index.d.ts +4 -0
- package/models/models/types/index.d.ts +3 -0
- package/models/models/types/index.d.ts.map +1 -0
- package/models/models/usb-update/index.d.ts +7 -0
- package/models/models/usb-update/index.d.ts.map +1 -0
- package/models/models/usb-update/services/index.d.ts +2 -0
- package/models/models/usb-update/services/index.d.ts.map +1 -0
- package/models/models/usb-update/services/usb-update-services.d.ts +22 -0
- package/models/models/usb-update/services/usb-update-services.d.ts.map +1 -0
- package/models/models/usb-update/types/index.d.ts +14 -0
- package/models/models/usb-update/usb-update-container-model.d.ts +34 -0
- package/models/models/usb-update/usb-update-container-model.d.ts.map +1 -0
- package/models/models/usb-update/usb-update-container-registration.d.ts +87 -0
- package/models/models/usb-update/usb-update-container-registration.d.ts.map +1 -0
- package/models/models/usb-update/usb-update-model.d.ts +30 -0
- package/models/models/usb-update/usb-update-model.d.ts.map +1 -0
- package/models/models/usb-update/usb-update-registration.d.ts +87 -0
- package/models/models/usb-update/usb-update-registration.d.ts.map +1 -0
- package/models/models/ws-event/index.d.ts +4 -0
- package/models/models/ws-event/index.d.ts.map +1 -0
- package/models/models/ws-event/types/index.d.ts +25 -0
- package/models/models/ws-event/types/index.d.ts.map +1 -0
- package/models/models/ws-event/ws-event-factory.d.ts +5 -0
- package/models/models/ws-event/ws-event-factory.d.ts.map +1 -0
- package/models/models/ws-event/ws-event-model.d.ts +15 -0
- package/models/models/ws-event/ws-event-model.d.ts.map +1 -0
- package/models/registration.d.ts +7 -0
- package/models/registration.d.ts.map +1 -0
- package/models/services/config-bean/index.d.ts +144 -0
- package/models/services/config-bean/index.d.ts.map +1 -0
- package/models/services/future/index.d.ts +98 -0
- package/models/services/future/index.d.ts.map +1 -0
- package/models/services/index.d.ts +4 -0
- package/models/services/index.d.ts.map +1 -0
- package/models/services/login/index.d.ts +78 -0
- package/models/services/login/index.d.ts.map +1 -0
- package/models/services/trouble/index.d.ts +59 -0
- package/models/services/trouble/index.d.ts.map +1 -0
- package/models/types/cancellable-promise.d.ts +49 -0
- package/models/types/cancellable-promise.d.ts.map +1 -0
- package/models/types/future-interfaces.d.ts +55 -0
- package/models/types/future-interfaces.d.ts.map +1 -0
- package/models/types/global.d.ts +19 -0
- package/models/types/index.d.ts +3 -0
- package/models/types/index.d.ts.map +1 -0
- package/models/utils/cancellable-future-call.d.ts +54 -0
- package/models/utils/cancellable-future-call.d.ts.map +1 -0
- package/models/utils/cancellable-service.d.ts +79 -0
- package/models/utils/cancellable-service.d.ts.map +1 -0
- package/models/utils/client.d.ts +79 -0
- package/models/utils/client.d.ts.map +1 -0
- package/models/utils/conversion-utils.d.ts +67 -0
- package/models/utils/conversion-utils.d.ts.map +1 -0
- package/models/utils/core-registration-manager.d.ts +21 -0
- package/models/utils/core-registration-manager.d.ts.map +1 -0
- package/models/utils/extension-manager.d.ts +23 -0
- package/models/utils/extension-manager.d.ts.map +1 -0
- package/models/utils/future-manager/index.d.ts +9 -0
- package/models/utils/future-manager/index.d.ts.map +1 -0
- package/models/utils/index.d.ts +12 -0
- package/models/utils/index.d.ts.map +1 -0
- package/models/utils/model-event-utils.d.ts +3 -0
- package/models/utils/model-event-utils.d.ts.map +1 -0
- package/models/utils/openapi.d.ts +9311 -0
- package/models/utils/persistence-store.d.ts +58 -0
- package/models/utils/persistence-store.d.ts.map +1 -0
- package/models/utils/prop-utils.d.ts +3 -0
- package/models/utils/prop-utils.d.ts.map +1 -0
- package/models/utils/region-utils.d.ts +2 -0
- package/models/utils/region-utils.d.ts.map +1 -0
- package/models/utils/service.d.ts +87 -0
- package/models/utils/service.d.ts.map +1 -0
- package/models/utils/timer-manager.d.ts +159 -0
- package/models/utils/timer-manager.d.ts.map +1 -0
- package/models/utils/timezone-utils.d.ts +2 -0
- package/models/utils/timezone-utils.d.ts.map +1 -0
- package/models/utils/trouble-utils.d.ts +6 -0
- package/models/utils/trouble-utils.d.ts.map +1 -0
- package/models/utils/types.d.ts +9637 -0
- package/models/utils/types.d.ts.map +1 -0
- package/package.json +42 -0
- package/ui/components/error-boundary/error-boundary.d.ts +16 -0
- package/ui/components/error-boundary/error-boundary.d.ts.map +1 -0
- package/ui/components/error-boundary/index.d.ts +2 -0
- package/ui/components/error-boundary/index.d.ts.map +1 -0
- package/ui/components/index.d.ts +5 -0
- package/ui/components/index.d.ts.map +1 -0
- package/ui/components/kos-model-loader/contexts/kos-model-context.d.ts +12 -0
- package/ui/components/kos-model-loader/contexts/kos-model-context.d.ts.map +1 -0
- package/ui/components/kos-model-loader/contexts/kos-model-hierarchy-context.d.ts +16 -0
- package/ui/components/kos-model-loader/contexts/kos-model-hierarchy-context.d.ts.map +1 -0
- package/ui/components/kos-model-loader/index.d.ts +4 -0
- package/ui/components/kos-model-loader/index.d.ts.map +1 -0
- package/ui/components/kos-model-loader/kos-model-loader.d.ts +13 -0
- package/ui/components/kos-model-loader/kos-model-loader.d.ts.map +1 -0
- package/ui/components/loading-message/index.d.ts +12 -0
- package/ui/components/loading-message/index.d.ts.map +1 -0
- package/ui/components/loading-message/loading-message-styles.d.ts +3 -0
- package/ui/components/loading-message/loading-message-styles.d.ts.map +1 -0
- package/ui/components/progress-bar/index.d.ts +2 -0
- package/ui/components/progress-bar/index.d.ts.map +1 -0
- package/ui/components/progress-bar/progress-bar.d.ts +11 -0
- package/ui/components/progress-bar/progress-bar.d.ts.map +1 -0
- package/ui/constants/index.d.ts +2 -0
- package/ui/constants/index.d.ts.map +1 -0
- package/ui/contexts/create-model-context.d.ts +28 -0
- package/ui/contexts/create-model-context.d.ts.map +1 -0
- package/ui/contexts/fetch-kos-core.d.ts +6 -0
- package/ui/contexts/fetch-kos-core.d.ts.map +1 -0
- package/ui/contexts/index.d.ts +7 -0
- package/ui/contexts/index.d.ts.map +1 -0
- package/ui/contexts/kos-core-context.d.ts +16 -0
- package/ui/contexts/kos-core-context.d.ts.map +1 -0
- package/ui/contexts/kos-model-context.d.ts +10 -0
- package/ui/contexts/kos-model-context.d.ts.map +1 -0
- package/ui/contexts/kos-time/index.d.ts +2 -0
- package/ui/contexts/kos-time/index.d.ts.map +1 -0
- package/ui/contexts/kos-time/kos-time-provider.d.ts +13 -0
- package/ui/contexts/kos-time/kos-time-provider.d.ts.map +1 -0
- package/ui/contexts/modal-context.d.ts +13 -0
- package/ui/contexts/modal-context.d.ts.map +1 -0
- package/ui/contexts/software-info/index.d.ts +2 -0
- package/ui/contexts/software-info/index.d.ts.map +1 -0
- package/ui/contexts/software-info/software-info-provider.d.ts +14 -0
- package/ui/contexts/software-info/software-info-provider.d.ts.map +1 -0
- package/ui/contexts/state-bean/index.d.ts +2 -0
- package/ui/contexts/state-bean/index.d.ts.map +1 -0
- package/ui/contexts/state-bean/state-bean-provider.d.ts +14 -0
- package/ui/contexts/state-bean/state-bean-provider.d.ts.map +1 -0
- package/ui/contexts/token-context.d.ts +9 -0
- package/ui/contexts/token-context.d.ts.map +1 -0
- package/ui/contexts/translation-container/index.d.ts +2 -0
- package/ui/contexts/translation-container/index.d.ts.map +1 -0
- package/ui/contexts/translation-container/kos-translations-provider.d.ts +18 -0
- package/ui/contexts/translation-container/kos-translations-provider.d.ts.map +1 -0
- package/ui/features/canvas/components/canvas-streamer/canvas-streamer.d.ts +15 -0
- package/ui/features/canvas/components/canvas-streamer/canvas-streamer.d.ts.map +1 -0
- package/ui/features/canvas/components/canvas-streamer/index.d.ts +2 -0
- package/ui/features/canvas/components/canvas-streamer/index.d.ts.map +1 -0
- package/ui/features/canvas/components/index.d.ts +2 -0
- package/ui/features/canvas/components/index.d.ts.map +1 -0
- package/ui/features/canvas/components/rgb-332-visualizer/rgb-332-visualizer.d.ts +5 -0
- package/ui/features/canvas/components/rgb-332-visualizer/rgb-332-visualizer.d.ts.map +1 -0
- package/ui/features/canvas/hooks/canvas-dispatcher/index.d.ts +3 -0
- package/ui/features/canvas/hooks/canvas-dispatcher/index.d.ts.map +1 -0
- package/ui/features/canvas/hooks/canvas-dispatcher/use-canvas-dispatcher.d.ts +14 -0
- package/ui/features/canvas/hooks/canvas-dispatcher/use-canvas-dispatcher.d.ts.map +1 -0
- package/ui/features/canvas/hooks/canvas-dispatcher/with-canvas-dispatcher.d.ts +9 -0
- package/ui/features/canvas/hooks/canvas-dispatcher/with-canvas-dispatcher.d.ts.map +1 -0
- package/ui/features/canvas/hooks/use-gradient-renderer.d.ts +14 -0
- package/ui/features/canvas/hooks/use-gradient-renderer.d.ts.map +1 -0
- package/ui/features/canvas/hooks/use-image-renderer.d.ts +22 -0
- package/ui/features/canvas/hooks/use-image-renderer.d.ts.map +1 -0
- package/ui/features/canvas/hooks/use-solid-color-renderer.d.ts +11 -0
- package/ui/features/canvas/hooks/use-solid-color-renderer.d.ts.map +1 -0
- package/ui/features/canvas/hooks/use-streamable-renderer.d.ts +17 -0
- package/ui/features/canvas/hooks/use-streamable-renderer.d.ts.map +1 -0
- package/ui/features/canvas/hooks/use-sweep-renderer.d.ts +32 -0
- package/ui/features/canvas/hooks/use-sweep-renderer.d.ts.map +1 -0
- package/ui/features/canvas/hooks/use-swirl-renderer.d.ts +22 -0
- package/ui/features/canvas/hooks/use-swirl-renderer.d.ts.map +1 -0
- package/ui/features/canvas/hooks/use-video-renderer.d.ts +24 -0
- package/ui/features/canvas/hooks/use-video-renderer.d.ts.map +1 -0
- package/ui/features/canvas/index.d.ts +2 -0
- package/ui/features/canvas/index.d.ts.map +1 -0
- package/ui/features/canvas/utils/preview-decoder.d.ts +29 -0
- package/ui/features/canvas/utils/preview-decoder.d.ts.map +1 -0
- package/ui/features/index.d.ts +2 -0
- package/ui/features/index.d.ts.map +1 -0
- package/ui/hooks/device/index.d.ts +3 -0
- package/ui/hooks/device/index.d.ts.map +1 -0
- package/ui/hooks/device/use-device.d.ts +14 -0
- package/ui/hooks/device/use-device.d.ts.map +1 -0
- package/ui/hooks/device/with-device.d.ts +9 -0
- package/ui/hooks/device/with-device.d.ts.map +1 -0
- package/ui/hooks/fetch-model.d.ts +6 -0
- package/ui/hooks/fetch-model.d.ts.map +1 -0
- package/ui/hooks/index.d.ts +31 -0
- package/ui/hooks/index.d.ts.map +1 -0
- package/ui/hooks/kos-time/index.d.ts +3 -0
- package/ui/hooks/kos-time/index.d.ts.map +1 -0
- package/ui/hooks/kos-time/use-kos-time.d.ts +14 -0
- package/ui/hooks/kos-time/use-kos-time.d.ts.map +1 -0
- package/ui/hooks/kos-time/with-kos-time.d.ts +8 -0
- package/ui/hooks/kos-time/with-kos-time.d.ts.map +1 -0
- package/ui/hooks/network-interface-container/index.d.ts +3 -0
- package/ui/hooks/network-interface-container/index.d.ts.map +1 -0
- package/ui/hooks/network-interface-container/use-network-interface-container.d.ts +14 -0
- package/ui/hooks/network-interface-container/use-network-interface-container.d.ts.map +1 -0
- package/ui/hooks/network-interface-container/with-network-interface-container.d.ts +9 -0
- package/ui/hooks/network-interface-container/with-network-interface-container.d.ts.map +1 -0
- package/ui/hooks/ota/index.d.ts +3 -0
- package/ui/hooks/ota/index.d.ts.map +1 -0
- package/ui/hooks/ota/use-ota.d.ts +14 -0
- package/ui/hooks/ota/use-ota.d.ts.map +1 -0
- package/ui/hooks/ota/with-ota.d.ts +9 -0
- package/ui/hooks/ota/with-ota.d.ts.map +1 -0
- package/ui/hooks/outside-alerter.d.ts +11 -0
- package/ui/hooks/outside-alerter.d.ts.map +1 -0
- package/ui/hooks/software-info/index.d.ts +3 -0
- package/ui/hooks/software-info/index.d.ts.map +1 -0
- package/ui/hooks/software-info/use-software-info.d.ts +14 -0
- package/ui/hooks/software-info/use-software-info.d.ts.map +1 -0
- package/ui/hooks/software-info/with-software-info.d.ts +8 -0
- package/ui/hooks/software-info/with-software-info.d.ts.map +1 -0
- package/ui/hooks/state-bean/use-state-bean.d.ts +14 -0
- package/ui/hooks/state-bean/use-state-bean.d.ts.map +1 -0
- package/ui/hooks/state-bean/with-state-bean.d.ts +8 -0
- package/ui/hooks/state-bean/with-state-bean.d.ts.map +1 -0
- package/ui/hooks/state-prop/index.d.ts +2 -0
- package/ui/hooks/state-prop/index.d.ts.map +1 -0
- package/ui/hooks/state-prop/use-state-prop.d.ts +15 -0
- package/ui/hooks/state-prop/use-state-prop.d.ts.map +1 -0
- package/ui/hooks/storage-device-container/index.d.ts +3 -0
- package/ui/hooks/storage-device-container/index.d.ts.map +1 -0
- package/ui/hooks/storage-device-container/use-storage-device-container.d.ts +16 -0
- package/ui/hooks/storage-device-container/use-storage-device-container.d.ts.map +1 -0
- package/ui/hooks/storage-device-container/with-storage-device-container.d.ts +9 -0
- package/ui/hooks/storage-device-container/with-storage-device-container.d.ts.map +1 -0
- package/ui/hooks/timer/index.d.ts +2 -0
- package/ui/hooks/timer/index.d.ts.map +1 -0
- package/ui/hooks/timer/use-timer.d.ts +23 -0
- package/ui/hooks/timer/use-timer.d.ts.map +1 -0
- package/ui/hooks/translation-container/index.d.ts +6 -0
- package/ui/hooks/translation-container/index.d.ts.map +1 -0
- package/ui/hooks/translation-container/trans.d.ts +21 -0
- package/ui/hooks/translation-container/trans.d.ts.map +1 -0
- package/ui/hooks/translation-container/use-translation-container.d.ts +14 -0
- package/ui/hooks/translation-container/use-translation-container.d.ts.map +1 -0
- package/ui/hooks/translation-container/use-translation.d.ts +14 -0
- package/ui/hooks/translation-container/use-translation.d.ts.map +1 -0
- package/ui/hooks/translation-container/with-translation-container.d.ts +9 -0
- package/ui/hooks/translation-container/with-translation-container.d.ts.map +1 -0
- package/ui/hooks/trouble/index.d.ts +5 -0
- package/ui/hooks/trouble/index.d.ts.map +1 -0
- package/ui/hooks/trouble/use-trouble-container.d.ts +14 -0
- package/ui/hooks/trouble/use-trouble-container.d.ts.map +1 -0
- package/ui/hooks/trouble/use-trouble-visibility.d.ts +16 -0
- package/ui/hooks/trouble/use-trouble-visibility.d.ts.map +1 -0
- package/ui/hooks/trouble/use-trouble.d.ts +14 -0
- package/ui/hooks/trouble/use-trouble.d.ts.map +1 -0
- package/ui/hooks/trouble/with-trouble-container.d.ts +8 -0
- package/ui/hooks/trouble/with-trouble-container.d.ts.map +1 -0
- package/ui/hooks/usb-update-container/index.d.ts +3 -0
- package/ui/hooks/usb-update-container/index.d.ts.map +1 -0
- package/ui/hooks/usb-update-container/use-usb-update-container.d.ts +17 -0
- package/ui/hooks/usb-update-container/use-usb-update-container.d.ts.map +1 -0
- package/ui/hooks/usb-update-container/with-usb-update-container.d.ts +9 -0
- package/ui/hooks/usb-update-container/with-usb-update-container.d.ts.map +1 -0
- package/ui/hooks/use-config-bean.d.ts +15 -0
- package/ui/hooks/use-config-bean.d.ts.map +1 -0
- package/ui/hooks/use-config-property.d.ts +29 -0
- package/ui/hooks/use-config-property.d.ts.map +1 -0
- package/ui/hooks/use-date-props.d.ts +169 -0
- package/ui/hooks/use-date-props.d.ts.map +1 -0
- package/ui/hooks/use-date-relative-prop.d.ts +49 -0
- package/ui/hooks/use-date-relative-prop.d.ts.map +1 -0
- package/ui/hooks/use-function-warmup.d.ts +61 -0
- package/ui/hooks/use-function-warmup.d.ts.map +1 -0
- package/ui/hooks/use-kos-date-formats.d.ts +57 -0
- package/ui/hooks/use-kos-date-formats.d.ts.map +1 -0
- package/ui/hooks/use-kos-model.d.ts +24 -0
- package/ui/hooks/use-kos-model.d.ts.map +1 -0
- package/ui/hooks/use-kos-region-timezones.d.ts +89 -0
- package/ui/hooks/use-kos-region-timezones.d.ts.map +1 -0
- package/ui/hooks/use-kos-regions.d.ts +59 -0
- package/ui/hooks/use-kos-regions.d.ts.map +1 -0
- package/ui/hooks/use-kos-time-formats.d.ts +58 -0
- package/ui/hooks/use-kos-time-formats.d.ts.map +1 -0
- package/ui/hooks/use-kos-token.d.ts +5 -0
- package/ui/hooks/use-kos-token.d.ts.map +1 -0
- package/ui/hooks/use-kos-unit-systems.d.ts +56 -0
- package/ui/hooks/use-kos-unit-systems.d.ts.map +1 -0
- package/ui/hooks/use-local-computed.d.ts +7 -0
- package/ui/hooks/use-local-computed.d.ts.map +1 -0
- package/ui/hooks/use-mutation-observer.d.ts +13 -0
- package/ui/hooks/use-mutation-observer.d.ts.map +1 -0
- package/ui/hooks/use-press-gesture/index.d.ts +4 -0
- package/ui/hooks/use-press-gesture/index.d.ts.map +1 -0
- package/ui/hooks/use-press-gesture/strategy/dom-intersection-strategy.d.ts +4 -0
- package/ui/hooks/use-press-gesture/strategy/dom-intersection-strategy.d.ts.map +1 -0
- package/ui/hooks/use-press-gesture/strategy/intersection-strategy.d.ts +9 -0
- package/ui/hooks/use-press-gesture/strategy/intersection-strategy.d.ts.map +1 -0
- package/ui/hooks/use-press-gesture/use-press-gesture.d.ts +17 -0
- package/ui/hooks/use-press-gesture/use-press-gesture.d.ts.map +1 -0
- package/ui/hooks/use-project-reloading.d.ts +2 -0
- package/ui/hooks/use-project-reloading.d.ts.map +1 -0
- package/ui/hooks/use-region-time-props.d.ts +27 -0
- package/ui/hooks/use-region-time-props.d.ts.map +1 -0
- package/ui/hooks/use-time-props.d.ts +68 -0
- package/ui/hooks/use-time-props.d.ts.map +1 -0
- package/ui/hooks/with-project-reload.d.ts +7 -0
- package/ui/hooks/with-project-reload.d.ts.map +1 -0
- package/ui/i18n/config.d.ts +11 -0
- package/ui/i18n/config.d.ts.map +1 -0
- package/ui/index.d.ts +7 -0
- package/ui/index.d.ts.map +1 -0
- package/ui/mocks/browser.d.ts +3 -0
- package/ui/mocks/browser.d.ts.map +1 -0
- package/ui/mocks/handlers.d.ts +3 -0
- package/ui/mocks/handlers.d.ts.map +1 -0
- package/ui/utils/date-utils.d.ts +34 -0
- package/ui/utils/date-utils.d.ts.map +1 -0
- package/ui/utils/date.d.ts +31 -0
- package/ui/utils/date.d.ts.map +1 -0
- package/ui/utils/index.d.ts +2 -0
- 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"}
|