@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
|
|
|
@@ -1953,6 +1953,12 @@ class CarouselComponent {
|
|
|
1953
1953
|
* @type {'hover' | 'focus' | 'click'}
|
|
1954
1954
|
*/
|
|
1955
1955
|
this.pause = 'hover';
|
|
1956
|
+
/**
|
|
1957
|
+
* Support left/right swipe interactions on touchscreen devices.
|
|
1958
|
+
* @type boolean
|
|
1959
|
+
* @default true
|
|
1960
|
+
*/
|
|
1961
|
+
this.touch = true;
|
|
1956
1962
|
/**
|
|
1957
1963
|
* Set type of the transition.
|
|
1958
1964
|
* @type {'slide' | 'crossfade'}
|
|
@@ -1989,12 +1995,14 @@ class CarouselComponent {
|
|
|
1989
1995
|
this.clearListeners();
|
|
1990
1996
|
this.carouselStateSubscribe(false);
|
|
1991
1997
|
this.intersectionServiceSubscribe(false);
|
|
1998
|
+
this.swipeSubscribe(false);
|
|
1992
1999
|
}
|
|
1993
2000
|
ngAfterContentInit() {
|
|
1994
2001
|
this.intersectionService.createIntersectionObserver(this.hostElement);
|
|
1995
2002
|
this.intersectionServiceSubscribe();
|
|
1996
2003
|
this.carouselState.state = { activeItemIndex: this.activeIndex, animate: this.animate };
|
|
1997
2004
|
this.setListeners();
|
|
2005
|
+
this.swipeSubscribe();
|
|
1998
2006
|
}
|
|
1999
2007
|
setListeners() {
|
|
2000
2008
|
const config = {
|
|
@@ -2059,9 +2067,31 @@ class CarouselComponent {
|
|
|
2059
2067
|
(_a = this.intersectingSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
2060
2068
|
}
|
|
2061
2069
|
}
|
|
2070
|
+
swipeSubscribe(subscribe = true) {
|
|
2071
|
+
var _a;
|
|
2072
|
+
if (this.touch && subscribe) {
|
|
2073
|
+
const carouselElement = this.hostElement.nativeElement;
|
|
2074
|
+
const touchStart$ = fromEvent(carouselElement, 'touchstart');
|
|
2075
|
+
const touchEnd$ = fromEvent(carouselElement, 'touchend');
|
|
2076
|
+
const touchMove$ = fromEvent(carouselElement, 'touchmove');
|
|
2077
|
+
this.swipeSubscription = touchStart$.pipe(zipWith(touchEnd$.pipe(withLatestFrom(touchMove$))))
|
|
2078
|
+
.subscribe(([touchstart, [touchend, touchmove]]) => {
|
|
2079
|
+
touchstart.stopPropagation();
|
|
2080
|
+
touchmove.stopPropagation();
|
|
2081
|
+
const distanceX = touchstart.touches[0].clientX - touchmove.touches[0].clientX;
|
|
2082
|
+
if (Math.abs(distanceX) > 0.3 * carouselElement.clientWidth && touchstart.timeStamp <= touchmove.timeStamp) {
|
|
2083
|
+
const nextIndex = this.carouselState.direction(distanceX > 0 ? 'next' : 'prev');
|
|
2084
|
+
this.carouselState.state = { activeItemIndex: nextIndex };
|
|
2085
|
+
}
|
|
2086
|
+
});
|
|
2087
|
+
}
|
|
2088
|
+
else {
|
|
2089
|
+
(_a = this.swipeSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2062
2092
|
}
|
|
2063
2093
|
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 });
|
|
2064
|
-
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"] });
|
|
2094
|
+
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"] });
|
|
2065
2095
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: CarouselComponent, decorators: [{
|
|
2066
2096
|
type: Component,
|
|
2067
2097
|
args: [{ selector: 'c-carousel', template: '<ng-content></ng-content>', providers: [CarouselService, CarouselState, CarouselConfig, IntersectionService, ListenersService], styles: [":host{display:block}\n"] }]
|
|
@@ -2082,6 +2112,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
|
|
|
2082
2112
|
type: Input
|
|
2083
2113
|
}], pause: [{
|
|
2084
2114
|
type: Input
|
|
2115
|
+
}], touch: [{
|
|
2116
|
+
type: Input
|
|
2085
2117
|
}], transition: [{
|
|
2086
2118
|
type: Input
|
|
2087
2119
|
}], wrap: [{
|
|
@@ -2661,12 +2693,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
|
|
|
2661
2693
|
args: ['click', ['$event']]
|
|
2662
2694
|
}] } });
|
|
2663
2695
|
class DropdownComponent {
|
|
2664
|
-
constructor(document, elementRef, renderer, ngZone, changeDetectorRef, dropdownService) {
|
|
2696
|
+
constructor(document, elementRef, renderer, ngZone, changeDetectorRef, focusMonitor, dropdownService) {
|
|
2665
2697
|
this.document = document;
|
|
2666
2698
|
this.elementRef = elementRef;
|
|
2667
2699
|
this.renderer = renderer;
|
|
2668
2700
|
this.ngZone = ngZone;
|
|
2669
2701
|
this.changeDetectorRef = changeDetectorRef;
|
|
2702
|
+
this.focusMonitor = focusMonitor;
|
|
2670
2703
|
this.dropdownService = dropdownService;
|
|
2671
2704
|
this.autoClose = true;
|
|
2672
2705
|
this._dark = false;
|
|
@@ -2682,7 +2715,7 @@ class DropdownComponent {
|
|
|
2682
2715
|
strategy: 'absolute'
|
|
2683
2716
|
};
|
|
2684
2717
|
/**
|
|
2685
|
-
* Set the dropdown variant to
|
|
2718
|
+
* Set the dropdown variant to a btn-group, dropdown, input-group, and nav-item.
|
|
2686
2719
|
*/
|
|
2687
2720
|
this.variant = 'dropdown';
|
|
2688
2721
|
this._visible = false;
|
|
@@ -2814,12 +2847,22 @@ class DropdownComponent {
|
|
|
2814
2847
|
if (this.variant === 'nav-item') {
|
|
2815
2848
|
this.renderer.addClass(this._toggler.elementRef.nativeElement, 'nav-link');
|
|
2816
2849
|
}
|
|
2850
|
+
this.focusMonitor.monitor(this.elementRef, true).subscribe(origin => {
|
|
2851
|
+
this.ngZone.run(() => {
|
|
2852
|
+
if ((!origin) && (this.autoClose === true || this.autoClose === 'outside')) {
|
|
2853
|
+
this.setVisibleState(false);
|
|
2854
|
+
this.changeDetectorRef.markForCheck();
|
|
2855
|
+
}
|
|
2856
|
+
});
|
|
2857
|
+
});
|
|
2817
2858
|
}
|
|
2818
2859
|
ngOnInit() {
|
|
2819
2860
|
this.dropdownStateSubscribe();
|
|
2820
2861
|
this.setVisibleState(this.visible);
|
|
2821
2862
|
}
|
|
2822
2863
|
ngOnDestroy() {
|
|
2864
|
+
var _a;
|
|
2865
|
+
(_a = this.focusMonitor) === null || _a === void 0 ? void 0 : _a.stopMonitoring(this.elementRef);
|
|
2823
2866
|
this.clearListeners();
|
|
2824
2867
|
this.dropdownStateSubscribe(false);
|
|
2825
2868
|
this.destroyPopperInstance();
|
|
@@ -2839,6 +2882,7 @@ class DropdownComponent {
|
|
|
2839
2882
|
}
|
|
2840
2883
|
this.ngZone.run(() => {
|
|
2841
2884
|
this.setListeners();
|
|
2885
|
+
this.changeDetectorRef.markForCheck();
|
|
2842
2886
|
this.changeDetectorRef.detectChanges();
|
|
2843
2887
|
});
|
|
2844
2888
|
});
|
|
@@ -2871,9 +2915,11 @@ class DropdownComponent {
|
|
|
2871
2915
|
return;
|
|
2872
2916
|
}
|
|
2873
2917
|
}));
|
|
2874
|
-
this.listeners.push(this.renderer.listen(this.
|
|
2918
|
+
this.listeners.push(this.renderer.listen(this.elementRef.nativeElement, 'keyup', (event) => {
|
|
2875
2919
|
if (event.key === 'Escape' && this.autoClose !== false) {
|
|
2920
|
+
event.stopPropagation();
|
|
2876
2921
|
this.setVisibleState(false);
|
|
2922
|
+
return;
|
|
2877
2923
|
}
|
|
2878
2924
|
}));
|
|
2879
2925
|
}
|
|
@@ -2886,16 +2932,16 @@ class DropdownComponent {
|
|
|
2886
2932
|
this.listeners = [];
|
|
2887
2933
|
}
|
|
2888
2934
|
}
|
|
2889
|
-
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 });
|
|
2935
|
+
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 });
|
|
2890
2936
|
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"] });
|
|
2891
2937
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
2892
2938
|
type: Component,
|
|
2893
2939
|
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"] }]
|
|
2894
2940
|
}], ctorParameters: function () {
|
|
2895
|
-
return [{ type:
|
|
2941
|
+
return [{ type: Document, decorators: [{
|
|
2896
2942
|
type: Inject,
|
|
2897
2943
|
args: [DOCUMENT]
|
|
2898
|
-
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: DropdownService }];
|
|
2944
|
+
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i2.FocusMonitor }, { type: DropdownService }];
|
|
2899
2945
|
}, propDecorators: { alignment: [{
|
|
2900
2946
|
type: Input
|
|
2901
2947
|
}], autoClose: [{
|
|
@@ -4988,7 +5034,7 @@ class ModalContentComponent {
|
|
|
4988
5034
|
this.interactivityChecker.isFocusable(targetElement);
|
|
4989
5035
|
}
|
|
4990
5036
|
}
|
|
4991
|
-
ModalContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalContentComponent, deps: [{ token: i0.ElementRef }, { token:
|
|
5037
|
+
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 });
|
|
4992
5038
|
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 });
|
|
4993
5039
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalContentComponent, decorators: [{
|
|
4994
5040
|
type: Component,
|
|
@@ -4996,7 +5042,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
|
|
|
4996
5042
|
selector: 'c-modal-content',
|
|
4997
5043
|
template: '<ng-content></ng-content>'
|
|
4998
5044
|
}]
|
|
4999
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type:
|
|
5045
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2.InteractivityChecker }]; }, propDecorators: { hostClasses: [{
|
|
5000
5046
|
type: HostBinding,
|
|
5001
5047
|
args: ['class']
|
|
5002
5048
|
}], onClickHandler: [{
|
|
@@ -5397,7 +5443,7 @@ class ModalComponent {
|
|
|
5397
5443
|
}
|
|
5398
5444
|
}
|
|
5399
5445
|
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 });
|
|
5400
|
-
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:
|
|
5446
|
+
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: [
|
|
5401
5447
|
trigger('showHide', [
|
|
5402
5448
|
state('visible', style({
|
|
5403
5449
|
// display: 'block'
|
|
@@ -5479,7 +5525,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
|
|
|
5479
5525
|
args: ['@showHide.done', ['$event']]
|
|
5480
5526
|
}], onKeyDownHandler: [{
|
|
5481
5527
|
type: HostListener,
|
|
5482
|
-
args: ['document:
|
|
5528
|
+
args: ['document:keyup', ['$event']]
|
|
5483
5529
|
}], onMouseDownHandler: [{
|
|
5484
5530
|
type: HostListener,
|
|
5485
5531
|
args: ['mousedown', ['$event']]
|
|
@@ -5728,7 +5774,7 @@ class OffcanvasComponent {
|
|
|
5728
5774
|
}
|
|
5729
5775
|
}
|
|
5730
5776
|
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 });
|
|
5731
|
-
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:
|
|
5777
|
+
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: [
|
|
5732
5778
|
trigger('showHide', [
|
|
5733
5779
|
state('true', style({
|
|
5734
5780
|
visibility: 'visible',
|
|
@@ -9308,7 +9354,7 @@ class RoundedDirective {
|
|
|
9308
9354
|
classes[`rounded-${val}`] = true;
|
|
9309
9355
|
}
|
|
9310
9356
|
});
|
|
9311
|
-
console.log('rounded keys', keys, classes);
|
|
9357
|
+
// console.log('rounded keys', keys, classes);
|
|
9312
9358
|
return Object.entries(classes).length === 0 ? { rounded: false } : classes;
|
|
9313
9359
|
}
|
|
9314
9360
|
}
|