tuain-ng-forms-lib 17.1.38 → 17.2.0
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/lib/classes/forms/action.mjs +6 -4
- package/esm2022/lib/classes/forms/field.mjs +5 -5
- package/esm2022/lib/classes/forms/form.mjs +2 -2
- package/esm2022/lib/classes/forms/piece-propagate.mjs +2 -2
- package/esm2022/lib/classes/forms/piece.mjs +10 -2
- package/esm2022/lib/classes/forms/section.mjs +3 -3
- package/esm2022/lib/classes/forms/table/table.mjs +7 -7
- package/esm2022/lib/components/elements/action.component.mjs +10 -2
- package/esm2022/lib/components/elements/field.component.mjs +10 -2
- package/esm2022/lib/components/elements/layout/section.component.mjs +10 -2
- package/esm2022/lib/components/elements/layout/sub-section.component.mjs +10 -2
- package/esm2022/lib/components/elements/tables/table.component.mjs +10 -2
- package/esm2022/lib/components/forms/basic-form.mjs +43 -13
- package/esm2022/lib/services/event-manager.service.mjs +1 -1
- package/fesm2022/tuain-ng-forms-lib.mjs +109 -36
- package/fesm2022/tuain-ng-forms-lib.mjs.map +1 -1
- package/lib/classes/forms/action.d.ts +1 -2
- package/lib/classes/forms/field.d.ts +4 -5
- package/lib/classes/forms/form.d.ts +1 -2
- package/lib/classes/forms/piece-propagate.d.ts +1 -1
- package/lib/classes/forms/piece.d.ts +2 -0
- package/lib/classes/forms/section.d.ts +2 -3
- package/lib/classes/forms/table/table.d.ts +5 -6
- package/lib/components/elements/action.component.d.ts +2 -0
- package/lib/components/elements/field.component.d.ts +2 -0
- package/lib/components/elements/layout/section.component.d.ts +2 -0
- package/lib/components/elements/layout/sub-section.component.d.ts +2 -0
- package/lib/components/elements/tables/table.component.d.ts +2 -0
- package/lib/components/forms/basic-form.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
1
|
import { FormElement } from './element';
|
|
3
2
|
export declare class FormAction extends FormElement {
|
|
4
3
|
private readonly _actionActivated;
|
|
@@ -35,7 +34,7 @@ export declare class FormAction extends FormElement {
|
|
|
35
34
|
connectWithParentForm(form: any, formChangeSubject: any): void;
|
|
36
35
|
updateRestrictedVisibility(event: any): void;
|
|
37
36
|
viewOnState(state: string): boolean;
|
|
38
|
-
get actionActivated():
|
|
37
|
+
get actionActivated(): import("rxjs").Observable<string>;
|
|
39
38
|
notifyActivation(): void;
|
|
40
39
|
updateFromServer(receivedAction: any): void;
|
|
41
40
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
1
|
import { FormElement } from './element';
|
|
3
2
|
export interface DetailEvent {
|
|
4
3
|
code: string;
|
|
@@ -55,10 +54,10 @@ export declare class FieldDescriptor extends FormElement {
|
|
|
55
54
|
set defaultValue(defaultValue: any);
|
|
56
55
|
get defaultEditable(): boolean;
|
|
57
56
|
set defaultEditable(editable: boolean);
|
|
58
|
-
get detailRequest():
|
|
59
|
-
get customEvent():
|
|
60
|
-
get editionFinish():
|
|
61
|
-
get editionPartial():
|
|
57
|
+
get detailRequest(): import("rxjs").Observable<DetailEvent>;
|
|
58
|
+
get customEvent(): import("rxjs").Observable<any>;
|
|
59
|
+
get editionFinish(): import("rxjs").Observable<any>;
|
|
60
|
+
get editionPartial(): import("rxjs").Observable<any>;
|
|
62
61
|
get empty(): boolean;
|
|
63
62
|
get error(): {
|
|
64
63
|
type: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
1
|
import { FormAction } from './action';
|
|
3
2
|
import { FieldDescriptor, FieldOption } from './field';
|
|
4
3
|
import { RecordTable } from './table/table';
|
|
@@ -65,7 +64,7 @@ export declare class FormStructureAndData {
|
|
|
65
64
|
supportState(state?: string): boolean;
|
|
66
65
|
getNextStates(): string[];
|
|
67
66
|
changeState(newState: string): boolean;
|
|
68
|
-
get stateChange():
|
|
67
|
+
get stateChange(): import("rxjs").Observable<any>;
|
|
69
68
|
setStateFlow(states?: any, transitions?: any, defaultState?: string, stateDescriptions?: any[]): void;
|
|
70
69
|
getImmutableElement(name: string): any;
|
|
71
70
|
set immutableData(immutableData: any);
|
|
@@ -4,7 +4,7 @@ export declare class FormPiecePropagate extends FormPiece {
|
|
|
4
4
|
protected propagationCustomAttributes: string[];
|
|
5
5
|
protected _attributeChange: BehaviorSubject<any>;
|
|
6
6
|
constructor(pieceDefinition: any, formConfig: any);
|
|
7
|
-
get attributeChange():
|
|
7
|
+
get attributeChange(): import("rxjs").Observable<any>;
|
|
8
8
|
propagateAttribute(name: any, value: any): void;
|
|
9
9
|
setCustomAttribute(name: string, value: any): void;
|
|
10
10
|
setVisibility(visible: boolean, forced?: boolean | null): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare class FormPiece {
|
|
2
|
+
private destroy$;
|
|
2
3
|
protected _formState: string;
|
|
3
4
|
protected _visibleForced: boolean;
|
|
4
5
|
protected _isForced: boolean;
|
|
@@ -46,4 +47,5 @@ export declare class FormPiece {
|
|
|
46
47
|
connectWithParentForm(form: any, formChangeSubject: any): void;
|
|
47
48
|
set widget(widget: any);
|
|
48
49
|
get widget(): any;
|
|
50
|
+
destroy(): void;
|
|
49
51
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
1
|
import { FormPiecePropagate } from './piece-propagate';
|
|
3
2
|
import { FormAction } from './action';
|
|
4
3
|
import { RecordFormSubSection } from './subsection';
|
|
@@ -14,8 +13,8 @@ export declare class RecordFormSection extends FormPiecePropagate {
|
|
|
14
13
|
private _exclusiveSubSectionsByAttr;
|
|
15
14
|
constructor(sectionReceived: any, formObject: any, formConfig: any);
|
|
16
15
|
get code(): string;
|
|
17
|
-
get activation():
|
|
18
|
-
get inactivation():
|
|
16
|
+
get activation(): import("rxjs").Observable<string>;
|
|
17
|
+
get inactivation(): import("rxjs").Observable<string>;
|
|
19
18
|
get active(): boolean;
|
|
20
19
|
get sectionId(): string;
|
|
21
20
|
get sectionCode(): string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
1
|
import { FormElement } from '../element';
|
|
3
2
|
import { RecordTableColumn } from './column';
|
|
4
3
|
import { TableAction } from './action';
|
|
@@ -51,11 +50,11 @@ export declare class RecordTable extends FormElement {
|
|
|
51
50
|
private _sortable;
|
|
52
51
|
constructor(tableReceived: any, formConfig: any);
|
|
53
52
|
get columnNames(): string[];
|
|
54
|
-
get inlineActionTrigger():
|
|
55
|
-
get globalActionTrigger():
|
|
56
|
-
get selectionActionTrigger():
|
|
57
|
-
get recordSelectionTrigger():
|
|
58
|
-
get getDataTrigger():
|
|
53
|
+
get inlineActionTrigger(): import("rxjs").Observable<TableEvent>;
|
|
54
|
+
get globalActionTrigger(): import("rxjs").Observable<TableEvent>;
|
|
55
|
+
get selectionActionTrigger(): import("rxjs").Observable<TableEvent>;
|
|
56
|
+
get recordSelectionTrigger(): import("rxjs").Observable<TableEvent>;
|
|
57
|
+
get getDataTrigger(): import("rxjs").Observable<TableEvent>;
|
|
59
58
|
get globalSearch(): boolean;
|
|
60
59
|
get tableRecords(): TableRecordData[];
|
|
61
60
|
get tableRecordObj(): {};
|
|
@@ -3,6 +3,7 @@ import { FormAction } from '../../classes/forms/action';
|
|
|
3
3
|
import { ElementComponent } from './layout/element.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ActionComponent extends ElementComponent implements OnInit {
|
|
6
|
+
private destroy$;
|
|
6
7
|
actionCode: any;
|
|
7
8
|
actionName: any;
|
|
8
9
|
iconName: any;
|
|
@@ -15,6 +16,7 @@ export declare class ActionComponent extends ElementComponent implements OnInit
|
|
|
15
16
|
ngOnInit(): void;
|
|
16
17
|
start(): void;
|
|
17
18
|
activate(): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
18
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionComponent, never>;
|
|
19
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<ActionComponent, "lib-action", never, { "action": { "alias": "action"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
20
22
|
}
|
|
@@ -3,6 +3,7 @@ import { FieldDescriptor } from '../../classes/forms/field';
|
|
|
3
3
|
import { ElementComponent } from './layout/element.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FieldComponent extends ElementComponent implements OnInit {
|
|
6
|
+
private destroy$;
|
|
6
7
|
captureType: any;
|
|
7
8
|
errorCode: any;
|
|
8
9
|
errorMessage: any;
|
|
@@ -40,6 +41,7 @@ export declare class FieldComponent extends ElementComponent implements OnInit {
|
|
|
40
41
|
updateObject(widgetUpdate?: boolean): void;
|
|
41
42
|
inputChanged(): void;
|
|
42
43
|
inputTyped(): void;
|
|
44
|
+
ngOnDestroy(): void;
|
|
43
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponent, never>;
|
|
44
46
|
static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "lib-field", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "field": { "alias": "field"; "required": false; }; }, { "value": "valueChange"; }, never, ["*"], false, never>;
|
|
45
47
|
}
|
|
@@ -2,10 +2,12 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { PieceComponent } from './piece.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SectionComponent extends PieceComponent implements OnInit {
|
|
5
|
+
private destroy$;
|
|
5
6
|
section: any;
|
|
6
7
|
updatePropagatedAttributes(): void;
|
|
7
8
|
ngOnInit(): void;
|
|
8
9
|
start(): void;
|
|
10
|
+
ngOnDestroy(): void;
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SectionComponent, never>;
|
|
10
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "lib-section", never, { "section": { "alias": "section"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
11
13
|
}
|
|
@@ -2,10 +2,12 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { PieceComponent } from './piece.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SubSectionComponent extends PieceComponent implements OnInit {
|
|
5
|
+
private destroy$;
|
|
5
6
|
subSection: any;
|
|
6
7
|
updatePropagatedAttributes(): void;
|
|
7
8
|
ngOnInit(): void;
|
|
8
9
|
start(): void;
|
|
10
|
+
ngOnDestroy(): void;
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubSectionComponent, never>;
|
|
10
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<SubSectionComponent, "lib-subsection", never, { "subSection": { "alias": "subSection"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
11
13
|
}
|
|
@@ -4,6 +4,7 @@ import { RecordTable } from '../../../classes/forms/table/table';
|
|
|
4
4
|
import { ElementComponent } from '../layout/element.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class LibTableComponent extends ElementComponent implements OnInit {
|
|
7
|
+
private destroy$;
|
|
7
8
|
allSelected: any;
|
|
8
9
|
code: any;
|
|
9
10
|
globalSearch: any;
|
|
@@ -37,6 +38,7 @@ export declare class LibTableComponent extends ElementComponent implements OnIni
|
|
|
37
38
|
tableColumnSort(columnName: string, direction?: any): void;
|
|
38
39
|
globalFilterChanged(): void;
|
|
39
40
|
filterHasChanged(column: any, values: any): void;
|
|
41
|
+
ngOnDestroy(): void;
|
|
40
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibTableComponent, never>;
|
|
41
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<LibTableComponent, "lib-table", never, { "table": { "alias": "table"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
42
44
|
}
|
|
@@ -9,6 +9,7 @@ export declare class BasicFormComponent extends FormStructureAndData {
|
|
|
9
9
|
protected formManagerService: LibFormManagerService;
|
|
10
10
|
protected _eventManager: LibEventManagerService;
|
|
11
11
|
protected fileMgmtServices: LibFileManagementService;
|
|
12
|
+
private destroy$;
|
|
12
13
|
private _controlToken;
|
|
13
14
|
private _originToken;
|
|
14
15
|
private _formRoute;
|
|
@@ -246,6 +247,7 @@ export declare class BasicFormComponent extends FormStructureAndData {
|
|
|
246
247
|
* @deprecated Use onTableGetDataFinish
|
|
247
248
|
*/
|
|
248
249
|
addTableGetDataFinish(code: string, callback: any, properties?: any): void;
|
|
250
|
+
ngOnDestroy(): void;
|
|
249
251
|
static ɵfac: i0.ɵɵFactoryDeclaration<BasicFormComponent, never>;
|
|
250
252
|
static ɵcmp: i0.ɵɵComponentDeclaration<BasicFormComponent, "ng-component", never, {}, {}, never, ["*"], false, never>;
|
|
251
253
|
}
|