rd-outer-component 0.1.10 → 0.1.12
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/esm2020/lib/modules/custom-input/custom-input.component.mjs +1 -1
- package/esm2020/lib/modules/custom-input-amount/custom-input-amount.component.mjs +26 -14
- package/esm2020/lib/modules/custom-input-amount/custom-input-amount.module.mjs +7 -3
- package/esm2020/lib/modules/custom-textarea/custom-textarea.component.mjs +16 -15
- package/esm2020/lib/modules/custom-textarea/custom-textarea.module.mjs +19 -4
- package/fesm2015/rd-outer-component.mjs +103 -73
- package/fesm2015/rd-outer-component.mjs.map +1 -1
- package/fesm2020/rd-outer-component.mjs +101 -71
- package/fesm2020/rd-outer-component.mjs.map +1 -1
- package/lib/modules/custom-input-amount/custom-input-amount.component.d.ts +4 -1
- package/lib/modules/custom-input-amount/custom-input-amount.module.d.ts +2 -1
- package/lib/modules/custom-textarea/custom-textarea.component.d.ts +3 -1
- package/lib/modules/custom-textarea/custom-textarea.module.d.ts +2 -1
- package/package.json +1 -1
|
@@ -21,6 +21,7 @@ export declare class CustomInputAmountComponent implements ControlValueAccessor,
|
|
|
21
21
|
blur: EventEmitter<void>;
|
|
22
22
|
focus: EventEmitter<void>;
|
|
23
23
|
valueChange: EventEmitter<string>;
|
|
24
|
+
theme?: 'light' | 'dark';
|
|
24
25
|
inputValue: string;
|
|
25
26
|
private value;
|
|
26
27
|
private touched;
|
|
@@ -30,6 +31,8 @@ export declare class CustomInputAmountComponent implements ControlValueAccessor,
|
|
|
30
31
|
private onTouched;
|
|
31
32
|
private onValidatorChange;
|
|
32
33
|
constructor(cdr: ChangeDetectorRef, translate: TranslateService);
|
|
34
|
+
get hostThemeLight(): boolean;
|
|
35
|
+
get hostThemeDark(): boolean;
|
|
33
36
|
get currentErrorMessage(): string;
|
|
34
37
|
get showError(): boolean;
|
|
35
38
|
handleValueChange(value: string): void;
|
|
@@ -42,5 +45,5 @@ export declare class CustomInputAmountComponent implements ControlValueAccessor,
|
|
|
42
45
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
43
46
|
writeValue(value: string | number | null): void;
|
|
44
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputAmountComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputAmountComponent, "app-rd-input-amount", never, { "lang": "lang"; "label": "label"; "symbol": "symbol"; "name": "name"; "disabled": "disabled"; "min": "min"; "max": "max"; "nzPrecision": "nzPrecision"; "allowNegativeNumbers": "allowNegativeNumbers"; "required": "required"; "nzSize": "nzSize"; "errorMessages": "errorMessages"; "clearError": "clearError"; }, { "blur": "blur"; "focus": "focus"; "valueChange": "valueChange"; }, never, ["[slot='token']", "*"], false, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputAmountComponent, "app-rd-input-amount", never, { "lang": "lang"; "label": "label"; "symbol": "symbol"; "name": "name"; "disabled": "disabled"; "min": "min"; "max": "max"; "nzPrecision": "nzPrecision"; "allowNegativeNumbers": "allowNegativeNumbers"; "required": "required"; "nzSize": "nzSize"; "errorMessages": "errorMessages"; "clearError": "clearError"; "theme": "theme"; }, { "blur": "blur"; "focus": "focus"; "valueChange": "valueChange"; }, never, ["[slot='token']", "*"], false, never>;
|
|
46
49
|
}
|
|
@@ -4,8 +4,9 @@ import * as i2 from "@angular/common";
|
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
5
|
import * as i4 from "ng-zorro-antd/input";
|
|
6
6
|
import * as i5 from "ngx-mask";
|
|
7
|
+
import * as i6 from "@ngx-translate/core";
|
|
7
8
|
export declare class RdInputAmountModule {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdInputAmountModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RdInputAmountModule, [typeof i1.CustomInputAmountComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i3.FormsModule, typeof i4.NzInputModule, typeof i5.NgxMaskModule], [typeof i1.CustomInputAmountComponent]>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RdInputAmountModule, [typeof i1.CustomInputAmountComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i3.FormsModule, typeof i4.NzInputModule, typeof i5.NgxMaskModule, typeof i6.TranslateModule], [typeof i1.CustomInputAmountComponent]>;
|
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<RdInputAmountModule>;
|
|
11
12
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
3
3
|
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class CustomTextareaComponent implements ControlValueAccessor, Validator {
|
|
6
7
|
private cdr;
|
|
8
|
+
private translate;
|
|
7
9
|
lang: string;
|
|
8
10
|
label: string;
|
|
9
11
|
name: string;
|
|
@@ -30,7 +32,7 @@ export declare class CustomTextareaComponent implements ControlValueAccessor, Va
|
|
|
30
32
|
private onValidatorChange;
|
|
31
33
|
get currentErrorMessage(): string;
|
|
32
34
|
get showError(): boolean;
|
|
33
|
-
constructor(cdr: ChangeDetectorRef);
|
|
35
|
+
constructor(cdr: ChangeDetectorRef, translate: TranslateService);
|
|
34
36
|
writeValue(value: string): void;
|
|
35
37
|
registerOnChange(fn: (value: string) => void): void;
|
|
36
38
|
registerOnTouched(fn: () => void): void;
|
|
@@ -3,8 +3,9 @@ import * as i1 from "./custom-textarea.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
5
|
import * as i4 from "ng-zorro-antd/input";
|
|
6
|
+
import * as i5 from "@ngx-translate/core";
|
|
6
7
|
export declare class RdTextareaModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdTextareaModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RdTextareaModule, [typeof i1.CustomTextareaComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i3.FormsModule, typeof i4.NzInputModule], [typeof i1.CustomTextareaComponent]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RdTextareaModule, [typeof i1.CustomTextareaComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i3.FormsModule, typeof i4.NzInputModule, typeof i5.TranslateModule], [typeof i1.CustomTextareaComponent]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<RdTextareaModule>;
|
|
10
11
|
}
|