@alauda/ui 9.1.1-beta.9 → 9.1.2-beta

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.
@@ -5,7 +5,11 @@ import { ComponentSize } from '../../internal/types';
5
5
  import { Bem } from '../../internal/utils';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare const INPUT_ERROR_KEY = "input_data_error";
8
- export declare class TagsInputComponent extends CommonFormControl<string[]> implements AfterViewInit, OnChanges {
8
+ interface TagItem {
9
+ value: string;
10
+ isInputting: boolean;
11
+ }
12
+ export declare class TagsInputComponent extends CommonFormControl<string[], TagItem[]> implements AfterViewInit, OnChanges {
9
13
  private readonly fb;
10
14
  private readonly renderer;
11
15
  private readonly injector;
@@ -31,7 +35,7 @@ export declare class TagsInputComponent extends CommonFormControl<string[]> impl
31
35
  get maxHeight(): string;
32
36
  private readonly withMaxRowCount;
33
37
  focused: boolean;
34
- model: string[];
38
+ get confirmedTags(): TagItem[];
35
39
  readonly inputControl: UntypedFormControl;
36
40
  controlContainer: NgControl;
37
41
  get rootClass(): string;
@@ -45,13 +49,16 @@ export declare class TagsInputComponent extends CommonFormControl<string[]> impl
45
49
  onKeyDown(event: KeyboardEvent): void;
46
50
  onInputFocus(): void;
47
51
  onInputBlur(event: Event): void;
48
- trackByValue(_: number, value: string): string;
49
- protected valueIn(v: string[]): string[];
52
+ protected valueIn(v: string[]): TagItem[];
53
+ protected modelOut(model: TagItem[]): string[];
50
54
  private sortByReadonly;
51
- private pushValue;
55
+ private removeInputtingItem;
56
+ private confirmInputtingItem;
57
+ private confirmInput;
52
58
  private syncControlStatus;
53
59
  private removeInputControlError;
54
60
  private clearInput;
55
61
  static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputComponent, never>;
56
62
  static ɵcmp: i0.ɵɵComponentDeclaration<TagsInputComponent, "aui-tags-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "allowRepeat": { "alias": "allowRepeat"; "required": false; }; "allowEmpty": { "alias": "allowEmpty"; "required": false; }; "readonlyTags": { "alias": "readonlyTags"; "required": false; }; "maxRowCount": { "alias": "maxRowCount"; "required": false; }; "customRowHeight": { "alias": "customRowHeight"; "required": false; }; "inputValidator": { "alias": "inputValidator"; "required": false; }; "inputAsyncValidator": { "alias": "inputAsyncValidator"; "required": false; }; }, {}, never, never, true, never>;
57
63
  }
64
+ export {};
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@alauda/ui",
3
- "version": "9.1.1-beta.9",
3
+ "version": "9.1.2-beta",
4
4
  "description": "Angular UI components by Alauda Frontend Team.",
5
- "repository": "git+https://github.com/alauda/alauda-ui.git",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/alauda/ui.git"
8
+ },
6
9
  "author": "Alauda Frontend",
7
10
  "contributors": [
8
11
  "FengTianze",