aeb-ui-kit 3.1.0-preview.620 → 3.1.0-preview.626

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 (30) hide show
  1. package/esm2020/lib/comment/comment.component.mjs +4 -5
  2. package/esm2020/lib/datepicker/datepicker.component.mjs +4 -4
  3. package/esm2020/lib/dropdown/dropdown.component.mjs +3 -3
  4. package/esm2020/lib/field-slider/field-slider.component.mjs +3 -3
  5. package/esm2020/lib/file-attach/file-attach.component.mjs +2 -2
  6. package/esm2020/lib/form-field/error-message.directive.mjs +14 -0
  7. package/esm2020/lib/form-field/form-field.component.mjs +84 -51
  8. package/esm2020/lib/form-field/form-field.directive.mjs +84 -0
  9. package/esm2020/lib/form-field/form-field.module.mjs +15 -15
  10. package/esm2020/lib/form-field/icon.directive.mjs +3 -3
  11. package/esm2020/lib/new-button/new-button.component.mjs +2 -2
  12. package/esm2020/lib/slider/slider.component.mjs +3 -3
  13. package/esm2020/public-api.mjs +3 -3
  14. package/fesm2015/aeb-ui-kit.mjs +154 -160
  15. package/fesm2015/aeb-ui-kit.mjs.map +1 -1
  16. package/fesm2020/aeb-ui-kit.mjs +151 -158
  17. package/fesm2020/aeb-ui-kit.mjs.map +1 -1
  18. package/lib/datepicker/datepicker.component.d.ts +2 -2
  19. package/lib/form-field/error-message.directive.d.ts +6 -0
  20. package/lib/form-field/form-field.component.d.ts +13 -13
  21. package/lib/form-field/form-field.directive.d.ts +22 -0
  22. package/lib/form-field/form-field.module.d.ts +5 -5
  23. package/lib/form-field/icon.directive.d.ts +1 -1
  24. package/package.json +1 -1
  25. package/public-api.d.ts +2 -2
  26. package/styles.css +6 -0
  27. package/esm2020/lib/form-field/input.directive.mjs +0 -69
  28. package/esm2020/lib/form-field/textarea.directive.mjs +0 -69
  29. package/lib/form-field/input.directive.d.ts +0 -26
  30. package/lib/form-field/textarea.directive.d.ts +0 -26
@@ -1,6 +1,6 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { InputDirective } from '../form-field/input.directive';
3
+ import { FormFieldDirective } from '../form-field/form-field.directive';
4
4
  import { DatepickerCoreComponent } from './datepicker-core/datepicker-core.component';
5
5
  import { DatepickerUtilsService } from './services/datepicker-utils.service';
6
6
  import { MaskUtilsService } from './services/mask-utils.service';
@@ -22,7 +22,7 @@ export declare class DatepickerComponent implements OnInit, ControlValueAccessor
22
22
  collapseOnChange: boolean;
23
23
  withoutDays: boolean;
24
24
  core: DatepickerCoreComponent;
25
- input: InputDirective;
25
+ input: FormFieldDirective;
26
26
  container: ElementRef<HTMLDivElement>;
27
27
  dateChange: EventEmitter<Date | null>;
28
28
  clearVl: string;
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ErrorMessageDirective {
3
+ constructor();
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMessageDirective, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ErrorMessageDirective, "[errorMessage]", never, {}, {}, never, never, false>;
6
+ }
@@ -1,20 +1,20 @@
1
- import { OnInit } from '@angular/core';
2
- import { InputDirective } from './input.directive';
3
- import { TextareaDirective } from './textarea.directive';
1
+ import { FormFieldDirective } from './form-field.directive';
4
2
  import * as i0 from "@angular/core";
5
- export declare class FormFieldComponent implements OnInit {
6
- input: InputDirective;
7
- textarea: TextareaDirective;
3
+ export declare class FormFieldComponent {
4
+ formField: FormFieldDirective;
8
5
  class: string;
9
- center?: boolean;
10
- onError: boolean;
11
- cssMod: 'svoi';
12
- constructor();
6
+ isInvalid: boolean;
7
+ showIcon: boolean;
8
+ showErrorMessage: boolean;
9
+ private _isDisabled;
10
+ set disabled(value: boolean);
11
+ get disabled(): boolean;
13
12
  get focused(): boolean;
14
- get svoi(): boolean;
15
13
  get hasValue(): boolean;
16
14
  get error(): boolean;
17
- ngOnInit(): void;
15
+ get isDisabled(): boolean;
16
+ get hasIcon(): boolean;
17
+ get isFocused(): boolean;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "aeb-form-field", never, { "center": "center"; "onError": "onError"; "cssMod": "cssMod"; }, {}, ["input", "textarea"], ["*", "aeb-label", "aeb-icon"], false>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "aeb-form-field", never, { "isInvalid": "isInvalid"; "showIcon": "showIcon"; "showErrorMessage": "showErrorMessage"; "disabled": "disabled"; }, {}, ["formField"], ["*", "aeb-label", "[aebIcon]", "[errorMessage]"], false>;
20
20
  }
@@ -0,0 +1,22 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { NgControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FormFieldDirective {
5
+ ngControl: NgControl;
6
+ private elementRef;
7
+ class: string;
8
+ get isDisabled(): true;
9
+ isFocused: boolean;
10
+ hasValue: boolean;
11
+ _value: string;
12
+ constructor(ngControl: NgControl, elementRef: ElementRef);
13
+ get value(): string;
14
+ set value(value: string);
15
+ change(value: string): void;
16
+ focus(): void;
17
+ blur(): void;
18
+ disable(): void;
19
+ enable(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldDirective, [{ optional: true; self: true; }, null]>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormFieldDirective, "input[aebInput], textarea[aebTextarea]", never, { "value": "value"; }, {}, never, never, false>;
22
+ }
@@ -1,12 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./form-field.component";
3
- import * as i2 from "./label.directive";
4
- import * as i3 from "./input.directive";
5
- import * as i4 from "./textarea.directive";
6
- import * as i5 from "./icon.directive";
3
+ import * as i2 from "./form-field.directive";
4
+ import * as i3 from "./label.directive";
5
+ import * as i4 from "./icon.directive";
6
+ import * as i5 from "./error-message.directive";
7
7
  import * as i6 from "@angular/common";
8
8
  export declare class FormFieldModule {
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormFieldModule, [typeof i1.FormFieldComponent, typeof i2.LabelDirective, typeof i3.InputDirective, typeof i4.TextareaDirective, typeof i5.IconDirective], [typeof i6.CommonModule], [typeof i1.FormFieldComponent, typeof i2.LabelDirective, typeof i3.InputDirective, typeof i4.TextareaDirective, typeof i5.IconDirective]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormFieldModule, [typeof i1.FormFieldComponent, typeof i2.FormFieldDirective, typeof i3.LabelDirective, typeof i4.IconDirective, typeof i5.ErrorMessageDirective], [typeof i6.CommonModule], [typeof i1.FormFieldComponent, typeof i2.FormFieldDirective, typeof i3.LabelDirective, typeof i4.IconDirective, typeof i5.ErrorMessageDirective]>;
11
11
  static ɵinj: i0.ɵɵInjectorDeclaration<FormFieldModule>;
12
12
  }
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
2
2
  export declare class IconDirective {
3
3
  constructor();
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<IconDirective, never>;
5
- static ɵdir: i0.ɵɵDirectiveDeclaration<IconDirective, "[aeb-icon]", never, {}, {}, never, never, false>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IconDirective, "[aebIcon]", never, {}, {}, never, never, false>;
6
6
  }
package/package.json CHANGED
@@ -1 +1 @@
1
- { "name": "aeb-ui-kit", "version": "3.1.0-preview.620", "peerDependencies": { "@angular/animations": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/common": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/compiler": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/core": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/forms": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/platform-browser": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/platform-browser-dynamic": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/router": "^14.1.0 || ^15.0.0 || ^16.0.0", "date-fns": "2.28.0", "ngx-mask": "~14.2.4", "rxjs": "^7.0.0", "sass": "^1.53.0", "zone.js": "^0.11.0 || ^0.12.0 || ^0.13.0" }, "module": "fesm2015/aeb-ui-kit.mjs", "es2020": "fesm2020/aeb-ui-kit.mjs", "esm2020": "esm2020/aeb-ui-kit.mjs", "fesm2020": "fesm2020/aeb-ui-kit.mjs", "fesm2015": "fesm2015/aeb-ui-kit.mjs", "typings": "index.d.ts", "exports": { "./package.json": { "default": "./package.json" }, ".": { "types": "./index.d.ts", "esm2020": "./esm2020/aeb-ui-kit.mjs", "es2020": "./fesm2020/aeb-ui-kit.mjs", "es2015": "./fesm2015/aeb-ui-kit.mjs", "node": "./fesm2015/aeb-ui-kit.mjs", "default": "./fesm2020/aeb-ui-kit.mjs" } }, "sideEffects": false, "dependencies": { "tslib": "^2.4.0" } }
1
+ { "name": "aeb-ui-kit", "version": "3.1.0-preview.626", "peerDependencies": { "@angular/animations": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/common": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/compiler": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/core": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/forms": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/platform-browser": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/platform-browser-dynamic": "^14.1.0 || ^15.0.0 || ^16.0.0", "@angular/router": "^14.1.0 || ^15.0.0 || ^16.0.0", "date-fns": "2.28.0", "ngx-mask": "~14.2.4", "rxjs": "^7.0.0", "sass": "^1.53.0", "zone.js": "^0.11.0 || ^0.12.0 || ^0.13.0" }, "module": "fesm2015/aeb-ui-kit.mjs", "es2020": "fesm2020/aeb-ui-kit.mjs", "esm2020": "esm2020/aeb-ui-kit.mjs", "fesm2020": "fesm2020/aeb-ui-kit.mjs", "fesm2015": "fesm2015/aeb-ui-kit.mjs", "typings": "index.d.ts", "exports": { "./package.json": { "default": "./package.json" }, ".": { "types": "./index.d.ts", "esm2020": "./esm2020/aeb-ui-kit.mjs", "es2020": "./fesm2020/aeb-ui-kit.mjs", "es2015": "./fesm2015/aeb-ui-kit.mjs", "node": "./fesm2015/aeb-ui-kit.mjs", "default": "./fesm2020/aeb-ui-kit.mjs" } }, "sideEffects": false, "dependencies": { "tslib": "^2.4.0" } }
package/public-api.d.ts CHANGED
@@ -2,9 +2,9 @@ export * from './lib/aeb-ui-kit.module';
2
2
  export * from './lib/form-field/form-field.module';
3
3
  export * from './lib/form-field/form-field.component';
4
4
  export * from './lib/form-field/label.directive';
5
- export * from './lib/form-field/input.directive';
6
- export * from './lib/form-field/textarea.directive';
7
5
  export * from './lib/form-field/icon.directive';
6
+ export * from './lib/form-field/form-field.directive';
7
+ export * from './lib/form-field/error-message.directive';
8
8
  export * from './lib/new-button/new-button.module';
9
9
  export * from './lib/new-button/new-button.component';
10
10
  export * from './lib/checkbox/checkbox.module';
package/styles.css CHANGED
@@ -240,3 +240,9 @@ html {
240
240
  -webkit-font-smoothing: antialiased;
241
241
  -moz-osx-font-smoothing: grayscale;
242
242
  }
243
+
244
+ input,
245
+ textarea,
246
+ select {
247
+ font-family: inherit;
248
+ }
@@ -1,69 +0,0 @@
1
- import { Directive, HostBinding, HostListener, Input, Optional, Self } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/forms";
4
- class MatInputBase {
5
- constructor(_parentForm, _parentFormGroup, ngControl) {
6
- this._parentForm = _parentForm;
7
- this._parentFormGroup = _parentFormGroup;
8
- this.ngControl = ngControl;
9
- }
10
- }
11
- export class InputDirective extends MatInputBase {
12
- constructor(ngControl, _parentForm, _parentFormGroup) {
13
- super(_parentForm, _parentFormGroup, ngControl);
14
- this.ngControl = ngControl;
15
- this.class = 'aeb-input';
16
- this.error = false;
17
- this._value = '';
18
- }
19
- get value() {
20
- return this._value;
21
- }
22
- set value(value) {
23
- this.isHasValue = Boolean(value);
24
- this._value = value;
25
- }
26
- change(value) {
27
- this.value = value;
28
- }
29
- focus() {
30
- this.isFocused = true;
31
- }
32
- blur() {
33
- this.isFocused = false;
34
- }
35
- }
36
- InputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: InputDirective, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i1.NgForm, optional: true }, { token: i1.FormGroupDirective, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
37
- InputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: InputDirective, selector: "input[aebInput]", inputs: { value: "value" }, host: { listeners: { "input": "change($event.target.value)", "focus": "focus()", "blur": "blur()" }, properties: { "class": "this.class", "attr.error": "this.error" } }, usesInheritance: true, ngImport: i0 });
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: InputDirective, decorators: [{
39
- type: Directive,
40
- args: [{
41
- selector: 'input[aebInput]'
42
- }]
43
- }], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
44
- type: Optional
45
- }, {
46
- type: Self
47
- }] }, { type: i1.NgForm, decorators: [{
48
- type: Optional
49
- }] }, { type: i1.FormGroupDirective, decorators: [{
50
- type: Optional
51
- }] }]; }, propDecorators: { class: [{
52
- type: HostBinding,
53
- args: ['class']
54
- }], error: [{
55
- type: HostBinding,
56
- args: ['attr.error']
57
- }], value: [{
58
- type: Input
59
- }], change: [{
60
- type: HostListener,
61
- args: ['input', ['$event.target.value']]
62
- }], focus: [{
63
- type: HostListener,
64
- args: ['focus']
65
- }], blur: [{
66
- type: HostListener,
67
- args: ['blur']
68
- }] } });
69
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOl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mdldC52YWx1ZSddKVxuICBwdWJsaWMgY2hhbmdlKHZhbHVlOiBzdHJpbmcpOiB2b2lkIHtcbiAgICB0aGlzLnZhbHVlID0gdmFsdWU7XG4gIH1cblxuICBASG9zdExpc3RlbmVyKCdmb2N1cycpXG4gIHB1YmxpYyBmb2N1cygpOiB2b2lkIHtcbiAgICB0aGlzLmlzRm9jdXNlZCA9IHRydWU7XG4gIH1cblxuICBASG9zdExpc3RlbmVyKCdibHVyJylcbiAgcHVibGljIGJsdXIoKTogdm9pZCB7XG4gICAgdGhpcy5pc0ZvY3VzZWQgPSBmYWxzZTtcbiAgfVxufVxuIl19
@@ -1,69 +0,0 @@
1
- import { Directive, HostBinding, HostListener, Input, Optional, Self } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/forms";
4
- class MatInputBase {
5
- constructor(_parentForm, _parentFormGroup, ngControl) {
6
- this._parentForm = _parentForm;
7
- this._parentFormGroup = _parentFormGroup;
8
- this.ngControl = ngControl;
9
- }
10
- }
11
- export class TextareaDirective extends MatInputBase {
12
- constructor(ngControl, _parentForm, _parentFormGroup) {
13
- super(_parentForm, _parentFormGroup, ngControl);
14
- this.ngControl = ngControl;
15
- this.class = 'aeb-input';
16
- this.error = false;
17
- this._value = '';
18
- }
19
- get value() {
20
- return this._value;
21
- }
22
- set value(value) {
23
- this.isHasValue = Boolean(value);
24
- this._value = value;
25
- }
26
- change(value) {
27
- this.value = value;
28
- }
29
- focus() {
30
- this.isFocused = true;
31
- }
32
- blur() {
33
- this.isFocused = false;
34
- }
35
- }
36
- TextareaDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TextareaDirective, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i1.NgForm, optional: true }, { token: i1.FormGroupDirective, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
37
- TextareaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: TextareaDirective, selector: "textarea[aebTextarea]", inputs: { value: "value" }, host: { listeners: { "input": "change($event.target.value)", "focus": "focus()", "blur": "blur()" }, properties: { "class": "this.class", "attr.error": "this.error" } }, usesInheritance: true, ngImport: i0 });
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TextareaDirective, decorators: [{
39
- type: Directive,
40
- args: [{
41
- selector: 'textarea[aebTextarea]'
42
- }]
43
- }], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
44
- type: Optional
45
- }, {
46
- type: Self
47
- }] }, { type: i1.NgForm, decorators: [{
48
- type: Optional
49
- }] }, { type: i1.FormGroupDirective, decorators: [{
50
- type: Optional
51
- }] }]; }, propDecorators: { class: [{
52
- type: HostBinding,
53
- args: ['class']
54
- }], error: [{
55
- type: HostBinding,
56
- args: ['attr.error']
57
- }], value: [{
58
- type: Input
59
- }], change: [{
60
- type: HostListener,
61
- args: ['input', ['$event.target.value']]
62
- }], focus: [{
63
- type: HostListener,
64
- args: ['focus']
65
- }], blur: [{
66
- type: HostListener,
67
- args: ['blur']
68
- }] } });
69
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGFyZWEuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9mb3JtLWZpZWxkL3RleHRhcmVhLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULFdBQVcsRUFDWCxZQUFZLEVBQ1osS0FBSyxFQUNMLFFBQVEsRUFDUixJQUFJLEVBQ0wsTUFBTSxlQUFlLENBQUM7OztBQUd2QixNQUFNLFlBQVk7SUFDaEIsWUFDUyxXQUFtQixFQUNuQixnQkFBb0MsRUFDcEMsU0FBb0I7UUFGcEIsZ0JBQVcsR0FBWCx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ge1xuICAgIHRoaXMuaXNGb2N1c2VkID0gZmFsc2U7XG4gIH1cbn1cbiJdfQ==
@@ -1,26 +0,0 @@
1
- import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
2
- import * as i0 from "@angular/core";
3
- declare class MatInputBase {
4
- _parentForm: NgForm;
5
- _parentFormGroup: FormGroupDirective;
6
- ngControl: NgControl;
7
- constructor(_parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl);
8
- }
9
- export declare class InputDirective extends MatInputBase {
10
- ngControl: NgControl;
11
- class: string;
12
- error: boolean;
13
- isFocused: boolean;
14
- isHasValue: boolean;
15
- isError: boolean;
16
- _value: string;
17
- constructor(ngControl: NgControl, _parentForm: NgForm, _parentFormGroup: FormGroupDirective);
18
- get value(): string;
19
- set value(value: string);
20
- change(value: string): void;
21
- focus(): void;
22
- blur(): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<InputDirective, [{ optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<InputDirective, "input[aebInput]", never, { "value": "value"; }, {}, never, never, false>;
25
- }
26
- export {};
@@ -1,26 +0,0 @@
1
- import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
2
- import * as i0 from "@angular/core";
3
- declare class MatInputBase {
4
- _parentForm: NgForm;
5
- _parentFormGroup: FormGroupDirective;
6
- ngControl: NgControl;
7
- constructor(_parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl);
8
- }
9
- export declare class TextareaDirective extends MatInputBase {
10
- ngControl: NgControl;
11
- class: string;
12
- error: boolean;
13
- isFocused: boolean;
14
- isHasValue: boolean;
15
- isError: boolean;
16
- _value: string;
17
- constructor(ngControl: NgControl, _parentForm: NgForm, _parentFormGroup: FormGroupDirective);
18
- get value(): string;
19
- set value(value: string);
20
- change(value: string): void;
21
- focus(): void;
22
- blur(): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<TextareaDirective, [{ optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<TextareaDirective, "textarea[aebTextarea]", never, { "value": "value"; }, {}, never, never, false>;
25
- }
26
- export {};