@coreui/angular 4.2.11 → 4.2.13

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.
@@ -7,12 +7,12 @@ import * as i1 from '@angular/animations';
7
7
  import { animation, animate, style, useAnimation, trigger, state, transition, group, query } from '@angular/animations';
8
8
  import * as i3 from '@angular/router';
9
9
  import { NavigationEnd, RouterModule } from '@angular/router';
10
- import { BehaviorSubject, Observable, Subject } from 'rxjs';
10
+ import { BehaviorSubject, Observable, fromEvent, zipWith, withLatestFrom, Subject } from 'rxjs';
11
11
  import { filter } from 'rxjs/operators';
12
12
  import { createPopper } from '@popperjs/core';
13
- import * as i1$2 from '@angular/cdk/layout';
14
- import * as i1$3 from '@angular/cdk/a11y';
13
+ import * as i2 from '@angular/cdk/a11y';
15
14
  import { A11yModule } from '@angular/cdk/a11y';
15
+ import * as i1$2 from '@angular/cdk/layout';
16
16
  import * as i5 from '@coreui/icons-angular';
17
17
  import { IconModule } from '@coreui/icons-angular';
18
18
 
@@ -246,15 +246,17 @@ const expandAnimation = animation([
246
246
  animate('{{ time }} {{ easing }}')
247
247
  ]);
248
248
  const collapseAnimation = animation([
249
- style({ height: '*', opacity: '*', minHeight: '*' }),
250
- animate('{{ time }} {{ easing }}', style({ height: 0, opacity: 0, minHeight: 0 }))
249
+ style({ height: '*', minHeight: '*' }),
250
+ animate('{{ time }} {{ easing }}', style({ height: 0, minHeight: 0 }))
251
251
  ]);
252
252
  const expandHorizontalAnimation = animation([
253
253
  animate('{{ time }} {{ easing }}')
254
254
  ]);
255
255
  const collapseHorizontalAnimation = animation([
256
- style({ opacity: '*' }),
257
- animate('{{ time }} {{ easing }}', style({ opacity: 0 }))
256
+ // style({ opacity: '*' }),
257
+ animate('{{ time }} {{ easing }}'
258
+ // style({ opacity: 0 })
259
+ )
258
260
  ]);
259
261
 
260
262
  // todo
@@ -1941,6 +1943,12 @@ class CarouselComponent {
1941
1943
  * @type {'hover' | 'focus' | 'click'}
1942
1944
  */
1943
1945
  this.pause = 'hover';
1946
+ /**
1947
+ * Support left/right swipe interactions on touchscreen devices.
1948
+ * @type boolean
1949
+ * @default true
1950
+ */
1951
+ this.touch = true;
1944
1952
  /**
1945
1953
  * Set type of the transition.
1946
1954
  * @type {'slide' | 'crossfade'}
@@ -1977,12 +1985,14 @@ class CarouselComponent {
1977
1985
  this.clearListeners();
1978
1986
  this.carouselStateSubscribe(false);
1979
1987
  this.intersectionServiceSubscribe(false);
1988
+ this.swipeSubscribe(false);
1980
1989
  }
1981
1990
  ngAfterContentInit() {
1982
1991
  this.intersectionService.createIntersectionObserver(this.hostElement);
1983
1992
  this.intersectionServiceSubscribe();
1984
1993
  this.carouselState.state = { activeItemIndex: this.activeIndex, animate: this.animate };
1985
1994
  this.setListeners();
1995
+ this.swipeSubscribe();
1986
1996
  }
1987
1997
  setListeners() {
1988
1998
  const config = {
@@ -2045,9 +2055,30 @@ class CarouselComponent {
2045
2055
  this.intersectingSubscription?.unsubscribe();
2046
2056
  }
2047
2057
  }
2058
+ swipeSubscribe(subscribe = true) {
2059
+ if (this.touch && subscribe) {
2060
+ const carouselElement = this.hostElement.nativeElement;
2061
+ const touchStart$ = fromEvent(carouselElement, 'touchstart');
2062
+ const touchEnd$ = fromEvent(carouselElement, 'touchend');
2063
+ const touchMove$ = fromEvent(carouselElement, 'touchmove');
2064
+ this.swipeSubscription = touchStart$.pipe(zipWith(touchEnd$.pipe(withLatestFrom(touchMove$))))
2065
+ .subscribe(([touchstart, [touchend, touchmove]]) => {
2066
+ touchstart.stopPropagation();
2067
+ touchmove.stopPropagation();
2068
+ const distanceX = touchstart.touches[0].clientX - touchmove.touches[0].clientX;
2069
+ if (Math.abs(distanceX) > 0.3 * carouselElement.clientWidth && touchstart.timeStamp <= touchmove.timeStamp) {
2070
+ const nextIndex = this.carouselState.direction(distanceX > 0 ? 'next' : 'prev');
2071
+ this.carouselState.state = { activeItemIndex: nextIndex };
2072
+ }
2073
+ });
2074
+ }
2075
+ else {
2076
+ this.swipeSubscription?.unsubscribe();
2077
+ }
2078
+ }
2048
2079
  }
2049
2080
  CarouselComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: CarouselComponent, deps: [{ token: CarouselConfig }, { token: i0.ElementRef }, { token: CarouselService }, { token: CarouselState }, { token: IntersectionService }, { token: ListenersService }], target: i0.ɵɵFactoryTarget.Component });
2050
- CarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.9", type: CarouselComponent, selector: "c-carousel", inputs: { activeIndex: "activeIndex", animate: "animate", dark: "dark", direction: "direction", interval: "interval", pause: "pause", transition: "transition", wrap: "wrap" }, outputs: { itemChange: "itemChange" }, host: { properties: { "class": "this.hostClasses" } }, providers: [CarouselService, CarouselState, CarouselConfig, IntersectionService, ListenersService], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{display:block}\n"] });
2081
+ CarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.9", type: CarouselComponent, selector: "c-carousel", inputs: { activeIndex: "activeIndex", animate: "animate", dark: "dark", direction: "direction", interval: "interval", pause: "pause", touch: "touch", transition: "transition", wrap: "wrap" }, outputs: { itemChange: "itemChange" }, host: { properties: { "class": "this.hostClasses" } }, providers: [CarouselService, CarouselState, CarouselConfig, IntersectionService, ListenersService], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{display:block}\n"] });
2051
2082
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: CarouselComponent, decorators: [{
2052
2083
  type: Component,
2053
2084
  args: [{ selector: 'c-carousel', template: '<ng-content></ng-content>', providers: [CarouselService, CarouselState, CarouselConfig, IntersectionService, ListenersService], styles: [":host{display:block}\n"] }]
@@ -2066,6 +2097,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
2066
2097
  type: Input
2067
2098
  }], pause: [{
2068
2099
  type: Input
2100
+ }], touch: [{
2101
+ type: Input
2069
2102
  }], transition: [{
2070
2103
  type: Input
2071
2104
  }], wrap: [{
@@ -2637,12 +2670,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
2637
2670
  args: ['click', ['$event']]
2638
2671
  }] } });
2639
2672
  class DropdownComponent {
2640
- constructor(document, elementRef, renderer, ngZone, changeDetectorRef, dropdownService) {
2673
+ constructor(document, elementRef, renderer, ngZone, changeDetectorRef, focusMonitor, dropdownService) {
2641
2674
  this.document = document;
2642
2675
  this.elementRef = elementRef;
2643
2676
  this.renderer = renderer;
2644
2677
  this.ngZone = ngZone;
2645
2678
  this.changeDetectorRef = changeDetectorRef;
2679
+ this.focusMonitor = focusMonitor;
2646
2680
  this.dropdownService = dropdownService;
2647
2681
  this.autoClose = true;
2648
2682
  this._dark = false;
@@ -2658,7 +2692,7 @@ class DropdownComponent {
2658
2692
  strategy: 'absolute'
2659
2693
  };
2660
2694
  /**
2661
- * Set the dropdown variant to an btn-group, dropdown, input-group, and nav-item.
2695
+ * Set the dropdown variant to a btn-group, dropdown, input-group, and nav-item.
2662
2696
  */
2663
2697
  this.variant = 'dropdown';
2664
2698
  this._visible = false;
@@ -2789,12 +2823,21 @@ class DropdownComponent {
2789
2823
  if (this.variant === 'nav-item') {
2790
2824
  this.renderer.addClass(this._toggler.elementRef.nativeElement, 'nav-link');
2791
2825
  }
2826
+ this.focusMonitor.monitor(this.elementRef, true).subscribe(origin => {
2827
+ this.ngZone.run(() => {
2828
+ if ((!origin) && (this.autoClose === true || this.autoClose === 'outside')) {
2829
+ this.setVisibleState(false);
2830
+ this.changeDetectorRef.markForCheck();
2831
+ }
2832
+ });
2833
+ });
2792
2834
  }
2793
2835
  ngOnInit() {
2794
2836
  this.dropdownStateSubscribe();
2795
2837
  this.setVisibleState(this.visible);
2796
2838
  }
2797
2839
  ngOnDestroy() {
2840
+ this.focusMonitor?.stopMonitoring(this.elementRef);
2798
2841
  this.clearListeners();
2799
2842
  this.dropdownStateSubscribe(false);
2800
2843
  this.destroyPopperInstance();
@@ -2814,6 +2857,7 @@ class DropdownComponent {
2814
2857
  }
2815
2858
  this.ngZone.run(() => {
2816
2859
  this.setListeners();
2860
+ this.changeDetectorRef.markForCheck();
2817
2861
  this.changeDetectorRef.detectChanges();
2818
2862
  });
2819
2863
  });
@@ -2844,9 +2888,11 @@ class DropdownComponent {
2844
2888
  return;
2845
2889
  }
2846
2890
  }));
2847
- this.listeners.push(this.renderer.listen(this.document, 'keyup', (event) => {
2891
+ this.listeners.push(this.renderer.listen(this.elementRef.nativeElement, 'keyup', (event) => {
2848
2892
  if (event.key === 'Escape' && this.autoClose !== false) {
2893
+ event.stopPropagation();
2849
2894
  this.setVisibleState(false);
2895
+ return;
2850
2896
  }
2851
2897
  }));
2852
2898
  }
@@ -2859,15 +2905,15 @@ class DropdownComponent {
2859
2905
  this.listeners = [];
2860
2906
  }
2861
2907
  }
2862
- DropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: DropdownComponent, deps: [{ token: DOCUMENT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: DropdownService }], target: i0.ɵɵFactoryTarget.Component });
2908
+ DropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: DropdownComponent, deps: [{ token: DOCUMENT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i2.FocusMonitor }, { token: DropdownService }], target: i0.ɵɵFactoryTarget.Component });
2863
2909
  DropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.9", type: DropdownComponent, selector: "c-dropdown", inputs: { alignment: "alignment", autoClose: "autoClose", dark: "dark", direction: "direction", placement: "placement", popper: "popper", popperOptions: "popperOptions", variant: "variant", visible: "visible" }, outputs: { visibleChange: "visibleChange" }, host: { listeners: { "click": "onHostClick($event)" }, properties: { "class": "this.hostClasses", "style": "this.hostStyle" } }, providers: [DropdownService], queries: [{ propertyName: "_toggler", first: true, predicate: DropdownToggleDirective, descendants: true }, { propertyName: "_menu", first: true, predicate: DropdownMenuDirective, descendants: true }], exportAs: ["cDropdown"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host-context(.dropdown,.dropup):not(.btn-group){display:block}:host-context(.dropstart,.dropend):not(.btn-group){display:inline-flex}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :first-child{border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :first-child{border-top-left-radius:0;border-bottom-left-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :first-child:not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host{direction:rtl}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :first-child{border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :first-child{border-top-right-radius:0;border-bottom-right-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :first-child:not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}\n"] });
2864
2910
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: DropdownComponent, decorators: [{
2865
2911
  type: Component,
2866
2912
  args: [{ selector: 'c-dropdown', template: '<ng-content></ng-content>', exportAs: 'cDropdown', providers: [DropdownService], styles: [":host-context(.dropdown,.dropup):not(.btn-group){display:block}:host-context(.dropstart,.dropend):not(.btn-group){display:inline-flex}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :first-child{border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :first-child{border-top-left-radius:0;border-bottom-left-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :first-child:not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host{direction:rtl}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :first-child{border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :first-child{border-top-right-radius:0;border-bottom-right-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :first-child:not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}\n"] }]
2867
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2913
+ }], ctorParameters: function () { return [{ type: Document, decorators: [{
2868
2914
  type: Inject,
2869
2915
  args: [DOCUMENT]
2870
- }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: DropdownService }]; }, propDecorators: { alignment: [{
2916
+ }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i2.FocusMonitor }, { type: DropdownService }]; }, propDecorators: { alignment: [{
2871
2917
  type: Input
2872
2918
  }], autoClose: [{
2873
2919
  type: Input
@@ -4951,7 +4997,7 @@ class ModalContentComponent {
4951
4997
  this.interactivityChecker.isFocusable(targetElement);
4952
4998
  }
4953
4999
  }
4954
- ModalContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalContentComponent, deps: [{ token: i0.ElementRef }, { token: i1$3.InteractivityChecker }], target: i0.ɵɵFactoryTarget.Component });
5000
+ ModalContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalContentComponent, deps: [{ token: i0.ElementRef }, { token: i2.InteractivityChecker }], target: i0.ɵɵFactoryTarget.Component });
4955
5001
  ModalContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.9", type: ModalContentComponent, selector: "c-modal-content", host: { listeners: { "click": "onClickHandler($event)" }, properties: { "class": "this.hostClasses" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
4956
5002
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalContentComponent, decorators: [{
4957
5003
  type: Component,
@@ -4959,7 +5005,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
4959
5005
  selector: 'c-modal-content',
4960
5006
  template: '<ng-content></ng-content>'
4961
5007
  }]
4962
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$3.InteractivityChecker }]; }, propDecorators: { hostClasses: [{
5008
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2.InteractivityChecker }]; }, propDecorators: { hostClasses: [{
4963
5009
  type: HostBinding,
4964
5010
  args: ['class']
4965
5011
  }], onClickHandler: [{
@@ -5357,7 +5403,7 @@ class ModalComponent {
5357
5403
  }
5358
5404
  }
5359
5405
  ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalComponent, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: ModalService }, { token: BackdropService }], target: i0.ɵɵFactoryTarget.Component });
5360
- ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.9", type: ModalComponent, selector: "c-modal", inputs: { alignment: "alignment", backdrop: "backdrop", fullscreen: "fullscreen", keyboard: "keyboard", id: "id", size: "size", transition: "transition", role: "role", ariaModal: "ariaModal", scrollable: "scrollable", visible: "visible" }, outputs: { visibleChange: "visibleChange" }, host: { listeners: { "@showHide.start": "animateStart($event)", "@showHide.done": "animateDone($event)", "document:keydown": "onKeyDownHandler($event)", "mousedown": "onMouseDownHandler($event)", "click": "onClickHandler($event)" }, properties: { "attr.role": "this.role", "attr.aria-modal": "this.ariaModal", "class": "this.hostClasses", "attr.aria-hidden": "this.ariaHidden", "attr.tabindex": "this.tabIndex", "@showHide": "this.animateTrigger" } }, viewQueries: [{ propertyName: "modalContent", first: true, predicate: ModalContentComponent, descendants: true, read: ElementRef }], exportAs: ["cModal"], ngImport: i0, template: "<c-modal-dialog\n [alignment]=\"alignment\"\n [fullscreen]=\"fullscreen\"\n [scrollable]=\"scrollable\"\n [size]=\"size\">\n <c-modal-content>\n <div [cdkTrapFocus]=\"visible\" [cdkTrapFocusAutoCapture]=\"visible\" style=\"display: contents;\">\n <ng-content></ng-content>\n </div>\n </c-modal-content>\n</c-modal-dialog>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$3.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: ModalContentComponent, selector: "c-modal-content" }, { kind: "component", type: ModalDialogComponent, selector: "c-modal-dialog", inputs: ["alignment", "fullscreen", "scrollable", "size"] }], animations: [
5406
+ ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.9", type: ModalComponent, selector: "c-modal", inputs: { alignment: "alignment", backdrop: "backdrop", fullscreen: "fullscreen", keyboard: "keyboard", id: "id", size: "size", transition: "transition", role: "role", ariaModal: "ariaModal", scrollable: "scrollable", visible: "visible" }, outputs: { visibleChange: "visibleChange" }, host: { listeners: { "@showHide.start": "animateStart($event)", "@showHide.done": "animateDone($event)", "document:keyup": "onKeyDownHandler($event)", "mousedown": "onMouseDownHandler($event)", "click": "onClickHandler($event)" }, properties: { "attr.role": "this.role", "attr.aria-modal": "this.ariaModal", "class": "this.hostClasses", "attr.aria-hidden": "this.ariaHidden", "attr.tabindex": "this.tabIndex", "@showHide": "this.animateTrigger" } }, viewQueries: [{ propertyName: "modalContent", first: true, predicate: ModalContentComponent, descendants: true, read: ElementRef }], exportAs: ["cModal"], ngImport: i0, template: "<c-modal-dialog\n [alignment]=\"alignment\"\n [fullscreen]=\"fullscreen\"\n [scrollable]=\"scrollable\"\n [size]=\"size\">\n <c-modal-content>\n <div [cdkTrapFocus]=\"visible\" [cdkTrapFocusAutoCapture]=\"visible\" style=\"display: contents;\">\n <ng-content></ng-content>\n </div>\n </c-modal-content>\n</c-modal-dialog>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: ModalContentComponent, selector: "c-modal-content" }, { kind: "component", type: ModalDialogComponent, selector: "c-modal-dialog", inputs: ["alignment", "fullscreen", "scrollable", "size"] }], animations: [
5361
5407
  trigger('showHide', [
5362
5408
  state('visible', style({
5363
5409
  // display: 'block'
@@ -5437,7 +5483,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
5437
5483
  args: ['@showHide.done', ['$event']]
5438
5484
  }], onKeyDownHandler: [{
5439
5485
  type: HostListener,
5440
- args: ['document:keydown', ['$event']]
5486
+ args: ['document:keyup', ['$event']]
5441
5487
  }], onMouseDownHandler: [{
5442
5488
  type: HostListener,
5443
5489
  args: ['mousedown', ['$event']]
@@ -5685,7 +5731,7 @@ class OffcanvasComponent {
5685
5731
  }
5686
5732
  }
5687
5733
  OffcanvasComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: OffcanvasComponent, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: OffcanvasService }, { token: BackdropService }], target: i0.ɵɵFactoryTarget.Component });
5688
- OffcanvasComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.9", type: OffcanvasComponent, selector: "c-offcanvas", inputs: { backdrop: "backdrop", keyboard: "keyboard", placement: "placement", scroll: "scroll", id: "id", role: "role", ariaModal: "ariaModal", visible: "visible" }, outputs: { visibleChange: "visibleChange" }, host: { listeners: { "document:keydown": "onKeyDownHandler($event)" }, properties: { "attr.role": "this.role", "attr.aria-modal": "this.ariaModal", "class": "this.hostClasses", "attr.aria-hidden": "this.ariaHidden", "attr.tabindex": "this.tabIndex", "@showHide": "this.animateType" } }, exportAs: ["cOffcanvas"], usesOnChanges: true, ngImport: i0, template: "<div cdkTrapFocus cdkTrapFocusAutoCapture>\n <ng-content></ng-content>\n</div>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1$3.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], animations: [
5734
+ OffcanvasComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.9", type: OffcanvasComponent, selector: "c-offcanvas", inputs: { backdrop: "backdrop", keyboard: "keyboard", placement: "placement", scroll: "scroll", id: "id", role: "role", ariaModal: "ariaModal", visible: "visible" }, outputs: { visibleChange: "visibleChange" }, host: { listeners: { "document:keydown": "onKeyDownHandler($event)" }, properties: { "attr.role": "this.role", "attr.aria-modal": "this.ariaModal", "class": "this.hostClasses", "attr.aria-hidden": "this.ariaHidden", "attr.tabindex": "this.tabIndex", "@showHide": "this.animateType" } }, exportAs: ["cOffcanvas"], usesOnChanges: true, ngImport: i0, template: "<div cdkTrapFocus cdkTrapFocusAutoCapture>\n <ng-content></ng-content>\n</div>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], animations: [
5689
5735
  trigger('showHide', [
5690
5736
  state('true', style({
5691
5737
  visibility: 'visible',
@@ -9238,7 +9284,7 @@ class RoundedDirective {
9238
9284
  classes[`rounded-${val}`] = true;
9239
9285
  }
9240
9286
  });
9241
- console.log('rounded keys', keys, classes);
9287
+ // console.log('rounded keys', keys, classes);
9242
9288
  return Object.entries(classes).length === 0 ? { rounded: false } : classes;
9243
9289
  }
9244
9290
  }