@sumaris-net/ngx-components 2.7.3-rc33 → 2.7.3-rc35

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-rc33",
4
+ "version": "2.7.3-rc35",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -36,35 +36,38 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
36
36
  private _formControl;
37
37
  private _controlName;
38
38
  private _required;
39
+ private _appearance;
39
40
  private _subscriptSizing;
41
+ private readonly _defaultAppearance;
40
42
  private readonly _defaultSubscriptSizing;
41
- dateControl: UntypedFormControl;
42
- timeControl: UntypedFormControl;
43
- displayPattern: string;
44
- datePattern: string;
45
- timePattern: string;
46
- locale: string;
47
- maskitoDateOptions: MaskitoOptions;
48
- maskitoTimeOptions: MaskitoOptions;
49
- datePlaceholder: string;
50
- timePlaceholder: string;
51
- set subscriptSizing(value: SubscriptSizing);
52
- get subscriptSizing(): SubscriptSizing;
53
- set formControl(value: UntypedFormControl);
54
- get formControl(): UntypedFormControl;
55
- set formControlName(value: string);
56
- get formControlName(): string;
57
- set required(value: boolean | any);
58
- get required(): boolean | any;
43
+ protected dateControl: UntypedFormControl;
44
+ protected timeControl: UntypedFormControl;
45
+ protected displayPattern: string;
46
+ protected datePattern: string;
47
+ protected timePattern: string;
48
+ protected locale: string;
49
+ protected maskitoDateOptions: MaskitoOptions;
50
+ protected maskitoTimeOptions: MaskitoOptions;
51
+ protected datePlaceholder: string;
52
+ protected timePlaceholder: string;
59
53
  placeholder: string;
60
54
  floatLabel: AppFloatLabelType;
61
- appearance: MatFormFieldAppearance;
62
55
  mobile: boolean;
63
56
  compact: boolean;
64
57
  autofocus: boolean;
65
58
  startDate: Moment | null;
66
59
  clearable: boolean;
67
60
  datePickerFilter: DateFilterFn<Moment>;
61
+ set appearance(value: MatFormFieldAppearance);
62
+ get appearance(): MatFormFieldAppearance;
63
+ set subscriptSizing(value: SubscriptSizing);
64
+ get subscriptSizing(): SubscriptSizing;
65
+ set formControl(value: UntypedFormControl);
66
+ get formControl(): UntypedFormControl;
67
+ set formControlName(value: string);
68
+ get formControlName(): string;
69
+ set required(value: boolean | any);
70
+ get required(): boolean | any;
68
71
  set readonly(value: boolean);
69
72
  get readonly(): boolean;
70
73
  set tabindex(value: number);
@@ -108,6 +111,6 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
108
111
  private updateDateMaskOptions;
109
112
  private updateTimeMaskOptions;
110
113
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDateTime, [null, null, null, null, { optional: true; }, null]>;
111
- static ɵcmp: i0.ɵɵComponentDeclaration<MatDateTime, "mat-date-time-field", never, { "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "datePickerFilter": { "alias": "datePickerFilter"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; }, {}, ["matError"], ["mat-error", "mat-hint", "[matPrefix]"], false, never>;
114
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatDateTime, "mat-date-time-field", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "datePickerFilter": { "alias": "datePickerFilter"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; }, {}, ["matError"], ["mat-error", "mat-hint", "[matPrefix]"], false, never>;
112
115
  }
113
116
  export {};
@@ -16,12 +16,12 @@ export declare class DateTimeTestPage implements OnInit {
16
16
  memoryTimer: Subscription;
17
17
  form: UntypedFormGroup;
18
18
  mode: 'mobile' | 'desktop' | 'memory' | 'temp';
19
- mobileApparence: MatFormFieldAppearance;
19
+ appearance: MatFormFieldAppearance;
20
20
  noTimeProperty: string;
21
21
  constructor(platform: Platform, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef);
22
22
  ngOnInit(): void;
23
23
  toggleMode(value: any): void;
24
- toggleMobileApparence(event: MatCheckboxChange): void;
24
+ toggleAppearance(event: MatCheckboxChange): void;
25
25
  loadData(): Promise<void>;
26
26
  doSubmit(event: any): void;
27
27
  log(message: string): void;
@@ -15,7 +15,9 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
15
15
  private _formatOptions;
16
16
  private _disabling;
17
17
  private _writing;
18
+ private _appearance;
18
19
  private _subscriptSizing;
20
+ private readonly _defaultAppearance;
19
21
  private readonly _defaultSubscriptSizing;
20
22
  _readonly: boolean;
21
23
  _formatFn: LatLongFormatFn;
@@ -31,13 +33,14 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
31
33
  pattern: LatLongPattern;
32
34
  required: boolean;
33
35
  floatLabel: AppFloatLabelType;
34
- appearance: MatFormFieldAppearance;
35
36
  placeholder: string;
36
37
  tabindex: number;
37
38
  defaultSign: '-' | '+' | '+ ' | '- ';
38
39
  maxDecimals: number;
39
40
  placeholderChar: string;
40
41
  autofocus: boolean;
42
+ set appearance(value: MatFormFieldAppearance);
43
+ get appearance(): MatFormFieldAppearance;
41
44
  set readonly(value: boolean);
42
45
  get readonly(): boolean;
43
46
  set subscriptSizing(value: SubscriptSizing);
@@ -68,5 +71,5 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
68
71
  private checkIfTouched;
69
72
  private markForCheck;
70
73
  static ɵfac: i0.ɵɵFactoryDeclaration<MatLatLongField, [null, null, { optional: true; }, null]>;
71
- 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>;
74
+ 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; }; "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; }; "appearance": { "alias": "appearance"; "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>;
72
75
  }
@@ -1,6 +1,8 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
3
3
  import { PlatformService } from '../../../../core/services/platform.service';
4
+ import { MatFormFieldAppearance } from '@angular/material/form-field';
5
+ import { MatCheckboxChange } from '@angular/material/checkbox';
4
6
  import * as i0 from "@angular/core";
5
7
  export declare class LatLongTestPage implements OnInit {
6
8
  protected formBuilder: UntypedFormBuilder;
@@ -8,12 +10,14 @@ export declare class LatLongTestPage implements OnInit {
8
10
  form: UntypedFormGroup;
9
11
  geoPositionMessage: string;
10
12
  mode: string;
13
+ appearance: MatFormFieldAppearance;
11
14
  constructor(formBuilder: UntypedFormBuilder, platform: PlatformService);
12
15
  ngOnInit(): void;
13
16
  toggleMode(value: any): void;
14
17
  loadData(): Promise<void>;
15
18
  doSubmit(event: any): void;
16
19
  geoPosition(event: Event, controlName?: string): Promise<void>;
20
+ toggleAppearance(event: MatCheckboxChange): void;
17
21
  stringify: {
18
22
  (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
19
23
  (value: any, replacer?: (string | number)[], space?: string | number): string;
@@ -1,2 +1,3 @@
1
- import { SubscriptSizing } from '@angular/material/form-field';
1
+ import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
2
2
  export declare const MAT_FORM_FIELD_DEFAULT_SUBSCRIPT_SIZING: SubscriptSizing;
3
+ export declare const MAT_FORM_FIELD_DEFAULT_APPEARANCE: MatFormFieldAppearance;
@@ -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-rc33",
5
+ "version": "2.7.3-rc35",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -197,7 +197,6 @@ form.form-container {
197
197
  mat-icon[matSuffix],
198
198
  .mat-mdc-form-field-icon-suffix {
199
199
  white-space: nowrap;
200
- align-self: baseline;
201
200
 
202
201
  .mat-mdc-icon-button {
203
202
  --mdc-icon-button-state-layer-size: 24px;