tuain-ng-forms-lib 14.4.45 → 14.4.91
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 +3 -3
- package/esm2020/lib/classes/forms/field.mjs +5 -5
- package/esm2020/lib/classes/forms/form.mjs +7 -7
- package/esm2020/lib/classes/forms/piece-propagate.mjs +30 -0
- package/esm2020/lib/classes/forms/piece.mjs +26 -46
- package/esm2020/lib/classes/forms/section.mjs +23 -20
- package/esm2020/lib/classes/forms/subsection.mjs +16 -3
- package/esm2020/lib/classes/forms/table/column.mjs +5 -2
- package/esm2020/lib/classes/forms/table/row-data.mjs +14 -9
- package/esm2020/lib/classes/forms/table/table.mjs +17 -10
- package/esm2020/lib/components/elements/field.component.mjs +3 -3
- package/esm2020/lib/components/elements/tables/table.component.mjs +3 -27
- package/esm2020/lib/components/forms/basic-form.mjs +2 -2
- package/fesm2015/tuain-ng-forms-lib.mjs +146 -131
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +135 -119
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/lib/classes/forms/element.d.ts +2 -2
- package/lib/classes/forms/piece-propagate.d.ts +11 -0
- package/lib/classes/forms/piece.d.ts +11 -13
- package/lib/classes/forms/section.d.ts +5 -3
- package/lib/classes/forms/subsection.d.ts +5 -2
- package/lib/classes/forms/table/column.d.ts +2 -0
- package/lib/classes/forms/table/row-data.d.ts +1 -1
- package/lib/classes/forms/table/table.d.ts +3 -2
- package/lib/components/elements/field.component.d.ts +1 -1
- package/lib/components/elements/tables/table.component.d.ts +0 -8
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class FormElement extends
|
|
1
|
+
import { FormPiecePropagate } from './piece-propagate';
|
|
2
|
+
export declare class FormElement extends FormPiecePropagate {
|
|
3
3
|
elementType: string | null;
|
|
4
4
|
constructor(elementDefinition: any, formConfig: any);
|
|
5
5
|
setAttr(attr: any, value: any): void;
|
|
@@ -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
|
+
}
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
1
|
export declare class FormPiece {
|
|
3
|
-
protected readonly _attributeChange: BehaviorSubject<any>;
|
|
4
2
|
protected _formState: string;
|
|
5
3
|
protected _visibleForced: boolean;
|
|
6
4
|
protected _isForced: boolean;
|
|
7
|
-
protected
|
|
8
|
-
protected
|
|
5
|
+
protected _absoluteVisible: boolean;
|
|
6
|
+
protected _absoluteDisabled: boolean;
|
|
9
7
|
protected visibleStates: string[] | null;
|
|
10
8
|
protected enabledStates: string[] | null;
|
|
11
9
|
_formConfig: any;
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
_visible: boolean;
|
|
11
|
+
_disabled: boolean;
|
|
14
12
|
customAttributes: any;
|
|
15
13
|
constructor(pieceDefinition: any, formConfig: any);
|
|
16
14
|
getCustomAttribute(name: string): any;
|
|
17
15
|
setCustomAttribute(name: string, value: any): void;
|
|
18
16
|
setCustomAttributes(attributes: any): void;
|
|
19
17
|
matchAttribute(name: string, value: string): boolean;
|
|
20
|
-
get attributeChange(): BehaviorSubject<any>;
|
|
21
|
-
propagateAttribute(name: any, value: any): void;
|
|
22
18
|
setVisibleStates(newStates: any): void;
|
|
23
19
|
setEnabledStates(newStates: any): void;
|
|
24
20
|
viewOnState(state: string): boolean;
|
|
25
21
|
enabledOnState(state: string): boolean;
|
|
22
|
+
get absoluteVisible(): boolean;
|
|
23
|
+
get absoluteDisabled(): boolean;
|
|
26
24
|
get visible(): boolean;
|
|
27
25
|
set visible(visible: boolean);
|
|
28
26
|
visibleOn(state: string): boolean;
|
|
@@ -30,14 +28,14 @@ export declare class FormPiece {
|
|
|
30
28
|
setVisibility(visible: boolean, forced?: boolean | null): void;
|
|
31
29
|
show(forced?: boolean | null): void;
|
|
32
30
|
hide(forced?: boolean | null): void;
|
|
33
|
-
get disabled(): boolean;
|
|
34
31
|
get enabled(): boolean;
|
|
35
|
-
get editable(): boolean;
|
|
36
32
|
set enabled(enabled: boolean);
|
|
33
|
+
get editable(): boolean;
|
|
34
|
+
get disabled(): boolean;
|
|
35
|
+
set disabled(disabled: boolean);
|
|
37
36
|
enable(): void;
|
|
38
37
|
disable(): void;
|
|
38
|
+
formStateChangeCustomSubscribe(formChangeSubject: any): void;
|
|
39
|
+
formStateChange(state: any): void;
|
|
39
40
|
subscribeFormStateChange(formChangeSubject: any): void;
|
|
40
|
-
formStateChangeCustom(formChangeSubject: any): void;
|
|
41
|
-
propagateVisible(): void;
|
|
42
|
-
propagateDisabled(): void;
|
|
43
41
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { FormPiecePropagate } from './piece-propagate';
|
|
3
3
|
import { FormAction } from './action';
|
|
4
4
|
import { RecordFormSubSection } from './subsection';
|
|
5
|
-
export declare class RecordFormSection extends
|
|
5
|
+
export declare class RecordFormSection extends FormPiecePropagate {
|
|
6
6
|
private readonly _activation;
|
|
7
7
|
private readonly _inactivation;
|
|
8
8
|
active: boolean;
|
|
@@ -11,6 +11,7 @@ export declare class RecordFormSection extends FormPiece {
|
|
|
11
11
|
sectionTitle: string | null;
|
|
12
12
|
subSections: RecordFormSubSection[];
|
|
13
13
|
subSectionsObj: any;
|
|
14
|
+
private _exclusiveSubSectionsByAttr;
|
|
14
15
|
constructor(sectionReceived: any, formObject: any, formConfig: any);
|
|
15
16
|
get code(): string;
|
|
16
17
|
get activation(): Subject<string>;
|
|
@@ -21,10 +22,11 @@ export declare class RecordFormSection extends FormPiece {
|
|
|
21
22
|
set title(title: string);
|
|
22
23
|
getVisibleSubsections(state: any): RecordFormSubSection[];
|
|
23
24
|
getSubsection(subSectionCode: any): any;
|
|
25
|
+
activateSubSection(subSectionCode: any): void;
|
|
24
26
|
getFields(): any[];
|
|
25
27
|
getActions(): FormAction[];
|
|
26
28
|
getActionNames(): string[];
|
|
27
29
|
getFieldNames(): string[];
|
|
28
30
|
getField(name: any): any;
|
|
29
|
-
|
|
31
|
+
formStateChangeCustomSubscribe(formChangeSubject: any): void;
|
|
30
32
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormPiecePropagate } from './piece-propagate';
|
|
2
2
|
import { FormAction } from './action';
|
|
3
|
-
export declare class RecordFormSubSection extends
|
|
3
|
+
export declare class RecordFormSubSection extends FormPiecePropagate {
|
|
4
4
|
_customRender: string | null;
|
|
5
5
|
subsectionId: string | null;
|
|
6
6
|
subsectionCode: string | null;
|
|
@@ -10,6 +10,7 @@ export declare class RecordFormSubSection extends FormPiece {
|
|
|
10
10
|
subSectionTables: any[];
|
|
11
11
|
subSectionActions: any[];
|
|
12
12
|
elementsArray: any;
|
|
13
|
+
active: boolean;
|
|
13
14
|
constructor(subsectionReceived: any, formObject: any, formConfig: any);
|
|
14
15
|
get customRender(): string;
|
|
15
16
|
set customRender(customRenderName: string);
|
|
@@ -18,4 +19,6 @@ export declare class RecordFormSubSection extends FormPiece {
|
|
|
18
19
|
getFieldNames(): any[];
|
|
19
20
|
getActions(): FormAction[];
|
|
20
21
|
getActionNames(): string[];
|
|
22
|
+
activate(): void;
|
|
23
|
+
inactivate(): void;
|
|
21
24
|
}
|
|
@@ -15,11 +15,13 @@ export declare class RecordTableColumn extends FormPiece {
|
|
|
15
15
|
fieldAlignment: string;
|
|
16
16
|
fieldFormat: string;
|
|
17
17
|
sortable: boolean;
|
|
18
|
+
searchable: boolean;
|
|
18
19
|
sortDirections: string[];
|
|
19
20
|
filterVisible: boolean;
|
|
20
21
|
filterDef: FilterDef | null;
|
|
21
22
|
filterSetup: FilterSetup | null;
|
|
22
23
|
constructor(recTableColReceived: any, formConfig: any);
|
|
24
|
+
setSearchable(searchable?: boolean): void;
|
|
23
25
|
hideFilter(): void;
|
|
24
26
|
addFilterDefinition(filterDefinition: any): void;
|
|
25
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);
|
|
@@ -23,11 +23,12 @@ export declare class RecordTable extends FormElement {
|
|
|
23
23
|
private _appendPages;
|
|
24
24
|
private _actions;
|
|
25
25
|
private _actionsObj;
|
|
26
|
+
private globalFilterString;
|
|
26
27
|
private globalFilterStrings;
|
|
27
28
|
private selectedRecords;
|
|
28
|
-
private globalSearch;
|
|
29
29
|
private restrictedId;
|
|
30
30
|
private layout;
|
|
31
|
+
globalSearch: boolean;
|
|
31
32
|
tableRecords: TableRecordData[];
|
|
32
33
|
tableRecordObj: {};
|
|
33
34
|
visibleRecords: TableRecordData[] | null;
|
|
@@ -95,5 +96,5 @@ export declare class RecordTable extends FormElement {
|
|
|
95
96
|
setRequiredOrder(columnField: any, direction?: any): void;
|
|
96
97
|
localSortData(): void;
|
|
97
98
|
recordCompare(recordA: TableRecordData, recordB: TableRecordData, columnCompare: any, direction: any): number;
|
|
98
|
-
|
|
99
|
+
formStateChangeCustomSubscribe(formChangeSubject: any): void;
|
|
99
100
|
}
|
|
@@ -29,7 +29,7 @@ export declare class FieldComponent extends ElementComponent implements OnInit {
|
|
|
29
29
|
onChangeContent(): void;
|
|
30
30
|
onShowInfo(detail?: any): void;
|
|
31
31
|
focus(): void;
|
|
32
|
-
updateObject(): void;
|
|
32
|
+
updateObject(widgetUpdate?: boolean): void;
|
|
33
33
|
inputChanged(): void;
|
|
34
34
|
inputTyped(): void;
|
|
35
35
|
numberInputValidation(event: any): boolean;
|
|
@@ -6,15 +6,7 @@ import { ElementComponent } from '../layout/element.component';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
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
|
-
selectedRecords: any[];
|
|
14
|
-
recordsPerPage: any;
|
|
15
|
-
totalRecordsNumber: number;
|
|
16
|
-
allSelected: boolean;
|
|
17
|
-
layout: string;
|
|
18
10
|
tableFieldStyles: any;
|
|
19
11
|
loaded: boolean;
|
|
20
12
|
selectable: boolean;
|