ngx-render-material-forms 2.5.18 → 2.5.19
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/esm2022/lib/components/date/date.component.mjs +65 -47
- package/esm2022/lib/components/number/number.component.mjs +50 -1
- package/fesm2022/ngx-render-material-forms.js +113 -46
- package/fesm2022/ngx-render-material-forms.mjs.map +1 -1
- package/lib/components/date/date.component.d.ts +3 -0
- package/lib/components/number/number.component.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
1
2
|
import { MaterialComponent } from '../MaterialComponent';
|
|
2
3
|
import DateTimeComponent from 'formiojs/components/datetime/DateTime.js';
|
|
3
4
|
import { FormControl } from '@angular/forms';
|
|
@@ -10,6 +11,8 @@ export declare class MaterialDateComponent extends MaterialComponent {
|
|
|
10
11
|
selectedTime: any;
|
|
11
12
|
allowManualInput: boolean;
|
|
12
13
|
calendar: any;
|
|
14
|
+
calendarElRef: ElementRef;
|
|
15
|
+
toggleElRef: ElementRef;
|
|
13
16
|
get enableDate(): boolean;
|
|
14
17
|
get enableTime(): boolean;
|
|
15
18
|
setDisplayControlValue(value?: any): void;
|
|
@@ -9,6 +9,13 @@ export declare class MaterialNumberComponent extends MaterialTextfieldComponent
|
|
|
9
9
|
inputType: string;
|
|
10
10
|
constructor(element: ElementRef, ref: ChangeDetectorRef, renderer: Renderer2);
|
|
11
11
|
ngAfterViewInit(): void;
|
|
12
|
+
/**
|
|
13
|
+
* The input is rendered as type="text" so that the formio number/currency masks (delimiters,
|
|
14
|
+
* decimal separator, currency affixes) can be displayed. Typing, pasting or dropping characters
|
|
15
|
+
* that are not part of that numeric format is rejected before it reaches the control.
|
|
16
|
+
*/
|
|
17
|
+
blockNonNumericInput(event: any): void;
|
|
18
|
+
isAllowedNumericInput(data: string): boolean;
|
|
12
19
|
getValue(): any;
|
|
13
20
|
setValue(value: any): void;
|
|
14
21
|
onChange(): void;
|