@cedx/base 0.15.2 → 0.15.3

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
@@ -1,5 +1,5 @@
1
1
  # Belin.io Base
2
- ![.NET](https://badgen.net/badge/.net/%3E%3D9.0/green) ![Version](https://badgen.net/badge/project/v0.15.2/blue) ![Licence](https://badgen.net/badge/licence/MIT/blue)
2
+ ![.NET](https://badgen.net/badge/.net/%3E%3D9.0/green) ![Version](https://badgen.net/badge/project/v0.15.3/blue) ![Licence](https://badgen.net/badge/licence/MIT/blue)
3
3
 
4
4
  Base library by [Cédric Belin](https://belin.io), full stack developer,
5
5
  implemented in [C#](https://learn.microsoft.com/en-us/dotnet/csharp) and [TypeScript](https://www.typescriptlang.org).
@@ -22,7 +22,7 @@ export class ThemeDropdown extends HTMLElement {
22
22
  */
23
23
  constructor() {
24
24
  super();
25
- for (const button of this.querySelectorAll("button"))
25
+ for (const button of this.querySelectorAll(".dropdown-menu button"))
26
26
  button.addEventListener("click", this.#setAppTheme);
27
27
  }
28
28
  /**
@@ -38,7 +38,7 @@ export interface IToast {
38
38
  icon?: string;
39
39
  }
40
40
  /**
41
- * Manages the notification messages.
41
+ * Manages the notifications.
42
42
  */
43
43
  export declare class Toaster extends HTMLElement {
44
44
  #private;
@@ -2,7 +2,7 @@ import { Context } from "../Context.js";
2
2
  import { createDocumentFragment } from "../ElementExtensions.js";
3
3
  import { Position, toCss } from "../Position.js";
4
4
  /**
5
- * Manages the notification messages.
5
+ * Manages the notifications.
6
6
  */
7
7
  export class Toaster extends HTMLElement {
8
8
  /**
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "name": "@cedx/base",
8
8
  "repository": "cedx/base",
9
9
  "type": "module",
10
- "version": "0.15.2",
10
+ "version": "0.15.3",
11
11
  "devDependencies": {
12
12
  "@playwright/browser-chromium": "^1.55.0",
13
13
  "@types/bootstrap": "^5.2.10",
@@ -27,7 +27,7 @@ export class ThemeDropdown extends HTMLElement {
27
27
  */
28
28
  constructor() {
29
29
  super();
30
- for (const button of this.querySelectorAll("button")) button.addEventListener("click", this.#setAppTheme);
30
+ for (const button of this.querySelectorAll(".dropdown-menu button")) button.addEventListener("click", this.#setAppTheme);
31
31
  }
32
32
 
33
33
  /**
@@ -49,7 +49,7 @@ export interface IToast {
49
49
  }
50
50
 
51
51
  /**
52
- * Manages the notification messages.
52
+ * Manages the notifications.
53
53
  */
54
54
  export class Toaster extends HTMLElement {
55
55