@sumaris-net/ngx-components 18.2.28-alpha6 → 18.2.28

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": "18.2.28-alpha6",
4
+ "version": "18.2.28",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -4,7 +4,6 @@ import { MatFormField, MatFormFieldAppearance, MatFormFieldDefaultOptions, Subsc
4
4
  import { AppFloatLabelType } from '../../form/field.model';
5
5
  import { LatLongPattern, LatLongType } from './latlong.utils';
6
6
  import { MatSelect } from '@angular/material/select';
7
- import { MaskitoOptions } from '@maskito/core';
8
7
  import * as i0 from "@angular/core";
9
8
  declare type LatLongSign = 1 | -1;
10
9
  interface ILatLongData {
@@ -29,9 +28,9 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
29
28
  private readonly _defaultSubscriptSizing;
30
29
  protected _focused: boolean;
31
30
  protected _touched: boolean;
32
- protected degreesControl: FormControl<string>;
33
- protected minutesControl: FormControl<string>;
34
- protected secondsControl: FormControl<string>;
31
+ protected degreesControl: FormControl<number>;
32
+ protected minutesControl: FormControl<number>;
33
+ protected secondsControl: FormControl<number>;
35
34
  protected signControl: FormControl<LatLongSign>;
36
35
  protected showMinutes: boolean;
37
36
  protected showSeconds: boolean;
@@ -39,9 +38,6 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
39
38
  protected degreesPlaceholder: string;
40
39
  protected minutesPlaceholder: string;
41
40
  protected secondsPlaceholder: string;
42
- protected degreesMask: MaskitoOptions;
43
- protected minutesMask: MaskitoOptions;
44
- protected secondsMask: MaskitoOptions;
45
41
  protected patternMaxDecimals: number;
46
42
  protected i18nErrorKeys: {
47
43
  required: string;
@@ -70,6 +66,23 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
70
66
  inconsistent: string;
71
67
  equals: string;
72
68
  };
69
+ protected minMaxValues: {
70
+ degrees?: {
71
+ min: number;
72
+ max: number;
73
+ step: number;
74
+ };
75
+ minutes?: {
76
+ min: number;
77
+ max: number;
78
+ step: number;
79
+ };
80
+ seconds?: {
81
+ min: number;
82
+ max: number;
83
+ step: number;
84
+ };
85
+ };
73
86
  formControl: UntypedFormControl;
74
87
  formControlName: string;
75
88
  type: LatLongType;
@@ -85,7 +98,6 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
85
98
  minutesSymbolUnit: string;
86
99
  secondsSymbolUnit: string;
87
100
  clearable: boolean;
88
- classList: string;
89
101
  set tabindex(value: number);
90
102
  get tabindex(): number;
91
103
  set appearance(value: MatFormFieldAppearance);
@@ -120,6 +132,7 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
120
132
  protected _onFocusInput(event: FocusEvent): void;
121
133
  protected _onBlurInput(event: FocusEvent): void;
122
134
  protected _onClickInput(event: UIEvent): void;
135
+ protected selectInput(input: any): void;
123
136
  protected focus(target?: any): boolean;
124
137
  protected format(rawValue: number): string;
125
138
  protected computeDecimalPart(value: number, nbOfDecimals: number): number;
@@ -139,7 +152,7 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
139
152
  */
140
153
  private updateTabIndex;
141
154
  static ɵfac: i0.ɵɵFactoryDeclaration<MatLatLongField2, [null, { optional: true; }, null]>;
142
- static ɵcmp: i0.ɵɵComponentDeclaration<MatLatLongField2, "mat-latlong-field", never, { "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "latLongPattern"; "required": false; }; "maxDecimals": { "alias": "maxDecimals"; "required": false; }; "required": { "alias": "required"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "defaultSign": { "alias": "defaultSign"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "degreesSymbolUnit": { "alias": "degreesSymbolUnit"; "required": false; }; "minutesSymbolUnit": { "alias": "minutesSymbolUnit"; "required": false; }; "secondsSymbolUnit": { "alias": "secondsSymbolUnit"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; }, { "keyupEnter": "keyup.enter"; "blurred": "blur"; "focused": "focus"; }, never, ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
155
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatLatLongField2, "mat-latlong-field", never, { "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "latLongPattern"; "required": false; }; "maxDecimals": { "alias": "maxDecimals"; "required": false; }; "required": { "alias": "required"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "defaultSign": { "alias": "defaultSign"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "degreesSymbolUnit": { "alias": "degreesSymbolUnit"; "required": false; }; "minutesSymbolUnit": { "alias": "minutesSymbolUnit"; "required": false; }; "secondsSymbolUnit": { "alias": "secondsSymbolUnit"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; }, { "keyupEnter": "keyup.enter"; "blurred": "blur"; "focused": "focus"; }, never, ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
143
156
  static ngAcceptInputType_mobile: unknown;
144
157
  static ngAcceptInputType_clearable: unknown;
145
158
  static ngAcceptInputType_tabindex: unknown;
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "18.2.28-alpha4",
5
+ "version": "18.2.28",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -196,13 +196,13 @@ mat-icon[slot] {
196
196
  }
197
197
 
198
198
  // Latitude/Longitude component
199
- .mat-latlong-field {
199
+ .mat-latlong-form-field {
200
200
 
201
201
  .mat-mdc-form-field-infix {
202
202
  display: inline-flex;
203
203
 
204
204
  .mat-mdc-select.sign {
205
- max-width: 1.7em;
205
+ max-width: 2em;
206
206
 
207
207
  .mat-mdc-select-trigger {
208
208
  align-items: baseline;
@@ -477,8 +477,13 @@
477
477
 
478
478
  mat-latlong-field {
479
479
  height: calc(var(--mat-row-height) - 2px);
480
-
481
- // TODO: fix height in table ??
480
+ ion-col.text {
481
+ min-width: unset !important; // make sure column is resizable
482
+ }
483
+ ion-col.sign {
484
+ --min-width: 35px !important;
485
+ --max-width: 45px !important;
486
+ }
482
487
  }
483
488
 
484
489
  .mat-mdc-cell > .ion-text-nowrap {