tuain-ng-forms-lib 12.0.20 → 12.0.24

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 (29) hide show
  1. package/README.md +3 -3
  2. package/bundles/tuain-ng-forms-lib.umd.js +484 -632
  3. package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
  4. package/esm2015/lib/classes/forms/action.js +3 -4
  5. package/esm2015/lib/classes/forms/element.js +12 -2
  6. package/esm2015/lib/classes/forms/field.js +9 -21
  7. package/esm2015/lib/classes/forms/form.js +153 -236
  8. package/esm2015/lib/classes/forms/section.js +7 -1
  9. package/esm2015/lib/classes/forms/table/row-data.js +6 -26
  10. package/esm2015/lib/classes/forms/table/table.js +3 -4
  11. package/esm2015/lib/components/elements/layout/element.component.js +9 -8
  12. package/esm2015/lib/components/elements/tables/table.component.js +31 -31
  13. package/esm2015/lib/components/forms/basic-form.js +141 -138
  14. package/fesm2015/tuain-ng-forms-lib.js +363 -512
  15. package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
  16. package/lib/classes/forms/action.d.ts +0 -2
  17. package/lib/classes/forms/element.d.ts +10 -0
  18. package/lib/classes/forms/field.d.ts +0 -3
  19. package/lib/classes/forms/form.d.ts +53 -55
  20. package/lib/classes/forms/section.d.ts +5 -0
  21. package/lib/classes/forms/table/row-data.d.ts +0 -1
  22. package/lib/classes/forms/table/table.d.ts +0 -1
  23. package/lib/components/elements/layout/element.component.d.ts +3 -2
  24. package/lib/components/elements/tables/table.component.d.ts +1 -1
  25. package/lib/components/forms/basic-form.d.ts +130 -93
  26. package/package.json +1 -1
  27. package/tuain-ng-forms-lib.metadata.json +1 -1
  28. package/esm2015/lib/classes/utilities.js +0 -54
  29. package/lib/classes/utilities.d.ts +0 -1
@@ -8,12 +8,10 @@ export declare class FormAction extends FormElement {
8
8
  actionCode: string;
9
9
  actionName: string;
10
10
  iconName: string;
11
- location: string;
12
11
  restrictedOnField: string;
13
12
  restrictedOnOperator: string;
14
13
  restrictedOnValue: string;
15
14
  customValidation: any;
16
- customAttributes: any;
17
15
  constructor(actionDefinition: any, formConfig: any);
18
16
  get actionActivated(): Subject<string>;
19
17
  start(): void;
@@ -8,7 +8,11 @@ export declare class FormElement {
8
8
  enabledStates: string[];
9
9
  widget: any;
10
10
  elementType: string;
11
+ customAttributes: any;
11
12
  constructor(elementDefinition: any, formConfig: any);
13
+ getCustomAttribute(name: any): any;
14
+ setCustomAttribute(name: any, value: any): any;
15
+ matchAttribute(name: any, value: any): boolean;
12
16
  isField(): boolean;
13
17
  isAction(): boolean;
14
18
  isTable(): boolean;
@@ -16,7 +20,13 @@ export declare class FormElement {
16
20
  setEnabledStates(newStates: any): void;
17
21
  viewOnState(state: any): boolean;
18
22
  enabledOnState(state: any): boolean;
23
+ /**
24
+ * @deprecated Utilizar viewOnState
25
+ */
19
26
  supportState(state: any): boolean;
27
+ /**
28
+ * @deprecated Utilizar viewOnState
29
+ */
20
30
  supportMode(state: any): boolean;
21
31
  get visible(): boolean;
22
32
  set visible(visible: boolean);
@@ -16,7 +16,6 @@ export declare class FieldDescriptor extends FormElement {
16
16
  fieldInfo: string;
17
17
  defaultValue: string;
18
18
  defaultEditable: boolean;
19
- customAttributes: any;
20
19
  visibleLabel: boolean;
21
20
  fieldRequired: boolean;
22
21
  hasChanged: boolean;
@@ -56,7 +55,6 @@ export declare class FieldDescriptor extends FormElement {
56
55
  notifyEditionFinish(): void;
57
56
  setAttr(name: string, value: any): void;
58
57
  notifyEditionDetailRequest(): void;
59
- getCustomAttribute(name: any): any;
60
58
  setVisibleLabel(visibleLabel: boolean): void;
61
59
  showLabel(): void;
62
60
  hideLabel(): void;
@@ -93,7 +91,6 @@ export declare class FieldDescriptor extends FormElement {
93
91
  getValue(): any;
94
92
  updateFromServer(fld: any): void;
95
93
  setFieldType(inputFieldType: any): void;
96
- format(): void;
97
94
  setMinValue(minValue: any): void;
98
95
  setMaxValue(maxValue: any): void;
99
96
  getFieldOptions(): any;
@@ -8,71 +8,38 @@ export declare class FormStructureAndData {
8
8
  _formConfig: any;
9
9
  private _title;
10
10
  private _stateFlow;
11
+ private _fieldArray;
11
12
  private _fields;
12
- private _fieldsObj;
13
+ private _actionArray;
13
14
  private _actions;
14
- private _actionsObj;
15
+ private _tableArray;
15
16
  private _tables;
16
- private _tableObj;
17
+ private _sectionArray;
17
18
  private _sections;
18
- private _sectionsObj;
19
19
  private _immutableData;
20
20
  private _extraInfo;
21
+ private _exclusiveSectionsByAttr;
21
22
  constructor(definitionReceived: any, formConfig: any);
22
- set immutableData(immutableData: {});
23
- set extraInfo(extraInfo: {});
24
- get defaultState(): string;
25
- get title(): string;
26
- set title(title: string);
23
+ getTitle(): string;
24
+ setTitle(title: any): void;
27
25
  get name(): string;
28
26
  set name(name: string);
29
- changeState(newState: any): boolean;
30
- setStateFlow(states?: any, transitions?: any, defaultState?: any): void;
27
+ get defaultState(): string;
31
28
  supportState(state: any): boolean;
32
29
  supportMode(state: any): boolean;
33
- get immutableData(): {};
30
+ get states(): string[];
31
+ getCurrentState(): string;
32
+ changeState(newState: any): boolean;
33
+ setStateFlow(states?: any, transitions?: any, defaultState?: any): void;
34
34
  getImmutableElement(name: any): any;
35
+ set immutableData(immutableData: any);
36
+ get immutableData(): any;
35
37
  getExtraInfo(name: any): any;
36
- get extraInfo(): {};
38
+ set extraInfo(extraInfo: any);
39
+ get extraInfo(): any;
37
40
  getFields(): FieldDescriptor[];
38
- getStates(): string[];
39
41
  getFieldNames(): string[];
40
- getActions(): FormAction[];
41
- getHeaderActions(): FormAction[];
42
- getFieldObject(elementId: any): any;
43
- getTableObject(elementId: any): any;
44
- getActionObject(elementId: any): any;
45
- getSubSection(sectionCode: any, subsectionCode: any): any;
46
- get actions(): {};
47
- getSection(sectionCode: any): any;
48
- sections(): RecordFormSection[];
49
- sectionTitles(): string[];
50
- getSections(): RecordFormSection[];
51
- get visibleSections(): RecordFormSection[];
52
- numSections(): number;
53
- getSectionsTitles(): string[];
54
- getSectionObject(elementId: any): any;
55
- tables(): RecordTable[];
56
- getTables(): RecordTable[];
57
- cleanData(): void;
58
- showSection(sectionCode: any): any;
59
- hideSection(sectionCode: any): any;
60
- activeSection(): string;
61
- activateSection(sectionCode: any): any;
62
- showSections(sectionArray: any): void;
63
- hideSections(sectionArray: any): void;
64
- showSubSection(sectionCode: any, subSectionCode: any): any;
65
- hideSubSection(sectionCode: any, subSectionCode: any): any;
66
- showSubSections(sectionCode: any, subSectionArray: any): void;
67
- hideSubSections(sectionCode: any, subSectionArray: any): void;
68
- showAction(actionCode: any): any;
69
- hideAction(actionCode: any): any;
70
- showActions(actionArray: any): void;
71
- hideActions(actionArray: any): void;
72
- enableAction(actionCode: any): any;
73
- disableAction(actionCode: any): any;
74
- enableActions(actionArray: any): void;
75
- disableActions(actionArray: any): void;
42
+ getField(elementId: any): any;
76
43
  get fields(): {};
77
44
  enableField(fieldCode: any): any;
78
45
  disableField(fieldCode: any): any;
@@ -103,12 +70,43 @@ export declare class FormStructureAndData {
103
70
  tagFieldsWithError(errorMessage: any, fieldArray?: any, sectionCode?: any, subSectionCode?: any): number;
104
71
  cleanErrorFields(fieldArray?: any, sectionCode?: any, subSectionCode?: any): void;
105
72
  tagEmptyRequiredFields(errorMessage: any, fieldArray?: any, sectionCode?: any, subSectionCode?: any): boolean;
106
- cleanTable(tableCode: any): any;
73
+ get actions(): {};
74
+ getActionsByAttribute(name: string, value: any): FormAction[];
75
+ getActions(): FormAction[];
76
+ getAction(code: string): any;
77
+ showActions(codes: any): void;
78
+ hideActions(codes: any): void;
79
+ enableActions(codes: any): void;
80
+ disableActions(codes: any): void;
81
+ execOnActions(codes: any, functionName: any): void;
82
+ tables(): RecordTable[];
83
+ getTables(): RecordTable[];
84
+ getTable(code: any): any;
85
+ enableTables(codes: any): void;
86
+ disableTables(codes: any): void;
87
+ showTables(codes: any): void;
88
+ hideTables(codes: any): void;
89
+ cleanTables(codes: any): void;
90
+ execOnTables(codes: any, functionName: any): void;
107
91
  getTableRecord(tableCode: any, recordId: any): any;
108
- hideTable(tableCode: any): any;
109
- showTable(tableCode: any): any;
110
- showTables(tableArray: any): void;
111
- hideTables(tableArray: any): void;
92
+ get sections(): RecordFormSection[];
93
+ getSectionsByAttribute(name: any, value: any): RecordFormSection[];
94
+ get sectionTitles(): string[];
95
+ get visibleSections(): RecordFormSection[];
96
+ getSection(code: any): any;
97
+ showSections(names: any): void;
98
+ hideSections(names: any): void;
99
+ activeSection(): any;
100
+ getSubSection(code: any, subCode: any): any;
101
+ showSubSections(code: any, subCodes: any): void;
102
+ hideSubSections(code: any, subCodes: any): void;
103
+ activateSection(code: any): void;
104
+ execOnSections(codes: any, functionName: any): void;
105
+ execOnSubSections(code: any, subNames: any, functionName: any): void;
106
+ /**
107
+ * Métodos propios de gestión del formulario
108
+ */
109
+ cleanData(): void;
112
110
  /** payload para servicios Tuain */
113
111
  getPayload(): {
114
112
  fields: any[];
@@ -9,9 +9,14 @@ export declare class RecordFormSection {
9
9
  sectionId: string;
10
10
  sectionCode: string;
11
11
  sectionTitle: string;
12
+ customAttributes: any;
12
13
  subSections: RecordFormSubSection[];
13
14
  subSectionsObj: any;
14
15
  constructor(sectionReceived: any, formObject: any);
16
+ getCustomAttribute(name: any): any;
17
+ setCustomAttribute(name: any, value: any): any;
18
+ matchAttribute(name: any, value: any): boolean;
19
+ get code(): string;
15
20
  get activation(): Subject<string>;
16
21
  get inactivation(): Subject<string>;
17
22
  activate(): void;
@@ -4,7 +4,6 @@ export declare class TableRecordData {
4
4
  selected: boolean;
5
5
  recordData: any;
6
6
  constructor(recordReceived: any, recordDefinition: RecordTableColumn[], selectionFieldName?: any);
7
- formatFieldValue(fieldType: any, fieldValue: any): any;
8
7
  toggleSelect(): void;
9
8
  select(): void;
10
9
  unselect(): void;
@@ -61,7 +61,6 @@ export declare class RecordTable extends FormElement {
61
61
  sortable: boolean;
62
62
  filterConfig: FieldSearch[];
63
63
  filterObject: Filter;
64
- customAttributes: any;
65
64
  constructor(tableReceived: any, formConfig: any);
66
65
  get inlineActionTrigger(): Subject<TableEvent>;
67
66
  get globalActionTrigger(): Subject<TableEvent>;
@@ -1,8 +1,9 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  export declare class ElementComponent implements OnInit {
3
3
  formConfig: any;
4
- formElement: any;
5
- formManager: any;
4
+ element: any;
5
+ form: any;
6
+ currentState: any;
6
7
  ngOnInit(): void;
7
8
  start(): void;
8
9
  get visible(): any;
@@ -26,7 +26,7 @@ export declare class LibTableComponent implements OnInit {
26
26
  inlineActions: any;
27
27
  globalActions: any;
28
28
  selectionActions: any;
29
- tableObject: RecordTable;
29
+ table: RecordTable;
30
30
  tableRecords: TableRecordData[];
31
31
  disabled: boolean;
32
32
  currentState: string;
@@ -2,6 +2,9 @@ import { FormStructureAndData } from '../../classes/forms/form';
2
2
  import { LibFormManagerService } from '../../services/form-manager.service';
3
3
  import { LibEventManagerService } from '../../services/event-manager.service';
4
4
  import { LibFileManagementService } from '../../services/file-manager.service';
5
+ import { FormAction } from '../../classes/forms/action';
6
+ import { FieldDescriptor } from '../../classes/forms/field';
7
+ import { RecordTable } from '../../classes/forms/table/table';
5
8
  export declare class BasicFormComponent {
6
9
  protected formManagerService: LibFormManagerService;
7
10
  protected _eventManager: LibEventManagerService;
@@ -37,95 +40,101 @@ export declare class BasicFormComponent {
37
40
  tableActionsFinish: {};
38
41
  tableGetDataStart: {};
39
42
  tableGetDataFinish: {};
43
+ getTitle: () => string;
44
+ setTitle: (title: string) => any;
45
+ cleanData: () => void;
46
+ getCurrentState: () => string;
47
+ supportState: (state: string) => boolean;
48
+ changeState: (state: any) => boolean;
49
+ getStates: () => any;
50
+ getImmutableElement: (name: string) => any;
51
+ getExtraInfo: (name: string) => any;
52
+ getFields: () => FieldDescriptor[];
53
+ getFieldNames: () => string[];
54
+ getField: (code: string) => FieldDescriptor;
55
+ enableField: (code: string) => void;
56
+ disableField: (code: string) => void;
57
+ getFieldValue: (code: string) => any;
58
+ getFieldsValues: (codes: string[]) => any;
59
+ getFieldOptions: (code: string) => any;
60
+ setFieldValue: (code: string, value: any) => void;
61
+ setFieldRequired: (code: string, required: boolean) => void;
62
+ setFieldErrorMessage: (code: string, errorMessage: string) => void;
63
+ setFieldError: (code: string, message: string, type?: string) => void;
64
+ setFieldIntrinsicErrorMessage: (code: string, message: string) => any;
65
+ setFieldOptions: (code: string, optionsArray: any, idAttribute: any, nameAttribute: any) => void;
66
+ getFieldSet: (filterFunc?: any, fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
67
+ applyProcessToFieldSet: (processFunc: any, fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
68
+ applyProcessToAllFields: (processFunc: any) => any;
69
+ cleanFields: (fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
70
+ getRequiredFields: (fieldArray: any, sectionCode?: any, subSectionCode?: any) => any;
71
+ getRequiredEmptyFields: (fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
72
+ getChangedFields: (fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
73
+ getFieldsWithValidationIssues: (fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
74
+ tagFieldsWithError: (errorMessage: any, fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
75
+ cleanErrorFields: (fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
76
+ showLabelFields: (fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
77
+ hideLabelFields: (fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
78
+ enableFields: (fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
79
+ disableFields: (fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
80
+ enableEditFields: (fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
81
+ disableEditFields: (fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
82
+ showFields: (fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
83
+ hideFields: (fieldArray?: any, sectionCode?: any, subSectionCode?: any) => any;
84
+ getActionsByAttribute: (name: string, value: any) => any;
85
+ getHeaderActions: () => any;
86
+ getAction: (actionCode: string) => FormAction;
87
+ getActionDefinition: (actionCode: any) => any;
88
+ showActions: (actionArray: any) => any;
89
+ hideActions: (actionArray: any) => any;
90
+ enableActions: (actionArray: any) => any;
91
+ disableActions: (actionArray: any) => any;
92
+ showAction: (code: any) => any;
93
+ hideAction: (code: any) => any;
94
+ enableAction: (code: any) => any;
95
+ disableAction: (code: any) => any;
96
+ getSections: () => any;
97
+ activateSection: (sectionCode: any) => any;
98
+ getSectionsTitles: () => any;
99
+ getSection: (code: any) => any;
100
+ showSection: (code: any) => any;
101
+ hideSection: (code: any) => any;
102
+ showSections: (sectionArray: any) => any;
103
+ hideSections: (sectionArray: any) => any;
104
+ getSubSection: (code: any, subCode: any) => any;
105
+ showSubSection: (sectionCode: any, subCode: any) => any;
106
+ hideSubSection: (sectionCode: any, subCode: any) => any;
107
+ showSubSections: (sectionCode: any, subSectionArray: any) => any;
108
+ hideSubSections: (sectionCode: any, subSectionArray: any) => any;
109
+ getTables: () => any;
110
+ showTables: (tableArray: any) => any;
111
+ hideTables: (tableArray: any) => any;
112
+ cleanTables: (tableArray: any) => any;
113
+ getTable: (elementId: any) => RecordTable;
114
+ showTable: (code: any) => any;
115
+ hideTable: (code: any) => any;
116
+ cleanTable: (code: any) => any;
117
+ getTableRecord: (tableName: any, recordId: any) => any;
40
118
  protected _eventEmiter: LibEventManagerService;
41
119
  constructor(formManagerService: LibFormManagerService, _eventManager: LibEventManagerService, fileMgmtServices: LibFileManagementService);
42
- get inServerProcess(): boolean;
120
+ assignFunctions(): void;
43
121
  setConfig(formConfig: any): void;
44
122
  cleanStart(): void;
123
+ get formManager(): this;
124
+ get formCode(): string;
125
+ set formCode(name: string);
126
+ get inServerProcess(): boolean;
45
127
  get form(): FormStructureAndData;
128
+ get visibleSections(): import("../../classes/forms/section").RecordFormSection[];
46
129
  get currentState(): string;
47
130
  set currentState(state: string);
48
131
  get currentMode(): string;
49
- get immutableData(): {};
50
- get extraInfo(): {};
51
- supportState(state: any): boolean;
52
- supportMode(state: any): boolean;
53
- getTitle(): string;
54
- setTitle(title: string): void;
55
- getImmutableElement(name: any): any;
56
- getExtraInfo(name: any): any;
57
- cleanData(): void;
58
- getFields(): import("../../classes/forms/field").FieldDescriptor[];
59
- getFieldNames(): string[];
60
- getFieldObject(elementId: any): any;
61
- getField(fieldCode: any): any;
62
- enableField(fieldCode: any): any;
63
- disableField(fieldCode: any): any;
64
- getFieldValue(fieldCode: any): any;
65
- getFieldsValues(fieldCodesArray: any): {};
66
- getFieldOptions(fieldCode: any): any;
67
- setFieldValue(fieldCode: any, fieldValue: any): any;
68
- setFieldRequired(fieldCode: any, required: boolean): any;
69
- setFieldErrorMessage(fieldCode: any, errorMessage: any): any;
70
- setFieldError(code: any, message: any, type?: string): any;
71
- setFieldIntrinsicErrorMessage(code: any, message: any): any;
72
- setFieldOptions(fieldCode: any, optionsArray: any, idAttribute: any, nameAttribute: any): void;
73
- getFieldSet(filterFunc?: any, fieldArray?: any, sectionCode?: any, subSectionCode?: any): any;
74
- applyProcessToFieldSet(processFunc: any, fieldArray?: any, sectionCode?: any, subSectionCode?: any): number;
75
- applyProcessToAllFields(processFunc: any): number;
76
- cleanFields(fieldArray?: any, sectionCode?: any, subSectionCode?: any): number;
77
- getRequiredFields(fieldArray: any, sectionCode?: any, subSectionCode?: any): any;
78
- getRequiredEmptyFields(fieldArray?: any, sectionCode?: any, subSectionCode?: any): any;
79
- getChangedFields(fieldArray?: any, sectionCode?: any, subSectionCode?: any): any;
80
- getFieldsWithValidationIssues(fieldArray?: any, sectionCode?: any, subSectionCode?: any): any;
81
- tagFieldsWithError(errorMessage: any, fieldArray?: any, sectionCode?: any, subSectionCode?: any): number;
82
- cleanErrorFields(fieldArray?: any, sectionCode?: any, subSectionCode?: any): void;
83
- showLabelFields(fieldArray?: any, sectionCode?: any, subSectionCode?: any): number;
84
- hideLabelFields(fieldArray?: any, sectionCode?: any, subSectionCode?: any): number;
85
- enableFields(fieldArray?: any, sectionCode?: any, subSectionCode?: any): number;
86
- disableFields(fieldArray?: any, sectionCode?: any, subSectionCode?: any): number;
87
- enableEditFields(fieldArray?: any, sectionCode?: any, subSectionCode?: any): number;
88
- disableEditFields(fieldArray?: any, sectionCode?: any, subSectionCode?: any): number;
89
- showFields(fieldArray?: any, sectionCode?: any, subSectionCode?: any): number;
90
- hideFields(fieldArray?: any, sectionCode?: any, subSectionCode?: any): number;
91
- getHeaderActions(): import("../../classes/forms/action").FormAction[];
92
- getActionObject(elementId: any): any;
93
- getAction(actionCode: any): any;
94
- getActionDefinition(actionCode: any): any;
95
- showAction(actionCode: any): any;
96
- hideAction(actionCode: any): any;
97
- showActions(actionArray: any): void;
98
- hideActions(actionArray: any): void;
99
- enableAction(actionCode: any): any;
100
- disableAction(actionCode: any): any;
101
- enableActions(actionArray: any): void;
102
- disableActions(actionArray: any): void;
103
- getStates(): string[];
104
- getSections(): import("../../classes/forms/section").RecordFormSection[];
105
- get visibleSections(): import("../../classes/forms/section").RecordFormSection[];
106
- getSection(sectionCode: any): any;
107
- activateSection(sectionCode: any): any;
108
- getSubSection(sectionCode: any, subsectionCode: any): any;
109
- numSections(): number;
110
- getSectionsTitles(): string[];
111
- getSectionObject(elementId: any): any;
112
- showSection(sectionCode: any): any;
113
- hideSection(sectionCode: any): any;
114
- showSections(sectionArray: any): void;
115
- hideSections(sectionArray: any): void;
116
- showSubSection(sectionCode: any, subSectionCode: any): any;
117
- hideSubSection(sectionCode: any, subSectionCode: any): any;
118
- showSubSections(sectionCode: any, subSectionArray: any): void;
119
- hideSubSections(sectionCode: any, subSectionArray: any): void;
120
- getTables(): import("../../classes/forms/table/table").RecordTable[];
121
- getTableObject(elementId: any): any;
122
- getTable(tableName: any): any;
123
- showTable(tableName: any): any;
124
- hideTable(tableName: any): any;
125
- showTables(tableArray: any): void;
126
- hideTables(tableArray: any): void;
127
- cleanTable(tableName: any): any;
128
- getTableRecord(tableName: any, recordId: any): any;
132
+ get immutableData(): any;
133
+ get extraInfo(): any;
134
+ get state(): string;
135
+ get formRoute(): string;
136
+ set formRoute(route: string);
137
+ get subject(): string;
129
138
  customPreProcessing(): void;
130
139
  customFormStart(): void;
131
140
  displayActionServerError(): void;
@@ -134,6 +143,43 @@ export declare class BasicFormComponent {
134
143
  showFieldInfo(fieldCode: string): void;
135
144
  showModalDialog(title: any, body: any, options: any, callback?: any, params?: any): void;
136
145
  openUploadDialog(title: any, body: any, options: any, callback?: any, params?: any): void;
146
+ /**
147
+ * @deprecated Use supportState
148
+ */
149
+ supportMode(state: any): boolean;
150
+ /**
151
+ * @deprecated Use getField
152
+ */
153
+ getFieldObject(code: any): FieldDescriptor;
154
+ /**
155
+ * @deprecated Use getAction
156
+ */
157
+ getActionObject(code: any): FormAction;
158
+ /**
159
+ * @deprecated Use getTable
160
+ */
161
+ getTableObject(code: any): RecordTable;
162
+ /**
163
+ * @deprecated Use getSection
164
+ */
165
+ getSectionObject(code: any): any;
166
+ /**
167
+ * @deprecated Use changeState
168
+ */
169
+ changeFormMode(state: any): boolean;
170
+ /**
171
+ * @deprecated Use subject
172
+ */
173
+ getFormSubject(): string;
174
+ /**
175
+ * @deprecated Use subject
176
+ */
177
+ getSubject(): string;
178
+ /**
179
+ * @deprecated Use subject
180
+ */
181
+ getformSubject(): string;
182
+ numSections(): number;
137
183
  subscribeAppEvent(eventName: any, callback: any): void;
138
184
  openForm(name: any, data?: any, backData?: any, cleanStack?: boolean): void;
139
185
  canGoBack(): boolean;
@@ -148,22 +194,12 @@ export declare class BasicFormComponent {
148
194
  extra: any;
149
195
  };
150
196
  setError(errorType: any, errorMessage: any, errorDetail: any): void;
151
- get formManager(): this;
152
197
  resetError(): void;
153
198
  getErrorType(): "";
154
199
  getErrorMessage(): string;
155
200
  getErrorDetail(): string;
156
201
  getErrorCode(): "";
157
- get formRoute(): string;
158
- set formRoute(route: string);
159
- defineFormCode(name: any): void;
160
- getCurrentState(): string;
161
- getCurrentMode(): string;
162
- get formCode(): string;
163
- set formCode(name: string);
164
202
  getFormParameter(name: any): any;
165
- getSubject(): string;
166
- getformSubject(): string;
167
203
  preocessInputParams(params: any): any;
168
204
  subscribeSectionActivation(): void;
169
205
  subscribeFieldsSubjects(): void;
@@ -172,8 +208,9 @@ export declare class BasicFormComponent {
172
208
  formInit(params: any): Promise<void>;
173
209
  checkErrorRecordReceived(recordResponse: any): boolean;
174
210
  errorOccured(): boolean;
175
- changeState(state: any): boolean;
176
- changeFormMode(state: any): boolean;
211
+ /**
212
+ * Soporte manejo de eventos de formulario
213
+ */
177
214
  requestFormAction(actionCode: any, actionSubject?: {}): Promise<any>;
178
215
  updateFormWithServerData(formContent: any): void;
179
216
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuain-ng-forms-lib",
3
- "version": "12.0.20",
3
+ "version": "12.0.24",
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",