@sumaris-net/ngx-components 1.6.4 → 1.6.5

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": "1.6.4",
4
+ "version": "1.6.5",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -74,6 +74,7 @@ export declare class MatAutocompleteField implements OnInit, OnDestroy, InputEle
74
74
  fetchMoreThreshold: string;
75
75
  suggestLengthThreshold: number;
76
76
  showLoadingSpinner: boolean;
77
+ debug: boolean;
77
78
  clicked: EventEmitter<MouseEvent>;
78
79
  blurred: EventEmitter<FocusEvent>;
79
80
  focused: EventEmitter<FocusEvent>;
@@ -84,7 +85,6 @@ export declare class MatAutocompleteField implements OnInit, OnDestroy, InputEle
84
85
  matInputText: ElementRef;
85
86
  autocomplete: MatAutocomplete;
86
87
  autocompleteTrigger: MatAutocompleteTrigger;
87
- animationsDisabled: boolean;
88
88
  _readonly: boolean;
89
89
  _tabindex: number;
90
90
  matSelectItems$: Observable<any[]>;
@@ -114,8 +114,9 @@ export declare class MatAutocompleteField implements OnInit, OnDestroy, InputEle
114
114
  set items(value: Observable<any[]> | any[]);
115
115
  get items(): Observable<any[]> | any[];
116
116
  get value(): any;
117
- get disabled(): any;
118
- get enabled(): any;
117
+ get disabled(): boolean;
118
+ get enabled(): boolean;
119
+ get loading(): boolean;
119
120
  ngOnInit(): void;
120
121
  ngOnDestroy(): void;
121
122
  /**
@@ -2,7 +2,6 @@
2
2
  import { OnInit } from '@angular/core';
3
3
  import { FormBuilder, FormGroup } from '@angular/forms';
4
4
  import { MatAutocompleteConfigHolder } from '../material.autocomplete';
5
- import { BehaviorSubject } from 'rxjs';
6
5
  import { LoadResult } from '../../../services/entity-service.class';
7
6
  import Timer = NodeJS.Timer;
8
7
  declare class EntityTestClass {
@@ -12,8 +11,8 @@ declare class EntityTestClass {
12
11
  }
13
12
  export declare class AutocompleteTestPage implements OnInit {
14
13
  protected formBuilder: FormBuilder;
15
- _items: EntityTestClass[];
16
- $items: BehaviorSubject<EntityTestClass[]>;
14
+ private _items;
15
+ private _$items;
17
16
  form: FormGroup;
18
17
  autocompleteFields: MatAutocompleteConfigHolder;
19
18
  memoryHide: boolean;
@@ -26,9 +25,9 @@ export declare class AutocompleteTestPage implements OnInit {
26
25
  loadData(): Promise<void>;
27
26
  loadItems(): Promise<void>;
28
27
  entityToString(item: any): string;
29
- suggest(value: any, filter?: any): Promise<LoadResult<any>>;
28
+ suggest(value: any, filter?: any): Promise<LoadResult<EntityTestClass>>;
30
29
  doSubmit(event: any): void;
31
- compareWithFn(o1: EntityTestClass, o2: EntityTestClass): boolean;
30
+ equals(o1: EntityTestClass, o2: EntityTestClass): boolean;
32
31
  toggleMode(value: any): void;
33
32
  startMemoryTimer(): void;
34
33
  stopMemoryTimer(): void;
@@ -9,7 +9,7 @@ import { DisplayFn, EqualsFn } from '../../form/field.model';
9
9
  import { MatAutocompleteFieldConfig } from '../autocomplete/material.autocomplete';
10
10
  import { PredefinedColors } from '@ionic/core';
11
11
  import { ThemePalette } from '@angular/material/core/common-behaviors/color';
12
- export declare class MatChipsField implements InputElement, ControlValueAccessor, OnInit, OnDestroy {
12
+ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, ControlValueAccessor {
13
13
  protected cd: ChangeDetectorRef;
14
14
  private formGroupDir;
15
15
  private _onChangeCallback;
@@ -40,12 +40,12 @@ export declare class MatChipsField implements InputElement, ControlValueAccessor
40
40
  classList: string;
41
41
  panelWidth: string;
42
42
  matAutocompletePosition: 'auto' | 'above' | 'below';
43
- debug: boolean;
44
43
  itemSize: string;
45
44
  fetchMoreThreshold: string;
46
45
  suggestLengthThreshold: number;
47
46
  showLoadingSpinner: boolean;
48
47
  chipColor: ThemePalette | PredefinedColors;
48
+ debug: boolean;
49
49
  clicked: EventEmitter<MouseEvent>;
50
50
  blurred: EventEmitter<FocusEvent>;
51
51
  focused: EventEmitter<FocusEvent>;
@@ -79,8 +79,9 @@ export declare class MatChipsField implements InputElement, ControlValueAccessor
79
79
  set items(value: Observable<any[]> | any[]);
80
80
  get items(): Observable<any[]> | any[];
81
81
  get value(): any[];
82
- get disabled(): any;
83
- get enabled(): any;
82
+ get disabled(): boolean;
83
+ get enabled(): boolean;
84
+ get loading(): boolean;
84
85
  ngOnInit(): void;
85
86
  ngOnDestroy(): void;
86
87
  /**
@@ -114,8 +115,8 @@ export declare class MatChipsField implements InputElement, ControlValueAccessor
114
115
  private suggest;
115
116
  private fetchMore;
116
117
  private updateImplicitValue;
117
- private getAutocompletePanel;
118
118
  private checkIfTouched;
119
+ private getAutocompletePanel;
119
120
  private markForCheck;
120
121
  private markAsLoading;
121
122
  }
@@ -289,6 +289,7 @@ mat-option:not(:last-child) {
289
289
  --max-width: 100%;
290
290
  min-width: var(--min-width) !important;
291
291
  max-width: var(--max-width) !important;
292
+ width: var(--max-width) !important;
292
293
  }
293
294
 
294
295
  .mat-autocomplete-panel-medium-size .mat-autocomplete-panel,
@@ -315,7 +316,8 @@ mat-option:not(:last-child) {
315
316
 
316
317
  .mat-autocomplete-panel-full-size .mat-autocomplete-panel,
317
318
  .mat-autocomplete-panel-full-size.mat-autocomplete-panel {
318
- --min-width: calc(100vw);
319
+ --min-width: calc(100vw - 5px);
320
+ --max-width: calc(100vw - 5px);
319
321
  position: fixed;
320
322
  left: 0;
321
323
  }