tuain-ng-forms-lib 17.4.0 → 19.0.1

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 (52) hide show
  1. package/fesm2022/tuain-ng-forms-lib.mjs +87 -53
  2. package/fesm2022/tuain-ng-forms-lib.mjs.map +1 -1
  3. package/lib/interfaces/sse-live-connection.interface.d.ts +8 -0
  4. package/lib/services/sse-live-connection.service.d.ts +8 -0
  5. package/package.json +5 -7
  6. package/esm2022/lib/classes/forms/action.mjs +0 -112
  7. package/esm2022/lib/classes/forms/element.mjs +0 -25
  8. package/esm2022/lib/classes/forms/field.mjs +0 -481
  9. package/esm2022/lib/classes/forms/form.constants.mjs +0 -55
  10. package/esm2022/lib/classes/forms/form.mjs +0 -587
  11. package/esm2022/lib/classes/forms/piece-propagate.mjs +0 -36
  12. package/esm2022/lib/classes/forms/piece.mjs +0 -139
  13. package/esm2022/lib/classes/forms/section.mjs +0 -150
  14. package/esm2022/lib/classes/forms/subsection.mjs +0 -96
  15. package/esm2022/lib/classes/forms/table/action.mjs +0 -49
  16. package/esm2022/lib/classes/forms/table/column.mjs +0 -74
  17. package/esm2022/lib/classes/forms/table/row-data.mjs +0 -114
  18. package/esm2022/lib/classes/forms/table/table.mjs +0 -537
  19. package/esm2022/lib/components/elements/action.component.mjs +0 -71
  20. package/esm2022/lib/components/elements/field.component.mjs +0 -113
  21. package/esm2022/lib/components/elements/layout/element.component.mjs +0 -23
  22. package/esm2022/lib/components/elements/layout/form-error.component.mjs +0 -25
  23. package/esm2022/lib/components/elements/layout/form-header.component.mjs +0 -25
  24. package/esm2022/lib/components/elements/layout/piece.component.mjs +0 -59
  25. package/esm2022/lib/components/elements/layout/section.component.mjs +0 -57
  26. package/esm2022/lib/components/elements/layout/sub-section.component.mjs +0 -57
  27. package/esm2022/lib/components/elements/tables/table-record-action.component.mjs +0 -71
  28. package/esm2022/lib/components/elements/tables/table-record-field.component.mjs +0 -32
  29. package/esm2022/lib/components/elements/tables/table.component.mjs +0 -109
  30. package/esm2022/lib/components/forms/basic-form.mjs +0 -1407
  31. package/esm2022/lib/components/shared/constants.mjs +0 -2
  32. package/esm2022/lib/interfaces/action.interface.mjs +0 -2
  33. package/esm2022/lib/interfaces/field.interface.mjs +0 -2
  34. package/esm2022/lib/interfaces/form-config.interface.mjs +0 -2
  35. package/esm2022/lib/interfaces/form.interface.mjs +0 -2
  36. package/esm2022/lib/interfaces/icon-resolver.interface.mjs +0 -2
  37. package/esm2022/lib/interfaces/index.mjs +0 -11
  38. package/esm2022/lib/interfaces/piece.interface.mjs +0 -2
  39. package/esm2022/lib/interfaces/section.interface.mjs +0 -2
  40. package/esm2022/lib/interfaces/sse-live-connection.interface.mjs +0 -2
  41. package/esm2022/lib/interfaces/table.interface.mjs +0 -2
  42. package/esm2022/lib/services/base-icon-resolver.service.mjs +0 -40
  43. package/esm2022/lib/services/event-manager.service.mjs +0 -55
  44. package/esm2022/lib/services/file-manager.service.mjs +0 -14
  45. package/esm2022/lib/services/form-manager.service.mjs +0 -88
  46. package/esm2022/lib/services/icon-dictionary.service.mjs +0 -162
  47. package/esm2022/lib/services/sse-live-connection.service.mjs +0 -165
  48. package/esm2022/lib/tokens/icon-resolver.token.mjs +0 -3
  49. package/esm2022/lib/tokens/sse-live-connection.token.mjs +0 -7
  50. package/esm2022/lib/tuain-ng-forms-lib.module.mjs +0 -54
  51. package/esm2022/public-api.mjs +0 -45
  52. package/esm2022/tuain-ng-forms-lib.mjs +0 -5
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, signal, computed, Component, ChangeDetectionStrategy, Input, EventEmitter, Output, inject, DestroyRef, model, Injectable, NgModule } from '@angular/core';
2
+ import { InjectionToken, signal, computed, ChangeDetectionStrategy, Component, Input, EventEmitter, Output, inject, DestroyRef, model, Injectable, NgModule } from '@angular/core';
3
3
  import { Subject, takeUntil, BehaviorSubject, ReplaySubject } from 'rxjs';
4
4
  import yn from 'yn';
5
5
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
@@ -2481,10 +2481,10 @@ class PieceComponent {
2481
2481
  this.customAttributeChange(attrName, attrValue);
2482
2482
  });
2483
2483
  }
2484
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PieceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2485
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: PieceComponent, isStandalone: true, selector: "lib-piece", ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2484
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: PieceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2485
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: PieceComponent, isStandalone: true, selector: "lib-piece", ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2486
2486
  }
2487
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PieceComponent, decorators: [{
2487
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: PieceComponent, decorators: [{
2488
2488
  type: Component,
2489
2489
  args: [{
2490
2490
  standalone: true,
@@ -2499,10 +2499,10 @@ class ElementComponent extends PieceComponent {
2499
2499
  start() {
2500
2500
  this.setForm(this.element?.form);
2501
2501
  }
2502
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2503
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ElementComponent, isStandalone: true, selector: "lib-element", inputs: { element: "element" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2502
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2503
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: ElementComponent, isStandalone: true, selector: "lib-element", inputs: { element: "element" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2504
2504
  }
2505
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ElementComponent, decorators: [{
2505
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ElementComponent, decorators: [{
2506
2506
  type: Component,
2507
2507
  args: [{
2508
2508
  standalone: true,
@@ -2518,10 +2518,10 @@ class FormErrorComponent {
2518
2518
  errorTitle = '';
2519
2519
  errorMessage = '';
2520
2520
  errorType = '';
2521
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2522
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FormErrorComponent, isStandalone: true, selector: "lib-form-error", inputs: { errorTitle: "errorTitle", errorMessage: "errorMessage", errorType: "errorType" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2521
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FormErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2522
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: FormErrorComponent, isStandalone: true, selector: "lib-form-error", inputs: { errorTitle: "errorTitle", errorMessage: "errorMessage", errorType: "errorType" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2523
2523
  }
2524
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormErrorComponent, decorators: [{
2524
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FormErrorComponent, decorators: [{
2525
2525
  type: Component,
2526
2526
  args: [{
2527
2527
  standalone: true,
@@ -2543,10 +2543,10 @@ class FormHeaderComponent {
2543
2543
  goBackForm() {
2544
2544
  this.goBackEvent.emit();
2545
2545
  }
2546
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2547
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FormHeaderComponent, isStandalone: true, selector: "lib-form-header", inputs: { form: "form" }, outputs: { goBackEvent: "goBackEvent" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2546
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FormHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2547
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: FormHeaderComponent, isStandalone: true, selector: "lib-form-header", inputs: { form: "form" }, outputs: { goBackEvent: "goBackEvent" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2548
2548
  }
2549
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormHeaderComponent, decorators: [{
2549
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FormHeaderComponent, decorators: [{
2550
2550
  type: Component,
2551
2551
  args: [{
2552
2552
  standalone: true,
@@ -2599,10 +2599,10 @@ class SectionComponent extends PieceComponent {
2599
2599
  start() {
2600
2600
  this.setForm(this.section?.form);
2601
2601
  }
2602
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2603
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SectionComponent, isStandalone: true, selector: "lib-section", inputs: { section: "section" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2602
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2603
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: SectionComponent, isStandalone: true, selector: "lib-section", inputs: { section: "section" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2604
2604
  }
2605
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SectionComponent, decorators: [{
2605
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SectionComponent, decorators: [{
2606
2606
  type: Component,
2607
2607
  args: [{
2608
2608
  standalone: true,
@@ -2651,10 +2651,10 @@ class SubSectionComponent extends PieceComponent {
2651
2651
  start() {
2652
2652
  this.setForm(this.subSection?.form);
2653
2653
  }
2654
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SubSectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2655
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SubSectionComponent, isStandalone: true, selector: "lib-subsection", inputs: { subSection: "subSection" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2654
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SubSectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2655
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: SubSectionComponent, isStandalone: true, selector: "lib-subsection", inputs: { subSection: "subSection" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2656
2656
  }
2657
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SubSectionComponent, decorators: [{
2657
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SubSectionComponent, decorators: [{
2658
2658
  type: Component,
2659
2659
  args: [{
2660
2660
  standalone: true,
@@ -2717,10 +2717,10 @@ class ActionComponent extends ElementComponent {
2717
2717
  this.action.notifyActivation();
2718
2718
  }
2719
2719
  }
2720
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ActionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2721
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ActionComponent, isStandalone: true, selector: "lib-action", inputs: { action: "action" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2720
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ActionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2721
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: ActionComponent, isStandalone: true, selector: "lib-action", inputs: { action: "action" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2722
2722
  }
2723
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ActionComponent, decorators: [{
2723
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ActionComponent, decorators: [{
2724
2724
  type: Component,
2725
2725
  args: [{
2726
2726
  standalone: true,
@@ -2825,10 +2825,10 @@ class FieldComponent extends ElementComponent {
2825
2825
  this.updateObject(false);
2826
2826
  this.onInputChange();
2827
2827
  }
2828
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2829
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: FieldComponent, isStandalone: true, selector: "lib-field", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2828
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2829
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.22", type: FieldComponent, isStandalone: true, selector: "lib-field", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2830
2830
  }
2831
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FieldComponent, decorators: [{
2831
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FieldComponent, decorators: [{
2832
2832
  type: Component,
2833
2833
  args: [{
2834
2834
  standalone: true,
@@ -2929,10 +2929,10 @@ class LibTableComponent extends ElementComponent {
2929
2929
  this.table?.addColumnFilter(column.fieldCode, values);
2930
2930
  }
2931
2931
  }
2932
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2933
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LibTableComponent, isStandalone: true, selector: "lib-table", inputs: { table: "table" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2932
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LibTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2933
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: LibTableComponent, isStandalone: true, selector: "lib-table", inputs: { table: "table" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2934
2934
  }
2935
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibTableComponent, decorators: [{
2935
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LibTableComponent, decorators: [{
2936
2936
  type: Component,
2937
2937
  args: [{
2938
2938
  standalone: true,
@@ -2953,10 +2953,10 @@ class LibTableRecordFieldComponent {
2953
2953
  this.start();
2954
2954
  }
2955
2955
  start() { }
2956
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibTableRecordFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2957
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LibTableRecordFieldComponent, isStandalone: true, 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 });
2956
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LibTableRecordFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2957
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: LibTableRecordFieldComponent, isStandalone: true, 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 });
2958
2958
  }
2959
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibTableRecordFieldComponent, decorators: [{
2959
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LibTableRecordFieldComponent, decorators: [{
2960
2960
  type: Component,
2961
2961
  args: [{
2962
2962
  standalone: true,
@@ -3021,10 +3021,10 @@ class LibTableRecordActionComponent extends PieceComponent {
3021
3021
  this.actionSelected.emit(tableEvent);
3022
3022
  }
3023
3023
  class() { }
3024
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibTableRecordActionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
3025
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LibTableRecordActionComponent, isStandalone: true, 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 });
3024
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LibTableRecordActionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
3025
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: LibTableRecordActionComponent, isStandalone: true, 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 });
3026
3026
  }
3027
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibTableRecordActionComponent, decorators: [{
3027
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LibTableRecordActionComponent, decorators: [{
3028
3028
  type: Component,
3029
3029
  args: [{
3030
3030
  standalone: true,
@@ -3120,10 +3120,10 @@ class LibFormManagerService {
3120
3120
  const formInfo = this.unstack(targetToken);
3121
3121
  formInfo && formInfo.name && this.goToForm(formInfo.name, formInfo.token, formInfo.subject ?? null);
3122
3122
  }
3123
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibFormManagerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3124
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibFormManagerService });
3123
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LibFormManagerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3124
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LibFormManagerService });
3125
3125
  }
3126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibFormManagerService, decorators: [{
3126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LibFormManagerService, decorators: [{
3127
3127
  type: Injectable
3128
3128
  }], ctorParameters: () => [] });
3129
3129
 
@@ -3186,10 +3186,10 @@ class LibFileManagementService {
3186
3186
  saveFileFromURL(_fileUrl, _fileName = null, _fileType = null) { }
3187
3187
  saveFile(_fileBase64Data, _fileName, _fileType) { }
3188
3188
  printPdfFile(_pdfBufferData) { }
3189
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibFileManagementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3190
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibFileManagementService });
3189
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LibFileManagementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3190
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LibFileManagementService });
3191
3191
  }
3192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibFileManagementService, decorators: [{
3192
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LibFileManagementService, decorators: [{
3193
3193
  type: Injectable
3194
3194
  }] });
3195
3195
 
@@ -4580,10 +4580,10 @@ class BasicFormComponent extends FormStructureAndData {
4580
4580
  preocessInputParams(params) {
4581
4581
  return this.processInputParams(params);
4582
4582
  }
4583
- 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 });
4584
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: BasicFormComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
4583
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BasicFormComponent, deps: [{ token: LibFormManagerService }, { token: LibEventManagerService }, { token: LibFileManagementService }], target: i0.ɵɵFactoryTarget.Component });
4584
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: BasicFormComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
4585
4585
  }
4586
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BasicFormComponent, decorators: [{
4586
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BasicFormComponent, decorators: [{
4587
4587
  type: Component,
4588
4588
  args: [{
4589
4589
  standalone: true,
@@ -4785,10 +4785,10 @@ class BaseIconResolverService {
4785
4785
  return name?.replace(/[-_](.)/g, (_, c) => c.toUpperCase())
4786
4786
  ?.replace(/^(.)/, (_, c) => c.toLowerCase()) ?? 'default';
4787
4787
  }
4788
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BaseIconResolverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4789
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BaseIconResolverService });
4788
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseIconResolverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4789
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseIconResolverService });
4790
4790
  }
4791
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BaseIconResolverService, decorators: [{
4791
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseIconResolverService, decorators: [{
4792
4792
  type: Injectable
4793
4793
  }] });
4794
4794
 
@@ -4796,6 +4796,7 @@ const DEFAULT_STREAM_PATH = '/liveconnect/stream';
4796
4796
  const DEFAULT_SESSION_ENDED_EVENT = 'sessionEnded';
4797
4797
  const SESSION_EVENT_CLASS = 'session';
4798
4798
  const SESSION_REPLACED_EVENT_TYPE = 'sessionReplaced';
4799
+ const SESSION_CLOSED_EVENT_TYPE = 'sessionClosed';
4799
4800
  /** Error que detiene los reintentos de `fetchEventSource` (handshake rechazado). */
4800
4801
  class FatalSseError extends Error {
4801
4802
  }
@@ -4870,6 +4871,9 @@ class SseLiveConnectionService {
4870
4871
  if (this._handleSessionReplaced(eventData)) {
4871
4872
  return;
4872
4873
  }
4874
+ if (this._handleSessionClosed(eventData)) {
4875
+ return;
4876
+ }
4873
4877
  const eventClass = eventData?.eventClass;
4874
4878
  if (typeof eventClass !== 'string' || !allowed.has(eventClass)) {
4875
4879
  logger?.warn?.('[SseLiveConnection] Evento no permitido rechazado:', eventClass);
@@ -4945,10 +4949,40 @@ class SseLiveConnectionService {
4945
4949
  this._config.emit(sessionEndedName, null);
4946
4950
  return true;
4947
4951
  }
4948
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SseLiveConnectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4949
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SseLiveConnectionService, providedIn: 'root' });
4952
+ /**
4953
+ * Maneja el evento de control `sessionClosed` dirigido a ESTA sesión (el gateway lo envía con
4954
+ * recipientType 'session' al detectar que la sesión expiró/dejó de ser válida). Ordena cerrar la
4955
+ * sesión en el navegador. Se ejecuta antes del allow-list porque no se re-emite al bus genérico.
4956
+ * Emite `sessionClosedEventName` (o, en su defecto, el de fin de sesión) para que la app muestre
4957
+ * su propio mensaje antes del logout. Devuelve `true` cuando consume el evento.
4958
+ */
4959
+ _handleSessionClosed(eventData) {
4960
+ if ((this._config.handleSessionClosed ?? true) === false) {
4961
+ return false;
4962
+ }
4963
+ if (eventData?.eventClass !== SESSION_EVENT_CLASS ||
4964
+ eventData?.eventType !== SESSION_CLOSED_EVENT_TYPE) {
4965
+ return false;
4966
+ }
4967
+ if (!this._currentSessionId) {
4968
+ return true; // no hay sesión local que cerrar
4969
+ }
4970
+ // Defensivo: el evento va dirigido por sessionId, pero si trae uno y no coincide, lo ignoramos.
4971
+ const targetSessionId = eventData?.eventDetail?.sessionId ?? null;
4972
+ if (targetSessionId && targetSessionId !== this._currentSessionId) {
4973
+ return true;
4974
+ }
4975
+ this._config.logger?.warn?.('[SseLiveConnection] El servidor cerró esta sesión', {
4976
+ currentSessionId: this._currentSessionId,
4977
+ });
4978
+ const eventName = this._config.sessionClosedEventName ?? this._config.sessionEndedEventName ?? DEFAULT_SESSION_ENDED_EVENT;
4979
+ this._config.emit(eventName, null);
4980
+ return true;
4981
+ }
4982
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SseLiveConnectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4983
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SseLiveConnectionService, providedIn: 'root' });
4950
4984
  }
4951
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SseLiveConnectionService, decorators: [{
4985
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SseLiveConnectionService, decorators: [{
4952
4986
  type: Injectable,
4953
4987
  args: [{ providedIn: 'root' }]
4954
4988
  }] });
@@ -4968,8 +5002,8 @@ const COMPONENTS = [
4968
5002
  * @deprecated Since v17. Use standalone components directly. Will be removed in v19.
4969
5003
  */
4970
5004
  class TuainNgFormsLibModule {
4971
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TuainNgFormsLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4972
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: TuainNgFormsLibModule, imports: [ActionComponent,
5005
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TuainNgFormsLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5006
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: TuainNgFormsLibModule, imports: [ActionComponent,
4973
5007
  FieldComponent,
4974
5008
  FormErrorComponent,
4975
5009
  FormHeaderComponent,
@@ -4986,9 +5020,9 @@ class TuainNgFormsLibModule {
4986
5020
  LibTableRecordActionComponent,
4987
5021
  LibTableRecordFieldComponent,
4988
5022
  LibTableComponent] });
4989
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TuainNgFormsLibModule });
5023
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TuainNgFormsLibModule });
4990
5024
  }
4991
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TuainNgFormsLibModule, decorators: [{
5025
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TuainNgFormsLibModule, decorators: [{
4992
5026
  type: NgModule,
4993
5027
  args: [{
4994
5028
  imports: COMPONENTS,