@alauda/ui 6.3.1-beta.9 → 6.3.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.
@@ -1,6 +1,6 @@
1
1
  import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { BehaviorSubject } from 'rxjs';
3
+ import { ReplaySubject } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * form control 内部不保持 value 属性,当不使用 ngModel 时可以通过 [(value)] 实现双向绑定;
@@ -20,7 +20,7 @@ export declare class CommonFormControl<V, M = V> implements ControlValueAccessor
20
20
  private _propValue;
21
21
  private _disabled;
22
22
  model: M;
23
- model$: BehaviorSubject<M>;
23
+ model$: ReplaySubject<M>;
24
24
  constructor(cdr: ChangeDetectorRef);
25
25
  registerOnChange(fn: (_: V) => void): void;
26
26
  registerOnTouched(fn: () => void): void;
@@ -28,8 +28,8 @@ export declare class CommonFormControl<V, M = V> implements ControlValueAccessor
28
28
  writeValue(value: V): void;
29
29
  emitModel(model: M): void;
30
30
  emitValue(value: V): void;
31
- protected valueIn(v: V): M;
32
- protected modelOut(m: M): V;
31
+ protected valueIn(value: V): M;
32
+ protected modelOut(model: M): V;
33
33
  static ɵfac: i0.ɵɵFactoryDeclaration<CommonFormControl<any, any>, never>;
34
34
  static ɵdir: i0.ɵɵDirectiveDeclaration<CommonFormControl<any, any>, never, never, { "disabled": "disabled"; "readonly": "readonly"; "propValue": "value"; }, { "valueChange": "valueChange"; }, never>;
35
35
  }
@@ -31,6 +31,7 @@ export declare class TagsInputComponent extends CommonFormControl<string[]> impl
31
31
  get maxHeight(): string;
32
32
  private readonly withMaxRowCount;
33
33
  focused: boolean;
34
+ model: string[];
34
35
  readonly inputControl: FormControl;
35
36
  controlContainer: NgControl;
36
37
  get rootClass(): string;
@@ -39,13 +40,13 @@ export declare class TagsInputComponent extends CommonFormControl<string[]> impl
39
40
  constructor(cdr: ChangeDetectorRef, fb: FormBuilder, renderer: Renderer2, injector: Injector);
40
41
  ngOnChanges({ inputValidator, inputAsyncValidator, disabled, }: SimpleChanges): void;
41
42
  ngAfterViewInit(): void;
42
- protected valueIn(v: string[]): string[];
43
43
  onRemove(index: number): void;
44
44
  onInput(): void;
45
45
  onKeyDown(event: KeyboardEvent): void;
46
46
  onInputFocus(): void;
47
47
  onInputBlur(event: Event): void;
48
48
  trackByValue(_: number, value: string): string;
49
+ protected valueIn(v: string[]): string[];
49
50
  private sortByReadonly;
50
51
  private pushValue;
51
52
  private syncControlStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/ui",
3
- "version": "6.3.1-beta.9",
3
+ "version": "6.3.1",
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",
@@ -15,8 +15,8 @@ export declare class MultiSelectComponent<T = unknown> extends BaseSelect<T, T[]
15
15
  hasEnabledOptions$: Observable<boolean>;
16
16
  private _allowSelectAll;
17
17
  isMulti: boolean;
18
- selectedValues: T[];
19
- values$: import("rxjs").BehaviorSubject<T[]>;
18
+ model: T[];
19
+ values$: import("rxjs").ReplaySubject<T[]>;
20
20
  tagClassFn: TagClassFn<T>;
21
21
  maxRowCount: number;
22
22
  customRowHeight: number;
@@ -44,12 +44,13 @@ export declare class MultiSelectComponent<T = unknown> extends BaseSelect<T, T[]
44
44
  onInputFocus(): void;
45
45
  onInputBlur(): void;
46
46
  onKeyDown(event: KeyboardEvent): void;
47
- protected valueIn(v: T[]): T[];
48
47
  selectOption(option: OptionComponent<T>): void;
49
48
  addValue(value: T): void;
50
49
  removeValue(value: T): void;
51
50
  clearValue(event: Event): void;
52
51
  onSelectAllClick(): void;
52
+ private includes;
53
+ protected valueIn(v: T[]): T[];
53
54
  private resetInput;
54
55
  private setInputWidth;
55
56
  static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectComponent<any>, never>;