@sumaris-net/ngx-components 2.9.0 → 2.9.2
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/doc/changelog.md +5 -0
- package/esm2022/src/app/core/account/new-token.modal.mjs +1 -1
- package/esm2022/src/app/core/table/testing/table.testing.mjs +1 -1
- package/esm2022/src/app/core/table/testing/table2.testing.mjs +1 -1
- package/esm2022/src/app/shared/form/field.component.mjs +1 -1
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +43 -66
- package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +1 -1
- package/esm2022/src/app/shared/material/chips/chips.module.mjs +6 -3
- package/esm2022/src/app/shared/material/chips/material.chips.mjs +77 -59
- package/esm2022/src/app/shared/material/chips/testing/chips.test.mjs +3 -6
- package/esm2022/src/app/shared/named-filter/named-filter-selector.component.mjs +2 -6
- package/esm2022/src/app/social/message/message.form.mjs +1 -1
- package/esm2022/src/app/social/user-event/notification/user-event-notification.list.mjs +3 -3
- package/fesm2022/sumaris-net.ngx-components.mjs +129 -141
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +10 -11
- package/src/app/shared/material/chips/chips.module.d.ts +2 -1
- package/src/app/shared/material/chips/material.chips.d.ts +8 -4
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@angular/forms';
|
|
3
3
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
4
|
import { SuggestFn } from '../../services/entity-service.class';
|
|
@@ -14,7 +14,6 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
14
14
|
protected cd: ChangeDetectorRef;
|
|
15
15
|
protected modalController: ModalController;
|
|
16
16
|
protected renderer: Renderer2;
|
|
17
|
-
private viewRef;
|
|
18
17
|
private formGroupDir;
|
|
19
18
|
private _onChangeCallback;
|
|
20
19
|
private _onTouchedCallback;
|
|
@@ -60,6 +59,7 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
60
59
|
noResultMessage: string;
|
|
61
60
|
panelClass: string;
|
|
62
61
|
panelWidth: string;
|
|
62
|
+
disableRipple: boolean;
|
|
63
63
|
matAutocompletePosition: 'auto' | 'above' | 'below';
|
|
64
64
|
multiple: boolean;
|
|
65
65
|
fetchMoreThreshold: string;
|
|
@@ -68,22 +68,21 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
68
68
|
debug: boolean;
|
|
69
69
|
showSearchBar: boolean;
|
|
70
70
|
stickySearchBar: boolean;
|
|
71
|
-
|
|
72
|
-
applyImplicitValue: boolean | (() => boolean);
|
|
71
|
+
applyImplicitValue: boolean | ((value: any) => boolean);
|
|
73
72
|
dropButtonTitle: string;
|
|
74
73
|
clearButtonTitle: string;
|
|
75
74
|
clicked: EventEmitter<MouseEvent>;
|
|
76
75
|
blurred: EventEmitter<FocusEvent>;
|
|
77
76
|
focused: EventEmitter<FocusEvent>;
|
|
78
77
|
dropButtonClick: EventEmitter<Event>;
|
|
79
|
-
keydownEscape: EventEmitter<
|
|
80
|
-
keyupEnter: EventEmitter<
|
|
78
|
+
keydownEscape: EventEmitter<Event>;
|
|
79
|
+
keyupEnter: EventEmitter<Event>;
|
|
81
80
|
matSelect: MatSelect;
|
|
82
81
|
ionSearchbar: IonSearchbar;
|
|
83
82
|
matInputText: ElementRef;
|
|
84
83
|
autocomplete: MatAutocomplete;
|
|
85
84
|
autocompleteTrigger: MatAutocompleteTrigger;
|
|
86
|
-
constructor(cd: ChangeDetectorRef, modalController: ModalController, renderer: Renderer2,
|
|
85
|
+
constructor(cd: ChangeDetectorRef, modalController: ModalController, renderer: Renderer2, formGroupDir: FormGroupDirective);
|
|
87
86
|
get itemCount(): number;
|
|
88
87
|
get canFetchMore(): boolean;
|
|
89
88
|
set filter(value: any);
|
|
@@ -98,7 +97,6 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
98
97
|
get disabled(): boolean;
|
|
99
98
|
get enabled(): boolean;
|
|
100
99
|
get loading(): boolean;
|
|
101
|
-
get desktop(): boolean;
|
|
102
100
|
ngOnInit(): void;
|
|
103
101
|
ngAfterViewInit(): void;
|
|
104
102
|
ngOnDestroy(): void;
|
|
@@ -140,8 +138,8 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
140
138
|
* @private
|
|
141
139
|
*/
|
|
142
140
|
private _fixSearchbarOverlay;
|
|
143
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteField, [null, null, null,
|
|
144
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatAutocompleteField, "mat-autocomplete-field", never, { "equals": { "alias": "equals"; "required": false; }; "logPrefix": { "alias": "logPrefix"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "suggestFn": { "alias": "suggestFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayAttributes": { "alias": "displayAttributes"; "required": false; }; "displayColumnSizes": { "alias": "displayColumnSizes"; "required": false; }; "displayColumnNames": { "alias": "displayColumnNames"; "required": false; }; "highlightAccent": { "alias": "highlightAccent"; "required": false; }; "showAllOnFocus": { "alias": "showAllOnFocus"; "required": false; }; "showPanelOnFocus": { "alias": "showPanelOnFocus"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "config": { "alias": "config"; "required": false; }; "i18nPrefix": { "alias": "i18nPrefix"; "required": false; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "
|
|
141
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteField, [null, null, null, { optional: true; }]>;
|
|
142
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatAutocompleteField, "mat-autocomplete-field", never, { "equals": { "alias": "equals"; "required": false; }; "logPrefix": { "alias": "logPrefix"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "suggestFn": { "alias": "suggestFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayAttributes": { "alias": "displayAttributes"; "required": false; }; "displayColumnSizes": { "alias": "displayColumnSizes"; "required": false; }; "displayColumnNames": { "alias": "displayColumnNames"; "required": false; }; "highlightAccent": { "alias": "highlightAccent"; "required": false; }; "showAllOnFocus": { "alias": "showAllOnFocus"; "required": false; }; "showPanelOnFocus": { "alias": "showPanelOnFocus"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "config": { "alias": "config"; "required": false; }; "i18nPrefix": { "alias": "i18nPrefix"; "required": false; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "matAutocompletePosition": { "alias": "matAutocompletePosition"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "fetchMoreThreshold": { "alias": "fetchMoreThreshold"; "required": false; }; "suggestLengthThreshold": { "alias": "suggestLengthThreshold"; "required": false; }; "showLoadingSpinner": { "alias": "showLoadingSpinner"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "showSearchBar": { "alias": "showSearchBar"; "required": false; }; "stickySearchBar": { "alias": "stickySearchBar"; "required": false; }; "applyImplicitValue": { "alias": "applyImplicitValue"; "required": false; }; "dropButtonTitle": { "alias": "dropButtonTitle"; "required": false; }; "clearButtonTitle": { "alias": "clearButtonTitle"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "clicked": "click"; "blurred": "blur"; "focused": "focus"; "dropButtonClick": "dropButtonClick"; "keydownEscape": "keydown.escape"; "keyupEnter": "keyup.enter"; }, never, ["[matAfter]", "[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
|
|
145
143
|
static ngAcceptInputType_required: unknown;
|
|
146
144
|
static ngAcceptInputType_mobile: unknown;
|
|
147
145
|
static ngAcceptInputType_clearable: unknown;
|
|
@@ -150,11 +148,12 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
150
148
|
static ngAcceptInputType_showAllOnFocus: unknown;
|
|
151
149
|
static ngAcceptInputType_showPanelOnFocus: unknown;
|
|
152
150
|
static ngAcceptInputType_autofocus: unknown;
|
|
151
|
+
static ngAcceptInputType_disableRipple: unknown;
|
|
153
152
|
static ngAcceptInputType_multiple: unknown;
|
|
154
153
|
static ngAcceptInputType_suggestLengthThreshold: unknown;
|
|
155
154
|
static ngAcceptInputType_showLoadingSpinner: unknown;
|
|
156
155
|
static ngAcceptInputType_debug: unknown;
|
|
157
156
|
static ngAcceptInputType_showSearchBar: unknown;
|
|
158
157
|
static ngAcceptInputType_stickySearchBar: unknown;
|
|
159
|
-
static
|
|
158
|
+
static ngAcceptInputType_readonly: unknown;
|
|
160
159
|
}
|
|
@@ -14,8 +14,9 @@ import * as i12 from "@angular/material/button";
|
|
|
14
14
|
import * as i13 from "@angular/material/select";
|
|
15
15
|
import * as i14 from "@angular/material/chips";
|
|
16
16
|
import * as i15 from "@ngx-translate/core";
|
|
17
|
+
import * as i16 from "../../rx-state.module";
|
|
17
18
|
export declare class SharedMatChipsModule {
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedMatChipsModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatChipsModule, [typeof i1.MatChipsField], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ReactiveFormsModule, typeof i5.SharedPipesModule, typeof i6.SharedDirectivesModule, typeof i7.MatCommonModule, typeof i8.MatAutocompleteModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatIconModule, typeof i12.MatButtonModule, typeof i13.MatSelectModule, typeof i14.MatChipsModule, typeof i15.TranslateModule], [typeof i1.MatChipsField]>;
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatChipsModule, [typeof i1.MatChipsField], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ReactiveFormsModule, typeof i5.SharedPipesModule, typeof i6.SharedDirectivesModule, typeof i7.MatCommonModule, typeof i8.MatAutocompleteModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatIconModule, typeof i12.MatButtonModule, typeof i13.MatSelectModule, typeof i14.MatChipsModule, typeof i15.TranslateModule, typeof i16.RxStateModule], [typeof i1.MatChipsField]>;
|
|
20
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedMatChipsModule>;
|
|
21
22
|
}
|
|
@@ -7,7 +7,7 @@ import { AppFloatLabelType, DisplayFn, EqualsFn } from '../../form/field.model';
|
|
|
7
7
|
import { ThemePalette } from '@angular/material/core';
|
|
8
8
|
import { MatAutocompleteFieldConfig } from '../autocomplete/material.autocomplete.config';
|
|
9
9
|
import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
|
|
10
|
-
import { MatAutocomplete,
|
|
10
|
+
import { MatAutocomplete, MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class MatChipsField implements OnInit, OnDestroy, InputElement, ControlValueAccessor {
|
|
13
13
|
protected cd: ChangeDetectorRef;
|
|
@@ -55,6 +55,7 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
55
55
|
noResultMessage: string;
|
|
56
56
|
panelClass: string;
|
|
57
57
|
panelWidth: string;
|
|
58
|
+
disableRipple: boolean;
|
|
58
59
|
matAutocompletePosition: 'auto' | 'above' | 'below';
|
|
59
60
|
itemSize: string;
|
|
60
61
|
fetchMoreThreshold: string;
|
|
@@ -62,6 +63,7 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
62
63
|
showLoadingSpinner: boolean;
|
|
63
64
|
chipColor: ThemePalette;
|
|
64
65
|
debug: boolean;
|
|
66
|
+
applyImplicitValue: boolean | ((value: any) => boolean);
|
|
65
67
|
dropButtonTitle: string;
|
|
66
68
|
clearButtonTitle: string;
|
|
67
69
|
clicked: EventEmitter<MouseEvent>;
|
|
@@ -91,9 +93,9 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
91
93
|
/**
|
|
92
94
|
* Add item to chips
|
|
93
95
|
*
|
|
94
|
-
* @param
|
|
96
|
+
* @param item
|
|
95
97
|
*/
|
|
96
|
-
add(
|
|
98
|
+
add(item: any): void;
|
|
97
99
|
/**
|
|
98
100
|
* Remove item from chips
|
|
99
101
|
*
|
|
@@ -124,7 +126,7 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
124
126
|
private markForCheck;
|
|
125
127
|
private markAsLoading;
|
|
126
128
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipsField, [null, { optional: true; }]>;
|
|
127
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipsField, "mat-chips-field", never, { "equals": { "alias": "equals"; "required": false; }; "logPrefix": { "alias": "logPrefix"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "suggestFn": { "alias": "suggestFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayAttributes": { "alias": "displayAttributes"; "required": false; }; "displayColumnSizes": { "alias": "displayColumnSizes"; "required": false; }; "displayColumnNames": { "alias": "displayColumnNames"; "required": false; }; "highlightAccent": { "alias": "highlightAccent"; "required": false; }; "showAllOnFocus": { "alias": "showAllOnFocus"; "required": false; }; "showPanelOnFocus": { "alias": "showPanelOnFocus"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "config": { "alias": "config"; "required": false; }; "i18nPrefix": { "alias": "i18nPrefix"; "required": false; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; }; "panelClass": { "alias": "
|
|
129
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipsField, "mat-chips-field", never, { "equals": { "alias": "equals"; "required": false; }; "logPrefix": { "alias": "logPrefix"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "suggestFn": { "alias": "suggestFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayAttributes": { "alias": "displayAttributes"; "required": false; }; "displayColumnSizes": { "alias": "displayColumnSizes"; "required": false; }; "displayColumnNames": { "alias": "displayColumnNames"; "required": false; }; "highlightAccent": { "alias": "highlightAccent"; "required": false; }; "showAllOnFocus": { "alias": "showAllOnFocus"; "required": false; }; "showPanelOnFocus": { "alias": "showPanelOnFocus"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "config": { "alias": "config"; "required": false; }; "i18nPrefix": { "alias": "i18nPrefix"; "required": false; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "matAutocompletePosition": { "alias": "matAutocompletePosition"; "required": false; }; "itemSize": { "alias": "itemSize"; "required": false; }; "fetchMoreThreshold": { "alias": "fetchMoreThreshold"; "required": false; }; "suggestLengthThreshold": { "alias": "suggestLengthThreshold"; "required": false; }; "showLoadingSpinner": { "alias": "showLoadingSpinner"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "applyImplicitValue": { "alias": "applyImplicitValue"; "required": false; }; "dropButtonTitle": { "alias": "dropButtonTitle"; "required": false; }; "clearButtonTitle": { "alias": "clearButtonTitle"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "clicked": "click"; "blurred": "blur"; "focused": "focus"; "dropButtonClick": "dropButtonClick"; "keydownEscape": "keydown.escape"; "keyupEnter": "keyup.enter"; }, never, ["[matAfter]", "[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
|
|
128
130
|
static ngAcceptInputType_required: unknown;
|
|
129
131
|
static ngAcceptInputType_mobile: unknown;
|
|
130
132
|
static ngAcceptInputType_readonly: unknown;
|
|
@@ -134,6 +136,8 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
134
136
|
static ngAcceptInputType_showAllOnFocus: unknown;
|
|
135
137
|
static ngAcceptInputType_showPanelOnFocus: unknown;
|
|
136
138
|
static ngAcceptInputType_autofocus: unknown;
|
|
139
|
+
static ngAcceptInputType_disableRipple: unknown;
|
|
140
|
+
static ngAcceptInputType_suggestLengthThreshold: unknown;
|
|
137
141
|
static ngAcceptInputType_showLoadingSpinner: unknown;
|
|
138
142
|
static ngAcceptInputType_debug: unknown;
|
|
139
143
|
}
|
package/src/assets/manifest.json
CHANGED
|
@@ -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.9.
|
|
5
|
+
"version": "2.9.2",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|