@valtimo/components 13.4.0 → 13.5.0
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
1
|
+
import { OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, Validators } from '@angular/forms';
|
|
3
3
|
import { IconService } from 'carbon-components-angular';
|
|
4
4
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
5
5
|
import { ModalMode } from '@valtimo/shared';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class AutoKeyInputComponent implements ControlValueAccessor, OnDestroy {
|
|
7
|
+
export declare class AutoKeyInputComponent implements ControlValueAccessor, Validators, OnChanges, OnDestroy {
|
|
8
8
|
private readonly iconService;
|
|
9
9
|
labelTranslationKey: string;
|
|
10
10
|
placeholderTranslationKey: string;
|
|
@@ -15,7 +15,6 @@ export declare class AutoKeyInputComponent implements ControlValueAccessor, OnDe
|
|
|
15
15
|
set usedKeys(value: string[]);
|
|
16
16
|
private readonly _sourceText$;
|
|
17
17
|
set sourceText(value: string);
|
|
18
|
-
readonly submitDisabled: EventEmitter<boolean>;
|
|
19
18
|
$disabled: import("@angular/core").WritableSignal<boolean>;
|
|
20
19
|
value: string;
|
|
21
20
|
readonly editingKey$: BehaviorSubject<boolean>;
|
|
@@ -23,13 +22,19 @@ export declare class AutoKeyInputComponent implements ControlValueAccessor, OnDe
|
|
|
23
22
|
readonly idError$: BehaviorSubject<string>;
|
|
24
23
|
private onChange;
|
|
25
24
|
onTouched: () => void;
|
|
25
|
+
onValidatorChange: () => void;
|
|
26
|
+
validate: (control: any) => {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
} | null;
|
|
26
29
|
private readonly subscription;
|
|
27
30
|
constructor(iconService: IconService);
|
|
31
|
+
ngOnChanges(): void;
|
|
28
32
|
ngOnDestroy(): void;
|
|
29
33
|
setDisabledState(disabled: boolean): void;
|
|
30
34
|
writeValue(value: string): void;
|
|
31
35
|
registerOnChange(fn: any): void;
|
|
32
36
|
registerOnTouched(fn: any): void;
|
|
37
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
33
38
|
onInputChange(event: InputEvent & {
|
|
34
39
|
target: HTMLInputElement;
|
|
35
40
|
}): void;
|
|
@@ -39,6 +44,6 @@ export declare class AutoKeyInputComponent implements ControlValueAccessor, OnDe
|
|
|
39
44
|
private updateKey;
|
|
40
45
|
private getUniqueKeyWithNumber;
|
|
41
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutoKeyInputComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutoKeyInputComponent, "valtimo-auto-key-input", never, { "labelTranslationKey": { "alias": "labelTranslationKey"; "required": false; }; "placeholderTranslationKey": { "alias": "placeholderTranslationKey"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "usedKeys": { "alias": "usedKeys"; "required": false; }; "sourceText": { "alias": "sourceText"; "required": false; }; }, {
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutoKeyInputComponent, "valtimo-auto-key-input", never, { "labelTranslationKey": { "alias": "labelTranslationKey"; "required": false; }; "placeholderTranslationKey": { "alias": "placeholderTranslationKey"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "usedKeys": { "alias": "usedKeys"; "required": false; }; "sourceText": { "alias": "sourceText"; "required": false; }; }, {}, never, never, true, never>;
|
|
43
48
|
}
|
|
44
49
|
//# sourceMappingURL=auto-key-input.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-key-input.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/components/auto-key-input/auto-key-input.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAKL,SAAS,
|
|
1
|
+
{"version":3,"file":"auto-key-input.component.d.ts","sourceRoot":"","sources":["../../../../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