@kosdev-code/kos-ui-sdk 2.0.2
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 +26 -0
- package/common/constants/index.d.ts.map +1 -0
- package/common/events/eventBus.d.ts +18 -0
- package/common/events/eventBus.d.ts.map +1 -0
- package/common/events/index.d.ts +15 -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 +30 -0
- package/core/core/context/kos-context-manager.d.ts.map +1 -0
- package/core/core/decorators/index.d.ts +13 -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 +11 -0
- package/core/core/decorators/kos-companion.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-log.d.ts +11 -0
- package/core/core/decorators/kos-log.d.ts.map +1 -0
- package/core/core/decorators/kos-model-effect.d.ts +25 -0
- package/core/core/decorators/kos-model-effect.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/kosDependency.d.ts +16 -0
- package/core/core/decorators/kosDependency.d.ts.map +1 -0
- package/core/core/decorators/kosModel.d.ts +23 -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 +78 -0
- package/core/core/decorators/kosTopicHandler.d.ts.map +1 -0
- package/core/core/decorators/propKeys.d.ts +13 -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/extension/extension-manager.d.ts +40 -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 +69 -0
- package/core/core/kos-container-model.d.ts.map +1 -0
- package/core/core/kos-data-container.d.ts +48 -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 +150 -0
- package/core/core/kosModel.d.ts.map +1 -0
- package/core/core/kosModelManager.d.ts +58 -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/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 +4 -0
- package/core/core/registration/index.d.ts.map +1 -0
- package/core/core/registration/model-registration.d.ts +44 -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/browser-router.d.ts +46 -0
- package/core/core/services/browser-router.d.ts.map +1 -0
- package/core/core/services/index.d.ts +3 -0
- package/core/core/services/index.d.ts.map +1 -0
- package/core/core/services/intent-service.d.ts +8 -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 +83 -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 +124 -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/container-utils.d.ts +26 -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 +2 -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 +13 -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 +30 -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 +100 -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 +42 -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 +146 -0
- package/index.cjs.map +1 -0
- package/index.d.cts +6 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +10456 -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 +7 -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 +11 -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 +17 -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 +1 -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/config-bean/config-bean-model-builder.d.ts +57 -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 +75 -0
- package/models/models/config-bean/config-bean-model.d.ts.map +1 -0
- package/models/models/config-bean/config-bean-types.d.ts +66 -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-prop/config-bean-prop-model.d.ts +86 -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 +76 -0
- package/models/models/device/device-model.d.ts +48 -0
- package/models/models/device/device-model.d.ts.map +1 -0
- package/models/models/device/device-registration.d.ts +89 -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 +5 -0
- package/models/models/future/future-aware.d.ts +32 -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 +66 -0
- package/models/models/future/future-model.d.ts.map +1 -0
- package/models/models/future/future-types.d.ts +83 -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 +20 -0
- package/models/models/index.d.ts.map +1 -0
- package/models/models/key-value/index.d.ts +5 -0
- package/models/models/key-value/index.d.ts.map +1 -0
- package/models/models/key-value/key-value-model.d.ts +19 -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 +18 -0
- package/models/models/key-value/services/key-value-services.d.ts.map +1 -0
- package/models/models/key-value/types/index.d.ts +3 -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-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 +36 -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 +13 -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 +23 -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 +28 -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 +38 -0
- package/models/models/log-stream/index.d.ts +7 -0
- package/models/models/log-stream/index.d.ts.map +1 -0
- package/models/models/log-stream/log-stream-container-model.d.ts +35 -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 +38 -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 +22 -0
- package/models/models/log-stream/services/log-stream-services.d.ts.map +1 -0
- package/models/models/log-stream/types/index.d.ts +9 -0
- package/models/models/network-interface/index.d.ts +7 -0
- package/models/models/network-interface/index.d.ts.map +1 -0
- package/models/models/network-interface/network-interface-container-model.d.ts +21 -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 +86 -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 +25 -0
- package/models/models/network-interface/network-interface-model.d.ts.map +1 -0
- package/models/models/network-interface/network-interface-registration.d.ts +86 -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 +46 -0
- package/models/models/network-interface/services/network-interface-services.d.ts.map +1 -0
- package/models/models/network-interface/types/index.d.ts +10 -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 +26 -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 +56 -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 +95 -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 +168 -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 +22 -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 +14 -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 +35 -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 +29 -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 +24 -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 +19 -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 +20 -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 +22 -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 +31 -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 +27 -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 +20 -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 +25 -0
- package/models/models/translation/services/translation-services.d.ts.map +1 -0
- package/models/models/translation/translation-container-model.d.ts +36 -0
- package/models/models/translation/translation-container-model.d.ts.map +1 -0
- package/models/models/translation/translation-container-registration.d.ts +87 -0
- package/models/models/translation/translation-container-registration.d.ts.map +1 -0
- package/models/models/translation/translation-context.d.ts +27 -0
- package/models/models/translation/translation-context.d.ts.map +1 -0
- package/models/models/translation/translation-model.d.ts +42 -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 +43 -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 +8 -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 +42 -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 +100 -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 +4 -0
- package/models/models/trouble-container/index.d.ts.map +1 -0
- package/models/models/trouble-container/trouble-container-model.d.ts +23 -0
- package/models/models/trouble-container/trouble-container-model.d.ts.map +1 -0
- package/models/models/trouble-container/trouble-container-registration.d.ts +5 -0
- package/models/models/trouble-container/trouble-container-registration.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 +17 -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/global.d.ts +19 -0
- package/models/utils/client.d.ts +63 -0
- package/models/utils/client.d.ts.map +1 -0
- package/models/utils/conversion-utils.d.ts +41 -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 +21 -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 +11 -0
- package/models/utils/index.d.ts.map +1 -0
- package/models/utils/openapi.d.ts +9493 -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 +70 -0
- package/models/utils/service.d.ts.map +1 -0
- package/models/utils/timer-manager.d.ts +153 -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 +11 -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/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 +30 -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 +19 -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 +43 -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-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 +23 -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 +6 -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,19 @@
|
|
|
1
|
+
import { KosStateProp, StatePropOptions } from './types';
|
|
2
|
+
import { StatePropertyTypes } from '../types';
|
|
3
|
+
import { StateBeanModel } from '../state-bean/types';
|
|
4
|
+
import { IKosModelLogger, KosContextLogger, KosCreationContext } from '../../../core';
|
|
5
|
+
|
|
6
|
+
export declare const MODEL_TYPE = "state-prop-model";
|
|
7
|
+
export declare class StatePropModelImpl<T extends StatePropertyTypes = any> implements KosStateProp<T>, IKosModelLogger {
|
|
8
|
+
id: string;
|
|
9
|
+
path: string;
|
|
10
|
+
attribute: string;
|
|
11
|
+
logger: KosContextLogger;
|
|
12
|
+
stateBean: StateBeanModel;
|
|
13
|
+
constructor(modelId: string, options: StatePropOptions, context: KosCreationContext);
|
|
14
|
+
get value(): T | undefined;
|
|
15
|
+
init(): Promise<void>;
|
|
16
|
+
load(): Promise<void>;
|
|
17
|
+
toString(): string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=state-prop-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state-prop-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/state-prop/state-prop-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,qBAAqB,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE9D,eAAO,MAAM,UAAU,qBAAqB,CAAC;AAG7C,qBACa,kBAAkB,CAAC,CAAC,SAAS,kBAAkB,GAAG,GAAG,CAChE,YAAW,YAAY,CAAC,CAAC,CAAC,EAAE,eAAe;IAE3C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,gBAAgB,CAAC;IAOzB,SAAS,EAAG,cAAc,CAAC;gBAGzB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,kBAAkB;IAW7B,IAAI,KAAK,IAAI,CAAC,GAAG,SAAS,CAEzB;IAIK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,QAAQ,IAAI,MAAM;CAGnB"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { KosStateProp, StatePropOptions } from './types';
|
|
2
|
+
import { KosModelRegistrationBean } from '../../../core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # StateProp
|
|
6
|
+
*
|
|
7
|
+
* The registration bean includes convenience methods for creating and working with StatePropModel instances.
|
|
8
|
+
*
|
|
9
|
+
* ## type
|
|
10
|
+
* The type property is a string that identifies the model type.
|
|
11
|
+
* 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
|
|
12
|
+
* used when declaring dependencies on models.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
*
|
|
17
|
+
* @kosDependency({modelType: StateProp.type, id: "statePropId"})
|
|
18
|
+
* private statePropModel: StatePropModel;
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* ## factory
|
|
23
|
+
*
|
|
24
|
+
* The factory method creates a factory function that can be used to create new StatePropModel instances.
|
|
25
|
+
*
|
|
26
|
+
|
|
27
|
+
* The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
|
|
28
|
+
*
|
|
29
|
+
* If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
|
|
30
|
+
* in this case and the existing model will be returned in its current state.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* const model = StateProp.factory("statePropId")({
|
|
35
|
+
* // Add option data
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
*
|
|
41
|
+
* ## predicate
|
|
42
|
+
*
|
|
43
|
+
* [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 StatePropModel.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
*
|
|
48
|
+
* const model: IKosDataModel = ...; // some model
|
|
49
|
+
*
|
|
50
|
+
* if (StateProp.predicate(model)) {
|
|
51
|
+
* // if the function evaluates to true, the model is narrowed down to StatePropModel
|
|
52
|
+
* // and the compiler will know that the model has the StatePropModel interface
|
|
53
|
+
* model.updateAvailability(false);
|
|
54
|
+
* }
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* ## registration
|
|
58
|
+
*
|
|
59
|
+
* The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
|
|
60
|
+
* can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
|
|
61
|
+
*
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
*
|
|
65
|
+
* In an application registration file you can declare the model registration as follows:
|
|
66
|
+
*
|
|
67
|
+
* **registration.ts**
|
|
68
|
+
* ```typescript
|
|
69
|
+
* import { StateProp } from "@kosdev-code/kos-dispense-sdk";
|
|
70
|
+
* ...
|
|
71
|
+
* import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
|
|
72
|
+
* export const kosModels: IKosRegistry["models"] = {
|
|
73
|
+
* ...StateProp.registration,
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* ## registration.singleton
|
|
78
|
+
|
|
79
|
+
* The stateProp 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.
|
|
80
|
+
* If the factory function is called with an ID that already exists, the existing model will be returned.
|
|
81
|
+
|
|
82
|
+
* */
|
|
83
|
+
export declare const StateProp: Readonly<KosModelRegistrationBean<KosStateProp, StatePropOptions>>;
|
|
84
|
+
//# sourceMappingURL=state-prop-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state-prop-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/state-prop/state-prop-registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAG9D,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AACL,eAAO,MAAM,SAAS,EAAE,QAAQ,CAC9B,wBAAwB,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAWzD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StatePropertyTypes } from '../../types';
|
|
2
|
+
import { IKosDataModel } from '../../../core';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export interface StatePropOptions {
|
|
6
|
+
path: string;
|
|
7
|
+
attribute: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* State Property Model manages the state of a single state bean property
|
|
12
|
+
* @category Model
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
export interface KosStateProp<T extends StatePropertyTypes = any>
|
|
16
|
+
extends StatePropOptions,
|
|
17
|
+
IKosDataModel {
|
|
18
|
+
id: string;
|
|
19
|
+
value: T | undefined;
|
|
20
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { StorageDeviceContainer } from './storage-device-container-registration';
|
|
2
|
+
export { StorageDevice } from './storage-device-registration';
|
|
3
|
+
export type * from './types';
|
|
4
|
+
export type { StorageDeviceModel } from './storage-device-model';
|
|
5
|
+
export type { StorageDeviceContainerModel } from './storage-device-container-model';
|
|
6
|
+
export * as StorageDeviceServices from './services';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/storage-device/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,YAAY,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,KAAK,qBAAqB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/storage-device/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*/
|
|
4
|
+
export interface StorageDeviceResponse {
|
|
5
|
+
mountDir: string;
|
|
6
|
+
removed: boolean;
|
|
7
|
+
id: string;
|
|
8
|
+
vendor: string;
|
|
9
|
+
runTimeMs: number;
|
|
10
|
+
model: string;
|
|
11
|
+
nodeId: string;
|
|
12
|
+
local: boolean;
|
|
13
|
+
label: string;
|
|
14
|
+
syspath: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @category Service
|
|
18
|
+
* @internal
|
|
19
|
+
* Retrieves the initial storage-device data.
|
|
20
|
+
*/
|
|
21
|
+
export declare const getStorageDevices: () => Promise<StorageDeviceResponse[]>;
|
|
22
|
+
//# sourceMappingURL=storage-device-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-device-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/storage-device/services/storage-device-services.ts"],"names":[],"mappings":"AAAA;;GAEG;AAcH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AACD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,wCAQ7B,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { StorageDeviceContainerOptions } from './types';
|
|
2
|
+
import { StorageDeviceModel } from './storage-device-model';
|
|
3
|
+
import { StorageDeviceResponse } from './services';
|
|
4
|
+
import { IKosDataModel, KosCreationContext } from '../../../core/core/kosModel';
|
|
5
|
+
import { IKosModelContainer } from '../../../core/core/kos-container-model';
|
|
6
|
+
import { IKosIdentifiable, IKosModelHolder, PublicModelInterface } from '../../../core';
|
|
7
|
+
|
|
8
|
+
export declare const MODEL_TYPE = "storage-device-container-model";
|
|
9
|
+
export declare const TOPIC_STORAGE_AVAILABILITY = "/kos/storage";
|
|
10
|
+
export type StorageDeviceContainerModel = PublicModelInterface<StorageDeviceContainerModelImpl>;
|
|
11
|
+
/**
|
|
12
|
+
* Storage Device Container Model
|
|
13
|
+
* @category Model
|
|
14
|
+
*/
|
|
15
|
+
export declare class StorageDeviceContainerModelImpl implements IKosIdentifiable, IKosModelHolder<StorageDeviceModel>, IKosDataModel {
|
|
16
|
+
id: string;
|
|
17
|
+
private logger;
|
|
18
|
+
private _models;
|
|
19
|
+
constructor(modelId: string, options: StorageDeviceContainerOptions, context: KosCreationContext);
|
|
20
|
+
getModel(id: string): StorageDeviceModel | undefined;
|
|
21
|
+
get models(): IKosModelContainer<StorageDeviceModel>;
|
|
22
|
+
get data(): StorageDeviceModel[];
|
|
23
|
+
addModel(model: StorageDeviceModel): void;
|
|
24
|
+
removeModel(id: string): void;
|
|
25
|
+
init(): Promise<void>;
|
|
26
|
+
get isStorageInserted(): boolean;
|
|
27
|
+
get volumes(): StorageDeviceModel[];
|
|
28
|
+
handleStorageAvailability(devices: StorageDeviceResponse[]): void;
|
|
29
|
+
load(): Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=storage-device-container-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-device-container-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/storage-device/storage-device-container-model.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EAIpB,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,kBAAkB,EACxB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAqB,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,KAAK,EACV,6BAA6B,EAE9B,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,UAAU,mCAAmC,CAAC;AAE3D,eAAO,MAAM,0BAA0B,iBAAiB,CAAC;AAEzD,MAAM,MAAM,2BAA2B,GACrC,oBAAoB,CAAC,+BAA+B,CAAC,CAAC;AAExD;;;GAGG;AACH,qBACa,+BACX,YACE,gBAAgB,EAChB,eAAe,CAAC,kBAAkB,CAAC,EACnC,aAAa;IAEf,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACvB,OAAO,CAAC,OAAO,CAAyC;gBAEhE,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,6BAA6B,EACtC,OAAO,EAAE,kBAAkB;IAY7B,QAAQ,CAAC,EAAE,EAAE,MAAM;IAGnB,IAAI,MAAM,2CAET;IACD,IAAI,IAAI,yBAEP;IAED,QAAQ,CAAC,KAAK,EAAE,kBAAkB;IAIlC,WAAW,CAAC,EAAE,EAAE,MAAM;IAKhB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAK3B,IAAI,iBAAiB,YAEpB;IAED,IAAI,OAAO,yBAEV;IAMD,yBAAyB,CAAC,OAAO,EAAE,qBAAqB,EAAE;IA6BpD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAc5B"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { StorageDeviceContainerModel } from './storage-device-container-model';
|
|
2
|
+
import { SingletonKosModelRegistrationFactory } from '../../../core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # StorageDeviceContainer
|
|
6
|
+
*
|
|
7
|
+
* The registration bean includes convenience methods for creating and working with StorageDeviceContainerModel instances.
|
|
8
|
+
*
|
|
9
|
+
* ## type
|
|
10
|
+
* The type property is a string that identifies the model type.
|
|
11
|
+
* 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
|
|
12
|
+
* used when declaring dependencies on models.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
*
|
|
17
|
+
* @kosDependency({modelType: StorageDeviceContainer.type, id: "storageDeviceContainerId"})
|
|
18
|
+
* private storageDeviceContainerModel: StorageDeviceContainerModel;
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* ## factory
|
|
23
|
+
*
|
|
24
|
+
* The factory method creates a factory function that can be used to create new StorageDeviceContainerModel instances.
|
|
25
|
+
*
|
|
26
|
+
|
|
27
|
+
* As this is a singleton model, the factory function accepts the model options as its argument.
|
|
28
|
+
*
|
|
29
|
+
* If a model with the same model type already exists, the factory function will return the existing model. The options will be ignored
|
|
30
|
+
* in this case and the existing model will be returned in its current state.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* const model = StorageDeviceContainer.factory({
|
|
35
|
+
* // Add option data
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
*
|
|
41
|
+
* ## predicate
|
|
42
|
+
*
|
|
43
|
+
* [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 StorageDeviceContainerModel.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
*
|
|
48
|
+
* const model: IKosDataModel = ...; // some model
|
|
49
|
+
*
|
|
50
|
+
* if (StorageDeviceContainer.predicate(model)) {
|
|
51
|
+
* // if the function evaluates to true, the model is narrowed down to StorageDeviceContainerModel
|
|
52
|
+
* // and the compiler will know that the model has the StorageDeviceContainerModel interface
|
|
53
|
+
* model.updateAvailability(false);
|
|
54
|
+
* }
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* ## registration
|
|
58
|
+
*
|
|
59
|
+
* The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
|
|
60
|
+
* can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
|
|
61
|
+
*
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
*
|
|
65
|
+
* In an application registration file you can declare the model registration as follows:
|
|
66
|
+
*
|
|
67
|
+
* **registration.ts**
|
|
68
|
+
* ```typescript
|
|
69
|
+
* import { StorageDeviceContainer } from "@kosdev-code/kos-dispense-sdk";
|
|
70
|
+
* ...
|
|
71
|
+
* import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
|
|
72
|
+
* export const kosModels: IKosRegistry["models"] = {
|
|
73
|
+
* ...StorageDeviceContainer.registration,
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* ## registration.singleton
|
|
78
|
+
|
|
79
|
+
* The storageDeviceContainer model is a singleton model. This means that each time the factory function is called , the same instance will be returned.
|
|
80
|
+
* If the model does not yet exist, it will be created passing in the provided options to initialize it.
|
|
81
|
+
*
|
|
82
|
+
* Singleton models don't require an ID as they will use the model type as their ID to guarantee uniqueness throughout the system.
|
|
83
|
+
|
|
84
|
+
* */
|
|
85
|
+
export declare const StorageDeviceContainer: SingletonKosModelRegistrationFactory<StorageDeviceContainerModel, object>;
|
|
86
|
+
//# sourceMappingURL=storage-device-container-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-device-container-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/storage-device/storage-device-container-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAQpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,sBAAsB,2EAMjC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { StorageDeviceOptions } from './types';
|
|
2
|
+
import { IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '../../../core';
|
|
3
|
+
|
|
4
|
+
export declare const MODEL_TYPE = "storage-device-model";
|
|
5
|
+
export type StorageDeviceModel = PublicModelInterface<StorageDeviceModelImpl>;
|
|
6
|
+
/**
|
|
7
|
+
* Storage Device Model
|
|
8
|
+
* @category Model
|
|
9
|
+
*/
|
|
10
|
+
export declare class StorageDeviceModelImpl implements IKosDataModel, IKosIdentifiable {
|
|
11
|
+
id: string;
|
|
12
|
+
mountDir: string;
|
|
13
|
+
removed: boolean;
|
|
14
|
+
vendor: string;
|
|
15
|
+
runTimeMs: number;
|
|
16
|
+
model: string;
|
|
17
|
+
nodeId: string;
|
|
18
|
+
local: boolean;
|
|
19
|
+
label: string;
|
|
20
|
+
syspath: string;
|
|
21
|
+
private logger;
|
|
22
|
+
constructor(modelId: string, options: StorageDeviceOptions, context: KosCreationContext);
|
|
23
|
+
updateModel(options: StorageDeviceOptions): void;
|
|
24
|
+
init(): Promise<void>;
|
|
25
|
+
load(): Promise<void>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=storage-device-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-device-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/storage-device/storage-device-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,eAAO,MAAM,UAAU,yBAAyB,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,sBAAsB,CAAC,CAAC;AAE9E;;;GAGG;AACH,qBAEa,sBAAuB,YAAW,aAAa,EAAE,gBAAgB;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,MAAM,CAAmB;gBAE/B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,kBAAkB;IAe7B,WAAW,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI;IAc1C,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { StorageDeviceOptions } from './types';
|
|
2
|
+
import { StorageDeviceModel } from './storage-device-model';
|
|
3
|
+
import { KosModelRegistrationFactory } from '../../../core';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* # StorageDevice
|
|
7
|
+
*
|
|
8
|
+
* The registration bean includes convenience methods for creating and working with StorageDeviceModel 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: StorageDevice.type, id: "storageDeviceId"})
|
|
19
|
+
* private storageDeviceModel: StorageDeviceModel;
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* ## factory
|
|
24
|
+
*
|
|
25
|
+
* The factory method creates a factory function that can be used to create new StorageDeviceModel 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 = StorageDevice.factory("storageDeviceId")({
|
|
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 StorageDeviceModel.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```typescript
|
|
48
|
+
*
|
|
49
|
+
* const model: IKosDataModel = ...; // some model
|
|
50
|
+
*
|
|
51
|
+
* if (StorageDevice.predicate(model)) {
|
|
52
|
+
* // if the function evaluates to true, the model is narrowed down to StorageDeviceModel
|
|
53
|
+
* // and the compiler will know that the model has the StorageDeviceModel 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 { StorageDevice } from "@kos-ui/project-models";
|
|
71
|
+
* import { KosModelRegistry } from "@kosdev-code/kos-dispense-sdk";
|
|
72
|
+
*
|
|
73
|
+
* import { initKosProvider } from "@kosdev-code/kos-ui-sdk";
|
|
74
|
+
*
|
|
75
|
+
* KosModelRegistry.dispense
|
|
76
|
+
* .models()
|
|
77
|
+
* .model(StorageDevice);
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* ## registration.singleton
|
|
81
|
+
|
|
82
|
+
* The storageDevice 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.
|
|
83
|
+
* If the factory function is called with an ID that already exists, the existing model will be returned.
|
|
84
|
+
|
|
85
|
+
* */
|
|
86
|
+
export declare const StorageDevice: KosModelRegistrationFactory<StorageDeviceModel, StorageDeviceOptions>;
|
|
87
|
+
//# sourceMappingURL=storage-device-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-device-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/storage-device/storage-device-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,aAAa,uEAMxB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { KosParentAware } from '../../../../core';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
// --------------- StorageDevice ---------------
|
|
5
|
+
|
|
6
|
+
export interface StorageDeviceOptions extends KosParentAware {
|
|
7
|
+
mountDir: string;
|
|
8
|
+
removed: boolean;
|
|
9
|
+
vendor: string;
|
|
10
|
+
runTimeMs: number;
|
|
11
|
+
model: string;
|
|
12
|
+
nodeId: string;
|
|
13
|
+
local: boolean;
|
|
14
|
+
label: string;
|
|
15
|
+
syspath: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// --------------- StorageDeviceContainer ---------------
|
|
19
|
+
|
|
20
|
+
export type StorageDeviceContainerOptions = object;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/translation/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { getKosLocalizationDescriptor, getLocalizationDescriptor, getTranslations, } from './services';
|
|
2
|
+
export type { Localization } from './services';
|
|
3
|
+
export type { TranslationContainerModel } from './translation-container-model';
|
|
4
|
+
export { TranslationContainer } from './translation-container-registration';
|
|
5
|
+
export * from './translation-context';
|
|
6
|
+
export type { ResolveTranslationOptions, TranslationModel, } from './translation-model';
|
|
7
|
+
export { Translation } from './translation-registration';
|
|
8
|
+
export type * from './types';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/translation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,YAAY,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,cAAc,uBAAuB,CAAC;AACtC,YAAY,EACV,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/translation/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type TranslationResponse = Record<string, any>;
|
|
2
|
+
export interface LocaleDescriptor {
|
|
3
|
+
defaultLocale: string;
|
|
4
|
+
file: string;
|
|
5
|
+
fallbacks?: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface Localization {
|
|
8
|
+
namespaces: {
|
|
9
|
+
[key: string]: {
|
|
10
|
+
locales: {
|
|
11
|
+
[key: string]: LocaleDescriptor;
|
|
12
|
+
};
|
|
13
|
+
basePath: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
path: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @category Service
|
|
20
|
+
* Retrieves the initial translation data.
|
|
21
|
+
*/
|
|
22
|
+
export declare const getTranslations: (url: string, root?: string) => Promise<any>;
|
|
23
|
+
export declare const getLocalizationDescriptor: () => Promise<Localization>;
|
|
24
|
+
export declare const getKosLocalizationDescriptor: (context: string) => () => Promise<Localization>;
|
|
25
|
+
//# 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":"AAeA,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEtD,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AACD,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE;QACV,CAAC,GAAG,EAAE,MAAM,GAAG;YACb,OAAO,EAAE;gBACP,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC;aACjC,CAAC;YACF,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;KACH,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;CACd;AASD;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAe,MAAM,SAAS,MAAM,iBAgB/D,CAAC;AAEF,eAAO,MAAM,yBAAyB,6BAYrC,CAAC;AAEF,eAAO,MAAM,4BAA4B,YAAa,MAAM,gCAY3D,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { TranslationContainerOptions } from './types';
|
|
2
|
+
import { TranslationModel } from './translation-model';
|
|
3
|
+
import { Localization } from './services';
|
|
4
|
+
import { IKosDataModel, IKosIdentifiable, IKosModelContainer, IKosModelHolder, KosCreationContext, ReloadAware } from '../../../core';
|
|
5
|
+
|
|
6
|
+
export declare const MODEL_TYPE = "translation-container-model";
|
|
7
|
+
type PublicInterface<T> = {
|
|
8
|
+
[P in keyof T]: T[P];
|
|
9
|
+
};
|
|
10
|
+
export type TranslationContainerModel = PublicInterface<Exclude<TranslationContainerModelImpl, keyof IKosDataModel>>;
|
|
11
|
+
export declare class TranslationContainerModelImpl implements IKosIdentifiable, IKosModelHolder<TranslationModel>, IKosDataModel, ReloadAware {
|
|
12
|
+
id: string;
|
|
13
|
+
lang: string;
|
|
14
|
+
private rootUrl?;
|
|
15
|
+
descriptor: Localization;
|
|
16
|
+
private _defaultNamespace?;
|
|
17
|
+
private resolver;
|
|
18
|
+
private logger;
|
|
19
|
+
private descriptorUrl?;
|
|
20
|
+
private namespaces;
|
|
21
|
+
private _models;
|
|
22
|
+
constructor(modelId: string, options: TranslationContainerOptions, context: KosCreationContext);
|
|
23
|
+
set currentLocale(locale: string);
|
|
24
|
+
get defaultNamespace(): import('./translation-model').TranslationModelImpl | undefined;
|
|
25
|
+
getModel(id: string): import('./translation-model').TranslationModelImpl | undefined;
|
|
26
|
+
get models(): IKosModelContainer<import('./translation-model').TranslationModelImpl>;
|
|
27
|
+
get data(): import('./translation-model').TranslationModelImpl[];
|
|
28
|
+
reload(): Promise<void>;
|
|
29
|
+
resolveNamespace(namespace: string): import('./translation-model').TranslationModelImpl;
|
|
30
|
+
addModel(model: TranslationModel): void;
|
|
31
|
+
removeModel(id: string): void;
|
|
32
|
+
init(): Promise<void>;
|
|
33
|
+
load(): Promise<void>;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
36
|
+
//# 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;AAWvB,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;AACxD,KAAK,eAAe,CAAC,CAAC,IAAI;KACvB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,eAAe,CACrD,OAAO,CAAC,6BAA6B,EAAE,MAAM,aAAa,CAAC,CAC5D,CAAC;AAmBF,qBACa,6BACX,YACE,gBAAgB,EAChB,eAAe,CAAC,gBAAgB,CAAC,EACjC,aAAa,EACb,WAAW;IAEb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,UAAU,EAAE,YAAY,CAAC;IACzB,OAAO,CAAC,iBAAiB,CAAC,CAAS;IACnC,OAAO,CAAC,QAAQ,CAIJ;IACZ,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,UAAU,CAAgB;IACxB,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,mEAInB;IACD,QAAQ,CAAC,EAAE,EAAE,MAAM;IAInB,IAAI,MAAM,2EAET;IACD,IAAI,IAAI,yDAEP;IAEK,MAAM;IAQZ,gBAAgB,CAAC,SAAS,EAAE,MAAM;IA4ClC,QAAQ,CAAC,KAAK,EAAE,gBAAgB;IAIhC,WAAW,CAAC,EAAE,EAAE,MAAM;IAKhB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAMrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
|
|
85
|
+
* */
|
|
86
|
+
export declare const TranslationContainer: Readonly<SingletonKosModelRegistrationBean<TranslationContainerModel, TranslationContainerOptions>>;
|
|
87
|
+
//# sourceMappingURL=translation-container-registration.d.ts.map
|