@sumaris-net/ngx-components 18.10.21 → 18.10.23
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 +6 -0
- package/esm2022/src/app/core/account/new-token.form.mjs +1 -1
- package/esm2022/src/app/shared/form/field.component.mjs +1 -1
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +7 -7
- package/esm2022/src/app/shared/material/chips/chips.module.mjs +1 -5
- package/esm2022/src/app/shared/material/chips/material.chips.mjs +56 -29
- package/esm2022/src/app/shared/material/chips/testing/chips.test.mjs +5 -3
- package/esm2022/src/app/shared/material/material.testing.module.mjs +4 -4
- package/esm2022/src/app/shared/validator/validators.mjs +14 -4
- package/esm2022/src/app/social/message/message.form.mjs +1 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +85 -52
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/material/chips/chips.module.d.ts +4 -5
- package/src/app/shared/material/chips/material.chips.d.ts +13 -6
- package/src/app/shared/validator/validators.d.ts +4 -0
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -11,12 +11,11 @@ import * as i9 from "@angular/material/form-field";
|
|
|
11
11
|
import * as i10 from "@angular/material/input";
|
|
12
12
|
import * as i11 from "@angular/material/icon";
|
|
13
13
|
import * as i12 from "@angular/material/button";
|
|
14
|
-
import * as i13 from "@angular/material/
|
|
15
|
-
import * as i14 from "@
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "../../rx-state/rx-state.module";
|
|
14
|
+
import * as i13 from "@angular/material/chips";
|
|
15
|
+
import * as i14 from "@ngx-translate/core";
|
|
16
|
+
import * as i15 from "../../rx-state/rx-state.module";
|
|
18
17
|
export declare class SharedMatChipsModule {
|
|
19
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedMatChipsModule, never>;
|
|
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.
|
|
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.MatChipsModule, typeof i14.TranslateModule, typeof i15.RxStateModule], [typeof i1.MatChipsField]>;
|
|
21
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedMatChipsModule>;
|
|
22
21
|
}
|
|
@@ -6,7 +6,7 @@ import { SuggestFn } from '../../services/entity-service.class';
|
|
|
6
6
|
import { AppFloatLabelType, DisplayFn, EqualsFn } from '../../form/field.model';
|
|
7
7
|
import { ErrorStateMatcher, ThemePalette } from '@angular/material/core';
|
|
8
8
|
import { MatAutocompleteFieldConfig } from '../autocomplete/material.autocomplete.config';
|
|
9
|
-
import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
|
|
9
|
+
import { MatFormFieldAppearance, MatFormFieldDefaultOptions, SubscriptSizing } from '@angular/material/form-field';
|
|
10
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 {
|
|
@@ -23,6 +23,10 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
23
23
|
private _itemCount;
|
|
24
24
|
private _suggestExecutionId;
|
|
25
25
|
private _reload$;
|
|
26
|
+
private _appearance;
|
|
27
|
+
private _subscriptSizing;
|
|
28
|
+
private readonly _defaultAppearance;
|
|
29
|
+
private readonly _defaultSubscriptSizing;
|
|
26
30
|
protected _tabindex: number;
|
|
27
31
|
protected _$inputItems: BehaviorSubject<any[]>;
|
|
28
32
|
protected _$filteredItems: BehaviorSubject<any[]>;
|
|
@@ -35,8 +39,6 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
35
39
|
formControl: UntypedFormControl;
|
|
36
40
|
formControlName: string;
|
|
37
41
|
floatLabel: AppFloatLabelType;
|
|
38
|
-
appearance: MatFormFieldAppearance;
|
|
39
|
-
subscriptSizing: SubscriptSizing;
|
|
40
42
|
placeholder: string;
|
|
41
43
|
suggestFn: SuggestFn<any, any>;
|
|
42
44
|
required: boolean;
|
|
@@ -72,6 +74,11 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
72
74
|
trimSearchText: boolean;
|
|
73
75
|
hideRequiredMarker: boolean;
|
|
74
76
|
colSizes: [number | 'auto', number | 'auto'];
|
|
77
|
+
separatorKeysCodes: number[];
|
|
78
|
+
set appearance(value: MatFormFieldAppearance);
|
|
79
|
+
get appearance(): MatFormFieldAppearance;
|
|
80
|
+
set subscriptSizing(value: SubscriptSizing);
|
|
81
|
+
get subscriptSizing(): SubscriptSizing;
|
|
75
82
|
/**
|
|
76
83
|
* @deprecated Use panelClass instead
|
|
77
84
|
*/
|
|
@@ -86,7 +93,7 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
86
93
|
matInputText: ElementRef;
|
|
87
94
|
autocomplete: MatAutocomplete;
|
|
88
95
|
autocompleteTrigger: MatAutocompleteTrigger;
|
|
89
|
-
constructor(cd: ChangeDetectorRef, formGroupDir: FormGroupDirective);
|
|
96
|
+
constructor(cd: ChangeDetectorRef, formGroupDir: FormGroupDirective, defaultOptions?: MatFormFieldDefaultOptions);
|
|
90
97
|
get itemCount(): number;
|
|
91
98
|
get canFetchMore(): boolean;
|
|
92
99
|
set filter(value: any);
|
|
@@ -137,8 +144,8 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
137
144
|
private getAutocompletePanel;
|
|
138
145
|
private markForCheck;
|
|
139
146
|
private markAsLoading;
|
|
140
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipsField, [null, { optional: true; }]>;
|
|
141
|
-
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; }; "
|
|
147
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipsField, [null, { optional: true; }, null]>;
|
|
148
|
+
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; }; "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; }; "displaySeparator": { "alias": "displaySeparator"; "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; }; "trimSearchText": { "alias": "trimSearchText"; "required": false; }; "hideRequiredMarker": { "alias": "hideRequiredMarker"; "required": false; }; "colSizes": { "alias": "colSizes"; "required": false; }; "separatorKeysCodes": { "alias": "separatorKeysCodes"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "classList": { "alias": "class"; "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>;
|
|
142
149
|
static ngAcceptInputType_required: unknown;
|
|
143
150
|
static ngAcceptInputType_mobile: unknown;
|
|
144
151
|
static ngAcceptInputType_readonly: unknown;
|
|
@@ -36,6 +36,7 @@ export declare class SharedValidators {
|
|
|
36
36
|
static longitude(control: UntypedFormControl): ValidationErrors | null;
|
|
37
37
|
static object(control: UntypedFormControl): ValidationErrors | null;
|
|
38
38
|
static entity(control: UntypedFormControl): ValidationErrors | null;
|
|
39
|
+
static entities(control: UntypedFormControl): ValidationErrors | null;
|
|
39
40
|
static empty(control: UntypedFormControl): ValidationErrors | null;
|
|
40
41
|
static pubkey(control: UntypedFormControl): ValidationErrors | null;
|
|
41
42
|
static integer(control: UntypedFormControl): ValidationErrors | null;
|
|
@@ -70,13 +71,16 @@ export declare class SharedFormGroupValidators {
|
|
|
70
71
|
static dateMinDuration(startDateField: string, endDateField: string, minDuration: number, durationUnit?: moment.unitOfTime.Diff): ValidatorFn;
|
|
71
72
|
static requiredIf(fieldName: string, anotherFieldToCheck: string | AbstractControl, opts?: {
|
|
72
73
|
fieldOnly?: boolean;
|
|
74
|
+
isEmpty?: (control: AbstractControl) => boolean;
|
|
73
75
|
predicate?: (control: AbstractControl) => boolean;
|
|
74
76
|
}): ValidatorFn;
|
|
75
77
|
static requiredIfTrue(fieldName: string, anotherFieldToCheck: string | AbstractControl, opts?: {
|
|
76
78
|
fieldOnly?: boolean;
|
|
79
|
+
isEmpty?: (control: AbstractControl) => boolean;
|
|
77
80
|
}): ValidatorFn;
|
|
78
81
|
static requiredIfEmpty(fieldName: string, anotherFieldToCheck: string, opts?: {
|
|
79
82
|
fieldOnly?: boolean;
|
|
83
|
+
isEmpty?: (control: AbstractControl) => boolean;
|
|
80
84
|
}): ValidatorFn;
|
|
81
85
|
static propagateIfDirty(fieldName: string, fieldNameToPropagate: string, valueToPropagate: any): ValidatorFn;
|
|
82
86
|
/**
|
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": "18.10.
|
|
5
|
+
"version": "18.10.23",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|