tuain-ng-forms-lib 15.2.11 → 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 (76) 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 -270
  29. package/fesm2022/tuain-ng-forms-lib.mjs.map +1 -0
  30. package/lib/components/elements/action.component.d.ts +1 -1
  31. package/lib/components/elements/field.component.d.ts +1 -2
  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 -456
  46. package/esm2020/lib/classes/forms/form.mjs +0 -574
  47. package/esm2020/lib/classes/forms/piece-propagate.mjs +0 -41
  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 -104
  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 -4315
  70. package/fesm2015/tuain-ng-forms-lib.mjs.map +0 -1
  71. package/fesm2020/tuain-ng-forms-lib.mjs.map +0 -1
  72. /package/{esm2020 → esm2022}/lib/classes/forms/form.constants.mjs +0 -0
  73. /package/{esm2020 → esm2022}/lib/services/file-manager.service.mjs +0 -0
  74. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  75. /package/{esm2020 → esm2022}/tuain-ng-forms-lib.mjs +0 -0
  76. /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;
@@ -157,11 +168,6 @@ class FieldComponent extends ElementComponent {
157
168
  // Subscripción a cambios en atributos
158
169
  this.field?.attributeChange.subscribe(event => {
159
170
  const { name: componentAttr, value = null } = event ?? {};
160
- if (componentAttr === 'placeholder') {
161
- console.log(`------ attributeChange ${componentAttr} ${value}`);
162
- // } else {
163
- // console.log(`attributeChange ${componentAttr} ${value}`);
164
- }
165
171
  if (componentAttr) {
166
172
  this.defaultProcessAttributeChange(componentAttr, value);
167
173
  this.customProcessAttributeChange(componentAttr, value);
@@ -202,10 +208,10 @@ class FieldComponent extends ElementComponent {
202
208
  const k = event.charCode;
203
209
  return (k > 47 && k < 58);
204
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 });
205
213
  }
206
- FieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: FieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
207
- 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 });
208
- 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: [{
209
215
  type: Component,
210
216
  args: [{
211
217
  selector: 'lib-field',
@@ -216,10 +222,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
216
222
  }] } });
217
223
 
218
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 });
219
230
  }
220
- FormErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: FormErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
221
- 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 });
222
- 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: [{
223
232
  type: Component,
224
233
  args: [{
225
234
  selector: 'lib-form-error',
@@ -234,16 +243,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
234
243
  }] } });
235
244
 
236
245
  class FormHeaderComponent {
237
- constructor() {
238
- this.goBackEvent = new EventEmitter();
239
- }
246
+ form;
247
+ goBackEvent = new EventEmitter();
240
248
  goBackForm() {
241
249
  this.goBackEvent.emit();
242
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 });
243
253
  }
244
- FormHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: FormHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
245
- 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 });
246
- 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: [{
247
255
  type: Component,
248
256
  args: [{
249
257
  selector: 'lib-form-header',
@@ -256,6 +264,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
256
264
  }] } });
257
265
 
258
266
  class SectionComponent extends PieceComponent {
267
+ section;
259
268
  ngOnInit() {
260
269
  this.formConfig = this.section?._formConfig;
261
270
  const mapping = this.formConfig?.sectionPropagateAttributes;
@@ -278,10 +287,10 @@ class SectionComponent extends PieceComponent {
278
287
  start() {
279
288
  this.setForm(this.section?._form);
280
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 });
281
292
  }
282
- SectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: SectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
283
- 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 });
284
- 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: [{
285
294
  type: Component,
286
295
  args: [{
287
296
  selector: 'lib-section',
@@ -292,6 +301,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
292
301
  }] } });
293
302
 
294
303
  class SubSectionComponent extends PieceComponent {
304
+ subSection;
295
305
  ngOnInit() {
296
306
  this.formConfig = this.subSection?._formConfig;
297
307
  const mapping = this.formConfig?.subSectionPropagateAttributes;
@@ -314,10 +324,10 @@ class SubSectionComponent extends PieceComponent {
314
324
  start() {
315
325
  this.setForm(this.subSection?._form);
316
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 });
317
329
  }
318
- SubSectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: SubSectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
319
- 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 });
320
- 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: [{
321
331
  type: Component,
322
332
  args: [{
323
333
  selector: 'lib-subsection',
@@ -329,11 +339,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
329
339
 
330
340
  const INLINE_ACTION$1 = 'INLINE';
331
341
  class LibTableRecordActionComponent extends PieceComponent {
332
- constructor() {
333
- super(...arguments);
334
- this.isVisible = true;
335
- this.actionSelected = new EventEmitter();
336
- }
342
+ isVisible = true;
343
+ recordId;
344
+ recordData;
345
+ action;
346
+ actionSelected = new EventEmitter();
337
347
  ngOnInit() {
338
348
  this.formConfig = this.action?._formConfig;
339
349
  const mapping = this.formConfig?.actionPropagateAttributes;
@@ -371,10 +381,10 @@ class LibTableRecordActionComponent extends PieceComponent {
371
381
  this.actionSelected.emit(tableEvent);
372
382
  }
373
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 });
374
386
  }
375
- LibTableRecordActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LibTableRecordActionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
376
- 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 });
377
- 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: [{
378
388
  type: Component,
379
389
  args: [{
380
390
  selector: 'lib-table-record-action',
@@ -392,17 +402,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
392
402
  }] } });
393
403
 
394
404
  class LibTableRecordFieldComponent {
395
- constructor() {
396
- this.column = null;
397
- }
405
+ fieldCode;
406
+ fieldType;
407
+ fieldValue;
408
+ column = null;
398
409
  ngOnInit() {
399
410
  this.start();
400
411
  }
401
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 });
402
415
  }
403
- LibTableRecordFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LibTableRecordFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
404
- 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 });
405
- 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: [{
406
417
  type: Component,
407
418
  args: [{
408
419
  selector: 'lib-table-record-field',
@@ -420,16 +431,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
420
431
  }] } });
421
432
 
422
433
  class LibTableComponent extends ElementComponent {
423
- constructor() {
424
- super(...arguments);
425
- this.globalFilterString = '';
426
- this.loaded = false;
427
- this.selectable = false;
428
- this.hasActions = false;
429
- this.table = null;
430
- this.visibleRecords = [];
431
- this.waiting = false;
432
- }
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;
433
447
  ngOnInit() {
434
448
  if (!this.table) {
435
449
  return;
@@ -490,10 +504,10 @@ class LibTableComponent extends ElementComponent {
490
504
  this.table?.addColumnFilter(column.fieldCode, values);
491
505
  }
492
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 });
493
509
  }
494
- LibTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LibTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
495
- 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 });
496
- 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: [{
497
511
  type: Component,
498
512
  args: [{
499
513
  selector: 'lib-table',
@@ -535,17 +549,20 @@ const operators = {
535
549
  };
536
550
 
537
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 = {};
538
565
  constructor(pieceDefinition, formConfig) {
539
- this._formState = '';
540
- this._absoluteVisible = true;
541
- this._absoluteDisabled = false;
542
- this._widget = null;
543
- this.visibleStates = [];
544
- this.enabledStates = [];
545
- this._form = null;
546
- this._visible = true;
547
- this._disabled = false;
548
- this.customAttributes = {};
549
566
  this._formConfig = formConfig;
550
567
  this._isForced = false;
551
568
  this._visibleForced = false;
@@ -660,16 +677,14 @@ class FormPiece {
660
677
  const VISIBLE = 'visible';
661
678
  const DISABLED = 'disabled';
662
679
  class FormPiecePropagate extends FormPiece {
680
+ propagationCustomAttributes = [];
681
+ _attributeChange;
663
682
  constructor(pieceDefinition, formConfig) {
664
683
  super(pieceDefinition, formConfig);
665
- this.propagationCustomAttributes = [];
666
684
  this._attributeChange = new BehaviorSubject(null);
667
685
  }
668
686
  get attributeChange() { return this._attributeChange; }
669
687
  propagateAttribute(name, value) {
670
- if (name === 'placeholder') {
671
- console.log(`propagateAttribute ${name} ${value}`);
672
- }
673
688
  this._attributeChange?.next({ name, value });
674
689
  }
675
690
  setCustomAttribute(name, value) {
@@ -697,11 +712,11 @@ class FormPiecePropagate extends FormPiece {
697
712
  }
698
713
 
699
714
  class FormElement extends FormPiecePropagate {
715
+ elementType = null;
716
+ ;
700
717
  constructor(elementDefinition, formConfig) {
701
718
  super(elementDefinition, formConfig);
702
- this.elementType = null;
703
719
  }
704
- ;
705
720
  setAttr(attr, value) {
706
721
  const { name: attrName, propagate: name } = attr;
707
722
  this[attrName] = value;
@@ -714,13 +729,19 @@ class FormElement extends FormPiecePropagate {
714
729
 
715
730
  const HEADER = 'HEADER';
716
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;
717
743
  constructor(actionDefinition, formConfig) {
718
744
  super(actionDefinition, formConfig);
719
- this._actionActivated = new Subject();
720
- this.inProgress = false;
721
- this.restrictedOnField = null;
722
- this.restrictedOnOperator = null;
723
- this.restrictedOnValue = null;
724
745
  this.propagationCustomAttributes = this._formConfig?.propagationCustomAttributes?.actions ?? [];
725
746
  this.elementType = elementTypes.action;
726
747
  this.actionCode = actionDefinition.actionCode ? actionDefinition.actionCode.toString() : '';
@@ -824,36 +845,40 @@ const attrs$1 = {
824
845
  _visibleLabel: { name: '_visibleLabel', propagate: 'visibleLabel' },
825
846
  };
826
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;
827
880
  constructor(inputFieldReceived, formConfig) {
828
881
  super(inputFieldReceived, formConfig);
829
- this._editionFinish = new Subject();
830
- this._editionPartial = new Subject();
831
- this._detailRequest = new Subject();
832
- this._errorType = '';
833
- this._errorCode = '';
834
- this._errorMessage = '';
835
- this._intrinsicErrorMessage = '';
836
- this._maxLength = 0;
837
- this._minLength = 0;
838
- this._focus = false;
839
- this._onValidation = false;
840
- this._validateOnServer = false;
841
- this._visibleLabel = false;
842
- this._captureType = '';
843
- this._defaultValue = '';
844
- this._defaultEditable = false;
845
- this._fieldAlignment = '';
846
- this._fieldInfo = '';
847
- this._fieldRequired = false;
848
- this._fieldTitle = '';
849
- this._fieldType = '';
850
- this._fieldFormat = null;
851
- this._hasChanged = false;
852
- this._outputOnly = false;
853
- this._tooltipText = '';
854
- this._placeholder = '';
855
- this.fieldCode = '';
856
- this.fieldOptions = null;
857
882
  this.propagationCustomAttributes = this._formConfig?.propagationCustomAttributes?.fields ?? [];
858
883
  this.elementType = elementTypes.field;
859
884
  const fld = (inputFieldReceived) ? inputFieldReceived : {};
@@ -1169,8 +1194,6 @@ class FieldDescriptor extends FormElement {
1169
1194
  this.setAttr(attrs$1._errorMessage, message ?? '');
1170
1195
  }
1171
1196
  updateFromServer(fld) {
1172
- console.log('updateFromServer');
1173
- console.log(fld);
1174
1197
  const fieldKeys = Object.keys(fld);
1175
1198
  for (let index = 0; index < fieldKeys.length; index++) {
1176
1199
  const attrName = fieldKeys[index];
@@ -1234,20 +1257,20 @@ class FieldDescriptor extends FormElement {
1234
1257
  }
1235
1258
 
1236
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;
1237
1272
  constructor(recTableColReceived, formConfig) {
1238
1273
  super(recTableColReceived, formConfig);
1239
- this.fieldCode = '';
1240
- this.fieldTitle = '';
1241
- this.fieldType = '';
1242
- this.fieldAlignment = '';
1243
- this.fieldFormat = '';
1244
- this.sortable = true;
1245
- this.searchable = true;
1246
- this.sortDirections = [];
1247
- // Filtros
1248
- this.filterVisible = false;
1249
- this.filterDef = null;
1250
- this.filterSetup = null;
1251
1274
  this.filterDef = null;
1252
1275
  if (recTableColReceived) {
1253
1276
  this.fieldCode = recTableColReceived.fieldCode;
@@ -1307,11 +1330,19 @@ class RecordTableColumn extends FormPiece {
1307
1330
  }
1308
1331
 
1309
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;
1310
1344
  constructor(actionDefinition, formConfig) {
1311
1345
  super(actionDefinition, formConfig);
1312
- this.restrictedOnField = null;
1313
- this.restrictedOnValue = null;
1314
- this.restrictedOnOperator = null;
1315
1346
  this.actionCode = actionDefinition.actionCode;
1316
1347
  this.actionTitle = actionDefinition.actionTitle;
1317
1348
  this.iconName = actionDefinition.iconName || this.actionCode;
@@ -1336,10 +1367,10 @@ class TableAction extends FormPiece {
1336
1367
  }
1337
1368
 
1338
1369
  class TableRecordData {
1370
+ recordId = null;
1371
+ selected = false;
1372
+ recordData = {};
1339
1373
  constructor(recordReceived, recordDefinition, selectionFieldName = null) {
1340
- this.recordId = null;
1341
- this.selected = false;
1342
- this.recordData = {};
1343
1374
  const { tableRecordId, recordData } = recordReceived;
1344
1375
  this.recordId = tableRecordId;
1345
1376
  if (!recordDefinition || recordDefinition.length === 0 || !recordData || recordData.length === 0) {
@@ -1468,27 +1499,44 @@ const attrs = {
1468
1499
  visibleRecords: { name: 'visibleRecords', propagate: 'visibleRecords' },
1469
1500
  };
1470
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;
1471
1538
  constructor(tableReceived, formConfig) {
1472
1539
  super(tableReceived, formConfig);
1473
- this._inlineActionTrigger = new Subject();
1474
- this._globalActionTrigger = new Subject();
1475
- this._recordSelectionTrigger = new Subject();
1476
- this._selectionActionTrigger = new Subject();
1477
- this._getDataTrigger = new Subject();
1478
- this._tableColumnObj = {};
1479
- this._actionsObj = {};
1480
- // Mecanismos de filtrado nueva versión
1481
- this.globalFilterString = '';
1482
- this.globalFilterStrings = [];
1483
- this.layout = null;
1484
- this.tableRecordObj = {};
1485
- this.visibleRecords = null;
1486
- this.allSelected = false;
1487
- this.tableCode = '';
1488
- this.recordsPerPage = 10;
1489
- this.totalRecordsNumber = 0;
1490
- this.recordsNumber = 0;
1491
- this.clientPaging = true;
1492
1540
  this.propagationCustomAttributes = this._formConfig?.propagationCustomAttributes?.tables ?? [];
1493
1541
  this.elementType = elementTypes.table;
1494
1542
  this.waiting = false;
@@ -1909,18 +1957,18 @@ class RecordTable extends FormElement {
1909
1957
  }
1910
1958
 
1911
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;
1912
1970
  constructor(subsectionReceived, formObject, formConfig) {
1913
1971
  super(subsectionReceived, formConfig);
1914
- this._customRender = null;
1915
- this.subsectionId = null;
1916
- this.subsectionCode = null;
1917
- this.subsectionTitle = null;
1918
- this.subSectionElements = [];
1919
- this.subSectionFields = [];
1920
- this.subSectionTables = [];
1921
- this.subSectionActions = [];
1922
- this.elementsArray = {};
1923
- this.active = false;
1924
1972
  this.propagationCustomAttributes = this._formConfig?.propagationCustomAttributes?.subsections ?? [];
1925
1973
  if (!subsectionReceived) {
1926
1974
  return;
@@ -1989,16 +2037,17 @@ class RecordFormSubSection extends FormPiecePropagate {
1989
2037
 
1990
2038
  const ACTIVE$1 = 'active';
1991
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 = {};
1992
2049
  constructor(sectionReceived, formObject, formConfig) {
1993
2050
  super(sectionReceived, formConfig);
1994
- this._activation = new Subject();
1995
- this._inactivation = new Subject();
1996
- this.active = false;
1997
- this.sectionId = null;
1998
- this.sectionCode = null;
1999
- this.sectionTitle = null;
2000
- this.subSections = [];
2001
- this._exclusiveSubSectionsByAttr = {};
2002
2051
  this.propagationCustomAttributes = this._formConfig?.propagationCustomAttributes?.sections ?? [];
2003
2052
  if (!sectionReceived) {
2004
2053
  return;
@@ -2132,19 +2181,26 @@ const alwaysVisible = 'ALWAYS';
2132
2181
  const neverVisible = 'NONE';
2133
2182
  const onStatesVisible = 'ONSTATES';
2134
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 = {};
2135
2203
  constructor() {
2136
- this._stateChange = new Subject();
2137
- this.name = '';
2138
- this.title = '';
2139
- this.subject = null;
2140
- this.fields = {};
2141
- this.actions = {};
2142
- this.tables = {};
2143
- this.sections = {};
2144
- this._immutableData = {};
2145
- this._extraInfo = {};
2146
- this._exclusiveSectionsByAttr = {};
2147
- this.customAttributes = {};
2148
2204
  this.state = '';
2149
2205
  this.actionArray = [];
2150
2206
  this.fieldArray = [];
@@ -2691,6 +2747,7 @@ class FormStructureAndData {
2691
2747
  }
2692
2748
 
2693
2749
  class LibFormManagerService {
2750
+ pageStack;
2694
2751
  constructor() {
2695
2752
  this.cleanStack();
2696
2753
  }
@@ -2770,9 +2827,9 @@ class LibFormManagerService {
2770
2827
  }
2771
2828
 
2772
2829
  class LibEventManagerService {
2830
+ eventSubjects = {};
2831
+ eventSubjectParams = {};
2773
2832
  constructor(eventSet) {
2774
- this.eventSubjects = {};
2775
- this.eventSubjectParams = {};
2776
2833
  eventSet.forEach((event) => { this.addEventName(event); });
2777
2834
  }
2778
2835
  addEventName(event, rebuild = false) {
@@ -2825,51 +2882,55 @@ const GET_DATA_ACTION = 'GETDATA';
2825
2882
  const SUBJECT = 'subject';
2826
2883
  const TOKEN = 'token';
2827
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;
2828
2929
  constructor(formManagerService, _eventManager, fileMgmtServices) {
2829
2930
  super();
2830
2931
  this.formManagerService = formManagerService;
2831
2932
  this._eventManager = _eventManager;
2832
2933
  this.fileMgmtServices = fileMgmtServices;
2833
- this._controlToken = null;
2834
- this._originToken = null;
2835
- this._formRoute = null;
2836
- this._definitionObtained = false;
2837
- this._notifyFormActivity = true;
2838
- // Eventos de acciones y campos
2839
- this._formChangeState = [];
2840
- this._formSectionsCanDeactivate = {};
2841
- this._formSectionsActivate = {};
2842
- this._formSectionsInactivate = {};
2843
- this._formActionsStart = {};
2844
- this._formActionsFinish = {};
2845
- this._fieldInputValidation = {};
2846
- this._fieldValidationsStart = {};
2847
- this._fieldValidationsFinish = {};
2848
- // Callback de acciones de tablas
2849
- this._tableSelectionsStart = {};
2850
- this._tableSelectionsFinish = {};
2851
- this._tableActionsStart = {};
2852
- this._tableActionsFinish = {};
2853
- this._tableGetDataStart = {};
2854
- this._tableGetDataFinish = {};
2855
- // Errores en procesos
2856
- this._actionServerError = [];
2857
- this._fieldServerError = [];
2858
- this._tableServerError = [];
2859
- // Datos complementarios del formulario
2860
- this.inputDataFields = {};
2861
- this.extraData = {};
2862
- this.enabledSections = [];
2863
- // Gestión de error
2864
- this._errorType = '';
2865
- this.errorCode = '';
2866
- this.errorFullCode = '';
2867
- this.errorName = '';
2868
- this.errorMessage = '';
2869
- this.errorDetail = '';
2870
- // Control de estado
2871
- this.visible = false;
2872
- this.busy = false;
2873
2934
  this._eventEmiter = this._eventManager;
2874
2935
  this.cleanStart();
2875
2936
  this.customPreProcessing();
@@ -4111,15 +4172,15 @@ class BasicFormComponent extends FormStructureAndData {
4111
4172
  addTableGetDataFinish(code, callback, properties = null) {
4112
4173
  return this.onTableGetDataFinish(code, callback, properties);
4113
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 });
4114
4177
  }
4115
- 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 });
4116
- 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 });
4117
- 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: [{
4118
4179
  type: Component,
4119
4180
  args: [{
4120
4181
  template: `<ng-content></ng-content>`
4121
4182
  }]
4122
- }], ctorParameters: function () { return [{ type: LibFormManagerService }, { type: LibEventManagerService }, { type: LibFileManagementService }]; } });
4183
+ }], ctorParameters: () => [{ type: LibFormManagerService }, { type: LibEventManagerService }, { type: LibFileManagementService }] });
4123
4184
 
4124
4185
  const COMPONENTS = [
4125
4186
  BasicFormComponent,
@@ -4135,35 +4196,35 @@ const COMPONENTS = [
4135
4196
  LibTableComponent
4136
4197
  ];
4137
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] });
4138
4226
  }
4139
- TuainNgFormsLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: TuainNgFormsLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4140
- TuainNgFormsLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.6", ngImport: i0, type: TuainNgFormsLibModule, declarations: [BasicFormComponent,
4141
- ActionComponent,
4142
- FieldComponent,
4143
- ElementComponent,
4144
- FormErrorComponent,
4145
- FormHeaderComponent,
4146
- SectionComponent,
4147
- SubSectionComponent,
4148
- LibTableRecordActionComponent,
4149
- LibTableRecordFieldComponent,
4150
- LibTableComponent], imports: [CommonModule,
4151
- RouterModule,
4152
- FormsModule], exports: [BasicFormComponent,
4153
- ActionComponent,
4154
- FieldComponent,
4155
- ElementComponent,
4156
- FormErrorComponent,
4157
- FormHeaderComponent,
4158
- SectionComponent,
4159
- SubSectionComponent,
4160
- LibTableRecordActionComponent,
4161
- LibTableRecordFieldComponent,
4162
- LibTableComponent] });
4163
- TuainNgFormsLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: TuainNgFormsLibModule, imports: [CommonModule,
4164
- RouterModule,
4165
- FormsModule] });
4166
- 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: [{
4167
4228
  type: NgModule,
4168
4229
  args: [{
4169
4230
  declarations: COMPONENTS,