tuain-ng-forms-lib 14.4.91 → 14.4.93

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/.browserslistrc +16 -0
  2. package/.yarn/cache/nanoid-npm-4.0.0-924f5c6312-7d5946df5c.zip +0 -0
  3. package/.yarn/cache/tslib-npm-2.4.1-36f0ed04db-19480d6e03.zip +0 -0
  4. package/.yarn/cache/yn-npm-5.0.0-b001dab23c-f0ec7710d3.zip +0 -0
  5. package/.yarn/install-state.gz +0 -0
  6. package/karma.conf.js +44 -0
  7. package/ng-package.json +11 -0
  8. package/package.json +6 -24
  9. package/src/lib/classes/forms/action.ts +56 -0
  10. package/src/lib/classes/forms/element.ts +29 -0
  11. package/src/lib/classes/forms/field.ts +500 -0
  12. package/src/lib/classes/forms/form.constants.ts +28 -0
  13. package/src/lib/classes/forms/form.ts +508 -0
  14. package/src/lib/classes/forms/piece-propagate.ts +46 -0
  15. package/src/lib/classes/forms/piece.ts +122 -0
  16. package/src/lib/classes/forms/section.ts +152 -0
  17. package/src/lib/classes/forms/subsection.ts +90 -0
  18. package/src/lib/classes/forms/table/action.ts +32 -0
  19. package/src/lib/classes/forms/table/column.ts +94 -0
  20. package/src/lib/classes/forms/table/row-data.ts +121 -0
  21. package/src/lib/classes/forms/table/table.ts +478 -0
  22. package/src/lib/components/elements/action.component.ts +59 -0
  23. package/src/lib/components/elements/field.component.ts +92 -0
  24. package/src/lib/components/elements/layout/element.component.ts +13 -0
  25. package/src/lib/components/elements/layout/form-error.component.ts +11 -0
  26. package/src/lib/components/elements/layout/form-header.component.ts +17 -0
  27. package/src/lib/components/elements/layout/piece.component.ts +34 -0
  28. package/src/lib/components/elements/layout/section.component.ts +31 -0
  29. package/src/lib/components/elements/layout/sub-section.component.ts +31 -0
  30. package/src/lib/components/elements/tables/table-record-action.component.ts +50 -0
  31. package/src/lib/components/elements/tables/table-record-field.component.ts +20 -0
  32. package/src/lib/components/elements/tables/table.component.ts +86 -0
  33. package/src/lib/components/forms/basic-form.ts +1588 -0
  34. package/src/lib/services/event-manager.service.ts +21 -0
  35. package/src/lib/services/file-manager.service.ts +6 -0
  36. package/src/lib/services/form-manager.service.ts +89 -0
  37. package/src/lib/services/icon-dictionary.service.ts +159 -0
  38. package/src/lib/tuain-ng-forms-lib.module.ts +40 -0
  39. package/{public-api.d.ts → src/public-api.ts} +5 -0
  40. package/src/test.ts +27 -0
  41. package/tsconfig.lib.json +15 -0
  42. package/tsconfig.lib.prod.json +10 -0
  43. package/tsconfig.spec.json +17 -0
  44. package/esm2020/lib/classes/forms/action.mjs +0 -35
  45. package/esm2020/lib/classes/forms/element.mjs +0 -26
  46. package/esm2020/lib/classes/forms/field.mjs +0 -444
  47. package/esm2020/lib/classes/forms/form.constants.mjs +0 -26
  48. package/esm2020/lib/classes/forms/form.mjs +0 -431
  49. package/esm2020/lib/classes/forms/piece-propagate.mjs +0 -30
  50. package/esm2020/lib/classes/forms/piece.mjs +0 -95
  51. package/esm2020/lib/classes/forms/section.mjs +0 -137
  52. package/esm2020/lib/classes/forms/subsection.mjs +0 -80
  53. package/esm2020/lib/classes/forms/table/action.mjs +0 -18
  54. package/esm2020/lib/classes/forms/table/column.mjs +0 -74
  55. package/esm2020/lib/classes/forms/table/row-data.mjs +0 -116
  56. package/esm2020/lib/classes/forms/table/table.mjs +0 -415
  57. package/esm2020/lib/components/elements/action.component.mjs +0 -71
  58. package/esm2020/lib/components/elements/field.component.mjs +0 -80
  59. package/esm2020/lib/components/elements/layout/element.component.mjs +0 -20
  60. package/esm2020/lib/components/elements/layout/form-error.component.mjs +0 -20
  61. package/esm2020/lib/components/elements/layout/form-header.component.mjs +0 -31
  62. package/esm2020/lib/components/elements/layout/piece.component.mjs +0 -22
  63. package/esm2020/lib/components/elements/layout/section.component.mjs +0 -37
  64. package/esm2020/lib/components/elements/layout/sub-section.component.mjs +0 -37
  65. package/esm2020/lib/components/elements/tables/table-record-action.component.mjs +0 -56
  66. package/esm2020/lib/components/elements/tables/table-record-field.component.mjs +0 -30
  67. package/esm2020/lib/components/elements/tables/table.component.mjs +0 -93
  68. package/esm2020/lib/components/forms/basic-form.mjs +0 -1514
  69. package/esm2020/lib/services/event-manager.service.mjs +0 -18
  70. package/esm2020/lib/services/file-manager.service.mjs +0 -6
  71. package/esm2020/lib/services/form-manager.service.mjs +0 -80
  72. package/esm2020/lib/tuain-ng-forms-lib.module.mjs +0 -71
  73. package/esm2020/public-api.mjs +0 -19
  74. package/esm2020/tuain-ng-forms-lib.mjs +0 -5
  75. package/fesm2015/tuain-ng-forms-lib.mjs +0 -4230
  76. package/fesm2015/tuain-ng-forms-lib.mjs.map +0 -1
  77. package/fesm2020/tuain-ng-forms-lib.mjs +0 -4048
  78. package/fesm2020/tuain-ng-forms-lib.mjs.map +0 -1
  79. package/lib/classes/forms/action.d.ts +0 -22
  80. package/lib/classes/forms/element.d.ts +0 -17
  81. package/lib/classes/forms/field.d.ts +0 -205
  82. package/lib/classes/forms/form.constants.d.ts +0 -25
  83. package/lib/classes/forms/form.d.ts +0 -137
  84. package/lib/classes/forms/piece-propagate.d.ts +0 -11
  85. package/lib/classes/forms/piece.d.ts +0 -41
  86. package/lib/classes/forms/section.d.ts +0 -32
  87. package/lib/classes/forms/subsection.d.ts +0 -24
  88. package/lib/classes/forms/table/action.d.ts +0 -15
  89. package/lib/classes/forms/table/column.d.ts +0 -33
  90. package/lib/classes/forms/table/row-data.d.ts +0 -14
  91. package/lib/classes/forms/table/table.d.ts +0 -100
  92. package/lib/components/elements/action.component.d.ts +0 -17
  93. package/lib/components/elements/field.component.d.ts +0 -38
  94. package/lib/components/elements/layout/element.component.d.ts +0 -9
  95. package/lib/components/elements/layout/form-error.component.d.ts +0 -8
  96. package/lib/components/elements/layout/form-header.component.d.ts +0 -12
  97. package/lib/components/elements/layout/piece.component.d.ts +0 -10
  98. package/lib/components/elements/layout/section.component.d.ts +0 -11
  99. package/lib/components/elements/layout/sub-section.component.d.ts +0 -11
  100. package/lib/components/elements/tables/table-record-action.component.d.ts +0 -16
  101. package/lib/components/elements/tables/table-record-field.component.d.ts +0 -12
  102. package/lib/components/elements/tables/table.component.d.ts +0 -35
  103. package/lib/components/forms/basic-form.d.ts +0 -353
  104. package/lib/services/event-manager.service.d.ts +0 -9
  105. package/lib/services/file-manager.service.d.ts +0 -5
  106. package/lib/services/form-manager.service.d.ts +0 -28
  107. package/lib/tuain-ng-forms-lib.module.d.ts +0 -20
  108. package/tuain-ng-forms-lib.d.ts +0 -5
@@ -1,17 +0,0 @@
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
- }
@@ -1,38 +0,0 @@
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): void;
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
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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,11 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,16 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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
- }
@@ -1,35 +0,0 @@
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
- }
@@ -1,353 +0,0 @@
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 _formSectionsCanDeactivate;
21
- private _formSectionsActivate;
22
- private _formSectionsInactivate;
23
- private _formActionsStart;
24
- private _formActionsFinish;
25
- private _fieldInputValidation;
26
- private _fieldValidationsStart;
27
- private _fieldValidationsFinish;
28
- private _tableSelectionsStart;
29
- private _tableSelectionsFinish;
30
- private _tableActionsStart;
31
- private _tableActionsFinish;
32
- private _tableGetDataStart;
33
- private _tableGetDataFinish;
34
- private _actionServerError;
35
- private _fieldServerError;
36
- private _tableServerError;
37
- protected inputDataFields: any;
38
- protected extraData: any;
39
- protected _eventEmiter: LibEventManagerService;
40
- protected enabledSections: RecordFormSection[];
41
- formConfig: any;
42
- name: string | null;
43
- formSubject: string | null;
44
- _errorType: string;
45
- errorCode: string;
46
- errorFullCode: string;
47
- errorName: string;
48
- errorMessage: string;
49
- errorDetail: string;
50
- visible: boolean;
51
- fields: any;
52
- actions: any;
53
- sections: any;
54
- busy: boolean;
55
- get title(): string;
56
- set title(title: string);
57
- getTitle(): string;
58
- setTitle(title: string): void;
59
- cleanData(): void;
60
- getCurrentState(): string;
61
- supportState(state: string | null): boolean;
62
- changeState(state: any): 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
- checkErrorRecordReceived(recordResponse: any): boolean;
226
- errorOccured(): boolean;
227
- /**
228
- * Soporte manejo de eventos de formulario
229
- */
230
- requestFormAction(actionCode: string, actionSubject?: any): Promise<any>;
231
- updateFormWithServerData(formContent: any): void;
232
- /**
233
- * Manejo de event handlers para errores Server del formulario
234
- */
235
- cleanActionServerError(): void;
236
- cleanFieldServerError(): void;
237
- cleanTableServerError(): void;
238
- onActionServerError(callback: any, properties?: any): void;
239
- onValidationServerError(callback: any, properties?: any): void;
240
- onTableServerError(callback: any, properties?: any): void;
241
- /**
242
- * Manejo de event handlers para acciones sobre el formulario
243
- */
244
- onSectionCanDeactivate(codes: string[] | string | null, callback: any, properties?: any): void;
245
- onSectionActivation(codes: string[] | string | null, callback: any, properties?: any): void;
246
- onSectionInactivation(codes: string[] | string | null, callback: any, properties?: any): void;
247
- onActionStart(codes: string[] | string | null, callback: any, properties?: any): void;
248
- onActionFinish(codes: string[] | string | null, callback: any, properties?: any): void;
249
- verifySectionActivation(code: string): Promise<boolean>;
250
- launchSectionActivation(code: string): Promise<void>;
251
- launchSectionInactivation(code: string): Promise<void>;
252
- startAction(code: string): Promise<void>;
253
- startServerAction(actionInput: any): Promise<void>;
254
- finishAction(action: any, actionResult: any, serverError?: boolean): Promise<void>;
255
- completeGlobalAction(action: any): Promise<void>;
256
- /**
257
- * Manejadores de eventos para validaciones sobre campos
258
- */
259
- onFieldInput(codes: string[] | string | null, callback: any, properties?: any): void;
260
- onFieldValidationStart(codes: string[] | string | null, callback: any, properties?: any): void;
261
- onFieldValidationFinish(codes: string[] | string | null, callback: any, properties?: any): void;
262
- startFieldInputValidation(code: string, intrinsicValidation?: boolean): Promise<boolean>;
263
- startFieldValidation(code: string, intrinsicValidation?: boolean): Promise<void>;
264
- startServerFieldValidation(inputField: string | FieldDescriptor): Promise<void>;
265
- finishFieldValidation(fieldObject: any, validationResult: boolean, serverError?: boolean): Promise<void>;
266
- continueFieldValidation(code: string): Promise<void>;
267
- /**
268
- * Manejadores de eventos para acciones sobre Tablas
269
- */
270
- onTableActionStart(code: string, actionCode: string, callback: any, properties?: any): void;
271
- onTableActionFinish(code: string, actionCode: string, callback: any, properties?: any): void;
272
- onTableSelectionStart(code: string, callback: any, properties?: any): void;
273
- onTableSelectionFinish(code: string, callback: any, properties?: any): void;
274
- onTableGetDataStart(code: string, callback: any, properties?: any): void;
275
- onTableGetDataFinish(code: string, callback: any, properties?: any): void;
276
- startTableGlobalAction(tableActionEvent: any): Promise<void>;
277
- startTableServerGlobalAction(tableActionDetail: any): Promise<void>;
278
- finishTableGlobalAction(tableActionDetail: any, actionResult: any, serverError?: boolean): Promise<void>;
279
- startTableAction(tableActionEvent: any): Promise<void>;
280
- startTableServerAction(tableActionDetail: any): Promise<void>;
281
- completeInlineAction(tableAction: any): Promise<void>;
282
- finishTableAction(tableActionDetail: any, actionResult: any, serverError?: boolean): Promise<void>;
283
- startTableRecordSelection(tableActionEvent: any): Promise<void>;
284
- startTableServerRecordSelection(tableSelectionDetail: any): Promise<void>;
285
- finishTableRecordSelection(tableSelectionDetail: any, actionResult: any, serverError?: boolean): Promise<void>;
286
- startTableSelectionAction(tableActionEvent: any): Promise<void>;
287
- startTableServerSelectionAction(tableActionDetail: any): Promise<void>;
288
- finishTableSelectionAction(tableActionDetail: any, actionResult: any, serverError?: boolean): Promise<void>;
289
- startTableGetData(tableActionEvent: any): Promise<void>;
290
- startTableServerGetData(tableActionDetail: any): Promise<void>;
291
- finishTableGetData(tableActionDetail: any, actionResult: any, serverError?: boolean): Promise<void>;
292
- checkSectionRequiredFields(sectionCode: string, reqFieldMessage?: string): boolean;
293
- validateSectionConsistency(sectionCode: string, reqFieldMessage?: string): boolean;
294
- copyTableRecordToFields(tableObj: any, mappingTable?: any): boolean;
295
- notifyFormActivity(): void;
296
- /**
297
- * Métodos Legacy de compatibilidad hacia atrás
298
- */
299
- /**
300
- * @deprecated Use onSectionActivation
301
- */
302
- addSectionActivation(codes: string[] | string | null, callback: any, properties?: any): void;
303
- /**
304
- * @deprecated Use onSectionInactivation
305
- */
306
- addSectionInactivation(codes: string[] | string | null, callback: any, properties?: any): void;
307
- /**
308
- * @deprecated Use onActionStart
309
- */
310
- addActionMethodStart(codes: string[] | string | null, callback: any, properties?: any): void;
311
- /**
312
- * @deprecated Use onActionFinish
313
- */
314
- addActionMethodFinish(codes: string[] | string | null, callback: any, properties?: any): void;
315
- /**
316
- * @deprecated Use onFieldInput
317
- */
318
- addFieldInputValidation(codes: string[] | string | null, callback: any, properties?: any): void;
319
- /**
320
- * @deprecated Use onFieldValidationStart
321
- */
322
- addFieldValidationStart(codes: string[] | string | null, callback: any, properties?: any): void;
323
- /**
324
- * @deprecated Use onFieldValidationFinish
325
- */
326
- addFieldValidationFinish(codes: string[] | string | null, callback: any, properties?: any): void;
327
- /**
328
- * @deprecated Use onTableActionStart
329
- */
330
- addTableActionStart(code: string, actionCode: string, callback: any, properties?: any): void;
331
- /**
332
- * @deprecated Use onTableActionFinish
333
- */
334
- addTableActionFinish(code: string, actionCode: string, callback: any, properties?: any): void;
335
- /**
336
- * @deprecated Use onTableSelectionStart
337
- */
338
- addTableSelectionStart(code: string, callback: any, properties?: any): void;
339
- /**
340
- * @deprecated Use onTableSelectionFinish
341
- */
342
- addTableSelectionFinish(code: string, callback: any, properties?: any): void;
343
- /**
344
- * @deprecated Use onTableGetDataStart
345
- */
346
- addTableGetDataStart(code: string, callback: any, properties?: any): void;
347
- /**
348
- * @deprecated Use onTableGetDataFinish
349
- */
350
- addTableGetDataFinish(code: string, callback: any, properties?: any): void;
351
- static ɵfac: i0.ɵɵFactoryDeclaration<BasicFormComponent, never>;
352
- static ɵcmp: i0.ɵɵComponentDeclaration<BasicFormComponent, "ng-component", never, {}, {}, never, ["*"], false>;
353
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
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
- }
@@ -1,28 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="tuain-ng-forms-lib" />
5
- export * from './public-api';