tecnualng 21.1.8 → 21.1.10
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/fesm2022/tecnualng.mjs +115 -53
- package/fesm2022/tecnualng.mjs.map +1 -1
- package/package.json +1 -1
- package/types/tecnualng.d.ts +15 -4
package/package.json
CHANGED
package/types/tecnualng.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ElementRef, TemplateRef, AfterViewInit, OnDestroy, NgZone, ApplicationRef, EnvironmentInjector, AfterContentInit, QueryList } from '@angular/core';
|
|
2
|
+
import { OnInit, ElementRef, TemplateRef, AfterViewInit, OnDestroy, NgZone, ApplicationRef, EnvironmentInjector, AfterContentInit, QueryList } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
4
|
import * as tecnualng from 'tecnualng';
|
|
5
5
|
|
|
@@ -54,9 +54,10 @@ declare class TecnualInputComponent implements ControlValueAccessor {
|
|
|
54
54
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TecnualInputComponent, "tng-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; }, never, never, true, never>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
declare class TngInputDirective {
|
|
57
|
+
declare class TngInputDirective implements OnInit {
|
|
58
58
|
private el;
|
|
59
59
|
ngControl: NgControl | null;
|
|
60
|
+
private destroyRef;
|
|
60
61
|
disabled: _angular_core.InputSignal<boolean>;
|
|
61
62
|
placeholder: _angular_core.InputSignal<string>;
|
|
62
63
|
focused: _angular_core.WritableSignal<boolean>;
|
|
@@ -69,6 +70,7 @@ declare class TngInputDirective {
|
|
|
69
70
|
isRadio: _angular_core.Signal<boolean>;
|
|
70
71
|
isTextField: _angular_core.Signal<boolean>;
|
|
71
72
|
constructor();
|
|
73
|
+
ngOnInit(): void;
|
|
72
74
|
onFocus(): void;
|
|
73
75
|
onBlur(): void;
|
|
74
76
|
onInput(): void;
|
|
@@ -81,6 +83,7 @@ declare class TngInputDirective {
|
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
declare class TngTextareaComponent implements ControlValueAccessor {
|
|
86
|
+
private ngControl;
|
|
84
87
|
label: _angular_core.InputSignal<string>;
|
|
85
88
|
placeholder: _angular_core.InputSignal<string>;
|
|
86
89
|
required: _angular_core.InputSignal<boolean>;
|
|
@@ -90,6 +93,7 @@ declare class TngTextareaComponent implements ControlValueAccessor {
|
|
|
90
93
|
value: _angular_core.WritableSignal<string>;
|
|
91
94
|
onChange: any;
|
|
92
95
|
onTouched: any;
|
|
96
|
+
constructor();
|
|
93
97
|
onInput(event: Event): void;
|
|
94
98
|
onBlur(): void;
|
|
95
99
|
writeValue(value: any): void;
|
|
@@ -100,9 +104,10 @@ declare class TngTextareaComponent implements ControlValueAccessor {
|
|
|
100
104
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TngTextareaComponent, "tng-textarea", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; }, never, never, true, never>;
|
|
101
105
|
}
|
|
102
106
|
|
|
103
|
-
declare class TngTextareaDirective {
|
|
107
|
+
declare class TngTextareaDirective implements OnInit {
|
|
104
108
|
private el;
|
|
105
109
|
ngControl: NgControl | null;
|
|
110
|
+
private destroyRef;
|
|
106
111
|
disabled: _angular_core.InputSignal<boolean>;
|
|
107
112
|
placeholder: _angular_core.InputSignal<string>;
|
|
108
113
|
maxLength: _angular_core.InputSignal<number | undefined>;
|
|
@@ -112,6 +117,7 @@ declare class TngTextareaDirective {
|
|
|
112
117
|
valueLength: _angular_core.Signal<number>;
|
|
113
118
|
computedPlaceholder: _angular_core.Signal<string>;
|
|
114
119
|
constructor();
|
|
120
|
+
ngOnInit(): void;
|
|
115
121
|
onFocus(): void;
|
|
116
122
|
onBlur(): void;
|
|
117
123
|
onInput(): void;
|
|
@@ -420,10 +426,11 @@ interface SelectOption {
|
|
|
420
426
|
label: string;
|
|
421
427
|
disabled?: boolean;
|
|
422
428
|
}
|
|
423
|
-
declare class TngSelectDirective implements AfterViewInit, OnDestroy {
|
|
429
|
+
declare class TngSelectDirective implements AfterViewInit, OnDestroy, OnInit {
|
|
424
430
|
private el;
|
|
425
431
|
private viewContainerRef;
|
|
426
432
|
ngControl: NgControl | null;
|
|
433
|
+
private destroyRef;
|
|
427
434
|
enableMulti: _angular_core.InputSignal<boolean>;
|
|
428
435
|
multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
429
436
|
enableSearch: _angular_core.InputSignal<boolean>;
|
|
@@ -445,6 +452,8 @@ declare class TngSelectDirective implements AfterViewInit, OnDestroy {
|
|
|
445
452
|
selectedOptions: _angular_core.Signal<SelectOption[]>;
|
|
446
453
|
displayText: _angular_core.Signal<string>;
|
|
447
454
|
constructor();
|
|
455
|
+
ngOnInit(): void;
|
|
456
|
+
private updateSelectionFromValue;
|
|
448
457
|
ngAfterViewInit(): void;
|
|
449
458
|
ngOnDestroy(): void;
|
|
450
459
|
onClick(event: Event): void;
|
|
@@ -480,6 +489,7 @@ declare class TngSelectPanelComponent {
|
|
|
480
489
|
}
|
|
481
490
|
|
|
482
491
|
declare class TngSelectComponent implements ControlValueAccessor {
|
|
492
|
+
private ngControl;
|
|
483
493
|
label: _angular_core.InputSignal<string>;
|
|
484
494
|
options: _angular_core.InputSignal<SelectOption[]>;
|
|
485
495
|
enableMulti: _angular_core.InputSignal<boolean>;
|
|
@@ -497,6 +507,7 @@ declare class TngSelectComponent implements ControlValueAccessor {
|
|
|
497
507
|
private onChange;
|
|
498
508
|
private onTouched;
|
|
499
509
|
constructor();
|
|
510
|
+
onSelectionChange(newValues: any[]): void;
|
|
500
511
|
onDisplayClick(event: Event): void;
|
|
501
512
|
writeValue(obj: any): void;
|
|
502
513
|
registerOnChange(fn: any): void;
|