@alauda/ui 5.7.6-beta.6 → 5.7.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/alauda-ui.metadata.json +1 -1
- package/bundles/alauda-ui.umd.js +32 -22
- 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 +22 -16
- package/esm2015/select/multi-select/multi-select.component.ngfactory.js +3 -3
- package/esm2015/select/public-api.ngsummary.json +1 -1
- package/esm2015/select/select.component.js +1 -1
- package/esm2015/select/select.types.js +1 -1
- package/esm2015/select/select.types.ngsummary.json +1 -1
- package/esm2015/tree-select/tree-select.component.js +1 -1
- package/esm2015/tree-select/tree-select.types.js +1 -1
- package/fesm2015/alauda-ui.js +21 -15
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -1
- package/select/multi-select/multi-select.component.d.ts +3 -2
- package/select/select.component.d.ts +2 -2
- package/select/select.types.d.ts +0 -1
- package/tree-select/tree-select.component.d.ts +2 -2
- package/tree-select/tree-select.types.d.ts +1 -2
package/package.json
CHANGED
|
@@ -3,14 +3,15 @@ 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 { SelectAllStatus, SelectFilterOption,
|
|
7
|
-
export declare class MultiSelectComponent<T =
|
|
6
|
+
import { SelectAllStatus, SelectFilterOption, TagClassFn } from '../select.types';
|
|
7
|
+
export declare class MultiSelectComponent<T = unknown> extends BaseSelect<T, T[]> implements AfterContentInit, AfterViewInit {
|
|
8
8
|
private readonly renderer;
|
|
9
9
|
bem: Bem;
|
|
10
10
|
bemSelectAll: Bem;
|
|
11
11
|
selectedOptions$: Observable<Array<SelectFilterOption<T>>>;
|
|
12
12
|
selectAllStatus$: Observable<SelectAllStatus>;
|
|
13
13
|
selectAllStatus: SelectAllStatus;
|
|
14
|
+
hasEnabledOptions$: Observable<boolean>;
|
|
14
15
|
private _allowSelectAll;
|
|
15
16
|
selectedValues: T[];
|
|
16
17
|
values$: Observable<T[]>;
|
|
@@ -3,8 +3,8 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import { InputComponent } from '../input/public-api';
|
|
4
4
|
import { BaseSelect } from './base-select';
|
|
5
5
|
import { OptionComponent } from './option/option.component';
|
|
6
|
-
import { SelectOption
|
|
7
|
-
export declare class SelectComponent<T =
|
|
6
|
+
import { SelectOption } from './select.types';
|
|
7
|
+
export declare class SelectComponent<T = unknown> extends BaseSelect<T> implements AfterContentInit {
|
|
8
8
|
inputRef: InputComponent;
|
|
9
9
|
values$: Observable<T[]>;
|
|
10
10
|
selectedOption$: Observable<SelectOption>;
|
package/select/select.types.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { ElementRef, EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { CommonFormControl } from '../form/public-api';
|
|
4
4
|
import { InputComponent } from '../input/public-api';
|
|
5
|
-
import {
|
|
5
|
+
import { TrackFn } from '../select/select.types';
|
|
6
6
|
import { TooltipDirective } from '../tooltip/public-api';
|
|
7
7
|
import { TreeNodeComponent } from './tree-node/tree-node.component';
|
|
8
8
|
import { TreeNode } from './tree-select.types';
|
|
9
|
-
export declare class TreeSelectComponent<T =
|
|
9
|
+
export declare class TreeSelectComponent<T = unknown> extends CommonFormControl<T> {
|
|
10
10
|
get nodesData(): TreeNode<T>[];
|
|
11
11
|
set nodesData(val: TreeNode<T>[]);
|
|
12
12
|
loading: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { SelectPrimitiveValue } from '../select/select.types';
|
|
2
1
|
export declare type NodeFilterFn<T> = (filter: string, node: TreeNode<T>) => boolean;
|
|
3
|
-
export interface TreeNode<T =
|
|
2
|
+
export interface TreeNode<T = unknown> {
|
|
4
3
|
label: string;
|
|
5
4
|
value: T;
|
|
6
5
|
children?: Array<TreeNode<T>>;
|