tuain-ng-forms-lib 14.3.20 → 14.4.90
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/element.mjs +8 -69
- package/esm2020/lib/classes/forms/field.mjs +5 -12
- package/esm2020/lib/classes/forms/form.mjs +11 -7
- package/esm2020/lib/classes/forms/piece-propagate.mjs +30 -0
- package/esm2020/lib/classes/forms/piece.mjs +95 -0
- package/esm2020/lib/classes/forms/section.mjs +44 -44
- package/esm2020/lib/classes/forms/subsection.mjs +24 -14
- package/esm2020/lib/classes/forms/table/action.mjs +5 -18
- package/esm2020/lib/classes/forms/table/column.mjs +8 -15
- package/esm2020/lib/classes/forms/table/row-data.mjs +14 -9
- package/esm2020/lib/classes/forms/table/table.mjs +62 -42
- package/esm2020/lib/components/elements/action.component.mjs +26 -13
- package/esm2020/lib/components/elements/field.component.mjs +20 -22
- package/esm2020/lib/components/elements/layout/element.component.mjs +5 -16
- package/esm2020/lib/components/elements/layout/form-header.component.mjs +5 -5
- package/esm2020/lib/components/elements/layout/piece.component.mjs +22 -0
- package/esm2020/lib/components/elements/layout/section.component.mjs +20 -5
- package/esm2020/lib/components/elements/layout/sub-section.component.mjs +20 -7
- package/esm2020/lib/components/elements/tables/table-record-action.component.mjs +21 -5
- package/esm2020/lib/components/elements/tables/table.component.mjs +50 -54
- package/esm2020/lib/components/forms/basic-form.mjs +26 -15
- package/fesm2015/tuain-ng-forms-lib.mjs +533 -398
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +500 -368
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/lib/classes/forms/element.d.ts +3 -29
- package/lib/classes/forms/field.d.ts +0 -3
- package/lib/classes/forms/form.d.ts +3 -0
- package/lib/classes/forms/piece-propagate.d.ts +11 -0
- package/lib/classes/forms/piece.d.ts +41 -0
- package/lib/classes/forms/section.d.ts +10 -18
- package/lib/classes/forms/subsection.d.ts +10 -12
- package/lib/classes/forms/table/action.d.ts +3 -11
- package/lib/classes/forms/table/column.d.ts +4 -7
- package/lib/classes/forms/table/row-data.d.ts +1 -1
- package/lib/classes/forms/table/table.d.ts +3 -4
- package/lib/components/elements/action.component.d.ts +4 -8
- package/lib/components/elements/field.component.d.ts +5 -10
- package/lib/components/elements/layout/element.component.d.ts +3 -8
- package/lib/components/elements/layout/form-header.component.d.ts +3 -3
- package/lib/components/elements/layout/piece.component.d.ts +10 -0
- package/lib/components/elements/layout/section.component.d.ts +4 -3
- package/lib/components/elements/layout/sub-section.component.d.ts +4 -4
- package/lib/components/elements/tables/table-record-action.component.d.ts +2 -2
- package/lib/components/elements/tables/table.component.d.ts +6 -18
- package/lib/components/forms/basic-form.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,25 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
protected _visibleForced: boolean;
|
|
4
|
-
protected _isForced: boolean;
|
|
5
|
-
_formConfig: any;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
visibleStates: string[] | null;
|
|
8
|
-
enabledStates: string[] | null;
|
|
1
|
+
import { FormPiecePropagate } from './piece-propagate';
|
|
2
|
+
export declare class FormElement extends FormPiecePropagate {
|
|
9
3
|
elementType: string | null;
|
|
10
|
-
customAttributes: any;
|
|
11
4
|
constructor(elementDefinition: any, formConfig: any);
|
|
12
|
-
|
|
13
|
-
setCustomAttribute(name: string, value: any): void;
|
|
14
|
-
setCustomAttributes(attributes: any): void;
|
|
15
|
-
matchAttribute(name: string, value: string): boolean;
|
|
5
|
+
setAttr(attr: any, value: any): void;
|
|
16
6
|
isField(): boolean;
|
|
17
7
|
isAction(): boolean;
|
|
18
8
|
isTable(): boolean;
|
|
19
|
-
setVisibleStates(newStates: any): void;
|
|
20
|
-
setEnabledStates(newStates: any): void;
|
|
21
|
-
viewOnState(state: string): boolean;
|
|
22
|
-
enabledOnState(state: string): boolean;
|
|
23
9
|
/**
|
|
24
10
|
* @deprecated Utilizar viewOnState
|
|
25
11
|
*/
|
|
@@ -28,16 +14,4 @@ export declare class FormElement {
|
|
|
28
14
|
* @deprecated Utilizar viewOnState
|
|
29
15
|
*/
|
|
30
16
|
supportMode(state: string): boolean;
|
|
31
|
-
get visible(): boolean;
|
|
32
|
-
set visible(visible: boolean);
|
|
33
|
-
visibleOn(state: string): boolean;
|
|
34
|
-
enabledOn(state: string): boolean;
|
|
35
|
-
setVisibility(visible: boolean, forced?: boolean | null): void;
|
|
36
|
-
show(forced?: boolean | null): void;
|
|
37
|
-
hide(forced?: boolean | null): void;
|
|
38
|
-
enable(): void;
|
|
39
|
-
disable(): void;
|
|
40
|
-
get enabled(): boolean;
|
|
41
|
-
get editable(): boolean;
|
|
42
|
-
set editable(editable: boolean);
|
|
43
17
|
}
|
|
@@ -12,7 +12,6 @@ export declare class FieldDescriptor extends FormElement {
|
|
|
12
12
|
private readonly _editionFinish;
|
|
13
13
|
private readonly _editionPartial;
|
|
14
14
|
private readonly _detailRequest;
|
|
15
|
-
private readonly _attributeChange;
|
|
16
15
|
private _errorType;
|
|
17
16
|
private _errorCode;
|
|
18
17
|
private _errorMessage;
|
|
@@ -44,7 +43,6 @@ export declare class FieldDescriptor extends FormElement {
|
|
|
44
43
|
constructor(inputFieldReceived: any, formConfig: any);
|
|
45
44
|
get alignment(): string;
|
|
46
45
|
set alignment(alignment: string);
|
|
47
|
-
get attributeChange(): Subject<any>;
|
|
48
46
|
get backend(): boolean;
|
|
49
47
|
get captureType(): string;
|
|
50
48
|
set captureType(captureType: string);
|
|
@@ -201,7 +199,6 @@ export declare class FieldDescriptor extends FormElement {
|
|
|
201
199
|
notifyEditionPartial(): void;
|
|
202
200
|
notifyEditionFinish(): void;
|
|
203
201
|
notifyEditionDetailRequest(detail: any): void;
|
|
204
|
-
setAttr(attr: any, value: any): void;
|
|
205
202
|
setError(code: any, message: any, type?: string): void;
|
|
206
203
|
updateFromServer(fld: any): void;
|
|
207
204
|
private _setValue;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
1
2
|
import { FormAction } from './action';
|
|
2
3
|
import { FieldDescriptor, FieldOption } from './field';
|
|
3
4
|
import { RecordTable } from './table/table';
|
|
@@ -23,6 +24,7 @@ export interface TablePayload {
|
|
|
23
24
|
sortingDirection: string;
|
|
24
25
|
}
|
|
25
26
|
export declare class FormStructureAndData {
|
|
27
|
+
private readonly _stateChange;
|
|
26
28
|
state: string;
|
|
27
29
|
_name: string;
|
|
28
30
|
_formConfig: any;
|
|
@@ -50,6 +52,7 @@ export declare class FormStructureAndData {
|
|
|
50
52
|
get states(): any[];
|
|
51
53
|
getCurrentState(): string;
|
|
52
54
|
changeState(newState: string): boolean;
|
|
55
|
+
get stateChange(): Subject<any>;
|
|
53
56
|
setStateFlow(states?: any, transitions?: any, defaultState?: string): void;
|
|
54
57
|
getImmutableElement(name: string): any;
|
|
55
58
|
set immutableData(immutableData: any);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import { FormPiece } from './piece';
|
|
3
|
+
export declare class FormPiecePropagate extends FormPiece {
|
|
4
|
+
protected _attributeChange: BehaviorSubject<any>;
|
|
5
|
+
constructor(pieceDefinition: any, formConfig: any);
|
|
6
|
+
get attributeChange(): BehaviorSubject<any>;
|
|
7
|
+
propagateAttribute(name: any, value: any): void;
|
|
8
|
+
setVisibility(visible: boolean, forced?: boolean | null): void;
|
|
9
|
+
set enabled(enabled: any);
|
|
10
|
+
formStateChange(state: any): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare class FormPiece {
|
|
2
|
+
protected _formState: string;
|
|
3
|
+
protected _visibleForced: boolean;
|
|
4
|
+
protected _isForced: boolean;
|
|
5
|
+
protected _absoluteVisible: boolean;
|
|
6
|
+
protected _absoluteDisabled: boolean;
|
|
7
|
+
protected visibleStates: string[] | null;
|
|
8
|
+
protected enabledStates: string[] | null;
|
|
9
|
+
_formConfig: any;
|
|
10
|
+
_visible: boolean;
|
|
11
|
+
_disabled: boolean;
|
|
12
|
+
customAttributes: any;
|
|
13
|
+
constructor(pieceDefinition: any, formConfig: any);
|
|
14
|
+
getCustomAttribute(name: string): any;
|
|
15
|
+
setCustomAttribute(name: string, value: any): void;
|
|
16
|
+
setCustomAttributes(attributes: any): void;
|
|
17
|
+
matchAttribute(name: string, value: string): boolean;
|
|
18
|
+
setVisibleStates(newStates: any): void;
|
|
19
|
+
setEnabledStates(newStates: any): void;
|
|
20
|
+
viewOnState(state: string): boolean;
|
|
21
|
+
enabledOnState(state: string): boolean;
|
|
22
|
+
get absoluteVisible(): boolean;
|
|
23
|
+
get absoluteDisabled(): boolean;
|
|
24
|
+
get visible(): boolean;
|
|
25
|
+
set visible(visible: boolean);
|
|
26
|
+
visibleOn(state: string): boolean;
|
|
27
|
+
enabledOn(state: string): boolean;
|
|
28
|
+
setVisibility(visible: boolean, forced?: boolean | null): void;
|
|
29
|
+
show(forced?: boolean | null): void;
|
|
30
|
+
hide(forced?: boolean | null): void;
|
|
31
|
+
get enabled(): boolean;
|
|
32
|
+
set enabled(enabled: boolean);
|
|
33
|
+
get editable(): boolean;
|
|
34
|
+
get disabled(): boolean;
|
|
35
|
+
set disabled(disabled: boolean);
|
|
36
|
+
enable(): void;
|
|
37
|
+
disable(): void;
|
|
38
|
+
formStateChangeCustomSubscribe(formChangeSubject: any): void;
|
|
39
|
+
formStateChange(state: any): void;
|
|
40
|
+
subscribeFormStateChange(formChangeSubject: any): void;
|
|
41
|
+
}
|
|
@@ -1,40 +1,32 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
|
+
import { FormPiecePropagate } from './piece-propagate';
|
|
2
3
|
import { FormAction } from './action';
|
|
3
4
|
import { RecordFormSubSection } from './subsection';
|
|
4
|
-
export declare class RecordFormSection {
|
|
5
|
+
export declare class RecordFormSection extends FormPiecePropagate {
|
|
5
6
|
private readonly _activation;
|
|
6
7
|
private readonly _inactivation;
|
|
7
|
-
visible: boolean;
|
|
8
|
-
visibleStates: string[];
|
|
9
8
|
active: boolean;
|
|
10
|
-
sectionId: string;
|
|
11
|
-
sectionCode: string;
|
|
12
|
-
sectionTitle: string;
|
|
13
|
-
customAttributes: any;
|
|
9
|
+
sectionId: string | null;
|
|
10
|
+
sectionCode: string | null;
|
|
11
|
+
sectionTitle: string | null;
|
|
14
12
|
subSections: RecordFormSubSection[];
|
|
15
13
|
subSectionsObj: any;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
setCustomAttribute(name: any, value: any): any;
|
|
19
|
-
setCustomAttributes(attributes: any): void;
|
|
20
|
-
matchAttribute(name: any, value: any): boolean;
|
|
14
|
+
private _exclusiveSubSectionsByAttr;
|
|
15
|
+
constructor(sectionReceived: any, formObject: any, formConfig: any);
|
|
21
16
|
get code(): string;
|
|
22
17
|
get activation(): Subject<string>;
|
|
23
18
|
get inactivation(): Subject<string>;
|
|
24
19
|
activate(): void;
|
|
25
20
|
inactivate(): void;
|
|
26
|
-
show(): void;
|
|
27
|
-
hide(): void;
|
|
28
21
|
get title(): string;
|
|
29
22
|
set title(title: string);
|
|
30
23
|
getVisibleSubsections(state: any): RecordFormSubSection[];
|
|
31
24
|
getSubsection(subSectionCode: any): any;
|
|
25
|
+
activateSubSection(subSectionCode: any): void;
|
|
32
26
|
getFields(): any[];
|
|
33
27
|
getActions(): FormAction[];
|
|
34
28
|
getActionNames(): string[];
|
|
35
|
-
getFieldNames():
|
|
29
|
+
getFieldNames(): string[];
|
|
36
30
|
getField(name: any): any;
|
|
37
|
-
|
|
38
|
-
viewOnState(state: any): boolean;
|
|
39
|
-
supportMode(state: any): boolean;
|
|
31
|
+
formStateChangeCustomSubscribe(formChangeSubject: any): void;
|
|
40
32
|
}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
+
import { FormPiecePropagate } from './piece-propagate';
|
|
1
2
|
import { FormAction } from './action';
|
|
2
|
-
export declare class RecordFormSubSection {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
subsectionTitle: string;
|
|
8
|
-
visibleStates: string[];
|
|
3
|
+
export declare class RecordFormSubSection extends FormPiecePropagate {
|
|
4
|
+
_customRender: string | null;
|
|
5
|
+
subsectionId: string | null;
|
|
6
|
+
subsectionCode: string | null;
|
|
7
|
+
subsectionTitle: string | null;
|
|
9
8
|
subSectionElements: any[];
|
|
10
9
|
subSectionFields: any[];
|
|
11
10
|
subSectionTables: any[];
|
|
12
11
|
subSectionActions: any[];
|
|
13
12
|
elementsArray: any;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
hide(): void;
|
|
13
|
+
active: boolean;
|
|
14
|
+
constructor(subsectionReceived: any, formObject: any, formConfig: any);
|
|
17
15
|
get customRender(): string;
|
|
18
16
|
set customRender(customRenderName: string);
|
|
19
17
|
getField(name: any): any;
|
|
@@ -21,6 +19,6 @@ export declare class RecordFormSubSection {
|
|
|
21
19
|
getFieldNames(): any[];
|
|
22
20
|
getActions(): FormAction[];
|
|
23
21
|
getActionNames(): string[];
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
activate(): void;
|
|
23
|
+
inactivate(): void;
|
|
26
24
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
enabledStates: string[];
|
|
1
|
+
import { FormPiece } from '../piece';
|
|
2
|
+
export declare class TableAction extends FormPiece {
|
|
4
3
|
newState: string;
|
|
5
4
|
actionCode: string;
|
|
6
5
|
actionTitle: string;
|
|
@@ -12,12 +11,5 @@ export declare class TableAction {
|
|
|
12
11
|
restrictedOnField: string;
|
|
13
12
|
restrictedOnValue: string;
|
|
14
13
|
restrictedOnOperator: string;
|
|
15
|
-
|
|
16
|
-
constructor(actionDefinition: any);
|
|
17
|
-
getCustomAttribute(name: string): any;
|
|
18
|
-
setCustomAttribute(name: string, value: any): void;
|
|
19
|
-
setCustomAttributes(attributes: any): void;
|
|
20
|
-
supportMode(state: any): boolean;
|
|
21
|
-
viewOnState(state: any): boolean;
|
|
22
|
-
enabledOnState(state: any): boolean;
|
|
14
|
+
constructor(actionDefinition: any, formConfig: any);
|
|
23
15
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FormPiece } from '../piece';
|
|
1
2
|
export interface FilterDef {
|
|
2
3
|
operators: string[];
|
|
3
4
|
options: any[];
|
|
@@ -7,24 +8,20 @@ export interface FilterSetup {
|
|
|
7
8
|
operator: string;
|
|
8
9
|
values: any[];
|
|
9
10
|
}
|
|
10
|
-
export declare class RecordTableColumn {
|
|
11
|
-
_formConfig: any;
|
|
11
|
+
export declare class RecordTableColumn extends FormPiece {
|
|
12
12
|
fieldCode: string;
|
|
13
13
|
fieldTitle: string;
|
|
14
14
|
fieldType: string;
|
|
15
15
|
fieldAlignment: string;
|
|
16
16
|
fieldFormat: string;
|
|
17
|
-
visible: boolean;
|
|
18
17
|
sortable: boolean;
|
|
18
|
+
searchable: boolean;
|
|
19
19
|
sortDirections: string[];
|
|
20
|
-
customAttributes: any;
|
|
21
20
|
filterVisible: boolean;
|
|
22
21
|
filterDef: FilterDef | null;
|
|
23
22
|
filterSetup: FilterSetup | null;
|
|
24
23
|
constructor(recTableColReceived: any, formConfig: any);
|
|
25
|
-
|
|
26
|
-
setCustomAttribute(name: string, value: any): void;
|
|
27
|
-
setCustomAttributes(attributes: any): void;
|
|
24
|
+
setSearchable(searchable?: boolean): void;
|
|
28
25
|
hideFilter(): void;
|
|
29
26
|
addFilterDefinition(filterDefinition: any): void;
|
|
30
27
|
get filterDefinition(): FilterDef;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RecordTableColumn } from './column';
|
|
2
2
|
export declare class TableRecordData {
|
|
3
|
-
recordId: string;
|
|
3
|
+
recordId: string | null;
|
|
4
4
|
selected: boolean;
|
|
5
5
|
recordData: any;
|
|
6
6
|
constructor(recordReceived: any, recordDefinition: RecordTableColumn[], selectionFieldName?: any);
|
|
@@ -19,16 +19,16 @@ export declare class RecordTable extends FormElement {
|
|
|
19
19
|
private readonly _recordSelectionTrigger;
|
|
20
20
|
private readonly _selectionActionTrigger;
|
|
21
21
|
private readonly _getDataTrigger;
|
|
22
|
-
private readonly _attributeChange;
|
|
23
22
|
private _tableColumnObj;
|
|
24
23
|
private _appendPages;
|
|
25
24
|
private _actions;
|
|
26
25
|
private _actionsObj;
|
|
26
|
+
private globalFilterString;
|
|
27
27
|
private globalFilterStrings;
|
|
28
28
|
private selectedRecords;
|
|
29
|
-
private globalSearch;
|
|
30
29
|
private restrictedId;
|
|
31
30
|
private layout;
|
|
31
|
+
globalSearch: boolean;
|
|
32
32
|
tableRecords: TableRecordData[];
|
|
33
33
|
tableRecordObj: {};
|
|
34
34
|
visibleRecords: TableRecordData[] | null;
|
|
@@ -56,7 +56,6 @@ export declare class RecordTable extends FormElement {
|
|
|
56
56
|
get selectionActionTrigger(): Subject<TableEvent>;
|
|
57
57
|
get recordSelectionTrigger(): Subject<TableEvent>;
|
|
58
58
|
get getDataTrigger(): Subject<TableEvent>;
|
|
59
|
-
get attributeChange(): Subject<any>;
|
|
60
59
|
getLayout(): string;
|
|
61
60
|
setLayout(layout: any): void;
|
|
62
61
|
hasActions(): boolean;
|
|
@@ -66,7 +65,6 @@ export declare class RecordTable extends FormElement {
|
|
|
66
65
|
columnDefinition(fieldCode: any): RecordTableColumn;
|
|
67
66
|
putOnWait(): void;
|
|
68
67
|
freeWaiting(): void;
|
|
69
|
-
setAttr(name: string, value: any): void;
|
|
70
68
|
notifyGlobalAction(actionCode: any): void;
|
|
71
69
|
notifyInlineAction(tableActionEvent: TableActionEvent): void;
|
|
72
70
|
notifyRecordSelection(recordId: any): void;
|
|
@@ -98,4 +96,5 @@ export declare class RecordTable extends FormElement {
|
|
|
98
96
|
setRequiredOrder(columnField: any, direction?: any): void;
|
|
99
97
|
localSortData(): void;
|
|
100
98
|
recordCompare(recordA: TableRecordData, recordB: TableRecordData, columnCompare: any, direction: any): number;
|
|
99
|
+
formStateChangeCustomSubscribe(formChangeSubject: any): void;
|
|
101
100
|
}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormAction } from '../../classes/forms/action';
|
|
3
|
+
import { ElementComponent } from './layout/element.component';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ActionComponent implements OnInit {
|
|
5
|
-
formConfig: any;
|
|
5
|
+
export declare class ActionComponent extends ElementComponent implements OnInit {
|
|
6
6
|
inProgress: boolean;
|
|
7
|
-
action: FormAction;
|
|
7
|
+
action: FormAction | null;
|
|
8
8
|
busy: any;
|
|
9
9
|
relatedField: any;
|
|
10
|
-
state: any;
|
|
11
10
|
style: string;
|
|
12
11
|
showLabel: boolean;
|
|
13
12
|
ngOnInit(): void;
|
|
14
|
-
start(): void;
|
|
15
13
|
activate(): void;
|
|
16
14
|
visibleOnRestriction(): boolean;
|
|
17
|
-
get visible(): boolean;
|
|
18
|
-
get disabled(): boolean;
|
|
19
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionComponent, "lib-action", never, { "action": "action"; "busy": "busy"; "relatedField": "relatedField"; "
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionComponent, "lib-action", never, { "action": "action"; "busy": "busy"; "relatedField": "relatedField"; "style": "style"; "showLabel": "showLabel"; }, {}, never, ["*"], false>;
|
|
21
17
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FieldDescriptor } from '../../classes/forms/field';
|
|
3
|
+
import { ElementComponent } from './layout/element.component';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FieldComponent implements OnInit {
|
|
5
|
-
formConfig: any;
|
|
5
|
+
export declare class FieldComponent extends ElementComponent implements OnInit {
|
|
6
6
|
code: string;
|
|
7
7
|
value: any;
|
|
8
8
|
info: string;
|
|
@@ -22,22 +22,17 @@ export declare class FieldComponent implements OnInit {
|
|
|
22
22
|
errorCode: any;
|
|
23
23
|
errorMessage: any;
|
|
24
24
|
field: FieldDescriptor | null;
|
|
25
|
-
state: any;
|
|
26
25
|
ngOnInit(): void;
|
|
27
|
-
|
|
28
|
-
get visible(): boolean;
|
|
29
|
-
get disabled(): boolean;
|
|
26
|
+
defaultProcessAttributeChange(attribute: string, value?: any): void;
|
|
30
27
|
updateValue(): void;
|
|
31
28
|
onInputChange(): void;
|
|
32
29
|
onChangeContent(): void;
|
|
33
30
|
onShowInfo(detail?: any): void;
|
|
34
|
-
processFieldChange(attribute: string, value?: any): void;
|
|
35
|
-
start(): void;
|
|
36
31
|
focus(): void;
|
|
37
|
-
updateObject(): void;
|
|
32
|
+
updateObject(widgetUpdate?: boolean): void;
|
|
38
33
|
inputChanged(): void;
|
|
39
34
|
inputTyped(): void;
|
|
40
35
|
numberInputValidation(event: any): boolean;
|
|
41
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "lib-field", never, { "field": "field";
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "lib-field", never, { "field": "field"; }, {}, never, ["*"], false>;
|
|
43
38
|
}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PieceComponent } from './piece.component';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ElementComponent
|
|
4
|
-
formConfig: any;
|
|
3
|
+
export declare class ElementComponent extends PieceComponent {
|
|
5
4
|
element: any;
|
|
6
5
|
form: any;
|
|
7
|
-
state: any;
|
|
8
|
-
ngOnInit(): void;
|
|
9
6
|
start(): void;
|
|
10
|
-
get visible(): any;
|
|
11
|
-
get disabled(): boolean;
|
|
12
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElementComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "lib-element", never, { "element": "element"; "form": "form";
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "lib-element", never, { "element": "element"; "form": "form"; }, {}, never, ["*"], false>;
|
|
14
9
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class FormHeaderComponent {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
form: any;
|
|
5
|
+
canGoBack: boolean;
|
|
6
6
|
showTitle: any;
|
|
7
7
|
headerActions: any;
|
|
8
8
|
goBackEvent: EventEmitter<void>;
|
|
9
9
|
goBackForm(): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormHeaderComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormHeaderComponent, "lib-form-header", never, { "
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormHeaderComponent, "lib-form-header", never, { "form": "form"; "canGoBack": "canGoBack"; "showTitle": "showTitle"; "headerActions": "headerActions"; }, { "goBackEvent": "goBackEvent"; }, never, ["*"], false>;
|
|
12
12
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class PieceComponent {
|
|
3
|
+
formConfig: any;
|
|
4
|
+
visible: boolean;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
defaultProcessAttributeChange(attribute: string, value?: any): void;
|
|
7
|
+
customProcessAttributeChange(attribute: string, value?: any): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PieceComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PieceComponent, "lib-piece", never, {}, {}, never, ["*"], false>;
|
|
10
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { PieceComponent } from './piece.component';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SectionComponent implements OnInit {
|
|
4
|
+
export declare class SectionComponent extends PieceComponent implements OnInit {
|
|
4
5
|
section: any;
|
|
5
|
-
|
|
6
|
+
form: any;
|
|
6
7
|
ngOnInit(): void;
|
|
7
8
|
start(): void;
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SectionComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "lib-section", never, { "section": "section"; "
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "lib-section", never, { "section": "section"; "form": "form"; }, {}, never, ["*"], false>;
|
|
10
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { PieceComponent } from './piece.component';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SubSectionComponent implements OnInit {
|
|
4
|
+
export declare class SubSectionComponent extends PieceComponent implements OnInit {
|
|
4
5
|
subSection: any;
|
|
5
|
-
|
|
6
|
-
formManager: any;
|
|
6
|
+
form: any;
|
|
7
7
|
ngOnInit(): void;
|
|
8
8
|
start(): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubSectionComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SubSectionComponent, "lib-subsection", never, { "subSection": "subSection"; "
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubSectionComponent, "lib-subsection", never, { "subSection": "subSection"; "form": "form"; }, {}, never, ["*"], false>;
|
|
11
11
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { PieceComponent } from '../layout/piece.component';
|
|
2
3
|
import { TableActionEvent } from '../../../classes/forms/table/table';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LibTableRecordActionComponent implements OnInit {
|
|
5
|
+
export declare class LibTableRecordActionComponent extends PieceComponent implements OnInit {
|
|
5
6
|
recordId: any;
|
|
6
7
|
recordData: any;
|
|
7
8
|
action: any;
|
|
8
9
|
actionSelected: EventEmitter<TableActionEvent>;
|
|
9
|
-
constructor();
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
start(): void;
|
|
12
12
|
onActivate(): void;
|
|
@@ -2,20 +2,11 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { TableRecordData } from '../../../classes/forms/table/row-data';
|
|
3
3
|
import { TableActionEvent } from '../../../classes/forms/table/table';
|
|
4
4
|
import { RecordTable } from '../../../classes/forms/table/table';
|
|
5
|
+
import { ElementComponent } from '../layout/element.component';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class LibTableComponent implements OnInit {
|
|
7
|
-
formConfig: any;
|
|
7
|
+
export declare class LibTableComponent extends ElementComponent implements OnInit {
|
|
8
8
|
code: any;
|
|
9
|
-
columns: any;
|
|
10
|
-
currentPage: number;
|
|
11
|
-
globalSearch: boolean;
|
|
12
9
|
globalFilterString: string;
|
|
13
|
-
visibleRecords: any[];
|
|
14
|
-
selectedRecords: any[];
|
|
15
|
-
recordsPerPage: any;
|
|
16
|
-
totalRecordsNumber: number;
|
|
17
|
-
allSelected: boolean;
|
|
18
|
-
layout: string;
|
|
19
10
|
tableFieldStyles: any;
|
|
20
11
|
loaded: boolean;
|
|
21
12
|
selectable: boolean;
|
|
@@ -23,13 +14,10 @@ export declare class LibTableComponent implements OnInit {
|
|
|
23
14
|
inlineActions: any;
|
|
24
15
|
globalActions: any;
|
|
25
16
|
selectionActions: any;
|
|
26
|
-
table: RecordTable;
|
|
27
|
-
|
|
28
|
-
disabled: boolean;
|
|
29
|
-
state: string;
|
|
17
|
+
table: RecordTable | null;
|
|
18
|
+
visibleRecords: TableRecordData[];
|
|
30
19
|
waiting: boolean;
|
|
31
20
|
ngOnInit(): void;
|
|
32
|
-
start(): void;
|
|
33
21
|
updateTableData(): void;
|
|
34
22
|
tableGlobalAction(actionCode: string): void;
|
|
35
23
|
tableSelectionAction(actionCode: string): void;
|
|
@@ -40,8 +28,8 @@ export declare class LibTableComponent implements OnInit {
|
|
|
40
28
|
changePage(requestedPage: number): void;
|
|
41
29
|
tableColumnSort(columnName: string, direction?: any): void;
|
|
42
30
|
globalFilterChanged(): void;
|
|
43
|
-
|
|
31
|
+
defaultProcessAttributeChange(attribute: string, value?: any): boolean;
|
|
44
32
|
filterHasChanged(column: any, values: any): void;
|
|
45
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibTableComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibTableComponent, "lib-table", never, { "table": "table"; "
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibTableComponent, "lib-table", never, { "table": "table"; "visibleRecords": "visibleRecords"; "waiting": "waiting"; }, {}, never, ["*"], false>;
|
|
47
35
|
}
|