@coreui/angular-pro 4.5.28 → 4.5.30
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/esm2022/lib/backdrop/backdrop.service.mjs +53 -29
- package/esm2022/lib/backdrop/index.mjs +2 -0
- package/esm2022/lib/backdrop/public_api.mjs +2 -0
- package/esm2022/lib/modal/modal/modal.component.mjs +86 -57
- package/esm2022/lib/multi-select/multi-select/multi-select.component.mjs +5 -5
- package/esm2022/lib/multi-select/multi-select-option/multi-select-option.component.mjs +50 -63
- package/esm2022/lib/multi-select/multi-select-tag/multi-select-tag.component.mjs +4 -4
- package/esm2022/lib/offcanvas/offcanvas/offcanvas.component.mjs +48 -57
- package/esm2022/lib/smart-table/smart-table/smart-table.component.mjs +9 -3
- package/esm2022/lib/smart-table/smart-table-head/smart-table-head.component.mjs +21 -3
- package/esm2022/lib/smart-table/smart-table.type.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/coreui-angular-pro.mjs +289 -233
- package/fesm2022/coreui-angular-pro.mjs.map +1 -1
- package/lib/backdrop/backdrop.service.d.ts +7 -10
- package/lib/backdrop/index.d.ts +1 -0
- package/lib/backdrop/public_api.d.ts +1 -0
- package/lib/modal/modal/modal.component.d.ts +13 -13
- package/lib/multi-select/multi-select-option/multi-select-option.component.d.ts +8 -12
- package/lib/offcanvas/offcanvas/offcanvas.component.d.ts +12 -10
- package/lib/smart-table/smart-table/smart-table.component.d.ts +3 -0
- package/lib/smart-table/smart-table-head/smart-table-head.component.d.ts +4 -1
- package/lib/smart-table/smart-table.type.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { RendererFactory2 } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class BackdropService {
|
|
4
|
-
private
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
private renderer;
|
|
9
|
-
private unListen;
|
|
10
|
-
constructor(document: Document, rendererFactory: RendererFactory2);
|
|
11
|
-
get scrollbarWidth(): string;
|
|
3
|
+
#private;
|
|
4
|
+
readonly backdropClick$: import("rxjs").Observable<boolean>;
|
|
5
|
+
activeBackdrop: any;
|
|
6
|
+
scrollbarWidth: string;
|
|
12
7
|
setBackdrop(type?: string): any;
|
|
13
|
-
clearBackdrop(
|
|
8
|
+
clearBackdrop(backdropElement: any): any;
|
|
9
|
+
hideScrollbar(): void;
|
|
10
|
+
resetScrollbar(): void;
|
|
14
11
|
onClickHandler(): void;
|
|
15
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<BackdropService, never>;
|
|
16
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<BackdropService>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BackdropService } from './backdrop.service';
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
1
|
import { AnimationEvent } from '@angular/animations';
|
|
3
|
-
import {
|
|
2
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
4
3
|
import { ModalService } from '../modal.service';
|
|
5
4
|
import { BackdropService } from '../../backdrop/backdrop.service';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ModalComponent implements OnInit, OnDestroy {
|
|
6
|
+
export declare class ModalComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
7
|
+
#private;
|
|
8
8
|
private document;
|
|
9
9
|
private renderer;
|
|
10
10
|
private hostElement;
|
|
11
11
|
private modalService;
|
|
12
12
|
private backdropService;
|
|
13
|
-
static ngAcceptInputType_scrollable: BooleanInput;
|
|
14
|
-
static ngAcceptInputType_visible: BooleanInput;
|
|
15
13
|
constructor(document: Document, renderer: Renderer2, hostElement: ElementRef, modalService: ModalService, backdropService: BackdropService);
|
|
16
14
|
/**
|
|
17
15
|
* Align the modal in the center or top of the screen.
|
|
@@ -55,30 +53,27 @@ export declare class ModalComponent implements OnInit, OnDestroy {
|
|
|
55
53
|
/**
|
|
56
54
|
* Set aria-modal html attr for modal. [docs]
|
|
57
55
|
* @type boolean
|
|
58
|
-
* @default
|
|
56
|
+
* @default null
|
|
59
57
|
*/
|
|
60
|
-
ariaModal: boolean;
|
|
58
|
+
set ariaModal(value: boolean | null);
|
|
59
|
+
get ariaModal(): boolean | null;
|
|
61
60
|
/**
|
|
62
61
|
* Create a scrollable modal that allows scrolling the modal body.
|
|
63
62
|
* @type boolean
|
|
64
63
|
*/
|
|
65
|
-
|
|
66
|
-
get scrollable(): boolean;
|
|
67
|
-
private _scrollable;
|
|
64
|
+
scrollable: boolean;
|
|
68
65
|
/**
|
|
69
66
|
* Toggle the visibility of modal component.
|
|
70
67
|
* @type boolean
|
|
71
68
|
*/
|
|
72
69
|
set visible(value: boolean);
|
|
73
70
|
get visible(): boolean;
|
|
74
|
-
private _visible;
|
|
75
71
|
/**
|
|
76
72
|
* Event triggered on modal dismiss.
|
|
77
73
|
*/
|
|
78
74
|
visibleChange: EventEmitter<boolean>;
|
|
79
75
|
modalContent: ElementRef;
|
|
80
|
-
|
|
81
|
-
private stateToggleSubscription;
|
|
76
|
+
modalContentRef: ElementRef;
|
|
82
77
|
get hostClasses(): any;
|
|
83
78
|
get ariaHidden(): boolean | null;
|
|
84
79
|
get tabIndex(): string | null;
|
|
@@ -93,6 +88,7 @@ export declare class ModalComponent implements OnInit, OnDestroy {
|
|
|
93
88
|
onMouseDownHandler($event: MouseEvent): void;
|
|
94
89
|
onClickHandler($event: MouseEvent): void;
|
|
95
90
|
ngOnInit(): void;
|
|
91
|
+
ngAfterViewInit(): void;
|
|
96
92
|
ngOnDestroy(): void;
|
|
97
93
|
private stateToggleSubscribe;
|
|
98
94
|
private setBackdrop;
|
|
@@ -100,4 +96,8 @@ export declare class ModalComponent implements OnInit, OnDestroy {
|
|
|
100
96
|
private setStaticBackdrop;
|
|
101
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
102
98
|
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "c-modal", ["cModal"], { "alignment": { "alias": "alignment"; "required": false; }; "backdrop": { "alias": "backdrop"; "required": false; }; "fullscreen": { "alias": "fullscreen"; "required": false; }; "keyboard": { "alias": "keyboard"; "required": false; }; "id": { "alias": "id"; "required": false; }; "size": { "alias": "size"; "required": false; }; "transition": { "alias": "transition"; "required": false; }; "role": { "alias": "role"; "required": false; }; "ariaModal": { "alias": "ariaModal"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "visibleChange": "visibleChange"; }, never, ["*"], true, never>;
|
|
99
|
+
static ngAcceptInputType_keyboard: unknown;
|
|
100
|
+
static ngAcceptInputType_transition: unknown;
|
|
101
|
+
static ngAcceptInputType_scrollable: unknown;
|
|
102
|
+
static ngAcceptInputType_visible: unknown;
|
|
103
103
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, WritableSignal } from '@angular/core';
|
|
3
2
|
import { FocusableOption, FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
|
|
4
3
|
import { MultiSelectService } from '../multi-select.service';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -10,9 +9,6 @@ export declare class MultiSelectOptionComponent implements AfterViewInit, Focusa
|
|
|
10
9
|
private readonly focusMonitor;
|
|
11
10
|
private readonly multiSelectService;
|
|
12
11
|
constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, focusMonitor: FocusMonitor, multiSelectService: MultiSelectService);
|
|
13
|
-
static ngAcceptInputType_disabled: BooleanInput;
|
|
14
|
-
static ngAcceptInputType_selected: BooleanInput;
|
|
15
|
-
static ngAcceptInputType_visible: BooleanInput;
|
|
16
12
|
/**
|
|
17
13
|
* Option style
|
|
18
14
|
* @type ('checkbox' | 'text')
|
|
@@ -43,8 +39,7 @@ export declare class MultiSelectOptionComponent implements AfterViewInit, Focusa
|
|
|
43
39
|
* @type boolean
|
|
44
40
|
* @default false
|
|
45
41
|
*/
|
|
46
|
-
|
|
47
|
-
get disabled(): boolean;
|
|
42
|
+
disabled: boolean;
|
|
48
43
|
/**
|
|
49
44
|
* Option selected.
|
|
50
45
|
* @type boolean
|
|
@@ -65,9 +60,9 @@ export declare class MultiSelectOptionComponent implements AfterViewInit, Focusa
|
|
|
65
60
|
set value(value: string);
|
|
66
61
|
get value(): string;
|
|
67
62
|
private contentDiv?;
|
|
68
|
-
hasContent: boolean
|
|
69
|
-
set active(value: (boolean
|
|
70
|
-
get active(): (boolean
|
|
63
|
+
hasContent: WritableSignal<boolean>;
|
|
64
|
+
set active(value: (boolean));
|
|
65
|
+
get active(): (boolean);
|
|
71
66
|
readonly focusChange: EventEmitter<MultiSelectOptionComponent>;
|
|
72
67
|
private get role();
|
|
73
68
|
get hostClasses(): {
|
|
@@ -80,10 +75,8 @@ export declare class MultiSelectOptionComponent implements AfterViewInit, Focusa
|
|
|
80
75
|
focused: boolean;
|
|
81
76
|
};
|
|
82
77
|
private get tabIndex();
|
|
83
|
-
private set tabIndex(value);
|
|
84
78
|
private get ariaDisabled();
|
|
85
79
|
private get ariaSelected();
|
|
86
|
-
private set ariaSelected(value);
|
|
87
80
|
onKeyDown($event: KeyboardEvent): void;
|
|
88
81
|
private onBlur;
|
|
89
82
|
private onFocus;
|
|
@@ -97,4 +90,7 @@ export declare class MultiSelectOptionComponent implements AfterViewInit, Focusa
|
|
|
97
90
|
isSelected(value?: string): boolean;
|
|
98
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectOptionComponent, never>;
|
|
99
92
|
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectOptionComponent, "c-multi-select-option", ["cMultiSelectOption"], { "optionsStyle": { "alias": "optionsStyle"; "required": false; }; "label": { "alias": "label"; "required": false; }; "text": { "alias": "text"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "value": { "alias": "value"; "required": false; }; "active": { "alias": "active"; "required": false; }; "role": { "alias": "role"; "required": false; }; }, { "selectedChange": "selectedChange"; "focusChange": "focusChange"; }, never, ["*"], true, never>;
|
|
93
|
+
static ngAcceptInputType_visible: unknown;
|
|
94
|
+
static ngAcceptInputType_disabled: unknown;
|
|
95
|
+
static ngAcceptInputType_active: unknown;
|
|
100
96
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
1
|
import { AnimationEvent } from '@angular/animations';
|
|
3
|
-
import {
|
|
2
|
+
import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
4
3
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
5
4
|
import { BackdropService } from '../../backdrop/backdrop.service';
|
|
6
5
|
import { OffcanvasService } from '../offcanvas.service';
|
|
@@ -15,7 +14,6 @@ export declare class OffcanvasComponent implements OnInit, OnDestroy {
|
|
|
15
14
|
private backdropService;
|
|
16
15
|
private breakpointObserver;
|
|
17
16
|
constructor(document: Document, platformId: any, renderer: Renderer2, hostElement: ElementRef, offcanvasService: OffcanvasService, backdropService: BackdropService, breakpointObserver: BreakpointObserver);
|
|
18
|
-
static ngAcceptInputType_scroll: BooleanInput;
|
|
19
17
|
/**
|
|
20
18
|
* Apply a backdrop on body while offcanvas is open.
|
|
21
19
|
* @type boolean | 'static'
|
|
@@ -54,24 +52,24 @@ export declare class OffcanvasComponent implements OnInit, OnDestroy {
|
|
|
54
52
|
* @default true
|
|
55
53
|
*/
|
|
56
54
|
ariaModal: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Event triggered on visible change.
|
|
59
|
-
*/
|
|
60
|
-
readonly visibleChange: EventEmitter<boolean>;
|
|
61
|
-
get scroll(): boolean;
|
|
62
55
|
/**
|
|
63
56
|
* Allow body scrolling while offcanvas is visible.
|
|
64
57
|
* @type boolean
|
|
65
58
|
* @default false
|
|
66
59
|
*/
|
|
67
|
-
|
|
68
|
-
get visible(): boolean;
|
|
60
|
+
scroll: boolean;
|
|
69
61
|
/**
|
|
70
62
|
* Toggle the visibility of offcanvas component.
|
|
71
63
|
* @type boolean
|
|
72
64
|
* @default false
|
|
73
65
|
*/
|
|
74
66
|
set visible(value: boolean);
|
|
67
|
+
get visible(): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Event triggered on visible change.
|
|
70
|
+
* @type EventEmitter<boolean>
|
|
71
|
+
*/
|
|
72
|
+
readonly visibleChange: EventEmitter<boolean>;
|
|
75
73
|
get hostClasses(): any;
|
|
76
74
|
get ariaHidden(): boolean | null;
|
|
77
75
|
get tabIndex(): string | null;
|
|
@@ -91,4 +89,8 @@ export declare class OffcanvasComponent implements OnInit, OnDestroy {
|
|
|
91
89
|
private layoutChangeSubscribe;
|
|
92
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<OffcanvasComponent, never>;
|
|
93
91
|
static ɵcmp: i0.ɵɵComponentDeclaration<OffcanvasComponent, "c-offcanvas", ["cOffcanvas"], { "backdrop": { "alias": "backdrop"; "required": false; }; "keyboard": { "alias": "keyboard"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; "id": { "alias": "id"; "required": false; }; "role": { "alias": "role"; "required": false; }; "ariaModal": { "alias": "ariaModal"; "required": false; }; "scroll": { "alias": "scroll"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "visibleChange": "visibleChange"; }, never, ["*"], true, never>;
|
|
92
|
+
static ngAcceptInputType_keyboard: unknown;
|
|
93
|
+
static ngAcceptInputType_ariaModal: unknown;
|
|
94
|
+
static ngAcceptInputType_scroll: unknown;
|
|
95
|
+
static ngAcceptInputType_visible: unknown;
|
|
94
96
|
}
|
|
@@ -95,6 +95,9 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
|
|
|
95
95
|
columnFilterTemplates: {
|
|
96
96
|
[key: string]: (TemplateRef<any> | null);
|
|
97
97
|
};
|
|
98
|
+
columnLabelTemplates: {
|
|
99
|
+
[key: string]: (TemplateRef<any> | null);
|
|
100
|
+
};
|
|
98
101
|
summaryRowTemplate: TemplateRef<unknown> | null;
|
|
99
102
|
ngAfterContentInit(): void;
|
|
100
103
|
get selectedAll(): boolean | "indeterminate";
|
|
@@ -19,6 +19,8 @@ export declare class SmartTableHeadComponent implements OnInit {
|
|
|
19
19
|
sorterValue?: ISorterValue;
|
|
20
20
|
set columnFilterTemplates(value: any);
|
|
21
21
|
get columnFilterTemplates(): any;
|
|
22
|
+
set columnLabelTemplates(value: any);
|
|
23
|
+
get columnLabelTemplates(): any;
|
|
22
24
|
set summaryRowTemplate(value: TemplateRef<unknown> | null);
|
|
23
25
|
get summaryRowTemplate(): TemplateRef<unknown> | null;
|
|
24
26
|
readonly indeterminate$: BehaviorSubject<boolean>;
|
|
@@ -47,7 +49,8 @@ export declare class SmartTableHeadComponent implements OnInit {
|
|
|
47
49
|
}): void;
|
|
48
50
|
handleSelectAllChecked($event: Event): void;
|
|
49
51
|
getColumnFilter(column: IColumn | string): string;
|
|
52
|
+
getColumnLabel(column: IColumn | string): string;
|
|
50
53
|
get columnFilterEvent(): 'change' | 'input';
|
|
51
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableHeadComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableHeadComponent, "c-smart-table-head", never, { "columnFilter": { "alias": "columnFilter"; "required": false; }; "columnFilterState": { "alias": "columnFilterState"; "required": false; }; "columnSorter": { "alias": "columnSorter"; "required": false; }; "component": { "alias": "component"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selectAll": { "alias": "selectAll"; "required": false; }; "selectedAll": { "alias": "selectedAll"; "required": false; }; "sorterValue": { "alias": "sorterValue"; "required": false; }; "columnFilterTemplates": { "alias": "columnFilterTemplates"; "required": false; }; "summaryRowTemplate": { "alias": "summaryRowTemplate"; "required": false; }; }, { "columnFilterStateChange": "columnFilterStateChange"; "sorterStateChange": "sorterStateChange"; "selectAllChange": "selectAllChange"; }, never, never, true, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableHeadComponent, "c-smart-table-head", never, { "columnFilter": { "alias": "columnFilter"; "required": false; }; "columnFilterState": { "alias": "columnFilterState"; "required": false; }; "columnSorter": { "alias": "columnSorter"; "required": false; }; "component": { "alias": "component"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selectAll": { "alias": "selectAll"; "required": false; }; "selectedAll": { "alias": "selectedAll"; "required": false; }; "sorterValue": { "alias": "sorterValue"; "required": false; }; "columnFilterTemplates": { "alias": "columnFilterTemplates"; "required": false; }; "columnLabelTemplates": { "alias": "columnLabelTemplates"; "required": false; }; "summaryRowTemplate": { "alias": "summaryRowTemplate"; "required": false; }; }, { "columnFilterStateChange": "columnFilterStateChange"; "sorterStateChange": "sorterStateChange"; "selectAllChange": "selectAllChange"; }, never, never, true, never>;
|
|
53
56
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED