@sumaris-net/ngx-components 21.1.0-rc1 → 21.1.1
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 +32 -6
- package/fesm2022/sumaris-net.ngx-components.mjs +1918 -1504
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +2 -2
- package/src/assets/i18n/en-US.json +3 -4
- package/src/assets/i18n/en.json +3 -4
- package/src/assets/i18n/fr.json +3 -4
- package/src/assets/manifest.json +1 -1
- package/src/theme/_material.scss +18 -1
- package/src/theme/_ngx-components.forms.scss +12 -0
- package/src/theme/_ngx-components.table.scss +1 -1
- package/types/sumaris-net.ngx-components.d.ts +245 -131
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.1.
|
|
4
|
+
"version": "21.1.1",
|
|
5
5
|
"author": "contact@e-is.pro",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"readmeFilename": "README.md",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"url": "https://gitlab.ifremer.fr/sih-public/sumaris/ngx-sumaris-components/-/issues"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
|
-
"node": ">= 22.
|
|
82
|
+
"node": ">= 22.12.0",
|
|
83
83
|
"npm": ">= 11.0.0"
|
|
84
84
|
},
|
|
85
85
|
"optimizeDeps": {
|
|
@@ -151,9 +151,7 @@
|
|
|
151
151
|
"LOAD_FAILED": "Failed to load filter",
|
|
152
152
|
"IMPORT_FAILED": "Failed to import filter",
|
|
153
153
|
"NOT_FOUND": "Filter not found"
|
|
154
|
-
}
|
|
155
|
-
"SEARCH": "Search",
|
|
156
|
-
"SEARCH_PLACEHOLDER": "Search an icon…"
|
|
154
|
+
}
|
|
157
155
|
},
|
|
158
156
|
"CONFIGURATION": {
|
|
159
157
|
"OPTIONS": {
|
|
@@ -824,6 +822,7 @@
|
|
|
824
822
|
"ICON_SELECTOR": {
|
|
825
823
|
"TITLE": "Select an icon",
|
|
826
824
|
"TAB_IONIC": "Ionic",
|
|
827
|
-
"TAB_MATERIAL": "Material"
|
|
825
|
+
"TAB_MATERIAL": "Material",
|
|
826
|
+
"SEARCH_PLACEHOLDER": "Search an icon…"
|
|
828
827
|
}
|
|
829
828
|
}
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -151,9 +151,7 @@
|
|
|
151
151
|
"LOAD_FAILED": "Failed to load filter",
|
|
152
152
|
"IMPORT_FAILED": "Failed to import filter",
|
|
153
153
|
"NOT_FOUND": "Filter not found"
|
|
154
|
-
}
|
|
155
|
-
"SEARCH": "Search",
|
|
156
|
-
"SEARCH_PLACEHOLDER": "Search an icon..."
|
|
154
|
+
}
|
|
157
155
|
},
|
|
158
156
|
"CONFIGURATION": {
|
|
159
157
|
"OPTIONS": {
|
|
@@ -824,6 +822,7 @@
|
|
|
824
822
|
"ICON_SELECTOR": {
|
|
825
823
|
"TITLE": "Select an icon",
|
|
826
824
|
"TAB_IONIC": "Ionic",
|
|
827
|
-
"TAB_MATERIAL": "Material"
|
|
825
|
+
"TAB_MATERIAL": "Material",
|
|
826
|
+
"SEARCH_PLACEHOLDER": "Search an icon..."
|
|
828
827
|
}
|
|
829
828
|
}
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -151,9 +151,7 @@
|
|
|
151
151
|
"LOAD_FAILED": "Échec du chargement du filtre",
|
|
152
152
|
"IMPORT_FAILED": "Échec de l'import du filtre",
|
|
153
153
|
"NOT_FOUND": "Filtre non trouvé"
|
|
154
|
-
}
|
|
155
|
-
"SEARCH": "Rechercher",
|
|
156
|
-
"SEARCH_PLACEHOLDER": "Rechercher une icône..."
|
|
154
|
+
}
|
|
157
155
|
},
|
|
158
156
|
"CONFIGURATION": {
|
|
159
157
|
"OPTIONS": {
|
|
@@ -827,6 +825,7 @@
|
|
|
827
825
|
"ICON_SELECTOR": {
|
|
828
826
|
"TITLE": "Sélectionner une icône",
|
|
829
827
|
"TAB_IONIC": "Ionic",
|
|
830
|
-
"TAB_MATERIAL": "Material"
|
|
828
|
+
"TAB_MATERIAL": "Material",
|
|
829
|
+
"SEARCH_PLACEHOLDER": "Rechercher une icône..."
|
|
831
830
|
}
|
|
832
831
|
}
|
package/src/assets/manifest.json
CHANGED
|
@@ -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.1.
|
|
5
|
+
"version": "21.1.1",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|
package/src/theme/_material.scss
CHANGED
|
@@ -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;
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
border-left: 1px solid #{$app-table-border-color};
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
/* Add a start padding to content (but not the cell itself) (e.g. tables with
|
|
149
|
+
/* Add a start padding to content (but not the cell itself) (e.g. tables with colored group of columns - like BatchGroupsTable) */
|
|
150
150
|
&.mat-mdc-cell-content-start-padding,
|
|
151
151
|
&.mat-mdc-cell-content-padding-start {
|
|
152
152
|
// Reset start padding here (only apply cell's content)
|