@alauda/ui 6.4.2-beta.7 → 6.4.2-beta.8

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.
Files changed (40) hide show
  1. package/autocomplete/autocomplete.module.d.ts +4 -5
  2. package/button/button.component.d.ts +0 -1
  3. package/checkbox/checkbox.component.d.ts +2 -2
  4. package/dropdown/dropdown.directive.d.ts +0 -1
  5. package/esm2020/autocomplete/autocomplete.module.mjs +2 -5
  6. package/esm2020/autocomplete/suggestion/suggestion.component.mjs +3 -4
  7. package/esm2020/button/button.component.mjs +4 -11
  8. package/esm2020/card/card.component.mjs +2 -2
  9. package/esm2020/card/section.component.mjs +2 -2
  10. package/esm2020/checkbox/checkbox.component.mjs +7 -10
  11. package/esm2020/dialog/dialog.component.mjs +3 -3
  12. package/esm2020/dropdown/dropdown-button/dropdown-button.component.mjs +3 -3
  13. package/esm2020/dropdown/dropdown.directive.mjs +4 -12
  14. package/esm2020/form/common-form.mjs +6 -15
  15. package/esm2020/icon/icon.component.mjs +3 -6
  16. package/esm2020/input/input.component.mjs +4 -13
  17. package/esm2020/input/tags-input/tags-input.component.mjs +5 -5
  18. package/esm2020/radio/base-radio.mjs +3 -9
  19. package/esm2020/select/multi-select/multi-select.component.mjs +7 -7
  20. package/esm2020/select/option/option.component.mjs +3 -9
  21. package/esm2020/select/select.component.mjs +3 -3
  22. package/esm2020/time-picker/panel/panel.component.mjs +5 -5
  23. package/esm2020/utils/fn.mjs +1 -10
  24. package/esm2020/utils/index.mjs +1 -2
  25. package/fesm2015/alauda-ui.mjs +69 -161
  26. package/fesm2015/alauda-ui.mjs.map +1 -1
  27. package/fesm2020/alauda-ui.mjs +69 -161
  28. package/fesm2020/alauda-ui.mjs.map +1 -1
  29. package/form/common-form.d.ts +2 -4
  30. package/input/input.component.d.ts +0 -1
  31. package/input/tags-input/tags-input.component.d.ts +1 -1
  32. package/package.json +1 -1
  33. package/radio/base-radio.d.ts +0 -1
  34. package/select/multi-select/multi-select.component.d.ts +1 -1
  35. package/select/option/option.component.d.ts +0 -1
  36. package/time-picker/panel/panel.component.d.ts +1 -1
  37. package/utils/fn.d.ts +0 -1
  38. package/utils/index.d.ts +0 -1
  39. package/esm2020/utils/e2e-attribute-binding.directive.mjs +0 -34
  40. package/utils/e2e-attribute-binding.directive.d.ts +0 -10
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { ReplaySubject } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
@@ -8,10 +8,8 @@ import * as i0 from "@angular/core";
8
8
  */
9
9
  export declare class CommonFormControl<V, M = V> implements ControlValueAccessor {
10
10
  protected cdr: ChangeDetectorRef;
11
- private readonly elementRef;
12
11
  get disabled(): boolean | '';
13
12
  set disabled(val: boolean | '');
14
- get testId(): string;
15
13
  get readonly(): boolean | "";
16
14
  set readonly(val: boolean | "");
17
15
  get propValue(): V;
@@ -23,7 +21,7 @@ export declare class CommonFormControl<V, M = V> implements ControlValueAccessor
23
21
  private _disabled;
24
22
  model: M;
25
23
  model$: ReplaySubject<M>;
26
- constructor(cdr: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>);
24
+ constructor(cdr: ChangeDetectorRef);
27
25
  registerOnChange(fn: (_: V) => void): void;
28
26
  registerOnTouched(fn: () => void): void;
29
27
  setDisabledState(isDisabled: boolean): void;
@@ -5,7 +5,6 @@ import * as i0 from "@angular/core";
5
5
  export declare class InputComponent {
6
6
  elementRef: ElementRef<HTMLInputElement>;
7
7
  private readonly renderer;
8
- get testId(): string;
9
8
  get size(): ComponentSize;
10
9
  set size(val: ComponentSize);
11
10
  get disabled(): boolean | '';
@@ -37,7 +37,7 @@ export declare class TagsInputComponent extends CommonFormControl<string[]> impl
37
37
  get rootClass(): string;
38
38
  get tagSize(): "medium" | "mini";
39
39
  get inputClass(): string;
40
- constructor(cdr: ChangeDetectorRef, fb: FormBuilder, renderer: Renderer2, injector: Injector, elementRef: ElementRef<HTMLElement>);
40
+ constructor(cdr: ChangeDetectorRef, fb: FormBuilder, renderer: Renderer2, injector: Injector);
41
41
  ngOnChanges({ inputValidator, inputAsyncValidator, disabled, }: SimpleChanges): void;
42
42
  ngAfterViewInit(): void;
43
43
  onRemove(index: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/ui",
3
- "version": "6.4.2-beta.7",
3
+ "version": "6.4.2-beta.8",
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",
@@ -11,7 +11,6 @@ export declare class BaseRadio implements OnInit, AfterViewInit, OnDestroy {
11
11
  disabled: boolean | '';
12
12
  get value(): unknown;
13
13
  set value(val: unknown);
14
- get _testId(): string;
15
14
  elRef: ElementRef;
16
15
  checked: boolean;
17
16
  name: string;
@@ -35,7 +35,7 @@ export declare class MultiSelectComponent<T = unknown> extends BaseSelect<T, T[]
35
35
  private readonly withMaxRowCount;
36
36
  focused: boolean;
37
37
  trackByValue: (_: number, item: SelectFilterOption<T>) => unknown;
38
- constructor(cdr: ChangeDetectorRef, renderer: Renderer2, elementRef: ElementRef);
38
+ constructor(cdr: ChangeDetectorRef, renderer: Renderer2);
39
39
  ngAfterContentInit(): void;
40
40
  ngAfterViewInit(): void;
41
41
  onShowOptions(): void;
@@ -16,7 +16,6 @@ export declare class OptionComponent<T> {
16
16
  private readonly disabled$$;
17
17
  get label(): string | TemplateRef<unknown>;
18
18
  set label(val: string | TemplateRef<unknown>);
19
- get testId(): string;
20
19
  get labelContext(): unknown;
21
20
  set labelContext(val: unknown);
22
21
  get value(): T;
@@ -38,7 +38,7 @@ export declare class TimePickerPanelComponent extends CommonFormControl<Dayjs> i
38
38
  secondRef: ElementRef<HTMLElement>;
39
39
  enabledColumns: number;
40
40
  firstScrolled: boolean;
41
- constructor(cdr: ChangeDetectorRef, elementRef: ElementRef);
41
+ constructor(cdr: ChangeDetectorRef);
42
42
  isDisabled(value: number, type: TimePickerControlType): boolean;
43
43
  ngOnChanges({ hourStep, minuteStep, secondStep }: SimpleChanges): void;
44
44
  writeValue(value: Dayjs): void;
package/utils/fn.d.ts CHANGED
@@ -3,4 +3,3 @@ export declare function isUndefined(val: unknown): boolean;
3
3
  export declare const last: <T>(values: T[]) => T;
4
4
  export declare const isTemplateRef: (label: any) => label is TemplateRef<unknown>;
5
5
  export declare const handlePixel: (value: number | string) => string;
6
- export declare const simplifyStringToTestId: (input: string) => string;
package/utils/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export * from './async';
2
2
  export * from './bem';
3
3
  export * from './coercion';
4
- export * from './e2e-attribute-binding.directive';
5
4
  export * from './fn';
6
5
  export * from './observe-dom';
7
6
  export * from './operators';
@@ -1,34 +0,0 @@
1
- import { Directive } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- const simplifyString = (str) => str
4
- .replaceAll('\r', '')
5
- .replaceAll('\n', '')
6
- .replaceAll('\\s', '')
7
- .replaceAll(' ', '');
8
- export class E2eAttributeBindingDirective {
9
- constructor(el) {
10
- this.el = el;
11
- }
12
- ngAfterViewInit() {
13
- this.setId();
14
- }
15
- setId() {
16
- const currentAttr = simplifyString(this.el.nativeElement.dataset.test ||
17
- simplifyString(this.el.nativeElement.nodeName +
18
- '/' +
19
- this.el.nativeElement.textContent));
20
- if (currentAttr !== this.el.nativeElement.dataset.test) {
21
- this.el.nativeElement.dataset.test = currentAttr;
22
- }
23
- }
24
- }
25
- E2eAttributeBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: E2eAttributeBindingDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
26
- E2eAttributeBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: E2eAttributeBindingDirective, selector: "[click]", ngImport: i0 });
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: E2eAttributeBindingDirective, decorators: [{
28
- type: Directive,
29
- args: [{
30
- // eslint-disable-next-line @angular-eslint/directive-selector
31
- selector: '[click]',
32
- }]
33
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZTJlLWF0dHJpYnV0ZS1iaW5kaW5nLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlscy9lMmUtYXR0cmlidXRlLWJpbmRpbmcuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBaUIsU0FBUyxFQUFjLE1BQU0sZUFBZSxDQUFDOztBQUVyRSxNQUFNLGNBQWMsR0FBRyxDQUFDLEdBQVcsRUFBRSxFQUFFLENBQ3JDLEdBQUc7S0FDQSxVQUFVLENBQUMsSUFBSSxFQUFFLEVBQUUsQ0FBQztLQUNwQixVQUFVLENBQUMsSUFBSSxFQUFFLEVBQUUsQ0FBQztLQUNwQixVQUFVLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQztLQUNyQixVQUFVLENBQUMsR0FBRyxFQUFFLEVBQUUsQ0FBQyxDQUFDO0FBTXpCLE1BQU0sT0FBTyw0QkFBNEI7SUFDdkMsWUFBNkIsRUFBMkI7UUFBM0IsT0FBRSxHQUFGLEVBQUUsQ0FBeUI7SUFBRyxDQUFDO0lBRTVELGVBQWU7UUFDYixJQUFJLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDZixDQUFDO0lBRUQsS0FBSztRQUNILE1BQU0sV0FBVyxHQUFHLGNBQWMsQ0FDaEMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxhQUFhL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W5nRGlyZWN0aXZlIGltcGxlbWVudHMgQWZ0ZXJWaWV3SW5pdCB7XG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgcmVhZG9ubHkgZWw6IEVsZW1lbnRSZWY8SFRNTEVsZW1lbnQ+KSB7fVxuXG4gIG5nQWZ0ZXJWaWV3SW5pdCgpOiB2b2lkIHtcbiAgICB0aGlzLnNldElkKCk7XG4gIH1cblxuICBzZXRJZCgpIHtcbiAgICBjb25zdCBjdXJyZW50QXR0ciA9IHNpbXBsaWZ5U3RyaW5nKFxuICAgICAgdGhpcy5lbC5uYXRpdmVFbGVtZW50LmRhdGFzZXQudGVzdCB8fFxuICAgICAgICBzaW1wbGlmeVN0cmluZyhcbiAgICAgICAgICB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQubm9kZU5hbWUgK1xuICAgICAgICAgICAgJy8nICtcbiAgICAgICAgICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC50ZXh0Q29udGVudCxcbiAgICAgICAgKSxcbiAgICApO1xuICAgIGlmIChjdXJyZW50QXR0ciAhPT0gdGhpcy5lbC5uYXRpdmVFbGVtZW50LmRhdGFzZXQudGVzdCkge1xuICAgICAgdGhpcy5lbC5uYXRpdmVFbGVtZW50LmRhdGFzZXQudGVzdCA9IGN1cnJlbnRBdHRyO1xuICAgIH1cbiAgfVxufVxuIl19
@@ -1,10 +0,0 @@
1
- import { AfterViewInit, ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class E2eAttributeBindingDirective implements AfterViewInit {
4
- private readonly el;
5
- constructor(el: ElementRef<HTMLElement>);
6
- ngAfterViewInit(): void;
7
- setId(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<E2eAttributeBindingDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<E2eAttributeBindingDirective, "[click]", never, {}, {}, never>;
10
- }