tuain-ng-forms-lib 14.4.95 → 14.5.10
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/classes/forms/action.mjs +23 -4
- package/esm2020/lib/classes/forms/element.mjs +1 -9
- package/esm2020/lib/classes/forms/field.mjs +19 -28
- package/esm2020/lib/classes/forms/form.mjs +2 -2
- package/esm2020/lib/classes/forms/piece.mjs +6 -4
- package/esm2020/lib/classes/forms/section.mjs +3 -3
- package/esm2020/lib/classes/forms/table/action.mjs +28 -4
- package/esm2020/lib/classes/forms/table/table.mjs +4 -4
- package/esm2020/lib/components/elements/action.component.mjs +2 -24
- package/esm2020/lib/components/elements/layout/element.component.mjs +5 -5
- package/esm2020/lib/components/elements/layout/form-header.component.mjs +2 -9
- package/esm2020/lib/components/elements/layout/piece.component.mjs +2 -1
- package/esm2020/lib/components/elements/layout/section.component.mjs +5 -5
- package/esm2020/lib/components/elements/layout/sub-section.component.mjs +5 -5
- package/esm2020/lib/components/elements/tables/table-record-action.component.mjs +4 -2
- package/esm2020/lib/components/forms/basic-form.mjs +31 -11
- package/fesm2015/tuain-ng-forms-lib.mjs +137 -109
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +126 -104
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/lib/classes/forms/action.d.ts +7 -6
- package/lib/classes/forms/element.d.ts +0 -8
- package/lib/classes/forms/field.d.ts +2 -11
- package/lib/classes/forms/piece.d.ts +3 -2
- package/lib/classes/forms/section.d.ts +1 -1
- package/lib/classes/forms/table/action.d.ts +7 -4
- package/lib/classes/forms/table/table.d.ts +1 -1
- package/lib/components/elements/action.component.d.ts +1 -6
- package/lib/components/elements/layout/element.component.d.ts +1 -2
- package/lib/components/elements/layout/form-header.component.d.ts +1 -4
- package/lib/components/elements/layout/piece.component.d.ts +2 -0
- package/lib/components/elements/layout/section.component.d.ts +1 -2
- package/lib/components/elements/layout/sub-section.component.d.ts +1 -2
- package/lib/components/forms/basic-form.d.ts +5 -3
- package/package.json +1 -1
|
@@ -2,17 +2,18 @@ import { Subject } from 'rxjs';
|
|
|
2
2
|
import { FormElement } from './element';
|
|
3
3
|
export declare class FormAction extends FormElement {
|
|
4
4
|
private readonly _actionActivated;
|
|
5
|
-
inProgress: boolean;
|
|
6
|
-
newState: string;
|
|
7
|
-
backend: boolean;
|
|
8
5
|
actionCode: string;
|
|
9
6
|
actionName: string;
|
|
10
7
|
iconName: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
inProgress: boolean;
|
|
9
|
+
newState: string;
|
|
10
|
+
backend: boolean;
|
|
11
|
+
restrictedOnField: string | null;
|
|
12
|
+
restrictedOnOperator: string | null;
|
|
13
|
+
restrictedOnValue: string | null;
|
|
14
14
|
customValidation: any;
|
|
15
15
|
constructor(actionDefinition: any, formConfig: any);
|
|
16
|
+
viewOnState(state: string): boolean;
|
|
16
17
|
get actionActivated(): Subject<string>;
|
|
17
18
|
start(): void;
|
|
18
19
|
stop(): void;
|
|
@@ -6,12 +6,4 @@ export declare class FormElement extends FormPiecePropagate {
|
|
|
6
6
|
isField(): boolean;
|
|
7
7
|
isAction(): boolean;
|
|
8
8
|
isTable(): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Utilizar viewOnState
|
|
11
|
-
*/
|
|
12
|
-
supportState(state: string): boolean;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Utilizar viewOnState
|
|
15
|
-
*/
|
|
16
|
-
supportMode(state: string): boolean;
|
|
17
9
|
}
|
|
@@ -15,7 +15,6 @@ export declare class FieldDescriptor extends FormElement {
|
|
|
15
15
|
private _errorType;
|
|
16
16
|
private _errorCode;
|
|
17
17
|
private _errorMessage;
|
|
18
|
-
private _fieldCode;
|
|
19
18
|
private _intrinsicErrorMessage;
|
|
20
19
|
private _minValue;
|
|
21
20
|
private _maxValue;
|
|
@@ -36,10 +35,11 @@ export declare class FieldDescriptor extends FormElement {
|
|
|
36
35
|
private _fieldTitle;
|
|
37
36
|
private _fieldType;
|
|
38
37
|
private _fieldFormat;
|
|
39
|
-
private _fieldOptions;
|
|
40
38
|
private _hasChanged;
|
|
41
39
|
private _outputOnly;
|
|
42
40
|
private _tooltipText;
|
|
41
|
+
fieldCode: string;
|
|
42
|
+
fieldOptions: FieldOption[] | null;
|
|
43
43
|
constructor(inputFieldReceived: any, formConfig: any);
|
|
44
44
|
get alignment(): string;
|
|
45
45
|
set alignment(alignment: string);
|
|
@@ -47,7 +47,6 @@ export declare class FieldDescriptor extends FormElement {
|
|
|
47
47
|
get captureType(): string;
|
|
48
48
|
set captureType(captureType: string);
|
|
49
49
|
get code(): string;
|
|
50
|
-
get fieldCode(): string;
|
|
51
50
|
get defaultValue(): string;
|
|
52
51
|
set defaultValue(defaultValue: string);
|
|
53
52
|
get defaultEditable(): boolean;
|
|
@@ -111,14 +110,6 @@ export declare class FieldDescriptor extends FormElement {
|
|
|
111
110
|
set value(newValue: any);
|
|
112
111
|
get visibleLabel(): boolean;
|
|
113
112
|
set visibleLabel(visibleLabel: boolean);
|
|
114
|
-
/**
|
|
115
|
-
* @deprecated Use options
|
|
116
|
-
*/
|
|
117
|
-
get fieldOptions(): FieldOption[];
|
|
118
|
-
/**
|
|
119
|
-
* @deprecated Use options
|
|
120
|
-
*/
|
|
121
|
-
set fieldOptions(options: FieldOption[]);
|
|
122
113
|
/**
|
|
123
114
|
* @deprecated Use value
|
|
124
115
|
*/
|
|
@@ -6,6 +6,7 @@ export declare class FormPiece {
|
|
|
6
6
|
protected _absoluteDisabled: boolean;
|
|
7
7
|
protected visibleStates: string[] | null;
|
|
8
8
|
protected enabledStates: string[] | null;
|
|
9
|
+
_form: any;
|
|
9
10
|
_formConfig: any;
|
|
10
11
|
_visible: boolean;
|
|
11
12
|
_disabled: boolean;
|
|
@@ -35,7 +36,7 @@ export declare class FormPiece {
|
|
|
35
36
|
set disabled(disabled: boolean);
|
|
36
37
|
enable(): void;
|
|
37
38
|
disable(): void;
|
|
38
|
-
formStateChangeCustomSubscribe(formChangeSubject: any): void;
|
|
39
|
+
formStateChangeCustomSubscribe(form: any, formChangeSubject: any): void;
|
|
39
40
|
formStateChange(state: any): void;
|
|
40
|
-
|
|
41
|
+
connectWithParentForm(form: any, formChangeSubject: any): void;
|
|
41
42
|
}
|
|
@@ -28,5 +28,5 @@ export declare class RecordFormSection extends FormPiecePropagate {
|
|
|
28
28
|
getActionNames(): string[];
|
|
29
29
|
getFieldNames(): string[];
|
|
30
30
|
getField(name: any): any;
|
|
31
|
-
formStateChangeCustomSubscribe(formChangeSubject: any): void;
|
|
31
|
+
formStateChangeCustomSubscribe(form: any, formChangeSubject: any): void;
|
|
32
32
|
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { FormPiece } from '../piece';
|
|
2
2
|
export declare class TableAction extends FormPiece {
|
|
3
|
-
newState: string;
|
|
4
3
|
actionCode: string;
|
|
5
4
|
actionTitle: string;
|
|
6
5
|
iconName: string;
|
|
7
6
|
actionType: string;
|
|
8
7
|
actionClass: string;
|
|
9
8
|
stateField: string;
|
|
9
|
+
newState: string;
|
|
10
10
|
backend: boolean;
|
|
11
|
-
restrictedOnField: string;
|
|
12
|
-
restrictedOnValue: string;
|
|
13
|
-
restrictedOnOperator: string;
|
|
11
|
+
restrictedOnField: string | null;
|
|
12
|
+
restrictedOnValue: string | null;
|
|
13
|
+
restrictedOnOperator: string | null;
|
|
14
|
+
recordData: any;
|
|
14
15
|
constructor(actionDefinition: any, formConfig: any);
|
|
16
|
+
viewOnState(state: string): boolean;
|
|
17
|
+
setRecodData(recordData: any): void;
|
|
15
18
|
}
|
|
@@ -96,5 +96,5 @@ export declare class RecordTable extends FormElement {
|
|
|
96
96
|
setRequiredOrder(columnField: any, direction?: any): void;
|
|
97
97
|
localSortData(): void;
|
|
98
98
|
recordCompare(recordA: TableRecordData, recordB: TableRecordData, columnCompare: any, direction: any): number;
|
|
99
|
-
formStateChangeCustomSubscribe(formChangeSubject: any): void;
|
|
99
|
+
formStateChangeCustomSubscribe(form: any, formChangeSubject: any): void;
|
|
100
100
|
}
|
|
@@ -5,13 +5,8 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class ActionComponent extends ElementComponent implements OnInit {
|
|
6
6
|
inProgress: boolean;
|
|
7
7
|
action: FormAction | null;
|
|
8
|
-
busy: any;
|
|
9
|
-
relatedField: any;
|
|
10
|
-
style: string;
|
|
11
|
-
showLabel: boolean;
|
|
12
8
|
ngOnInit(): void;
|
|
13
9
|
activate(): void;
|
|
14
|
-
visibleOnRestriction(): boolean;
|
|
15
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionComponent, "lib-action", never, { "action": "action";
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionComponent, "lib-action", never, { "action": "action"; }, {}, never, ["*"], false>;
|
|
17
12
|
}
|
|
@@ -2,8 +2,7 @@ import { PieceComponent } from './piece.component';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ElementComponent extends PieceComponent {
|
|
4
4
|
element: any;
|
|
5
|
-
form: any;
|
|
6
5
|
start(): void;
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElementComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "lib-element", never, { "element": "element";
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "lib-element", never, { "element": "element"; }, {}, never, ["*"], false>;
|
|
9
8
|
}
|
|
@@ -2,11 +2,8 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class FormHeaderComponent {
|
|
4
4
|
form: any;
|
|
5
|
-
canGoBack: boolean;
|
|
6
|
-
showTitle: any;
|
|
7
|
-
headerActions: any;
|
|
8
5
|
goBackEvent: EventEmitter<void>;
|
|
9
6
|
goBackForm(): void;
|
|
10
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormHeaderComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormHeaderComponent, "lib-form-header", never, { "form": "form";
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormHeaderComponent, "lib-form-header", never, { "form": "form"; }, { "goBackEvent": "goBackEvent"; }, never, ["*"], false>;
|
|
12
9
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class PieceComponent {
|
|
3
|
+
form: any;
|
|
3
4
|
formConfig: any;
|
|
4
5
|
visible: boolean;
|
|
5
6
|
disabled: boolean;
|
|
6
7
|
customAttributes: any;
|
|
8
|
+
setForm(form: any): void;
|
|
7
9
|
defaultProcessAttributeChange(attribute: string, value?: any): boolean;
|
|
8
10
|
customProcessAttributeChange(attribute: string, value?: any): void;
|
|
9
11
|
customAttributeChange(subAttribute: string, value?: any): void;
|
|
@@ -3,9 +3,8 @@ import { PieceComponent } from './piece.component';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SectionComponent extends PieceComponent implements OnInit {
|
|
5
5
|
section: any;
|
|
6
|
-
form: any;
|
|
7
6
|
ngOnInit(): void;
|
|
8
7
|
start(): void;
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SectionComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "lib-section", never, { "section": "section";
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "lib-section", never, { "section": "section"; }, {}, never, ["*"], false>;
|
|
11
10
|
}
|
|
@@ -3,9 +3,8 @@ import { PieceComponent } from './piece.component';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SubSectionComponent extends PieceComponent implements OnInit {
|
|
5
5
|
subSection: any;
|
|
6
|
-
form: any;
|
|
7
6
|
ngOnInit(): void;
|
|
8
7
|
start(): void;
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubSectionComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SubSectionComponent, "lib-subsection", never, { "subSection": "subSection";
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubSectionComponent, "lib-subsection", never, { "subSection": "subSection"; }, {}, never, ["*"], false>;
|
|
11
10
|
}
|
|
@@ -17,6 +17,7 @@ export declare class BasicFormComponent {
|
|
|
17
17
|
private _originToken;
|
|
18
18
|
private _formRoute;
|
|
19
19
|
private _definitionObtained;
|
|
20
|
+
private _formChangeState;
|
|
20
21
|
private _formSectionsCanDeactivate;
|
|
21
22
|
private _formSectionsActivate;
|
|
22
23
|
private _formSectionsInactivate;
|
|
@@ -59,7 +60,6 @@ export declare class BasicFormComponent {
|
|
|
59
60
|
cleanData(): void;
|
|
60
61
|
getCurrentState(): string;
|
|
61
62
|
supportState(state: string | null): boolean;
|
|
62
|
-
changeState(state: any): boolean;
|
|
63
63
|
getStates(): any[];
|
|
64
64
|
getImmutableElement(name: string): any;
|
|
65
65
|
getExtraInfo(name: string): any;
|
|
@@ -141,11 +141,11 @@ export declare class BasicFormComponent {
|
|
|
141
141
|
setConfig(formConfig: any): void;
|
|
142
142
|
cleanStart(): void;
|
|
143
143
|
get formVisible(): boolean;
|
|
144
|
-
get
|
|
144
|
+
get form(): this;
|
|
145
145
|
get formCode(): string;
|
|
146
146
|
set formCode(name: string);
|
|
147
147
|
get inServerProcess(): boolean;
|
|
148
|
-
get
|
|
148
|
+
get formStructure(): FormStructureAndData | null;
|
|
149
149
|
get state(): string | null;
|
|
150
150
|
get currentState(): string;
|
|
151
151
|
set currentState(state: string);
|
|
@@ -222,6 +222,7 @@ export declare class BasicFormComponent {
|
|
|
222
222
|
subscribeActionSubjects(): void;
|
|
223
223
|
subscribeTableSubjects(): void;
|
|
224
224
|
formInit(params: any, forceReload?: boolean): Promise<void>;
|
|
225
|
+
changeState(state: string | undefined): boolean;
|
|
225
226
|
checkErrorRecordReceived(recordResponse: any): boolean;
|
|
226
227
|
errorOccured(): boolean;
|
|
227
228
|
/**
|
|
@@ -241,6 +242,7 @@ export declare class BasicFormComponent {
|
|
|
241
242
|
/**
|
|
242
243
|
* Manejo de event handlers para acciones sobre el formulario
|
|
243
244
|
*/
|
|
245
|
+
onFormChange(callback: any): void;
|
|
244
246
|
onSectionCanDeactivate(codes: string[] | string | null, callback: any, properties?: any): void;
|
|
245
247
|
onSectionActivation(codes: string[] | string | null, callback: any, properties?: any): void;
|
|
246
248
|
onSectionInactivation(codes: string[] | string | null, callback: any, properties?: any): void;
|