@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.
- package/autocomplete/autocomplete.module.d.ts +4 -5
- package/button/button.component.d.ts +0 -1
- package/checkbox/checkbox.component.d.ts +2 -2
- package/dropdown/dropdown.directive.d.ts +0 -1
- package/esm2020/autocomplete/autocomplete.module.mjs +2 -5
- package/esm2020/autocomplete/suggestion/suggestion.component.mjs +3 -4
- package/esm2020/button/button.component.mjs +4 -11
- package/esm2020/card/card.component.mjs +2 -2
- package/esm2020/card/section.component.mjs +2 -2
- package/esm2020/checkbox/checkbox.component.mjs +7 -10
- package/esm2020/dialog/dialog.component.mjs +3 -3
- package/esm2020/dropdown/dropdown-button/dropdown-button.component.mjs +3 -3
- package/esm2020/dropdown/dropdown.directive.mjs +4 -12
- package/esm2020/form/common-form.mjs +6 -15
- package/esm2020/icon/icon.component.mjs +3 -6
- package/esm2020/input/input.component.mjs +4 -13
- package/esm2020/input/tags-input/tags-input.component.mjs +5 -5
- package/esm2020/radio/base-radio.mjs +3 -9
- package/esm2020/select/multi-select/multi-select.component.mjs +7 -7
- package/esm2020/select/option/option.component.mjs +3 -9
- package/esm2020/select/select.component.mjs +3 -3
- package/esm2020/time-picker/panel/panel.component.mjs +5 -5
- package/esm2020/utils/fn.mjs +1 -10
- package/esm2020/utils/index.mjs +1 -2
- package/fesm2015/alauda-ui.mjs +69 -161
- package/fesm2015/alauda-ui.mjs.map +1 -1
- package/fesm2020/alauda-ui.mjs +69 -161
- package/fesm2020/alauda-ui.mjs.map +1 -1
- package/form/common-form.d.ts +2 -4
- package/input/input.component.d.ts +0 -1
- package/input/tags-input/tags-input.component.d.ts +1 -1
- package/package.json +1 -1
- package/radio/base-radio.d.ts +0 -1
- package/select/multi-select/multi-select.component.d.ts +1 -1
- package/select/option/option.component.d.ts +0 -1
- package/time-picker/panel/panel.component.d.ts +1 -1
- package/utils/fn.d.ts +0 -1
- package/utils/index.d.ts +0 -1
- package/esm2020/utils/e2e-attribute-binding.directive.mjs +0 -34
- package/utils/e2e-attribute-binding.directive.d.ts +0 -10
package/form/common-form.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef,
|
|
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
|
|
24
|
+
constructor(cdr: ChangeDetectorRef);
|
|
27
25
|
registerOnChange(fn: (_: V) => void): void;
|
|
28
26
|
registerOnTouched(fn: () => void): void;
|
|
29
27
|
setDisabledState(isDisabled: boolean): void;
|
|
@@ -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
|
|
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
package/radio/base-radio.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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,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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZTJlLWF0dHJpYnV0ZS1iaW5kaW5nLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlscy9lMmUtYXR0cmlidXRlLWJpbmRpbmcuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBaUIsU0FBUyxFQUFjLE1BQU0sZUFBZSxDQUFDOztBQUVyRSxNQUFNLGNBQWMsR0FBRyxDQUFDLEdBQVcsRUFBRSxFQUFFLENBQ3JDLEdBQUc7S0FDQSxVQUFVLENBQUMsSUFBSSxFQUFFLEVBQUUsQ0FBQztLQUNwQixVQUFVLENBQUMsSUFBSSxFQUFFLEVBQUUsQ0FBQztLQUNwQixVQUFVLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQztLQUNyQixVQUFVLENBQUMsR0FBRyxFQUFFLEVBQUUsQ0FBQyxDQUFDO0FBTXpCLE1BQU0sT0FBTyw0QkFBNEI7SUFDdkMsWUFBNkIsRUFBMkI7UUFBM0IsT0FBRSxHQUFGLEVBQUUsQ0FBeUI7SUFBRyxDQUFDO0lBRTVELGVBQWU7UUFDYixJQUFJLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDZixDQUFDO0lBRUQsS0FBSztRQUNILE1BQU0sV0FBVyxHQUFHLGNBQWMsQ0FDaEMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxhQUFhLENBQUMsT0FBTyxDQUFDLElBQUk7WUFDaEMsY0FBYyxDQUNaLElBQUksQ0FBQyxFQUFFLENBQUMsYUFBYSxDQUFDLFFBQVE7Z0JBQzVCLEdBQ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lbnRSZWY8SFRNTEVsZW1lbnQ+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
|
-
}
|