@coreui/angular-pro 4.2.27 → 4.2.29
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/backdrop/backdrop.service.mjs +8 -2
- package/esm2020/lib/modal/modal/modal.component.mjs +2 -8
- package/esm2020/lib/multi-select/multi-select/multi-select.component.mjs +8 -4
- package/esm2020/lib/multi-select/multi-select-option/multi-select-option.component.mjs +8 -6
- package/esm2020/lib/offcanvas/offcanvas/offcanvas.component.mjs +143 -69
- package/esm2020/lib/sidebar/sidebar/sidebar.component.mjs +2 -2
- package/fesm2015/coreui-angular-pro.mjs +161 -82
- package/fesm2015/coreui-angular-pro.mjs.map +1 -1
- package/fesm2020/coreui-angular-pro.mjs +158 -81
- package/fesm2020/coreui-angular-pro.mjs.map +1 -1
- package/lib/backdrop/backdrop.service.d.ts +2 -1
- package/lib/modal/modal/modal.component.d.ts +0 -1
- package/lib/offcanvas/offcanvas/offcanvas.component.d.ts +28 -16
- package/package.json +1 -1
|
@@ -7,7 +7,8 @@ export declare class BackdropService {
|
|
|
7
7
|
backdropClick$: import("rxjs").Observable<boolean>;
|
|
8
8
|
private renderer;
|
|
9
9
|
private unListen;
|
|
10
|
-
constructor(document:
|
|
10
|
+
constructor(document: Document, rendererFactory: RendererFactory2);
|
|
11
|
+
get scrollbarWidth(): string;
|
|
11
12
|
setBackdrop(type?: string): any;
|
|
12
13
|
clearBackdrop(backdrop: any): any;
|
|
13
14
|
onClickHandler(): void;
|
|
@@ -86,7 +86,6 @@ export declare class ModalComponent implements OnInit, OnDestroy {
|
|
|
86
86
|
get show(): boolean;
|
|
87
87
|
set show(value: boolean);
|
|
88
88
|
private _show;
|
|
89
|
-
private get scrollbarWidth();
|
|
90
89
|
animateStart(event: AnimationEvent): void;
|
|
91
90
|
animateDone(event: AnimationEvent): void;
|
|
92
91
|
onKeyDownHandler(event: KeyboardEvent): void;
|
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter,
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { AnimationEvent } from '@angular/animations';
|
|
2
3
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
-
import {
|
|
4
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
4
5
|
import { BackdropService } from '../../backdrop/backdrop.service';
|
|
6
|
+
import { OffcanvasService } from '../offcanvas.service';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class OffcanvasComponent implements
|
|
8
|
+
export declare class OffcanvasComponent implements OnInit, OnDestroy {
|
|
9
|
+
#private;
|
|
7
10
|
private document;
|
|
8
11
|
private platformId;
|
|
9
12
|
private renderer;
|
|
10
13
|
private hostElement;
|
|
11
14
|
private offcanvasService;
|
|
12
15
|
private backdropService;
|
|
16
|
+
private breakpointObserver;
|
|
13
17
|
static ngAcceptInputType_scroll: BooleanInput;
|
|
14
|
-
constructor(document:
|
|
18
|
+
constructor(document: Document, platformId: any, renderer: Renderer2, hostElement: ElementRef, offcanvasService: OffcanvasService, backdropService: BackdropService, breakpointObserver: BreakpointObserver);
|
|
15
19
|
/**
|
|
16
20
|
* Apply a backdrop on body while offcanvas is open.
|
|
17
|
-
* @type boolean
|
|
21
|
+
* @type boolean | 'static'
|
|
18
22
|
* @default true
|
|
19
23
|
*/
|
|
20
|
-
backdrop: boolean;
|
|
24
|
+
backdrop: boolean | 'static';
|
|
21
25
|
/**
|
|
22
26
|
* Closes the offcanvas when escape key is pressed [docs]
|
|
23
27
|
* @type boolean
|
|
@@ -30,13 +34,20 @@ export declare class OffcanvasComponent implements OnChanges, OnInit, OnDestroy
|
|
|
30
34
|
* @default 'start'
|
|
31
35
|
*/
|
|
32
36
|
placement: string | 'start' | 'end' | 'top' | 'bottom';
|
|
37
|
+
/**
|
|
38
|
+
* Responsive offcanvas property hides content outside the viewport from a specified breakpoint and down.
|
|
39
|
+
* @type boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
40
|
+
* @default true
|
|
41
|
+
* @since 4.3.10
|
|
42
|
+
*/
|
|
43
|
+
responsive?: boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
33
44
|
/**
|
|
34
45
|
* Allow body scrolling while offcanvas is visible.
|
|
35
46
|
* @type boolean
|
|
47
|
+
* @default false
|
|
36
48
|
*/
|
|
37
49
|
set scroll(value: boolean);
|
|
38
50
|
get scroll(): boolean;
|
|
39
|
-
private _scroll;
|
|
40
51
|
id: string;
|
|
41
52
|
/**
|
|
42
53
|
* Default role for offcanvas. [docs]
|
|
@@ -53,30 +64,31 @@ export declare class OffcanvasComponent implements OnChanges, OnInit, OnDestroy
|
|
|
53
64
|
/**
|
|
54
65
|
* Toggle the visibility of offcanvas component.
|
|
55
66
|
* @type boolean
|
|
67
|
+
* @default false
|
|
56
68
|
*/
|
|
57
69
|
set visible(value: boolean);
|
|
58
70
|
get visible(): boolean;
|
|
59
|
-
private _visible;
|
|
60
71
|
/**
|
|
61
72
|
* Event triggered on visible change.
|
|
62
73
|
*/
|
|
63
|
-
visibleChange: EventEmitter<boolean>;
|
|
64
|
-
private activeBackdrop;
|
|
65
|
-
private stateToggleSubscription;
|
|
66
|
-
private backdropClickSubscription;
|
|
74
|
+
readonly visibleChange: EventEmitter<boolean>;
|
|
67
75
|
get hostClasses(): any;
|
|
68
76
|
get ariaHidden(): boolean | null;
|
|
69
77
|
get tabIndex(): string | null;
|
|
70
|
-
get
|
|
78
|
+
get animateTrigger(): string;
|
|
79
|
+
get show(): boolean;
|
|
80
|
+
set show(value: boolean);
|
|
81
|
+
animateStart(event: AnimationEvent): void;
|
|
82
|
+
animateDone(event: AnimationEvent): void;
|
|
71
83
|
onKeyDownHandler(event: KeyboardEvent): void;
|
|
72
84
|
ngOnInit(): void;
|
|
73
85
|
ngOnDestroy(): void;
|
|
74
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
75
86
|
private stateToggleSubscribe;
|
|
76
87
|
private backdropClickSubscribe;
|
|
77
88
|
private setBackdrop;
|
|
78
89
|
setFocus(): void;
|
|
79
|
-
|
|
90
|
+
get responsiveBreakpoint(): string | false;
|
|
91
|
+
private layoutChangeSubscribe;
|
|
80
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<OffcanvasComponent, never>;
|
|
81
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OffcanvasComponent, "c-offcanvas", ["cOffcanvas"], { "backdrop": "backdrop"; "keyboard": "keyboard"; "placement": "placement"; "scroll": "scroll"; "id": "id"; "role": "role"; "ariaModal": "ariaModal"; "visible": "visible"; }, { "visibleChange": "visibleChange"; }, never, ["*"], false>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OffcanvasComponent, "c-offcanvas", ["cOffcanvas"], { "backdrop": "backdrop"; "keyboard": "keyboard"; "placement": "placement"; "responsive": "responsive"; "scroll": "scroll"; "id": "id"; "role": "role"; "ariaModal": "ariaModal"; "visible": "visible"; }, { "visibleChange": "visibleChange"; }, never, ["*"], false>;
|
|
82
94
|
}
|