@sumaris-net/ngx-components 2.7.3-rc4 → 2.7.3-rc40

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.
Files changed (40) hide show
  1. package/esm2022/src/app/admin/users/users.mjs +2 -2
  2. package/esm2022/src/app/core/account/account.page.mjs +1 -1
  3. package/esm2022/src/app/core/form/properties/properties.form.mjs +1 -1
  4. package/esm2022/src/app/core/form/properties/properties.table.mjs +1 -1
  5. package/esm2022/src/app/core/register/register.form.mjs +1 -1
  6. package/esm2022/src/app/core/services/config/core.config.mjs +7 -1
  7. package/esm2022/src/app/core/settings/settings.page.mjs +1 -1
  8. package/esm2022/src/app/core/table/testing/table-validator.service.mjs +4 -1
  9. package/esm2022/src/app/core/table/testing/table.testing.mjs +39 -20
  10. package/esm2022/src/app/shared/form/field.component.mjs +10 -7
  11. package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +8 -5
  12. package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +3 -3
  13. package/esm2022/src/app/shared/material/chips/material.chips.mjs +3 -3
  14. package/esm2022/src/app/shared/material/datetime/material.date.mjs +10 -3
  15. package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +71 -41
  16. package/esm2022/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +6 -6
  17. package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +16 -11
  18. package/esm2022/src/app/shared/material/latlong/testing/latlong.test.mjs +7 -3
  19. package/esm2022/src/app/shared/material/material.config.mjs +2 -1
  20. package/esm2022/src/app/shared/material/testing/common.test.mjs +3 -3
  21. package/esm2022/src/app/shared/pipes/maskito.pipe.mjs +37 -16
  22. package/fesm2022/sumaris-net.ngx-components.mjs +238 -139
  23. package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
  24. package/package.json +1 -1
  25. package/src/app/core/services/config/core.config.d.ts +1 -0
  26. package/src/app/shared/form/field.component.d.ts +5 -3
  27. package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +1 -0
  28. package/src/app/shared/material/datetime/material.date.d.ts +1 -0
  29. package/src/app/shared/material/datetime/material.datetime.d.ts +25 -22
  30. package/src/app/shared/material/datetime/testing/mat-date-time.test.d.ts +2 -2
  31. package/src/app/shared/material/latlong/material.latlong.d.ts +5 -3
  32. package/src/app/shared/material/latlong/testing/latlong.test.d.ts +4 -0
  33. package/src/app/shared/material/material.config.d.ts +2 -1
  34. package/src/assets/manifest.json +1 -1
  35. package/src/theme/_material.scss +16 -4
  36. package/src/theme/_mixins.scss +6 -4
  37. package/src/theme/_ngx-components.globals.scss +7 -4
  38. package/src/theme/_ngx-components.scss +65 -46
  39. package/src/theme/_ngx-components.table.scss +88 -129
  40. package/src/theme/_ngx-components.tabs.scss +0 -324
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-rc4",
4
+ "version": "2.7.3-rc40",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -24,6 +24,7 @@ export declare const CORE_CONFIG_OPTIONS: Readonly<{
24
24
  COLOR_WARNING: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
25
25
  COLOR_ACCENT: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
26
26
  COLOR_DANGER: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
27
+ FORM_FIELD_BACKGROUND_COLOR: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
27
28
  ANDROID_INSTALL_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
28
29
  DB_TIMEZONE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
29
30
  ACCOUNT_READONLY: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
@@ -1,12 +1,13 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, Injector, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@angular/forms';
3
- import { DisplayFn, FormFieldDefinition, FormFieldType, AppFloatLabelType } from './field.model';
3
+ import { AppFloatLabelType, DisplayFn, FormFieldDefinition, FormFieldType } from './field.model';
4
4
  import { TranslateService } from '@ngx-translate/core';
5
5
  import { filterNumberInput, selectInputContent } from '../inputs';
6
6
  import { Property } from '../types';
7
7
  import { ThemePalette } from '@angular/material/core';
8
8
  import { PredefinedColors } from '@ionic/core';
9
9
  import { MatAutocompleteField } from '../material/autocomplete/material.autocomplete';
10
+ import { MatFormFieldAppearance } from '@angular/material/form-field';
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class AppFormField implements OnInit, ControlValueAccessor {
12
13
  protected translate: TranslateService;
@@ -29,12 +30,13 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
29
30
  placeholder: string;
30
31
  compact: boolean;
31
32
  floatLabel: AppFloatLabelType;
33
+ appearance: MatFormFieldAppearance;
32
34
  tabindex: number;
33
35
  autofocus: boolean;
34
36
  clearable: boolean;
35
37
  chipColor: ThemePalette | PredefinedColors;
36
- debug: boolean;
37
38
  classList: string;
39
+ debug: boolean;
38
40
  onKeyupEnter: EventEmitter<any>;
39
41
  get value(): any;
40
42
  matInput: ElementRef;
@@ -67,5 +69,5 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
67
69
  }): void;
68
70
  protected updateTabIndex(timeout?: number): void;
69
71
  static ɵfac: i0.ɵɵFactoryDeclaration<AppFormField, [null, null, null, { optional: true; }]>;
70
- static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": { "alias": "definition"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "classList": { "alias": "class"; "required": false; }; }, { "onKeyupEnter": "keyup.enter"; }, never, ["[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]"], false, never>;
72
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": { "alias": "definition"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; }, { "onKeyupEnter": "keyup.enter"; }, never, ["[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]"], false, never>;
71
73
  }
@@ -112,6 +112,7 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
112
112
  filterInputTextFocusEvent(event: FocusEvent): boolean;
113
113
  protected filterInputTextBlurEvent(event: FocusEvent): void;
114
114
  protected ionSearchBarChanged(event: Event): void;
115
+ ionSearchBarChanged1(event: any): void;
115
116
  filterMatSelectFocusEvent(event: FocusEvent): void;
116
117
  filterMatSelectBlurEvent(event: FocusEvent): boolean;
117
118
  clearValue(event?: Event): void;
@@ -61,6 +61,7 @@ export declare class MatDate implements OnInit, AfterViewInit, OnDestroy, Contro
61
61
  clear(): void;
62
62
  protected _onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
63
63
  protected _openDatePickerIfMobile(event: Event): void;
64
+ protected _onBlur(): void;
64
65
  protected _checkIfTouched(opts?: {
65
66
  emitEvent?: boolean;
66
67
  }): void;
@@ -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);
@@ -77,7 +80,6 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
77
80
  matError: MatError;
78
81
  constructor(dateAdapter: MomentDateAdapter, translate: TranslateService, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective, defaultOptions?: MatFormFieldDefaultOptions);
79
82
  ngOnInit(): void;
80
- _getDisplayedMessages(): 'error' | 'hint';
81
83
  ngAfterViewInit(): void;
82
84
  ngOnDestroy(): void;
83
85
  writeValue(value: any): void;
@@ -95,9 +97,10 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
95
97
  protected _onTimePickerChange(timeStr: string): void;
96
98
  protected _openDatePickerIfMobile(event?: Event, datePicker?: MatDatepicker<any>): void;
97
99
  protected _openTimePickerIfMobile(event?: Event): void;
100
+ protected _onBlur(): void;
98
101
  protected _checkIfTouched(): void;
99
102
  protected _preventEvent(event?: Event): void;
100
- private updatePattern;
103
+ private updateTranslations;
101
104
  private onFormChange;
102
105
  private emitChange;
103
106
  private updateTabIndex;
@@ -107,6 +110,6 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
107
110
  private updateDateMaskOptions;
108
111
  private updateTimeMaskOptions;
109
112
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDateTime, [null, null, null, null, { optional: true; }, null]>;
110
- 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>;
113
+ 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:not([align='end'])", "mat-hint[align='end']", "[matPrefix]"], false, never>;
111
114
  }
112
115
  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);
@@ -48,7 +51,6 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
48
51
  matError: MatError;
49
52
  constructor(formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective, defaultOptions?: MatFormFieldDefaultOptions);
50
53
  ngOnInit(): void;
51
- _getDisplayedMessages(): 'error' | 'hint';
52
54
  ngOnDestroy(): void;
53
55
  writeValue(obj: any): void;
54
56
  registerOnChange(fn: any): void;
@@ -69,5 +71,5 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
69
71
  private checkIfTouched;
70
72
  private markForCheck;
71
73
  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>;
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>;
73
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-rc4",
5
+ "version": "2.7.3-rc40",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -50,11 +50,23 @@
50
50
  --mdc-typography-button-letter-spacing: normal;
51
51
  --mdc-text-button-label-text-tracking: normal;
52
52
  }
53
-
54
- // Badge
55
- .mdc-tab .mat-badge-content {
56
- padding-left: 2px;
53
+ .mat-mdc-menu-item {
54
+ --mat-menu-item-label-text-tracking: normal;
55
+ --mat-menu-item-label-text-size: 14px;
56
+ --mat-menu-item-icon-color: #0000008a;
57
+ }
58
+ .mat-mdc-option {
59
+ --mat-option-label-text-tracking: normal;
60
+ --mat-option-label-text-size: 16px;
61
+ }
62
+ .mat-mdc-select {
63
+ --mat-select-trigger-text-font: inherit;
64
+ --mat-select-trigger-text-tracking: normal;
65
+ --mat-select-trigger-text-size: inherit;
66
+ --mat-select-disabled-trigger-text-color: inherit;
67
+ --mat-select-trigger-text-line-height: inherit;
57
68
  }
69
+
58
70
  .mat-badge-primary .mat-badge-content {
59
71
  background-color: var(--ion-color-tertiary);
60
72
  color: var(--ion-color-tertiary-contrast);
@@ -98,21 +98,23 @@
98
98
  --ion-grid-column-padding: #{$ion-grid-column-padding};
99
99
  --ion-padding: #{$ion-padding};
100
100
  --ion-margin: #{$ion-margin};
101
+ --ion-toolbar-height: #{$ion-toolbar-height};
101
102
 
102
103
  --expansion-panel-padding: var(--ion-padding);
103
104
  --expansion-panel-header-padding: var(--ion-padding);
104
105
 
105
106
  --mat-toolbar-height: #{$mat-toolbar-height-desktop};
106
107
  --mat-paginator-height: mat.$paginator-height;
107
- --ion-toolbar-height: #{$ion-toolbar-height};
108
+ --mat-tab-link-height: #{$mat-tab-link-height};
109
+ --mat-tab-bar-height: #{$mat-tab-bar-height};
108
110
 
109
111
  --app-table-header-height: #{$app-table-header-height};
110
112
  --app-toolbar-height: #{$app-toolbar-height};
111
- //--app-paginator-height: #{$app-paginator-height};
113
+ --app-paginator-height: #{$app-paginator-height};
112
114
  --app-form-buttons-bar-height: #{$app-form-buttons-bar-height};
113
115
  --app-footer-height: var(--app-form-buttons-bar-height);
114
- --mat-tab-link-height: #{$mat-tab-link-height};
115
- --mat-tab-bar-height: #{$mat-tab-bar-height};
116
+ --app-form-field-background-color: #{$app-form-field-background-color};
117
+ --app-form-field-disabled-background-color: #{$app-form-field-disabled-background-color};
116
118
  }
117
119
 
118
120
  @mixin css-variables-to-root-mobile() {
@@ -16,7 +16,10 @@ $app-form-buttons-bar-height: 56px !default;
16
16
  $app-select-option-border-color: rgba(0, 0, 0, 0.12) !default;
17
17
  $app-table-border-color: rgba(0, 0, 0, 0.08) !default;
18
18
 
19
- $app-form-field-background-color: rgba(0,0,0,0) !default;
20
- //$app-form-field-background-color: whitesmoke !default;
21
- $app-form-field-focus-background-color: rgba(0, 0, 0, 0) !default;
22
- //$app-form-field-focus-background-color: rgba(0, 0, 0, 0.87) !default;
19
+ // Form's field background
20
+ $app-form-field-background-color: rgb(245,245,245) !default;
21
+ $app-form-field-disabled-background-color: #fafafa !default;
22
+
23
+ // Form fields background : transparent
24
+ //$app-form-field-background-color: transparent !default;
25
+ //$app-form-field-disabled-background-color: transparent !default;
@@ -132,18 +132,27 @@ ion-menu.menu-side-left {
132
132
  .form-container,
133
133
  form.form-container {
134
134
  color: #{$app-form-color};
135
- --mdc-filled-text-field-container-color: #{$app-form-field-background-color};
136
- --mdc-filled-text-field-disabled-container-color: #{$app-form-field-background-color};
137
- --mat-form-field-state-layer-color: #{$app-form-field-focus-background-color};
138
135
  @include font-size(16px);
139
136
 
137
+ --mdc-filled-text-field-container-color: var(--app-form-field-background-color);
138
+ --mdc-filled-text-field-disabled-container-color: var(--app-form-field-disabled-background-color);
139
+ --mat-form-field-state-layer-color: var(--app-form-field-focus-background-color);
140
+ --mat-form-field-container-height: 45px;
141
+ --mat-form-field-container-text-size: inherit;
142
+ --mat-form-field-filled-label-display: block;
143
+ --mat-form-field-container-vertical-padding: 8px;
144
+ --mat-form-field-filled-with-label-container-padding-top: 18px;
145
+ --mat-form-field-filled-with-label-container-padding-bottom: 0px;
146
+ --mdc-filled-text-field-label-text-tracking: normal;
147
+ --mat-select-trigger-text-size: var(--mat-form-field-container-text-size);
148
+
140
149
  .mat-form-field-disabled,
141
150
  .mat-mdc-input-element:disabled {
142
151
  color: #{$app-form-color-disabled} !important;
143
152
  }
144
153
 
145
154
  .mat-form-field-disabled {
146
- .mat-mdc-form-field-infix{
155
+ .mat-mdc-form-field-infix {
147
156
  min-height: 41px;
148
157
  }
149
158
  }
@@ -166,16 +175,21 @@ form.form-container {
166
175
  mat-icon[matPrefix],
167
176
  .mat-mdc-form-field-icon-prefix {
168
177
 
178
+ --mdc-icon-button-icon-size: 24px;
179
+ --mdc-icon-button-icon-color: inherit;
180
+ --mdc-icon-button-state-layer-size: 48px;
181
+ --mdc-icon-button-margin-vertical: 12px;
182
+
169
183
  ion-icon, .mat-icon {
170
- $font-size: calculateRem(24px);
171
- $margin-vertical: calculateRem(4px);
172
- font-size: $font-size !important;
184
+ font-size: var(--mdc-icon-button-icon-size) !important;
173
185
  line-height: 1.125;
174
- height: $font-size;
175
- width: $font-size;
176
- margin-left: $margin-vertical;
177
- margin-right: $margin-vertical;
186
+ height: var(--mdc-icon-button-icon-size);
187
+ width: var(--mdc-icon-button-icon-size);
188
+ margin-left: var(--mdc-icon-button-margin-vertical);
189
+ margin-right: var(--mdc-icon-button-margin-vertical);
178
190
  position: relative;
191
+ color: var(--mdc-icon-button-icon-color);
192
+ fill: var(--mdc-icon-button-icon-color);
179
193
  }
180
194
  }
181
195
 
@@ -185,13 +199,21 @@ form.form-container {
185
199
  white-space: nowrap;
186
200
 
187
201
  .mat-mdc-icon-button {
188
- --mdc-icon-button-icon-size: 24px;
189
- --mdc-icon-button-state-layer-size: 28px;
190
- padding: 2px;
202
+ --mdc-icon-button-state-layer-size: 24px;
203
+ --mdc-icon-button-icon-size: 16px;
204
+ --mdc-icon-button-padding: 4px;
205
+ padding: var(--mdc-icon-button-padding);
191
206
 
192
- ion-icon, .mat-icon, .mat-icon.large {
207
+ &.large {
208
+ --mdc-icon-button-state-layer-size: 48px;
209
+ --mdc-icon-button-icon-size: 24px;
210
+ --mdc-icon-button-padding: 12px;
211
+ }
212
+
213
+ ion-icon, .mat-icon {
214
+ height: var(--mdc-icon-button-icon-size);
215
+ width: var(--mdc-icon-button-icon-size);
193
216
  font-size: var(--mdc-icon-button-icon-size);
194
- line-height: var(--mdc-icon-button-icon-size);
195
217
  }
196
218
 
197
219
  .mat-mdc-button-touch-target {
@@ -202,7 +224,7 @@ form.form-container {
202
224
  ion-icon, .mat-icon {
203
225
 
204
226
  &.large {
205
- $font-size: calculateRem(24px);
227
+ $font-size: calculateRem(14px);
206
228
  font-size: $font-size;
207
229
  line-height: 1.125;
208
230
  }
@@ -249,16 +271,22 @@ form.form-container {
249
271
  }
250
272
  }
251
273
 
274
+ .mat-mdc-form-field-subscript-wrapper {
275
+ mat-hint {
276
+ --color: rgb(115,115,115);
277
+ color: var(--color);
278
+ }
279
+ }
252
280
 
253
281
  /* -- Computed field -- */
254
282
 
255
283
  // Set color on computed field (if enable or disable)
256
- .computed mat-mdc-form-field,
257
- mat-mdc-form-field .computed,
258
- mat-mdc-form-field.computed,
259
- .computed mat-mdc-form-field .mat-mdc-input-element:disabled,
260
- mat-mdc-form-field .computed .mat-mdc-input-element:disabled,
261
- mat-mdc-form-field.computed .mat-mdc-input-element:disabled {
284
+ .computed .mat-mdc-form-field,
285
+ .mat-mdc-form-field .computed,
286
+ .mat-mdc-form-field.computed,
287
+ .computed .mat-mdc-form-field .mat-mdc-input-element:disabled,
288
+ .mat-mdc-form-field .computed .mat-mdc-input-element:disabled,
289
+ .mat-mdc-form-field.computed .mat-mdc-input-element:disabled {
262
290
  color: var(--ion-color-primary-tint) !important;
263
291
  font-style: italic;
264
292
  }
@@ -300,9 +328,6 @@ ion-grid.form-container {
300
328
  }
301
329
 
302
330
  mat-form-field {
303
- //mat-error {
304
- // text-align: right;
305
- //}
306
331
 
307
332
  .mat-paginator-page-size-select {
308
333
  @include font-size-important(14px);
@@ -351,12 +376,6 @@ mat-option {
351
376
  flex-grow: 1;
352
377
  }
353
378
  .mat-option-text:not(:has(ion-row)),
354
-
355
- // TODO : Disabled : mat-option already have padding : this is redundant
356
- //.mdc-list-item__primary-text:not(:has(ion-row)) {
357
- // padding: 0 16px;
358
- //}
359
-
360
379
  .mat-option-text:has(ion-searchbar),
361
380
  .mdc-list-item__primary-text:has(ion-searchbar) {
362
381
  padding: 0 !important;
@@ -442,14 +461,14 @@ mat-option:not(:last-of-type) {
442
461
  }
443
462
 
444
463
  ion-list,
445
- .mat-menu-panel {
464
+ .mat-mdc-menu-panel {
446
465
  &.ion-list-popover {
447
466
  padding: 0 !important;
448
467
  }
449
468
  }
450
469
 
451
470
  ion-list,
452
- .mat-menu-panel,
471
+ .mat-mdc-menu-panel,
453
472
  .mat-mdc-select-panel,
454
473
  .mat-mdc-autocomplete-panel {
455
474
 
@@ -464,7 +483,7 @@ ion-list,
464
483
  }
465
484
  }
466
485
 
467
- .mat-mdc-option.mat-select-searchbar,
486
+ .mat-mdc-optgroup.mat-select-searchbar,
468
487
  .mat-mdc-option.mat-autocomplete-searchbar
469
488
  {
470
489
  padding: 0 !important;
@@ -472,8 +491,10 @@ ion-list,
472
491
  background-color: var(--ion-color-secondary100) !important;
473
492
  pointer-events: inherit !important;
474
493
 
475
- .mdc-list-item__primary-text {
476
- opacity: 1 !important;
494
+ .mat-mdc-optgroup-label {
495
+ background-color: var(--ion-color-secondary100) !important;
496
+ padding: 0;
497
+ display: block;
477
498
  }
478
499
 
479
500
  /* hide pseudo checkbox, in the searchbar*/
@@ -570,7 +591,6 @@ ion-list,
570
591
  }
571
592
 
572
593
  .mat-mdc-option[no-padding],
573
- .mat-option[no-padding],
574
594
  mat-option[no-padding] {
575
595
  padding: 0 !important;
576
596
  }
@@ -734,7 +754,7 @@ mat-button-toggle.mat-button-toggle-checked.mat-button-toggle-disabled {
734
754
  // --------------------------------------------------
735
755
 
736
756
 
737
- .mat-menu-panel {
757
+ .mat-mdc-menu-panel {
738
758
 
739
759
  // Max width = 400px
740
760
  &.mat-menu-size-400 {
@@ -751,31 +771,31 @@ mat-button-toggle.mat-button-toggle-checked.mat-button-toggle-disabled {
751
771
 
752
772
  // No padding
753
773
  &.ion-no-padding {
754
- .mat-menu-content {
774
+ .mat-mdc-menu-content {
755
775
  padding: 0 !important;
756
776
  }
757
777
  }
758
778
 
759
779
  // Small menu item (e.g. for actions on a table row)
760
- &.mat-menu-small-item-height .mat-menu-item,
761
- .mat-menu-item.mat-menu-item-small-height
780
+ &.mat-mdc-menu-item-small-height .mat-mdc-menu-item,
781
+ .mat-mdc-menu-item.mat-mdc-menu-item-small-height
762
782
  {
763
783
  padding: 0 8px;
764
784
  height: 35px;
765
785
  line-height: 35px;
766
786
  }
767
787
  // Reduce the font size, on label just inside a mat-menu (e.g. see trips.page.html)
768
- .mat-menu-content > ion-label {
788
+ .mat-mdc-menu-content > ion-label {
769
789
  @include font-size(12px);
770
790
  }
771
791
 
772
- .mat-menu-content ion-item > ion-icon[slot="start"] {
792
+ .mat-mdc-menu-content ion-item > ion-icon[slot="start"] {
773
793
  margin-right: 16px;
774
794
  vertical-align: middle;
775
795
  }
776
796
 
777
797
  // Menu title (e.g. see extraction map)
778
- .mat-menu-item.mat-menu-title {
798
+ .mat-mdc-menu-item.mat-mdc-menu-title {
779
799
  padding: 0 8px;
780
800
  height: 27px;
781
801
  line-height: 27px;
@@ -853,7 +873,6 @@ ngx-material-timepicker-content {
853
873
 
854
874
  .mat-mdc-form-field-type-mat-chip-grid {
855
875
  .mat-mdc-form-field-infix {
856
- padding-bottom: 5px !important;
857
876
  --mdc-chip-container-height: 24px !important;
858
877
  }
859
878
  }