@coreui/angular-pro 4.0.0-alpha.5 → 4.0.0-alpha.6
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/multi-select/multi-select/multi-select.component.mjs +117 -94
- package/esm2020/lib/multi-select/multi-select-native-select/multi-select-native-select.component.mjs +3 -3
- package/esm2020/lib/multi-select/multi-select-optgroup/multi-select-optgroup.component.mjs +30 -3
- package/esm2020/lib/multi-select/multi-select-option/multi-select-option.component.mjs +31 -23
- package/fesm2015/coreui-angular-pro.mjs +198 -138
- package/fesm2015/coreui-angular-pro.mjs.map +1 -1
- package/fesm2020/coreui-angular-pro.mjs +194 -138
- package/fesm2020/coreui-angular-pro.mjs.map +1 -1
- package/lib/multi-select/multi-select/multi-select.component.d.ts +18 -8
- package/lib/multi-select/multi-select-optgroup/multi-select-optgroup.component.d.ts +13 -3
- package/lib/multi-select/multi-select-option/multi-select-option.component.d.ts +18 -15
- package/package.json +1 -1
|
@@ -6,6 +6,9 @@ import { IMultiSelect, IOption } from '../multi-select.type';
|
|
|
6
6
|
import { MultiSelectService } from '../multi-select.service';
|
|
7
7
|
import { MultiSelectOptionComponent } from '../multi-select-option/multi-select-option.component';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
+
interface IPluralMap {
|
|
10
|
+
[k: string]: string;
|
|
11
|
+
}
|
|
9
12
|
export declare class MultiSelectComponent implements IMultiSelect, ControlValueAccessor, AfterContentInit, AfterViewInit, OnDestroy, OnInit {
|
|
10
13
|
private elementRef;
|
|
11
14
|
private renderer;
|
|
@@ -15,13 +18,13 @@ export declare class MultiSelectComponent implements IMultiSelect, ControlValueA
|
|
|
15
18
|
private focusMonitor;
|
|
16
19
|
private multiSelectService;
|
|
17
20
|
constructor(elementRef: ElementRef, renderer: Renderer2, ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, viewContainerRef: ViewContainerRef, focusMonitor: FocusMonitor, multiSelectService: MultiSelectService);
|
|
21
|
+
static ngAcceptInputType_multiple: BooleanInput;
|
|
22
|
+
static ngAcceptInputType_disabled: BooleanInput;
|
|
18
23
|
onChange: any;
|
|
19
24
|
writeValue(value: (string | string[])): void;
|
|
20
25
|
registerOnChange(fn: any): void;
|
|
21
26
|
registerOnTouched(fn: any): void;
|
|
22
27
|
setDisabledState(isDisabled: boolean): void;
|
|
23
|
-
static ngAcceptInputType_multiple: BooleanInput;
|
|
24
|
-
static ngAcceptInputType_disabled: BooleanInput;
|
|
25
28
|
cleaner: boolean;
|
|
26
29
|
set disabled(value: boolean);
|
|
27
30
|
get disabled(): boolean;
|
|
@@ -40,6 +43,7 @@ export declare class MultiSelectComponent implements IMultiSelect, ControlValueA
|
|
|
40
43
|
selectAllLabel: string;
|
|
41
44
|
selectionType: 'counter' | 'tags' | 'text';
|
|
42
45
|
selectionTypeCounterText: string;
|
|
46
|
+
selectionTypeCounterTextPluralMap?: IPluralMap;
|
|
43
47
|
set value(value: string | string[]);
|
|
44
48
|
get value(): string | string[];
|
|
45
49
|
private _value;
|
|
@@ -49,10 +53,12 @@ export declare class MultiSelectComponent implements IMultiSelect, ControlValueA
|
|
|
49
53
|
private _visible;
|
|
50
54
|
readonly visibleChange: EventEmitter<boolean>;
|
|
51
55
|
isDropdownVisible: boolean;
|
|
56
|
+
set selectedOptions(value: any[]);
|
|
52
57
|
get selectedOptions(): any[];
|
|
53
58
|
private _selectedOptions;
|
|
54
59
|
get selectedOptionsText(): string;
|
|
55
60
|
get counterText(): string;
|
|
61
|
+
get counterTextType(): string;
|
|
56
62
|
private multiselectStateSubscription;
|
|
57
63
|
private multiselectVisibleSubscription;
|
|
58
64
|
private multiSelectOptionsSubscription;
|
|
@@ -71,12 +77,12 @@ export declare class MultiSelectComponent implements IMultiSelect, ControlValueA
|
|
|
71
77
|
private set tabIndex(value);
|
|
72
78
|
private _tabIndex;
|
|
73
79
|
onKeyUp($event: KeyboardEvent): void;
|
|
74
|
-
|
|
80
|
+
onKeyDown($event: KeyboardEvent): void;
|
|
75
81
|
onClick($event: MouseEvent): void;
|
|
76
82
|
visibleOptions: number;
|
|
77
|
-
set
|
|
78
|
-
get
|
|
79
|
-
private
|
|
83
|
+
set searchValue(value: string);
|
|
84
|
+
get searchValue(): string;
|
|
85
|
+
private _searchValue;
|
|
80
86
|
get subtreeFocused(): boolean;
|
|
81
87
|
set subtreeFocused(value: boolean);
|
|
82
88
|
private _subtreeFocused;
|
|
@@ -89,12 +95,16 @@ export declare class MultiSelectComponent implements IMultiSelect, ControlValueA
|
|
|
89
95
|
private multiselectSubscribe;
|
|
90
96
|
clearAllOptions($event: MouseEvent): void;
|
|
91
97
|
selectAllOptions(): void;
|
|
92
|
-
private clearListeners;
|
|
93
98
|
handleTagRemove($event: IOption): void;
|
|
94
99
|
setFocus(): void;
|
|
95
100
|
filterOptions(value: string): void;
|
|
96
101
|
createNativeSelect(): void;
|
|
97
102
|
updateNativeSelect(): void;
|
|
103
|
+
inputElementSize(): void;
|
|
104
|
+
handleSearchKeyDown($event: KeyboardEvent): void;
|
|
105
|
+
private selectOption;
|
|
106
|
+
private selectedOptionsUpdate;
|
|
98
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectComponent, never>;
|
|
99
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "c-multi-select", ["cMultiSelect"], { "cleaner": "cleaner"; "disabled": "disabled"; "multiple": "multiple"; "nativeName": "nativeName"; "nativeId": "nativeId"; "optionsMaxHeight": "optionsMaxHeight"; "optionsStyle": "optionsStyle"; "placeholder": "placeholder"; "search": "search"; "searchNoResultsLabel": "searchNoResultsLabel"; "selectAll": "selectAll"; "selectAllLabel": "selectAllLabel"; "selectionType": "selectionType"; "selectionTypeCounterText": "selectionTypeCounterText"; "value": "value"; "visible": "visible"; }, { "valueChange": "valueChange"; "visibleChange": "visibleChange"; }, ["multiSelectOptions"], ["*"]>;
|
|
108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "c-multi-select", ["cMultiSelect"], { "cleaner": "cleaner"; "disabled": "disabled"; "multiple": "multiple"; "nativeName": "nativeName"; "nativeId": "nativeId"; "optionsMaxHeight": "optionsMaxHeight"; "optionsStyle": "optionsStyle"; "placeholder": "placeholder"; "search": "search"; "searchNoResultsLabel": "searchNoResultsLabel"; "selectAll": "selectAll"; "selectAllLabel": "selectAllLabel"; "selectionType": "selectionType"; "selectionTypeCounterText": "selectionTypeCounterText"; "selectionTypeCounterTextPluralMap": "selectionTypeCounterTextPluralMap"; "value": "value"; "visible": "visible"; }, { "valueChange": "valueChange"; "visibleChange": "visibleChange"; }, ["multiSelectOptions"], ["*"]>;
|
|
100
109
|
}
|
|
110
|
+
export {};
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
+
import { AfterContentInit, OnChanges, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { MultiSelectOptionComponent } from '../multi-select-option/multi-select-option.component';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
1
4
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class MultiSelectOptgroupComponent {
|
|
5
|
+
export declare class MultiSelectOptgroupComponent implements AfterContentInit, OnChanges {
|
|
6
|
+
static ngAcceptInputType_disabled: BooleanInput;
|
|
3
7
|
label?: string;
|
|
4
|
-
disabled
|
|
8
|
+
set disabled(value: boolean);
|
|
9
|
+
get disabled(): boolean;
|
|
10
|
+
private _disabled;
|
|
11
|
+
multiSelectOptions: QueryList<MultiSelectOptionComponent>;
|
|
5
12
|
get hostClasses(): {
|
|
6
13
|
'form-multi-select-options': boolean;
|
|
7
14
|
};
|
|
15
|
+
ngAfterContentInit(): void;
|
|
16
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
17
|
+
private updateMultiSelectOptions;
|
|
8
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectOptgroupComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectOptgroupComponent, "c-multi-select-optgroup", never, { "label": "label"; "disabled": "disabled"; }, {},
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectOptgroupComponent, "c-multi-select-optgroup", never, { "label": "label"; "disabled": "disabled"; }, {}, ["multiSelectOptions"], ["*"]>;
|
|
10
20
|
}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { AfterContentInit, ElementRef, EventEmitter, Renderer2 } from '@angular/core';
|
|
1
|
+
import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
2
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
-
import { FocusableOption, FocusMonitor, FocusOrigin
|
|
3
|
+
import { FocusableOption, FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
|
|
4
4
|
import { MultiSelectService } from '../multi-select.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class MultiSelectOptionComponent implements AfterContentInit, FocusableOption,
|
|
6
|
+
export declare class MultiSelectOptionComponent implements AfterContentInit, FocusableOption, OnInit, OnDestroy {
|
|
7
7
|
private elementRef;
|
|
8
8
|
private renderer;
|
|
9
|
+
private changeDetectorRef;
|
|
9
10
|
private focusMonitor;
|
|
10
11
|
private multiSelectService;
|
|
11
|
-
constructor(elementRef: ElementRef, renderer: Renderer2, focusMonitor: FocusMonitor, multiSelectService: MultiSelectService);
|
|
12
|
+
constructor(elementRef: ElementRef, renderer: Renderer2, changeDetectorRef: ChangeDetectorRef, focusMonitor: FocusMonitor, multiSelectService: MultiSelectService);
|
|
12
13
|
static ngAcceptInputType_disabled: BooleanInput;
|
|
13
14
|
static ngAcceptInputType_selected: BooleanInput;
|
|
14
|
-
set disabled(value: boolean);
|
|
15
|
-
get disabled(): boolean;
|
|
16
|
-
private _disabled;
|
|
17
|
-
set selected(value: (boolean | undefined));
|
|
18
|
-
get selected(): (boolean | undefined);
|
|
19
|
-
private _selected;
|
|
20
15
|
optionsStyle: ('checkbox' | 'text');
|
|
21
16
|
label?: string;
|
|
22
17
|
value?: string;
|
|
@@ -24,6 +19,14 @@ export declare class MultiSelectOptionComponent implements AfterContentInit, Foc
|
|
|
24
19
|
selectedChange: EventEmitter<boolean>;
|
|
25
20
|
content?: ElementRef;
|
|
26
21
|
hasContent: boolean;
|
|
22
|
+
private multiselectVisibleSubscription;
|
|
23
|
+
private dropdownVisible;
|
|
24
|
+
set disabled(value: boolean);
|
|
25
|
+
get disabled(): boolean;
|
|
26
|
+
private _disabled;
|
|
27
|
+
set selected(value: (boolean | undefined));
|
|
28
|
+
get selected(): (boolean | undefined);
|
|
29
|
+
private _selected;
|
|
27
30
|
get hostClasses(): {
|
|
28
31
|
[x: string]: boolean | undefined;
|
|
29
32
|
'form-multi-select-option': boolean;
|
|
@@ -34,13 +37,13 @@ export declare class MultiSelectOptionComponent implements AfterContentInit, Foc
|
|
|
34
37
|
private get tabIndex();
|
|
35
38
|
private get ariaDisabled();
|
|
36
39
|
private get ariaSelected();
|
|
37
|
-
|
|
38
|
-
onClick
|
|
40
|
+
onKeyDown($event: KeyboardEvent): void;
|
|
41
|
+
private onClick;
|
|
39
42
|
ngAfterContentInit(): void;
|
|
40
|
-
setActiveStyles(): void;
|
|
41
|
-
setInactiveStyles(): void;
|
|
42
43
|
getLabel(): string;
|
|
43
44
|
focus(origin?: FocusOrigin): void;
|
|
45
|
+
ngOnDestroy(): void;
|
|
46
|
+
ngOnInit(): void;
|
|
44
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectOptionComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectOptionComponent, "c-multi-select-option", never, { "
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectOptionComponent, "c-multi-select-option", never, { "optionsStyle": "optionsStyle"; "label": "label"; "value": "value"; "visible": "visible"; "disabled": "disabled"; "selected": "selected"; }, { "selectedChange": "selectedChange"; }, never, ["*"]>;
|
|
46
49
|
}
|