@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/ui",
3
- "version": "5.7.6-beta.6",
3
+ "version": "5.7.6",
4
4
  "description": "Angular UI components by Alauda Frontend Team.",
5
5
  "repository": "git+https://github.com/alauda/alauda-ui.git",
6
6
  "author": "Alauda Frontend",
@@ -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, SelectPrimitiveValue, TagClassFn } from '../select.types';
7
- export declare class MultiSelectComponent<T = SelectPrimitiveValue> extends BaseSelect<T, T[]> implements AfterContentInit, AfterViewInit {
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, SelectPrimitiveValue } from './select.types';
7
- export declare class SelectComponent<T = SelectPrimitiveValue> extends BaseSelect<T> implements AfterContentInit {
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>;
@@ -1,5 +1,4 @@
1
1
  import { TemplateRef } from '@angular/core';
2
- export declare type SelectPrimitiveValue = string | number | symbol | bigint;
3
2
  export interface SelectOption {
4
3
  label: string | TemplateRef<unknown>;
5
4
  labelContext?: unknown;
@@ -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 { SelectPrimitiveValue, TrackFn } from '../select/select.types';
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 = SelectPrimitiveValue> extends CommonFormControl<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 = SelectPrimitiveValue> {
2
+ export interface TreeNode<T = unknown> {
4
3
  label: string;
5
4
  value: T;
6
5
  children?: Array<TreeNode<T>>;