valtech-components 4.0.109 → 4.0.111

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.
@@ -2,5 +2,5 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export const VERSION = '4.0.109';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDdXJyZW50IHZlcnNpb24gb2YgdmFsdGVjaC1jb21wb25lbnRzLlxuICogVGhpcyBpcyBhdXRvbWF0aWNhbGx5IHVwZGF0ZWQgZHVyaW5nIHRoZSBwdWJsaXNoIHByb2Nlc3MuXG4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gJzQuMC4xMDknO1xuIl19
5
+ export const VERSION = '4.0.111';
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDdXJyZW50IHZlcnNpb24gb2YgdmFsdGVjaC1jb21wb25lbnRzLlxuICogVGhpcyBpcyBhdXRvbWF0aWNhbGx5IHVwZGF0ZWQgZHVyaW5nIHRoZSBwdWJsaXNoIHByb2Nlc3MuXG4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gJzQuMC4xMTEnO1xuIl19
@@ -56,7 +56,7 @@ import { BrowserMultiFormatReader } from '@zxing/browser';
56
56
  * Current version of valtech-components.
57
57
  * This is automatically updated during the publish process.
58
58
  */
59
- const VERSION = '4.0.109';
59
+ const VERSION = '4.0.111';
60
60
 
61
61
  // Control de estado de refresco (singleton a nivel de módulo)
62
62
  let isRefreshing = false;
@@ -8580,7 +8580,10 @@ class AuthService {
8580
8580
  },
8581
8581
  });
8582
8582
  }), catchError(error => {
8583
- this.logout();
8583
+ // Do NOT call logout() here — callers decide what to do on failure.
8584
+ // The auth interceptor already calls logout() explicitly, and
8585
+ // initialize() only clears state (no redirect). Auto-navigating to
8586
+ // /login from this method redirects even users on public routes.
8584
8587
  return throwError(() => error);
8585
8588
  }));
8586
8589
  }
@@ -28875,35 +28878,39 @@ class EntityCardComponent {
28875
28878
  (click)="onCardClick()"
28876
28879
  (keyup.enter)="onCardClick()"
28877
28880
  >
28878
- @if (chipPillProps(); as chip) {
28879
- <div class="entity-card__eyebrow">
28880
- <val-pill [props]="chip" />
28881
- </div>
28882
- }
28883
-
28884
- <div class="entity-card__row">
28885
- <div class="entity-card__text">
28886
- <span class="entity-card__title">{{ config().title }}</span>
28887
- @if (config().subtitle) {
28888
- <span class="entity-card__subtitle">{{ config().subtitle }}</span>
28889
- }
28890
- @if (config().endNote) {
28891
- <span class="entity-card__end-note">{{ config().endNote }}</span>
28892
- }
28893
- </div>
28881
+ <div class="entity-card__body">
28882
+ @if (chipPillProps(); as chip) {
28883
+ <div class="entity-card__eyebrow">
28884
+ <val-pill [props]="chip" />
28885
+ </div>
28886
+ }
28894
28887
 
28895
- @if (actions().length) {
28896
- <div class="entity-card__actions" (click)="$event.stopPropagation()">
28897
- @for (action of actions(); track action.token || $index) {
28898
- <val-button [props]="action" (onClick)="actionClick.emit($event)" />
28888
+ <div class="entity-card__row">
28889
+ <div class="entity-card__text">
28890
+ <span class="entity-card__title">{{ config().title }}</span>
28891
+ @if (config().subtitle) {
28892
+ <span class="entity-card__subtitle">{{ config().subtitle }}</span>
28893
+ }
28894
+ @if (config().endNote) {
28895
+ <span class="entity-card__end-note">{{ config().endNote }}</span>
28899
28896
  }
28900
28897
  </div>
28901
- } @else if (isNavigable()) {
28902
- <ion-icon class="entity-card__chevron" name="chevron-forward" aria-hidden="true" />
28903
- }
28898
+
28899
+ @if (actions().length) {
28900
+ <div class="entity-card__actions" (click)="$event.stopPropagation()">
28901
+ @for (action of actions(); track action.token || $index) {
28902
+ <val-button [props]="action" (onClick)="actionClick.emit($event)" />
28903
+ }
28904
+ </div>
28905
+ }
28906
+ </div>
28904
28907
  </div>
28908
+
28909
+ @if (!actions().length && isNavigable()) {
28910
+ <ion-icon class="entity-card__chevron" name="chevron-forward" aria-hidden="true" />
28911
+ }
28905
28912
  </div>
28906
- `, isInline: true, styles: [":host{display:block}.entity-card{background:var(--ion-card-background, var(--ion-background-color, #fff));border:1px solid var(--ion-border-color, var(--ion-color-light-shade, rgba(0, 0, 0, .1)));border-radius:16px;box-shadow:0 1px 3px #0000000f;padding:16px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.entity-card--clickable{cursor:pointer}.entity-card--clickable:hover{border-color:var(--ion-color-medium, #92949c);box-shadow:0 4px 12px #0000001a}.entity-card--clickable:active{transform:scale(.99)}.entity-card--clickable:focus-visible{outline:2px solid var(--ion-color-primary);outline-offset:2px}.entity-card__eyebrow{display:flex;margin-bottom:10px}.entity-card__row{display:flex;align-items:center;gap:12px}.entity-card__text{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}.entity-card__title{font-size:1rem;font-weight:700;line-height:1.3;color:var(--ion-text-color, #000)}.entity-card__subtitle{font-size:.875rem;line-height:1.35;color:var(--ion-color-medium, #92949c)}.entity-card__end-note{font-size:.8125rem;line-height:1.35;color:var(--ion-color-medium, #92949c)}.entity-card__actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.entity-card__actions val-button{display:inline-block}.entity-card--actions-below .entity-card__row{flex-direction:column;align-items:stretch;gap:10px}.entity-card--actions-below .entity-card__actions{flex-shrink:1;flex-wrap:wrap}.entity-card__chevron{font-size:1.25rem;color:var(--ion-color-medium, #92949c);flex-shrink:0}:host-context(body.dark) .entity-card,:host-context(html.ion-palette-dark) .entity-card,:host-context([data-theme=dark]) .entity-card{box-shadow:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: PillComponent, selector: "val-pill", inputs: ["preset", "props"], outputs: ["pillClick", "pillAction"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["preset", "props"], outputs: ["onClick"] }] }); }
28913
+ `, isInline: true, styles: [":host{display:block}.entity-card{background:var(--ion-card-background, var(--ion-background-color, #fff));border:1px solid var(--ion-border-color, var(--ion-color-light-shade, rgba(0, 0, 0, .1)));border-radius:16px;box-shadow:0 1px 3px #0000000f;padding:16px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.entity-card__body{flex:1 1 auto;min-width:0}.entity-card--clickable{display:flex;align-items:center;gap:12px;cursor:pointer}.entity-card--clickable:hover{border-color:var(--ion-color-medium, #92949c);box-shadow:0 4px 12px #0000001a}.entity-card--clickable:active{transform:scale(.99)}.entity-card--clickable:focus-visible{outline:2px solid var(--ion-color-primary);outline-offset:2px}.entity-card__eyebrow{display:flex;margin-bottom:10px}.entity-card__row{display:flex;align-items:center;gap:12px}.entity-card__text{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}.entity-card__title{font-size:1rem;font-weight:700;line-height:1.3;color:var(--ion-text-color, #000)}.entity-card__subtitle{font-size:.875rem;line-height:1.35;color:var(--ion-color-medium, #92949c)}.entity-card__end-note{font-size:.8125rem;line-height:1.35;color:var(--ion-color-medium, #92949c)}.entity-card__actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.entity-card__actions val-button{display:inline-block}.entity-card--actions-below .entity-card__row{flex-direction:column;align-items:stretch;gap:10px}.entity-card--actions-below .entity-card__actions{flex-shrink:1;flex-wrap:wrap}.entity-card__chevron{font-size:1.25rem;color:var(--ion-color-medium, #92949c);flex-shrink:0}:host-context(body.dark) .entity-card,:host-context(html.ion-palette-dark) .entity-card,:host-context([data-theme=dark]) .entity-card{box-shadow:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: PillComponent, selector: "val-pill", inputs: ["preset", "props"], outputs: ["pillClick", "pillAction"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["preset", "props"], outputs: ["onClick"] }] }); }
28907
28914
  }
28908
28915
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EntityCardComponent, decorators: [{
28909
28916
  type: Component,
@@ -28917,35 +28924,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
28917
28924
  (click)="onCardClick()"
28918
28925
  (keyup.enter)="onCardClick()"
28919
28926
  >
28920
- @if (chipPillProps(); as chip) {
28921
- <div class="entity-card__eyebrow">
28922
- <val-pill [props]="chip" />
28923
- </div>
28924
- }
28925
-
28926
- <div class="entity-card__row">
28927
- <div class="entity-card__text">
28928
- <span class="entity-card__title">{{ config().title }}</span>
28929
- @if (config().subtitle) {
28930
- <span class="entity-card__subtitle">{{ config().subtitle }}</span>
28931
- }
28932
- @if (config().endNote) {
28933
- <span class="entity-card__end-note">{{ config().endNote }}</span>
28934
- }
28935
- </div>
28927
+ <div class="entity-card__body">
28928
+ @if (chipPillProps(); as chip) {
28929
+ <div class="entity-card__eyebrow">
28930
+ <val-pill [props]="chip" />
28931
+ </div>
28932
+ }
28936
28933
 
28937
- @if (actions().length) {
28938
- <div class="entity-card__actions" (click)="$event.stopPropagation()">
28939
- @for (action of actions(); track action.token || $index) {
28940
- <val-button [props]="action" (onClick)="actionClick.emit($event)" />
28934
+ <div class="entity-card__row">
28935
+ <div class="entity-card__text">
28936
+ <span class="entity-card__title">{{ config().title }}</span>
28937
+ @if (config().subtitle) {
28938
+ <span class="entity-card__subtitle">{{ config().subtitle }}</span>
28939
+ }
28940
+ @if (config().endNote) {
28941
+ <span class="entity-card__end-note">{{ config().endNote }}</span>
28941
28942
  }
28942
28943
  </div>
28943
- } @else if (isNavigable()) {
28944
- <ion-icon class="entity-card__chevron" name="chevron-forward" aria-hidden="true" />
28945
- }
28944
+
28945
+ @if (actions().length) {
28946
+ <div class="entity-card__actions" (click)="$event.stopPropagation()">
28947
+ @for (action of actions(); track action.token || $index) {
28948
+ <val-button [props]="action" (onClick)="actionClick.emit($event)" />
28949
+ }
28950
+ </div>
28951
+ }
28952
+ </div>
28946
28953
  </div>
28954
+
28955
+ @if (!actions().length && isNavigable()) {
28956
+ <ion-icon class="entity-card__chevron" name="chevron-forward" aria-hidden="true" />
28957
+ }
28947
28958
  </div>
28948
- `, styles: [":host{display:block}.entity-card{background:var(--ion-card-background, var(--ion-background-color, #fff));border:1px solid var(--ion-border-color, var(--ion-color-light-shade, rgba(0, 0, 0, .1)));border-radius:16px;box-shadow:0 1px 3px #0000000f;padding:16px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.entity-card--clickable{cursor:pointer}.entity-card--clickable:hover{border-color:var(--ion-color-medium, #92949c);box-shadow:0 4px 12px #0000001a}.entity-card--clickable:active{transform:scale(.99)}.entity-card--clickable:focus-visible{outline:2px solid var(--ion-color-primary);outline-offset:2px}.entity-card__eyebrow{display:flex;margin-bottom:10px}.entity-card__row{display:flex;align-items:center;gap:12px}.entity-card__text{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}.entity-card__title{font-size:1rem;font-weight:700;line-height:1.3;color:var(--ion-text-color, #000)}.entity-card__subtitle{font-size:.875rem;line-height:1.35;color:var(--ion-color-medium, #92949c)}.entity-card__end-note{font-size:.8125rem;line-height:1.35;color:var(--ion-color-medium, #92949c)}.entity-card__actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.entity-card__actions val-button{display:inline-block}.entity-card--actions-below .entity-card__row{flex-direction:column;align-items:stretch;gap:10px}.entity-card--actions-below .entity-card__actions{flex-shrink:1;flex-wrap:wrap}.entity-card__chevron{font-size:1.25rem;color:var(--ion-color-medium, #92949c);flex-shrink:0}:host-context(body.dark) .entity-card,:host-context(html.ion-palette-dark) .entity-card,:host-context([data-theme=dark]) .entity-card{box-shadow:none}\n"] }]
28959
+ `, styles: [":host{display:block}.entity-card{background:var(--ion-card-background, var(--ion-background-color, #fff));border:1px solid var(--ion-border-color, var(--ion-color-light-shade, rgba(0, 0, 0, .1)));border-radius:16px;box-shadow:0 1px 3px #0000000f;padding:16px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.entity-card__body{flex:1 1 auto;min-width:0}.entity-card--clickable{display:flex;align-items:center;gap:12px;cursor:pointer}.entity-card--clickable:hover{border-color:var(--ion-color-medium, #92949c);box-shadow:0 4px 12px #0000001a}.entity-card--clickable:active{transform:scale(.99)}.entity-card--clickable:focus-visible{outline:2px solid var(--ion-color-primary);outline-offset:2px}.entity-card__eyebrow{display:flex;margin-bottom:10px}.entity-card__row{display:flex;align-items:center;gap:12px}.entity-card__text{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}.entity-card__title{font-size:1rem;font-weight:700;line-height:1.3;color:var(--ion-text-color, #000)}.entity-card__subtitle{font-size:.875rem;line-height:1.35;color:var(--ion-color-medium, #92949c)}.entity-card__end-note{font-size:.8125rem;line-height:1.35;color:var(--ion-color-medium, #92949c)}.entity-card__actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.entity-card__actions val-button{display:inline-block}.entity-card--actions-below .entity-card__row{flex-direction:column;align-items:stretch;gap:10px}.entity-card--actions-below .entity-card__actions{flex-shrink:1;flex-wrap:wrap}.entity-card__chevron{font-size:1.25rem;color:var(--ion-color-medium, #92949c);flex-shrink:0}:host-context(body.dark) .entity-card,:host-context(html.ion-palette-dark) .entity-card,:host-context([data-theme=dark]) .entity-card{box-shadow:none}\n"] }]
28949
28960
  }], propDecorators: { cardClick: [{
28950
28961
  type: Output
28951
28962
  }], actionClick: [{