@sumaris-net/ngx-components 2.7.3-rc37 → 2.7.3-rc39

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": "2.7.3-rc37",
4
+ "version": "2.7.3-rc39",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -80,7 +80,6 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
80
80
  matError: MatError;
81
81
  constructor(dateAdapter: MomentDateAdapter, translate: TranslateService, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective, defaultOptions?: MatFormFieldDefaultOptions);
82
82
  ngOnInit(): void;
83
- _getDisplayedMessages(): 'error' | 'hint';
84
83
  ngAfterViewInit(): void;
85
84
  ngOnDestroy(): void;
86
85
  writeValue(value: any): void;
@@ -101,7 +100,7 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
101
100
  protected _onBlur(): void;
102
101
  protected _checkIfTouched(): void;
103
102
  protected _preventEvent(event?: Event): void;
104
- private updatePattern;
103
+ private updateTranslations;
105
104
  private onFormChange;
106
105
  private emitChange;
107
106
  private updateTabIndex;
@@ -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.7.3-rc37",
5
+ "version": "2.7.3-rc39",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -67,10 +67,6 @@
67
67
  --mat-select-trigger-text-line-height: inherit;
68
68
  }
69
69
 
70
- // Badge
71
- .mdc-tab .mat-badge-content {
72
- padding-left: 2px;
73
- }
74
70
  .mat-badge-primary .mat-badge-content {
75
71
  background-color: var(--ion-color-tertiary);
76
72
  color: var(--ion-color-tertiary-contrast);
@@ -271,6 +271,12 @@ form.form-container {
271
271
  }
272
272
  }
273
273
 
274
+ .mat-mdc-form-field-subscript-wrapper {
275
+ mat-hint {
276
+ --color: rgb(115,115,115);
277
+ color: var(--color);
278
+ }
279
+ }
274
280
 
275
281
  /* -- Computed field -- */
276
282
 
@@ -12,21 +12,22 @@
12
12
  .mat-mdc-table {
13
13
  min-width: calc(100% - 1px);
14
14
  border-collapse: separate;
15
+ --mat-table-row-item-label-text-size: 14px;
16
+ --mat-table-row-item-label-text-tracking: normal;
15
17
  --mat-row-height: #{$app-table-row-height};
16
18
  --mat-row-max-height: #{$app-table-row-max-height};
17
19
  --mat-cell-horizontal-padding: #{$app-table-cell-horizontal-padding};
18
20
  --mat-cell-padding-top: calc(var(--mat-row-height) * 0.5 - 14px);
19
21
 
20
- --mdc-checkbox-state-layer-size: 20px;
21
22
  --mdc-typography-body1-font-size: 14px;
22
- --mat-table-row-item-label-text-tracking: normal;
23
- --mat-form-field-container-text-tracking: normal;
24
23
  --mdc-typography-body1-letter-spacing: normal;
25
- --mat-table-row-item-label-text-size: 14px;
26
24
 
25
+ --mat-form-field-container-text-tracking: normal;
26
+ --mat-form-field-state-layer-color: transparent;
27
+ --mat-form-field-subscript-text-size: 10px;
28
+ --mdc-checkbox-state-layer-size: 20px;
27
29
  --mdc-filled-text-field-container-color: transparent;
28
30
  --mdc-filled-text-field-disabled-container-color: transparent;
29
- --mat-form-field-state-layer-color: transparent;
30
31
 
31
32
  .mat-mdc-header-cell {
32
33
  color: var(--ion-color-primary);
@@ -359,11 +360,11 @@
359
360
  // Suffix
360
361
  .mat-mdc-form-field-icon-suffix {
361
362
  white-space: nowrap;
363
+ padding: 0;
362
364
 
363
365
  .mat-mdc-icon-button {
364
- width: 24px;
365
- height: 24px;
366
- padding: 2px 0 0 0;
366
+ --mdc-icon-button-state-layer-size: 24px;
367
+ padding: 0;
367
368
 
368
369
  ion-icon, .mat-icon {
369
370
  $font-size: calculateRem(18px);
@@ -372,7 +373,7 @@
372
373
  }
373
374
 
374
375
  .mat-mdc-button-touch-target {
375
- width: 24px;
376
+ width: var(--mdc-icon-button-state-layer-size);
376
377
  }
377
378
  }
378
379
 
@@ -390,13 +391,6 @@
390
391
  }
391
392
  }
392
393
 
393
- .mat-mdc-form-field-subscript-wrapper,
394
- .mat-mdc-form-field-subscript-wrapper.mat-mdc-form-field-bottom-align {
395
- margin-top: -1.5rem;
396
- text-align: right;
397
- pointer-events: none;
398
- }
399
-
400
394
  // FIXME: in table, required indicator is only inside the float label
401
395
  .mat-mdc-floating-label {
402
396
  display: none;
@@ -408,13 +402,19 @@
408
402
  color: rgba(0, 0, 0, 0.6) !important;
409
403
  -webkit-text-fill-color: rgba(0, 0, 0, 0.6) !important;
410
404
  }
411
-
412
- mat-error {
413
- font-size: 10px;
414
- }
415
-
416
405
  } // .mat-mdc-form-field
417
406
 
407
+ .mat-mdc-form-field-subscript-wrapper,
408
+ .mat-mdc-form-field-subscript-wrapper.mat-mdc-form-field-bottom-align {
409
+ margin-top: -1.5rem;
410
+ text-align: right;
411
+ pointer-events: none;
412
+
413
+ mat-error,
414
+ mat-hint {
415
+ font-size: var(--mat-form-field-subscript-text-size);
416
+ }
417
+ }
418
418
 
419
419
  .mat-boolean-field-radio.mat-mdc-form-field-appearance-fill .mat-mdc-form-field-infix,
420
420
  .mat-boolean-field-radio .mat-mdc-form-field-infix {
@@ -437,16 +437,20 @@
437
437
  mat-date-time-field,
438
438
  mat-latlong-field {
439
439
  height: calc(var(--mat-row-height) - 2px);
440
- .mat-mdc-form-field-subscript-wrapper {
441
- margin-top: -1.5rem;
442
- text-align: right;
443
- pointer-events: none;
444
- }
445
- mat-error {
446
- font-size: 10px;
440
+ }
441
+
442
+ mat-date-time-field {
443
+ ion-col.hour {
444
+ --max-width: var(--min-width) !important;
447
445
  }
448
446
  }
449
447
 
448
+ mat-latlong-field {
449
+ ion-col.sign {
450
+ --min-width: 35px !important;
451
+ --max-width: 45px !important;
452
+ }
453
+ }
450
454
 
451
455
  .mat-mdc-cell > .ion-text-nowrap {
452
456
  width: 100%;
@@ -35,3 +35,4 @@
35
35
  .mat-mdc-tab-group.mat-mdc-tab-disabled-visible .mat-mdc-tab-disabled {
36
36
  display: inherit;
37
37
  }
38
+