@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,105 @@
|
|
|
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
|
+
var _a, _b;
|
|
48
|
+
return (_b = (_a = this.disabledController) === null || _a === void 0 ? void 0 : _a.disabled) !== null && _b !== void 0 ? _b : this.radioGroup.isDisabled;
|
|
49
|
+
}
|
|
50
|
+
get ariaChecked() {
|
|
51
|
+
return this.isActive ? 'true' : 'false';
|
|
52
|
+
}
|
|
53
|
+
ngAfterViewInit() {
|
|
54
|
+
this.onContentChange();
|
|
55
|
+
}
|
|
56
|
+
onContentChange() {
|
|
57
|
+
var _a;
|
|
58
|
+
this['no-label'] = !((_a = this.contentElement.nativeElement.textContent) === null || _a === void 0 ? void 0 : _a.trim());
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
RadioButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RadioButtonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
+
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 });
|
|
63
|
+
__decorate([
|
|
64
|
+
CSSModifier(),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], RadioButtonComponent.prototype, "no-label", void 0);
|
|
67
|
+
RadioButtonComponent = __decorate([
|
|
68
|
+
CSSComponent('radio-button'),
|
|
69
|
+
__metadata("design:paramtypes", [ElementRef])
|
|
70
|
+
], RadioButtonComponent);
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RadioButtonComponent, decorators: [{
|
|
72
|
+
type: Component,
|
|
73
|
+
args: [{ standalone: true, selector: 'odx-radio-button', imports: [CoreModule, ObserversModule], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
74
|
+
'[class.is-active]': 'isActive',
|
|
75
|
+
'[class.is-disabled]': 'isDisabled',
|
|
76
|
+
'[class.is-readonly]': 'radioGroup.readonly',
|
|
77
|
+
'[class.has-error]': 'radioGroup.hasError',
|
|
78
|
+
}, 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" }]
|
|
79
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { 'no-label': [], value: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], contentElement: [{
|
|
82
|
+
type: ViewChild,
|
|
83
|
+
args: ['content']
|
|
84
|
+
}] } });
|
|
85
|
+
|
|
86
|
+
const modules = [CoreModule, RadioGroupComponent, RadioButtonComponent];
|
|
87
|
+
class RadioGroupModule {
|
|
88
|
+
}
|
|
89
|
+
RadioGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RadioGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
90
|
+
RadioGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: RadioGroupModule, imports: [CoreModule, RadioGroupComponent, RadioButtonComponent], exports: [CoreModule, RadioGroupComponent, RadioButtonComponent] });
|
|
91
|
+
RadioGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RadioGroupModule, imports: [modules, CoreModule] });
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RadioGroupModule, decorators: [{
|
|
93
|
+
type: NgModule,
|
|
94
|
+
args: [{
|
|
95
|
+
imports: modules,
|
|
96
|
+
exports: modules,
|
|
97
|
+
}]
|
|
98
|
+
}] });
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Generated bundle index. Do not edit.
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
export { RadioButtonComponent, RadioGroupComponent, RadioGroupModule };
|
|
105
|
+
//# 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;AADc,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAyB;AAFrD,QAAA,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;;CAEY,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;CALpC,EAAA,mBAAmB,CAQ/B,CAAA;2FAR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AE1BtB,MAAM,OAAO,GAAG,CAAC,UAAU,EAAE,mBAAmB,EAAE,oBAAoB,CAAC,CAAC;MAM3D,gBAAgB,CAAA;;6GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;8GAAhB,gBAAgB,EAAA,OAAA,EAAA,CANZ,UAAU,EAAE,mBAAmB,EAAE,oBAAoB,CAAA,EAAA,OAAA,EAAA,CAArD,UAAU,EAAE,mBAAmB,EAAE,oBAAoB,CAAA,EAAA,CAAA,CAAA;8GAMzD,gBAAgB,EAAA,OAAA,EAAA,CAHlB,OAAO,EAHD,UAAU,CAAA,EAAA,CAAA,CAAA;2FAMd,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,OAAO;iBACjB,CAAA;;;ACVD;;AAEG;;;;"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef, Directive } from '@angular/core';
|
|
3
|
+
import { combineLatest, BehaviorSubject, shareReplay, EMPTY, takeUntil } from 'rxjs';
|
|
4
|
+
import { tap } from 'rxjs/operators';
|
|
5
|
+
|
|
6
|
+
function px(value) {
|
|
7
|
+
return `${Math.round(value)}px`;
|
|
8
|
+
}
|
|
9
|
+
function applyStyles(element, styles) {
|
|
10
|
+
Object.assign(element.style, styles);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* istanbul ignore next */
|
|
14
|
+
function isSameDomain(styleSheet) {
|
|
15
|
+
if (!styleSheet.href) {
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
return styleSheet.href.indexOf(window.location.origin) === 0;
|
|
19
|
+
}
|
|
20
|
+
/** @internal */
|
|
21
|
+
/* istanbul ignore next */
|
|
22
|
+
function getCSSVariables(filter) {
|
|
23
|
+
const stylesheets = Array.from(document.styleSheets).filter(isSameDomain);
|
|
24
|
+
return stylesheets.reduce((variables, { cssRules }) => {
|
|
25
|
+
for (const { style, type } of Array.from(cssRules)) {
|
|
26
|
+
if (type === 1) {
|
|
27
|
+
for (const prop of Array.from(style !== null && style !== void 0 ? style : [])) {
|
|
28
|
+
const name = prop.trim();
|
|
29
|
+
if (name.startsWith('--') && filter.test(name)) {
|
|
30
|
+
variables.push({
|
|
31
|
+
name: name,
|
|
32
|
+
value: style.getPropertyValue(prop).trim(),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return variables;
|
|
39
|
+
}, []);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
function getEnumValues(e) {
|
|
44
|
+
const keys = Object.keys(e);
|
|
45
|
+
return keys.filter((key) => e[key] !== undefined).map((key) => e[key]);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function isViewContainer(value) {
|
|
49
|
+
return isFunction(value === null || value === void 0 ? void 0 : value.createComponent);
|
|
50
|
+
}
|
|
51
|
+
function isTemplateRef(value) {
|
|
52
|
+
return value instanceof TemplateRef;
|
|
53
|
+
}
|
|
54
|
+
function isComponent(value) {
|
|
55
|
+
return isFunction(value);
|
|
56
|
+
}
|
|
57
|
+
function isString(value) {
|
|
58
|
+
return typeof value === 'string';
|
|
59
|
+
}
|
|
60
|
+
function isNonEmptyString(value) {
|
|
61
|
+
return isString(value) && value.length > 0;
|
|
62
|
+
}
|
|
63
|
+
function isBoolean(value) {
|
|
64
|
+
return typeof value === 'boolean';
|
|
65
|
+
}
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
67
|
+
function isFunction(value) {
|
|
68
|
+
return typeof value === 'function';
|
|
69
|
+
}
|
|
70
|
+
function isPresent(value) {
|
|
71
|
+
return value !== null && value !== undefined;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
function watch(changeDetectorRef) {
|
|
76
|
+
return tap(() => {
|
|
77
|
+
changeDetectorRef.markForCheck();
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
82
|
+
/** @internal */
|
|
83
|
+
/* istanbul ignore next */
|
|
84
|
+
function ɵwithMultipleDescriptors(target, key, symbol) {
|
|
85
|
+
var _c, _d;
|
|
86
|
+
var _a, _b;
|
|
87
|
+
const setters = ((_c = target[_a = `__propSetters__${target.constructor}__${key.toString()}`]) !== null && _c !== void 0 ? _c : (target[_a] = []));
|
|
88
|
+
const getters = ((_d = target[_b = `__propGetters__${target.constructor}__${key.toString()}`]) !== null && _d !== void 0 ? _d : (target[_b] = []));
|
|
89
|
+
const propertyValue = `__propValue_${String(key)}__`;
|
|
90
|
+
return {
|
|
91
|
+
addSetter(fn) {
|
|
92
|
+
setters.push({ fn, propertySymbol: symbol });
|
|
93
|
+
},
|
|
94
|
+
addGetter(fn) {
|
|
95
|
+
getters.push({ fn });
|
|
96
|
+
},
|
|
97
|
+
init() {
|
|
98
|
+
Object.defineProperty(target, key, {
|
|
99
|
+
set(value) {
|
|
100
|
+
this[propertyValue] = setters.reduce((result, { fn, propertySymbol }) => {
|
|
101
|
+
fn.call(this, result);
|
|
102
|
+
return this[propertySymbol];
|
|
103
|
+
}, value);
|
|
104
|
+
},
|
|
105
|
+
get() {
|
|
106
|
+
if (Array.isArray(getters)) {
|
|
107
|
+
return getters.reduce((_, { fn }) => fn.call(this), this[propertyValue]);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
return this[propertyValue];
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
configurable: true,
|
|
114
|
+
});
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function detectControllerChanges(changeDetector, ...controllers) {
|
|
120
|
+
return combineLatest(controllers.reduce((changes, controller) => (controller ? changes.concat(controller.change$) : changes), [])).pipe(watch(changeDetector));
|
|
121
|
+
}
|
|
122
|
+
/** @internal */
|
|
123
|
+
class Controller {
|
|
124
|
+
constructor() {
|
|
125
|
+
this.change$$ = new BehaviorSubject(undefined);
|
|
126
|
+
this.change$ = this.change$$.pipe(shareReplay({ refCount: true }));
|
|
127
|
+
}
|
|
128
|
+
ngOnChanges() {
|
|
129
|
+
this.triggerControllerChange();
|
|
130
|
+
}
|
|
131
|
+
ngOnDestroy() {
|
|
132
|
+
this.change$$.complete();
|
|
133
|
+
}
|
|
134
|
+
triggerControllerChange() {
|
|
135
|
+
this.change$$.next();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
Controller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: Controller, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
139
|
+
Controller.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: Controller, usesOnChanges: true, ngImport: i0 });
|
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: Controller, decorators: [{
|
|
141
|
+
type: Directive
|
|
142
|
+
}] });
|
|
143
|
+
|
|
144
|
+
const CSS_COMPONENT_NAME = Symbol('__CSSComponentName__');
|
|
145
|
+
const CSS_COMPONENT_MODIFIERS = Symbol('__CSSComponentModifiers__');
|
|
146
|
+
/** @internal */
|
|
147
|
+
/* istanbul ignore next */
|
|
148
|
+
function CSSComponent(name, prefix = 'odx') {
|
|
149
|
+
return (target) => {
|
|
150
|
+
const cssClass = `${prefix}-${name}`;
|
|
151
|
+
Object.defineProperty(target.prototype, CSS_COMPONENT_NAME, {
|
|
152
|
+
value: cssClass,
|
|
153
|
+
});
|
|
154
|
+
(function (ngOnInit) {
|
|
155
|
+
target.prototype.ngOnInit = function () {
|
|
156
|
+
var _a;
|
|
157
|
+
this.element.nativeElement.classList.add(cssClass);
|
|
158
|
+
ngOnInit === null || ngOnInit === void 0 ? void 0 : ngOnInit.call(this);
|
|
159
|
+
if (Array.isArray(this[CSS_COMPONENT_MODIFIERS])) {
|
|
160
|
+
for (const property of this[CSS_COMPONENT_MODIFIERS]) {
|
|
161
|
+
(_a = this[property]) !== null && _a !== void 0 ? _a : (this[property] = null);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
})(target.prototype.ngOnInit);
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
170
|
+
/** @internal */
|
|
171
|
+
/* istanbul ignore next */
|
|
172
|
+
function CSSModifier(options) {
|
|
173
|
+
return (target, propertyKey) => {
|
|
174
|
+
const propertySymbol = Symbol(`__CSSModifier{${propertyKey.toString()}}__`);
|
|
175
|
+
const descriptors = ɵwithMultipleDescriptors(target, propertyKey, propertySymbol);
|
|
176
|
+
function createModifierClass(value) {
|
|
177
|
+
var _a, _b;
|
|
178
|
+
value = (_a = value !== null && value !== void 0 ? value : options === null || options === void 0 ? void 0 : options.default) !== null && _a !== void 0 ? _a : null;
|
|
179
|
+
if (isBoolean(value) || isNonEmptyString(value)) {
|
|
180
|
+
let modifier = isBoolean(value) ? propertyKey.toString() : value;
|
|
181
|
+
if (options === null || options === void 0 ? void 0 : options.withPrefix) {
|
|
182
|
+
modifier = [propertyKey, modifier].join('-');
|
|
183
|
+
}
|
|
184
|
+
return [((_b = options === null || options === void 0 ? void 0 : options.withComponentPrefix) !== null && _b !== void 0 ? _b : true) ? this[CSS_COMPONENT_NAME] : null, modifier].filter(Boolean).join('--');
|
|
185
|
+
}
|
|
186
|
+
return null;
|
|
187
|
+
}
|
|
188
|
+
if (options === null || options === void 0 ? void 0 : options.default) {
|
|
189
|
+
target[CSS_COMPONENT_MODIFIERS] = (target[CSS_COMPONENT_MODIFIERS] || []).concat(propertyKey);
|
|
190
|
+
}
|
|
191
|
+
function setter(value) {
|
|
192
|
+
const values = (options === null || options === void 0 ? void 0 : options.isArray) ? value : [value];
|
|
193
|
+
this[propertySymbol] = this[propertySymbol] || [];
|
|
194
|
+
for (let i = 0; i < values.length; ++i) {
|
|
195
|
+
const currentValue = values[i];
|
|
196
|
+
if (this[propertySymbol].length < 1 || currentValue !== this[propertySymbol][i]) {
|
|
197
|
+
const currentModifierClass = createModifierClass.apply(this, [this[propertySymbol][i]]);
|
|
198
|
+
if (currentModifierClass !== null) {
|
|
199
|
+
this.element.nativeElement.classList.remove(currentModifierClass);
|
|
200
|
+
}
|
|
201
|
+
this[propertySymbol][i] = currentValue;
|
|
202
|
+
const newModifierClass = createModifierClass.apply(this, [this[propertySymbol][i]]);
|
|
203
|
+
if (newModifierClass !== null && (isBoolean(currentValue) ? currentValue : true)) {
|
|
204
|
+
this.element.nativeElement.classList.add(newModifierClass);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
function getter() {
|
|
210
|
+
var _a;
|
|
211
|
+
return (options === null || options === void 0 ? void 0 : options.isArray) ? this[propertySymbol] : (_a = this[propertySymbol]) === null || _a === void 0 ? void 0 : _a[0];
|
|
212
|
+
}
|
|
213
|
+
descriptors.addSetter(setter);
|
|
214
|
+
descriptors.addGetter(getter);
|
|
215
|
+
descriptors.init();
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/** @internal */
|
|
220
|
+
function watchedControllerFactory(controller, changeDetectorRef, destroy$) {
|
|
221
|
+
var _a;
|
|
222
|
+
const changes$ = (_a = controller === null || controller === void 0 ? void 0 : controller.change$) !== null && _a !== void 0 ? _a : EMPTY;
|
|
223
|
+
changes$.pipe(watch(changeDetectorRef), takeUntil(destroy$)).subscribe();
|
|
224
|
+
return controller;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Generated bundle index. Do not edit.
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
export { CSSComponent, CSSModifier, CSS_COMPONENT_MODIFIERS, CSS_COMPONENT_NAME, Controller, applyStyles, detectControllerChanges, getCSSVariables, getEnumValues, isBoolean, isComponent, isFunction, isNonEmptyString, isPresent, isString, isTemplateRef, isViewContainer, px, watch, watchedControllerFactory, ɵwithMultipleDescriptors };
|
|
232
|
+
//# sourceMappingURL=odx-angular-internal.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odx-angular-internal.mjs","sources":["../../../../libs/angular/internal/src/helpers/dom.ts","../../../../libs/angular/internal/src/helpers/get-css-variables.ts","../../../../libs/angular/internal/src/helpers/get-enum-values.ts","../../../../libs/angular/internal/src/helpers/type-guards.ts","../../../../libs/angular/internal/src/helpers/watch.ts","../../../../libs/angular/internal/src/helpers/with-mutiple-descriptors.ts","../../../../libs/angular/internal/src/abstract/controller.ts","../../../../libs/angular/internal/src/decorators/css-component.ts","../../../../libs/angular/internal/src/decorators/css-modifier.ts","../../../../libs/angular/internal/src/providers/watched-controller-provider.ts","../../../../libs/angular/internal/src/odx-angular-internal.ts"],"sourcesContent":["export function px(value: number): string {\n return `${Math.round(value)}px`;\n}\n\nexport function applyStyles(element: HTMLElement, styles: Partial<CSSStyleDeclaration | Record<keyof CSSStyleDeclaration, string | null>>): void {\n Object.assign(element.style, styles);\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\ninterface ColorDefinition {\n name: string;\n variableName: string;\n value: string;\n}\n\n/* istanbul ignore next */\nfunction isSameDomain(styleSheet: StyleSheet): boolean {\n if (!styleSheet.href) {\n return true;\n }\n\n return styleSheet.href.indexOf(window.location.origin) === 0;\n}\n\n/** @internal */\n/* istanbul ignore next */\nexport function getCSSVariables(filter: RegExp): ColorDefinition[] {\n const stylesheets = Array.from(document.styleSheets).filter(isSameDomain);\n return stylesheets.reduce<any[]>((variables, { cssRules }) => {\n for (const { style, type } of Array.from(cssRules) as any[]) {\n if (type === 1) {\n for (const prop of Array.from(style ?? []) as string[]) {\n const name = prop.trim();\n if (name.startsWith('--') && filter.test(name)) {\n variables.push({\n name: name,\n value: style.getPropertyValue(prop).trim(),\n });\n }\n }\n }\n }\n return variables;\n }, []);\n}\n","/** @internal */\nexport function getEnumValues<TEnum, TKeys extends string>(e: { [key in TKeys]: TEnum }): TEnum[] {\n const keys = Object.keys(e) as TKeys[];\n return keys.filter((key) => e[key] !== undefined).map((key) => e[key]);\n}\n","import { TemplateRef, Type, ViewContainerRef } from '@angular/core';\n\nexport function isViewContainer(value: unknown): value is ViewContainerRef {\n return isFunction((value as ViewContainerRef)?.createComponent);\n}\n\nexport function isTemplateRef<T = unknown>(value: unknown): value is TemplateRef<T> {\n return value instanceof TemplateRef;\n}\n\nexport function isComponent<T = unknown>(value: unknown): value is Type<T> {\n return isFunction(value);\n}\n\nexport function isString(value: unknown): value is string {\n return typeof value === 'string';\n}\n\nexport function isNonEmptyString(value: unknown): value is string {\n return isString(value) && value.length > 0;\n}\n\nexport function isBoolean(value: unknown): value is boolean {\n return typeof value === 'boolean';\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function isFunction(value: unknown): value is Function {\n return typeof value === 'function';\n}\n\nexport function isPresent<T>(value: T | null | undefined): value is NonNullable<T> {\n return value !== null && value !== undefined;\n}\n","import { ChangeDetectorRef } from '@angular/core';\nimport { MonoTypeOperatorFunction } from 'rxjs';\nimport { tap } from 'rxjs/operators';\n\n/** @internal */\nexport function watch<T>(changeDetectorRef: ChangeDetectorRef): MonoTypeOperatorFunction<T> {\n return tap(() => {\n changeDetectorRef.markForCheck();\n });\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\n/** @internal */\ninterface DescriptiorManager {\n addGetter: (value: any) => void;\n addSetter: (value: any) => void;\n init: () => void;\n}\n\n/** @internal */\n/* istanbul ignore next */\nexport function ɵwithMultipleDescriptors(target: any, key: PropertyKey, symbol: symbol): DescriptiorManager {\n const setters = (target[`__propSetters__${target.constructor}__${key.toString()}`] ??= []);\n const getters = (target[`__propGetters__${target.constructor}__${key.toString()}`] ??= []);\n const propertyValue = `__propValue_${String(key)}__`;\n return {\n addSetter(fn: (this: any, value: any) => void) {\n setters.push({ fn, propertySymbol: symbol });\n },\n addGetter(fn: (this: any, value: any) => void) {\n getters.push({ fn });\n },\n init() {\n Object.defineProperty(target, key, {\n set(value) {\n this[propertyValue] = setters.reduce((result: any, { fn, propertySymbol }: any) => {\n fn.call(this, result);\n return this[propertySymbol];\n }, value);\n },\n get() {\n if (Array.isArray(getters)) {\n return getters.reduce((_: any, { fn }: any) => fn.call(this), this[propertyValue]);\n } else {\n return this[propertyValue];\n }\n },\n configurable: true,\n });\n },\n };\n}\n","import { ChangeDetectorRef, Directive, OnChanges, OnDestroy } from '@angular/core';\nimport { BehaviorSubject, combineLatest, Observable, shareReplay } from 'rxjs';\nimport { watch } from '../helpers';\n\nexport function detectControllerChanges(changeDetector: ChangeDetectorRef, ...controllers: Array<Controller | undefined | null>): Observable<void[]> {\n return combineLatest(controllers.reduce<Observable<void>[]>((changes, controller) => (controller ? changes.concat(controller.change$) : changes), [])).pipe(\n watch(changeDetector)\n );\n}\n\n/** @internal */\n@Directive()\nexport abstract class Controller implements OnChanges, OnDestroy {\n private readonly change$$ = new BehaviorSubject<void>(undefined);\n\n public readonly change$ = this.change$$.pipe(shareReplay({ refCount: true }));\n\n public ngOnChanges(): void {\n this.triggerControllerChange();\n }\n\n public ngOnDestroy(): void {\n this.change$$.complete();\n }\n\n protected triggerControllerChange() {\n this.change$$.next();\n }\n}\n","import { ElementRef, Type } from '@angular/core';\n\nexport const CSS_COMPONENT_NAME = Symbol('__CSSComponentName__');\n\nexport const CSS_COMPONENT_MODIFIERS = Symbol('__CSSComponentModifiers__');\n\n/** @internal */\nexport interface CSSComponent {\n readonly element: ElementRef<unknown>;\n}\n\n/** @internal */\n/* istanbul ignore next */\nexport function CSSComponent(name: string, prefix = 'odx') {\n return (target: Type<CSSComponent>) => {\n const cssClass = `${prefix}-${name}`;\n Object.defineProperty(target.prototype, CSS_COMPONENT_NAME, {\n value: cssClass,\n });\n\n (function (this: unknown, ngOnInit?: () => void) {\n target.prototype.ngOnInit = function () {\n this.element.nativeElement.classList.add(cssClass);\n ngOnInit?.call(this);\n\n if (Array.isArray(this[CSS_COMPONENT_MODIFIERS])) {\n for (const property of this[CSS_COMPONENT_MODIFIERS]) {\n this[property] ??= null;\n }\n }\n };\n })(target.prototype.ngOnInit);\n };\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { isBoolean, isNonEmptyString, ɵwithMultipleDescriptors } from '../helpers';\nimport { CSS_COMPONENT_MODIFIERS, CSS_COMPONENT_NAME } from './css-component';\n\n/** @internal */\ninterface CSSModifierOptions {\n isArray?: boolean;\n withComponentPrefix?: boolean;\n default?: string;\n withPrefix?: boolean;\n}\n\n/** @internal */\n/* istanbul ignore next */\nexport function CSSModifier(options?: CSSModifierOptions) {\n return (target: any, propertyKey: PropertyKey) => {\n const propertySymbol = Symbol(`__CSSModifier{${propertyKey.toString()}}__`);\n const descriptors = ɵwithMultipleDescriptors(target, propertyKey, propertySymbol);\n\n function createModifierClass(this: any, value: any) {\n value = value ?? options?.default ?? null;\n\n if (isBoolean(value) || isNonEmptyString(value)) {\n let modifier = isBoolean(value) ? propertyKey.toString() : value;\n if (options?.withPrefix) {\n modifier = [propertyKey, modifier].join('-');\n }\n return [options?.withComponentPrefix ?? true ? this[CSS_COMPONENT_NAME] : null, modifier].filter(Boolean).join('--');\n }\n return null;\n }\n\n if (options?.default) {\n target[CSS_COMPONENT_MODIFIERS] = (target[CSS_COMPONENT_MODIFIERS] || []).concat(propertyKey);\n }\n\n function setter(this: any, value: any) {\n const values = options?.isArray ? value : [value];\n this[propertySymbol] = this[propertySymbol] || [];\n for (let i = 0; i < values.length; ++i) {\n const currentValue = values[i];\n if (this[propertySymbol].length < 1 || currentValue !== this[propertySymbol][i]) {\n const currentModifierClass = createModifierClass.apply(this, [this[propertySymbol][i]]);\n if (currentModifierClass !== null) {\n this.element.nativeElement.classList.remove(currentModifierClass);\n }\n this[propertySymbol][i] = currentValue;\n const newModifierClass = createModifierClass.apply(this, [this[propertySymbol][i]]);\n if (newModifierClass !== null && (isBoolean(currentValue) ? currentValue : true)) {\n this.element.nativeElement.classList.add(newModifierClass);\n }\n }\n }\n }\n\n function getter(this: any) {\n return options?.isArray ? this[propertySymbol] : this[propertySymbol]?.[0];\n }\n\n descriptors.addSetter(setter);\n descriptors.addGetter(getter);\n descriptors.init();\n };\n}\n","import { ChangeDetectorRef } from '@angular/core';\nimport { EMPTY, Observable, takeUntil } from 'rxjs';\nimport { Controller } from '../abstract';\nimport { watch } from '../helpers';\n\n/** @internal */\nexport function watchedControllerFactory(controller: Controller | null, changeDetectorRef: ChangeDetectorRef, destroy$: Observable<void>): Controller | null {\n const changes$ = controller?.change$ ?? EMPTY;\n changes$.pipe(watch(changeDetectorRef), takeUntil(destroy$)).subscribe();\n\n return controller;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAM,SAAU,EAAE,CAAC,KAAa,EAAA;IAC9B,OAAO,CAAA,EAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC;AAClC,CAAC;AAEe,SAAA,WAAW,CAAC,OAAoB,EAAE,MAAuF,EAAA;IACvI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACvC;;ACCA;AACA,SAAS,YAAY,CAAC,UAAsB,EAAA;AAC1C,IAAA,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;AACpB,QAAA,OAAO,IAAI,CAAC;AACb,KAAA;AAED,IAAA,OAAO,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED;AACA;AACM,SAAU,eAAe,CAAC,MAAc,EAAA;AAC5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AU,CAAC;AACpB;;ACXA;;AAEG;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { merge, fromEvent } from 'rxjs';
|
|
2
|
+
|
|
3
|
+
function fromEvents(target, ...events) {
|
|
4
|
+
return merge(...events.map((event) => fromEvent(target, event)));
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Generated bundle index. Do not edit.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export { fromEvents };
|
|
12
|
+
//# sourceMappingURL=odx-angular-rxjs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odx-angular-rxjs.mjs","sources":["../../../../libs/angular/rxjs/src/lib/from-events.ts","../../../../libs/angular/rxjs/src/odx-angular-rxjs.ts"],"sourcesContent":["import { fromEvent, merge, Observable } from 'rxjs';\nimport { HasEventTargetAddRemove } from 'rxjs/internal/observable/fromEvent';\n\nexport function fromEvents<T>(target: HasEventTargetAddRemove<T> | HasEventTargetAddRemove<T>[], ...events: string[]): Observable<T> {\n return merge(...events.map((event) => fromEvent(target, event)));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;SAGgB,UAAU,CAAI,MAAiE,EAAE,GAAG,MAAgB,EAAA;IAClH,OAAO,KAAK,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,KAAK,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;AACnE;;ACLA;;AAEG;;;;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ɵwithMultipleDescriptors } from '@odx/angular/internal';
|
|
2
|
+
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
|
+
function Transform(transformer) {
|
|
5
|
+
return (target, propertyKey) => {
|
|
6
|
+
const propertySymbol = Symbol(`__${propertyKey.toString()}ClassTmpl__`);
|
|
7
|
+
const descriptors = ɵwithMultipleDescriptors(target, propertyKey, propertySymbol);
|
|
8
|
+
function setter(value) {
|
|
9
|
+
this[propertySymbol] = transformer.apply(this, [value]);
|
|
10
|
+
}
|
|
11
|
+
descriptors.addSetter(setter);
|
|
12
|
+
descriptors.init();
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function pluckFromArray(arr, key) {
|
|
17
|
+
return arr.map((value) => value[key]);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function hasChanged(changes, keyOrKeys, ignoreFirstChange = true) {
|
|
21
|
+
if (Array.isArray(keyOrKeys)) {
|
|
22
|
+
for (const key of keyOrKeys) {
|
|
23
|
+
if (hasChanged(changes, key, ignoreFirstChange)) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
return keyOrKeys in changes && (!ignoreFirstChange || !changes[keyOrKeys].isFirstChange());
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Generated bundle index. Do not edit.
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
export { Transform, hasChanged, pluckFromArray };
|
|
39
|
+
//# sourceMappingURL=odx-angular-utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odx-angular-utils.mjs","sources":["../../../../libs/angular/utils/src/lib/decorators/transform.ts","../../../../libs/angular/utils/src/lib/helpers/array.ts","../../../../libs/angular/utils/src/lib/helpers/ng-changes.ts","../../../../libs/angular/utils/src/odx-angular-utils.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ɵwithMultipleDescriptors } from '@odx/angular/internal';\n\ntype TransformFn<Klass = any, R = any> = (this: Klass, value: R) => R;\n\nexport function Transform(transformer: TransformFn) {\n return (target: any, propertyKey: PropertyKey) => {\n const propertySymbol = Symbol(`__${propertyKey.toString()}ClassTmpl__`);\n const descriptors = ɵwithMultipleDescriptors(target, propertyKey, propertySymbol);\n\n function setter(this: any, value: any) {\n this[propertySymbol] = transformer.apply(this, [value]);\n }\n\n descriptors.addSetter(setter);\n descriptors.init();\n };\n}\n","export function pluckFromArray<T, K extends keyof T>(arr: T[], key: K): Array<T[K]> {\n return arr.map((value) => value[key]);\n}\n","import { GetProperties } from '@odx/angular/internal';\n\nexport type NgChanges<C, Properties = GetProperties<C>> = {\n [Key in keyof Properties]: {\n previousValue: Properties[Key];\n currentValue: Properties[Key];\n firstChange: boolean;\n isFirstChange(): boolean;\n };\n};\n\nexport function hasChanged<U extends Record<string, unknown>, T extends NgChanges<U>, K extends keyof T>(\n changes: T,\n keyOrKeys: K | K[],\n ignoreFirstChange = true\n): boolean {\n if (Array.isArray(keyOrKeys)) {\n for (const key of keyOrKeys) {\n if (hasChanged(changes, key, ignoreFirstChange)) {\n return true;\n }\n }\n return false;\n } else {\n return keyOrKeys in changes && (!ignoreFirstChange || !changes[keyOrKeys].isFirstChange());\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;AAKM,SAAU,SAAS,CAAC,WAAwB,EAAA;AAChD,IAAA,OAAO,CAAC,MAAW,EAAE,WAAwB,KAAI;QAC/C,MAAM,cAAc,GAAG,MAAM,CAAC,CAAA,EAAA,EAAK,WAAW,CAAC,QAAQ,EAAE,CAAa,WAAA,CAAA,CAAC,CAAC;QACxE,MAAM,WAAW,GAAG,wBAAwB,CAAC,MAAM,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;QAElF,SAAS,MAAM,CAAY,KAAU,EAAA;AACnC,YAAA,IAAI,CAAC,cAAc,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;SACzD;AAED,QAAA,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9B,WAAW,CAAC,IAAI,EAAE,CAAC;AACrB,KAAC,CAAC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