tuain-ng-forms-lib 14.4.93 → 14.4.96

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.
Files changed (108) hide show
  1. package/esm2020/lib/classes/forms/action.mjs +36 -0
  2. package/esm2020/lib/classes/forms/element.mjs +26 -0
  3. package/esm2020/lib/classes/forms/field.mjs +445 -0
  4. package/esm2020/lib/classes/forms/form.constants.mjs +26 -0
  5. package/esm2020/lib/classes/forms/form.mjs +431 -0
  6. package/esm2020/lib/classes/forms/piece-propagate.mjs +37 -0
  7. package/esm2020/lib/classes/forms/piece.mjs +95 -0
  8. package/esm2020/lib/classes/forms/section.mjs +138 -0
  9. package/esm2020/lib/classes/forms/subsection.mjs +81 -0
  10. package/esm2020/lib/classes/forms/table/action.mjs +18 -0
  11. package/esm2020/lib/classes/forms/table/column.mjs +74 -0
  12. package/esm2020/lib/classes/forms/table/row-data.mjs +116 -0
  13. package/esm2020/lib/classes/forms/table/table.mjs +416 -0
  14. package/esm2020/lib/components/elements/action.component.mjs +71 -0
  15. package/esm2020/lib/components/elements/field.component.mjs +81 -0
  16. package/esm2020/lib/components/elements/layout/element.component.mjs +20 -0
  17. package/esm2020/lib/components/elements/layout/form-error.component.mjs +20 -0
  18. package/esm2020/lib/components/elements/layout/form-header.component.mjs +31 -0
  19. package/esm2020/lib/components/elements/layout/piece.component.mjs +39 -0
  20. package/esm2020/lib/components/elements/layout/section.component.mjs +37 -0
  21. package/esm2020/lib/components/elements/layout/sub-section.component.mjs +37 -0
  22. package/esm2020/lib/components/elements/tables/table-record-action.component.mjs +56 -0
  23. package/esm2020/lib/components/elements/tables/table-record-field.component.mjs +30 -0
  24. package/esm2020/lib/components/elements/tables/table.component.mjs +89 -0
  25. package/esm2020/lib/components/forms/basic-form.mjs +1530 -0
  26. package/esm2020/lib/services/event-manager.service.mjs +18 -0
  27. package/esm2020/lib/services/file-manager.service.mjs +6 -0
  28. package/esm2020/lib/services/form-manager.service.mjs +80 -0
  29. package/esm2020/lib/tuain-ng-forms-lib.module.mjs +71 -0
  30. package/esm2020/public-api.mjs +19 -0
  31. package/esm2020/tuain-ng-forms-lib.mjs +5 -0
  32. package/fesm2015/tuain-ng-forms-lib.mjs +4276 -0
  33. package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -0
  34. package/fesm2020/tuain-ng-forms-lib.mjs +4090 -0
  35. package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -0
  36. package/lib/classes/forms/action.d.ts +22 -0
  37. package/lib/classes/forms/element.d.ts +17 -0
  38. package/lib/classes/forms/field.d.ts +205 -0
  39. package/lib/classes/forms/form.constants.d.ts +25 -0
  40. package/lib/classes/forms/form.d.ts +137 -0
  41. package/lib/classes/forms/piece-propagate.d.ts +13 -0
  42. package/lib/classes/forms/piece.d.ts +41 -0
  43. package/lib/classes/forms/section.d.ts +32 -0
  44. package/lib/classes/forms/subsection.d.ts +24 -0
  45. package/lib/classes/forms/table/action.d.ts +15 -0
  46. package/lib/classes/forms/table/column.d.ts +33 -0
  47. package/lib/classes/forms/table/row-data.d.ts +14 -0
  48. package/lib/classes/forms/table/table.d.ts +100 -0
  49. package/lib/components/elements/action.component.d.ts +17 -0
  50. package/lib/components/elements/field.component.d.ts +38 -0
  51. package/lib/components/elements/layout/element.component.d.ts +9 -0
  52. package/lib/components/elements/layout/form-error.component.d.ts +8 -0
  53. package/lib/components/elements/layout/form-header.component.d.ts +12 -0
  54. package/lib/components/elements/layout/piece.component.d.ts +12 -0
  55. package/lib/components/elements/layout/section.component.d.ts +11 -0
  56. package/lib/components/elements/layout/sub-section.component.d.ts +11 -0
  57. package/lib/components/elements/tables/table-record-action.component.d.ts +16 -0
  58. package/lib/components/elements/tables/table-record-field.component.d.ts +12 -0
  59. package/lib/components/elements/tables/table.component.d.ts +35 -0
  60. package/lib/components/forms/basic-form.d.ts +355 -0
  61. package/lib/services/event-manager.service.d.ts +9 -0
  62. package/lib/services/file-manager.service.d.ts +5 -0
  63. package/lib/services/form-manager.service.d.ts +28 -0
  64. package/lib/tuain-ng-forms-lib.module.d.ts +20 -0
  65. package/package.json +24 -6
  66. package/{src/public-api.ts → public-api.d.ts} +0 -5
  67. package/tuain-ng-forms-lib.d.ts +5 -0
  68. package/.browserslistrc +0 -16
  69. package/.yarn/cache/nanoid-npm-4.0.0-924f5c6312-7d5946df5c.zip +0 -0
  70. package/.yarn/cache/tslib-npm-2.4.1-36f0ed04db-19480d6e03.zip +0 -0
  71. package/.yarn/cache/yn-npm-5.0.0-b001dab23c-f0ec7710d3.zip +0 -0
  72. package/.yarn/install-state.gz +0 -0
  73. package/karma.conf.js +0 -44
  74. package/ng-package.json +0 -11
  75. package/src/lib/classes/forms/action.ts +0 -56
  76. package/src/lib/classes/forms/element.ts +0 -29
  77. package/src/lib/classes/forms/field.ts +0 -500
  78. package/src/lib/classes/forms/form.constants.ts +0 -28
  79. package/src/lib/classes/forms/form.ts +0 -508
  80. package/src/lib/classes/forms/piece-propagate.ts +0 -46
  81. package/src/lib/classes/forms/piece.ts +0 -122
  82. package/src/lib/classes/forms/section.ts +0 -152
  83. package/src/lib/classes/forms/subsection.ts +0 -90
  84. package/src/lib/classes/forms/table/action.ts +0 -32
  85. package/src/lib/classes/forms/table/column.ts +0 -94
  86. package/src/lib/classes/forms/table/row-data.ts +0 -121
  87. package/src/lib/classes/forms/table/table.ts +0 -478
  88. package/src/lib/components/elements/action.component.ts +0 -59
  89. package/src/lib/components/elements/field.component.ts +0 -92
  90. package/src/lib/components/elements/layout/element.component.ts +0 -13
  91. package/src/lib/components/elements/layout/form-error.component.ts +0 -11
  92. package/src/lib/components/elements/layout/form-header.component.ts +0 -17
  93. package/src/lib/components/elements/layout/piece.component.ts +0 -34
  94. package/src/lib/components/elements/layout/section.component.ts +0 -31
  95. package/src/lib/components/elements/layout/sub-section.component.ts +0 -31
  96. package/src/lib/components/elements/tables/table-record-action.component.ts +0 -50
  97. package/src/lib/components/elements/tables/table-record-field.component.ts +0 -20
  98. package/src/lib/components/elements/tables/table.component.ts +0 -86
  99. package/src/lib/components/forms/basic-form.ts +0 -1588
  100. package/src/lib/services/event-manager.service.ts +0 -21
  101. package/src/lib/services/file-manager.service.ts +0 -6
  102. package/src/lib/services/form-manager.service.ts +0 -89
  103. package/src/lib/services/icon-dictionary.service.ts +0 -159
  104. package/src/lib/tuain-ng-forms-lib.module.ts +0 -40
  105. package/src/test.ts +0 -27
  106. package/tsconfig.lib.json +0 -15
  107. package/tsconfig.lib.prod.json +0 -10
  108. package/tsconfig.spec.json +0 -17
@@ -0,0 +1,17 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormAction } from '../../classes/forms/action';
3
+ import { ElementComponent } from './layout/element.component';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ActionComponent extends ElementComponent implements OnInit {
6
+ inProgress: boolean;
7
+ action: FormAction | null;
8
+ busy: any;
9
+ relatedField: any;
10
+ style: string;
11
+ showLabel: boolean;
12
+ ngOnInit(): void;
13
+ activate(): void;
14
+ visibleOnRestriction(): boolean;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionComponent, "lib-action", never, { "action": "action"; "busy": "busy"; "relatedField": "relatedField"; "style": "style"; "showLabel": "showLabel"; }, {}, never, ["*"], false>;
17
+ }
@@ -0,0 +1,38 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FieldDescriptor } from '../../classes/forms/field';
3
+ import { ElementComponent } from './layout/element.component';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FieldComponent extends ElementComponent implements OnInit {
6
+ code: string;
7
+ value: any;
8
+ info: string;
9
+ alignment: string;
10
+ tooltip: string;
11
+ maxLength: any;
12
+ minValue: any;
13
+ maxValue: any;
14
+ onValidation: any;
15
+ captureType: any;
16
+ title: any;
17
+ type: any;
18
+ visibleLabel: any;
19
+ required: any;
20
+ options: any;
21
+ errorType: any;
22
+ errorCode: any;
23
+ errorMessage: any;
24
+ field: FieldDescriptor | null;
25
+ ngOnInit(): void;
26
+ defaultProcessAttributeChange(attribute: string, value?: any): boolean;
27
+ updateValue(): void;
28
+ onInputChange(): void;
29
+ onChangeContent(): void;
30
+ onShowInfo(detail?: any): void;
31
+ focus(): void;
32
+ updateObject(widgetUpdate?: boolean): void;
33
+ inputChanged(): void;
34
+ inputTyped(): void;
35
+ numberInputValidation(event: any): boolean;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "lib-field", never, { "field": "field"; }, {}, never, ["*"], false>;
38
+ }
@@ -0,0 +1,9 @@
1
+ import { PieceComponent } from './piece.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ElementComponent extends PieceComponent {
4
+ element: any;
5
+ form: any;
6
+ start(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElementComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "lib-element", never, { "element": "element"; "form": "form"; }, {}, never, ["*"], false>;
9
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class FormErrorComponent {
3
+ errorTitle: any;
4
+ errorMessage: any;
5
+ errorType: any;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormErrorComponent, "lib-form-error", never, { "errorTitle": "errorTitle"; "errorMessage": "errorMessage"; "errorType": "errorType"; }, {}, never, ["*"], false>;
8
+ }
@@ -0,0 +1,12 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormHeaderComponent {
4
+ form: any;
5
+ canGoBack: boolean;
6
+ showTitle: any;
7
+ headerActions: any;
8
+ goBackEvent: EventEmitter<void>;
9
+ goBackForm(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormHeaderComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormHeaderComponent, "lib-form-header", never, { "form": "form"; "canGoBack": "canGoBack"; "showTitle": "showTitle"; "headerActions": "headerActions"; }, { "goBackEvent": "goBackEvent"; }, never, ["*"], false>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class PieceComponent {
3
+ formConfig: any;
4
+ visible: boolean;
5
+ disabled: boolean;
6
+ customAttributes: any;
7
+ defaultProcessAttributeChange(attribute: string, value?: any): boolean;
8
+ customProcessAttributeChange(attribute: string, value?: any): void;
9
+ customAttributeChange(subAttribute: string, value?: any): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<PieceComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<PieceComponent, "lib-piece", never, {}, {}, never, ["*"], false>;
12
+ }
@@ -0,0 +1,11 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { PieceComponent } from './piece.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SectionComponent extends PieceComponent implements OnInit {
5
+ section: any;
6
+ form: any;
7
+ ngOnInit(): void;
8
+ start(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SectionComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "lib-section", never, { "section": "section"; "form": "form"; }, {}, never, ["*"], false>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { PieceComponent } from './piece.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SubSectionComponent extends PieceComponent implements OnInit {
5
+ subSection: any;
6
+ form: any;
7
+ ngOnInit(): void;
8
+ start(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubSectionComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubSectionComponent, "lib-subsection", never, { "subSection": "subSection"; "form": "form"; }, {}, never, ["*"], false>;
11
+ }
@@ -0,0 +1,16 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { PieceComponent } from '../layout/piece.component';
3
+ import { TableActionEvent } from '../../../classes/forms/table/table';
4
+ import * as i0 from "@angular/core";
5
+ export declare class LibTableRecordActionComponent extends PieceComponent implements OnInit {
6
+ recordId: any;
7
+ recordData: any;
8
+ action: any;
9
+ actionSelected: EventEmitter<TableActionEvent>;
10
+ ngOnInit(): void;
11
+ start(): void;
12
+ onActivate(): void;
13
+ class(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibTableRecordActionComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibTableRecordActionComponent, "lib-table-record-action", never, { "recordId": "recordId"; "recordData": "recordData"; "action": "action"; }, { "actionSelected": "actionSelected"; }, never, ["*"], false>;
16
+ }
@@ -0,0 +1,12 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LibTableRecordFieldComponent implements OnInit {
4
+ fieldCode: any;
5
+ fieldType: any;
6
+ fieldValue: any;
7
+ column: any;
8
+ ngOnInit(): void;
9
+ start(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibTableRecordFieldComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibTableRecordFieldComponent, "lib-table-record-field", never, { "fieldCode": "fieldCode"; "fieldType": "fieldType"; "fieldValue": "fieldValue"; "column": "column"; }, {}, never, ["*"], false>;
12
+ }
@@ -0,0 +1,35 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { TableRecordData } from '../../../classes/forms/table/row-data';
3
+ import { TableActionEvent } from '../../../classes/forms/table/table';
4
+ import { RecordTable } from '../../../classes/forms/table/table';
5
+ import { ElementComponent } from '../layout/element.component';
6
+ import * as i0 from "@angular/core";
7
+ export declare class LibTableComponent extends ElementComponent implements OnInit {
8
+ code: any;
9
+ globalFilterString: string;
10
+ tableFieldStyles: any;
11
+ loaded: boolean;
12
+ selectable: boolean;
13
+ hasActions: boolean;
14
+ inlineActions: any;
15
+ globalActions: any;
16
+ selectionActions: any;
17
+ table: RecordTable | null;
18
+ visibleRecords: TableRecordData[];
19
+ waiting: boolean;
20
+ ngOnInit(): void;
21
+ updateTableData(): void;
22
+ tableGlobalAction(actionCode: string): void;
23
+ tableSelectionAction(actionCode: string): void;
24
+ tableActionSelected(actionEvent: TableActionEvent): void;
25
+ tableSelectionToggle(recordId: any): void;
26
+ toggleSelectAll(): boolean;
27
+ globalFilterCompleted(): void;
28
+ changePage(requestedPage: number): void;
29
+ tableColumnSort(columnName: string, direction?: any): void;
30
+ globalFilterChanged(): void;
31
+ defaultProcessAttributeChange(attribute: string, value?: any): boolean;
32
+ filterHasChanged(column: any, values: any): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibTableComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibTableComponent, "lib-table", never, { "table": "table"; "visibleRecords": "visibleRecords"; "waiting": "waiting"; }, {}, never, ["*"], false>;
35
+ }
@@ -0,0 +1,355 @@
1
+ import { FormStructureAndData } from '../../classes/forms/form';
2
+ import { LibFormManagerService } from '../../services/form-manager.service';
3
+ import { LibEventManagerService } from '../../services/event-manager.service';
4
+ import { LibFileManagementService } from '../../services/file-manager.service';
5
+ import { FormAction } from '../../classes/forms/action';
6
+ import { FieldDescriptor, FieldOption } from '../../classes/forms/field';
7
+ import { RecordTable } from '../../classes/forms/table/table';
8
+ import { RecordFormSection } from '../../classes/forms/section';
9
+ import { RecordFormSubSection } from '../../classes/forms/subsection';
10
+ import * as i0 from "@angular/core";
11
+ export declare class BasicFormComponent {
12
+ protected formManagerService: LibFormManagerService;
13
+ protected _eventManager: LibEventManagerService;
14
+ protected fileMgmtServices: LibFileManagementService;
15
+ private _formStructure;
16
+ private _controlToken;
17
+ private _originToken;
18
+ private _formRoute;
19
+ private _definitionObtained;
20
+ private _formChangeState;
21
+ private _formSectionsCanDeactivate;
22
+ private _formSectionsActivate;
23
+ private _formSectionsInactivate;
24
+ private _formActionsStart;
25
+ private _formActionsFinish;
26
+ private _fieldInputValidation;
27
+ private _fieldValidationsStart;
28
+ private _fieldValidationsFinish;
29
+ private _tableSelectionsStart;
30
+ private _tableSelectionsFinish;
31
+ private _tableActionsStart;
32
+ private _tableActionsFinish;
33
+ private _tableGetDataStart;
34
+ private _tableGetDataFinish;
35
+ private _actionServerError;
36
+ private _fieldServerError;
37
+ private _tableServerError;
38
+ protected inputDataFields: any;
39
+ protected extraData: any;
40
+ protected _eventEmiter: LibEventManagerService;
41
+ protected enabledSections: RecordFormSection[];
42
+ formConfig: any;
43
+ name: string | null;
44
+ formSubject: string | null;
45
+ _errorType: string;
46
+ errorCode: string;
47
+ errorFullCode: string;
48
+ errorName: string;
49
+ errorMessage: string;
50
+ errorDetail: string;
51
+ visible: boolean;
52
+ fields: any;
53
+ actions: any;
54
+ sections: any;
55
+ busy: boolean;
56
+ get title(): string;
57
+ set title(title: string);
58
+ getTitle(): string;
59
+ setTitle(title: string): void;
60
+ cleanData(): void;
61
+ getCurrentState(): string;
62
+ supportState(state: string | null): boolean;
63
+ getStates(): any[];
64
+ getImmutableElement(name: string): any;
65
+ getExtraInfo(name: string): any;
66
+ getFields(): FieldDescriptor[];
67
+ getFieldNames(): string[];
68
+ getField(code: string): FieldDescriptor;
69
+ enableField(code: string): void;
70
+ disableField(code: string): void;
71
+ getFieldValue(code: string): any;
72
+ getFieldOptionText(code: string): any;
73
+ getFieldsValues(codes: string[]): any;
74
+ getFieldOptions(code: string): FieldOption[] | null;
75
+ setFieldValue(code: string, value: any): any;
76
+ setFieldRequired(inputCodes: string[] | string | null, required: boolean): any;
77
+ setFieldErrorMessage(code: string, errorMessage: string): any;
78
+ setFieldError(code: string, errorCode: string, message: string, type?: string): any;
79
+ setFieldIntrinsicErrorMessage(code: string, message: string): any;
80
+ setFieldOptions(code: any, optionsArray: any, idAttribute: any, nameAttribute: any): any;
81
+ getFieldSet(filterFunc?: any, codes?: string[] | string | null, secCode?: string | null, subCode?: string | null): string[];
82
+ applyOnFields(processFunc: any, codes?: string[] | string | null, secCode?: string, subCode?: string): number;
83
+ applyProcessToAllFields(processFunc: any): number;
84
+ cleanFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
85
+ getRequiredFields(codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
86
+ getRequiredEmptyFields(codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
87
+ getChangedFields(codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
88
+ getFieldsWithValidationIssues(codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
89
+ tagFieldsWithError(errorMessage: string, codes?: string[] | string | null, secCode?: string, subCode?: string): number;
90
+ cleanErrorFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
91
+ showLabelFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
92
+ hideLabelFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
93
+ enableFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
94
+ disableFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
95
+ /**
96
+ * @deprecated Use enableFields
97
+ */
98
+ enableEditFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
99
+ /**
100
+ * @deprecated Use disableFields
101
+ */
102
+ disableEditFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
103
+ showFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
104
+ hideFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
105
+ getActionsByAttribute(name: string, value: any): FormAction[];
106
+ getHeaderActions(): FormAction[];
107
+ getAction(actionCode: string): FormAction | null;
108
+ showActions(actionArray: any): void;
109
+ hideActions(actionArray: any): void;
110
+ enableActions(actionArray: any): void;
111
+ disableActions(actionArray: any): void;
112
+ showAction(code: string): void;
113
+ hideAction(code: string): void;
114
+ enableAction(code: string): void;
115
+ disableAction(code: string): void;
116
+ getSections(): RecordFormSection[] | null;
117
+ activateSection(code: any): void;
118
+ getSectionsTitles(): string[] | null;
119
+ getSection(code: string): RecordFormSection | null;
120
+ showSection(code: string): void;
121
+ hideSection(code: string): void;
122
+ showSections(codes: string[] | string): void;
123
+ hideSections(codes: string[] | string): void;
124
+ getSubSection(code: string, subCode: string): RecordFormSubSection | null;
125
+ showSubSection(code: string, subCode: string): void;
126
+ hideSubSection(code: string, subCode: string): void;
127
+ showSubSections(code: string, subCodes: string[] | string): void;
128
+ hideSubSections(code: string, subCodes: string[] | string): void;
129
+ getSectionActions(code: string): FormAction[] | null;
130
+ getSectionActionNames(code: string): string[] | null;
131
+ getTables(): RecordTable[];
132
+ showTables(codes: string[] | string): void;
133
+ hideTables(codes: string[] | string): void;
134
+ cleanTables(codes: string[] | string): void;
135
+ getTable(code: string): RecordTable;
136
+ showTable(code: string): void;
137
+ hideTable(code: string): void;
138
+ cleanTable(code: string): void;
139
+ getTableRecord(code: string, recordId: any): import("../../classes/forms/table/row-data").TableRecordData;
140
+ constructor(formManagerService: LibFormManagerService, _eventManager: LibEventManagerService, fileMgmtServices: LibFileManagementService);
141
+ setConfig(formConfig: any): void;
142
+ cleanStart(): void;
143
+ get formVisible(): boolean;
144
+ get formManager(): this;
145
+ get formCode(): string;
146
+ set formCode(name: string);
147
+ get inServerProcess(): boolean;
148
+ get form(): FormStructureAndData | null;
149
+ get state(): string | null;
150
+ get currentState(): string;
151
+ set currentState(state: string);
152
+ get immutableData(): any;
153
+ get extraInfo(): any;
154
+ get visibleSections(): RecordFormSection[] | null;
155
+ get formRoute(): string;
156
+ set formRoute(route: string);
157
+ get subject(): string;
158
+ customPreProcessing(): void;
159
+ start(): void;
160
+ customFormStart(): void;
161
+ displayActionServerError(): void;
162
+ displayValidationServerError(): void;
163
+ displayTableServerError(): void;
164
+ showFieldInfo(code?: string, detail?: any): void;
165
+ showModalDialog(title: any, body: any, options: any, callback?: any, params?: any): void;
166
+ openUploadDialog(title: any, body: any, options: any, callback?: any, params?: any): void;
167
+ /**
168
+ * @deprecated Use supportState
169
+ */
170
+ supportMode(state: string): boolean;
171
+ /**
172
+ * @deprecated Use getField
173
+ */
174
+ getFieldObject(code: string): FieldDescriptor | null;
175
+ /**
176
+ * @deprecated Use getAction
177
+ */
178
+ getActionObject(code: string): FormAction | null;
179
+ /**
180
+ * @deprecated Use getTable
181
+ */
182
+ getTableObject(code: string): RecordTable | null;
183
+ /**
184
+ * @deprecated Use getSection
185
+ */
186
+ getSectionObject(code: string): RecordFormSection | null;
187
+ /**
188
+ * @deprecated Use changeState
189
+ */
190
+ changeFormMode(state: string): boolean;
191
+ /**
192
+ * @deprecated Use subject
193
+ */
194
+ getFormSubject(): string;
195
+ /**
196
+ * @deprecated Use subject
197
+ */
198
+ getSubject(): string;
199
+ /**
200
+ * @deprecated Use subject
201
+ */
202
+ getformSubject(): string;
203
+ numSections(): number;
204
+ subscribeAppEvent(eventName: string, callback: any): void;
205
+ openForm(name: string, data?: any, backData?: any, cleanStack?: boolean): void;
206
+ canGoBack(): boolean;
207
+ goBack(): void;
208
+ goBackForm(): void;
209
+ getOriginDetail(): any;
210
+ setError(errorType: string | null, errorMessage: string | null, errorDetail: string | null): void;
211
+ resetError(): void;
212
+ getErrorType(): string;
213
+ getErrorMessage(): string;
214
+ getErrorDetail(): string;
215
+ getErrorName(): string;
216
+ getErrorFullCode(): string;
217
+ getErrorCode(): string;
218
+ getFormParameter(name: string): string;
219
+ preocessInputParams(params: any): string | null;
220
+ subscribeSectionActivation(): void;
221
+ subscribeFieldsSubjects(): void;
222
+ subscribeActionSubjects(): void;
223
+ subscribeTableSubjects(): void;
224
+ formInit(params: any, forceReload?: boolean): Promise<void>;
225
+ changeState(state: string | undefined): boolean;
226
+ checkErrorRecordReceived(recordResponse: any): boolean;
227
+ errorOccured(): boolean;
228
+ /**
229
+ * Soporte manejo de eventos de formulario
230
+ */
231
+ requestFormAction(actionCode: string, actionSubject?: any): Promise<any>;
232
+ updateFormWithServerData(formContent: any): void;
233
+ /**
234
+ * Manejo de event handlers para errores Server del formulario
235
+ */
236
+ cleanActionServerError(): void;
237
+ cleanFieldServerError(): void;
238
+ cleanTableServerError(): void;
239
+ onActionServerError(callback: any, properties?: any): void;
240
+ onValidationServerError(callback: any, properties?: any): void;
241
+ onTableServerError(callback: any, properties?: any): void;
242
+ /**
243
+ * Manejo de event handlers para acciones sobre el formulario
244
+ */
245
+ onFormChange(callback: any): void;
246
+ onSectionCanDeactivate(codes: string[] | string | null, callback: any, properties?: any): void;
247
+ onSectionActivation(codes: string[] | string | null, callback: any, properties?: any): void;
248
+ onSectionInactivation(codes: string[] | string | null, callback: any, properties?: any): void;
249
+ onActionStart(codes: string[] | string | null, callback: any, properties?: any): void;
250
+ onActionFinish(codes: string[] | string | null, callback: any, properties?: any): void;
251
+ verifySectionActivation(code: string): Promise<boolean>;
252
+ launchSectionActivation(code: string): Promise<void>;
253
+ launchSectionInactivation(code: string): Promise<void>;
254
+ startAction(code: string): Promise<void>;
255
+ startServerAction(actionInput: any): Promise<void>;
256
+ finishAction(action: any, actionResult: any, serverError?: boolean): Promise<void>;
257
+ completeGlobalAction(action: any): Promise<void>;
258
+ /**
259
+ * Manejadores de eventos para validaciones sobre campos
260
+ */
261
+ onFieldInput(codes: string[] | string | null, callback: any, properties?: any): void;
262
+ onFieldValidationStart(codes: string[] | string | null, callback: any, properties?: any): void;
263
+ onFieldValidationFinish(codes: string[] | string | null, callback: any, properties?: any): void;
264
+ startFieldInputValidation(code: string, intrinsicValidation?: boolean): Promise<boolean>;
265
+ startFieldValidation(code: string, intrinsicValidation?: boolean): Promise<void>;
266
+ startServerFieldValidation(inputField: string | FieldDescriptor): Promise<void>;
267
+ finishFieldValidation(fieldObject: any, validationResult: boolean, serverError?: boolean): Promise<void>;
268
+ continueFieldValidation(code: string): Promise<void>;
269
+ /**
270
+ * Manejadores de eventos para acciones sobre Tablas
271
+ */
272
+ onTableActionStart(code: string, actionCode: string, callback: any, properties?: any): void;
273
+ onTableActionFinish(code: string, actionCode: string, callback: any, properties?: any): void;
274
+ onTableSelectionStart(code: string, callback: any, properties?: any): void;
275
+ onTableSelectionFinish(code: string, callback: any, properties?: any): void;
276
+ onTableGetDataStart(code: string, callback: any, properties?: any): void;
277
+ onTableGetDataFinish(code: string, callback: any, properties?: any): void;
278
+ startTableGlobalAction(tableActionEvent: any): Promise<void>;
279
+ startTableServerGlobalAction(tableActionDetail: any): Promise<void>;
280
+ finishTableGlobalAction(tableActionDetail: any, actionResult: any, serverError?: boolean): Promise<void>;
281
+ startTableAction(tableActionEvent: any): Promise<void>;
282
+ startTableServerAction(tableActionDetail: any): Promise<void>;
283
+ completeInlineAction(tableAction: any): Promise<void>;
284
+ finishTableAction(tableActionDetail: any, actionResult: any, serverError?: boolean): Promise<void>;
285
+ startTableRecordSelection(tableActionEvent: any): Promise<void>;
286
+ startTableServerRecordSelection(tableSelectionDetail: any): Promise<void>;
287
+ finishTableRecordSelection(tableSelectionDetail: any, actionResult: any, serverError?: boolean): Promise<void>;
288
+ startTableSelectionAction(tableActionEvent: any): Promise<void>;
289
+ startTableServerSelectionAction(tableActionDetail: any): Promise<void>;
290
+ finishTableSelectionAction(tableActionDetail: any, actionResult: any, serverError?: boolean): Promise<void>;
291
+ startTableGetData(tableActionEvent: any): Promise<void>;
292
+ startTableServerGetData(tableActionDetail: any): Promise<void>;
293
+ finishTableGetData(tableActionDetail: any, actionResult: any, serverError?: boolean): Promise<void>;
294
+ checkSectionRequiredFields(sectionCode: string, reqFieldMessage?: string): boolean;
295
+ validateSectionConsistency(sectionCode: string, reqFieldMessage?: string): boolean;
296
+ copyTableRecordToFields(tableObj: any, mappingTable?: any): boolean;
297
+ notifyFormActivity(): void;
298
+ /**
299
+ * Métodos Legacy de compatibilidad hacia atrás
300
+ */
301
+ /**
302
+ * @deprecated Use onSectionActivation
303
+ */
304
+ addSectionActivation(codes: string[] | string | null, callback: any, properties?: any): void;
305
+ /**
306
+ * @deprecated Use onSectionInactivation
307
+ */
308
+ addSectionInactivation(codes: string[] | string | null, callback: any, properties?: any): void;
309
+ /**
310
+ * @deprecated Use onActionStart
311
+ */
312
+ addActionMethodStart(codes: string[] | string | null, callback: any, properties?: any): void;
313
+ /**
314
+ * @deprecated Use onActionFinish
315
+ */
316
+ addActionMethodFinish(codes: string[] | string | null, callback: any, properties?: any): void;
317
+ /**
318
+ * @deprecated Use onFieldInput
319
+ */
320
+ addFieldInputValidation(codes: string[] | string | null, callback: any, properties?: any): void;
321
+ /**
322
+ * @deprecated Use onFieldValidationStart
323
+ */
324
+ addFieldValidationStart(codes: string[] | string | null, callback: any, properties?: any): void;
325
+ /**
326
+ * @deprecated Use onFieldValidationFinish
327
+ */
328
+ addFieldValidationFinish(codes: string[] | string | null, callback: any, properties?: any): void;
329
+ /**
330
+ * @deprecated Use onTableActionStart
331
+ */
332
+ addTableActionStart(code: string, actionCode: string, callback: any, properties?: any): void;
333
+ /**
334
+ * @deprecated Use onTableActionFinish
335
+ */
336
+ addTableActionFinish(code: string, actionCode: string, callback: any, properties?: any): void;
337
+ /**
338
+ * @deprecated Use onTableSelectionStart
339
+ */
340
+ addTableSelectionStart(code: string, callback: any, properties?: any): void;
341
+ /**
342
+ * @deprecated Use onTableSelectionFinish
343
+ */
344
+ addTableSelectionFinish(code: string, callback: any, properties?: any): void;
345
+ /**
346
+ * @deprecated Use onTableGetDataStart
347
+ */
348
+ addTableGetDataStart(code: string, callback: any, properties?: any): void;
349
+ /**
350
+ * @deprecated Use onTableGetDataFinish
351
+ */
352
+ addTableGetDataFinish(code: string, callback: any, properties?: any): void;
353
+ static ɵfac: i0.ɵɵFactoryDeclaration<BasicFormComponent, never>;
354
+ static ɵcmp: i0.ɵɵComponentDeclaration<BasicFormComponent, "ng-component", never, {}, {}, never, ["*"], false>;
355
+ }
@@ -0,0 +1,9 @@
1
+ export declare class LibEventManagerService {
2
+ eventSubjects: any;
3
+ constructor(eventNames: any);
4
+ addEventName(name: any): void;
5
+ getEventNames(): string[];
6
+ getSubject(eventClassName: any): any;
7
+ subscribe(eventClassName: any, callback: any): void;
8
+ next(eventClassName: any, data: any): void;
9
+ }
@@ -0,0 +1,5 @@
1
+ export declare class LibFileManagementService {
2
+ openFile(fileBase64Data: any, fileName: any, fileType: any): void;
3
+ saveFileFromURL(fileUrl: any, fullFileName?: any): void;
4
+ saveFile(fileBase64Data: any, fileName: any, fileType: any): void;
5
+ }
@@ -0,0 +1,28 @@
1
+ export declare class LibFormManagerService {
2
+ pageStack: any[];
3
+ constructor();
4
+ getFormDefinition(formCode: any): void;
5
+ execServerAction(actionDetail: any): void;
6
+ goToForm(formCode: any, token: any, subject: any): void;
7
+ loadStack(): Promise<void>;
8
+ saveStack(): void;
9
+ cleanStack(): void;
10
+ resetPageStack(): void;
11
+ findFormInStack(token: any): {
12
+ index: number;
13
+ data: any;
14
+ };
15
+ replaceItem(token: any, formInfo: any): void;
16
+ stack(origin: any, target: any): string;
17
+ unstack(token?: any): any;
18
+ getFormInfo(token: string): {
19
+ token: any;
20
+ subject: any;
21
+ state: any;
22
+ originToken: any;
23
+ fields: any;
24
+ extra: any;
25
+ };
26
+ openForm(origin: any, target: any): void;
27
+ backTo(targetToken?: any): void;
28
+ }
@@ -0,0 +1,20 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/forms/basic-form";
3
+ import * as i2 from "./components/elements/action.component";
4
+ import * as i3 from "./components/elements/field.component";
5
+ import * as i4 from "./components/elements/layout/element.component";
6
+ import * as i5 from "./components/elements/layout/form-error.component";
7
+ import * as i6 from "./components/elements/layout/form-header.component";
8
+ import * as i7 from "./components/elements/layout/section.component";
9
+ import * as i8 from "./components/elements/layout/sub-section.component";
10
+ import * as i9 from "./components/elements/tables/table-record-action.component";
11
+ import * as i10 from "./components/elements/tables/table-record-field.component";
12
+ import * as i11 from "./components/elements/tables/table.component";
13
+ import * as i12 from "@angular/common";
14
+ import * as i13 from "@angular/router";
15
+ import * as i14 from "@angular/forms";
16
+ export declare class TuainNgFormsLibModule {
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuainNgFormsLibModule, never>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TuainNgFormsLibModule, [typeof i1.BasicFormComponent, typeof i2.ActionComponent, typeof i3.FieldComponent, typeof i4.ElementComponent, typeof i5.FormErrorComponent, typeof i6.FormHeaderComponent, typeof i7.SectionComponent, typeof i8.SubSectionComponent, typeof i9.LibTableRecordActionComponent, typeof i10.LibTableRecordFieldComponent, typeof i11.LibTableComponent], [typeof i12.CommonModule, typeof i13.RouterModule, typeof i14.FormsModule], [typeof i1.BasicFormComponent, typeof i2.ActionComponent, typeof i3.FieldComponent, typeof i4.ElementComponent, typeof i5.FormErrorComponent, typeof i6.FormHeaderComponent, typeof i7.SectionComponent, typeof i8.SubSectionComponent, typeof i9.LibTableRecordActionComponent, typeof i10.LibTableRecordFieldComponent, typeof i11.LibTableComponent]>;
19
+ static ɵinj: i0.ɵɵInjectorDeclaration<TuainNgFormsLibModule>;
20
+ }