bit-ng-library 19.0.3 → 19.0.4

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/README.md CHANGED
@@ -26,6 +26,10 @@ To get more help on the Angular CLI use `ng help` or go check out the [Angular C
26
26
 
27
27
  ## changelog
28
28
 
29
+ ## [19.0.4] - 2025-03-14
30
+
31
+ fix al cambiar el tema se perdian el selector del modo oscuro
32
+
29
33
  ## [19.0.3] - 2025-03-13
30
34
 
31
35
  sendNotificationError permite enviar varios errores seguidos con la opción de que se vayan acumulando y mostrarlos en pantalla en el orden que se envían. La versión anterior no permitía esto, si no que al enviar el segundo error, se eliminaba el primero y no era visible. Se añade un segundo parámetro al método sendNotificationError que vale true por defecto y en el caso de que queramos acumular errores, a partir del segundo envio ponemos un false para no borrar el primero. Ejemplo:
@@ -6081,16 +6081,20 @@ class ThemeFBitService {
6081
6081
  this.storageService = inject(StorageService);
6082
6082
  this.themeList$ = signal([ThemeFBitService.THEME_FBIT, "Aura", "Material", "Lara", "Nora"]);
6083
6083
  this.currentTheme$ = signal("Aura");
6084
+ this.themeOptions = {
6085
+ darkModeSelector: ".my-app-dark" //es el selector que cuando lo añadamos como clase al index.html hará que se active el modo oscuro
6086
+ };
6084
6087
  }
6085
6088
  setFBitTheme(FBit) {
6086
6089
  console.log("setFBitTheme");
6087
6090
  this.FBit = FBit;
6088
6091
  }
6089
- setTheme(theme) {
6092
+ setTheme(theme, options = this.themeOptions) {
6090
6093
  let primeTheme = this.getTheme(theme);
6091
6094
  console.log("setTheme", theme, !!primeTheme);
6092
6095
  this.primeNgConfig.theme.set({
6093
- preset: primeTheme
6096
+ preset: primeTheme,
6097
+ options
6094
6098
  });
6095
6099
  this.currentTheme$.set(theme);
6096
6100
  }