@unifylib/ui-lib 1.1.32 → 1.1.34
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/iq-ui-lib.mjs +5 -0
- package/esm2022/lib/base-model/field-info.mjs +2 -1
- package/esm2022/lib/components/base-form-canvas/NumbersOnlyDirective.mjs +98 -14
- package/esm2022/lib/components/base-form-canvas/base-form-canvas.component.mjs +3 -3
- package/fesm2022/iq-ui-lib.mjs +102 -16
- package/fesm2022/iq-ui-lib.mjs.map +1 -1
- package/fesm2022/unifylib-ui-lib.mjs +100 -16
- package/fesm2022/unifylib-ui-lib.mjs.map +1 -1
- package/lib/base-model/field-info.d.ts +2 -1
- package/lib/components/base-form-canvas/NumbersOnlyDirective.d.ts +15 -2
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ export declare class FieldInfo {
|
|
|
5
5
|
targetProperty?: string;
|
|
6
6
|
row: number;
|
|
7
7
|
required: boolean;
|
|
8
|
-
type: 'text' | 'amount' | 'color-picker' | 'currency' | 'date' | 'number' | 'sequence' | 'list' | 'lookup' | 'multi-select' | 'password' | 'rich-text' | 'radio-button' | 'phone-number' | 'iban-text' | 'checkbox' | 'textarea' | 'button' | 'spacer' | 'attachment' | 'section-title' | 'chip-list' | 'time' | 'divider' | 'hyper-text' | 'stateType' | 'status' | 'year' | 'equation-builder' | 'toggle';
|
|
8
|
+
type: 'text' | 'amount' | 'color-picker' | 'currency' | 'date' | 'number' | 'sequence' | 'list' | 'lookup' | 'multi-select' | 'password' | 'rich-text' | 'radio-button' | 'phone-number' | 'iban-text' | 'checkbox' | 'textarea' | 'button' | 'spacer' | 'attachment' | 'section-title' | 'chip-list' | 'time' | 'divider' | 'hyper-text' | 'stateType' | 'status' | 'year' | 'equation-builder' | 'toggle' | 'bigdecimal';
|
|
9
9
|
textFormat?: 'json';
|
|
10
10
|
readonly?: boolean;
|
|
11
11
|
viewonly?: boolean;
|
|
@@ -51,5 +51,6 @@ export declare class FieldInfo {
|
|
|
51
51
|
searchOperator?: "GREATER_THAN_EQUAL" | "GREATER_THAN" | "LESS_THAN" | "LESS_THAN_EQUAL" | "EQUALS" | "LIKE" | "NOT_EQ" | "IN" | "NOT_NULL";
|
|
52
52
|
showSearchIcon?: boolean;
|
|
53
53
|
multiLevelSearchEnable?: boolean;
|
|
54
|
+
maxDecimals?: number;
|
|
54
55
|
constructor(fieldInfo: FieldInfo);
|
|
55
56
|
}
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DecimalOnlyDirective {
|
|
4
|
+
export declare class DecimalOnlyDirective implements ControlValueAccessor {
|
|
4
5
|
private el;
|
|
6
|
+
maxDecimals: number;
|
|
7
|
+
private _value;
|
|
8
|
+
private _displayValue;
|
|
9
|
+
private tempZeroIndex;
|
|
10
|
+
private onChange;
|
|
11
|
+
private onTouched;
|
|
5
12
|
constructor(el: ElementRef<HTMLInputElement>);
|
|
13
|
+
writeValue(value: any): void;
|
|
14
|
+
registerOnChange(fn: any): void;
|
|
15
|
+
registerOnTouched(fn: any): void;
|
|
16
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
6
17
|
onKeyDown(event: KeyboardEvent): void;
|
|
18
|
+
onInput(event: any): void;
|
|
7
19
|
onPaste(event: ClipboardEvent): void;
|
|
20
|
+
onBlur(): void;
|
|
8
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<DecimalOnlyDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DecimalOnlyDirective, "[numbersOnly]", never, {}, {}, never, never, true, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DecimalOnlyDirective, "[numbersOnly]", never, { "maxDecimals": { "alias": "maxDecimals"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
23
|
}
|