tuain-ng-forms-lib 12.0.91 → 13.0.3

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 (75) hide show
  1. package/esm2020/lib/classes/forms/action.mjs +35 -0
  2. package/esm2020/lib/classes/forms/element.mjs +76 -0
  3. package/esm2020/lib/classes/forms/field.mjs +322 -0
  4. package/{esm2015/lib/classes/forms/form.constants.js → esm2020/lib/classes/forms/form.constants.mjs} +0 -0
  5. package/esm2020/lib/classes/forms/form.mjs +420 -0
  6. package/esm2020/lib/classes/forms/section.mjs +128 -0
  7. package/{esm2015/lib/classes/forms/subsection.js → esm2020/lib/classes/forms/subsection.mjs} +0 -0
  8. package/esm2020/lib/classes/forms/table/action.mjs +22 -0
  9. package/esm2020/lib/classes/forms/table/column.mjs +61 -0
  10. package/esm2020/lib/classes/forms/table/row-data.mjs +105 -0
  11. package/esm2020/lib/classes/forms/table/table.mjs +370 -0
  12. package/esm2020/lib/components/elements/action.component.mjs +58 -0
  13. package/esm2020/lib/components/elements/field.component.mjs +90 -0
  14. package/esm2020/lib/components/elements/layout/element.component.mjs +31 -0
  15. package/esm2020/lib/components/elements/layout/form-error.component.mjs +20 -0
  16. package/esm2020/lib/components/elements/layout/form-header.component.mjs +30 -0
  17. package/esm2020/lib/components/elements/layout/section.component.mjs +22 -0
  18. package/esm2020/lib/components/elements/layout/sub-section.component.mjs +24 -0
  19. package/esm2020/lib/components/elements/tables/table-record-action.component.mjs +40 -0
  20. package/esm2020/lib/components/elements/tables/table-record-field.component.mjs +25 -0
  21. package/esm2020/lib/components/elements/tables/table.component.mjs +95 -0
  22. package/esm2020/lib/components/forms/basic-form.mjs +1278 -0
  23. package/{esm2015/lib/services/event-manager.service.js → esm2020/lib/services/event-manager.service.mjs} +0 -0
  24. package/{esm2015/lib/services/file-manager.service.js → esm2020/lib/services/file-manager.service.mjs} +0 -0
  25. package/esm2020/lib/services/form-manager.service.mjs +80 -0
  26. package/esm2020/lib/tuain-ng-forms-lib.module.mjs +73 -0
  27. package/esm2020/public-api.mjs +19 -0
  28. package/{esm2015/tuain-ng-forms-lib.js → esm2020/tuain-ng-forms-lib.mjs} +0 -0
  29. package/fesm2015/{tuain-ng-forms-lib.js → tuain-ng-forms-lib.mjs} +239 -154
  30. package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -0
  31. package/fesm2020/tuain-ng-forms-lib.mjs +3476 -0
  32. package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -0
  33. package/lib/classes/forms/form.d.ts +20 -20
  34. package/lib/classes/forms/table/row-data.d.ts +1 -1
  35. package/lib/components/elements/action.component.d.ts +3 -0
  36. package/lib/components/elements/field.component.d.ts +3 -0
  37. package/lib/components/elements/layout/element.component.d.ts +3 -0
  38. package/lib/components/elements/layout/form-error.component.d.ts +3 -0
  39. package/lib/components/elements/layout/form-header.component.d.ts +3 -0
  40. package/lib/components/elements/layout/section.component.d.ts +3 -0
  41. package/lib/components/elements/layout/sub-section.component.d.ts +3 -0
  42. package/lib/components/elements/tables/table-record-action.component.d.ts +3 -0
  43. package/lib/components/elements/tables/table-record-field.component.d.ts +3 -0
  44. package/lib/components/elements/tables/table.component.d.ts +6 -3
  45. package/lib/components/forms/basic-form.d.ts +30 -27
  46. package/lib/tuain-ng-forms-lib.module.d.ts +18 -0
  47. package/package.json +26 -12
  48. package/tuain-ng-forms-lib.d.ts +1 -0
  49. package/bundles/tuain-ng-forms-lib.umd.js +0 -4976
  50. package/bundles/tuain-ng-forms-lib.umd.js.map +0 -1
  51. package/esm2015/lib/classes/forms/action.js +0 -36
  52. package/esm2015/lib/classes/forms/element.js +0 -77
  53. package/esm2015/lib/classes/forms/field.js +0 -328
  54. package/esm2015/lib/classes/forms/form.js +0 -427
  55. package/esm2015/lib/classes/forms/section.js +0 -129
  56. package/esm2015/lib/classes/forms/table/action.js +0 -23
  57. package/esm2015/lib/classes/forms/table/column.js +0 -64
  58. package/esm2015/lib/classes/forms/table/row-data.js +0 -104
  59. package/esm2015/lib/classes/forms/table/table.js +0 -375
  60. package/esm2015/lib/components/elements/action.component.js +0 -54
  61. package/esm2015/lib/components/elements/field.component.js +0 -89
  62. package/esm2015/lib/components/elements/layout/element.component.js +0 -29
  63. package/esm2015/lib/components/elements/layout/form-error.component.js +0 -15
  64. package/esm2015/lib/components/elements/layout/form-header.component.js +0 -23
  65. package/esm2015/lib/components/elements/layout/section.component.js +0 -18
  66. package/esm2015/lib/components/elements/layout/sub-section.component.js +0 -19
  67. package/esm2015/lib/components/elements/tables/table-record-action.component.js +0 -35
  68. package/esm2015/lib/components/elements/tables/table-record-field.component.js +0 -20
  69. package/esm2015/lib/components/elements/tables/table.component.js +0 -88
  70. package/esm2015/lib/components/forms/basic-form.js +0 -1390
  71. package/esm2015/lib/services/form-manager.service.js +0 -83
  72. package/esm2015/lib/tuain-ng-forms-lib.module.js +0 -42
  73. package/esm2015/public-api.js +0 -16
  74. package/fesm2015/tuain-ng-forms-lib.js.map +0 -1
  75. package/tuain-ng-forms-lib.metadata.json +0 -1
@@ -73,23 +73,23 @@ export declare class FormStructureAndData {
73
73
  setFieldRequired(code: string, required: boolean): any;
74
74
  setFieldErrorMessage(code: string, message: string): any;
75
75
  setFieldOptions(code: string, optionsArray: any[], idAttribute: string, nameAttribute: string): any;
76
- getFieldSet(filter: any, inputCodes: string[] | string, secCode?: string, subCode?: string): string[];
77
- applyOnFields(processFunc: any, inputCodes?: string[] | string, secCode?: string, subCode?: string): number;
78
- enableFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
79
- showFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
80
- hideFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
81
- showLabelFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
82
- hideLabelFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
83
- disableFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
84
- cleanFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
85
- tagFieldsWithError(message: string, codes?: string[] | string, secCode?: string, subCode?: string): number;
86
- cleanErrorFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
76
+ getFieldSet(filter: any, inputCodes: string[] | string | null, secCode?: string, subCode?: string): string[];
77
+ applyOnFields(processFunc: any, inputCodes?: string[] | string | null, secCode?: string, subCode?: string): number;
78
+ enableFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
79
+ showFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
80
+ hideFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
81
+ showLabelFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
82
+ hideLabelFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
83
+ disableFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
84
+ cleanFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
85
+ tagFieldsWithError(message: string, codes?: string[] | string | null, secCode?: string, subCode?: string): number;
86
+ cleanErrorFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
87
87
  tagEmptyRequiredFields(message: string, codes?: any, secCode?: string, subCode?: string): boolean;
88
- getRequiredFields(codes?: string[] | string, secCode?: string, subCode?: string): string[];
89
- getRequiredEmptyFields(codes?: string[] | string, secCode?: string, subCode?: string): string[];
90
- getChangedFields(codes?: string[] | string, secCode?: string, subCode?: string): string[];
91
- getFieldsWithValidationIssues(codes?: string[] | string, secCode?: string, subCode?: string): string[];
92
- getFieldsValues(inputCodes?: string[] | string, secCode?: string, subCode?: string): any;
88
+ getRequiredFields(codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
89
+ getRequiredEmptyFields(codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
90
+ getChangedFields(codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
91
+ getFieldsWithValidationIssues(codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
92
+ getFieldsValues(inputCodes?: string[] | string | null, secCode?: string, subCode?: string): any;
93
93
  get actions(): {};
94
94
  getActionsByAttribute(name: string, value: any): FormAction[];
95
95
  getActions(): FormAction[];
@@ -98,7 +98,7 @@ export declare class FormStructureAndData {
98
98
  hideActions(codes: string[] | string): void;
99
99
  enableActions(codes: string[] | string): void;
100
100
  disableActions(codes: string[] | string): void;
101
- execOnActions(codes: string[] | string, functionName: string): void;
101
+ execOnActions(codes: string[] | string | null, functionName: string): void;
102
102
  get tables(): any;
103
103
  getTables(): RecordTable[];
104
104
  getTable(code: string): RecordTable;
@@ -108,7 +108,7 @@ export declare class FormStructureAndData {
108
108
  showTables(codes: string[] | string): void;
109
109
  hideTables(codes: string[] | string): void;
110
110
  cleanTables(codes: string[] | string): void;
111
- execOnTables(codes: string[] | string, functionName: string): void;
111
+ execOnTables(codes: string[] | string | null, functionName: string): void;
112
112
  get sections(): any;
113
113
  getSections(): RecordFormSection[];
114
114
  getSectionsByAttribute(name: any, value: any): RecordFormSection[];
@@ -124,8 +124,8 @@ export declare class FormStructureAndData {
124
124
  getSectionActions(code: any): FormAction[];
125
125
  getSectionActionNames(code: any): string[];
126
126
  activateSection(code: string): void;
127
- execOnSections(codes: string[] | string, functionName: string): void;
128
- execOnSubSections(code: string, subNames: string[] | string, functionName: string): void;
127
+ execOnSections(codes: string[] | string | null, functionName: string): void;
128
+ execOnSubSections(code: string, subNames: string[] | string | null, functionName: string): void;
129
129
  /**
130
130
  * Métodos propios de gestión del formulario
131
131
  */
@@ -9,6 +9,6 @@ export declare class TableRecordData {
9
9
  unselect(): void;
10
10
  get recordIdKey(): string;
11
11
  getFieldValue(fieldCode: any): any;
12
- hasPattern(words: any): boolean;
12
+ hasPattern(words: any, columnObj: any): boolean;
13
13
  hasCondition(columnFilters: any): boolean;
14
14
  }
@@ -1,5 +1,6 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { FormAction } from '../../classes/forms/action';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class ActionComponent implements OnInit {
4
5
  formConfig: any;
5
6
  inProgress: boolean;
@@ -15,4 +16,6 @@ export declare class ActionComponent implements OnInit {
15
16
  visibleOnRestriction(): boolean;
16
17
  get visible(): boolean;
17
18
  get disabled(): boolean;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionComponent, "lib-action", never, { "action": "action"; "busy": "busy"; "relatedField": "relatedField"; "state": "state"; "style": "style"; "showLabel": "showLabel"; }, {}, never, ["*"]>;
18
21
  }
@@ -1,5 +1,6 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { FieldDescriptor } from '../../classes/forms/field';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class FieldComponent implements OnInit {
4
5
  formConfig: any;
5
6
  code: string;
@@ -37,4 +38,6 @@ export declare class FieldComponent implements OnInit {
37
38
  numberInputValidation(event: any): boolean;
38
39
  get visible(): boolean;
39
40
  get disabled(): boolean;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponent, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "lib-field", never, { "field": "field"; "state": "state"; }, {}, never, ["*"]>;
40
43
  }
@@ -1,4 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class ElementComponent implements OnInit {
3
4
  formConfig: any;
4
5
  element: any;
@@ -8,4 +9,6 @@ export declare class ElementComponent implements OnInit {
8
9
  start(): void;
9
10
  get visible(): any;
10
11
  get disabled(): boolean;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElementComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "lib-element", never, { "element": "element"; "form": "form"; "state": "state"; }, {}, never, ["*"]>;
11
14
  }
@@ -1,5 +1,8 @@
1
+ import * as i0 from "@angular/core";
1
2
  export declare class FormErrorComponent {
2
3
  errorTitle: any;
3
4
  errorMessage: any;
4
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, ["*"]>;
5
8
  }
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class FormHeaderComponent {
3
4
  formManager: any;
4
5
  goBackAction: boolean;
@@ -6,4 +7,6 @@ export declare class FormHeaderComponent {
6
7
  headerActions: any;
7
8
  goBackEvent: EventEmitter<object>;
8
9
  goBackForm(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormHeaderComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormHeaderComponent, "lib-form-header", never, { "formManager": "formManager"; "goBackAction": "goBackAction"; "showTitle": "showTitle"; "headerActions": "headerActions"; }, { "goBackEvent": "goBackEvent"; }, never, ["*"]>;
9
12
  }
@@ -1,7 +1,10 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class SectionComponent implements OnInit {
3
4
  section: any;
4
5
  formManager: any;
5
6
  ngOnInit(): void;
6
7
  start(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SectionComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "lib-section", never, { "section": "section"; "formManager": "formManager"; }, {}, never, ["*"]>;
7
10
  }
@@ -1,8 +1,11 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class SubSectionComponent implements OnInit {
3
4
  subSection: any;
4
5
  showHeader: any;
5
6
  formManager: any;
6
7
  ngOnInit(): void;
7
8
  start(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubSectionComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubSectionComponent, "lib-subsection", never, { "subSection": "subSection"; "showHeader": "showHeader"; "formManager": "formManager"; }, {}, never, ["*"]>;
8
11
  }
@@ -1,4 +1,5 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class LibTableRecordActionComponent implements OnInit {
3
4
  recordId: any;
4
5
  recordData: any;
@@ -9,4 +10,6 @@ export declare class LibTableRecordActionComponent implements OnInit {
9
10
  start(): void;
10
11
  onActivate(): void;
11
12
  class(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibTableRecordActionComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibTableRecordActionComponent, "lib-table-record-action", never, { "recordId": "recordId"; "recordData": "recordData"; "action": "action"; }, { "actionSelected": "actionSelected"; }, never, ["*"]>;
12
15
  }
@@ -1,8 +1,11 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class LibTableRecordFieldComponent implements OnInit {
3
4
  fieldCode: any;
4
5
  fieldType: any;
5
6
  fieldValue: any;
6
7
  ngOnInit(): void;
7
8
  start(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibTableRecordFieldComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibTableRecordFieldComponent, "lib-table-record-field", never, { "fieldCode": "fieldCode"; "fieldType": "fieldType"; "fieldValue": "fieldValue"; }, {}, never, ["*"]>;
8
11
  }
@@ -2,6 +2,7 @@ import { OnInit } from '@angular/core';
2
2
  import { TableRecordData } from '../../../classes/forms/table/row-data';
3
3
  import { TableActionEvent } from '../../../classes/forms/table/table';
4
4
  import { RecordTable } from '../../../classes/forms/table/table';
5
+ import * as i0 from "@angular/core";
5
6
  export declare class LibTableComponent implements OnInit {
6
7
  formConfig: any;
7
8
  globalFilterString: string;
@@ -36,9 +37,11 @@ export declare class LibTableComponent implements OnInit {
36
37
  tableSelectionToggle(recordId: any): void;
37
38
  toggleSelectAll(): boolean;
38
39
  globalFilterCompleted(): void;
39
- changePage(requestedPage: any): void;
40
- tableColumnSort(columnName: any, direction?: any): void;
40
+ changePage(requestedPage: number): void;
41
+ tableColumnSort(columnName: string, direction?: any): void;
41
42
  globalFilterChanged(): void;
42
- syncAttribute(name: any, value: any): boolean;
43
+ syncAttribute(name: string, value: any): boolean;
43
44
  filterHasChanged(column: any, values: any): void;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibTableComponent, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibTableComponent, "lib-table", never, { "table": "table"; "tableRecords": "tableRecords"; "disabled": "disabled"; "state": "state"; "waiting": "waiting"; }, {}, never, ["*"]>;
44
47
  }
@@ -7,6 +7,7 @@ import { FieldDescriptor, FieldOption } from '../../classes/forms/field';
7
7
  import { RecordTable } from '../../classes/forms/table/table';
8
8
  import { RecordFormSection } from '../../classes/forms/section';
9
9
  import { RecordFormSubSection } from '../../classes/forms/subsection';
10
+ import * as i0 from "@angular/core";
10
11
  export declare class BasicFormComponent {
11
12
  protected formManagerService: LibFormManagerService;
12
13
  protected _eventManager: LibEventManagerService;
@@ -69,30 +70,30 @@ export declare class BasicFormComponent {
69
70
  setFieldError(code: string, errorCode: string, message: string, type?: string): any;
70
71
  setFieldIntrinsicErrorMessage(code: string, message: string): any;
71
72
  setFieldOptions(code: any, optionsArray: any, idAttribute: any, nameAttribute: any): any;
72
- getFieldSet(filterFunc?: any, codes?: string[] | string, secCode?: string, subCode?: string): string[];
73
- applyOnFields(processFunc: any, codes?: string[] | string, secCode?: string, subCode?: string): number;
73
+ getFieldSet(filterFunc?: any, codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
74
+ applyOnFields(processFunc: any, codes?: string[] | string | null, secCode?: string, subCode?: string): number;
74
75
  applyProcessToAllFields(processFunc: any): number;
75
- cleanFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
76
- getRequiredFields(codes?: string[] | string, secCode?: string, subCode?: string): string[];
77
- getRequiredEmptyFields(codes?: string[] | string, secCode?: string, subCode?: string): string[];
78
- getChangedFields(codes?: string[] | string, secCode?: string, subCode?: string): string[];
79
- getFieldsWithValidationIssues(codes?: string[] | string, secCode?: string, subCode?: string): string[];
80
- tagFieldsWithError(errorMessage: any, codes?: string[] | string, secCode?: string, subCode?: string): number;
81
- cleanErrorFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
82
- showLabelFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
83
- hideLabelFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
84
- enableFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
85
- disableFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
76
+ cleanFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
77
+ getRequiredFields(codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
78
+ getRequiredEmptyFields(codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
79
+ getChangedFields(codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
80
+ getFieldsWithValidationIssues(codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
81
+ tagFieldsWithError(errorMessage: string, codes?: string[] | string | null, secCode?: string, subCode?: string): number;
82
+ cleanErrorFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
83
+ showLabelFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
84
+ hideLabelFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
85
+ enableFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
86
+ disableFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
86
87
  /**
87
88
  * @deprecated Use enableFields
88
89
  */
89
- enableEditFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
90
+ enableEditFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
90
91
  /**
91
92
  * @deprecated Use disableFields
92
93
  */
93
- disableEditFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
94
- showFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
95
- hideFields(codes?: string[] | string, secCode?: string, subCode?: string): number;
94
+ disableEditFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
95
+ showFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
96
+ hideFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
96
97
  getActionsByAttribute(name: string, value: any): FormAction[];
97
98
  getHeaderActions(): FormAction[];
98
99
  getAction(actionCode: string): FormAction;
@@ -204,7 +205,7 @@ export declare class BasicFormComponent {
204
205
  getErrorDetail(): string;
205
206
  getErrorCode(): string;
206
207
  getFormParameter(name: string): string;
207
- preocessInputParams(params: any): string;
208
+ preocessInputParams(params: any): string | null;
208
209
  subscribeSectionActivation(): void;
209
210
  subscribeFieldsSubjects(): void;
210
211
  subscribeActionSubjects(): void;
@@ -220,10 +221,10 @@ export declare class BasicFormComponent {
220
221
  /**
221
222
  * Manejo de event handlers para acciones sobre el formulario
222
223
  */
223
- addSectionActivation(codes: string[] | string, callbackMethod: any): void;
224
- addSectionInactivation(codes: string[] | string, callbackMethod: any): void;
225
- addActionMethodStart(codes: string[] | string, callbackMethod: any): void;
226
- addActionMethodFinish(codes: string[] | string, callbackMethod: any): void;
224
+ addSectionActivation(codes: string[] | string | null, callbackMethod: any): void;
225
+ addSectionInactivation(codes: string[] | string | null, callbackMethod: any): void;
226
+ addActionMethodStart(codes: string[] | string | null, callbackMethod: any): void;
227
+ addActionMethodFinish(codes: string[] | string | null, callbackMethod: any): void;
227
228
  launchSectionActivation(code: string): Promise<void>;
228
229
  launchSectionInactivation(code: string): Promise<void>;
229
230
  startAction(code: string): Promise<void>;
@@ -233,9 +234,9 @@ export declare class BasicFormComponent {
233
234
  /**
234
235
  * Manejadores de eventos para validaciones sobre campos
235
236
  */
236
- addFieldInputValidation(codes: string[] | string, callbackMethod: any): void;
237
- addFieldValidationStart(codes: string[] | string, callbackMethod: any): void;
238
- addFieldValidationFinish(codes: string[] | string, callbackMethod: any): void;
237
+ addFieldInputValidation(codes: string[] | string | null, callbackMethod: any): void;
238
+ addFieldValidationStart(codes: string[] | string | null, callbackMethod: any): void;
239
+ addFieldValidationFinish(codes: string[] | string | null, callbackMethod: any): void;
239
240
  startFieldInputValidation(fieldCode: string, intrinsicValidation?: boolean): Promise<boolean>;
240
241
  startFieldValidation(fieldCode: string, intrinsicValidation?: boolean): Promise<void>;
241
242
  startServerFieldValidation(inputField: string | FieldDescriptor): Promise<void>;
@@ -266,7 +267,9 @@ export declare class BasicFormComponent {
266
267
  startTableGetData(tableActionEvent: any): Promise<void>;
267
268
  startTableServerGetData(tableActionDetail: any): Promise<void>;
268
269
  finishTableGetData(tableActionDetail: any, actionResult: any): Promise<void>;
269
- checkSectionRequiredFields(sectionCode: string, reqFieldMessage?: any): boolean;
270
- validateSectionConsistency(sectionCode: string, reqFieldMessage?: any): boolean;
270
+ checkSectionRequiredFields(sectionCode: string, reqFieldMessage?: string): boolean;
271
+ validateSectionConsistency(sectionCode: string, reqFieldMessage?: string): boolean;
271
272
  copyTableRecordToFields(tableObj: any, mappingTable?: any): boolean;
273
+ static ɵfac: i0.ɵɵFactoryDeclaration<BasicFormComponent, never>;
274
+ static ɵcmp: i0.ɵɵComponentDeclaration<BasicFormComponent, "ng-component", never, {}, {}, never, ["*"]>;
272
275
  }
@@ -1,2 +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";
1
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>;
2
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuain-ng-forms-lib",
3
- "version": "12.0.91",
3
+ "version": "13.0.3",
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",
@@ -14,19 +14,33 @@
14
14
  "Forms",
15
15
  "Angular"
16
16
  ],
17
- "dependencies": {
18
- "tslib": "^2.0.0"
19
- },
20
17
  "peerDependencies": {
21
- "@angular/common": "~12.2.6",
22
- "@angular/core": "~12.2.6"
18
+ "@angular/common": "^13.3.0",
19
+ "@angular/core": "^13.3.0"
23
20
  },
24
- "main": "bundles/tuain-ng-forms-lib.umd.js",
25
- "module": "fesm2015/tuain-ng-forms-lib.js",
26
- "es2015": "fesm2015/tuain-ng-forms-lib.js",
27
- "esm2015": "esm2015/tuain-ng-forms-lib.js",
28
- "fesm2015": "fesm2015/tuain-ng-forms-lib.js",
21
+ "dependencies": {
22
+ "nanoid": "^3.3.2",
23
+ "tslib": "^2.3.0",
24
+ "yn": "^5.0.0"
25
+ },
26
+ "module": "fesm2015/tuain-ng-forms-lib.mjs",
27
+ "es2020": "fesm2020/tuain-ng-forms-lib.mjs",
28
+ "esm2020": "esm2020/tuain-ng-forms-lib.mjs",
29
+ "fesm2020": "fesm2020/tuain-ng-forms-lib.mjs",
30
+ "fesm2015": "fesm2015/tuain-ng-forms-lib.mjs",
29
31
  "typings": "tuain-ng-forms-lib.d.ts",
30
- "metadata": "tuain-ng-forms-lib.metadata.json",
32
+ "exports": {
33
+ "./package.json": {
34
+ "default": "./package.json"
35
+ },
36
+ ".": {
37
+ "types": "./tuain-ng-forms-lib.d.ts",
38
+ "esm2020": "./esm2020/tuain-ng-forms-lib.mjs",
39
+ "es2020": "./fesm2020/tuain-ng-forms-lib.mjs",
40
+ "es2015": "./fesm2015/tuain-ng-forms-lib.mjs",
41
+ "node": "./fesm2015/tuain-ng-forms-lib.mjs",
42
+ "default": "./fesm2020/tuain-ng-forms-lib.mjs"
43
+ }
44
+ },
31
45
  "sideEffects": false
32
46
  }
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="tuain-ng-forms-lib" />
4
5
  export * from './public-api';