sapenlinea-components 0.0.19 → 0.0.20

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.
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { OnDestroy, ElementRef, NgZone, EventEmitter, OnInit, Type } from '@angular/core';
2
+ import { OnDestroy, ElementRef, NgZone, EventEmitter, OnInit, Type, OnChanges, SimpleChanges } from '@angular/core';
3
3
  import { ControlValueAccessor, FormGroup, AbstractControl, FormArray } from '@angular/forms';
4
4
 
5
5
  interface FilterOption {
@@ -438,6 +438,7 @@ interface SectionConfig {
438
438
  declare class DynamicFormFields implements OnInit, OnDestroy {
439
439
  form: _angular_core.InputSignal<FormGroup<any>>;
440
440
  sections: _angular_core.InputSignal<SectionConfig[]>;
441
+ compact: _angular_core.InputSignal<boolean>;
441
442
  private copyFromSubscriptions;
442
443
  private realTimeCopySubscriptions;
443
444
  ngOnInit(): void;
@@ -454,7 +455,7 @@ declare class DynamicFormFields implements OnInit, OnDestroy {
454
455
  ngOnDestroy(): void;
455
456
  onCancel(): void;
456
457
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicFormFields, never>;
457
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicFormFields, "lib-dynamic-form-fields", never, { "form": { "alias": "form"; "required": true; "isSignal": true; }; "sections": { "alias": "sections"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
458
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicFormFields, "lib-dynamic-form-fields", never, { "form": { "alias": "form"; "required": true; "isSignal": true; }; "sections": { "alias": "sections"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
458
459
  }
459
460
 
460
461
  interface ModalFormStep {
@@ -491,18 +492,35 @@ declare class WizardForm {
491
492
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<WizardForm, "lib-wizard-form", never, { "form": { "alias": "form"; "required": false; "isSignal": true; }; "currentStep": { "alias": "currentStep"; "required": false; "isSignal": true; }; "steps": { "alias": "steps"; "required": false; "isSignal": true; }; }, { "canContinue": "canContinue"; }, never, never, true, never>;
492
493
  }
493
494
 
494
- declare class DialogAlertComponent {
495
+ declare class DialogAlertComponent implements OnInit, OnChanges {
495
496
  title: string;
496
497
  message: string;
497
498
  type: 'warning' | 'error' | 'info' | 'success';
499
+ /** Acción asociada al alert (ej: 'desactivar', 'eliminar', 'anular', 'sancionar') */
500
+ action?: string;
501
+ /** Forzar mostrar el campo razón si se necesita */
502
+ showReason: boolean;
498
503
  confirm: boolean;
504
+ confirmLabel: string;
499
505
  close: EventEmitter<boolean>;
506
+ /** Emite la razón escrita cuando aplica */
507
+ reasonOptions: {
508
+ label: string;
509
+ value: any;
510
+ }[];
511
+ confirmReason: EventEmitter<string | undefined>;
500
512
  icon: string;
513
+ form: FormGroup;
514
+ sections: SectionConfig[];
515
+ get isReasonNeeded(): boolean;
501
516
  ngOnInit(): void;
517
+ ngOnChanges(changes: SimpleChanges): void;
518
+ private updateIcon;
519
+ private updateFormAndSections;
502
520
  onConfirm(): void;
503
521
  onCancel(): void;
504
522
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogAlertComponent, never>;
505
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogAlertComponent, "lib-dialog-alert-component", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "type": { "alias": "type"; "required": false; }; "confirm": { "alias": "confirm"; "required": false; }; }, { "close": "close"; }, never, never, true, never>;
523
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogAlertComponent, "lib-dialog-alert-component", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "type": { "alias": "type"; "required": false; }; "action": { "alias": "action"; "required": false; }; "showReason": { "alias": "showReason"; "required": false; }; "confirm": { "alias": "confirm"; "required": false; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; }; "reasonOptions": { "alias": "reasonOptions"; "required": false; }; }, { "close": "close"; "confirmReason": "confirmReason"; }, never, never, true, never>;
506
524
  }
507
525
 
508
526
  export { DateTimeFilter, DateTimePicker, DialogAlertComponent, DynamicFormFields, InputNumberFilter, InputSelectFilter, InputTextFilter, ModalForm, PaginationComponent, SelectCustomSearch, Table, WizardForm };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sapenlinea-components",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0",
6
6
  "@angular/core": "^20.3.0"