@coreui/angular 4.2.12 → 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.
- package/esm2020/lib/carousel/carousel/carousel.component.mjs +34 -2
- package/esm2020/lib/collapse/collapse.animations.mjs +1 -1
- package/esm2020/lib/dropdown/dropdown/dropdown.component.mjs +21 -7
- package/esm2020/lib/modal/modal/modal.component.mjs +3 -3
- package/esm2020/lib/utilities/rounded.directive.mjs +2 -2
- package/fesm2015/coreui-angular.mjs +62 -16
- package/fesm2015/coreui-angular.mjs.map +1 -1
- package/fesm2020/coreui-angular.mjs +60 -16
- package/fesm2020/coreui-angular.mjs.map +1 -1
- package/lib/carousel/carousel/carousel.component.d.ts +9 -1
- package/lib/dropdown/dropdown/dropdown.component.d.ts +4 -2
- package/package.json +2 -2
|
@@ -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
|
|
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
|
|
|
@@ -1943,6 +1943,12 @@ class CarouselComponent {
|
|
|
1943
1943
|
* @type {'hover' | 'focus' | 'click'}
|
|
1944
1944
|
*/
|
|
1945
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;
|
|
1946
1952
|
/**
|
|
1947
1953
|
* Set type of the transition.
|
|
1948
1954
|
* @type {'slide' | 'crossfade'}
|
|
@@ -1979,12 +1985,14 @@ class CarouselComponent {
|
|
|
1979
1985
|
this.clearListeners();
|
|
1980
1986
|
this.carouselStateSubscribe(false);
|
|
1981
1987
|
this.intersectionServiceSubscribe(false);
|
|
1988
|
+
this.swipeSubscribe(false);
|
|
1982
1989
|
}
|
|
1983
1990
|
ngAfterContentInit() {
|
|
1984
1991
|
this.intersectionService.createIntersectionObserver(this.hostElement);
|
|
1985
1992
|
this.intersectionServiceSubscribe();
|
|
1986
1993
|
this.carouselState.state = { activeItemIndex: this.activeIndex, animate: this.animate };
|
|
1987
1994
|
this.setListeners();
|
|
1995
|
+
this.swipeSubscribe();
|
|
1988
1996
|
}
|
|
1989
1997
|
setListeners() {
|
|
1990
1998
|
const config = {
|
|
@@ -2047,9 +2055,30 @@ class CarouselComponent {
|
|
|
2047
2055
|
this.intersectingSubscription?.unsubscribe();
|
|
2048
2056
|
}
|
|
2049
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
|
+
}
|
|
2050
2079
|
}
|
|
2051
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 });
|
|
2052
|
-
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"] });
|
|
2053
2082
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: CarouselComponent, decorators: [{
|
|
2054
2083
|
type: Component,
|
|
2055
2084
|
args: [{ selector: 'c-carousel', template: '<ng-content></ng-content>', providers: [CarouselService, CarouselState, CarouselConfig, IntersectionService, ListenersService], styles: [":host{display:block}\n"] }]
|
|
@@ -2068,6 +2097,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
|
|
|
2068
2097
|
type: Input
|
|
2069
2098
|
}], pause: [{
|
|
2070
2099
|
type: Input
|
|
2100
|
+
}], touch: [{
|
|
2101
|
+
type: Input
|
|
2071
2102
|
}], transition: [{
|
|
2072
2103
|
type: Input
|
|
2073
2104
|
}], wrap: [{
|
|
@@ -2639,12 +2670,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
|
|
|
2639
2670
|
args: ['click', ['$event']]
|
|
2640
2671
|
}] } });
|
|
2641
2672
|
class DropdownComponent {
|
|
2642
|
-
constructor(document, elementRef, renderer, ngZone, changeDetectorRef, dropdownService) {
|
|
2673
|
+
constructor(document, elementRef, renderer, ngZone, changeDetectorRef, focusMonitor, dropdownService) {
|
|
2643
2674
|
this.document = document;
|
|
2644
2675
|
this.elementRef = elementRef;
|
|
2645
2676
|
this.renderer = renderer;
|
|
2646
2677
|
this.ngZone = ngZone;
|
|
2647
2678
|
this.changeDetectorRef = changeDetectorRef;
|
|
2679
|
+
this.focusMonitor = focusMonitor;
|
|
2648
2680
|
this.dropdownService = dropdownService;
|
|
2649
2681
|
this.autoClose = true;
|
|
2650
2682
|
this._dark = false;
|
|
@@ -2660,7 +2692,7 @@ class DropdownComponent {
|
|
|
2660
2692
|
strategy: 'absolute'
|
|
2661
2693
|
};
|
|
2662
2694
|
/**
|
|
2663
|
-
* Set the dropdown variant to
|
|
2695
|
+
* Set the dropdown variant to a btn-group, dropdown, input-group, and nav-item.
|
|
2664
2696
|
*/
|
|
2665
2697
|
this.variant = 'dropdown';
|
|
2666
2698
|
this._visible = false;
|
|
@@ -2791,12 +2823,21 @@ class DropdownComponent {
|
|
|
2791
2823
|
if (this.variant === 'nav-item') {
|
|
2792
2824
|
this.renderer.addClass(this._toggler.elementRef.nativeElement, 'nav-link');
|
|
2793
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
|
+
});
|
|
2794
2834
|
}
|
|
2795
2835
|
ngOnInit() {
|
|
2796
2836
|
this.dropdownStateSubscribe();
|
|
2797
2837
|
this.setVisibleState(this.visible);
|
|
2798
2838
|
}
|
|
2799
2839
|
ngOnDestroy() {
|
|
2840
|
+
this.focusMonitor?.stopMonitoring(this.elementRef);
|
|
2800
2841
|
this.clearListeners();
|
|
2801
2842
|
this.dropdownStateSubscribe(false);
|
|
2802
2843
|
this.destroyPopperInstance();
|
|
@@ -2816,6 +2857,7 @@ class DropdownComponent {
|
|
|
2816
2857
|
}
|
|
2817
2858
|
this.ngZone.run(() => {
|
|
2818
2859
|
this.setListeners();
|
|
2860
|
+
this.changeDetectorRef.markForCheck();
|
|
2819
2861
|
this.changeDetectorRef.detectChanges();
|
|
2820
2862
|
});
|
|
2821
2863
|
});
|
|
@@ -2846,9 +2888,11 @@ class DropdownComponent {
|
|
|
2846
2888
|
return;
|
|
2847
2889
|
}
|
|
2848
2890
|
}));
|
|
2849
|
-
this.listeners.push(this.renderer.listen(this.
|
|
2891
|
+
this.listeners.push(this.renderer.listen(this.elementRef.nativeElement, 'keyup', (event) => {
|
|
2850
2892
|
if (event.key === 'Escape' && this.autoClose !== false) {
|
|
2893
|
+
event.stopPropagation();
|
|
2851
2894
|
this.setVisibleState(false);
|
|
2895
|
+
return;
|
|
2852
2896
|
}
|
|
2853
2897
|
}));
|
|
2854
2898
|
}
|
|
@@ -2861,15 +2905,15 @@ class DropdownComponent {
|
|
|
2861
2905
|
this.listeners = [];
|
|
2862
2906
|
}
|
|
2863
2907
|
}
|
|
2864
|
-
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 });
|
|
2865
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"] });
|
|
2866
2910
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
2867
2911
|
type: Component,
|
|
2868
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"] }]
|
|
2869
|
-
}], ctorParameters: function () { return [{ type:
|
|
2913
|
+
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
|
2870
2914
|
type: Inject,
|
|
2871
2915
|
args: [DOCUMENT]
|
|
2872
|
-
}] }, { 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: [{
|
|
2873
2917
|
type: Input
|
|
2874
2918
|
}], autoClose: [{
|
|
2875
2919
|
type: Input
|
|
@@ -4953,7 +4997,7 @@ class ModalContentComponent {
|
|
|
4953
4997
|
this.interactivityChecker.isFocusable(targetElement);
|
|
4954
4998
|
}
|
|
4955
4999
|
}
|
|
4956
|
-
ModalContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalContentComponent, deps: [{ token: i0.ElementRef }, { token:
|
|
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 });
|
|
4957
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 });
|
|
4958
5002
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalContentComponent, decorators: [{
|
|
4959
5003
|
type: Component,
|
|
@@ -4961,7 +5005,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
|
|
|
4961
5005
|
selector: 'c-modal-content',
|
|
4962
5006
|
template: '<ng-content></ng-content>'
|
|
4963
5007
|
}]
|
|
4964
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type:
|
|
5008
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2.InteractivityChecker }]; }, propDecorators: { hostClasses: [{
|
|
4965
5009
|
type: HostBinding,
|
|
4966
5010
|
args: ['class']
|
|
4967
5011
|
}], onClickHandler: [{
|
|
@@ -5359,7 +5403,7 @@ class ModalComponent {
|
|
|
5359
5403
|
}
|
|
5360
5404
|
}
|
|
5361
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 });
|
|
5362
|
-
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:
|
|
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: [
|
|
5363
5407
|
trigger('showHide', [
|
|
5364
5408
|
state('visible', style({
|
|
5365
5409
|
// display: 'block'
|
|
@@ -5439,7 +5483,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
|
|
|
5439
5483
|
args: ['@showHide.done', ['$event']]
|
|
5440
5484
|
}], onKeyDownHandler: [{
|
|
5441
5485
|
type: HostListener,
|
|
5442
|
-
args: ['document:
|
|
5486
|
+
args: ['document:keyup', ['$event']]
|
|
5443
5487
|
}], onMouseDownHandler: [{
|
|
5444
5488
|
type: HostListener,
|
|
5445
5489
|
args: ['mousedown', ['$event']]
|
|
@@ -5687,7 +5731,7 @@ class OffcanvasComponent {
|
|
|
5687
5731
|
}
|
|
5688
5732
|
}
|
|
5689
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 });
|
|
5690
|
-
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:
|
|
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: [
|
|
5691
5735
|
trigger('showHide', [
|
|
5692
5736
|
state('true', style({
|
|
5693
5737
|
visibility: 'visible',
|
|
@@ -9240,7 +9284,7 @@ class RoundedDirective {
|
|
|
9240
9284
|
classes[`rounded-${val}`] = true;
|
|
9241
9285
|
}
|
|
9242
9286
|
});
|
|
9243
|
-
console.log('rounded keys', keys, classes);
|
|
9287
|
+
// console.log('rounded keys', keys, classes);
|
|
9244
9288
|
return Object.entries(classes).length === 0 ? { rounded: false } : classes;
|
|
9245
9289
|
}
|
|
9246
9290
|
}
|