dino-forms 1.0.2 → 1.0.3
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/bundles/dino-forms.umd.js +2174 -2174
- package/bundles/dino-forms.umd.js.map +1 -1
- package/dino-forms.d.ts +5 -5
- package/esm2015/dino-forms.js +4 -4
- package/esm2015/lib/common/constants/comparison.operators.js +10 -10
- package/esm2015/lib/common/constants/constants.js +19 -19
- package/esm2015/lib/common/constants/generic-input-type.js +14 -14
- package/esm2015/lib/common/constants/logical.operators.js +5 -5
- package/esm2015/lib/common/constants/validation.js +10 -10
- package/esm2015/lib/common/custom-validators/custom.validator.js +15 -15
- package/esm2015/lib/common/error/app-error-handler.js +7 -7
- package/esm2015/lib/common/error/app-error.js +6 -6
- package/esm2015/lib/common/error/bad-request-error.js +4 -4
- package/esm2015/lib/common/error/invalid-user-error.js +4 -4
- package/esm2015/lib/common/error/not-found-error.js +4 -4
- package/esm2015/lib/common/utilities/expressions.utility.js +255 -255
- package/esm2015/lib/common/utilities/form.utility.js +143 -143
- package/esm2015/lib/common/utilities/object.utility.js +23 -23
- package/esm2015/lib/common/validators.js +51 -51
- package/esm2015/lib/components/accordion-form/accordion-form.component.js +150 -150
- package/esm2015/lib/components/alert/alert.component.js +27 -27
- package/esm2015/lib/components/expressions-form/expressions-form.component.js +246 -246
- package/esm2015/lib/components/form/form.component.js +175 -175
- package/esm2015/lib/components/modal-form/modal-form.component.js +121 -121
- package/esm2015/lib/components/tab-form/tab-form.component.js +200 -200
- package/esm2015/lib/dino-forms.module.js +70 -70
- package/esm2015/lib/services/data.service.js +72 -72
- package/esm2015/public-api.js +14 -14
- package/fesm2015/dino-forms.js +1502 -1502
- package/fesm2015/dino-forms.js.map +1 -1
- package/lib/common/constants/comparison.operators.d.ts +9 -9
- package/lib/common/constants/constants.d.ts +18 -18
- package/lib/common/constants/generic-input-type.d.ts +13 -13
- package/lib/common/constants/logical.operators.d.ts +4 -4
- package/lib/common/constants/validation.d.ts +9 -9
- package/lib/common/custom-validators/custom.validator.d.ts +6 -6
- package/lib/common/error/app-error-handler.d.ts +4 -4
- package/lib/common/error/app-error.d.ts +4 -4
- package/lib/common/error/bad-request-error.d.ts +3 -3
- package/lib/common/error/invalid-user-error.d.ts +3 -3
- package/lib/common/error/not-found-error.d.ts +3 -3
- package/lib/common/utilities/expressions.utility.d.ts +19 -19
- package/lib/common/utilities/form.utility.d.ts +14 -14
- package/lib/common/utilities/object.utility.d.ts +5 -5
- package/lib/common/validators.d.ts +4 -4
- package/lib/components/accordion-form/accordion-form.component.d.ts +39 -39
- package/lib/components/alert/alert.component.d.ts +12 -12
- package/lib/components/expressions-form/expressions-form.component.d.ts +58 -58
- package/lib/components/form/form.component.d.ts +51 -51
- package/lib/components/modal-form/modal-form.component.d.ts +38 -38
- package/lib/components/tab-form/tab-form.component.d.ts +45 -45
- package/lib/dino-forms.module.d.ts +15 -15
- package/lib/services/data.service.d.ts +17 -17
- package/package.json +1 -1
- package/public-api.d.ts +8 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare class ComparisonOperators {
|
|
2
|
-
static readonly EQUAL = "==";
|
|
3
|
-
static readonly NOT_EQUAL = "!=";
|
|
4
|
-
static readonly GREATER_THAN = ">";
|
|
5
|
-
static readonly GREATER_THAN_OR_EQUAL = ">=";
|
|
6
|
-
static readonly LESS_THAN = "<";
|
|
7
|
-
static readonly LESS_THAN_OR_EQUAL = "<=";
|
|
8
|
-
static readonly CONTAINS = ":contains:";
|
|
9
|
-
}
|
|
1
|
+
export declare class ComparisonOperators {
|
|
2
|
+
static readonly EQUAL = "==";
|
|
3
|
+
static readonly NOT_EQUAL = "!=";
|
|
4
|
+
static readonly GREATER_THAN = ">";
|
|
5
|
+
static readonly GREATER_THAN_OR_EQUAL = ">=";
|
|
6
|
+
static readonly LESS_THAN = "<";
|
|
7
|
+
static readonly LESS_THAN_OR_EQUAL = "<=";
|
|
8
|
+
static readonly CONTAINS = ":contains:";
|
|
9
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export declare class Constants {
|
|
2
|
-
static readonly EMPTY_SPACE = "";
|
|
3
|
-
static readonly VERTICAL_BAR = "|";
|
|
4
|
-
static readonly BACK_SLASH = "/";
|
|
5
|
-
static readonly LEFT_PARENTHESIS = "(";
|
|
6
|
-
static readonly RIGHT_PARENTHESIS = ")";
|
|
7
|
-
static readonly LEFT_CURLY_BRACE = "{";
|
|
8
|
-
static readonly RIGHT_CURLY_BRACE = "}";
|
|
9
|
-
static readonly CONTROL_PREFIX = "control::";
|
|
10
|
-
static readonly MAX_LEVELS = 30;
|
|
11
|
-
static readonly ALERT_TIMEOUT = 3000;
|
|
12
|
-
static readonly START_LEVEL = "Level[";
|
|
13
|
-
static readonly END_LEVEL = "]: ";
|
|
14
|
-
static readonly VALIDATOR_SPLITTER = "::";
|
|
15
|
-
static readonly AMPERSAND = "&";
|
|
16
|
-
static readonly EQUAL = "=";
|
|
17
|
-
static readonly QUESTION_MARK = "?";
|
|
18
|
-
}
|
|
1
|
+
export declare class Constants {
|
|
2
|
+
static readonly EMPTY_SPACE = "";
|
|
3
|
+
static readonly VERTICAL_BAR = "|";
|
|
4
|
+
static readonly BACK_SLASH = "/";
|
|
5
|
+
static readonly LEFT_PARENTHESIS = "(";
|
|
6
|
+
static readonly RIGHT_PARENTHESIS = ")";
|
|
7
|
+
static readonly LEFT_CURLY_BRACE = "{";
|
|
8
|
+
static readonly RIGHT_CURLY_BRACE = "}";
|
|
9
|
+
static readonly CONTROL_PREFIX = "control::";
|
|
10
|
+
static readonly MAX_LEVELS = 30;
|
|
11
|
+
static readonly ALERT_TIMEOUT = 3000;
|
|
12
|
+
static readonly START_LEVEL = "Level[";
|
|
13
|
+
static readonly END_LEVEL = "]: ";
|
|
14
|
+
static readonly VALIDATOR_SPLITTER = "::";
|
|
15
|
+
static readonly AMPERSAND = "&";
|
|
16
|
+
static readonly EQUAL = "=";
|
|
17
|
+
static readonly QUESTION_MARK = "?";
|
|
18
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export declare class GenericInputType {
|
|
2
|
-
static readonly TEXT = "text";
|
|
3
|
-
static readonly NUMBER = "number";
|
|
4
|
-
static readonly DATE = "date";
|
|
5
|
-
static readonly PASSWORD = "password";
|
|
6
|
-
static readonly TEXTAREA = "textarea";
|
|
7
|
-
static readonly RADIO = "radio";
|
|
8
|
-
static readonly CHECKBOX = "checkbox";
|
|
9
|
-
static readonly COMBOBOX = "combobox";
|
|
10
|
-
static readonly BUTTON = "button";
|
|
11
|
-
static readonly SUBMIT = "submit";
|
|
12
|
-
static readonly RESET = "reset";
|
|
13
|
-
}
|
|
1
|
+
export declare class GenericInputType {
|
|
2
|
+
static readonly TEXT = "text";
|
|
3
|
+
static readonly NUMBER = "number";
|
|
4
|
+
static readonly DATE = "date";
|
|
5
|
+
static readonly PASSWORD = "password";
|
|
6
|
+
static readonly TEXTAREA = "textarea";
|
|
7
|
+
static readonly RADIO = "radio";
|
|
8
|
+
static readonly CHECKBOX = "checkbox";
|
|
9
|
+
static readonly COMBOBOX = "combobox";
|
|
10
|
+
static readonly BUTTON = "button";
|
|
11
|
+
static readonly SUBMIT = "submit";
|
|
12
|
+
static readonly RESET = "reset";
|
|
13
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class LogicalOperators {
|
|
2
|
-
static readonly AND = "&&";
|
|
3
|
-
static readonly OR = "||";
|
|
4
|
-
}
|
|
1
|
+
export declare class LogicalOperators {
|
|
2
|
+
static readonly AND = "&&";
|
|
3
|
+
static readonly OR = "||";
|
|
4
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare class Validation {
|
|
2
|
-
static readonly REQUIRED = "required";
|
|
3
|
-
static readonly MINLENGTH = "minlength";
|
|
4
|
-
static readonly MAXLENGTH = "maxlength";
|
|
5
|
-
static readonly MIN = "min";
|
|
6
|
-
static readonly MAX = "max";
|
|
7
|
-
static readonly EMAIL = "email";
|
|
8
|
-
static readonly PATTERN = "pattern";
|
|
9
|
-
}
|
|
1
|
+
export declare class Validation {
|
|
2
|
+
static readonly REQUIRED = "required";
|
|
3
|
+
static readonly MINLENGTH = "minlength";
|
|
4
|
+
static readonly MAXLENGTH = "maxlength";
|
|
5
|
+
static readonly MIN = "min";
|
|
6
|
+
static readonly MAX = "max";
|
|
7
|
+
static readonly EMAIL = "email";
|
|
8
|
+
static readonly PATTERN = "pattern";
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FormArray } from '@angular/forms';
|
|
2
|
-
export declare class CustomValidator {
|
|
3
|
-
static multipleCheckboxRequireOne(fa: FormArray): {
|
|
4
|
-
multipleCheckboxRequireOne: boolean;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
1
|
+
import { FormArray } from '@angular/forms';
|
|
2
|
+
export declare class CustomValidator {
|
|
3
|
+
static multipleCheckboxRequireOne(fa: FormArray): {
|
|
4
|
+
multipleCheckboxRequireOne: boolean;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ErrorHandler } from "@angular/core";
|
|
2
|
-
export declare class AppErrorHandler implements ErrorHandler {
|
|
3
|
-
handleError(error: any): void;
|
|
4
|
-
}
|
|
1
|
+
import { ErrorHandler } from "@angular/core";
|
|
2
|
+
export declare class AppErrorHandler implements ErrorHandler {
|
|
3
|
+
handleError(error: any): void;
|
|
4
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class AppError {
|
|
2
|
-
originalError?: any;
|
|
3
|
-
constructor(originalError?: any);
|
|
4
|
-
}
|
|
1
|
+
export declare class AppError {
|
|
2
|
+
originalError?: any;
|
|
3
|
+
constructor(originalError?: any);
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AppError } from "./app-error";
|
|
2
|
-
export declare class BadRequestError extends AppError {
|
|
3
|
-
}
|
|
1
|
+
import { AppError } from "./app-error";
|
|
2
|
+
export declare class BadRequestError extends AppError {
|
|
3
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AppError } from "./app-error";
|
|
2
|
-
export declare class InvalidUserError extends AppError {
|
|
3
|
-
}
|
|
1
|
+
import { AppError } from "./app-error";
|
|
2
|
+
export declare class InvalidUserError extends AppError {
|
|
3
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AppError } from "./app-error";
|
|
2
|
-
export declare class NotFoundError extends AppError {
|
|
3
|
-
}
|
|
1
|
+
import { AppError } from "./app-error";
|
|
2
|
+
export declare class NotFoundError extends AppError {
|
|
3
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { FormGroup } from '@angular/forms';
|
|
2
|
-
export declare class ExpressionsUtility {
|
|
3
|
-
private static expressionLoggingFlag;
|
|
4
|
-
private static logs;
|
|
5
|
-
private static readonly listComparisonOperators;
|
|
6
|
-
static getExpressionLogs(): string;
|
|
7
|
-
static setLoggingFlag(flag: boolean): void;
|
|
8
|
-
static evaluateExpression(expression: string, form: FormGroup, level: number): any;
|
|
9
|
-
private static traverseSubExpressions;
|
|
10
|
-
private static extractSubexpression;
|
|
11
|
-
private static getSpliter;
|
|
12
|
-
private static validateArrayOfExpressions;
|
|
13
|
-
private static evaluateCleanExpression;
|
|
14
|
-
private static containsComparisonOperator;
|
|
15
|
-
private static prepareExpressionWithOperator;
|
|
16
|
-
private static getControlValue;
|
|
17
|
-
private static getControlFromForm;
|
|
18
|
-
private static evaluateExpressionWithOperator;
|
|
19
|
-
}
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
export declare class ExpressionsUtility {
|
|
3
|
+
private static expressionLoggingFlag;
|
|
4
|
+
private static logs;
|
|
5
|
+
private static readonly listComparisonOperators;
|
|
6
|
+
static getExpressionLogs(): string;
|
|
7
|
+
static setLoggingFlag(flag: boolean): void;
|
|
8
|
+
static evaluateExpression(expression: string, form: FormGroup, level: number): any;
|
|
9
|
+
private static traverseSubExpressions;
|
|
10
|
+
private static extractSubexpression;
|
|
11
|
+
private static getSpliter;
|
|
12
|
+
private static validateArrayOfExpressions;
|
|
13
|
+
private static evaluateCleanExpression;
|
|
14
|
+
private static containsComparisonOperator;
|
|
15
|
+
private static prepareExpressionWithOperator;
|
|
16
|
+
private static getControlValue;
|
|
17
|
+
private static getControlFromForm;
|
|
18
|
+
private static evaluateExpressionWithOperator;
|
|
19
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { FormArray, FormGroup } from '@angular/forms';
|
|
2
|
-
import { CustomValidator } from '../custom-validators/custom.validator';
|
|
3
|
-
export declare class FormsUtility {
|
|
4
|
-
static updateCheckboxValue(form: FormGroup, formArrayName: any, controlName: any, checked: boolean, value: any): void;
|
|
5
|
-
static updateRadioValue(form: FormGroup, controlName: any, checked: boolean, optionId: any): void;
|
|
6
|
-
static isCheckBoxChecked(form: FormGroup, controlName: any, optionId: any): any;
|
|
7
|
-
static isRadioChecked(form: FormGroup, controlName: any, optionId: any): boolean;
|
|
8
|
-
static buildFromGroup(fields: Array<any>, disabled: boolean): FormGroup;
|
|
9
|
-
static getCheckBoxFormArray(input: any): FormArray;
|
|
10
|
-
static getCheckBoxValidator(input: any): typeof CustomValidator.multipleCheckboxRequireOne;
|
|
11
|
-
static includeRequired(validators: Array<any>): boolean;
|
|
12
|
-
static resetForm(fields: any[], form: FormGroup): FormGroup;
|
|
13
|
-
static setValidators(input: any, form: FormGroup, result: boolean): void;
|
|
14
|
-
}
|
|
1
|
+
import { FormArray, FormGroup } from '@angular/forms';
|
|
2
|
+
import { CustomValidator } from '../custom-validators/custom.validator';
|
|
3
|
+
export declare class FormsUtility {
|
|
4
|
+
static updateCheckboxValue(form: FormGroup, formArrayName: any, controlName: any, checked: boolean, value: any): void;
|
|
5
|
+
static updateRadioValue(form: FormGroup, controlName: any, checked: boolean, optionId: any): void;
|
|
6
|
+
static isCheckBoxChecked(form: FormGroup, controlName: any, optionId: any): any;
|
|
7
|
+
static isRadioChecked(form: FormGroup, controlName: any, optionId: any): boolean;
|
|
8
|
+
static buildFromGroup(fields: Array<any>, disabled: boolean): FormGroup;
|
|
9
|
+
static getCheckBoxFormArray(input: any): FormArray;
|
|
10
|
+
static getCheckBoxValidator(input: any): typeof CustomValidator.multipleCheckboxRequireOne;
|
|
11
|
+
static includeRequired(validators: Array<any>): boolean;
|
|
12
|
+
static resetForm(fields: any[], form: FormGroup): FormGroup;
|
|
13
|
+
static setValidators(input: any, form: FormGroup, result: boolean): void;
|
|
14
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare class ObjectUtility {
|
|
2
|
-
static isEmpty(value: any): boolean;
|
|
3
|
-
static isArray(value: any): boolean;
|
|
4
|
-
static includes(array: Array<any>, value: any): boolean;
|
|
5
|
-
}
|
|
1
|
+
export declare class ObjectUtility {
|
|
2
|
+
static isEmpty(value: any): boolean;
|
|
3
|
+
static isArray(value: any): boolean;
|
|
4
|
+
static includes(array: Array<any>, value: any): boolean;
|
|
5
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class FormValidators {
|
|
2
|
-
static getValidators(validators: any[]): any[];
|
|
3
|
-
static getValidator(validator: string): import("@angular/forms").ValidatorFn;
|
|
4
|
-
}
|
|
1
|
+
export declare class FormValidators {
|
|
2
|
+
static getValidators(validators: any[]): any[];
|
|
3
|
+
static getValidator(validator: string): import("@angular/forms").ValidatorFn;
|
|
4
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class AccordionFormComponent implements OnInit {
|
|
4
|
-
private currentSection;
|
|
5
|
-
private initIndex;
|
|
6
|
-
forms: any[];
|
|
7
|
-
sections: any[];
|
|
8
|
-
accordionId: string;
|
|
9
|
-
buttons: any[];
|
|
10
|
-
onSubmit: EventEmitter<any>;
|
|
11
|
-
constructor();
|
|
12
|
-
alert_timeout: number;
|
|
13
|
-
danger: any;
|
|
14
|
-
warning: any;
|
|
15
|
-
success: any;
|
|
16
|
-
info: any;
|
|
17
|
-
primary: any;
|
|
18
|
-
secondary: any;
|
|
19
|
-
ngOnInit(): void;
|
|
20
|
-
onClick(action: string): void;
|
|
21
|
-
onSectionButtonClicked(event: any, index: number, sectionLabel: string): void;
|
|
22
|
-
resetForms(): void;
|
|
23
|
-
onStart(event: any): void;
|
|
24
|
-
getCurrentSection(): number;
|
|
25
|
-
setCurrentSection(sectionNumber: number): void;
|
|
26
|
-
allFormsAreValid(): boolean;
|
|
27
|
-
getHeadingId(i: number): string;
|
|
28
|
-
getCollapseId(i: number): string;
|
|
29
|
-
isEmpty(value: any): boolean;
|
|
30
|
-
setDanger(label: string): void;
|
|
31
|
-
setWarning(label: string): void;
|
|
32
|
-
setSuccess(label: string): void;
|
|
33
|
-
setInfo(label: string): void;
|
|
34
|
-
setPrimary(label: string): void;
|
|
35
|
-
setSecondary(label: string): void;
|
|
36
|
-
setAlertTimeout(timeout: number): void;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionFormComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionFormComponent, "df-accordion-form", never, { "sections": "sections"; "accordionId": "accordionId"; "buttons": "buttons"; }, { "onSubmit": "onSubmit"; }, never, never>;
|
|
39
|
-
}
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AccordionFormComponent implements OnInit {
|
|
4
|
+
private currentSection;
|
|
5
|
+
private initIndex;
|
|
6
|
+
forms: any[];
|
|
7
|
+
sections: any[];
|
|
8
|
+
accordionId: string;
|
|
9
|
+
buttons: any[];
|
|
10
|
+
onSubmit: EventEmitter<any>;
|
|
11
|
+
constructor();
|
|
12
|
+
alert_timeout: number;
|
|
13
|
+
danger: any;
|
|
14
|
+
warning: any;
|
|
15
|
+
success: any;
|
|
16
|
+
info: any;
|
|
17
|
+
primary: any;
|
|
18
|
+
secondary: any;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
onClick(action: string): void;
|
|
21
|
+
onSectionButtonClicked(event: any, index: number, sectionLabel: string): void;
|
|
22
|
+
resetForms(): void;
|
|
23
|
+
onStart(event: any): void;
|
|
24
|
+
getCurrentSection(): number;
|
|
25
|
+
setCurrentSection(sectionNumber: number): void;
|
|
26
|
+
allFormsAreValid(): boolean;
|
|
27
|
+
getHeadingId(i: number): string;
|
|
28
|
+
getCollapseId(i: number): string;
|
|
29
|
+
isEmpty(value: any): boolean;
|
|
30
|
+
setDanger(label: string): void;
|
|
31
|
+
setWarning(label: string): void;
|
|
32
|
+
setSuccess(label: string): void;
|
|
33
|
+
setInfo(label: string): void;
|
|
34
|
+
setPrimary(label: string): void;
|
|
35
|
+
setSecondary(label: string): void;
|
|
36
|
+
setAlertTimeout(timeout: number): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionFormComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionFormComponent, "df-accordion-form", never, { "sections": "sections"; "accordionId": "accordionId"; "buttons": "buttons"; }, { "onSubmit": "onSubmit"; }, never, never>;
|
|
39
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AlertComponent implements OnInit {
|
|
5
|
-
constructor();
|
|
6
|
-
ngOnInit(): void;
|
|
7
|
-
form: FormGroup;
|
|
8
|
-
input: any;
|
|
9
|
-
isEmpty(value: any): boolean;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "df-alert", never, { "form": "form"; "input": "input"; }, {}, never, never>;
|
|
12
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AlertComponent implements OnInit {
|
|
5
|
+
constructor();
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
form: FormGroup;
|
|
8
|
+
input: any;
|
|
9
|
+
isEmpty(value: any): boolean;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "df-alert", never, { "form": "form"; "input": "input"; }, {}, never, never>;
|
|
12
|
+
}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ExpressionsFormComponent implements OnInit {
|
|
5
|
-
form: FormGroup;
|
|
6
|
-
activeMap: Map<any, any>;
|
|
7
|
-
fileList: File;
|
|
8
|
-
fileName: string;
|
|
9
|
-
formFields: Array<any>;
|
|
10
|
-
disabled: boolean;
|
|
11
|
-
buttons: Array<any>;
|
|
12
|
-
onSubmit: EventEmitter<any>;
|
|
13
|
-
onInit: EventEmitter<FormGroup>;
|
|
14
|
-
alert_timeout: number;
|
|
15
|
-
danger: any;
|
|
16
|
-
warning: any;
|
|
17
|
-
success: any;
|
|
18
|
-
info: any;
|
|
19
|
-
primary: any;
|
|
20
|
-
secondary: any;
|
|
21
|
-
onClick(action: any): void;
|
|
22
|
-
onInitialiazation(): void;
|
|
23
|
-
onEnter(): void;
|
|
24
|
-
onChange(changeFieldId: any): void;
|
|
25
|
-
constructor();
|
|
26
|
-
ngOnInit(): void;
|
|
27
|
-
runExpressionValidations(): void;
|
|
28
|
-
buildFormGroup(fields: Array<any>): void;
|
|
29
|
-
getForm(): FormGroup;
|
|
30
|
-
setFormValue(value: any): void;
|
|
31
|
-
getFormControls(): {
|
|
32
|
-
[key: string]: import("@angular/forms").AbstractControl;
|
|
33
|
-
};
|
|
34
|
-
getFormControl(controlName: string): import("@angular/forms").AbstractControl;
|
|
35
|
-
setFormControlValue(controlName: string, value: any): void;
|
|
36
|
-
includeRequired(validators: Array<any>): boolean;
|
|
37
|
-
updateCheckboxValue(formArray: any, controlName: any, event: any, value: any): void;
|
|
38
|
-
updateRadioValue(controlName: any, event: any, optionId: any): void;
|
|
39
|
-
isCheckBoxChecked(controlName: any, optionId: any): any;
|
|
40
|
-
isRadioChecked(controlName: any, optionId: any): boolean;
|
|
41
|
-
validateExpression(input: any): any;
|
|
42
|
-
validateExpressionsInRow(row: any): boolean;
|
|
43
|
-
resetForm(): void;
|
|
44
|
-
getDisabled(): boolean;
|
|
45
|
-
setDisabled(disabled: boolean): void;
|
|
46
|
-
fileChange(event: any): void;
|
|
47
|
-
onUploadClick(id: any): void;
|
|
48
|
-
isEmpty(value: any): boolean;
|
|
49
|
-
setDanger(label: string): void;
|
|
50
|
-
setWarning(label: string): void;
|
|
51
|
-
setSuccess(label: string): void;
|
|
52
|
-
setInfo(label: string): void;
|
|
53
|
-
setPrimary(label: string): void;
|
|
54
|
-
setSecondary(label: string): void;
|
|
55
|
-
setAlertTimeout(timeout: number): void;
|
|
56
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExpressionsFormComponent, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ExpressionsFormComponent, "df-expressions-form", never, { "formFields": "formFields"; "disabled": "disabled"; "buttons": "buttons"; }, { "onSubmit": "onSubmit"; "onInit": "onInit"; }, never, never>;
|
|
58
|
-
}
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ExpressionsFormComponent implements OnInit {
|
|
5
|
+
form: FormGroup;
|
|
6
|
+
activeMap: Map<any, any>;
|
|
7
|
+
fileList: File;
|
|
8
|
+
fileName: string;
|
|
9
|
+
formFields: Array<any>;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
buttons: Array<any>;
|
|
12
|
+
onSubmit: EventEmitter<any>;
|
|
13
|
+
onInit: EventEmitter<FormGroup>;
|
|
14
|
+
alert_timeout: number;
|
|
15
|
+
danger: any;
|
|
16
|
+
warning: any;
|
|
17
|
+
success: any;
|
|
18
|
+
info: any;
|
|
19
|
+
primary: any;
|
|
20
|
+
secondary: any;
|
|
21
|
+
onClick(action: any): void;
|
|
22
|
+
onInitialiazation(): void;
|
|
23
|
+
onEnter(): void;
|
|
24
|
+
onChange(changeFieldId: any): void;
|
|
25
|
+
constructor();
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
runExpressionValidations(): void;
|
|
28
|
+
buildFormGroup(fields: Array<any>): void;
|
|
29
|
+
getForm(): FormGroup;
|
|
30
|
+
setFormValue(value: any): void;
|
|
31
|
+
getFormControls(): {
|
|
32
|
+
[key: string]: import("@angular/forms").AbstractControl;
|
|
33
|
+
};
|
|
34
|
+
getFormControl(controlName: string): import("@angular/forms").AbstractControl;
|
|
35
|
+
setFormControlValue(controlName: string, value: any): void;
|
|
36
|
+
includeRequired(validators: Array<any>): boolean;
|
|
37
|
+
updateCheckboxValue(formArray: any, controlName: any, event: any, value: any): void;
|
|
38
|
+
updateRadioValue(controlName: any, event: any, optionId: any): void;
|
|
39
|
+
isCheckBoxChecked(controlName: any, optionId: any): any;
|
|
40
|
+
isRadioChecked(controlName: any, optionId: any): boolean;
|
|
41
|
+
validateExpression(input: any): any;
|
|
42
|
+
validateExpressionsInRow(row: any): boolean;
|
|
43
|
+
resetForm(): void;
|
|
44
|
+
getDisabled(): boolean;
|
|
45
|
+
setDisabled(disabled: boolean): void;
|
|
46
|
+
fileChange(event: any): void;
|
|
47
|
+
onUploadClick(id: any): void;
|
|
48
|
+
isEmpty(value: any): boolean;
|
|
49
|
+
setDanger(label: string): void;
|
|
50
|
+
setWarning(label: string): void;
|
|
51
|
+
setSuccess(label: string): void;
|
|
52
|
+
setInfo(label: string): void;
|
|
53
|
+
setPrimary(label: string): void;
|
|
54
|
+
setSecondary(label: string): void;
|
|
55
|
+
setAlertTimeout(timeout: number): void;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpressionsFormComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpressionsFormComponent, "df-expressions-form", never, { "formFields": "formFields"; "disabled": "disabled"; "buttons": "buttons"; }, { "onSubmit": "onSubmit"; "onInit": "onInit"; }, never, never>;
|
|
58
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormComponent implements OnInit {
|
|
5
|
-
form: FormGroup;
|
|
6
|
-
fileList: File;
|
|
7
|
-
fileName: string;
|
|
8
|
-
formFields: Array<any>;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
buttons: any[];
|
|
11
|
-
onSubmit: EventEmitter<any>;
|
|
12
|
-
alert_timeout: number;
|
|
13
|
-
danger: any;
|
|
14
|
-
warning: any;
|
|
15
|
-
success: any;
|
|
16
|
-
info: any;
|
|
17
|
-
primary: any;
|
|
18
|
-
secondary: any;
|
|
19
|
-
onClick(action: any): void;
|
|
20
|
-
onEnter(): void;
|
|
21
|
-
constructor();
|
|
22
|
-
ngOnInit(): void;
|
|
23
|
-
buildFormGroup(fields: Array<any>): void;
|
|
24
|
-
getForm(): FormGroup;
|
|
25
|
-
getFormControls(): {
|
|
26
|
-
[key: string]: import("@angular/forms").AbstractControl;
|
|
27
|
-
};
|
|
28
|
-
getFormControl(controlName: string): import("@angular/forms").AbstractControl;
|
|
29
|
-
setFormControlValue(controlName: string, value: any): void;
|
|
30
|
-
includeRequired(validators: Array<any>): boolean;
|
|
31
|
-
fileChange(event: any): void;
|
|
32
|
-
onUploadClick(id: any): void;
|
|
33
|
-
updateCheckboxValue(formArray: any, controlName: any, checked: any, value: any): void;
|
|
34
|
-
updateRadioValue(inputId: any, checked: any, optionId: any): void;
|
|
35
|
-
isCheckBoxChecked(controlName: any, optionId: any): any;
|
|
36
|
-
isRadioChecked(controlName: any, optionId: any): boolean;
|
|
37
|
-
resetForm(): void;
|
|
38
|
-
isEmpty(value: any): boolean;
|
|
39
|
-
getDisabled(): boolean;
|
|
40
|
-
setDisabled(disabled: boolean): void;
|
|
41
|
-
setDanger(label: string): void;
|
|
42
|
-
setWarning(label: string): void;
|
|
43
|
-
setSuccess(label: string): void;
|
|
44
|
-
setInfo(label: string): void;
|
|
45
|
-
setPrimary(label: string): void;
|
|
46
|
-
setSecondary(label: string): void;
|
|
47
|
-
setAlertTimeout(timeout: number): void;
|
|
48
|
-
getIconClass(input: any): any;
|
|
49
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "df-form", never, { "formFields": "formFields"; "disabled": "disabled"; "buttons": "buttons"; }, { "onSubmit": "onSubmit"; }, never, never>;
|
|
51
|
-
}
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormComponent implements OnInit {
|
|
5
|
+
form: FormGroup;
|
|
6
|
+
fileList: File;
|
|
7
|
+
fileName: string;
|
|
8
|
+
formFields: Array<any>;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
buttons: any[];
|
|
11
|
+
onSubmit: EventEmitter<any>;
|
|
12
|
+
alert_timeout: number;
|
|
13
|
+
danger: any;
|
|
14
|
+
warning: any;
|
|
15
|
+
success: any;
|
|
16
|
+
info: any;
|
|
17
|
+
primary: any;
|
|
18
|
+
secondary: any;
|
|
19
|
+
onClick(action: any): void;
|
|
20
|
+
onEnter(): void;
|
|
21
|
+
constructor();
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
buildFormGroup(fields: Array<any>): void;
|
|
24
|
+
getForm(): FormGroup;
|
|
25
|
+
getFormControls(): {
|
|
26
|
+
[key: string]: import("@angular/forms").AbstractControl;
|
|
27
|
+
};
|
|
28
|
+
getFormControl(controlName: string): import("@angular/forms").AbstractControl;
|
|
29
|
+
setFormControlValue(controlName: string, value: any): void;
|
|
30
|
+
includeRequired(validators: Array<any>): boolean;
|
|
31
|
+
fileChange(event: any): void;
|
|
32
|
+
onUploadClick(id: any): void;
|
|
33
|
+
updateCheckboxValue(formArray: any, controlName: any, checked: any, value: any): void;
|
|
34
|
+
updateRadioValue(inputId: any, checked: any, optionId: any): void;
|
|
35
|
+
isCheckBoxChecked(controlName: any, optionId: any): any;
|
|
36
|
+
isRadioChecked(controlName: any, optionId: any): boolean;
|
|
37
|
+
resetForm(): void;
|
|
38
|
+
isEmpty(value: any): boolean;
|
|
39
|
+
getDisabled(): boolean;
|
|
40
|
+
setDisabled(disabled: boolean): void;
|
|
41
|
+
setDanger(label: string): void;
|
|
42
|
+
setWarning(label: string): void;
|
|
43
|
+
setSuccess(label: string): void;
|
|
44
|
+
setInfo(label: string): void;
|
|
45
|
+
setPrimary(label: string): void;
|
|
46
|
+
setSecondary(label: string): void;
|
|
47
|
+
setAlertTimeout(timeout: number): void;
|
|
48
|
+
getIconClass(input: any): any;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "df-form", never, { "formFields": "formFields"; "disabled": "disabled"; "buttons": "buttons"; }, { "onSubmit": "onSubmit"; }, never, never>;
|
|
51
|
+
}
|