@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "21.0.0",
4
+ "version": "21.1.0",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "21.0.0",
5
+ "version": "21.1.0",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -102,11 +102,28 @@
102
102
  --mat-select-trigger-text-line-height: inherit;
103
103
  }
104
104
 
105
+ // Material 3 theme no longer emits the legacy (M2) badge sizing tokens that
106
+ // ngx-sumaris-components and the apps rely on (e.g. pastilles on mat-icon hosts).
107
+ // Without them, small badges collapse (font-size 0, 6px dot) and become invisible.
108
+ // See issue sumaris-app#2090 (Capture / SFA side-panel pastilles).
109
+ .mat-badge-content {
110
+ --mat-badge-small-size-text-size: var(--mat-badge-legacy-small-size-text-size, 9px);
111
+ --mat-badge-small-size-line-height: var(--mat-badge-legacy-small-size-line-height, 16px);
112
+ --mat-badge-small-size-container-size: var(--mat-badge-legacy-small-size-container-size, 16px);
113
+
114
+ --mat-badge-text-size: var(--mat-badge-legacy-text-size, 11px);
115
+ --mat-badge-line-height: var(--mat-badge-legacy-line-height, 22px);
116
+ --mat-badge-container-size: var(--mat-badge-legacy-container-size, 22px);
117
+
118
+ --mat-badge-large-size-text-size: var(--mat-badge-legacy-large-size-text-size, 14px);
119
+ --mat-badge-large-size-line-height: var(--mat-badge-legacy-large-size-line-height, 28px);
120
+ --mat-badge-large-size-container-size: var(--mat-badge-legacy-large-size-container-size, 28px);
121
+ }
122
+
105
123
  .mat-badge-primary .mat-badge-content {
106
124
  background-color: var(--ion-color-tertiary);
107
125
  color: var(--ion-color-tertiary-contrast);
108
126
  }
109
-
110
127
  .mat-badge-accent .mat-badge-content {
111
128
  background-color: var(--ion-color-accent);
112
129
  color: var(--ion-color-accent-contrast);
@@ -41,6 +41,12 @@ form.form-container {
41
41
 
42
42
  --mat-checkbox-label-text-color: var(--ion-text-color);
43
43
  --mat-form-field-state-layer-color: var(--app-form-field-focus-background-color);
44
+ // Hover/focus feedback (state layer over the field): Material applies the hover
45
+ // overlay only when both the layer color and the hover opacity resolve. Keep them
46
+ // explicit so the color change on hover is guaranteed
47
+ // (see issue sumaris-app#2090 — Settings page lost its hover highlight after the Angular 21 migration)
48
+ --mat-form-field-hover-state-layer-opacity: 0.04;
49
+ --mat-form-field-focus-state-layer-opacity: 0.12;
44
50
  --mat-form-field-container-height: 45px;
45
51
  --mat-form-field-container-text-size: inherit;
46
52
  --mat-form-field-filled-label-display: block;
@@ -59,6 +65,12 @@ form.form-container {
59
65
  --mat-slide-toggle-unselected-hover-track-color: var(--app-form-field-background-color-shade);
60
66
  --mat-slide-toggle-unselected-focus-track-color: var(--app-form-field-background-color-shade);
61
67
 
68
+ // M3 switches are wider than M2: a toggle used as a form field suffix touched
69
+ // the right edge of the field frame (e.g. 'Thème sombre ?' in Settings) — refs #2090
70
+ mat-slide-toggle[matSuffix] {
71
+ margin-right: 8px;
72
+ }
73
+
62
74
  .mat-form-field-disabled,
63
75
  .mat-mdc-input-element:disabled {
64
76
  color: var(--app-form-color-disabled, #{$app-form-color-disabled}) !important;