@odx/angular 1.0.0-rc.0
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/README.md +0 -0
- package/animations/README.md +3 -0
- package/animations/config.d.ts +7 -0
- package/animations/fade.d.ts +2 -0
- package/animations/index.d.ts +2 -0
- package/animations/slide.d.ts +13 -0
- package/cdk/dynamic-view/README.md +3 -0
- package/cdk/dynamic-view/index.d.ts +7 -0
- package/cdk/dynamic-view/lib/dynamic-view.component.d.ts +12 -0
- package/cdk/dynamic-view/lib/dynamic-view.directive.d.ts +20 -0
- package/cdk/dynamic-view/lib/dynamic-view.service.d.ts +9 -0
- package/cdk/dynamic-view/lib/facade/animated-component.d.ts +4 -0
- package/cdk/dynamic-view/lib/facade/dynamic-content.d.ts +8 -0
- package/cdk/dynamic-view/lib/facade/dynamic-view-ref.d.ts +9 -0
- package/cdk/dynamic-view/lib/facade/index.d.ts +3 -0
- package/cdk/dynamic-view/lib/helpers/index.d.ts +4 -0
- package/cdk/dynamic-view/lib/helpers/is-animated-component.d.ts +3 -0
- package/cdk/dynamic-view/lib/helpers/is-dynamic-text-content.d.ts +2 -0
- package/cdk/dynamic-view/lib/helpers/is-dynamic-view.d.ts +2 -0
- package/cdk/dynamic-view/lib/helpers/wait-for-animations.d.ts +3 -0
- package/cdk/dynamic-view/lib/models/dynamic-component-ref.d.ts +16 -0
- package/cdk/dynamic-view/lib/models/dynamic-template-ref.d.ts +18 -0
- package/cdk/dynamic-view/lib/models/dynamic-view-options.d.ts +7 -0
- package/cdk/dynamic-view/lib/models/index.d.ts +3 -0
- package/cdk/dynamic-view/lib/tokens/dynamic-view-context.d.ts +5 -0
- package/cdk/dynamic-view/lib/tokens/index.d.ts +1 -0
- package/components/action-group/README.md +3 -0
- package/components/action-group/action-group.component.d.ts +11 -0
- package/components/action-group/index.d.ts +1 -0
- package/components/area-header/README.md +3 -0
- package/components/area-header/area-header.component.d.ts +10 -0
- package/components/area-header/area-header.module.d.ts +13 -0
- package/components/area-header/directives/area-header-content.directive.d.ts +5 -0
- package/components/area-header/directives/area-header-subtitle.directive.d.ts +5 -0
- package/components/area-header/directives/index.d.ts +2 -0
- package/components/area-header/index.d.ts +4 -0
- package/components/area-header/models/area-header-size.d.ts +7 -0
- package/components/area-header/models/index.d.ts +1 -0
- package/components/avatar/README.md +3 -0
- package/components/avatar/index.d.ts +2 -0
- package/components/avatar/lib/avatar.component.d.ts +10 -0
- package/components/avatar/lib/models/avatar-size.d.ts +6 -0
- package/components/avatar/lib/models/index.d.ts +1 -0
- package/components/badge/README.md +3 -0
- package/components/badge/index.d.ts +3 -0
- package/components/badge/lib/badge.component.d.ts +25 -0
- package/components/badge/lib/badge.config.d.ts +3 -0
- package/components/badge/lib/badge.directive.d.ts +22 -0
- package/components/badge/lib/facade/badge-host.d.ts +3 -0
- package/components/badge/lib/facade/index.d.ts +1 -0
- package/components/badge/lib/models/badge-position.d.ts +5 -0
- package/components/badge/lib/models/badge-variant.d.ts +6 -0
- package/components/badge/lib/models/index.d.ts +2 -0
- package/components/button/README.md +3 -0
- package/components/button/index.d.ts +2 -0
- package/components/button/lib/button.component.d.ts +20 -0
- package/components/button/lib/models/button-variant.d.ts +10 -0
- package/components/button/lib/models/index.d.ts +1 -0
- package/components/checkbox/README.md +3 -0
- package/components/checkbox/index.d.ts +1 -0
- package/components/checkbox/lib/checkbox.component.d.ts +23 -0
- package/components/content-box/README.md +3 -0
- package/components/content-box/index.d.ts +3 -0
- package/components/content-box/lib/content-box.component.d.ts +5 -0
- package/components/content-box/lib/content-box.module.d.ts +9 -0
- package/components/content-box/lib/directives/content-box-footer-directive.d.ts +5 -0
- package/components/content-box/lib/directives/content-box-header-directive.d.ts +5 -0
- package/components/content-box/lib/directives/index.d.ts +2 -0
- package/components/header/README.md +3 -0
- package/components/header/index.d.ts +3 -0
- package/components/header/lib/directives/header-avatar.directive.d.ts +5 -0
- package/components/header/lib/directives/header-title.directive.d.ts +5 -0
- package/components/header/lib/directives/index.d.ts +2 -0
- package/components/header/lib/header.component.d.ts +8 -0
- package/components/header/lib/header.module.d.ts +15 -0
- package/components/icon/README.md +3 -0
- package/components/icon/index.d.ts +2 -0
- package/components/icon/lib/icon.component.d.ts +11 -0
- package/components/icon/lib/models/icon-size.d.ts +7 -0
- package/components/icon/lib/models/index.d.ts +1 -0
- package/components/link/README.md +3 -0
- package/components/link/index.d.ts +1 -0
- package/components/link/link.directive.d.ts +11 -0
- package/components/logo/README.md +3 -0
- package/components/logo/index.d.ts +2 -0
- package/components/logo/logo.directive.d.ts +11 -0
- package/components/logo/models/index.d.ts +2 -0
- package/components/logo/models/logo-size.d.ts +6 -0
- package/components/logo/models/logo-variant.d.ts +5 -0
- package/components/main-menu/README.md +3 -0
- package/components/main-menu/index.d.ts +3 -0
- package/components/main-menu/lib/directives/index.d.ts +2 -0
- package/components/main-menu/lib/directives/main-menu-button.directive.d.ts +11 -0
- package/components/main-menu/lib/directives/main-menu-item.directive.d.ts +10 -0
- package/components/main-menu/lib/main-menu.component.d.ts +17 -0
- package/components/main-menu/lib/main-menu.module.d.ts +11 -0
- package/components/main-menu/lib/main-menu.service.d.ts +11 -0
- package/components/radio-group/README.md +3 -0
- package/components/radio-group/index.d.ts +3 -0
- package/components/radio-group/lib/components/index.d.ts +1 -0
- package/components/radio-group/lib/components/radio-button/radio-button.component.d.ts +19 -0
- package/components/radio-group/lib/radio-group.component.d.ts +10 -0
- package/components/radio-group/lib/radio-group.module.d.ts +9 -0
- package/esm2020/animations/config.mjs +8 -0
- package/esm2020/animations/fade.mjs +12 -0
- package/esm2020/animations/index.mjs +3 -0
- package/esm2020/animations/odx-angular-animations.mjs +5 -0
- package/esm2020/animations/slide.mjs +34 -0
- package/esm2020/cdk/dynamic-view/index.mjs +8 -0
- package/esm2020/cdk/dynamic-view/lib/dynamic-view.component.mjs +34 -0
- package/esm2020/cdk/dynamic-view/lib/dynamic-view.directive.mjs +79 -0
- package/esm2020/cdk/dynamic-view/lib/dynamic-view.service.mjs +43 -0
- package/esm2020/cdk/dynamic-view/lib/facade/animated-component.mjs +2 -0
- package/esm2020/cdk/dynamic-view/lib/facade/dynamic-content.mjs +2 -0
- package/esm2020/cdk/dynamic-view/lib/facade/dynamic-view-ref.mjs +2 -0
- package/esm2020/cdk/dynamic-view/lib/facade/index.mjs +4 -0
- package/esm2020/cdk/dynamic-view/lib/helpers/index.mjs +5 -0
- package/esm2020/cdk/dynamic-view/lib/helpers/is-animated-component.mjs +5 -0
- package/esm2020/cdk/dynamic-view/lib/helpers/is-dynamic-text-content.mjs +6 -0
- package/esm2020/cdk/dynamic-view/lib/helpers/is-dynamic-view.mjs +5 -0
- package/esm2020/cdk/dynamic-view/lib/helpers/wait-for-animations.mjs +9 -0
- package/esm2020/cdk/dynamic-view/lib/models/dynamic-component-ref.mjs +38 -0
- package/esm2020/cdk/dynamic-view/lib/models/dynamic-template-ref.mjs +41 -0
- package/esm2020/cdk/dynamic-view/lib/models/dynamic-view-options.mjs +2 -0
- package/esm2020/cdk/dynamic-view/lib/models/index.mjs +4 -0
- package/esm2020/cdk/dynamic-view/lib/tokens/dynamic-view-context.mjs +3 -0
- package/esm2020/cdk/dynamic-view/lib/tokens/index.mjs +2 -0
- package/esm2020/cdk/dynamic-view/odx-angular-cdk-dynamic-view.mjs +5 -0
- package/esm2020/components/action-group/action-group.component.mjs +33 -0
- package/esm2020/components/action-group/index.mjs +2 -0
- package/esm2020/components/action-group/odx-angular-components-action-group.mjs +5 -0
- package/esm2020/components/area-header/area-header.component.mjs +29 -0
- package/esm2020/components/area-header/area-header.module.mjs +46 -0
- package/esm2020/components/area-header/directives/area-header-content.directive.mjs +18 -0
- package/esm2020/components/area-header/directives/area-header-subtitle.directive.mjs +18 -0
- package/esm2020/components/area-header/directives/index.mjs +3 -0
- package/esm2020/components/area-header/index.mjs +5 -0
- package/esm2020/components/area-header/models/area-header-size.mjs +7 -0
- package/esm2020/components/area-header/models/index.mjs +2 -0
- package/esm2020/components/area-header/odx-angular-components-area-header.mjs +5 -0
- package/esm2020/components/avatar/index.mjs +3 -0
- package/esm2020/components/avatar/lib/avatar.component.mjs +30 -0
- package/esm2020/components/avatar/lib/models/avatar-size.mjs +6 -0
- package/esm2020/components/avatar/lib/models/index.mjs +2 -0
- package/esm2020/components/avatar/odx-angular-components-avatar.mjs +5 -0
- package/esm2020/components/badge/index.mjs +4 -0
- package/esm2020/components/badge/lib/badge.component.mjs +97 -0
- package/esm2020/components/badge/lib/badge.config.mjs +3 -0
- package/esm2020/components/badge/lib/badge.directive.mjs +56 -0
- package/esm2020/components/badge/lib/facade/badge-host.mjs +2 -0
- package/esm2020/components/badge/lib/facade/index.mjs +2 -0
- package/esm2020/components/badge/lib/models/badge-position.mjs +5 -0
- package/esm2020/components/badge/lib/models/badge-variant.mjs +6 -0
- package/esm2020/components/badge/lib/models/index.mjs +3 -0
- package/esm2020/components/badge/odx-angular-components-badge.mjs +5 -0
- package/esm2020/components/button/index.mjs +3 -0
- package/esm2020/components/button/lib/button.component.mjs +54 -0
- package/esm2020/components/button/lib/models/button-variant.mjs +10 -0
- package/esm2020/components/button/lib/models/index.mjs +2 -0
- package/esm2020/components/button/odx-angular-components-button.mjs +5 -0
- package/esm2020/components/checkbox/index.mjs +2 -0
- package/esm2020/components/checkbox/lib/checkbox.component.mjs +75 -0
- package/esm2020/components/checkbox/odx-angular-components-checkbox.mjs +5 -0
- package/esm2020/components/content-box/index.mjs +4 -0
- package/esm2020/components/content-box/lib/content-box.component.mjs +13 -0
- package/esm2020/components/content-box/lib/content-box.module.mjs +19 -0
- package/esm2020/components/content-box/lib/directives/content-box-footer-directive.mjs +18 -0
- package/esm2020/components/content-box/lib/directives/content-box-header-directive.mjs +18 -0
- package/esm2020/components/content-box/lib/directives/index.mjs +3 -0
- package/esm2020/components/content-box/odx-angular-components-content-box.mjs +5 -0
- package/esm2020/components/header/index.mjs +4 -0
- package/esm2020/components/header/lib/directives/header-avatar.directive.mjs +17 -0
- package/esm2020/components/header/lib/directives/header-title.directive.mjs +18 -0
- package/esm2020/components/header/lib/directives/index.mjs +3 -0
- package/esm2020/components/header/lib/header.component.mjs +23 -0
- package/esm2020/components/header/lib/header.module.mjs +56 -0
- package/esm2020/components/header/odx-angular-components-header.mjs +5 -0
- package/esm2020/components/icon/index.mjs +3 -0
- package/esm2020/components/icon/lib/icon.component.mjs +42 -0
- package/esm2020/components/icon/lib/models/icon-size.mjs +7 -0
- package/esm2020/components/icon/lib/models/index.mjs +2 -0
- package/esm2020/components/icon/odx-angular-components-icon.mjs +5 -0
- package/esm2020/components/link/index.mjs +2 -0
- package/esm2020/components/link/link.directive.mjs +38 -0
- package/esm2020/components/link/odx-angular-components-link.mjs +5 -0
- package/esm2020/components/logo/index.mjs +3 -0
- package/esm2020/components/logo/logo.directive.mjs +45 -0
- package/esm2020/components/logo/models/index.mjs +3 -0
- package/esm2020/components/logo/models/logo-size.mjs +6 -0
- package/esm2020/components/logo/models/logo-variant.mjs +5 -0
- package/esm2020/components/logo/odx-angular-components-logo.mjs +5 -0
- package/esm2020/components/main-menu/index.mjs +4 -0
- package/esm2020/components/main-menu/lib/directives/index.mjs +3 -0
- package/esm2020/components/main-menu/lib/directives/main-menu-button.directive.mjs +33 -0
- package/esm2020/components/main-menu/lib/directives/main-menu-item.directive.mjs +36 -0
- package/esm2020/components/main-menu/lib/main-menu.component.mjs +71 -0
- package/esm2020/components/main-menu/lib/main-menu.module.mjs +20 -0
- package/esm2020/components/main-menu/lib/main-menu.service.mjs +37 -0
- package/esm2020/components/main-menu/odx-angular-components-main-menu.mjs +5 -0
- package/esm2020/components/radio-group/index.mjs +4 -0
- package/esm2020/components/radio-group/lib/components/index.mjs +2 -0
- package/esm2020/components/radio-group/lib/components/radio-button/radio-button.component.mjs +60 -0
- package/esm2020/components/radio-group/lib/radio-group.component.mjs +31 -0
- package/esm2020/components/radio-group/lib/radio-group.module.mjs +19 -0
- package/esm2020/components/radio-group/odx-angular-components-radio-group.mjs +5 -0
- package/esm2020/index.mjs +6 -0
- package/esm2020/internal/abstract/controller.mjs +29 -0
- package/esm2020/internal/abstract/index.mjs +2 -0
- package/esm2020/internal/decorators/css-component.mjs +24 -0
- package/esm2020/internal/decorators/css-modifier.mjs +50 -0
- package/esm2020/internal/decorators/index.mjs +3 -0
- package/esm2020/internal/helpers/dom.mjs +7 -0
- package/esm2020/internal/helpers/get-css-variables.mjs +29 -0
- package/esm2020/internal/helpers/get-enum-values.mjs +6 -0
- package/esm2020/internal/helpers/index.mjs +7 -0
- package/esm2020/internal/helpers/type-guards.mjs +27 -0
- package/esm2020/internal/helpers/watch.mjs +8 -0
- package/esm2020/internal/helpers/with-mutiple-descriptors.mjs +37 -0
- package/esm2020/internal/index.mjs +6 -0
- package/esm2020/internal/odx-angular-internal.mjs +5 -0
- package/esm2020/internal/providers/index.mjs +2 -0
- package/esm2020/internal/providers/watched-controller-provider.mjs +9 -0
- package/esm2020/internal/types/get-properties.mjs +2 -0
- package/esm2020/internal/types/index.mjs +2 -0
- package/esm2020/lib/controllers/disabled.controller.mjs +75 -0
- package/esm2020/lib/controllers/index.mjs +2 -0
- package/esm2020/lib/controls/custom-form-control.mjs +133 -0
- package/esm2020/lib/controls/index.mjs +2 -0
- package/esm2020/lib/core.module.mjs +19 -0
- package/esm2020/lib/directives/control.directive.mjs +18 -0
- package/esm2020/lib/directives/index.mjs +3 -0
- package/esm2020/lib/directives/monitor-focus.directive.mjs +34 -0
- package/esm2020/lib/services/destroy.service.mjs +18 -0
- package/esm2020/lib/services/index.mjs +3 -0
- package/esm2020/lib/services/window-ref.mjs +32 -0
- package/esm2020/odx-angular.mjs +5 -0
- package/esm2020/rxjs/index.mjs +2 -0
- package/esm2020/rxjs/lib/from-events.mjs +5 -0
- package/esm2020/rxjs/odx-angular-rxjs.mjs +5 -0
- package/esm2020/utils/index.mjs +3 -0
- package/esm2020/utils/lib/decorators/index.mjs +2 -0
- package/esm2020/utils/lib/decorators/transform.mjs +14 -0
- package/esm2020/utils/lib/helpers/array.mjs +4 -0
- package/esm2020/utils/lib/helpers/index.mjs +3 -0
- package/esm2020/utils/lib/helpers/ng-changes.mjs +14 -0
- package/esm2020/utils/odx-angular-utils.mjs +5 -0
- package/fesm2015/odx-angular-animations.mjs +49 -0
- package/fesm2015/odx-angular-animations.mjs.map +1 -0
- package/fesm2015/odx-angular-cdk-dynamic-view.mjs +266 -0
- package/fesm2015/odx-angular-cdk-dynamic-view.mjs.map +1 -0
- package/fesm2015/odx-angular-components-action-group.mjs +39 -0
- package/fesm2015/odx-angular-components-action-group.mjs.map +1 -0
- package/fesm2015/odx-angular-components-area-header.mjs +115 -0
- package/fesm2015/odx-angular-components-area-header.mjs.map +1 -0
- package/fesm2015/odx-angular-components-avatar.mjs +41 -0
- package/fesm2015/odx-angular-components-avatar.mjs.map +1 -0
- package/fesm2015/odx-angular-components-badge.mjs +170 -0
- package/fesm2015/odx-angular-components-badge.mjs.map +1 -0
- package/fesm2015/odx-angular-components-button.mjs +74 -0
- package/fesm2015/odx-angular-components-button.mjs.map +1 -0
- package/fesm2015/odx-angular-components-checkbox.mjs +80 -0
- package/fesm2015/odx-angular-components-checkbox.mjs.map +1 -0
- package/fesm2015/odx-angular-components-content-box.mjs +66 -0
- package/fesm2015/odx-angular-components-content-box.mjs.map +1 -0
- package/fesm2015/odx-angular-components-header.mjs +111 -0
- package/fesm2015/odx-angular-components-header.mjs.map +1 -0
- package/fesm2015/odx-angular-components-icon.mjs +54 -0
- package/fesm2015/odx-angular-components-icon.mjs.map +1 -0
- package/fesm2015/odx-angular-components-link.mjs +45 -0
- package/fesm2015/odx-angular-components-link.mjs.map +1 -0
- package/fesm2015/odx-angular-components-logo.mjs +61 -0
- package/fesm2015/odx-angular-components-logo.mjs.map +1 -0
- package/fesm2015/odx-angular-components-main-menu.mjs +181 -0
- package/fesm2015/odx-angular-components-main-menu.mjs.map +1 -0
- package/fesm2015/odx-angular-components-radio-group.mjs +105 -0
- package/fesm2015/odx-angular-components-radio-group.mjs.map +1 -0
- package/fesm2015/odx-angular-internal.mjs +232 -0
- package/fesm2015/odx-angular-internal.mjs.map +1 -0
- package/fesm2015/odx-angular-rxjs.mjs +12 -0
- package/fesm2015/odx-angular-rxjs.mjs.map +1 -0
- package/fesm2015/odx-angular-utils.mjs +39 -0
- package/fesm2015/odx-angular-utils.mjs.map +1 -0
- package/fesm2015/odx-angular.mjs +320 -0
- package/fesm2015/odx-angular.mjs.map +1 -0
- package/fesm2020/odx-angular-animations.mjs +58 -0
- package/fesm2020/odx-angular-animations.mjs.map +1 -0
- package/fesm2020/odx-angular-cdk-dynamic-view.mjs +249 -0
- package/fesm2020/odx-angular-cdk-dynamic-view.mjs.map +1 -0
- package/fesm2020/odx-angular-components-action-group.mjs +39 -0
- package/fesm2020/odx-angular-components-action-group.mjs.map +1 -0
- package/fesm2020/odx-angular-components-area-header.mjs +115 -0
- package/fesm2020/odx-angular-components-area-header.mjs.map +1 -0
- package/fesm2020/odx-angular-components-avatar.mjs +41 -0
- package/fesm2020/odx-angular-components-avatar.mjs.map +1 -0
- package/fesm2020/odx-angular-components-badge.mjs +163 -0
- package/fesm2020/odx-angular-components-badge.mjs.map +1 -0
- package/fesm2020/odx-angular-components-button.mjs +69 -0
- package/fesm2020/odx-angular-components-button.mjs.map +1 -0
- package/fesm2020/odx-angular-components-checkbox.mjs +80 -0
- package/fesm2020/odx-angular-components-checkbox.mjs.map +1 -0
- package/fesm2020/odx-angular-components-content-box.mjs +66 -0
- package/fesm2020/odx-angular-components-content-box.mjs.map +1 -0
- package/fesm2020/odx-angular-components-header.mjs +111 -0
- package/fesm2020/odx-angular-components-header.mjs.map +1 -0
- package/fesm2020/odx-angular-components-icon.mjs +54 -0
- package/fesm2020/odx-angular-components-icon.mjs.map +1 -0
- package/fesm2020/odx-angular-components-link.mjs +44 -0
- package/fesm2020/odx-angular-components-link.mjs.map +1 -0
- package/fesm2020/odx-angular-components-logo.mjs +61 -0
- package/fesm2020/odx-angular-components-logo.mjs.map +1 -0
- package/fesm2020/odx-angular-components-main-menu.mjs +180 -0
- package/fesm2020/odx-angular-components-main-menu.mjs.map +1 -0
- package/fesm2020/odx-angular-components-radio-group.mjs +103 -0
- package/fesm2020/odx-angular-components-radio-group.mjs.map +1 -0
- package/fesm2020/odx-angular-internal.mjs +227 -0
- package/fesm2020/odx-angular-internal.mjs.map +1 -0
- package/fesm2020/odx-angular-rxjs.mjs +12 -0
- package/fesm2020/odx-angular-rxjs.mjs.map +1 -0
- package/fesm2020/odx-angular-utils.mjs +39 -0
- package/fesm2020/odx-angular-utils.mjs.map +1 -0
- package/fesm2020/odx-angular.mjs +313 -0
- package/fesm2020/odx-angular.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/internal/README.md +3 -0
- package/internal/abstract/controller.d.ts +14 -0
- package/internal/abstract/index.d.ts +1 -0
- package/internal/decorators/css-component.d.ts +9 -0
- package/internal/decorators/css-modifier.d.ts +10 -0
- package/internal/decorators/index.d.ts +2 -0
- package/internal/helpers/dom.d.ts +2 -0
- package/internal/helpers/get-css-variables.d.ts +8 -0
- package/internal/helpers/get-enum-values.d.ts +4 -0
- package/internal/helpers/index.d.ts +6 -0
- package/internal/helpers/type-guards.d.ts +9 -0
- package/internal/helpers/watch.d.ts +4 -0
- package/internal/helpers/with-mutiple-descriptors.d.ts +9 -0
- package/internal/index.d.ts +5 -0
- package/internal/providers/index.d.ts +1 -0
- package/internal/providers/watched-controller-provider.d.ts +5 -0
- package/internal/types/get-properties.d.ts +5 -0
- package/internal/types/index.d.ts +1 -0
- package/lib/controllers/disabled.controller.d.ts +19 -0
- package/lib/controllers/index.d.ts +1 -0
- package/lib/controls/custom-form-control.d.ts +40 -0
- package/lib/controls/index.d.ts +1 -0
- package/lib/core.module.d.ts +10 -0
- package/lib/directives/control.directive.d.ts +8 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/monitor-focus.directive.d.ts +12 -0
- package/lib/services/destroy.service.d.ts +9 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/window-ref.d.ts +11 -0
- package/package.json +184 -0
- package/rxjs/README.md +3 -0
- package/rxjs/index.d.ts +1 -0
- package/rxjs/lib/from-events.d.ts +3 -0
- package/utils/README.md +3 -0
- package/utils/index.d.ts +2 -0
- package/utils/lib/decorators/index.d.ts +1 -0
- package/utils/lib/decorators/transform.d.ts +3 -0
- package/utils/lib/helpers/array.d.ts +1 -0
- package/utils/lib/helpers/index.d.ts +2 -0
- package/utils/lib/helpers/ng-changes.d.ts +10 -0
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { AsyncPipe } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, ChangeDetectorRef, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, createComponent, EnvironmentInjector, ApplicationRef, InjectionToken, Injector, Injectable, ViewContainerRef, Directive } from '@angular/core';
|
|
4
|
+
import { isObservable, lastValueFrom } from 'rxjs';
|
|
5
|
+
import { hasChanged } from '@odx/angular/utils';
|
|
6
|
+
import { isString, isTemplateRef, isComponent } from '@odx/angular/internal';
|
|
7
|
+
|
|
8
|
+
class DynamicViewComponent {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.asyncPipe = new AsyncPipe(inject(ChangeDetectorRef));
|
|
11
|
+
this.resolveContent = () => null;
|
|
12
|
+
}
|
|
13
|
+
set content(value) {
|
|
14
|
+
this.resolveContent = isObservable(value) ? () => this.asyncPipe.transform(value) : () => value;
|
|
15
|
+
}
|
|
16
|
+
ngOnDestroy() {
|
|
17
|
+
this.asyncPipe?.ngOnDestroy();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
DynamicViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DynamicViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
+
DynamicViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: DynamicViewComponent, isStandalone: true, selector: "odx-dynamic-view", inputs: { content: "content" }, host: { properties: { "innerHTML": "resolveContent()" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DynamicViewComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{
|
|
25
|
+
selector: 'odx-dynamic-view',
|
|
26
|
+
template: '',
|
|
27
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
28
|
+
encapsulation: ViewEncapsulation.None,
|
|
29
|
+
standalone: true,
|
|
30
|
+
host: {
|
|
31
|
+
'[innerHTML]': 'resolveContent()',
|
|
32
|
+
},
|
|
33
|
+
}]
|
|
34
|
+
}], propDecorators: { content: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}] } });
|
|
37
|
+
|
|
38
|
+
function isAnimatedComponent(component) {
|
|
39
|
+
return isObservable(component?.instance?.ngAnimationsDone$);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function isDynamicTextContent(value) {
|
|
43
|
+
return isString(value) || isObservable(value);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
class DynamicComponentRef {
|
|
47
|
+
constructor({ component, context, injector, vcr }) {
|
|
48
|
+
this.componentRef = null;
|
|
49
|
+
this.componentRef = createComponent(component, {
|
|
50
|
+
environmentInjector: injector.get(EnvironmentInjector),
|
|
51
|
+
elementInjector: injector,
|
|
52
|
+
});
|
|
53
|
+
if (vcr) {
|
|
54
|
+
vcr.insert(this.componentRef.hostView);
|
|
55
|
+
}
|
|
56
|
+
if (context) {
|
|
57
|
+
this.update(context);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
detectChanges() {
|
|
61
|
+
this.componentRef?.changeDetectorRef.detectChanges();
|
|
62
|
+
}
|
|
63
|
+
async destroy() {
|
|
64
|
+
this.componentRef?.destroy();
|
|
65
|
+
await waitForAnimations(this.componentRef).catch();
|
|
66
|
+
this.componentRef = null;
|
|
67
|
+
}
|
|
68
|
+
getElement() {
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
70
|
+
return this.componentRef.location.nativeElement;
|
|
71
|
+
}
|
|
72
|
+
update(context) {
|
|
73
|
+
for (const key in context) {
|
|
74
|
+
this.componentRef?.setInput(key, context[key]);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
getView() {
|
|
78
|
+
return this.componentRef?.hostView ?? null;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
class DynamicTemplateRef {
|
|
83
|
+
constructor(options) {
|
|
84
|
+
this.options = options;
|
|
85
|
+
this.application = this.options.injector.get(ApplicationRef);
|
|
86
|
+
this.embeddedViewRef = null;
|
|
87
|
+
this.create(options);
|
|
88
|
+
}
|
|
89
|
+
detectChanges() {
|
|
90
|
+
this.embeddedViewRef?.detectChanges();
|
|
91
|
+
}
|
|
92
|
+
async destroy() {
|
|
93
|
+
if (!this.options.vcr && this.embeddedViewRef) {
|
|
94
|
+
this.application.detachView(this.embeddedViewRef);
|
|
95
|
+
}
|
|
96
|
+
this.embeddedViewRef?.destroy();
|
|
97
|
+
this.embeddedViewRef = null;
|
|
98
|
+
}
|
|
99
|
+
getElement() {
|
|
100
|
+
return this.embeddedViewRef?.rootNodes?.[0] ?? null;
|
|
101
|
+
}
|
|
102
|
+
update(context) {
|
|
103
|
+
if (this.embeddedViewRef) {
|
|
104
|
+
this.embeddedViewRef.context = context;
|
|
105
|
+
this.detectChanges();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
getView() {
|
|
109
|
+
return this.embeddedViewRef;
|
|
110
|
+
}
|
|
111
|
+
create({ context, template, vcr }) {
|
|
112
|
+
if (vcr) {
|
|
113
|
+
this.embeddedViewRef = vcr.createEmbeddedView(template, context, { injector: this.options.injector });
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
this.embeddedViewRef = template.createEmbeddedView(context ?? {}, this.options.injector);
|
|
117
|
+
this.application.attachView(this.embeddedViewRef);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function isDynamicView(value) {
|
|
123
|
+
return value instanceof DynamicComponentRef || value instanceof DynamicTemplateRef;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
async function waitForAnimations(component) {
|
|
127
|
+
if (isAnimatedComponent(component)) {
|
|
128
|
+
await lastValueFrom(component.instance.ngAnimationsDone$);
|
|
129
|
+
}
|
|
130
|
+
return true;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const DYNAMIC_VIEW_CONTEXT = new InjectionToken('@odx/angular/cdk/dynamic-view::DynamicViewContext');
|
|
134
|
+
|
|
135
|
+
class DynamicViewService {
|
|
136
|
+
constructor() {
|
|
137
|
+
this.injector = inject(Injector);
|
|
138
|
+
}
|
|
139
|
+
createView(content, options = {}) {
|
|
140
|
+
const viewOptions = {
|
|
141
|
+
...options,
|
|
142
|
+
injector: Injector.create({
|
|
143
|
+
providers: [{ provide: DYNAMIC_VIEW_CONTEXT, useValue: options.context }],
|
|
144
|
+
parent: options.injector ?? this.injector,
|
|
145
|
+
}),
|
|
146
|
+
};
|
|
147
|
+
if (isTemplateRef(content)) {
|
|
148
|
+
return new DynamicTemplateRef({ ...viewOptions, template: content });
|
|
149
|
+
}
|
|
150
|
+
if (isComponent(content)) {
|
|
151
|
+
return new DynamicComponentRef({ ...viewOptions, context: options.context, component: content });
|
|
152
|
+
}
|
|
153
|
+
if (isDynamicTextContent(content)) {
|
|
154
|
+
return new DynamicComponentRef({
|
|
155
|
+
...viewOptions,
|
|
156
|
+
component: DynamicViewComponent,
|
|
157
|
+
context: { content },
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
throw new Error('Content type is not supported');
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
DynamicViewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DynamicViewService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
164
|
+
DynamicViewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DynamicViewService, providedIn: 'root' });
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DynamicViewService, decorators: [{
|
|
166
|
+
type: Injectable,
|
|
167
|
+
args: [{ providedIn: 'root' }]
|
|
168
|
+
}] });
|
|
169
|
+
|
|
170
|
+
class DynamicViewDirective {
|
|
171
|
+
constructor() {
|
|
172
|
+
this.dynamicViewService = inject(DynamicViewService);
|
|
173
|
+
this.viewContainer = inject(ViewContainerRef);
|
|
174
|
+
this.viewRef = null;
|
|
175
|
+
this.content = null;
|
|
176
|
+
}
|
|
177
|
+
ngOnInit() {
|
|
178
|
+
this.render();
|
|
179
|
+
}
|
|
180
|
+
ngOnChanges(changes) {
|
|
181
|
+
if (hasChanged(changes, 'injector')) {
|
|
182
|
+
this.render();
|
|
183
|
+
}
|
|
184
|
+
if (hasChanged(changes, 'content')) {
|
|
185
|
+
this.render(false);
|
|
186
|
+
}
|
|
187
|
+
if (hasChanged(changes, 'context')) {
|
|
188
|
+
this.viewRef?.update(changes.context?.currentValue ?? {});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
async ngOnDestroy() {
|
|
192
|
+
await this.destroy();
|
|
193
|
+
}
|
|
194
|
+
getView() {
|
|
195
|
+
return this.viewRef;
|
|
196
|
+
}
|
|
197
|
+
render(reRender = true) {
|
|
198
|
+
if (!this.content)
|
|
199
|
+
return;
|
|
200
|
+
if (!reRender && this.viewRef && isDynamicTextContent(this.content)) {
|
|
201
|
+
this.viewRef?.update({ content: this.content });
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
this.viewRef?.destroy();
|
|
205
|
+
if (isDynamicView(this.content)) {
|
|
206
|
+
this.viewRef = this.content;
|
|
207
|
+
const hostView = this.viewRef.getView();
|
|
208
|
+
if (hostView) {
|
|
209
|
+
this.viewContainer.insert(hostView);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
this.viewRef = this.dynamicViewService.createView(this.content, {
|
|
214
|
+
context: this.context ?? undefined,
|
|
215
|
+
injector: this.injector ?? this.viewContainer.injector,
|
|
216
|
+
vcr: this.viewContainer,
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
async destroy() {
|
|
221
|
+
await this.viewRef?.destroy();
|
|
222
|
+
this.viewRef = null;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
DynamicViewDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DynamicViewDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
226
|
+
DynamicViewDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: DynamicViewDirective, isStandalone: true, selector: "[odxDynamicView]", inputs: { content: ["odxDynamicView", "content"], injector: ["odxDynamicViewInjector", "injector"], context: ["odxDynamicViewContext", "context"] }, usesOnChanges: true, ngImport: i0 });
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DynamicViewDirective, decorators: [{
|
|
228
|
+
type: Directive,
|
|
229
|
+
args: [{
|
|
230
|
+
selector: '[odxDynamicView]',
|
|
231
|
+
standalone: true,
|
|
232
|
+
}]
|
|
233
|
+
}], propDecorators: { content: [{
|
|
234
|
+
type: Input,
|
|
235
|
+
args: ['odxDynamicView']
|
|
236
|
+
}], injector: [{
|
|
237
|
+
type: Input,
|
|
238
|
+
args: ['odxDynamicViewInjector']
|
|
239
|
+
}], context: [{
|
|
240
|
+
type: Input,
|
|
241
|
+
args: ['odxDynamicViewContext']
|
|
242
|
+
}] } });
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Generated bundle index. Do not edit.
|
|
246
|
+
*/
|
|
247
|
+
|
|
248
|
+
export { DYNAMIC_VIEW_CONTEXT, DynamicComponentRef, DynamicTemplateRef, DynamicViewComponent, DynamicViewDirective, DynamicViewService, isAnimatedComponent, isDynamicTextContent, isDynamicView, waitForAnimations };
|
|
249
|
+
//# sourceMappingURL=odx-angular-cdk-dynamic-view.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odx-angular-cdk-dynamic-view.mjs","sources":["../../../../libs/angular/cdk/dynamic-view/src/lib/dynamic-view.component.ts","../../../../libs/angular/cdk/dynamic-view/src/lib/helpers/is-animated-component.ts","../../../../libs/angular/cdk/dynamic-view/src/lib/helpers/is-dynamic-text-content.ts","../../../../libs/angular/cdk/dynamic-view/src/lib/models/dynamic-component-ref.ts","../../../../libs/angular/cdk/dynamic-view/src/lib/models/dynamic-template-ref.ts","../../../../libs/angular/cdk/dynamic-view/src/lib/helpers/is-dynamic-view.ts","../../../../libs/angular/cdk/dynamic-view/src/lib/helpers/wait-for-animations.ts","../../../../libs/angular/cdk/dynamic-view/src/lib/tokens/dynamic-view-context.ts","../../../../libs/angular/cdk/dynamic-view/src/lib/dynamic-view.service.ts","../../../../libs/angular/cdk/dynamic-view/src/lib/dynamic-view.directive.ts","../../../../libs/angular/cdk/dynamic-view/src/odx-angular-cdk-dynamic-view.ts"],"sourcesContent":["import { AsyncPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, Input, OnDestroy, ViewEncapsulation } from '@angular/core';\nimport { isObservable } from 'rxjs';\nimport { DynamicTextContent } from './facade';\n\n@Component({\n selector: 'odx-dynamic-view',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: true,\n host: {\n '[innerHTML]': 'resolveContent()',\n },\n})\nexport class DynamicViewComponent implements OnDestroy {\n protected asyncPipe = new AsyncPipe(inject(ChangeDetectorRef));\n protected resolveContent: () => string | null = () => null;\n\n @Input()\n public set content(value: DynamicTextContent) {\n this.resolveContent = isObservable(value) ? () => this.asyncPipe.transform(value) : () => value;\n }\n\n public ngOnDestroy(): void {\n this.asyncPipe?.ngOnDestroy();\n }\n}\n","import { ComponentRef } from '@angular/core';\nimport { isObservable } from 'rxjs';\nimport { AnimatedComponent } from '../facade';\n\nexport function isAnimatedComponent<T>(component?: ComponentRef<T | AnimatedComponent> | null): component is ComponentRef<AnimatedComponent> {\n return isObservable((component?.instance as AnimatedComponent)?.ngAnimationsDone$);\n}\n","import { isString } from '@odx/angular/internal';\nimport { isObservable } from 'rxjs';\nimport { DynamicTextContent } from '../facade';\n\nexport function isDynamicTextContent(value: unknown): value is DynamicTextContent {\n return isString(value) || isObservable(value);\n}\n","import { ComponentRef, createComponent, EnvironmentInjector, Type, ViewRef } from '@angular/core';\nimport { GetDynamicViewContext } from '../facade';\nimport { DynamicViewRef } from '../facade/dynamic-view-ref';\nimport { waitForAnimations } from '../helpers';\nimport { DynamicViewOptions } from './dynamic-view-options';\n\nexport interface DynamicComponentOptions<T extends Type<unknown>> extends DynamicViewOptions<T> {\n component: T;\n}\n\nexport class DynamicComponentRef<T extends Type<unknown>, C extends GetDynamicViewContext<T>> implements DynamicViewRef<T> {\n private componentRef: ComponentRef<T> | null = null;\n\n constructor({ component, context, injector, vcr }: DynamicComponentOptions<T>) {\n this.componentRef = createComponent(component as Type<T>, {\n environmentInjector: injector.get(EnvironmentInjector),\n elementInjector: injector,\n });\n\n if (vcr) {\n vcr.insert(this.componentRef.hostView);\n }\n if (context) {\n this.update(context as C);\n }\n }\n\n public detectChanges(): void {\n this.componentRef?.changeDetectorRef.detectChanges();\n }\n\n public async destroy(): Promise<void> {\n this.componentRef?.destroy();\n await waitForAnimations(this.componentRef).catch();\n this.componentRef = null;\n }\n\n public getElement<T extends Element>(): T {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return this.componentRef!.location.nativeElement;\n }\n\n public update(context: C): void {\n for (const key in context) {\n this.componentRef?.setInput(key, context[key]);\n }\n }\n\n public getView(): ViewRef | null {\n return this.componentRef?.hostView ?? null;\n }\n}\n","import { ApplicationRef, EmbeddedViewRef, TemplateRef as NgTemplateRef, ViewRef } from '@angular/core';\nimport { DynamicViewRef, GetDynamicViewContext } from '../facade';\nimport { DynamicViewOptions } from './dynamic-view-options';\n\nexport interface DynamicTemplateOptions<T extends NgTemplateRef<unknown>> extends DynamicViewOptions<T> {\n template: T;\n}\n\nexport class DynamicTemplateRef<T extends NgTemplateRef<unknown> = NgTemplateRef<unknown>> implements DynamicViewRef<T> {\n private readonly application = this.options.injector.get(ApplicationRef);\n private embeddedViewRef: EmbeddedViewRef<unknown> | null = null;\n\n constructor(private readonly options: DynamicTemplateOptions<T>) {\n this.create(options);\n }\n\n public detectChanges(): void {\n this.embeddedViewRef?.detectChanges();\n }\n\n public async destroy(): Promise<void> {\n if (!this.options.vcr && this.embeddedViewRef) {\n this.application.detachView(this.embeddedViewRef);\n }\n this.embeddedViewRef?.destroy();\n this.embeddedViewRef = null;\n }\n\n public getElement(): Element {\n return this.embeddedViewRef?.rootNodes?.[0] ?? null;\n }\n\n public update(context: GetDynamicViewContext<T>): void {\n if (this.embeddedViewRef) {\n this.embeddedViewRef.context = context;\n this.detectChanges();\n }\n }\n\n public getView(): ViewRef | null {\n return this.embeddedViewRef;\n }\n\n private create({ context, template, vcr }: DynamicTemplateOptions<T>) {\n if (vcr) {\n this.embeddedViewRef = vcr.createEmbeddedView(template, context, { injector: this.options.injector });\n } else {\n this.embeddedViewRef = template.createEmbeddedView(context ?? {}, this.options.injector);\n this.application.attachView(this.embeddedViewRef);\n }\n }\n}\n","import { DynamicContent, DynamicViewRef } from '../facade';\nimport { DynamicComponentRef, DynamicTemplateRef } from '../models';\n\nexport function isDynamicView(value: unknown): value is DynamicViewRef<DynamicContent> {\n return value instanceof DynamicComponentRef || value instanceof DynamicTemplateRef;\n}\n","import { ComponentRef } from '@angular/core';\nimport { lastValueFrom } from 'rxjs';\nimport { AnimatedComponent } from '../facade';\nimport { isAnimatedComponent } from './is-animated-component';\n\nexport async function waitForAnimations<T>(component?: ComponentRef<T | AnimatedComponent> | null): Promise<boolean> {\n if (isAnimatedComponent(component)) {\n await lastValueFrom(component.instance.ngAnimationsDone$);\n }\n return true;\n}\n","import { InjectionToken, TemplateRef } from '@angular/core';\n\nexport interface DynamicViewContextWithImplicitTemplate<T = unknown> {\n $implicit: TemplateRef<T>;\n}\n\nexport const DYNAMIC_VIEW_CONTEXT = new InjectionToken('@odx/angular/cdk/dynamic-view::DynamicViewContext');\n","import { inject, Injectable, Injector } from '@angular/core';\nimport { isComponent, isTemplateRef } from '@odx/angular/internal';\nimport { DynamicViewComponent } from './dynamic-view.component';\nimport { DynamicContent, DynamicViewRef } from './facade';\nimport { isDynamicTextContent } from './helpers';\nimport { DynamicComponentRef, DynamicViewOptions } from './models';\nimport { DynamicTemplateRef } from './models/dynamic-template-ref';\nimport { DYNAMIC_VIEW_CONTEXT } from './tokens';\n\n@Injectable({ providedIn: 'root' })\nexport class DynamicViewService {\n private readonly injector = inject(Injector);\n\n public createView<T extends DynamicContent>(content: T, options: Partial<DynamicViewOptions<T>> = {}): DynamicViewRef<T> {\n const viewOptions = {\n ...options,\n injector: Injector.create({\n providers: [{ provide: DYNAMIC_VIEW_CONTEXT, useValue: options.context }],\n parent: options.injector ?? this.injector,\n }),\n };\n if (isTemplateRef(content)) {\n return new DynamicTemplateRef({ ...viewOptions, template: content });\n }\n if (isComponent(content)) {\n return new DynamicComponentRef({ ...viewOptions, context: options.context, component: content });\n }\n if (isDynamicTextContent(content)) {\n return new DynamicComponentRef({\n ...viewOptions,\n component: DynamicViewComponent,\n context: { content },\n });\n }\n throw new Error('Content type is not supported');\n }\n}\n","import { Directive, inject, Injector, Input, OnChanges, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';\nimport { hasChanged, NgChanges } from '@odx/angular/utils';\nimport { DynamicViewService } from './dynamic-view.service';\nimport { DynamicContent, DynamicViewRef, GetDynamicViewContext } from './facade';\nimport { isDynamicTextContent, isDynamicView } from './helpers';\n\n@Directive({\n selector: '[odxDynamicView]',\n standalone: true,\n})\nexport class DynamicViewDirective<T extends DynamicContent<unknown> = DynamicContent<unknown>> implements OnDestroy, OnInit, OnChanges {\n private readonly dynamicViewService = inject(DynamicViewService);\n private readonly viewContainer = inject(ViewContainerRef);\n private viewRef: DynamicViewRef<T> | null = null;\n\n @Input('odxDynamicView')\n public content?: T | DynamicViewRef<T> | null = null;\n\n @Input('odxDynamicViewInjector')\n public injector?: Injector;\n\n @Input('odxDynamicViewContext')\n public context?: GetDynamicViewContext<T>;\n\n public ngOnInit(): void {\n this.render();\n }\n\n public ngOnChanges(changes: NgChanges<DynamicViewDirective<DynamicContent>>): void {\n if (hasChanged(changes, 'injector')) {\n this.render();\n }\n if (hasChanged(changes, 'content')) {\n this.render(false);\n }\n if (hasChanged(changes, 'context')) {\n this.viewRef?.update(changes.context?.currentValue ?? {});\n }\n }\n\n public async ngOnDestroy(): Promise<void> {\n await this.destroy();\n }\n\n public getView(): DynamicViewRef<T> | null {\n return this.viewRef;\n }\n\n private render(reRender = true) {\n if (!this.content) return;\n if (!reRender && this.viewRef && isDynamicTextContent(this.content)) {\n this.viewRef?.update({ content: this.content } as object);\n return;\n }\n this.viewRef?.destroy();\n if (isDynamicView(this.content)) {\n this.viewRef = this.content;\n const hostView = this.viewRef.getView();\n if (hostView) {\n this.viewContainer.insert(hostView);\n }\n } else {\n this.viewRef = this.dynamicViewService.createView(this.content, {\n context: this.context ?? undefined,\n injector: this.injector ?? this.viewContainer.injector,\n vcr: this.viewContainer,\n });\n }\n }\n\n private async destroy() {\n await this.viewRef?.destroy();\n this.viewRef = null;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAea,oBAAoB,CAAA;AAVjC,IAAA,WAAA,GAAA;QAWY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A,CAAA,CAAA;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA,CAAA;8BAOQ,OAAO,EAAA,CAAA;sBADb,KAAK;uBAAC,gBAAgB,CAAA;gBAIhB,QAAQ,EAAA,CAAA;sBADd,KAAK;uBAAC,wBAAwB,CAAA;gBAIxB,OAAO,EAAA,CAAA;sBADb,KAAK;uBAAC,uBAAuB,CAAA;;;ACrBhC;;AAEG;;;;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { ElementRef, Component, ViewEncapsulation, ChangeDetectionStrategy, HostBinding, Input } from '@angular/core';
|
|
5
|
+
import { DISABLED_CONTROLLER_PROVIDER } from '@odx/angular';
|
|
6
|
+
import { CSSComponent } from '@odx/angular/internal';
|
|
7
|
+
import { Transform } from '@odx/angular/utils';
|
|
8
|
+
|
|
9
|
+
let ActionGroupComponent = class ActionGroupComponent {
|
|
10
|
+
constructor(element) {
|
|
11
|
+
this.element = element;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
ActionGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ActionGroupComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
+
ActionGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: ActionGroupComponent, isStandalone: true, selector: "odx-action-group", inputs: { reverse: "reverse" }, host: { properties: { "class.odx-action-group--reverse": "this.reverse" } }, providers: [DISABLED_CONTROLLER_PROVIDER], ngImport: i0, template: "<ng-content select=\"[odxButton]\"></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
16
|
+
__decorate([
|
|
17
|
+
Transform(coerceBooleanProperty),
|
|
18
|
+
__metadata("design:type", Boolean)
|
|
19
|
+
], ActionGroupComponent.prototype, "reverse", void 0);
|
|
20
|
+
ActionGroupComponent = __decorate([
|
|
21
|
+
CSSComponent('action-group'),
|
|
22
|
+
__metadata("design:paramtypes", [ElementRef])
|
|
23
|
+
], ActionGroupComponent);
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ActionGroupComponent, decorators: [{
|
|
25
|
+
type: Component,
|
|
26
|
+
args: [{ selector: 'odx-action-group', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [DISABLED_CONTROLLER_PROVIDER], standalone: true, template: "<ng-content select=\"[odxButton]\"></ng-content>\n" }]
|
|
27
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { reverse: [{
|
|
28
|
+
type: HostBinding,
|
|
29
|
+
args: ['class.odx-action-group--reverse']
|
|
30
|
+
}, {
|
|
31
|
+
type: Input
|
|
32
|
+
}] } });
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Generated bundle index. Do not edit.
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
export { ActionGroupComponent };
|
|
39
|
+
//# sourceMappingURL=odx-angular-components-action-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odx-angular-components-action-group.mjs","sources":["../../../../libs/angular/components/action-group/src/action-group.component.ts","../../../../libs/angular/components/action-group/src/action-group.component.html","../../../../libs/angular/components/action-group/src/odx-angular-components-action-group.ts"],"sourcesContent":["import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, ElementRef, HostBinding, Input, ViewEncapsulation } from '@angular/core';\nimport { DISABLED_CONTROLLER_PROVIDER } from '@odx/angular';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { Transform } from '@odx/angular/utils';\n\n@CSSComponent('action-group')\n@Component({\n selector: 'odx-action-group',\n templateUrl: './action-group.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [DISABLED_CONTROLLER_PROVIDER],\n standalone: true,\n})\nexport class ActionGroupComponent {\n public static ngAcceptInputType_reverse: BooleanInput;\n\n @HostBinding('class.odx-action-group--reverse')\n @Transform(coerceBooleanProperty)\n @Input()\n public reverse!: boolean;\n\n constructor(public readonly element: ElementRef<HTMLElement>) {}\n}\n","<ng-content select=\"[odxButton]\"></ng-content>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAea,IAAA,oBAAoB,SAApB,oBAAoB,CAAA;AAQ/B,IAAA,WAAA,CAA4B,OAAgC,EAAA;QAAhC,IAAO,CAAA,OAAA,GAAP,OAAO,CAAyB;KAAI;EACjE;iHATY,oBAAoB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,EAHpB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iCAAA,EAAA,cAAA,EAAA,EAAA,EAAA,SAAA,EAAA,CAAC,4BAA4B,CAAC,0BCZ3C,oDACA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;IDkBG,SAAS,CAAC,qBAAqB,CAAC;;AAER,CAAA,EAAA,oBAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AANd,oBAAoB,GAAA,UAAA,CAAA;IAThC,YAAY,CAAC,cAAc,CAAC;qCAiBU,UAAU,CAAA,CAAA;AARpC,CAAA,EAAA,oBAAoB,CAShC,CAAA;2FATY,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBARhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAEb,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA,CAAC,4BAA4B,CAAC,cAC7B,IAAI,EAAA,QAAA,EAAA,oDAAA,EAAA,CAAA;iGAQT,OAAO,EAAA,CAAA;sBAHb,WAAW;uBAAC,iCAAiC,CAAA;;sBAE7C,KAAK;;;AEpBR;;AAEG;;;;"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { ElementRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Directive, NgModule } from '@angular/core';
|
|
5
|
+
import { CSSModifier, CSSComponent } from '@odx/angular/internal';
|
|
6
|
+
import { ActionGroupComponent } from '@odx/angular/components/action-group';
|
|
7
|
+
import { AvatarComponent } from '@odx/angular/components/avatar';
|
|
8
|
+
import { ButtonComponent } from '@odx/angular/components/button';
|
|
9
|
+
import { IconComponent } from '@odx/angular/components/icon';
|
|
10
|
+
|
|
11
|
+
const AreaHeaderSize = {
|
|
12
|
+
SMALL: 'small',
|
|
13
|
+
MEDIUM: 'medium',
|
|
14
|
+
LARGE: 'large',
|
|
15
|
+
XLARGE: 'xlarge',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
let AreaHeaderComponent = class AreaHeaderComponent {
|
|
19
|
+
constructor(element) {
|
|
20
|
+
this.element = element;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
AreaHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: AreaHeaderComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
AreaHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: AreaHeaderComponent, isStandalone: true, selector: "odx-area-header", inputs: { size: "size" }, ngImport: i0, template: "<div class=\"odx-area-header__container\">\n <ng-content select=\"odx-avatar\"></ng-content>\n <div class=\"odx-area-header__inner\">\n <div class=\"odx-area-header__title\">\n <ng-content></ng-content>\n </div>\n <ng-content select=\"odx-area-header-subtitle\"></ng-content>\n </div>\n</div>\n<ng-content select=\"odx-area-header-content\"></ng-content>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
25
|
+
__decorate([
|
|
26
|
+
CSSModifier({ default: AreaHeaderSize.XLARGE }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AreaHeaderComponent.prototype, "size", void 0);
|
|
29
|
+
AreaHeaderComponent = __decorate([
|
|
30
|
+
CSSComponent('area-header'),
|
|
31
|
+
__metadata("design:paramtypes", [ElementRef])
|
|
32
|
+
], AreaHeaderComponent);
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: AreaHeaderComponent, decorators: [{
|
|
34
|
+
type: Component,
|
|
35
|
+
args: [{ selector: 'odx-area-header', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule], standalone: true, template: "<div class=\"odx-area-header__container\">\n <ng-content select=\"odx-avatar\"></ng-content>\n <div class=\"odx-area-header__inner\">\n <div class=\"odx-area-header__title\">\n <ng-content></ng-content>\n </div>\n <ng-content select=\"odx-area-header-subtitle\"></ng-content>\n </div>\n</div>\n<ng-content select=\"odx-area-header-content\"></ng-content>\n" }]
|
|
36
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { size: [{
|
|
37
|
+
type: Input
|
|
38
|
+
}] } });
|
|
39
|
+
|
|
40
|
+
class AreaHeaderContentDirective {
|
|
41
|
+
}
|
|
42
|
+
AreaHeaderContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: AreaHeaderContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
43
|
+
AreaHeaderContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: AreaHeaderContentDirective, isStandalone: true, selector: "odx-area-header-content", host: { properties: { "class.odx-area-header__content": "true" } }, ngImport: i0 });
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: AreaHeaderContentDirective, decorators: [{
|
|
45
|
+
type: Directive,
|
|
46
|
+
args: [{
|
|
47
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
48
|
+
selector: 'odx-area-header-content',
|
|
49
|
+
standalone: true,
|
|
50
|
+
host: {
|
|
51
|
+
'[class.odx-area-header__content]': 'true',
|
|
52
|
+
},
|
|
53
|
+
}]
|
|
54
|
+
}] });
|
|
55
|
+
|
|
56
|
+
class AreaHeaderSubtitleDirective {
|
|
57
|
+
}
|
|
58
|
+
AreaHeaderSubtitleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: AreaHeaderSubtitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
59
|
+
AreaHeaderSubtitleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: AreaHeaderSubtitleDirective, isStandalone: true, selector: "odx-area-header-subtitle", host: { properties: { "class.odx-area-header__subtitle": "true" } }, ngImport: i0 });
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: AreaHeaderSubtitleDirective, decorators: [{
|
|
61
|
+
type: Directive,
|
|
62
|
+
args: [{
|
|
63
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
64
|
+
selector: 'odx-area-header-subtitle',
|
|
65
|
+
standalone: true,
|
|
66
|
+
host: {
|
|
67
|
+
'[class.odx-area-header__subtitle]': 'true',
|
|
68
|
+
},
|
|
69
|
+
}]
|
|
70
|
+
}] });
|
|
71
|
+
|
|
72
|
+
const modules = [
|
|
73
|
+
AreaHeaderComponent,
|
|
74
|
+
AreaHeaderContentDirective,
|
|
75
|
+
AreaHeaderSubtitleDirective,
|
|
76
|
+
AvatarComponent,
|
|
77
|
+
ActionGroupComponent,
|
|
78
|
+
ButtonComponent,
|
|
79
|
+
IconComponent,
|
|
80
|
+
];
|
|
81
|
+
class AreaHeaderModule {
|
|
82
|
+
}
|
|
83
|
+
AreaHeaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: AreaHeaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
84
|
+
AreaHeaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: AreaHeaderModule, imports: [AreaHeaderComponent,
|
|
85
|
+
AreaHeaderContentDirective,
|
|
86
|
+
AreaHeaderSubtitleDirective,
|
|
87
|
+
AvatarComponent,
|
|
88
|
+
ActionGroupComponent,
|
|
89
|
+
ButtonComponent,
|
|
90
|
+
IconComponent], exports: [AreaHeaderComponent,
|
|
91
|
+
AreaHeaderContentDirective,
|
|
92
|
+
AreaHeaderSubtitleDirective,
|
|
93
|
+
AvatarComponent,
|
|
94
|
+
ActionGroupComponent,
|
|
95
|
+
ButtonComponent,
|
|
96
|
+
IconComponent] });
|
|
97
|
+
AreaHeaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: AreaHeaderModule, imports: [AreaHeaderComponent,
|
|
98
|
+
AvatarComponent,
|
|
99
|
+
ActionGroupComponent,
|
|
100
|
+
ButtonComponent,
|
|
101
|
+
IconComponent] });
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: AreaHeaderModule, decorators: [{
|
|
103
|
+
type: NgModule,
|
|
104
|
+
args: [{
|
|
105
|
+
imports: modules,
|
|
106
|
+
exports: modules,
|
|
107
|
+
}]
|
|
108
|
+
}] });
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Generated bundle index. Do not edit.
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
export { AreaHeaderComponent, AreaHeaderContentDirective, AreaHeaderModule, AreaHeaderSize, AreaHeaderSubtitleDirective };
|
|
115
|
+
//# sourceMappingURL=odx-angular-components-area-header.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odx-angular-components-area-header.mjs","sources":["../../../../libs/angular/components/area-header/src/models/area-header-size.ts","../../../../libs/angular/components/area-header/src/area-header.component.ts","../../../../libs/angular/components/area-header/src/area-header.component.html","../../../../libs/angular/components/area-header/src/directives/area-header-content.directive.ts","../../../../libs/angular/components/area-header/src/directives/area-header-subtitle.directive.ts","../../../../libs/angular/components/area-header/src/area-header.module.ts","../../../../libs/angular/components/area-header/src/odx-angular-components-area-header.ts"],"sourcesContent":["export type AreaHeaderSize = typeof AreaHeaderSize[keyof typeof AreaHeaderSize];\n\nexport const AreaHeaderSize = {\n SMALL: 'small',\n MEDIUM: 'medium',\n LARGE: 'large',\n XLARGE: 'xlarge',\n} as const;\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ElementRef, Input, ViewEncapsulation } from '@angular/core';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { AreaHeaderSize } from './models';\n\n@CSSComponent('area-header')\n@Component({\n selector: 'odx-area-header',\n templateUrl: './area-header.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule],\n standalone: true,\n})\nexport class AreaHeaderComponent {\n @CSSModifier({ default: AreaHeaderSize.XLARGE })\n @Input()\n public size!: AreaHeaderSize;\n\n constructor(public readonly element: ElementRef<HTMLElement>) {}\n}\n","<div class=\"odx-area-header__container\">\n <ng-content select=\"odx-avatar\"></ng-content>\n <div class=\"odx-area-header__inner\">\n <div class=\"odx-area-header__title\">\n <ng-content></ng-content>\n </div>\n <ng-content select=\"odx-area-header-subtitle\"></ng-content>\n </div>\n</div>\n<ng-content select=\"odx-area-header-content\"></ng-content>\n","import { Directive } from '@angular/core';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: 'odx-area-header-content',\n standalone: true,\n host: {\n '[class.odx-area-header__content]': 'true',\n },\n})\nexport class AreaHeaderContentDirective {}\n","import { Directive } from '@angular/core';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: 'odx-area-header-subtitle',\n standalone: true,\n host: {\n '[class.odx-area-header__subtitle]': 'true',\n },\n})\nexport class AreaHeaderSubtitleDirective {}\n","import { NgModule } from '@angular/core';\nimport { ActionGroupComponent } from '@odx/angular/components/action-group';\nimport { AvatarComponent } from '@odx/angular/components/avatar';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { AreaHeaderComponent } from './area-header.component';\nimport { AreaHeaderContentDirective, AreaHeaderSubtitleDirective } from './directives';\n\nconst modules = [\n AreaHeaderComponent,\n AreaHeaderContentDirective,\n AreaHeaderSubtitleDirective,\n AvatarComponent,\n ActionGroupComponent,\n ButtonComponent,\n IconComponent,\n];\n\n@NgModule({\n imports: modules,\n exports: modules,\n})\nexport class AreaHeaderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAEa,MAAA,cAAc,GAAG;AAC5B,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,MAAM,EAAE,QAAQ;;;ACQL,IAAA,mBAAmB,SAAnB,mBAAmB,CAAA;AAK9B,IAAA,WAAA,CAA4B,OAAgC,EAAA;QAAhC,IAAO,CAAA,OAAA,GAAP,OAAO,CAAyB;KAAI;EACjE;gHANY,mBAAmB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;oGAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECdhC,uXAUA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDCY,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;IAIrB,WAAW,CAAC,EAAE,OAAO,EAAE,cAAc,CAAC,MAAM,EAAE,CAAC;;AAEnB,CAAA,EAAA,mBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAHlB,mBAAmB,GAAA,UAAA,CAAA;IAT/B,YAAY,CAAC,aAAa,CAAC;qCAcW,UAAU,CAAA,CAAA;AALpC,CAAA,EAAA,mBAAmB,CAM/B,CAAA;2FANY,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;AAEG;;;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { ElementRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
4
|
+
import { CSSModifier, CSSComponent } from '@odx/angular/internal';
|
|
5
|
+
|
|
6
|
+
const AvatarSize = {
|
|
7
|
+
SMALL: 'small',
|
|
8
|
+
MEDIUM: 'medium',
|
|
9
|
+
LARGE: 'large',
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
let AvatarComponent = class AvatarComponent {
|
|
13
|
+
constructor(element) {
|
|
14
|
+
this.element = element;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
AvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: AvatarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
AvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: AvatarComponent, isStandalone: true, selector: "odx-avatar", inputs: { size: "size" }, ngImport: i0, template: "<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
19
|
+
__decorate([
|
|
20
|
+
CSSModifier({
|
|
21
|
+
default: AvatarSize.SMALL,
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", Object)
|
|
24
|
+
], AvatarComponent.prototype, "size", void 0);
|
|
25
|
+
AvatarComponent = __decorate([
|
|
26
|
+
CSSComponent('avatar'),
|
|
27
|
+
__metadata("design:paramtypes", [ElementRef])
|
|
28
|
+
], AvatarComponent);
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: AvatarComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ standalone: true, selector: 'odx-avatar', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n" }]
|
|
32
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { size: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}] } });
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Generated bundle index. Do not edit.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
export { AvatarComponent, AvatarSize };
|
|
41
|
+
//# sourceMappingURL=odx-angular-components-avatar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odx-angular-components-avatar.mjs","sources":["../../../../libs/angular/components/avatar/src/lib/models/avatar-size.ts","../../../../libs/angular/components/avatar/src/lib/avatar.component.ts","../../../../libs/angular/components/avatar/src/lib/avatar.component.html","../../../../libs/angular/components/avatar/src/odx-angular-components-avatar.ts"],"sourcesContent":["export type AvatarSize = typeof AvatarSize[keyof typeof AvatarSize];\n\nexport const AvatarSize = {\n SMALL: 'small',\n MEDIUM: 'medium',\n LARGE: 'large',\n} as const;\n","import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewEncapsulation } from '@angular/core';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { AvatarSize } from './models';\n\n@CSSComponent('avatar')\n@Component({\n standalone: true,\n selector: 'odx-avatar',\n templateUrl: 'avatar.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AvatarComponent {\n @CSSModifier({\n default: AvatarSize.SMALL,\n })\n @Input()\n public size?: AvatarSize | null;\n\n constructor(public readonly element: ElementRef<HTMLElement>) {}\n}\n","<ng-content></ng-content>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAEa,MAAA,UAAU,GAAG;AACxB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,MAAM,EAAE,QAAQ;AACh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