@sumaris-net/ngx-components 4.0.0-rc4 → 4.0.0-rc5

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": "4.0.0-rc4",
4
+ "version": "4.0.0-rc5",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -74,8 +74,8 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
74
74
  matInputs: QueryList<ElementRef>;
75
75
  matError: MatError;
76
76
  constructor(dateAdapter: MomentDateAdapter, translate: TranslateService, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective, _defaults?: MatFormFieldDefaultOptions);
77
- _getDisplayedMessages(): 'error' | 'hint';
78
77
  ngOnInit(): void;
78
+ _getDisplayedMessages(): 'error' | 'hint';
79
79
  ngAfterViewInit(): void;
80
80
  ngOnDestroy(): void;
81
81
  writeValue(value: any): void;
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, FormGroupDirective, UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
3
3
  import { LatLongFormatFn, LatLongFormatOptions, LatLongPattern } from './latlong.utils';
4
- import { MatFormFieldAppearance } from '@angular/material/form-field';
4
+ import { MatError, MatFormFieldAppearance, MatFormFieldDefaultOptions, SubscriptSizing } from '@angular/material/form-field';
5
5
  import { AppFloatLabelType } from '../../form/field.model';
6
6
  import { MaskitoMask } from '@maskito/core/lib/types/mask';
7
7
  import * as i0 from "@angular/core";
@@ -9,12 +9,14 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
9
9
  private formBuilder;
10
10
  private cd;
11
11
  private formGroupDir;
12
+ private _defaults?;
12
13
  private _onChangeCallback;
13
14
  private _onTouchedCallback;
14
15
  private _subscription;
15
16
  private _formatOptions;
16
17
  private _disabling;
17
18
  private _writing;
19
+ protected _subscriptSizing: SubscriptSizing | null;
18
20
  _readonly: boolean;
19
21
  _formatFn: LatLongFormatFn;
20
22
  textFormControl: UntypedFormControl;
@@ -38,11 +40,15 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
38
40
  autofocus: boolean;
39
41
  set readonly(value: boolean);
40
42
  get readonly(): boolean;
43
+ get subscriptSizing(): SubscriptSizing;
44
+ set subscriptSizing(value: SubscriptSizing);
41
45
  onBlur: EventEmitter<FocusEvent>;
42
46
  onFocus: EventEmitter<FocusEvent>;
43
47
  inputElement: ElementRef;
44
- constructor(formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective);
48
+ matError: MatError;
49
+ constructor(formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective, _defaults?: MatFormFieldDefaultOptions);
45
50
  ngOnInit(): void;
51
+ _getDisplayedMessages(): 'error' | 'hint';
46
52
  ngOnDestroy(): void;
47
53
  writeValue(obj: any): void;
48
54
  registerOnChange(fn: any): void;
@@ -62,6 +68,6 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
62
68
  private onFormChange;
63
69
  private checkIfTouched;
64
70
  private markForCheck;
65
- static ɵfac: i0.ɵɵFactoryDeclaration<MatLatLongField, [null, null, { optional: true; }]>;
66
- static ɵcmp: i0.ɵɵComponentDeclaration<MatLatLongField, "mat-latlong-field", never, { "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "latLongPattern"; "required": false; }; "required": { "alias": "required"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "defaultSign": { "alias": "defaultSign"; "required": false; }; "maxDecimals": { "alias": "maxDecimals"; "required": false; }; "placeholderChar": { "alias": "placeholderChar"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; }, never, ["mat-error", "mat-hint", "[matPrefix]", "[matSuffix]"], false, never>;
71
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatLatLongField, [null, null, { optional: true; }, null]>;
72
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatLatLongField, "mat-latlong-field", never, { "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "latLongPattern"; "required": false; }; "required": { "alias": "required"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "defaultSign": { "alias": "defaultSign"; "required": false; }; "maxDecimals": { "alias": "maxDecimals"; "required": false; }; "placeholderChar": { "alias": "placeholderChar"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; }, ["matError"], ["mat-error", "mat-hint:not([align='end'])", "mat-hint[align='end']", "[matPrefix]", "[matSuffix]"], false, never>;
67
73
  }
@@ -1,16 +1,29 @@
1
1
  // --------------------------------------------------
2
2
  // Override material style
3
3
  // --------------------------------------------------
4
- .mat-tab-group.mat-secondary, .mat-tab-nav-bar.mat-secondary {
4
+ .mat-mdc-tab-group.mat-secondary, .mat-mdc-tab-nav-bar.mat-secondary {
5
5
  background-color: var(--ion-color-secondary, $secondary);
6
- .mat-tab-link {
6
+ .mat-mdc-tab-link {
7
7
  color: var(--ion-color-secondary-contrast);
8
8
  --mat-tab-header-label-text-tracking: normal;
9
9
  }
10
10
  }
11
- .mat-tab-group.mat-primary .mat-ink-bar, .mat-tab-nav-bar.mat-primary .mat-ink-bar {
11
+ .mat-mdc-tab-group.mat-primary .mat-ink-bar, .mat-mdc-tab-nav-bar.mat-primary .mat-ink-bar {
12
12
  background-color: var(--ion-color-primary, $primary);
13
13
  }
14
+ // Keep some style element that have changed after angular 15 migration
15
+ .mdc-tab {
16
+ min-width: 160px !important;
17
+ }
18
+ .mat-mdc-tab-group, .mat-mdc-tab-nav-bar {
19
+ --mat-tab-header-active-label-text-color: #000000de;
20
+ --mat-tab-header-active-focus-label-text-color: #000000de;
21
+ --mat-tab-header-active-hover-label-text-color: #000000de;
22
+ }
23
+ .mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper {
24
+ transform: translateY(0px) !important;
25
+ }
26
+
14
27
  // Icon, Button
15
28
  .mat-icon.mat-primary,
16
29
  .mat-icon-button.mat-primary,
@@ -35,6 +48,9 @@
35
48
  }
36
49
 
37
50
  // Badge
51
+ .mdc-tab .mat-badge-content {
52
+ padding-left: 2px;
53
+ }
38
54
  .mat-badge-primary .mat-badge-content {
39
55
  background-color: var(--ion-color-tertiary);
40
56
  color: var(--ion-color-tertiary-contrast);
@@ -124,13 +140,6 @@ mat-icon[slot] {
124
140
  pointer-events: none;
125
141
  }
126
142
 
127
-
128
- .mat-mdc-form-field {
129
- --mat-form-field-container-text-size: 14px;
130
- --mdc-filled-text-field-label-text-size: var(--mat-form-field-container-text-size);
131
- }
132
-
133
-
134
143
  // Form Fields
135
144
  .mat-mdc-form-field-errors {
136
145
  margin-top: -20px;
@@ -151,4 +160,3 @@ mat-icon[slot] {
151
160
  }
152
161
  }
153
162
  }
154
-
@@ -847,7 +847,7 @@ mat-button-toggle.mat-button-toggle-checked.mat-button-toggle-disabled {
847
847
  // --------------------------------------------------
848
848
 
849
849
  // --- Allow to hide headers
850
- mat-tab-group.mat-tab-group-header-hidden .mat-tab-header {
850
+ mat-tab-group.mat-tab-group-header-hidden .mat-mdc-tab-header {
851
851
  display: none;
852
852
  }
853
853
 
@@ -56,6 +56,8 @@
56
56
  }
57
57
 
58
58
  .mat-mdc-header-row {
59
+ --mat-table-header-headline-size: 12px;
60
+ --mat-table-header-headline-line-height: 12px;
59
61
  height: var(--app-table-header-height, 52px);
60
62
  border-bottom: 1px solid #{$app-table-border-color};
61
63
  }
@@ -270,6 +272,8 @@
270
272
  app-form-field,
271
273
  .mat-mdc-form-field {
272
274
  width: 100%;
275
+ --mat-form-field-container-text-size: 14px;
276
+ --mdc-filled-text-field-label-text-size: var(--mat-form-field-container-text-size);
273
277
  --mat-mdc-form-field-height: calc(var(--mat-row-height) - 2px);
274
278
  // TODO
275
279
  // use -- active- boder : 0;