ctt-babylon 0.22.113 → 0.22.115

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.
@@ -1,10 +1,9 @@
1
1
  import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
- import { BabylonButtonI, BabylonImageI, BabylonTextInfoI } from '../../../../interfaces';
2
+ import { BabylonButtonI, BabylonImageI, BabylonTextInfoI, BabylonTextsColorsI } from '../../../../interfaces';
3
3
  import { BabylonDestinationI } from '../../../../interfaces/babylon-destination.interface';
4
4
  import { BabylonGlobalExperience } from '../../../../interfaces/babylon-global-experience.interface';
5
5
  import { BabylonHotelGlobalItem } from '../../../../interfaces/babylon-hotel.interface';
6
6
  import { BabylonTagsI } from '../../../../interfaces/babylon-tags.interface';
7
- import { BabylonTextsColorsI } from '../../../../interfaces';
8
7
  import * as i0 from "@angular/core";
9
8
  export declare class LisC4TxtDesCtaComponent implements OnInit, OnChanges, OnDestroy {
10
9
  texts?: BabylonTextInfoI;
@@ -29,6 +28,12 @@ export declare class LisC4TxtDesCtaComponent implements OnInit, OnChanges, OnDes
29
28
  destinationOptions: string[];
30
29
  brandOptions: string[];
31
30
  experienceOptions: string[];
31
+ availableServices: string[];
32
+ private baseHotelTypeOptions;
33
+ private baseDestinationOptions;
34
+ private baseBrandOptions;
35
+ private baseExperienceOptions;
36
+ private baseAvailableServices;
32
37
  private pendingFilterSlug;
33
38
  private pendingDestinationSlug;
34
39
  private pendingBrandSlug;
@@ -46,7 +51,6 @@ export declare class LisC4TxtDesCtaComponent implements OnInit, OnChanges, OnDes
46
51
  private qpSub?;
47
52
  private readonly cdr;
48
53
  private isSyncingFromUrl;
49
- availableServices: string[];
50
54
  selectedServices: Set<string>;
51
55
  isServicesMenuOpen: boolean;
52
56
  ngOnInit(): void;
@@ -54,7 +58,17 @@ export declare class LisC4TxtDesCtaComponent implements OnInit, OnChanges, OnDes
54
58
  ngOnDestroy(): void;
55
59
  private buildFilterOptions;
56
60
  private getItemBrand;
61
+ /**
62
+ * Obtiene los items coincidentes excluyendo uno de los filtros.
63
+ * Es clave para calcular qué opciones deben quedar disponibles en un desplegable
64
+ * sin que su propia selección previa las borre por completo.
65
+ */
66
+ private getItemsMatching;
57
67
  get filteredItems(): BabylonHotelGlobalItem[];
68
+ /**
69
+ * Actualiza los arrays de opciones para ocultar aquellas que devolverían 0 resultados.
70
+ */
71
+ private updateDynamicOptions;
58
72
  get hasActiveFilters(): boolean;
59
73
  onHotelTypeChange(value: string | undefined): void;
60
74
  onDestinationChange(value: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctt-babylon",
3
- "version": "0.22.113",
3
+ "version": "0.22.115",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",