@coreui/angular-pro 4.2.26 → 4.2.28
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/README.md +3 -3
- package/esm2020/lib/backdrop/backdrop.service.mjs +8 -2
- package/esm2020/lib/date-picker/date-picker.component.mjs +3 -3
- package/esm2020/lib/date-range-picker/date-range-picker/date-range-picker.component.mjs +25 -4
- package/esm2020/lib/dropdown/dropdown/dropdown.component.mjs +23 -15
- package/esm2020/lib/modal/modal/modal.component.mjs +2 -8
- package/esm2020/lib/multi-select/multi-select-tag/multi-select-tag.component.mjs +4 -23
- package/esm2020/lib/offcanvas/offcanvas/offcanvas.component.mjs +141 -69
- package/esm2020/lib/sidebar/sidebar/sidebar.component.mjs +2 -2
- package/esm2020/lib/tabs/tab-content/tab-content.component.mjs +2 -2
- package/fesm2015/coreui-angular-pro.mjs +195 -116
- package/fesm2015/coreui-angular-pro.mjs.map +1 -1
- package/fesm2020/coreui-angular-pro.mjs +192 -115
- package/fesm2020/coreui-angular-pro.mjs.map +1 -1
- package/lib/backdrop/backdrop.service.d.ts +2 -1
- package/lib/date-range-picker/date-range-picker/date-range-picker.component.d.ts +10 -1
- package/lib/dropdown/dropdown/dropdown.component.d.ts +4 -3
- package/lib/modal/modal/modal.component.d.ts +0 -1
- package/lib/multi-select/multi-select-tag/multi-select-tag.component.d.ts +3 -7
- package/lib/offcanvas/offcanvas/offcanvas.component.d.ts +28 -16
- package/lib/tabs/tab-content/tab-content.component.d.ts +1 -1
- 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;
|
|
@@ -14,7 +14,9 @@ export interface ICalendarRanges {
|
|
|
14
14
|
export declare type TCustomRange = [string, Date[]];
|
|
15
15
|
/** Must be a valid date string */
|
|
16
16
|
export declare class DateRangePickerComponent implements OnInit, OnDestroy, ControlValueAccessor, AfterViewInit, OnChanges {
|
|
17
|
+
#private;
|
|
17
18
|
private breakpointObserver;
|
|
19
|
+
static ngAcceptInputType_closeOnSelect: BooleanInput;
|
|
18
20
|
static ngAcceptInputType_disabled: BooleanInput;
|
|
19
21
|
static ngAcceptInputType_navYearFirst: BooleanInput;
|
|
20
22
|
constructor(breakpointObserver: BreakpointObserver);
|
|
@@ -40,6 +42,13 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
40
42
|
set cleaner(value: boolean);
|
|
41
43
|
get cleaner(): boolean;
|
|
42
44
|
private _cleaner;
|
|
45
|
+
/**
|
|
46
|
+
* Determine if the dropdown should be closed after value setting.
|
|
47
|
+
* @type boolean
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
set closeOnSelect(value: boolean);
|
|
51
|
+
get closeOnSelect(): boolean;
|
|
43
52
|
/**
|
|
44
53
|
* Set date format.
|
|
45
54
|
* We use date-fns to format dates. Visit https://date-fns.org/v2.28.0/docs/format to check accepted patterns.
|
|
@@ -236,5 +245,5 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
236
245
|
handleStartTimeChange(time: Date | undefined): void;
|
|
237
246
|
handleEndTimeChange(time: Date | undefined): void;
|
|
238
247
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
|
|
239
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "c-date-range-picker", ["cDateRangePicker"], { "dayFormat": "dayFormat"; "calendars": "calendars"; "cleaner": "cleaner"; "format": "format"; "indicator": "indicator"; "inputReadOnly": "inputReadOnly"; "navYearFirst": "navYearFirst"; "placeholder": "placeholder"; "ranges": "ranges"; "rangesButtonsColor": "rangesButtonsColor"; "rangesButtonsSize": "rangesButtonsSize"; "rangesButtonsVariant": "rangesButtonsVariant"; "separator": "separator"; "size": "size"; "timepicker": "timepicker"; "valid": "valid"; "visible": "visible"; "startDate": "startDate"; "endDate": "endDate"; "calendarDate": "calendarDate"; "disabledDates": "disabledDates"; "firstDayOfWeek": "firstDayOfWeek"; "locale": "locale"; "maxDate": "maxDate"; "minDate": "minDate"; "navigation": "navigation"; "range": "range"; "dateFilter": "dateFilter"; "disabled": "disabled"; "value": "value"; "weekdayFormat": "weekdayFormat"; "popperjsOptions": "popperOptions"; }, { "valueChange": "valueChange"; "calendarCellHover": "calendarCellHover"; "calendarDateChange": "calendarDateChange"; "endDateChange": "endDateChange"; "startDateChange": "startDateChange"; }, ["contentTemplates"], ["*"], false>;
|
|
248
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "c-date-range-picker", ["cDateRangePicker"], { "dayFormat": "dayFormat"; "calendars": "calendars"; "cleaner": "cleaner"; "closeOnSelect": "closeOnSelect"; "format": "format"; "indicator": "indicator"; "inputReadOnly": "inputReadOnly"; "navYearFirst": "navYearFirst"; "placeholder": "placeholder"; "ranges": "ranges"; "rangesButtonsColor": "rangesButtonsColor"; "rangesButtonsSize": "rangesButtonsSize"; "rangesButtonsVariant": "rangesButtonsVariant"; "separator": "separator"; "size": "size"; "timepicker": "timepicker"; "valid": "valid"; "visible": "visible"; "startDate": "startDate"; "endDate": "endDate"; "calendarDate": "calendarDate"; "disabledDates": "disabledDates"; "firstDayOfWeek": "firstDayOfWeek"; "locale": "locale"; "maxDate": "maxDate"; "minDate": "minDate"; "navigation": "navigation"; "range": "range"; "dateFilter": "dateFilter"; "disabled": "disabled"; "value": "value"; "weekdayFormat": "weekdayFormat"; "popperjsOptions": "popperOptions"; }, { "valueChange": "valueChange"; "calendarCellHover": "calendarCellHover"; "calendarDateChange": "calendarDateChange"; "endDateChange": "endDateChange"; "startDateChange": "startDateChange"; }, ["contentTemplates"], ["*"], false>;
|
|
240
249
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
1
|
+
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
3
|
import { Options, Placement } from '@popperjs/core';
|
|
4
|
-
import { DropdownService } from '../dropdown.service';
|
|
5
4
|
import { DropdownMenuDirective } from '../dropdown-menu/dropdown-menu.directive';
|
|
5
|
+
import { DropdownService } from '../dropdown.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare abstract class DropdownToken {
|
|
8
8
|
}
|
|
@@ -43,7 +43,7 @@ export declare class DropdownToggleDirective implements AfterViewInit {
|
|
|
43
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownToggleDirective, [null, null, { optional: true; }]>;
|
|
44
44
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownToggleDirective, "[cDropdownToggle]", ["cDropdownToggle"], { "dropdownComponent": "dropdownComponent"; "disabled": "disabled"; "caret": "caret"; "split": "split"; }, {}, never, never, false>;
|
|
45
45
|
}
|
|
46
|
-
export declare class DropdownComponent implements AfterContentInit, OnDestroy, OnInit {
|
|
46
|
+
export declare class DropdownComponent implements AfterContentInit, OnChanges, OnDestroy, OnInit {
|
|
47
47
|
private document;
|
|
48
48
|
private elementRef;
|
|
49
49
|
private renderer;
|
|
@@ -124,6 +124,7 @@ export declare class DropdownComponent implements AfterContentInit, OnDestroy, O
|
|
|
124
124
|
onClick(event: any): void;
|
|
125
125
|
ngAfterContentInit(): void;
|
|
126
126
|
ngOnInit(): void;
|
|
127
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
127
128
|
ngOnDestroy(): void;
|
|
128
129
|
setVisibleState(value: boolean): void;
|
|
129
130
|
createPopperInstance(): 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,21 +1,17 @@
|
|
|
1
|
-
import { EventEmitter
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { IOption } from '../multi-select.type';
|
|
3
3
|
import { MultiSelectService } from '../multi-select.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MultiSelectTagComponent
|
|
5
|
+
export declare class MultiSelectTagComponent {
|
|
6
6
|
private multiSelectService;
|
|
7
7
|
constructor(multiSelectService: MultiSelectService);
|
|
8
|
-
|
|
9
|
-
multiselectVisible: boolean;
|
|
8
|
+
multiselectVisible$: import("rxjs").Observable<boolean>;
|
|
10
9
|
option?: IOption;
|
|
11
10
|
remove: EventEmitter<IOption>;
|
|
12
11
|
get hostClasses(): {
|
|
13
12
|
'form-multi-select-tag': boolean;
|
|
14
13
|
};
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
ngOnDestroy(): void;
|
|
17
14
|
handleRemove($event: any): void;
|
|
18
|
-
private multiselectSubscribe;
|
|
19
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectTagComponent, never>;
|
|
20
16
|
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectTagComponent, "c-multi-select-tag", never, { "option": "option"; }, { "remove": "remove"; }, never, ["*"], false>;
|
|
21
17
|
}
|
|
@@ -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
|
}
|
|
@@ -13,7 +13,7 @@ export declare class TabContentComponent implements AfterContentChecked, AfterCo
|
|
|
13
13
|
get activeTabPaneIdx(): number;
|
|
14
14
|
private _activeTabPaneIdx;
|
|
15
15
|
/**
|
|
16
|
-
* Event
|
|
16
|
+
* Event emitted on the active tab pane index change.
|
|
17
17
|
*/
|
|
18
18
|
activeTabPaneIdxChange: EventEmitter<number>;
|
|
19
19
|
panes: QueryList<TabPaneComponent>;
|