tuain-ng-forms-lib 15.2.12 → 17.0.0

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/esm2022/lib/classes/forms/action.mjs +78 -0
  2. package/esm2022/lib/classes/forms/element.mjs +18 -0
  3. package/esm2022/lib/classes/forms/field.mjs +458 -0
  4. package/esm2022/lib/classes/forms/form.mjs +581 -0
  5. package/esm2022/lib/classes/forms/piece-propagate.mjs +39 -0
  6. package/esm2022/lib/classes/forms/piece.mjs +126 -0
  7. package/esm2022/lib/classes/forms/section.mjs +139 -0
  8. package/esm2022/lib/classes/forms/subsection.mjs +81 -0
  9. package/esm2022/lib/classes/forms/table/action.mjs +38 -0
  10. package/esm2022/lib/classes/forms/table/column.mjs +74 -0
  11. package/esm2022/lib/classes/forms/table/row-data.mjs +116 -0
  12. package/esm2022/lib/classes/forms/table/table.mjs +481 -0
  13. package/esm2022/lib/components/elements/action.component.mjs +52 -0
  14. package/esm2022/lib/components/elements/field.component.mjs +112 -0
  15. package/esm2022/lib/components/elements/layout/element.component.mjs +21 -0
  16. package/esm2022/lib/components/elements/layout/form-error.component.mjs +23 -0
  17. package/esm2022/lib/components/elements/layout/form-header.component.mjs +23 -0
  18. package/esm2022/lib/components/elements/layout/piece.component.mjs +40 -0
  19. package/esm2022/lib/components/elements/layout/section.component.mjs +40 -0
  20. package/esm2022/lib/components/elements/layout/sub-section.component.mjs +40 -0
  21. package/esm2022/lib/components/elements/tables/table-record-action.component.mjs +67 -0
  22. package/esm2022/lib/components/elements/tables/table-record-field.component.mjs +31 -0
  23. package/esm2022/lib/components/elements/tables/table.component.mjs +95 -0
  24. package/esm2022/lib/components/forms/basic-form.mjs +1314 -0
  25. package/esm2022/lib/services/event-manager.service.mjs +43 -0
  26. package/esm2022/lib/services/form-manager.service.mjs +81 -0
  27. package/{esm2020 → esm2022}/lib/tuain-ng-forms-lib.module.mjs +29 -29
  28. package/{fesm2020 → fesm2022}/tuain-ng-forms-lib.mjs +331 -260
  29. package/{fesm2020 → fesm2022}/tuain-ng-forms-lib.mjs.map +1 -1
  30. package/lib/components/elements/action.component.d.ts +1 -1
  31. package/lib/components/elements/field.component.d.ts +1 -1
  32. package/lib/components/elements/layout/element.component.d.ts +1 -1
  33. package/lib/components/elements/layout/form-error.component.d.ts +1 -1
  34. package/lib/components/elements/layout/form-header.component.d.ts +1 -1
  35. package/lib/components/elements/layout/piece.component.d.ts +1 -1
  36. package/lib/components/elements/layout/section.component.d.ts +1 -1
  37. package/lib/components/elements/layout/sub-section.component.d.ts +1 -1
  38. package/lib/components/elements/tables/table-record-action.component.d.ts +1 -1
  39. package/lib/components/elements/tables/table-record-field.component.d.ts +1 -1
  40. package/lib/components/elements/tables/table.component.d.ts +1 -1
  41. package/lib/components/forms/basic-form.d.ts +1 -1
  42. package/package.json +7 -13
  43. package/esm2020/lib/classes/forms/action.mjs +0 -72
  44. package/esm2020/lib/classes/forms/element.mjs +0 -18
  45. package/esm2020/lib/classes/forms/field.mjs +0 -454
  46. package/esm2020/lib/classes/forms/form.mjs +0 -574
  47. package/esm2020/lib/classes/forms/piece-propagate.mjs +0 -38
  48. package/esm2020/lib/classes/forms/piece.mjs +0 -123
  49. package/esm2020/lib/classes/forms/section.mjs +0 -138
  50. package/esm2020/lib/classes/forms/subsection.mjs +0 -81
  51. package/esm2020/lib/classes/forms/table/action.mjs +0 -30
  52. package/esm2020/lib/classes/forms/table/column.mjs +0 -74
  53. package/esm2020/lib/classes/forms/table/row-data.mjs +0 -116
  54. package/esm2020/lib/classes/forms/table/table.mjs +0 -464
  55. package/esm2020/lib/components/elements/action.component.mjs +0 -55
  56. package/esm2020/lib/components/elements/field.component.mjs +0 -99
  57. package/esm2020/lib/components/elements/layout/element.component.mjs +0 -20
  58. package/esm2020/lib/components/elements/layout/form-error.component.mjs +0 -20
  59. package/esm2020/lib/components/elements/layout/form-header.component.mjs +0 -24
  60. package/esm2020/lib/components/elements/layout/piece.component.mjs +0 -40
  61. package/esm2020/lib/components/elements/layout/section.component.mjs +0 -39
  62. package/esm2020/lib/components/elements/layout/sub-section.component.mjs +0 -39
  63. package/esm2020/lib/components/elements/tables/table-record-action.component.mjs +0 -67
  64. package/esm2020/lib/components/elements/tables/table-record-field.component.mjs +0 -30
  65. package/esm2020/lib/components/elements/tables/table.component.mjs +0 -92
  66. package/esm2020/lib/components/forms/basic-form.mjs +0 -1310
  67. package/esm2020/lib/services/event-manager.service.mjs +0 -43
  68. package/esm2020/lib/services/form-manager.service.mjs +0 -80
  69. package/fesm2015/tuain-ng-forms-lib.mjs +0 -4305
  70. package/fesm2015/tuain-ng-forms-lib.mjs.map +0 -1
  71. /package/{esm2020 → esm2022}/lib/classes/forms/form.constants.mjs +0 -0
  72. /package/{esm2020 → esm2022}/lib/services/file-manager.service.mjs +0 -0
  73. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  74. /package/{esm2020 → esm2022}/tuain-ng-forms-lib.mjs +0 -0
  75. /package/{tuain-ng-forms-lib.d.ts → index.d.ts} +0 -0
@@ -9,11 +9,11 @@ import { FormsModule } from '@angular/forms';
9
9
 
10
10
  const CUSTOM_ATTRIBUTES = 'customAttributes';
11
11
  class PieceComponent {
12
- constructor() {
13
- this.visible = true;
14
- this.disabled = false;
15
- this.customAttributes = {};
16
- }
12
+ form;
13
+ formConfig;
14
+ visible = true;
15
+ disabled = false;
16
+ customAttributes = {};
17
17
  setForm(form) { this.form = form; }
18
18
  defaultProcessAttributeChange(attribute, value) {
19
19
  if (!attribute || attribute.trim() === '') {
@@ -34,10 +34,10 @@ class PieceComponent {
34
34
  }
35
35
  customProcessAttributeChange(attribute, value) { }
36
36
  customAttributeChange(subAttribute, value) { }
37
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PieceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
38
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: PieceComponent, selector: "lib-piece", ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
37
39
  }
38
- PieceComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: PieceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
39
- PieceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: PieceComponent, selector: "lib-piece", ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: PieceComponent, decorators: [{
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PieceComponent, decorators: [{
41
41
  type: Component,
42
42
  args: [{
43
43
  selector: 'lib-piece',
@@ -46,13 +46,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
46
46
  }] });
47
47
 
48
48
  class ElementComponent extends PieceComponent {
49
+ element;
49
50
  start() {
50
51
  this.setForm(this.element?._form);
51
52
  }
53
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
54
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ElementComponent, selector: "lib-element", inputs: { element: "element" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
52
55
  }
53
- ElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: ElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
54
- ElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: ElementComponent, selector: "lib-element", inputs: { element: "element" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: ElementComponent, decorators: [{
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ElementComponent, decorators: [{
56
57
  type: Component,
57
58
  args: [{
58
59
  selector: 'lib-element',
@@ -63,11 +64,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
63
64
  }] } });
64
65
 
65
66
  class ActionComponent extends ElementComponent {
66
- constructor() {
67
- super(...arguments);
68
- this.inProgress = false;
69
- this.action = null;
70
- }
67
+ inProgress = false;
68
+ action = null;
71
69
  ngOnInit() {
72
70
  if (!this.action) {
73
71
  return;
@@ -101,10 +99,10 @@ class ActionComponent extends ElementComponent {
101
99
  this.action.notifyActivation();
102
100
  }
103
101
  }
102
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ActionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
103
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ActionComponent, selector: "lib-action", inputs: { action: "action" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
104
104
  }
105
- ActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: ActionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
106
- ActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: ActionComponent, selector: "lib-action", inputs: { action: "action" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: ActionComponent, decorators: [{
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ActionComponent, decorators: [{
108
106
  type: Component,
109
107
  args: [{
110
108
  selector: 'lib-action',
@@ -117,15 +115,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
117
115
  const VALUE = 'value';
118
116
  const FOCUS = 'focus';
119
117
  class FieldComponent extends ElementComponent {
120
- constructor() {
121
- super(...arguments);
122
- // Atributos obtenidos estáticamente
123
- this.code = '';
124
- this.info = '';
125
- this.alignment = '';
126
- this.tooltip = '';
127
- this.field = null;
128
- }
118
+ // Atributos obtenidos estáticamente
119
+ code = '';
120
+ value;
121
+ info = '';
122
+ alignment = '';
123
+ tooltip = '';
124
+ // Atributos actualizados por subscripción
125
+ minLength;
126
+ maxLength;
127
+ minValue;
128
+ maxValue;
129
+ onValidation;
130
+ captureType;
131
+ title;
132
+ type;
133
+ visibleLabel;
134
+ required;
135
+ options;
136
+ errorType;
137
+ errorCode;
138
+ errorMessage;
139
+ field = null;
129
140
  ngOnInit() {
130
141
  if (!this.field) {
131
142
  return;
@@ -197,10 +208,10 @@ class FieldComponent extends ElementComponent {
197
208
  const k = event.charCode;
198
209
  return (k > 47 && k < 58);
199
210
  }
211
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
212
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FieldComponent, selector: "lib-field", inputs: { field: "field" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
200
213
  }
201
- FieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: FieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
202
- FieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: FieldComponent, selector: "lib-field", inputs: { field: "field" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
203
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: FieldComponent, decorators: [{
214
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FieldComponent, decorators: [{
204
215
  type: Component,
205
216
  args: [{
206
217
  selector: 'lib-field',
@@ -211,10 +222,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
211
222
  }] } });
212
223
 
213
224
  class FormErrorComponent {
225
+ errorTitle;
226
+ errorMessage;
227
+ errorType;
228
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
229
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FormErrorComponent, selector: "lib-form-error", inputs: { errorTitle: "errorTitle", errorMessage: "errorMessage", errorType: "errorType" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
214
230
  }
215
- FormErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: FormErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
216
- FormErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: FormErrorComponent, selector: "lib-form-error", inputs: { errorTitle: "errorTitle", errorMessage: "errorMessage", errorType: "errorType" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: FormErrorComponent, decorators: [{
231
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormErrorComponent, decorators: [{
218
232
  type: Component,
219
233
  args: [{
220
234
  selector: 'lib-form-error',
@@ -229,16 +243,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
229
243
  }] } });
230
244
 
231
245
  class FormHeaderComponent {
232
- constructor() {
233
- this.goBackEvent = new EventEmitter();
234
- }
246
+ form;
247
+ goBackEvent = new EventEmitter();
235
248
  goBackForm() {
236
249
  this.goBackEvent.emit();
237
250
  }
251
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
252
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FormHeaderComponent, selector: "lib-form-header", inputs: { form: "form" }, outputs: { goBackEvent: "goBackEvent" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
238
253
  }
239
- FormHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: FormHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
240
- FormHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: FormHeaderComponent, selector: "lib-form-header", inputs: { form: "form" }, outputs: { goBackEvent: "goBackEvent" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
241
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: FormHeaderComponent, decorators: [{
254
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormHeaderComponent, decorators: [{
242
255
  type: Component,
243
256
  args: [{
244
257
  selector: 'lib-form-header',
@@ -251,6 +264,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
251
264
  }] } });
252
265
 
253
266
  class SectionComponent extends PieceComponent {
267
+ section;
254
268
  ngOnInit() {
255
269
  this.formConfig = this.section?._formConfig;
256
270
  const mapping = this.formConfig?.sectionPropagateAttributes;
@@ -273,10 +287,10 @@ class SectionComponent extends PieceComponent {
273
287
  start() {
274
288
  this.setForm(this.section?._form);
275
289
  }
290
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
291
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SectionComponent, selector: "lib-section", inputs: { section: "section" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
276
292
  }
277
- SectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: SectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
278
- SectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: SectionComponent, selector: "lib-section", inputs: { section: "section" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
279
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: SectionComponent, decorators: [{
293
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SectionComponent, decorators: [{
280
294
  type: Component,
281
295
  args: [{
282
296
  selector: 'lib-section',
@@ -287,6 +301,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
287
301
  }] } });
288
302
 
289
303
  class SubSectionComponent extends PieceComponent {
304
+ subSection;
290
305
  ngOnInit() {
291
306
  this.formConfig = this.subSection?._formConfig;
292
307
  const mapping = this.formConfig?.subSectionPropagateAttributes;
@@ -309,10 +324,10 @@ class SubSectionComponent extends PieceComponent {
309
324
  start() {
310
325
  this.setForm(this.subSection?._form);
311
326
  }
327
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SubSectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
328
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SubSectionComponent, selector: "lib-subsection", inputs: { subSection: "subSection" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
312
329
  }
313
- SubSectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: SubSectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
314
- SubSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: SubSectionComponent, selector: "lib-subsection", inputs: { subSection: "subSection" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
315
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: SubSectionComponent, decorators: [{
330
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SubSectionComponent, decorators: [{
316
331
  type: Component,
317
332
  args: [{
318
333
  selector: 'lib-subsection',
@@ -324,11 +339,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
324
339
 
325
340
  const INLINE_ACTION$1 = 'INLINE';
326
341
  class LibTableRecordActionComponent extends PieceComponent {
327
- constructor() {
328
- super(...arguments);
329
- this.isVisible = true;
330
- this.actionSelected = new EventEmitter();
331
- }
342
+ isVisible = true;
343
+ recordId;
344
+ recordData;
345
+ action;
346
+ actionSelected = new EventEmitter();
332
347
  ngOnInit() {
333
348
  this.formConfig = this.action?._formConfig;
334
349
  const mapping = this.formConfig?.actionPropagateAttributes;
@@ -366,10 +381,10 @@ class LibTableRecordActionComponent extends PieceComponent {
366
381
  this.actionSelected.emit(tableEvent);
367
382
  }
368
383
  class() { }
384
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibTableRecordActionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
385
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LibTableRecordActionComponent, selector: "lib-table-record-action", inputs: { recordId: "recordId", recordData: "recordData", action: "action" }, outputs: { actionSelected: "actionSelected" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
369
386
  }
370
- LibTableRecordActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LibTableRecordActionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
371
- LibTableRecordActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: LibTableRecordActionComponent, selector: "lib-table-record-action", inputs: { recordId: "recordId", recordData: "recordData", action: "action" }, outputs: { actionSelected: "actionSelected" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
372
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LibTableRecordActionComponent, decorators: [{
387
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibTableRecordActionComponent, decorators: [{
373
388
  type: Component,
374
389
  args: [{
375
390
  selector: 'lib-table-record-action',
@@ -387,17 +402,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
387
402
  }] } });
388
403
 
389
404
  class LibTableRecordFieldComponent {
390
- constructor() {
391
- this.column = null;
392
- }
405
+ fieldCode;
406
+ fieldType;
407
+ fieldValue;
408
+ column = null;
393
409
  ngOnInit() {
394
410
  this.start();
395
411
  }
396
412
  start() { }
413
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibTableRecordFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
414
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LibTableRecordFieldComponent, selector: "lib-table-record-field", inputs: { fieldCode: "fieldCode", fieldType: "fieldType", fieldValue: "fieldValue", column: "column" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
397
415
  }
398
- LibTableRecordFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LibTableRecordFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
399
- LibTableRecordFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: LibTableRecordFieldComponent, selector: "lib-table-record-field", inputs: { fieldCode: "fieldCode", fieldType: "fieldType", fieldValue: "fieldValue", column: "column" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
400
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LibTableRecordFieldComponent, decorators: [{
416
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibTableRecordFieldComponent, decorators: [{
401
417
  type: Component,
402
418
  args: [{
403
419
  selector: 'lib-table-record-field',
@@ -415,16 +431,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
415
431
  }] } });
416
432
 
417
433
  class LibTableComponent extends ElementComponent {
418
- constructor() {
419
- super(...arguments);
420
- this.globalFilterString = '';
421
- this.loaded = false;
422
- this.selectable = false;
423
- this.hasActions = false;
424
- this.table = null;
425
- this.visibleRecords = [];
426
- this.waiting = false;
427
- }
434
+ // Atributos sincronizados del objeto
435
+ code;
436
+ globalFilterString = '';
437
+ tableFieldStyles;
438
+ loaded = false;
439
+ selectable = false;
440
+ hasActions = false;
441
+ inlineActions;
442
+ globalActions;
443
+ selectionActions;
444
+ table = null;
445
+ visibleRecords = [];
446
+ waiting = false;
428
447
  ngOnInit() {
429
448
  if (!this.table) {
430
449
  return;
@@ -485,10 +504,10 @@ class LibTableComponent extends ElementComponent {
485
504
  this.table?.addColumnFilter(column.fieldCode, values);
486
505
  }
487
506
  }
507
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
508
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LibTableComponent, selector: "lib-table", inputs: { table: "table", visibleRecords: "visibleRecords", waiting: "waiting" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
488
509
  }
489
- LibTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LibTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
490
- LibTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: LibTableComponent, selector: "lib-table", inputs: { table: "table", visibleRecords: "visibleRecords", waiting: "waiting" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
491
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LibTableComponent, decorators: [{
510
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibTableComponent, decorators: [{
492
511
  type: Component,
493
512
  args: [{
494
513
  selector: 'lib-table',
@@ -530,17 +549,20 @@ const operators = {
530
549
  };
531
550
 
532
551
  class FormPiece {
552
+ _formState = '';
553
+ _visibleForced;
554
+ _isForced;
555
+ _absoluteVisible = true;
556
+ _absoluteDisabled = false;
557
+ _widget = null;
558
+ visibleStates = [];
559
+ enabledStates = [];
560
+ _form = null;
561
+ _formConfig;
562
+ _visible = true;
563
+ _disabled = false;
564
+ customAttributes = {};
533
565
  constructor(pieceDefinition, formConfig) {
534
- this._formState = '';
535
- this._absoluteVisible = true;
536
- this._absoluteDisabled = false;
537
- this._widget = null;
538
- this.visibleStates = [];
539
- this.enabledStates = [];
540
- this._form = null;
541
- this._visible = true;
542
- this._disabled = false;
543
- this.customAttributes = {};
544
566
  this._formConfig = formConfig;
545
567
  this._isForced = false;
546
568
  this._visibleForced = false;
@@ -655,9 +677,10 @@ class FormPiece {
655
677
  const VISIBLE = 'visible';
656
678
  const DISABLED = 'disabled';
657
679
  class FormPiecePropagate extends FormPiece {
680
+ propagationCustomAttributes = [];
681
+ _attributeChange;
658
682
  constructor(pieceDefinition, formConfig) {
659
683
  super(pieceDefinition, formConfig);
660
- this.propagationCustomAttributes = [];
661
684
  this._attributeChange = new BehaviorSubject(null);
662
685
  }
663
686
  get attributeChange() { return this._attributeChange; }
@@ -689,11 +712,11 @@ class FormPiecePropagate extends FormPiece {
689
712
  }
690
713
 
691
714
  class FormElement extends FormPiecePropagate {
715
+ elementType = null;
716
+ ;
692
717
  constructor(elementDefinition, formConfig) {
693
718
  super(elementDefinition, formConfig);
694
- this.elementType = null;
695
719
  }
696
- ;
697
720
  setAttr(attr, value) {
698
721
  const { name: attrName, propagate: name } = attr;
699
722
  this[attrName] = value;
@@ -706,13 +729,19 @@ class FormElement extends FormPiecePropagate {
706
729
 
707
730
  const HEADER = 'HEADER';
708
731
  class FormAction extends FormElement {
732
+ _actionActivated = new Subject();
733
+ actionCode;
734
+ actionName;
735
+ iconName;
736
+ inProgress = false;
737
+ newState;
738
+ backend;
739
+ restrictedOnField = null;
740
+ restrictedOnOperator = null;
741
+ restrictedOnValue = null;
742
+ customValidation;
709
743
  constructor(actionDefinition, formConfig) {
710
744
  super(actionDefinition, formConfig);
711
- this._actionActivated = new Subject();
712
- this.inProgress = false;
713
- this.restrictedOnField = null;
714
- this.restrictedOnOperator = null;
715
- this.restrictedOnValue = null;
716
745
  this.propagationCustomAttributes = this._formConfig?.propagationCustomAttributes?.actions ?? [];
717
746
  this.elementType = elementTypes.action;
718
747
  this.actionCode = actionDefinition.actionCode ? actionDefinition.actionCode.toString() : '';
@@ -816,36 +845,40 @@ const attrs$1 = {
816
845
  _visibleLabel: { name: '_visibleLabel', propagate: 'visibleLabel' },
817
846
  };
818
847
  class FieldDescriptor extends FormElement {
848
+ _editionFinish = new Subject();
849
+ _editionPartial = new Subject();
850
+ _detailRequest = new Subject();
851
+ _errorType = '';
852
+ _errorCode = '';
853
+ _errorMessage = '';
854
+ _intrinsicErrorMessage = '';
855
+ _minValue;
856
+ _maxValue;
857
+ _maxLength = 0;
858
+ _minLength = 0;
859
+ _focus = false;
860
+ _onValidation = false;
861
+ _validateOnServer = false;
862
+ _value;
863
+ _visibleLabel = false;
864
+ _captureType = '';
865
+ _defaultValue = '';
866
+ _defaultEditable = false;
867
+ _externalValue;
868
+ _fieldAlignment = '';
869
+ _fieldInfo = '';
870
+ _fieldRequired = false;
871
+ _fieldTitle = '';
872
+ _fieldType = '';
873
+ _fieldFormat = null;
874
+ _hasChanged = false;
875
+ _outputOnly = false;
876
+ _tooltipText = '';
877
+ _placeholder = '';
878
+ fieldCode = '';
879
+ fieldOptions = null;
819
880
  constructor(inputFieldReceived, formConfig) {
820
881
  super(inputFieldReceived, formConfig);
821
- this._editionFinish = new Subject();
822
- this._editionPartial = new Subject();
823
- this._detailRequest = new Subject();
824
- this._errorType = '';
825
- this._errorCode = '';
826
- this._errorMessage = '';
827
- this._intrinsicErrorMessage = '';
828
- this._maxLength = 0;
829
- this._minLength = 0;
830
- this._focus = false;
831
- this._onValidation = false;
832
- this._validateOnServer = false;
833
- this._visibleLabel = false;
834
- this._captureType = '';
835
- this._defaultValue = '';
836
- this._defaultEditable = false;
837
- this._fieldAlignment = '';
838
- this._fieldInfo = '';
839
- this._fieldRequired = false;
840
- this._fieldTitle = '';
841
- this._fieldType = '';
842
- this._fieldFormat = null;
843
- this._hasChanged = false;
844
- this._outputOnly = false;
845
- this._tooltipText = '';
846
- this._placeholder = '';
847
- this.fieldCode = '';
848
- this.fieldOptions = null;
849
882
  this.propagationCustomAttributes = this._formConfig?.propagationCustomAttributes?.fields ?? [];
850
883
  this.elementType = elementTypes.field;
851
884
  const fld = (inputFieldReceived) ? inputFieldReceived : {};
@@ -1224,20 +1257,20 @@ class FieldDescriptor extends FormElement {
1224
1257
  }
1225
1258
 
1226
1259
  class RecordTableColumn extends FormPiece {
1260
+ fieldCode = '';
1261
+ fieldTitle = '';
1262
+ fieldType = '';
1263
+ fieldAlignment = '';
1264
+ fieldFormat = '';
1265
+ sortable = true;
1266
+ searchable = true;
1267
+ sortDirections = [];
1268
+ // Filtros
1269
+ filterVisible = false;
1270
+ filterDef = null;
1271
+ filterSetup = null;
1227
1272
  constructor(recTableColReceived, formConfig) {
1228
1273
  super(recTableColReceived, formConfig);
1229
- this.fieldCode = '';
1230
- this.fieldTitle = '';
1231
- this.fieldType = '';
1232
- this.fieldAlignment = '';
1233
- this.fieldFormat = '';
1234
- this.sortable = true;
1235
- this.searchable = true;
1236
- this.sortDirections = [];
1237
- // Filtros
1238
- this.filterVisible = false;
1239
- this.filterDef = null;
1240
- this.filterSetup = null;
1241
1274
  this.filterDef = null;
1242
1275
  if (recTableColReceived) {
1243
1276
  this.fieldCode = recTableColReceived.fieldCode;
@@ -1297,11 +1330,19 @@ class RecordTableColumn extends FormPiece {
1297
1330
  }
1298
1331
 
1299
1332
  class TableAction extends FormPiece {
1333
+ actionCode;
1334
+ actionTitle;
1335
+ iconName;
1336
+ actionType;
1337
+ actionClass;
1338
+ stateField;
1339
+ newState;
1340
+ backend;
1341
+ restrictedOnField = null;
1342
+ restrictedOnValue = null;
1343
+ restrictedOnOperator = null;
1300
1344
  constructor(actionDefinition, formConfig) {
1301
1345
  super(actionDefinition, formConfig);
1302
- this.restrictedOnField = null;
1303
- this.restrictedOnValue = null;
1304
- this.restrictedOnOperator = null;
1305
1346
  this.actionCode = actionDefinition.actionCode;
1306
1347
  this.actionTitle = actionDefinition.actionTitle;
1307
1348
  this.iconName = actionDefinition.iconName || this.actionCode;
@@ -1326,10 +1367,10 @@ class TableAction extends FormPiece {
1326
1367
  }
1327
1368
 
1328
1369
  class TableRecordData {
1370
+ recordId = null;
1371
+ selected = false;
1372
+ recordData = {};
1329
1373
  constructor(recordReceived, recordDefinition, selectionFieldName = null) {
1330
- this.recordId = null;
1331
- this.selected = false;
1332
- this.recordData = {};
1333
1374
  const { tableRecordId, recordData } = recordReceived;
1334
1375
  this.recordId = tableRecordId;
1335
1376
  if (!recordDefinition || recordDefinition.length === 0 || !recordData || recordData.length === 0) {
@@ -1458,27 +1499,44 @@ const attrs = {
1458
1499
  visibleRecords: { name: 'visibleRecords', propagate: 'visibleRecords' },
1459
1500
  };
1460
1501
  class RecordTable extends FormElement {
1502
+ _inlineActionTrigger = new Subject();
1503
+ _globalActionTrigger = new Subject();
1504
+ _recordSelectionTrigger = new Subject();
1505
+ _selectionActionTrigger = new Subject();
1506
+ _getDataTrigger = new Subject();
1507
+ _tableColumnObj = {};
1508
+ _appendPages;
1509
+ _actions;
1510
+ _actionsObj = {};
1511
+ // Mecanismos de filtrado nueva versión
1512
+ globalFilterString = '';
1513
+ globalFilterStrings = [];
1514
+ selectedRecords;
1515
+ restrictedId;
1516
+ layout = null;
1517
+ globalSearch;
1518
+ tableRecords;
1519
+ tableRecordObj = {};
1520
+ visibleRecords = null;
1521
+ columns;
1522
+ selectable;
1523
+ selectionBackend;
1524
+ selectionField;
1525
+ allSelected = false;
1526
+ tableCode = '';
1527
+ tableTitle;
1528
+ currentPage;
1529
+ totalPages;
1530
+ requestedPage;
1531
+ recordsPerPage = 10;
1532
+ totalRecordsNumber = 0;
1533
+ recordsNumber = 0;
1534
+ sorting;
1535
+ waiting;
1536
+ clientPaging = true;
1537
+ sortable;
1461
1538
  constructor(tableReceived, formConfig) {
1462
1539
  super(tableReceived, formConfig);
1463
- this._inlineActionTrigger = new Subject();
1464
- this._globalActionTrigger = new Subject();
1465
- this._recordSelectionTrigger = new Subject();
1466
- this._selectionActionTrigger = new Subject();
1467
- this._getDataTrigger = new Subject();
1468
- this._tableColumnObj = {};
1469
- this._actionsObj = {};
1470
- // Mecanismos de filtrado nueva versión
1471
- this.globalFilterString = '';
1472
- this.globalFilterStrings = [];
1473
- this.layout = null;
1474
- this.tableRecordObj = {};
1475
- this.visibleRecords = null;
1476
- this.allSelected = false;
1477
- this.tableCode = '';
1478
- this.recordsPerPage = 10;
1479
- this.totalRecordsNumber = 0;
1480
- this.recordsNumber = 0;
1481
- this.clientPaging = true;
1482
1540
  this.propagationCustomAttributes = this._formConfig?.propagationCustomAttributes?.tables ?? [];
1483
1541
  this.elementType = elementTypes.table;
1484
1542
  this.waiting = false;
@@ -1899,18 +1957,18 @@ class RecordTable extends FormElement {
1899
1957
  }
1900
1958
 
1901
1959
  class RecordFormSubSection extends FormPiecePropagate {
1960
+ _customRender = null;
1961
+ subsectionId = null;
1962
+ subsectionCode = null;
1963
+ subsectionTitle = null;
1964
+ subSectionElements = [];
1965
+ subSectionFields = [];
1966
+ subSectionTables = [];
1967
+ subSectionActions = [];
1968
+ elementsArray = {};
1969
+ active = false;
1902
1970
  constructor(subsectionReceived, formObject, formConfig) {
1903
1971
  super(subsectionReceived, formConfig);
1904
- this._customRender = null;
1905
- this.subsectionId = null;
1906
- this.subsectionCode = null;
1907
- this.subsectionTitle = null;
1908
- this.subSectionElements = [];
1909
- this.subSectionFields = [];
1910
- this.subSectionTables = [];
1911
- this.subSectionActions = [];
1912
- this.elementsArray = {};
1913
- this.active = false;
1914
1972
  this.propagationCustomAttributes = this._formConfig?.propagationCustomAttributes?.subsections ?? [];
1915
1973
  if (!subsectionReceived) {
1916
1974
  return;
@@ -1979,16 +2037,17 @@ class RecordFormSubSection extends FormPiecePropagate {
1979
2037
 
1980
2038
  const ACTIVE$1 = 'active';
1981
2039
  class RecordFormSection extends FormPiecePropagate {
2040
+ _activation = new Subject();
2041
+ _inactivation = new Subject();
2042
+ active = false;
2043
+ sectionId = null;
2044
+ sectionCode = null;
2045
+ sectionTitle = null;
2046
+ subSections = [];
2047
+ subSectionsObj;
2048
+ _exclusiveSubSectionsByAttr = {};
1982
2049
  constructor(sectionReceived, formObject, formConfig) {
1983
2050
  super(sectionReceived, formConfig);
1984
- this._activation = new Subject();
1985
- this._inactivation = new Subject();
1986
- this.active = false;
1987
- this.sectionId = null;
1988
- this.sectionCode = null;
1989
- this.sectionTitle = null;
1990
- this.subSections = [];
1991
- this._exclusiveSubSectionsByAttr = {};
1992
2051
  this.propagationCustomAttributes = this._formConfig?.propagationCustomAttributes?.sections ?? [];
1993
2052
  if (!sectionReceived) {
1994
2053
  return;
@@ -2122,19 +2181,26 @@ const alwaysVisible = 'ALWAYS';
2122
2181
  const neverVisible = 'NONE';
2123
2182
  const onStatesVisible = 'ONSTATES';
2124
2183
  class FormStructureAndData {
2184
+ _stateChange = new Subject();
2185
+ formConfig;
2186
+ state;
2187
+ name = '';
2188
+ title = '';
2189
+ subject = null;
2190
+ stateFlow;
2191
+ fields = {};
2192
+ actions = {};
2193
+ tables = {};
2194
+ sections = {};
2195
+ fieldArray;
2196
+ actionArray;
2197
+ tableArray;
2198
+ sectionArray;
2199
+ _immutableData = {};
2200
+ _extraInfo = {};
2201
+ _exclusiveSectionsByAttr = {};
2202
+ customAttributes = {};
2125
2203
  constructor() {
2126
- this._stateChange = new Subject();
2127
- this.name = '';
2128
- this.title = '';
2129
- this.subject = null;
2130
- this.fields = {};
2131
- this.actions = {};
2132
- this.tables = {};
2133
- this.sections = {};
2134
- this._immutableData = {};
2135
- this._extraInfo = {};
2136
- this._exclusiveSectionsByAttr = {};
2137
- this.customAttributes = {};
2138
2204
  this.state = '';
2139
2205
  this.actionArray = [];
2140
2206
  this.fieldArray = [];
@@ -2681,6 +2747,7 @@ class FormStructureAndData {
2681
2747
  }
2682
2748
 
2683
2749
  class LibFormManagerService {
2750
+ pageStack;
2684
2751
  constructor() {
2685
2752
  this.cleanStack();
2686
2753
  }
@@ -2760,9 +2827,9 @@ class LibFormManagerService {
2760
2827
  }
2761
2828
 
2762
2829
  class LibEventManagerService {
2830
+ eventSubjects = {};
2831
+ eventSubjectParams = {};
2763
2832
  constructor(eventSet) {
2764
- this.eventSubjects = {};
2765
- this.eventSubjectParams = {};
2766
2833
  eventSet.forEach((event) => { this.addEventName(event); });
2767
2834
  }
2768
2835
  addEventName(event, rebuild = false) {
@@ -2815,51 +2882,55 @@ const GET_DATA_ACTION = 'GETDATA';
2815
2882
  const SUBJECT = 'subject';
2816
2883
  const TOKEN = 'token';
2817
2884
  class BasicFormComponent extends FormStructureAndData {
2885
+ formManagerService;
2886
+ _eventManager;
2887
+ fileMgmtServices;
2888
+ _controlToken = null;
2889
+ _originToken = null;
2890
+ _formRoute = null;
2891
+ _definitionObtained = false;
2892
+ _notifyFormActivity = true;
2893
+ // Eventos de acciones y campos
2894
+ _formChangeState = [];
2895
+ _formSectionsCanDeactivate = {};
2896
+ _formSectionsActivate = {};
2897
+ _formSectionsInactivate = {};
2898
+ _formActionsStart = {};
2899
+ _formActionsFinish = {};
2900
+ _fieldInputValidation = {};
2901
+ _fieldValidationsStart = {};
2902
+ _fieldValidationsFinish = {};
2903
+ // Callback de acciones de tablas
2904
+ _tableSelectionsStart = {};
2905
+ _tableSelectionsFinish = {};
2906
+ _tableActionsStart = {};
2907
+ _tableActionsFinish = {};
2908
+ _tableGetDataStart = {};
2909
+ _tableGetDataFinish = {};
2910
+ // Errores en procesos
2911
+ _actionServerError = [];
2912
+ _fieldServerError = [];
2913
+ _tableServerError = [];
2914
+ // Datos complementarios del formulario
2915
+ inputDataFields = {};
2916
+ extraData = {};
2917
+ _eventEmiter;
2918
+ enabledSections = [];
2919
+ // Gestión de error
2920
+ _errorType = '';
2921
+ errorCode = '';
2922
+ errorFullCode = '';
2923
+ errorName = '';
2924
+ errorMessage = '';
2925
+ errorDetail = '';
2926
+ // Control de estado
2927
+ visible = false;
2928
+ busy = false;
2818
2929
  constructor(formManagerService, _eventManager, fileMgmtServices) {
2819
2930
  super();
2820
2931
  this.formManagerService = formManagerService;
2821
2932
  this._eventManager = _eventManager;
2822
2933
  this.fileMgmtServices = fileMgmtServices;
2823
- this._controlToken = null;
2824
- this._originToken = null;
2825
- this._formRoute = null;
2826
- this._definitionObtained = false;
2827
- this._notifyFormActivity = true;
2828
- // Eventos de acciones y campos
2829
- this._formChangeState = [];
2830
- this._formSectionsCanDeactivate = {};
2831
- this._formSectionsActivate = {};
2832
- this._formSectionsInactivate = {};
2833
- this._formActionsStart = {};
2834
- this._formActionsFinish = {};
2835
- this._fieldInputValidation = {};
2836
- this._fieldValidationsStart = {};
2837
- this._fieldValidationsFinish = {};
2838
- // Callback de acciones de tablas
2839
- this._tableSelectionsStart = {};
2840
- this._tableSelectionsFinish = {};
2841
- this._tableActionsStart = {};
2842
- this._tableActionsFinish = {};
2843
- this._tableGetDataStart = {};
2844
- this._tableGetDataFinish = {};
2845
- // Errores en procesos
2846
- this._actionServerError = [];
2847
- this._fieldServerError = [];
2848
- this._tableServerError = [];
2849
- // Datos complementarios del formulario
2850
- this.inputDataFields = {};
2851
- this.extraData = {};
2852
- this.enabledSections = [];
2853
- // Gestión de error
2854
- this._errorType = '';
2855
- this.errorCode = '';
2856
- this.errorFullCode = '';
2857
- this.errorName = '';
2858
- this.errorMessage = '';
2859
- this.errorDetail = '';
2860
- // Control de estado
2861
- this.visible = false;
2862
- this.busy = false;
2863
2934
  this._eventEmiter = this._eventManager;
2864
2935
  this.cleanStart();
2865
2936
  this.customPreProcessing();
@@ -4101,15 +4172,15 @@ class BasicFormComponent extends FormStructureAndData {
4101
4172
  addTableGetDataFinish(code, callback, properties = null) {
4102
4173
  return this.onTableGetDataFinish(code, callback, properties);
4103
4174
  }
4175
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BasicFormComponent, deps: [{ token: LibFormManagerService }, { token: LibEventManagerService }, { token: LibFileManagementService }], target: i0.ɵɵFactoryTarget.Component });
4176
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: BasicFormComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
4104
4177
  }
4105
- BasicFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: BasicFormComponent, deps: [{ token: LibFormManagerService }, { token: LibEventManagerService }, { token: LibFileManagementService }], target: i0.ɵɵFactoryTarget.Component });
4106
- BasicFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: BasicFormComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
4107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: BasicFormComponent, decorators: [{
4178
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BasicFormComponent, decorators: [{
4108
4179
  type: Component,
4109
4180
  args: [{
4110
4181
  template: `<ng-content></ng-content>`
4111
4182
  }]
4112
- }], ctorParameters: function () { return [{ type: LibFormManagerService }, { type: LibEventManagerService }, { type: LibFileManagementService }]; } });
4183
+ }], ctorParameters: () => [{ type: LibFormManagerService }, { type: LibEventManagerService }, { type: LibFileManagementService }] });
4113
4184
 
4114
4185
  const COMPONENTS = [
4115
4186
  BasicFormComponent,
@@ -4125,35 +4196,35 @@ const COMPONENTS = [
4125
4196
  LibTableComponent
4126
4197
  ];
4127
4198
  class TuainNgFormsLibModule {
4199
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TuainNgFormsLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4200
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: TuainNgFormsLibModule, declarations: [BasicFormComponent,
4201
+ ActionComponent,
4202
+ FieldComponent,
4203
+ ElementComponent,
4204
+ FormErrorComponent,
4205
+ FormHeaderComponent,
4206
+ SectionComponent,
4207
+ SubSectionComponent,
4208
+ LibTableRecordActionComponent,
4209
+ LibTableRecordFieldComponent,
4210
+ LibTableComponent], imports: [CommonModule,
4211
+ RouterModule,
4212
+ FormsModule], exports: [BasicFormComponent,
4213
+ ActionComponent,
4214
+ FieldComponent,
4215
+ ElementComponent,
4216
+ FormErrorComponent,
4217
+ FormHeaderComponent,
4218
+ SectionComponent,
4219
+ SubSectionComponent,
4220
+ LibTableRecordActionComponent,
4221
+ LibTableRecordFieldComponent,
4222
+ LibTableComponent] });
4223
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TuainNgFormsLibModule, imports: [CommonModule,
4224
+ RouterModule,
4225
+ FormsModule] });
4128
4226
  }
4129
- TuainNgFormsLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: TuainNgFormsLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4130
- TuainNgFormsLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.6", ngImport: i0, type: TuainNgFormsLibModule, declarations: [BasicFormComponent,
4131
- ActionComponent,
4132
- FieldComponent,
4133
- ElementComponent,
4134
- FormErrorComponent,
4135
- FormHeaderComponent,
4136
- SectionComponent,
4137
- SubSectionComponent,
4138
- LibTableRecordActionComponent,
4139
- LibTableRecordFieldComponent,
4140
- LibTableComponent], imports: [CommonModule,
4141
- RouterModule,
4142
- FormsModule], exports: [BasicFormComponent,
4143
- ActionComponent,
4144
- FieldComponent,
4145
- ElementComponent,
4146
- FormErrorComponent,
4147
- FormHeaderComponent,
4148
- SectionComponent,
4149
- SubSectionComponent,
4150
- LibTableRecordActionComponent,
4151
- LibTableRecordFieldComponent,
4152
- LibTableComponent] });
4153
- TuainNgFormsLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: TuainNgFormsLibModule, imports: [CommonModule,
4154
- RouterModule,
4155
- FormsModule] });
4156
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: TuainNgFormsLibModule, decorators: [{
4227
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TuainNgFormsLibModule, decorators: [{
4157
4228
  type: NgModule,
4158
4229
  args: [{
4159
4230
  declarations: COMPONENTS,