@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.
- package/esm2020/lib/carousel/carousel/carousel.component.mjs +34 -2
- package/esm2020/lib/collapse/collapse.animations.mjs +7 -5
- 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 +68 -20
- package/fesm2015/coreui-angular.mjs.map +1 -1
- package/fesm2020/coreui-angular.mjs +66 -20
- 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
|
|
|
@@ -248,15 +248,17 @@ const expandAnimation = animation([
|
|
|
248
248
|
animate('{{ time }} {{ easing }}')
|
|
249
249
|
]);
|
|
250
250
|
const collapseAnimation = animation([
|
|
251
|
-
style({ height: '*',
|
|
252
|
-
animate('{{ time }} {{ easing }}', style({ height: 0,
|
|
251
|
+
style({ height: '*', minHeight: '*' }),
|
|
252
|
+
animate('{{ time }} {{ easing }}', style({ height: 0, minHeight: 0 }))
|
|
253
253
|
]);
|
|
254
254
|
const expandHorizontalAnimation = animation([
|
|
255
255
|
animate('{{ time }} {{ easing }}')
|
|
256
256
|
]);
|
|
257
257
|
const collapseHorizontalAnimation = animation([
|
|
258
|
-
style({ opacity: '*' }),
|
|
259
|
-
animate('{{ time }} {{ easing }}'
|
|
258
|
+
// style({ opacity: '*' }),
|
|
259
|
+
animate('{{ time }} {{ easing }}'
|
|
260
|
+
// style({ opacity: 0 })
|
|
261
|
+
)
|
|
260
262
|
]);
|
|
261
263
|
|
|
262
264
|
// todo
|
|
@@ -1951,6 +1953,12 @@ class CarouselComponent {
|
|
|
1951
1953
|
* @type {'hover' | 'focus' | 'click'}
|
|
1952
1954
|
*/
|
|
1953
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;
|
|
1954
1962
|
/**
|
|
1955
1963
|
* Set type of the transition.
|
|
1956
1964
|
* @type {'slide' | 'crossfade'}
|
|
@@ -1987,12 +1995,14 @@ class CarouselComponent {
|
|
|
1987
1995
|
this.clearListeners();
|
|
1988
1996
|
this.carouselStateSubscribe(false);
|
|
1989
1997
|
this.intersectionServiceSubscribe(false);
|
|
1998
|
+
this.swipeSubscribe(false);
|
|
1990
1999
|
}
|
|
1991
2000
|
ngAfterContentInit() {
|
|
1992
2001
|
this.intersectionService.createIntersectionObserver(this.hostElement);
|
|
1993
2002
|
this.intersectionServiceSubscribe();
|
|
1994
2003
|
this.carouselState.state = { activeItemIndex: this.activeIndex, animate: this.animate };
|
|
1995
2004
|
this.setListeners();
|
|
2005
|
+
this.swipeSubscribe();
|
|
1996
2006
|
}
|
|
1997
2007
|
setListeners() {
|
|
1998
2008
|
const config = {
|
|
@@ -2057,9 +2067,31 @@ class CarouselComponent {
|
|
|
2057
2067
|
(_a = this.intersectingSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
2058
2068
|
}
|
|
2059
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
|
+
}
|
|
2060
2092
|
}
|
|
2061
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 });
|
|
2062
|
-
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"] });
|
|
2063
2095
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: CarouselComponent, decorators: [{
|
|
2064
2096
|
type: Component,
|
|
2065
2097
|
args: [{ selector: 'c-carousel', template: '<ng-content></ng-content>', providers: [CarouselService, CarouselState, CarouselConfig, IntersectionService, ListenersService], styles: [":host{display:block}\n"] }]
|
|
@@ -2080,6 +2112,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
|
|
|
2080
2112
|
type: Input
|
|
2081
2113
|
}], pause: [{
|
|
2082
2114
|
type: Input
|
|
2115
|
+
}], touch: [{
|
|
2116
|
+
type: Input
|
|
2083
2117
|
}], transition: [{
|
|
2084
2118
|
type: Input
|
|
2085
2119
|
}], wrap: [{
|
|
@@ -2659,12 +2693,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
|
|
|
2659
2693
|
args: ['click', ['$event']]
|
|
2660
2694
|
}] } });
|
|
2661
2695
|
class DropdownComponent {
|
|
2662
|
-
constructor(document, elementRef, renderer, ngZone, changeDetectorRef, dropdownService) {
|
|
2696
|
+
constructor(document, elementRef, renderer, ngZone, changeDetectorRef, focusMonitor, dropdownService) {
|
|
2663
2697
|
this.document = document;
|
|
2664
2698
|
this.elementRef = elementRef;
|
|
2665
2699
|
this.renderer = renderer;
|
|
2666
2700
|
this.ngZone = ngZone;
|
|
2667
2701
|
this.changeDetectorRef = changeDetectorRef;
|
|
2702
|
+
this.focusMonitor = focusMonitor;
|
|
2668
2703
|
this.dropdownService = dropdownService;
|
|
2669
2704
|
this.autoClose = true;
|
|
2670
2705
|
this._dark = false;
|
|
@@ -2680,7 +2715,7 @@ class DropdownComponent {
|
|
|
2680
2715
|
strategy: 'absolute'
|
|
2681
2716
|
};
|
|
2682
2717
|
/**
|
|
2683
|
-
* Set the dropdown variant to
|
|
2718
|
+
* Set the dropdown variant to a btn-group, dropdown, input-group, and nav-item.
|
|
2684
2719
|
*/
|
|
2685
2720
|
this.variant = 'dropdown';
|
|
2686
2721
|
this._visible = false;
|
|
@@ -2812,12 +2847,22 @@ class DropdownComponent {
|
|
|
2812
2847
|
if (this.variant === 'nav-item') {
|
|
2813
2848
|
this.renderer.addClass(this._toggler.elementRef.nativeElement, 'nav-link');
|
|
2814
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
|
+
});
|
|
2815
2858
|
}
|
|
2816
2859
|
ngOnInit() {
|
|
2817
2860
|
this.dropdownStateSubscribe();
|
|
2818
2861
|
this.setVisibleState(this.visible);
|
|
2819
2862
|
}
|
|
2820
2863
|
ngOnDestroy() {
|
|
2864
|
+
var _a;
|
|
2865
|
+
(_a = this.focusMonitor) === null || _a === void 0 ? void 0 : _a.stopMonitoring(this.elementRef);
|
|
2821
2866
|
this.clearListeners();
|
|
2822
2867
|
this.dropdownStateSubscribe(false);
|
|
2823
2868
|
this.destroyPopperInstance();
|
|
@@ -2837,6 +2882,7 @@ class DropdownComponent {
|
|
|
2837
2882
|
}
|
|
2838
2883
|
this.ngZone.run(() => {
|
|
2839
2884
|
this.setListeners();
|
|
2885
|
+
this.changeDetectorRef.markForCheck();
|
|
2840
2886
|
this.changeDetectorRef.detectChanges();
|
|
2841
2887
|
});
|
|
2842
2888
|
});
|
|
@@ -2869,9 +2915,11 @@ class DropdownComponent {
|
|
|
2869
2915
|
return;
|
|
2870
2916
|
}
|
|
2871
2917
|
}));
|
|
2872
|
-
this.listeners.push(this.renderer.listen(this.
|
|
2918
|
+
this.listeners.push(this.renderer.listen(this.elementRef.nativeElement, 'keyup', (event) => {
|
|
2873
2919
|
if (event.key === 'Escape' && this.autoClose !== false) {
|
|
2920
|
+
event.stopPropagation();
|
|
2874
2921
|
this.setVisibleState(false);
|
|
2922
|
+
return;
|
|
2875
2923
|
}
|
|
2876
2924
|
}));
|
|
2877
2925
|
}
|
|
@@ -2884,16 +2932,16 @@ class DropdownComponent {
|
|
|
2884
2932
|
this.listeners = [];
|
|
2885
2933
|
}
|
|
2886
2934
|
}
|
|
2887
|
-
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 });
|
|
2888
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"] });
|
|
2889
2937
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
2890
2938
|
type: Component,
|
|
2891
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"] }]
|
|
2892
2940
|
}], ctorParameters: function () {
|
|
2893
|
-
return [{ type:
|
|
2941
|
+
return [{ type: Document, decorators: [{
|
|
2894
2942
|
type: Inject,
|
|
2895
2943
|
args: [DOCUMENT]
|
|
2896
|
-
}] }, { 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 }];
|
|
2897
2945
|
}, propDecorators: { alignment: [{
|
|
2898
2946
|
type: Input
|
|
2899
2947
|
}], autoClose: [{
|
|
@@ -4986,7 +5034,7 @@ class ModalContentComponent {
|
|
|
4986
5034
|
this.interactivityChecker.isFocusable(targetElement);
|
|
4987
5035
|
}
|
|
4988
5036
|
}
|
|
4989
|
-
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 });
|
|
4990
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 });
|
|
4991
5039
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalContentComponent, decorators: [{
|
|
4992
5040
|
type: Component,
|
|
@@ -4994,7 +5042,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
|
|
|
4994
5042
|
selector: 'c-modal-content',
|
|
4995
5043
|
template: '<ng-content></ng-content>'
|
|
4996
5044
|
}]
|
|
4997
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type:
|
|
5045
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2.InteractivityChecker }]; }, propDecorators: { hostClasses: [{
|
|
4998
5046
|
type: HostBinding,
|
|
4999
5047
|
args: ['class']
|
|
5000
5048
|
}], onClickHandler: [{
|
|
@@ -5395,7 +5443,7 @@ class ModalComponent {
|
|
|
5395
5443
|
}
|
|
5396
5444
|
}
|
|
5397
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 });
|
|
5398
|
-
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: [
|
|
5399
5447
|
trigger('showHide', [
|
|
5400
5448
|
state('visible', style({
|
|
5401
5449
|
// display: 'block'
|
|
@@ -5477,7 +5525,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
|
|
|
5477
5525
|
args: ['@showHide.done', ['$event']]
|
|
5478
5526
|
}], onKeyDownHandler: [{
|
|
5479
5527
|
type: HostListener,
|
|
5480
|
-
args: ['document:
|
|
5528
|
+
args: ['document:keyup', ['$event']]
|
|
5481
5529
|
}], onMouseDownHandler: [{
|
|
5482
5530
|
type: HostListener,
|
|
5483
5531
|
args: ['mousedown', ['$event']]
|
|
@@ -5726,7 +5774,7 @@ class OffcanvasComponent {
|
|
|
5726
5774
|
}
|
|
5727
5775
|
}
|
|
5728
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 });
|
|
5729
|
-
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: [
|
|
5730
5778
|
trigger('showHide', [
|
|
5731
5779
|
state('true', style({
|
|
5732
5780
|
visibility: 'visible',
|
|
@@ -9306,7 +9354,7 @@ class RoundedDirective {
|
|
|
9306
9354
|
classes[`rounded-${val}`] = true;
|
|
9307
9355
|
}
|
|
9308
9356
|
});
|
|
9309
|
-
console.log('rounded keys', keys, classes);
|
|
9357
|
+
// console.log('rounded keys', keys, classes);
|
|
9310
9358
|
return Object.entries(classes).length === 0 ? { rounded: false } : classes;
|
|
9311
9359
|
}
|
|
9312
9360
|
}
|