@sumaris-net/ngx-components 2.9.6 → 2.9.7

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
@@ -791,3 +791,9 @@ This will allow subclasses to override the default selectedTabIndex after an err
791
791
 
792
792
  # 2.9.4
793
793
  - [fix] Form: reduce line height of row label (form-container > ion-row > ion-col > ion-label)
794
+
795
+ # 2.9.6
796
+ - [fix] MatAutocompleteField: Remove animation in searchbar (bad icon position in iOS)
797
+
798
+ # 2.9.7
799
+ - [fix] Form: fix field label position (form-container > ion-row > ion-col > ion-label)
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": "2.9.6",
4
+ "version": "2.9.7",
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": "2.9.6",
5
+ "version": "2.9.7",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -191,25 +191,64 @@ ion-grid.form-container {
191
191
  padding: 0;
192
192
 
193
193
  & > ion-col {
194
-
195
194
  // No top/bottom padding between grid cell
196
195
  padding-bottom: 0;
197
196
  padding-top: 0;
198
197
 
199
198
  & > ion-label {
200
199
  color: var(--ion-color-primary100);
201
- padding-inline-end: 5px;
202
- line-height: 1rem;
203
200
  }
204
201
 
205
- & > ion-label[text-wrap] {
202
+ & > ion-label[text-wrap],
203
+ & > ion-label.ion-text-wrap {
206
204
  word-wrap: normal;
207
205
  white-space: normal;
206
+ line-height: 1rem !important;
208
207
  }
209
208
  }
210
209
  }
211
210
  }
212
211
 
212
+
213
+ // --------------------------------------------------
214
+ // Forms
215
+ // --------------------------------------------------
216
+ // On small screen, align label on left
217
+ @media screen and (max-width: $screen-sm-max) {
218
+ form.form-container > ion-grid,
219
+ ion-grid.form-container {
220
+ ion-col > ion-label.ion-float-center,
221
+ ion-col > ion-label.ion-float-end {
222
+ display: block;
223
+ width: 100%;
224
+ text-align: start !important;
225
+ line-height: 37px;
226
+ min-height: 37px;
227
+ margin-top: 0;
228
+ margin-bottom: 0;
229
+ margin-right: 0;
230
+ }
231
+ }
232
+ }
233
+
234
+ // On large screen, align label on right
235
+ @media screen and (min-width: $screen-md) {
236
+
237
+ form.form-container > ion-grid,
238
+ ion-grid.form-container {
239
+ ion-col > ion-label.ion-float-center,
240
+ ion-col > ion-label.ion-float-end {
241
+ display: block;
242
+ text-align: end !important;
243
+ min-height: var(--mat-form-field-container-height, 45px);
244
+ margin-top: 11px;
245
+ margin-bottom: 11px;
246
+ padding-inline-end: 5px;
247
+ }
248
+ }
249
+ }
250
+
251
+
213
252
  // TODO: activer ce code et tester les mat-select en dark mode
214
253
  //html {
215
254
  // div.mat-mdc-select-panel {
@@ -326,37 +326,6 @@ body {
326
326
  }
327
327
  }
328
328
 
329
- // --------------------------------------------------
330
- // Forms
331
- // --------------------------------------------------
332
- // On small screen, align label on left
333
- @media screen and (max-width: $screen-sm-max) {
334
- form ion-col>ion-label.ion-float-center,
335
- form ion-col>ion-label.ion-float-end {
336
- display: block;
337
- width: 100%;
338
- text-align: start !important;
339
- line-height: 37px;
340
- margin-top: 0;
341
- margin-bottom: 0;
342
- margin-right: 0;
343
- //padding-left: var(--ion-label-padding, 11px);
344
- //background-color: var(--ion-color-light);
345
- }
346
- }
347
-
348
- // On large screen, align label on right
349
- @media screen and (min-width: $screen-md) {
350
- form ion-col > ion-label.ion-float-center,
351
- form ion-col > ion-label.ion-float-end {
352
- display: block;
353
- text-align: end !important;
354
- line-height: 37px;
355
- margin-top: 11px;
356
- margin-bottom: 11px;
357
- }
358
- }
359
-
360
329
  // --------------------------------------------------
361
330
  // Modals
362
331
  // --------------------------------------------------