@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,54 @@
|
|
|
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 IconSize = {
|
|
7
|
+
SMALL: 'small',
|
|
8
|
+
MEDIUM: 'medium',
|
|
9
|
+
LARGE: 'large',
|
|
10
|
+
INLINE: 'inline',
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
let IconComponent = class IconComponent {
|
|
14
|
+
constructor(element) {
|
|
15
|
+
this.element = element;
|
|
16
|
+
this.size = IconSize.MEDIUM;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IconComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: IconComponent, isStandalone: true, selector: "odx-icon", inputs: { size: "size", name: "name" }, host: { attributes: { "translate": "no" }, properties: { "attr.name": "name", "class.notranslate": "true" } }, ngImport: i0, template: '{{ name }}', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
21
|
+
__decorate([
|
|
22
|
+
CSSModifier(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], IconComponent.prototype, "size", void 0);
|
|
25
|
+
IconComponent = __decorate([
|
|
26
|
+
CSSComponent('icon'),
|
|
27
|
+
__metadata("design:paramtypes", [ElementRef])
|
|
28
|
+
], IconComponent);
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IconComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{
|
|
32
|
+
selector: 'odx-icon',
|
|
33
|
+
template: '{{ name }}',
|
|
34
|
+
encapsulation: ViewEncapsulation.None,
|
|
35
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
36
|
+
standalone: true,
|
|
37
|
+
host: {
|
|
38
|
+
'[attr.name]': 'name',
|
|
39
|
+
'[class.notranslate]': 'true',
|
|
40
|
+
translate: 'no',
|
|
41
|
+
},
|
|
42
|
+
}]
|
|
43
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { size: [{
|
|
44
|
+
type: Input
|
|
45
|
+
}], name: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}] } });
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Generated bundle index. Do not edit.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
export { IconComponent, IconSize };
|
|
54
|
+
//# sourceMappingURL=odx-angular-components-icon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odx-angular-components-icon.mjs","sources":["../../../../libs/angular/components/icon/src/lib/models/icon-size.ts","../../../../libs/angular/components/icon/src/lib/icon.component.ts","../../../../libs/angular/components/icon/src/odx-angular-components-icon.ts"],"sourcesContent":["export type IconSize = typeof IconSize[keyof typeof IconSize];\n\nexport const IconSize = {\n SMALL: 'small',\n MEDIUM: 'medium',\n LARGE: 'large',\n INLINE: 'inline',\n} as const;\n","import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewEncapsulation } from '@angular/core';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { IconSize } from './models';\n\n@CSSComponent('icon')\n@Component({\n selector: 'odx-icon',\n template: '{{ name }}',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n host: {\n '[attr.name]': 'name',\n '[class.notranslate]': 'true',\n translate: 'no',\n },\n})\nexport class IconComponent {\n @CSSModifier()\n @Input()\n public size: IconSize = IconSize.MEDIUM;\n\n @Input()\n public name!: string;\n\n constructor(public readonly element: ElementRef<HTMLElement>) {}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAEa,MAAA,QAAQ,GAAG;AACtB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,MAAM,EAAE,QAAQ;;;ACWL,IAAA,aAAa,SAAb,aAAa,CAAA;AAQxB,IAAA,WAAA,CAA4B,OAAgC,EAAA;QAAhC,IAAO,CAAA,OAAA,GAAP,OAAO,CAAyB;AALrD,QAAA,IAAA,CAAA,IAAI,GAAa,QAAQ,CAAC,MAAM,CAAC;KAKwB;EACjE;0GATY,aAAa,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAb,aAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,2NAVd,YAAY,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;AAWrB,IAAA,WAAW,EAAE;;AAE0B,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAH7B,aAAa,GAAA,UAAA,CAAA;IAbzB,YAAY,CAAC,MAAM,CAAC;qCAqBkB,UAAU,CAAA,CAAA;AARpC,CAAA,EAAA,aAAa,CASzB,CAAA;2FATY,aAAa,EAAA,UAAA,EAAA,CAAA;kBAZzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,QAAQ,EAAE,YAAY;oBACtB,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,qBAAqB,EAAE,MAAM;AAC7B,wBAAA,SAAS,EAAE,IAAI;AAChB,qBAAA;AACF,iBAAA,CAAA;iGAIQ,IAAI,EAAA,CAAA;sBADV,KAAK;gBAIC,IAAI,EAAA,CAAA;sBADV,KAAK;;;ACtBR;;AAEG;;;;"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, ElementRef, Directive, Input } from '@angular/core';
|
|
4
|
+
import { DISABLED_CONTROLLER, DISABLED_CONTROLLER_PROVIDER } from '@odx/angular';
|
|
5
|
+
import { CSSComponent } from '@odx/angular/internal';
|
|
6
|
+
|
|
7
|
+
let LinkDirective = class LinkDirective {
|
|
8
|
+
constructor(element) {
|
|
9
|
+
this.element = element;
|
|
10
|
+
this.disabledController = inject(DISABLED_CONTROLLER, { optional: true });
|
|
11
|
+
this.href = null;
|
|
12
|
+
}
|
|
13
|
+
get isDisabled() {
|
|
14
|
+
return !!this.disabledController?.disabled;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
LinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LinkDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
18
|
+
LinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: LinkDirective, isStandalone: true, selector: "a[odxLink]", inputs: { href: "href" }, host: { properties: { "class.is-disabled": "isDisabled", "attr.href": "isDisabled ? null : href", "tabindex": "isDisabled ? -1 : 0" } }, providers: [DISABLED_CONTROLLER_PROVIDER], ngImport: i0 });
|
|
19
|
+
LinkDirective = __decorate([
|
|
20
|
+
CSSComponent('link'),
|
|
21
|
+
__metadata("design:paramtypes", [ElementRef])
|
|
22
|
+
], LinkDirective);
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LinkDirective, decorators: [{
|
|
24
|
+
type: Directive,
|
|
25
|
+
args: [{
|
|
26
|
+
selector: 'a[odxLink]',
|
|
27
|
+
providers: [DISABLED_CONTROLLER_PROVIDER],
|
|
28
|
+
standalone: true,
|
|
29
|
+
host: {
|
|
30
|
+
'[class.is-disabled]': 'isDisabled',
|
|
31
|
+
'[attr.href]': 'isDisabled ? null : href',
|
|
32
|
+
'[tabindex]': 'isDisabled ? -1 : 0',
|
|
33
|
+
},
|
|
34
|
+
}]
|
|
35
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { href: [{
|
|
36
|
+
type: Input
|
|
37
|
+
}] } });
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Generated bundle index. Do not edit.
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
export { LinkDirective };
|
|
44
|
+
//# sourceMappingURL=odx-angular-components-link.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odx-angular-components-link.mjs","sources":["../../../../libs/angular/components/link/src/link.directive.ts","../../../../libs/angular/components/link/src/odx-angular-components-link.ts"],"sourcesContent":["import { Directive, ElementRef, inject, Input } from '@angular/core';\nimport { DISABLED_CONTROLLER, DISABLED_CONTROLLER_PROVIDER } from '@odx/angular';\nimport { CSSComponent } from '@odx/angular/internal';\n\n@CSSComponent('link')\n@Directive({\n selector: 'a[odxLink]',\n providers: [DISABLED_CONTROLLER_PROVIDER],\n standalone: true,\n host: {\n '[class.is-disabled]': 'isDisabled',\n '[attr.href]': 'isDisabled ? null : href',\n '[tabindex]': 'isDisabled ? -1 : 0',\n },\n})\nexport class LinkDirective {\n protected readonly disabledController = inject(DISABLED_CONTROLLER, { optional: true });\n\n public get isDisabled(): boolean {\n return !!this.disabledController?.disabled;\n }\n\n @Input()\n public href: string | null = null;\n\n constructor(public readonly element: ElementRef<HTMLLinkElement>) {}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAea,IAAA,aAAa,SAAb,aAAa,CAAA;AAUxB,IAAA,WAAA,CAA4B,OAAoC,EAAA;QAApC,IAAO,CAAA,OAAA,GAAP,OAAO,CAA6B;QAT7C,IAAkB,CAAA,kBAAA,GAAG,MAAM,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QAOjF,IAAI,CAAA,IAAA,GAAkB,IAAI,CAAC;KAEkC;AAPpE,IAAA,IAAW,UAAU,GAAA;AACnB,QAAA,OAAO,CAAC,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC;KAC5C;EAMF;0GAXY,aAAa,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;8FAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,mBAAA,EAAA,YAAA,EAAA,WAAA,EAAA,0BAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,SAAA,EARb,CAAC,4BAA4B,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;AAQ9B,aAAa,GAAA,UAAA,CAAA;IAXzB,YAAY,CAAC,MAAM,CAAC;qCAqBkB,UAAU,CAAA,CAAA;AAVpC,CAAA,EAAA,aAAa,CAWzB,CAAA;2FAXY,aAAa,EAAA,UAAA,EAAA,CAAA;kBAVzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,YAAY;oBACtB,SAAS,EAAE,CAAC,4BAA4B,CAAC;AACzC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,YAAY;AACnC,wBAAA,aAAa,EAAE,0BAA0B;AACzC,wBAAA,YAAY,EAAE,qBAAqB;AACpC,qBAAA;AACF,iBAAA,CAAA;iGASQ,IAAI,EAAA,CAAA;sBADV,KAAK;;;ACtBR;;AAEG;;;;"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { ElementRef, Directive, Input } from '@angular/core';
|
|
4
|
+
import { CSSModifier, CSSComponent } from '@odx/angular/internal';
|
|
5
|
+
|
|
6
|
+
const LogoSize = {
|
|
7
|
+
SMALL: 'small',
|
|
8
|
+
MEDIUM: 'medium',
|
|
9
|
+
LARGE: 'large',
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const LogoVariant = {
|
|
13
|
+
DEFAULT: 'default',
|
|
14
|
+
INVERSE: 'inverse',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
let LogoDirective = class LogoDirective {
|
|
18
|
+
constructor(element) {
|
|
19
|
+
this.element = element;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
LogoDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LogoDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
23
|
+
LogoDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: LogoDirective, isStandalone: true, selector: "odx-logo", inputs: { size: "size", variant: "variant" }, host: { attributes: { "translate": "no", "role": "img" }, properties: { "class.notranslate": "true", "attr.aria-label": "\"Dr\u00E4ger logo\"", "attr.aria-roledescription": "\"logo\"" } }, ngImport: i0 });
|
|
24
|
+
__decorate([
|
|
25
|
+
CSSModifier({ default: LogoSize.SMALL }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], LogoDirective.prototype, "size", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
CSSModifier({ default: LogoVariant.DEFAULT }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], LogoDirective.prototype, "variant", void 0);
|
|
32
|
+
LogoDirective = __decorate([
|
|
33
|
+
CSSComponent('logo'),
|
|
34
|
+
__metadata("design:paramtypes", [ElementRef])
|
|
35
|
+
], LogoDirective);
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LogoDirective, decorators: [{
|
|
37
|
+
type: Directive,
|
|
38
|
+
args: [{
|
|
39
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
40
|
+
selector: 'odx-logo',
|
|
41
|
+
standalone: true,
|
|
42
|
+
host: {
|
|
43
|
+
'[class.notranslate]': 'true',
|
|
44
|
+
'[attr.aria-label]': '"Dräger logo"',
|
|
45
|
+
'[attr.aria-roledescription]': '"logo"',
|
|
46
|
+
translate: 'no',
|
|
47
|
+
role: 'img',
|
|
48
|
+
},
|
|
49
|
+
}]
|
|
50
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { size: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}], variant: [{
|
|
53
|
+
type: Input
|
|
54
|
+
}] } });
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Generated bundle index. Do not edit.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
export { LogoDirective, LogoSize, LogoVariant };
|
|
61
|
+
//# sourceMappingURL=odx-angular-components-logo.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odx-angular-components-logo.mjs","sources":["../../../../libs/angular/components/logo/src/models/logo-size.ts","../../../../libs/angular/components/logo/src/models/logo-variant.ts","../../../../libs/angular/components/logo/src/logo.directive.ts","../../../../libs/angular/components/logo/src/odx-angular-components-logo.ts"],"sourcesContent":["export type LogoSize = typeof LogoSize[keyof typeof LogoSize];\n\nexport const LogoSize = {\n SMALL: 'small',\n MEDIUM: 'medium',\n LARGE: 'large',\n} as const;\n","export type LogoVariant = typeof LogoVariant[keyof typeof LogoVariant];\n\nexport const LogoVariant = {\n DEFAULT: 'default',\n INVERSE: 'inverse',\n} as const;\n","import { Directive, ElementRef, Input } from '@angular/core';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { LogoSize, LogoVariant } from './models';\n\n@CSSComponent('logo')\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: 'odx-logo',\n standalone: true,\n host: {\n '[class.notranslate]': 'true',\n '[attr.aria-label]': '\"Dräger logo\"',\n '[attr.aria-roledescription]': '\"logo\"',\n translate: 'no',\n role: 'img',\n },\n})\nexport class LogoDirective {\n @CSSModifier({ default: LogoSize.SMALL })\n @Input()\n public size!: LogoSize;\n\n @CSSModifier({ default: LogoVariant.DEFAULT })\n @Input()\n public variant!: LogoVariant;\n\n constructor(public readonly element: ElementRef<HTMLElement>) {}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAEa,MAAA,QAAQ,GAA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AAA,EAAA,aAAa,CAUzB,CAAA;2FAVY,aAAa,EAAA,UAAA,EAAA,CAAA;kBAZzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;AAET,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,MAAM;AAC7B,wBAAA,mBAAmB,EAAE,eAAe;AACpC,wBAAA,6BAA6B,EAAE,QAAQ;AACvC,wBAAA,SAAS,EAAE,IAAI;AACf,wBAAA,IAAI,EAAE,KAAK;AACZ,qBAAA;AACF,iBAAA,CAAA;iGAIQ,IAAI,EAAA,CAAA;sBADV,KAAK;gBAKC,OAAO,EAAA,CAAA;sBADb,KAAK;;;ACvBR;;AAEG;;;;"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Injectable, ElementRef, Directive, HostListener, inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, NgModule } from '@angular/core';
|
|
4
|
+
import { isBoolean, CSSComponent } from '@odx/angular/internal';
|
|
5
|
+
import { BehaviorSubject, distinctUntilChanged, shareReplay } from 'rxjs';
|
|
6
|
+
import * as i3 from '@odx/angular';
|
|
7
|
+
import { DISABLED_CONTROLLER, DISABLED_CONTROLLER_PROVIDER, CoreModule } from '@odx/angular';
|
|
8
|
+
import { trigger, transition, useAnimation } from '@angular/animations';
|
|
9
|
+
import * as i2 from '@angular/cdk/a11y';
|
|
10
|
+
import { A11yModule } from '@angular/cdk/a11y';
|
|
11
|
+
import { slideInLeft, slideOutLeft, fadeIn, fadeOut } from '@odx/angular/animations';
|
|
12
|
+
import * as i5 from '@odx/angular/components/area-header';
|
|
13
|
+
import { AreaHeaderModule } from '@odx/angular/components/area-header';
|
|
14
|
+
import * as i6 from '@odx/angular/components/button';
|
|
15
|
+
import { ButtonComponent } from '@odx/angular/components/button';
|
|
16
|
+
import * as i7 from '@odx/angular/components/icon';
|
|
17
|
+
import { IconComponent } from '@odx/angular/components/icon';
|
|
18
|
+
import { LogoDirective } from '@odx/angular/components/logo';
|
|
19
|
+
import * as i4 from '@angular/common';
|
|
20
|
+
import { LinkDirective } from '@odx/angular/components/link';
|
|
21
|
+
|
|
22
|
+
class MainMenuService {
|
|
23
|
+
constructor() {
|
|
24
|
+
this.isOpen$$ = new BehaviorSubject(false);
|
|
25
|
+
this.isOpen$ = this.isOpen$$.pipe(distinctUntilChanged(), shareReplay({ refCount: true }));
|
|
26
|
+
}
|
|
27
|
+
isOpen() {
|
|
28
|
+
return this.isOpen$$.getValue();
|
|
29
|
+
}
|
|
30
|
+
open() {
|
|
31
|
+
this.toggle(true);
|
|
32
|
+
}
|
|
33
|
+
close() {
|
|
34
|
+
this.toggle(false);
|
|
35
|
+
}
|
|
36
|
+
toggle(forceState) {
|
|
37
|
+
if (isBoolean(forceState)) {
|
|
38
|
+
this.isOpen$$.next(forceState);
|
|
39
|
+
}
|
|
40
|
+
else if (this.isOpen()) {
|
|
41
|
+
this.isOpen$$.next(false);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
this.isOpen$$.next(true);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
MainMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: MainMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
49
|
+
MainMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: MainMenuService, providedIn: 'root' });
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: MainMenuService, decorators: [{
|
|
51
|
+
type: Injectable,
|
|
52
|
+
args: [{ providedIn: 'root' }]
|
|
53
|
+
}] });
|
|
54
|
+
|
|
55
|
+
let MainMenuButtonDirective = class MainMenuButtonDirective {
|
|
56
|
+
constructor(element, mainMenuService) {
|
|
57
|
+
this.element = element;
|
|
58
|
+
this.mainMenuService = mainMenuService;
|
|
59
|
+
}
|
|
60
|
+
onClick() {
|
|
61
|
+
this.mainMenuService.toggle();
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
MainMenuButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: MainMenuButtonDirective, deps: [{ token: i0.ElementRef }, { token: MainMenuService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
65
|
+
MainMenuButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: MainMenuButtonDirective, isStandalone: true, selector: "button[odxMainMenuButton]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
66
|
+
MainMenuButtonDirective = __decorate([
|
|
67
|
+
CSSComponent('main-menu-button'),
|
|
68
|
+
__metadata("design:paramtypes", [ElementRef, MainMenuService])
|
|
69
|
+
], MainMenuButtonDirective);
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: MainMenuButtonDirective, decorators: [{
|
|
71
|
+
type: Directive,
|
|
72
|
+
args: [{
|
|
73
|
+
selector: 'button[odxMainMenuButton]',
|
|
74
|
+
standalone: true,
|
|
75
|
+
}]
|
|
76
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: MainMenuService }]; }, propDecorators: { onClick: [{
|
|
77
|
+
type: HostListener,
|
|
78
|
+
args: ['click']
|
|
79
|
+
}] } });
|
|
80
|
+
|
|
81
|
+
let MainMenuItemDirective = class MainMenuItemDirective {
|
|
82
|
+
constructor(element) {
|
|
83
|
+
this.element = element;
|
|
84
|
+
this.disabledController = inject(DISABLED_CONTROLLER, { optional: true });
|
|
85
|
+
}
|
|
86
|
+
get isDisabled() {
|
|
87
|
+
return !!this.disabledController?.disabled;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
MainMenuItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: MainMenuItemDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
91
|
+
MainMenuItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: MainMenuItemDirective, isStandalone: true, selector: "a[odxMainMenuItem]", host: { properties: { "class.is-disabled": "isDisabled", "attr.disabled": "isDisabled || null", "attr.role": "\"button\"", "tabindex": "isDisabled ? -1 : 0" } }, providers: [DISABLED_CONTROLLER_PROVIDER], ngImport: i0 });
|
|
92
|
+
MainMenuItemDirective = __decorate([
|
|
93
|
+
CSSComponent('main-menu-item'),
|
|
94
|
+
__metadata("design:paramtypes", [ElementRef])
|
|
95
|
+
], MainMenuItemDirective);
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: MainMenuItemDirective, decorators: [{
|
|
97
|
+
type: Directive,
|
|
98
|
+
args: [{
|
|
99
|
+
selector: 'a[odxMainMenuItem]',
|
|
100
|
+
standalone: true,
|
|
101
|
+
providers: [DISABLED_CONTROLLER_PROVIDER],
|
|
102
|
+
host: {
|
|
103
|
+
'[class.is-disabled]': 'isDisabled',
|
|
104
|
+
'[attr.disabled]': 'isDisabled || null',
|
|
105
|
+
'[attr.role]': '"button"',
|
|
106
|
+
'[tabindex]': 'isDisabled ? -1 : 0',
|
|
107
|
+
},
|
|
108
|
+
}]
|
|
109
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
110
|
+
|
|
111
|
+
let MainMenuComponent = class MainMenuComponent {
|
|
112
|
+
constructor(element, mainMenuSerice) {
|
|
113
|
+
this.element = element;
|
|
114
|
+
this.mainMenuSerice = mainMenuSerice;
|
|
115
|
+
this.subtitle = null;
|
|
116
|
+
this.copyright = null;
|
|
117
|
+
this.menuOpen = this.mainMenuSerice.isOpen$;
|
|
118
|
+
}
|
|
119
|
+
set isOpen(value) {
|
|
120
|
+
this.mainMenuSerice.toggle(value);
|
|
121
|
+
}
|
|
122
|
+
get isOpen() {
|
|
123
|
+
return this.mainMenuSerice.isOpen();
|
|
124
|
+
}
|
|
125
|
+
close() {
|
|
126
|
+
this.mainMenuSerice.close();
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
MainMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: MainMenuComponent, deps: [{ token: i0.ElementRef }, { token: MainMenuService }], target: i0.ɵɵFactoryTarget.Component });
|
|
130
|
+
MainMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: MainMenuComponent, isStandalone: true, selector: "odx-main-menu", inputs: { title: "title", subtitle: "subtitle", copyright: "copyright", isOpen: "isOpen" }, outputs: { menuOpen: "menuOpen" }, host: { listeners: { "window:keydown.escape": "close()" }, properties: { "class.is-open": "isOpen" } }, ngImport: i0, template: "<aside @menuAnimation class=\"odx-main-menu__inner\" cdkTrapFocus cdkTrapFocusAutoCapture *ngIf=\"menuOpen | async\">\n <div class=\"odx-main-menu__actions\">\n <button class=\"odx-main-menu__close\" odxButton disabled=\"false\" (click)=\"close()\">\n <odx-icon name=\"close\"></odx-icon>\n </button>\n </div>\n <odx-area-header class=\"odx-main-menu__header\">\n {{ title }}\n <odx-area-header-subtitle *ngIf=\"subtitle\">\n {{ subtitle }}\n </odx-area-header-subtitle>\n </odx-area-header>\n <nav class=\"odx-main-menu__content\">\n <ng-content select=\"a[odxMainMenuItem]\"></ng-content>\n </nav>\n <div class=\"odx-main-menu__info\">\n <ng-content select=\"[odxLink]\"></ng-content>\n </div>\n <div class=\"odx-main-menu__footer\">\n <odx-logo variant=\"inverse\"></odx-logo>\n <p class=\"odx-text odx-text--small\" *ngIf=\"copyright\">\n {{ copyright }}\n </p>\n </div>\n</aside>\n<div @overlayAnimation class=\"odx-main-menu__overlay\" (click)=\"close()\" *ngIf=\"menuOpen | async\"></div>\n", dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i3.DisabledController, selector: "[disabled]", inputs: ["disabled"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AreaHeaderModule }, { kind: "component", type: i5.AreaHeaderComponent, selector: "odx-area-header", inputs: ["size"] }, { kind: "directive", type: i5.AreaHeaderSubtitleDirective, selector: "odx-area-header-subtitle" }, { kind: "component", type: i6.ButtonComponent, selector: "button[odxButton], a[odxButton]", inputs: ["variant"] }, { kind: "component", type: i7.IconComponent, selector: "odx-icon", inputs: ["size", "name"] }, { kind: "directive", type: LogoDirective, selector: "odx-logo", inputs: ["size", "variant"] }], animations: [
|
|
131
|
+
trigger('menuAnimation', [transition(':enter', [useAnimation(slideInLeft)]), transition(':leave', [useAnimation(slideOutLeft)])]),
|
|
132
|
+
trigger('overlayAnimation', [transition(':enter', [useAnimation(fadeIn())]), transition(':leave', [useAnimation(fadeOut())])]),
|
|
133
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
134
|
+
MainMenuComponent = __decorate([
|
|
135
|
+
CSSComponent('main-menu'),
|
|
136
|
+
__metadata("design:paramtypes", [ElementRef, MainMenuService])
|
|
137
|
+
], MainMenuComponent);
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: MainMenuComponent, decorators: [{
|
|
139
|
+
type: Component,
|
|
140
|
+
args: [{ selector: 'odx-main-menu', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [A11yModule, CoreModule, AreaHeaderModule, ButtonComponent, IconComponent, LogoDirective], standalone: true, host: {
|
|
141
|
+
'[class.is-open]': 'isOpen',
|
|
142
|
+
}, animations: [
|
|
143
|
+
trigger('menuAnimation', [transition(':enter', [useAnimation(slideInLeft)]), transition(':leave', [useAnimation(slideOutLeft)])]),
|
|
144
|
+
trigger('overlayAnimation', [transition(':enter', [useAnimation(fadeIn())]), transition(':leave', [useAnimation(fadeOut())])]),
|
|
145
|
+
], template: "<aside @menuAnimation class=\"odx-main-menu__inner\" cdkTrapFocus cdkTrapFocusAutoCapture *ngIf=\"menuOpen | async\">\n <div class=\"odx-main-menu__actions\">\n <button class=\"odx-main-menu__close\" odxButton disabled=\"false\" (click)=\"close()\">\n <odx-icon name=\"close\"></odx-icon>\n </button>\n </div>\n <odx-area-header class=\"odx-main-menu__header\">\n {{ title }}\n <odx-area-header-subtitle *ngIf=\"subtitle\">\n {{ subtitle }}\n </odx-area-header-subtitle>\n </odx-area-header>\n <nav class=\"odx-main-menu__content\">\n <ng-content select=\"a[odxMainMenuItem]\"></ng-content>\n </nav>\n <div class=\"odx-main-menu__info\">\n <ng-content select=\"[odxLink]\"></ng-content>\n </div>\n <div class=\"odx-main-menu__footer\">\n <odx-logo variant=\"inverse\"></odx-logo>\n <p class=\"odx-text odx-text--small\" *ngIf=\"copyright\">\n {{ copyright }}\n </p>\n </div>\n</aside>\n<div @overlayAnimation class=\"odx-main-menu__overlay\" (click)=\"close()\" *ngIf=\"menuOpen | async\"></div>\n" }]
|
|
146
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: MainMenuService }]; }, propDecorators: { title: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], subtitle: [{
|
|
149
|
+
type: Input
|
|
150
|
+
}], copyright: [{
|
|
151
|
+
type: Input
|
|
152
|
+
}], isOpen: [{
|
|
153
|
+
type: Input
|
|
154
|
+
}], menuOpen: [{
|
|
155
|
+
type: Output
|
|
156
|
+
}], close: [{
|
|
157
|
+
type: HostListener,
|
|
158
|
+
args: ['window:keydown.escape']
|
|
159
|
+
}] } });
|
|
160
|
+
|
|
161
|
+
const modules = [CoreModule, LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective];
|
|
162
|
+
class MainMenuModule {
|
|
163
|
+
}
|
|
164
|
+
MainMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: MainMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
165
|
+
MainMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: MainMenuModule, imports: [CoreModule, LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective], exports: [CoreModule, LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective] });
|
|
166
|
+
MainMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: MainMenuModule, imports: [CoreModule, MainMenuComponent, CoreModule] });
|
|
167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: MainMenuModule, decorators: [{
|
|
168
|
+
type: NgModule,
|
|
169
|
+
args: [{
|
|
170
|
+
imports: modules,
|
|
171
|
+
exports: modules,
|
|
172
|
+
}]
|
|
173
|
+
}] });
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Generated bundle index. Do not edit.
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
export { MainMenuButtonDirective, MainMenuComponent, MainMenuItemDirective, MainMenuModule };
|
|
180
|
+
//# sourceMappingURL=odx-angular-components-main-menu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odx-angular-components-main-menu.mjs","sources":["../../../../libs/angular/components/main-menu/src/lib/main-menu.service.ts","../../../../libs/angular/components/main-menu/src/lib/directives/main-menu-button.directive.ts","../../../../libs/angular/components/main-menu/src/lib/directives/main-menu-item.directive.ts","../../../../libs/angular/components/main-menu/src/lib/main-menu.component.ts","../../../../libs/angular/components/main-menu/src/lib/main-menu.component.html","../../../../libs/angular/components/main-menu/src/lib/main-menu.module.ts","../../../../libs/angular/components/main-menu/src/odx-angular-components-main-menu.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { isBoolean } from '@odx/angular/internal';\nimport { BehaviorSubject, distinctUntilChanged, shareReplay } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class MainMenuService {\n private readonly isOpen$$ = new BehaviorSubject(false);\n\n public readonly isOpen$ = this.isOpen$$.pipe(distinctUntilChanged(), shareReplay({ refCount: true }));\n\n public isOpen(): boolean {\n return this.isOpen$$.getValue();\n }\n\n public open(): void {\n this.toggle(true);\n }\n\n public close(): void {\n this.toggle(false);\n }\n\n public toggle(forceState?: boolean): void {\n if (isBoolean(forceState)) {\n this.isOpen$$.next(forceState);\n } else if (this.isOpen()) {\n this.isOpen$$.next(false);\n } else {\n this.isOpen$$.next(true);\n }\n }\n}\n","import { Directive, ElementRef, HostListener } from '@angular/core';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { MainMenuService } from '../main-menu.service';\n\n@CSSComponent('main-menu-button')\n@Directive({\n selector: 'button[odxMainMenuButton]',\n standalone: true,\n})\nexport class MainMenuButtonDirective {\n constructor(public readonly element: ElementRef<HTMLButtonElement>, private readonly mainMenuService: MainMenuService) {}\n\n @HostListener('click')\n public onClick() {\n this.mainMenuService.toggle();\n }\n}\n","import { Directive, ElementRef, inject } from '@angular/core';\nimport { DISABLED_CONTROLLER, DISABLED_CONTROLLER_PROVIDER } from '@odx/angular';\nimport { CSSComponent } from '@odx/angular/internal';\n\n@CSSComponent('main-menu-item')\n@Directive({\n selector: 'a[odxMainMenuItem]',\n standalone: true,\n providers: [DISABLED_CONTROLLER_PROVIDER],\n host: {\n '[class.is-disabled]': 'isDisabled',\n '[attr.disabled]': 'isDisabled || null',\n '[attr.role]': '\"button\"',\n '[tabindex]': 'isDisabled ? -1 : 0',\n },\n})\nexport class MainMenuItemDirective {\n protected readonly disabledController = inject(DISABLED_CONTROLLER, { optional: true });\n\n public get isDisabled(): boolean {\n return !!this.disabledController?.disabled;\n }\n\n constructor(public readonly element: ElementRef<HTMLLinkElement>) {}\n}\n","import { transition, trigger, useAnimation } from '@angular/animations';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { ChangeDetectionStrategy, Component, ElementRef, HostListener, Input, Output, ViewEncapsulation } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { fadeIn, fadeOut, slideInLeft, slideOutLeft } from '@odx/angular/animations';\nimport { AreaHeaderModule } from '@odx/angular/components/area-header';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { LogoDirective } from '@odx/angular/components/logo';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { MainMenuService } from './main-menu.service';\n\n@CSSComponent('main-menu')\n@Component({\n selector: 'odx-main-menu',\n templateUrl: './main-menu.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [A11yModule, CoreModule, AreaHeaderModule, ButtonComponent, IconComponent, LogoDirective],\n standalone: true,\n host: {\n '[class.is-open]': 'isOpen',\n },\n animations: [\n trigger('menuAnimation', [transition(':enter', [useAnimation(slideInLeft)]), transition(':leave', [useAnimation(slideOutLeft)])]),\n trigger('overlayAnimation', [transition(':enter', [useAnimation(fadeIn())]), transition(':leave', [useAnimation(fadeOut())])]),\n ],\n})\nexport class MainMenuComponent {\n @Input()\n public title!: string;\n\n @Input()\n public subtitle: string | null = null;\n\n @Input()\n public copyright: string | null = null;\n\n @Input()\n public set isOpen(value: boolean) {\n this.mainMenuSerice.toggle(value);\n }\n\n public get isOpen(): boolean {\n return this.mainMenuSerice.isOpen();\n }\n\n @Output()\n public menuOpen = this.mainMenuSerice.isOpen$;\n\n constructor(public readonly element: ElementRef<HTMLElement>, public readonly mainMenuSerice: MainMenuService) {}\n\n @HostListener('window:keydown.escape')\n public close(): void {\n this.mainMenuSerice.close();\n }\n}\n","<aside @menuAnimation class=\"odx-main-menu__inner\" cdkTrapFocus cdkTrapFocusAutoCapture *ngIf=\"menuOpen | async\">\n <div class=\"odx-main-menu__actions\">\n <button class=\"odx-main-menu__close\" odxButton disabled=\"false\" (click)=\"close()\">\n <odx-icon name=\"close\"></odx-icon>\n </button>\n </div>\n <odx-area-header class=\"odx-main-menu__header\">\n {{ title }}\n <odx-area-header-subtitle *ngIf=\"subtitle\">\n {{ subtitle }}\n </odx-area-header-subtitle>\n </odx-area-header>\n <nav class=\"odx-main-menu__content\">\n <ng-content select=\"a[odxMainMenuItem]\"></ng-content>\n </nav>\n <div class=\"odx-main-menu__info\">\n <ng-content select=\"[odxLink]\"></ng-content>\n </div>\n <div class=\"odx-main-menu__footer\">\n <odx-logo variant=\"inverse\"></odx-logo>\n <p class=\"odx-text odx-text--small\" *ngIf=\"copyright\">\n {{ copyright }}\n </p>\n </div>\n</aside>\n<div @overlayAnimation class=\"odx-main-menu__overlay\" (click)=\"close()\" *ngIf=\"menuOpen | async\"></div>\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { LinkDirective } from '@odx/angular/components/link';\nimport { MainMenuButtonDirective, MainMenuItemDirective } from './directives';\nimport { MainMenuComponent } from './main-menu.component';\n\nconst modules = [CoreModule, LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective];\n\n@NgModule({\n imports: modules,\n exports: modules,\n})\nexport class MainMenuModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.MainMenuService"],"mappings":";;;;;;;;;;;;;;;;;;;;;MAKa,eAAe,CAAA;AAD5B,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CA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AMhG,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,EANV,OAAA,EAAA,CAAA,UAAU,EAAiB,iBAAiB,EAA5C,UAAU,CAAA,EAAA,CAAA,CAAA;2FAMd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,OAAO;AACjB,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import * as i2 from '@angular/cdk/observers';
|
|
3
|
+
import { ObserversModule } from '@angular/cdk/observers';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { ElementRef, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, inject, ChangeDetectorRef, ViewChild, NgModule } from '@angular/core';
|
|
6
|
+
import * as i1 from '@odx/angular';
|
|
7
|
+
import { CustomFormControl, DISABLED_CONTROLLER_PROVIDER, DisabledController, CoreModule } from '@odx/angular';
|
|
8
|
+
import { CSSModifier, CSSComponent, detectControllerChanges } from '@odx/angular/internal';
|
|
9
|
+
|
|
10
|
+
let RadioGroupComponent = class RadioGroupComponent extends CustomFormControl {
|
|
11
|
+
constructor(element) {
|
|
12
|
+
super(null);
|
|
13
|
+
this.element = element;
|
|
14
|
+
this.horizontal = false;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
RadioGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RadioGroupComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
RadioGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: RadioGroupComponent, isStandalone: true, selector: "odx-radio-group", inputs: { horizontal: "horizontal" }, providers: [DISABLED_CONTROLLER_PROVIDER], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"odx-radio-button, [odxRadioControl]\"></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
19
|
+
__decorate([
|
|
20
|
+
CSSModifier(),
|
|
21
|
+
__metadata("design:type", Object)
|
|
22
|
+
], RadioGroupComponent.prototype, "horizontal", void 0);
|
|
23
|
+
RadioGroupComponent = __decorate([
|
|
24
|
+
CSSComponent('radio-group'),
|
|
25
|
+
__metadata("design:paramtypes", [ElementRef])
|
|
26
|
+
], RadioGroupComponent);
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RadioGroupComponent, decorators: [{
|
|
28
|
+
type: Component,
|
|
29
|
+
args: [{ standalone: true, selector: 'odx-radio-group', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [DISABLED_CONTROLLER_PROVIDER], template: "<ng-content select=\"odx-radio-button, [odxRadioControl]\"></ng-content>\n" }]
|
|
30
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { horizontal: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}] } });
|
|
33
|
+
|
|
34
|
+
let RadioButtonComponent = class RadioButtonComponent {
|
|
35
|
+
constructor(element) {
|
|
36
|
+
this.element = element;
|
|
37
|
+
this.disabledController = inject(DisabledController, { optional: true });
|
|
38
|
+
this.radioGroup = inject(RadioGroupComponent);
|
|
39
|
+
this['no-label'] = false;
|
|
40
|
+
this.value = null;
|
|
41
|
+
detectControllerChanges(inject(ChangeDetectorRef), this.radioGroup, this.disabledController).subscribe();
|
|
42
|
+
}
|
|
43
|
+
get isActive() {
|
|
44
|
+
return this.radioGroup.controlValue === this.value;
|
|
45
|
+
}
|
|
46
|
+
get isDisabled() {
|
|
47
|
+
return this.disabledController?.disabled ?? this.radioGroup.isDisabled;
|
|
48
|
+
}
|
|
49
|
+
get ariaChecked() {
|
|
50
|
+
return this.isActive ? 'true' : 'false';
|
|
51
|
+
}
|
|
52
|
+
ngAfterViewInit() {
|
|
53
|
+
this.onContentChange();
|
|
54
|
+
}
|
|
55
|
+
onContentChange() {
|
|
56
|
+
this['no-label'] = !this.contentElement.nativeElement.textContent?.trim();
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
RadioButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RadioButtonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
RadioButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: RadioButtonComponent, isStandalone: true, selector: "odx-radio-button", inputs: { value: "value" }, host: { properties: { "class.is-active": "isActive", "class.is-disabled": "isDisabled", "class.is-readonly": "radioGroup.readonly", "class.has-error": "radioGroup.hasError" } }, viewQueries: [{ propertyName: "contentElement", first: true, predicate: ["content"], descendants: true }], ngImport: i0, template: "<label class=\"odx-radio-button__label\" [class.has-focus]=\"focusMonitor.hasFocus\">\n <input\n odxMonitorFocus\n class=\"odx-radio-button__input\"\n type=\"radio\"\n [attr.aria-checked]=\"ariaChecked\"\n [checked]=\"isActive\"\n [disabled]=\"isDisabled || radioGroup.readonly\"\n [name]=\"radioGroup.name\"\n [readonly]=\"radioGroup.readonly\"\n [required]=\"radioGroup.required\"\n [value]=\"value\"\n (change)=\"radioGroup.updateValue(value)\"\n #focusMonitor=\"odxMonitorFocus\"\n />\n <div class=\"odx-radio-button__indicator\"></div>\n <div class=\"odx-radio-button__content\" [cdkObserveContentDisabled]=\"isDisabled\" (cdkObserveContent)=\"onContentChange()\" #content>\n <ng-content></ng-content>\n </div>\n</label>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1.DisabledController, selector: "[disabled]", inputs: ["disabled"] }, { kind: "directive", type: i1.MonitorFocusDirective, selector: "[odxMonitorFocus]", exportAs: ["odxMonitorFocus"] }, { kind: "ngmodule", type: ObserversModule }, { kind: "directive", type: i2.CdkObserveContent, selector: "[cdkObserveContent]", inputs: ["cdkObserveContentDisabled", "debounce"], outputs: ["cdkObserveContent"], exportAs: ["cdkObserveContent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
61
|
+
__decorate([
|
|
62
|
+
CSSModifier(),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], RadioButtonComponent.prototype, "no-label", void 0);
|
|
65
|
+
RadioButtonComponent = __decorate([
|
|
66
|
+
CSSComponent('radio-button'),
|
|
67
|
+
__metadata("design:paramtypes", [ElementRef])
|
|
68
|
+
], RadioButtonComponent);
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RadioButtonComponent, decorators: [{
|
|
70
|
+
type: Component,
|
|
71
|
+
args: [{ standalone: true, selector: 'odx-radio-button', imports: [CoreModule, ObserversModule], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
72
|
+
'[class.is-active]': 'isActive',
|
|
73
|
+
'[class.is-disabled]': 'isDisabled',
|
|
74
|
+
'[class.is-readonly]': 'radioGroup.readonly',
|
|
75
|
+
'[class.has-error]': 'radioGroup.hasError',
|
|
76
|
+
}, template: "<label class=\"odx-radio-button__label\" [class.has-focus]=\"focusMonitor.hasFocus\">\n <input\n odxMonitorFocus\n class=\"odx-radio-button__input\"\n type=\"radio\"\n [attr.aria-checked]=\"ariaChecked\"\n [checked]=\"isActive\"\n [disabled]=\"isDisabled || radioGroup.readonly\"\n [name]=\"radioGroup.name\"\n [readonly]=\"radioGroup.readonly\"\n [required]=\"radioGroup.required\"\n [value]=\"value\"\n (change)=\"radioGroup.updateValue(value)\"\n #focusMonitor=\"odxMonitorFocus\"\n />\n <div class=\"odx-radio-button__indicator\"></div>\n <div class=\"odx-radio-button__content\" [cdkObserveContentDisabled]=\"isDisabled\" (cdkObserveContent)=\"onContentChange()\" #content>\n <ng-content></ng-content>\n </div>\n</label>\n" }]
|
|
77
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { 'no-label': [], value: [{
|
|
78
|
+
type: Input
|
|
79
|
+
}], contentElement: [{
|
|
80
|
+
type: ViewChild,
|
|
81
|
+
args: ['content']
|
|
82
|
+
}] } });
|
|
83
|
+
|
|
84
|
+
const modules = [CoreModule, RadioGroupComponent, RadioButtonComponent];
|
|
85
|
+
class RadioGroupModule {
|
|
86
|
+
}
|
|
87
|
+
RadioGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RadioGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
88
|
+
RadioGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: RadioGroupModule, imports: [CoreModule, RadioGroupComponent, RadioButtonComponent], exports: [CoreModule, RadioGroupComponent, RadioButtonComponent] });
|
|
89
|
+
RadioGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RadioGroupModule, imports: [modules, CoreModule] });
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RadioGroupModule, decorators: [{
|
|
91
|
+
type: NgModule,
|
|
92
|
+
args: [{
|
|
93
|
+
imports: modules,
|
|
94
|
+
exports: modules,
|
|
95
|
+
}]
|
|
96
|
+
}] });
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Generated bundle index. Do not edit.
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
export { RadioButtonComponent, RadioGroupComponent, RadioGroupModule };
|
|
103
|
+
//# sourceMappingURL=odx-angular-components-radio-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odx-angular-components-radio-group.mjs","sources":["../../../../libs/angular/components/radio-group/src/lib/radio-group.component.ts","../../../../libs/angular/components/radio-group/src/lib/radio-group.component.html","../../../../libs/angular/components/radio-group/src/lib/components/radio-button/radio-button.component.ts","../../../../libs/angular/components/radio-group/src/lib/components/radio-button/radio-button.component.html","../../../../libs/angular/components/radio-group/src/lib/radio-group.module.ts","../../../../libs/angular/components/radio-group/src/odx-angular-components-radio-group.ts"],"sourcesContent":["/* eslint-disable @angular-eslint/no-output-native */\nimport { ChangeDetectionStrategy, Component, ElementRef, Input, ViewEncapsulation } from '@angular/core';\nimport { CustomFormControl, DISABLED_CONTROLLER_PROVIDER } from '@odx/angular';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\n\n@CSSComponent('radio-group')\n@Component({\n standalone: true,\n selector: 'odx-radio-group',\n templateUrl: 'radio-group.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [DISABLED_CONTROLLER_PROVIDER],\n})\nexport class RadioGroupComponent<T = unknown> extends CustomFormControl<T | null> {\n @CSSModifier()\n @Input()\n public horizontal = false;\n\n constructor(public readonly element: ElementRef<HTMLElement>) {\n super(null);\n }\n}\n","<ng-content select=\"odx-radio-button, [odxRadioControl]\"></ng-content>\n","import { ObserversModule } from '@angular/cdk/observers';\nimport { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, inject, Input, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { CoreModule, DisabledController } from '@odx/angular';\nimport { CSSComponent, CSSModifier, detectControllerChanges } from '@odx/angular/internal';\nimport { RadioGroupComponent } from '../../radio-group.component';\n\n@CSSComponent('radio-button')\n@Component({\n standalone: true,\n selector: 'odx-radio-button',\n templateUrl: './radio-button.component.html',\n imports: [CoreModule, ObserversModule],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.is-active]': 'isActive',\n '[class.is-disabled]': 'isDisabled',\n '[class.is-readonly]': 'radioGroup.readonly',\n '[class.has-error]': 'radioGroup.hasError',\n },\n})\nexport class RadioButtonComponent<T = unknown> implements AfterViewInit {\n private readonly disabledController = inject(DisabledController, { optional: true });\n protected readonly radioGroup = inject(RadioGroupComponent);\n\n @CSSModifier()\n protected 'no-label' = false;\n\n @Input()\n public value: T | null = null;\n\n @ViewChild('content')\n public contentElement!: ElementRef<HTMLDivElement>;\n\n public get isActive(): boolean {\n return this.radioGroup.controlValue === this.value;\n }\n\n public get isDisabled(): boolean {\n return this.disabledController?.disabled ?? this.radioGroup.isDisabled;\n }\n\n public get ariaChecked(): string {\n return this.isActive ? 'true' : 'false';\n }\n\n constructor(public readonly element: ElementRef<HTMLElement>) {\n detectControllerChanges(inject(ChangeDetectorRef), this.radioGroup, this.disabledController).subscribe();\n }\n\n public ngAfterViewInit(): void {\n this.onContentChange();\n }\n\n protected onContentChange() {\n this['no-label'] = !this.contentElement.nativeElement.textContent?.trim();\n }\n}\n","<label class=\"odx-radio-button__label\" [class.has-focus]=\"focusMonitor.hasFocus\">\n <input\n odxMonitorFocus\n class=\"odx-radio-button__input\"\n type=\"radio\"\n [attr.aria-checked]=\"ariaChecked\"\n [checked]=\"isActive\"\n [disabled]=\"isDisabled || radioGroup.readonly\"\n [name]=\"radioGroup.name\"\n [readonly]=\"radioGroup.readonly\"\n [required]=\"radioGroup.required\"\n [value]=\"value\"\n (change)=\"radioGroup.updateValue(value)\"\n #focusMonitor=\"odxMonitorFocus\"\n />\n <div class=\"odx-radio-button__indicator\"></div>\n <div class=\"odx-radio-button__content\" [cdkObserveContentDisabled]=\"isDisabled\" (cdkObserveContent)=\"onContentChange()\" #content>\n <ng-content></ng-content>\n </div>\n</label>\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { RadioButtonComponent } from './components';\nimport { RadioGroupComponent } from './radio-group.component';\n\nconst modules = [CoreModule, RadioGroupComponent, RadioButtonComponent];\n\n@NgModule({\n imports: modules,\n exports: modules,\n})\nexport class RadioGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAca,mBAAmB,GAAA,MAAnB,mBAAiC,SAAQ,iBAA2B,CAAA;AAK/E,IAAA,WAAA,CAA4B,OAAgC,EAAA;QAC1D,KAAK,CAAC,IAAI,CAAC,CAAC;QADc,IAAO,CAAA,OAAA,GAAP,OAAO,CAAyB;QAFrD,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;KAIzB;EACF;gHARY,mBAAmB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,EAFnB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,SAAA,EAAA,CAAC,4BAA4B,CAAC,iDCZ3C,4EACA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;ADcG,IAAA,WAAW,EAAE;;AAEY,CAAA,EAAA,mBAAA,CAAA,SAAA,EAAA,YAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAHf,mBAAmB,GAAA,UAAA,CAAA;IAT/B,YAAY,CAAC,aAAa,CAAC;qCAcW,UAAU,CAAA,CAAA;AALpC,CAAA,EAAA,mBAAmB,CA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