@alauda/ui 5.7.6-beta.0 → 5.7.6-beta.1
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/alauda-ui.metadata.json +1 -1
- package/bundles/alauda-ui.umd.js +74 -111
- package/bundles/alauda-ui.umd.js.map +1 -1
- package/bundles/alauda-ui.umd.min.js +1 -1
- package/bundles/alauda-ui.umd.min.js.map +1 -1
- package/esm2015/alauda-ui.ngsummary.json +1 -1
- package/esm2015/public-api.ngsummary.json +1 -1
- package/esm2015/select/multi-select/multi-select.component.js +47 -51
- package/esm2015/select/multi-select/multi-select.component.ngfactory.js +12 -9
- package/esm2015/select/multi-select/multi-select.component.ngsummary.json +1 -1
- package/esm2015/select/multi-select/multi-select.component.scss.ngstyle.js +1 -1
- package/esm2015/select/option/option.component.js +3 -31
- package/esm2015/select/option/option.component.ngfactory.js +4 -4
- package/esm2015/select/option/option.component.ngsummary.json +1 -1
- package/esm2015/select/public-api.ngsummary.json +1 -1
- package/esm2015/select/select.module.ngfactory.js +1 -1
- package/esm2015/select/select.types.js +7 -2
- package/esm2015/select/select.types.ngsummary.json +1 -1
- package/fesm2015/alauda-ui.js +55 -80
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -1
- package/select/multi-select/multi-select.component.d.ts +4 -6
- package/select/option/option.component.d.ts +0 -9
- package/select/select.types.d.ts +5 -0
|
@@ -3,11 +3,13 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import { Bem } from '../../utils';
|
|
4
4
|
import { BaseSelect } from '../base-select';
|
|
5
5
|
import { OptionComponent } from '../option/option.component';
|
|
6
|
-
import { SelectFilterOption, SelectPrimitiveValue, TagClassFn } from '../select.types';
|
|
6
|
+
import { SelectAllStatus, SelectFilterOption, SelectPrimitiveValue, TagClassFn } from '../select.types';
|
|
7
7
|
export declare class MultiSelectComponent<T = SelectPrimitiveValue> extends BaseSelect<T, T[]> implements AfterContentInit {
|
|
8
8
|
private readonly renderer;
|
|
9
9
|
bem: Bem;
|
|
10
|
+
bemSelectAll: Bem;
|
|
10
11
|
selectedOptions$: Observable<Array<SelectFilterOption<T>>>;
|
|
12
|
+
selectAllStatus$: Observable<SelectAllStatus>;
|
|
11
13
|
private _allowSelectAll;
|
|
12
14
|
selectedValues: T[];
|
|
13
15
|
values$: Observable<T[]>;
|
|
@@ -18,12 +20,9 @@ export declare class MultiSelectComponent<T = SelectPrimitiveValue> extends Base
|
|
|
18
20
|
set allowSelectAll(val: boolean | '');
|
|
19
21
|
inputRef: ElementRef<HTMLInputElement>;
|
|
20
22
|
inputValueMirror: ElementRef<HTMLElement>;
|
|
21
|
-
selectAllOption: OptionComponent<T>;
|
|
22
23
|
get hostPosition(): string;
|
|
23
24
|
get hostDisplay(): string;
|
|
24
25
|
inputValue: string;
|
|
25
|
-
selectAllIndeterminate: boolean;
|
|
26
|
-
selectAllIconChecked: boolean;
|
|
27
26
|
get rootClass(): string;
|
|
28
27
|
get tagSize(): "medium" | "mini";
|
|
29
28
|
get inputClass(): string;
|
|
@@ -45,8 +44,7 @@ export declare class MultiSelectComponent<T = SelectPrimitiveValue> extends Base
|
|
|
45
44
|
addValue(value: T): void;
|
|
46
45
|
removeValue(value: T): void;
|
|
47
46
|
clearValue(event: Event): void;
|
|
48
|
-
|
|
49
|
-
private calcSelectAllStatus;
|
|
47
|
+
onSelectAllClick(): void;
|
|
50
48
|
private resetInput;
|
|
51
49
|
private setInputWidth;
|
|
52
50
|
}
|
|
@@ -6,9 +6,6 @@ export declare class OptionComponent<T> {
|
|
|
6
6
|
private readonly cdr;
|
|
7
7
|
bem: Bem;
|
|
8
8
|
private _disabled;
|
|
9
|
-
private _isSelectAllOption;
|
|
10
|
-
private _indeterminate;
|
|
11
|
-
private _iconChecked;
|
|
12
9
|
private _label;
|
|
13
10
|
private _labelContext;
|
|
14
11
|
private _value;
|
|
@@ -23,12 +20,6 @@ export declare class OptionComponent<T> {
|
|
|
23
20
|
set value(val: T);
|
|
24
21
|
get disabled(): boolean | '';
|
|
25
22
|
set disabled(val: boolean | '');
|
|
26
|
-
get isSelectAllOption(): boolean | '';
|
|
27
|
-
set isSelectAllOption(val: boolean | '');
|
|
28
|
-
get indeterminate(): boolean | '';
|
|
29
|
-
set indeterminate(val: boolean | '');
|
|
30
|
-
get iconChecked(): boolean | '';
|
|
31
|
-
set iconChecked(val: boolean | '');
|
|
32
23
|
isMulti: boolean;
|
|
33
24
|
elRef: ElementRef;
|
|
34
25
|
private readonly select;
|
package/select/select.types.d.ts
CHANGED
|
@@ -13,3 +13,8 @@ export declare type TagClassFn<V, T extends string | TemplateRef<unknown> = stri
|
|
|
13
13
|
string | string[] | Set<string> | {
|
|
14
14
|
[className: string]: unknown;
|
|
15
15
|
};
|
|
16
|
+
export declare enum SelectAllStatus {
|
|
17
|
+
Empty = "",
|
|
18
|
+
Checked = "checked",
|
|
19
|
+
Indeterminate = "indeterminate"
|
|
20
|
+
}
|