tuain-ng-forms-lib 14.0.17 → 14.1.1
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/table/table.mjs +5 -5
- package/esm2020/lib/components/elements/action.component.mjs +3 -3
- package/esm2020/lib/components/elements/field.component.mjs +3 -3
- package/esm2020/lib/components/elements/layout/element.component.mjs +3 -3
- package/esm2020/lib/components/elements/layout/form-error.component.mjs +3 -3
- package/esm2020/lib/components/elements/layout/form-header.component.mjs +5 -4
- package/esm2020/lib/components/elements/layout/section.component.mjs +3 -3
- package/esm2020/lib/components/elements/layout/sub-section.component.mjs +3 -3
- package/esm2020/lib/components/elements/tables/table-record-action.component.mjs +4 -4
- package/esm2020/lib/components/elements/tables/table-record-field.component.mjs +3 -3
- package/esm2020/lib/components/elements/tables/table.component.mjs +3 -3
- package/esm2020/lib/components/forms/basic-form.mjs +45 -4
- package/esm2020/lib/services/form-manager.service.mjs +2 -2
- package/esm2020/lib/tuain-ng-forms-lib.module.mjs +9 -7
- package/fesm2015/tuain-ng-forms-lib.mjs +90 -44
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +88 -44
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/lib/classes/forms/table/table.d.ts +1 -0
- package/lib/components/elements/action.component.d.ts +1 -1
- package/lib/components/elements/field.component.d.ts +1 -1
- package/lib/components/elements/layout/element.component.d.ts +1 -1
- package/lib/components/elements/layout/form-error.component.d.ts +1 -1
- package/lib/components/elements/layout/form-header.component.d.ts +2 -2
- package/lib/components/elements/layout/section.component.d.ts +1 -1
- package/lib/components/elements/layout/sub-section.component.d.ts +1 -1
- package/lib/components/elements/tables/table-record-action.component.d.ts +3 -2
- package/lib/components/elements/tables/table-record-field.component.d.ts +1 -1
- package/lib/components/elements/tables/table.component.d.ts +1 -1
- package/lib/components/forms/basic-form.d.ts +41 -1
- package/lib/services/form-manager.service.d.ts +1 -1
- package/package.json +2 -2
|
@@ -78,6 +78,7 @@ export declare class RecordTable extends FormElement {
|
|
|
78
78
|
setTableRecords(tableRecords: any, append: any): void;
|
|
79
79
|
appendRecords(records: any): void;
|
|
80
80
|
replaceRecords(records: any): void;
|
|
81
|
+
setTableAppend(append: boolean): void;
|
|
81
82
|
changePage(requestedPage: any): void;
|
|
82
83
|
updateVisibleRecords(): void;
|
|
83
84
|
updateFromServer(tableReceived: any): void;
|
|
@@ -17,5 +17,5 @@ export declare class ActionComponent implements OnInit {
|
|
|
17
17
|
get visible(): boolean;
|
|
18
18
|
get disabled(): boolean;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionComponent, "lib-action", never, { "action": "action"; "busy": "busy"; "relatedField": "relatedField"; "state": "state"; "style": "style"; "showLabel": "showLabel"; }, {}, never, ["*"]
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionComponent, "lib-action", never, { "action": "action"; "busy": "busy"; "relatedField": "relatedField"; "state": "state"; "style": "style"; "showLabel": "showLabel"; }, {}, never, ["*"]>;
|
|
21
21
|
}
|
|
@@ -39,5 +39,5 @@ export declare class FieldComponent implements OnInit {
|
|
|
39
39
|
get visible(): boolean;
|
|
40
40
|
get disabled(): boolean;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "lib-field", never, { "field": "field"; "state": "state"; }, {}, never, ["*"]
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "lib-field", never, { "field": "field"; "state": "state"; }, {}, never, ["*"]>;
|
|
43
43
|
}
|
|
@@ -10,5 +10,5 @@ export declare class ElementComponent implements OnInit {
|
|
|
10
10
|
get visible(): any;
|
|
11
11
|
get disabled(): boolean;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElementComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "lib-element", never, { "element": "element"; "form": "form"; "state": "state"; }, {}, never, ["*"]
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "lib-element", never, { "element": "element"; "form": "form"; "state": "state"; }, {}, never, ["*"]>;
|
|
14
14
|
}
|
|
@@ -4,5 +4,5 @@ export declare class FormErrorComponent {
|
|
|
4
4
|
errorMessage: any;
|
|
5
5
|
errorType: any;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormErrorComponent, "lib-form-error", never, { "errorTitle": "errorTitle"; "errorMessage": "errorMessage"; "errorType": "errorType"; }, {}, never, ["*"]
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormErrorComponent, "lib-form-error", never, { "errorTitle": "errorTitle"; "errorMessage": "errorMessage"; "errorType": "errorType"; }, {}, never, ["*"]>;
|
|
8
8
|
}
|
|
@@ -5,8 +5,8 @@ export declare class FormHeaderComponent {
|
|
|
5
5
|
goBackAction: boolean;
|
|
6
6
|
showTitle: any;
|
|
7
7
|
headerActions: any;
|
|
8
|
-
goBackEvent: EventEmitter<
|
|
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, { "formManager": "formManager"; "goBackAction": "goBackAction"; "showTitle": "showTitle"; "headerActions": "headerActions"; }, { "goBackEvent": "goBackEvent"; }, never, ["*"]
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormHeaderComponent, "lib-form-header", never, { "formManager": "formManager"; "goBackAction": "goBackAction"; "showTitle": "showTitle"; "headerActions": "headerActions"; }, { "goBackEvent": "goBackEvent"; }, never, ["*"]>;
|
|
12
12
|
}
|
|
@@ -6,5 +6,5 @@ export declare class SectionComponent implements OnInit {
|
|
|
6
6
|
ngOnInit(): void;
|
|
7
7
|
start(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SectionComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "lib-section", never, { "section": "section"; "formManager": "formManager"; }, {}, never, ["*"]
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "lib-section", never, { "section": "section"; "formManager": "formManager"; }, {}, never, ["*"]>;
|
|
10
10
|
}
|
|
@@ -7,5 +7,5 @@ export declare class SubSectionComponent implements OnInit {
|
|
|
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"; "showHeader": "showHeader"; "formManager": "formManager"; }, {}, never, ["*"]
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubSectionComponent, "lib-subsection", never, { "subSection": "subSection"; "showHeader": "showHeader"; "formManager": "formManager"; }, {}, never, ["*"]>;
|
|
11
11
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { TableActionEvent } from '../../../classes/forms/table/table';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class LibTableRecordActionComponent implements OnInit {
|
|
4
5
|
recordId: any;
|
|
5
6
|
recordData: any;
|
|
6
7
|
action: any;
|
|
7
|
-
actionSelected: EventEmitter<
|
|
8
|
+
actionSelected: EventEmitter<TableActionEvent>;
|
|
8
9
|
constructor();
|
|
9
10
|
ngOnInit(): void;
|
|
10
11
|
start(): void;
|
|
11
12
|
onActivate(): void;
|
|
12
13
|
class(): void;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibTableRecordActionComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibTableRecordActionComponent, "lib-table-record-action", never, { "recordId": "recordId"; "recordData": "recordData"; "action": "action"; }, { "actionSelected": "actionSelected"; }, never, ["*"]
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibTableRecordActionComponent, "lib-table-record-action", never, { "recordId": "recordId"; "recordData": "recordData"; "action": "action"; }, { "actionSelected": "actionSelected"; }, never, ["*"]>;
|
|
15
16
|
}
|
|
@@ -7,5 +7,5 @@ export declare class LibTableRecordFieldComponent implements OnInit {
|
|
|
7
7
|
ngOnInit(): void;
|
|
8
8
|
start(): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibTableRecordFieldComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibTableRecordFieldComponent, "lib-table-record-field", never, { "fieldCode": "fieldCode"; "fieldType": "fieldType"; "fieldValue": "fieldValue"; }, {}, never, ["*"]
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibTableRecordFieldComponent, "lib-table-record-field", never, { "fieldCode": "fieldCode"; "fieldType": "fieldType"; "fieldValue": "fieldValue"; }, {}, never, ["*"]>;
|
|
11
11
|
}
|
|
@@ -43,5 +43,5 @@ export declare class LibTableComponent implements OnInit {
|
|
|
43
43
|
syncAttribute(name: string, value: any): boolean;
|
|
44
44
|
filterHasChanged(column: any, values: any): void;
|
|
45
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibTableComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibTableComponent, "lib-table", never, { "table": "table"; "tableRecords": "tableRecords"; "disabled": "disabled"; "state": "state"; "waiting": "waiting"; }, {}, never, ["*"]
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibTableComponent, "lib-table", never, { "table": "table"; "tableRecords": "tableRecords"; "disabled": "disabled"; "state": "state"; "waiting": "waiting"; }, {}, never, ["*"]>;
|
|
47
47
|
}
|
|
@@ -153,6 +153,7 @@ export declare class BasicFormComponent {
|
|
|
153
153
|
set formRoute(route: string);
|
|
154
154
|
get subject(): string;
|
|
155
155
|
customPreProcessing(): void;
|
|
156
|
+
start(): void;
|
|
156
157
|
customFormStart(): void;
|
|
157
158
|
displayActionServerError(): void;
|
|
158
159
|
displayValidationServerError(): void;
|
|
@@ -289,19 +290,58 @@ export declare class BasicFormComponent {
|
|
|
289
290
|
/**
|
|
290
291
|
* Métodos Legacy de compatibilidad hacia atrás
|
|
291
292
|
*/
|
|
293
|
+
/**
|
|
294
|
+
* @deprecated Use onSectionActivation
|
|
295
|
+
*/
|
|
292
296
|
addSectionActivation(codes: string[] | string | null, callback: any, properties?: any): void;
|
|
297
|
+
/**
|
|
298
|
+
* @deprecated Use onSectionInactivation
|
|
299
|
+
*/
|
|
293
300
|
addSectionInactivation(codes: string[] | string | null, callback: any, properties?: any): void;
|
|
301
|
+
/**
|
|
302
|
+
* @deprecated Use onActionStart
|
|
303
|
+
*/
|
|
294
304
|
addActionMethodStart(codes: string[] | string | null, callback: any, properties?: any): void;
|
|
305
|
+
/**
|
|
306
|
+
* @deprecated Use onActionFinish
|
|
307
|
+
*/
|
|
295
308
|
addActionMethodFinish(codes: string[] | string | null, callback: any, properties?: any): void;
|
|
309
|
+
/**
|
|
310
|
+
* @deprecated Use onFieldInput
|
|
311
|
+
*/
|
|
296
312
|
addFieldInputValidation(codes: string[] | string | null, callback: any, properties?: any): void;
|
|
313
|
+
/**
|
|
314
|
+
* @deprecated Use onFieldValidationStart
|
|
315
|
+
*/
|
|
297
316
|
addFieldValidationStart(codes: string[] | string | null, callback: any, properties?: any): void;
|
|
317
|
+
/**
|
|
318
|
+
* @deprecated Use onFieldValidationFinish
|
|
319
|
+
*/
|
|
298
320
|
addFieldValidationFinish(codes: string[] | string | null, callback: any, properties?: any): void;
|
|
321
|
+
/**
|
|
322
|
+
* @deprecated Use onTableActionStart
|
|
323
|
+
*/
|
|
299
324
|
addTableActionStart(code: string, actionCode: string, callback: any, properties?: any): void;
|
|
325
|
+
/**
|
|
326
|
+
* @deprecated Use onTableActionFinish
|
|
327
|
+
*/
|
|
300
328
|
addTableActionFinish(code: string, actionCode: string, callback: any, properties?: any): void;
|
|
329
|
+
/**
|
|
330
|
+
* @deprecated Use onTableSelectionStart
|
|
331
|
+
*/
|
|
301
332
|
addTableSelectionStart(code: string, callback: any, properties?: any): void;
|
|
333
|
+
/**
|
|
334
|
+
* @deprecated Use onTableSelectionFinish
|
|
335
|
+
*/
|
|
302
336
|
addTableSelectionFinish(code: string, callback: any, properties?: any): void;
|
|
337
|
+
/**
|
|
338
|
+
* @deprecated Use onTableGetDataStart
|
|
339
|
+
*/
|
|
303
340
|
addTableGetDataStart(code: string, callback: any, properties?: any): void;
|
|
341
|
+
/**
|
|
342
|
+
* @deprecated Use onTableGetDataFinish
|
|
343
|
+
*/
|
|
304
344
|
addTableGetDataFinish(code: string, callback: any, properties?: any): void;
|
|
305
345
|
static ɵfac: i0.ɵɵFactoryDeclaration<BasicFormComponent, never>;
|
|
306
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BasicFormComponent, "ng-component", never, {}, {}, never, ["*"]
|
|
346
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BasicFormComponent, "ng-component", never, {}, {}, never, ["*"]>;
|
|
307
347
|
}
|
|
@@ -4,7 +4,7 @@ export declare class LibFormManagerService {
|
|
|
4
4
|
getFormDefinition(formCode: any): void;
|
|
5
5
|
execServerAction(actionDetail: any): void;
|
|
6
6
|
goToForm(formCode: any, token: any, subject: any): void;
|
|
7
|
-
loadStack(): void
|
|
7
|
+
loadStack(): Promise<void>;
|
|
8
8
|
saveStack(): void;
|
|
9
9
|
cleanStack(): void;
|
|
10
10
|
resetPageStack(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tuain-ng-forms-lib",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.1.1",
|
|
4
4
|
"description": "Componentes y Clases Angular para la gestión de formularios TUAIN",
|
|
5
5
|
"author": "Mauricio Méndez, Imix Consulting",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false
|
|
46
|
-
}
|
|
46
|
+
}
|