@sumaris-net/ngx-components 21.0.0 → 21.1.0

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/doc/changelog.md CHANGED
@@ -2330,3 +2330,9 @@ enh: Environment: add useHash property to configure Angular router to use hash U
2330
2330
  - enh(image-gallery): emit `modeChange` when gallery mode updates
2331
2331
  - fix(menu) Rename getter `MenuService.enabled: `Observable<boolean>` into `enabled$`, and add `get enabled(): boolean`
2332
2332
  - enh(theme) Allow overriding configuration properties (e.g. `sumaris.color.*` theme colors) using the injected `ENVIRONMENT` token's new `properties` field - useful to customize the app without a server-side (Pod) configuration, e.g. for offline apps on mobile
2333
+
2334
+ ## 21.1.0
2335
+ - fix(badge) restore legacy badge sizing tokens (M3) and explicit icon size, so side-panel pastilles (Capture, SFA) are visible again - See issue sumari-app#2090
2336
+ - fix(theme) restore explicit hover/focus state-layer opacity on form fields (Settings page hover highlight) - See issue sumari-app#2090
2337
+ - fix(theme) right margin on `mat-slide-toggle[matSuffix]` (M3 switches are wider — 'Thème sombre ?' toggle touched the field frame edge) - See issue sumari-app#2090
2338
+ - test(badge): add unit tests for `BadgeDirective` (pastille visibility, icon rendering, hidden state)
@@ -8154,10 +8154,12 @@ class BadgeDirective extends MatBadge {
8154
8154
  if (!hidden) {
8155
8155
  let html = '';
8156
8156
  if (this.appBadgeMatIcon) {
8157
- html = `<i class="material-icons" style="font-size: ${fontSize};">${this.appBadgeMatIcon}</i>`;
8157
+ html = `<i class="material-icons" style="font-size: ${fontSize}; width: ${fontSize}; height: ${fontSize};">${this.appBadgeMatIcon}</i>`;
8158
8158
  }
8159
8159
  else if (this.appBadgeIcon) {
8160
- html = `<ion-icon style="font-size: ${fontSize}; pointer-events: none;" name="${this.appBadgeIcon}"></ion-icon>`;
8160
+ // Explicit width/height: Ionic 8 sets `contain: strict` on ion-icon, which can
8161
+ // collapse its 1em box inside a badge content span (see issue sumaris-app#2090)
8162
+ html = `<ion-icon style="font-size: ${fontSize}; width: ${fontSize}; height: ${fontSize}; pointer-events: none;" name="${this.appBadgeIcon}"></ion-icon>`;
8161
8163
  }
8162
8164
  else if (isNotNilOrBlank(this.content) && this.content !== EMPTY_CHAR) {
8163
8165
  html = '' + this.content;