@sumaris-net/ngx-components 1.6.3 → 1.6.7
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/bundles/sumaris-net.ngx-components.umd.js +241 -146
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +10 -1
- package/esm2015/src/app/shared/form/field.component.js +2 -2
- package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +72 -44
- package/esm2015/src/app/shared/material/autocomplete/testing/autocomplete.test.js +6 -6
- package/esm2015/src/app/shared/material/chips/material.chips.js +72 -51
- package/esm2015/src/app/shared/material/chips/testing/chips.test.js +49 -16
- package/esm2015/src/app/shared/material/datetime/material.date.js +2 -2
- package/esm2015/src/app/shared/material/datetime/material.dateshort.js +2 -2
- package/esm2015/src/app/shared/material/datetime/material.datetime.js +4 -4
- package/esm2015/src/app/shared/material/duration/material.duration.js +2 -2
- package/fesm2015/sumaris-net.ngx-components.js +229 -148
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +4 -3
- package/src/app/shared/material/autocomplete/testing/autocomplete.test.d.ts +4 -5
- package/src/app/shared/material/chips/material.chips.d.ts +9 -5
- package/src/app/shared/material/chips/testing/chips.test.d.ts +1 -1
- package/src/app/shared/material/datetime/material.datetime.d.ts +2 -2
- package/src/theme/_ngx-components.scss +3 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -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():
|
|
118
|
-
get enabled():
|
|
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
|
|
16
|
-
$items
|
|
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<
|
|
28
|
+
suggest(value: any, filter?: any): Promise<LoadResult<EntityTestClass>>;
|
|
30
29
|
doSubmit(event: any): void;
|
|
31
|
-
|
|
30
|
+
equals(o1: EntityTestClass, o2: EntityTestClass): boolean;
|
|
32
31
|
toggleMode(value: any): void;
|
|
33
32
|
startMemoryTimer(): void;
|
|
34
33
|
stopMemoryTimer(): void;
|
|
@@ -7,7 +7,9 @@ import { InputElement } from '../../inputs';
|
|
|
7
7
|
import { SuggestFn } from '../../services/entity-service.class';
|
|
8
8
|
import { DisplayFn, EqualsFn } from '../../form/field.model';
|
|
9
9
|
import { MatAutocompleteFieldConfig } from '../autocomplete/material.autocomplete';
|
|
10
|
-
|
|
10
|
+
import { PredefinedColors } from '@ionic/core';
|
|
11
|
+
import { ThemePalette } from '@angular/material/core/common-behaviors/color';
|
|
12
|
+
export declare class MatChipsField implements OnInit, OnDestroy, InputElement, ControlValueAccessor {
|
|
11
13
|
protected cd: ChangeDetectorRef;
|
|
12
14
|
private formGroupDir;
|
|
13
15
|
private _onChangeCallback;
|
|
@@ -38,11 +40,12 @@ export declare class MatChipsField implements InputElement, ControlValueAccessor
|
|
|
38
40
|
classList: string;
|
|
39
41
|
panelWidth: string;
|
|
40
42
|
matAutocompletePosition: 'auto' | 'above' | 'below';
|
|
41
|
-
debug: boolean;
|
|
42
43
|
itemSize: string;
|
|
43
44
|
fetchMoreThreshold: string;
|
|
44
45
|
suggestLengthThreshold: number;
|
|
45
46
|
showLoadingSpinner: boolean;
|
|
47
|
+
chipColor: ThemePalette | PredefinedColors;
|
|
48
|
+
debug: boolean;
|
|
46
49
|
clicked: EventEmitter<MouseEvent>;
|
|
47
50
|
blurred: EventEmitter<FocusEvent>;
|
|
48
51
|
focused: EventEmitter<FocusEvent>;
|
|
@@ -76,8 +79,9 @@ export declare class MatChipsField implements InputElement, ControlValueAccessor
|
|
|
76
79
|
set items(value: Observable<any[]> | any[]);
|
|
77
80
|
get items(): Observable<any[]> | any[];
|
|
78
81
|
get value(): any[];
|
|
79
|
-
get disabled():
|
|
80
|
-
get enabled():
|
|
82
|
+
get disabled(): boolean;
|
|
83
|
+
get enabled(): boolean;
|
|
84
|
+
get loading(): boolean;
|
|
81
85
|
ngOnInit(): void;
|
|
82
86
|
ngOnDestroy(): void;
|
|
83
87
|
/**
|
|
@@ -111,8 +115,8 @@ export declare class MatChipsField implements InputElement, ControlValueAccessor
|
|
|
111
115
|
private suggest;
|
|
112
116
|
private fetchMore;
|
|
113
117
|
private updateImplicitValue;
|
|
114
|
-
private getAutocompletePanel;
|
|
115
118
|
private checkIfTouched;
|
|
119
|
+
private getAutocompletePanel;
|
|
116
120
|
private markForCheck;
|
|
117
121
|
private markAsLoading;
|
|
118
122
|
}
|
|
@@ -20,7 +20,7 @@ export declare class ChipsTestPage implements OnInit {
|
|
|
20
20
|
entityToString(item: any): string;
|
|
21
21
|
suggest(value: any, filter?: any): Promise<LoadResult<EntityTestClass>>;
|
|
22
22
|
doSubmit(event: any): void;
|
|
23
|
-
|
|
23
|
+
equals(o1: EntityTestClass, o2: EntityTestClass): boolean;
|
|
24
24
|
stringify(value: any): string;
|
|
25
25
|
}
|
|
26
26
|
export {};
|
|
@@ -23,8 +23,8 @@ export declare class MatDateTime implements OnInit, OnDestroy, ControlValueAcces
|
|
|
23
23
|
private dateAdapter;
|
|
24
24
|
private translate;
|
|
25
25
|
private formBuilder;
|
|
26
|
-
private keyboard;
|
|
27
26
|
private cd;
|
|
27
|
+
private keyboard;
|
|
28
28
|
private formGroupDir;
|
|
29
29
|
private _onChangeCallback;
|
|
30
30
|
private _onTouchedCallback;
|
|
@@ -60,7 +60,7 @@ export declare class MatDateTime implements OnInit, OnDestroy, ControlValueAcces
|
|
|
60
60
|
datePicker: MatDatepicker<Moment>;
|
|
61
61
|
timePicker: NgxTimePicker;
|
|
62
62
|
matInputs: QueryList<ElementRef>;
|
|
63
|
-
constructor(platform: Platform, dateAdapter: DateAdapter<Moment>, translate: TranslateService, formBuilder: FormBuilder,
|
|
63
|
+
constructor(platform: Platform, dateAdapter: DateAdapter<Moment>, translate: TranslateService, formBuilder: FormBuilder, cd: ChangeDetectorRef, keyboard: Keyboard, formGroupDir: FormGroupDirective);
|
|
64
64
|
ngOnInit(): void;
|
|
65
65
|
ngOnDestroy(): void;
|
|
66
66
|
writeValue(valueStr: any): void;
|
|
@@ -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
|
}
|