@gravitee/ui-particles-angular 7.26.0 → 7.28.0
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/esm2020/lib/gio-banner/gio-banner.component.mjs +17 -11
- package/esm2020/lib/gio-form-json-schema/gio-formly-json-schema.service.mjs +17 -1
- package/esm2020/lib/gio-form-json-schema/model/GioJsonSchema.mjs +1 -1
- package/esm2020/lib/gio-form-tags-input/gio-form-tags-input.component.mjs +47 -8
- package/fesm2015/gravitee-ui-particles-angular.mjs +76 -17
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +76 -16
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-banner/gio-banner.component.d.ts +6 -1
- package/lib/gio-form-json-schema/gio-formly-json-schema.service.d.ts +1 -0
- package/lib/gio-form-json-schema/model/GioJsonSchema.d.ts +1 -0
- package/lib/gio-form-tags-input/gio-form-tags-input.component.d.ts +17 -4
- package/package.json +1 -1
|
@@ -2,8 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare type GioBannerTypes = 'error' | 'info' | 'success' | 'warning';
|
|
3
3
|
export declare class GioBannerComponent {
|
|
4
4
|
type: GioBannerTypes;
|
|
5
|
+
icon?: string;
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioBannerComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GioBannerComponent, "gio-banner", never, { "type": "type"; }, {}, never, ["*", "[gioBannerBody]", "[gioBannerAction]"]>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioBannerComponent, "gio-banner", never, { "type": "type"; "icon": "icon"; }, {}, never, ["*", "[gioBannerBody]", "[gioBannerAction]"]>;
|
|
7
8
|
}
|
|
8
9
|
export declare class GioBannerBodyDirective {
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioBannerBodyDirective, never>;
|
|
@@ -15,21 +16,25 @@ export declare class GioBannerActionDirective {
|
|
|
15
16
|
}
|
|
16
17
|
export declare class GioBannerErrorComponent extends GioBannerComponent {
|
|
17
18
|
type: GioBannerTypes;
|
|
19
|
+
icon: string;
|
|
18
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioBannerErrorComponent, never>;
|
|
19
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<GioBannerErrorComponent, "gio-banner-error", never, {}, {}, never, ["*", "[gioBannerBody]", "[gioBannerAction]"]>;
|
|
20
22
|
}
|
|
21
23
|
export declare class GioBannerInfoComponent extends GioBannerComponent {
|
|
22
24
|
type: GioBannerTypes;
|
|
25
|
+
icon: string;
|
|
23
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioBannerInfoComponent, never>;
|
|
24
27
|
static ɵcmp: i0.ɵɵComponentDeclaration<GioBannerInfoComponent, "gio-banner-info", never, {}, {}, never, ["*", "[gioBannerBody]", "[gioBannerAction]"]>;
|
|
25
28
|
}
|
|
26
29
|
export declare class GioBannerSuccessComponent extends GioBannerComponent {
|
|
27
30
|
type: GioBannerTypes;
|
|
31
|
+
icon: string;
|
|
28
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioBannerSuccessComponent, never>;
|
|
29
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<GioBannerSuccessComponent, "gio-banner-success", never, {}, {}, never, ["*", "[gioBannerBody]", "[gioBannerAction]"]>;
|
|
30
34
|
}
|
|
31
35
|
export declare class GioBannerWarningComponent extends GioBannerComponent {
|
|
32
36
|
type: GioBannerTypes;
|
|
37
|
+
icon: string;
|
|
33
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioBannerWarningComponent, never>;
|
|
34
39
|
static ɵcmp: i0.ɵɵComponentDeclaration<GioBannerWarningComponent, "gio-banner-warning", never, {}, {}, never, ["*", "[gioBannerBody]", "[gioBannerAction]"]>;
|
|
35
40
|
}
|
|
@@ -12,6 +12,7 @@ export declare class GioFormlyJsonSchemaService {
|
|
|
12
12
|
private bannerMap;
|
|
13
13
|
private toggleMap;
|
|
14
14
|
private disabledMap;
|
|
15
|
+
private enumLabelMap;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioFormlyJsonSchemaService, never>;
|
|
16
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<GioFormlyJsonSchemaService>;
|
|
17
18
|
}
|
|
@@ -6,6 +6,11 @@ import { MatFormFieldControl } from '@angular/material/form-field';
|
|
|
6
6
|
import { Observable, Subject } from 'rxjs';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare type Tags = Array<string>;
|
|
9
|
+
export declare type AutocompleteOptions = (string | {
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
})[];
|
|
13
|
+
export declare type DisplayValueWithFn = (value: string) => Observable<string>;
|
|
9
14
|
export declare class GioFormTagsInputComponent implements MatFormFieldControl<Tags>, ControlValueAccessor, DoCheck, OnDestroy {
|
|
10
15
|
readonly ngControl: NgControl;
|
|
11
16
|
private readonly elRef;
|
|
@@ -28,8 +33,14 @@ export declare class GioFormTagsInputComponent implements MatFormFieldControl<Ta
|
|
|
28
33
|
* called with `true` it will add the tag, otherwise it will just ignore it
|
|
29
34
|
*/
|
|
30
35
|
tagValidationHook: ((tag: string, validationCb: (shouldAddTag: boolean) => void) => void) | undefined;
|
|
31
|
-
set autocompleteOptions(v: string
|
|
32
|
-
_autocompleteOptions?: string
|
|
36
|
+
set autocompleteOptions(v: AutocompleteOptions | ((search: string) => Observable<AutocompleteOptions>) | undefined);
|
|
37
|
+
_autocompleteOptions?: AutocompleteOptions | ((search: string) => Observable<AutocompleteOptions>);
|
|
38
|
+
/**
|
|
39
|
+
* Get the label of an option value.
|
|
40
|
+
* To use with autocompleteOptions label & value mode.
|
|
41
|
+
* Function called each time a tag needs to be displayed id defined.
|
|
42
|
+
*/
|
|
43
|
+
set displayValueWith(displayValueWith: DisplayValueWithFn);
|
|
33
44
|
set tagInput(v: ElementRef<HTMLInputElement> | null);
|
|
34
45
|
private _tagInput;
|
|
35
46
|
get value(): Tags | null;
|
|
@@ -40,7 +51,7 @@ export declare class GioFormTagsInputComponent implements MatFormFieldControl<Ta
|
|
|
40
51
|
get placeholder(): string;
|
|
41
52
|
set placeholder(plh: string);
|
|
42
53
|
private _placeholder;
|
|
43
|
-
autocompleteFilteredOptions$?: Observable<string[]>;
|
|
54
|
+
autocompleteFilteredOptions$?: Observable<Record<string, string>[]>;
|
|
44
55
|
focused: boolean;
|
|
45
56
|
get empty(): boolean;
|
|
46
57
|
get shouldLabelFloat(): boolean;
|
|
@@ -50,6 +61,8 @@ export declare class GioFormTagsInputComponent implements MatFormFieldControl<Ta
|
|
|
50
61
|
get disabled(): boolean;
|
|
51
62
|
set disabled(dis: boolean);
|
|
52
63
|
private _disabled;
|
|
64
|
+
_displayValueWith?: (value: string) => Observable<string>;
|
|
65
|
+
private displayValueCache;
|
|
53
66
|
get errorState(): boolean;
|
|
54
67
|
controlType?: string;
|
|
55
68
|
autofilled?: boolean;
|
|
@@ -71,5 +84,5 @@ export declare class GioFormTagsInputComponent implements MatFormFieldControl<Ta
|
|
|
71
84
|
onMatChipTokenEnd(): void;
|
|
72
85
|
private initAutocomplete;
|
|
73
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioFormTagsInputComponent, [{ optional: true; self: true; }, null, null, null]>;
|
|
74
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GioFormTagsInputComponent, "gio-form-tags-input", never, { "ariaLabel": "aria-label"; "addOnBlur": "addOnBlur"; "tagValidationHook": "tagValidationHook"; "autocompleteOptions": "autocompleteOptions"; "placeholder": "placeholder"; "required": "required"; "disabled": "disabled"; }, {}, never, never>;
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioFormTagsInputComponent, "gio-form-tags-input", never, { "ariaLabel": "aria-label"; "addOnBlur": "addOnBlur"; "tagValidationHook": "tagValidationHook"; "autocompleteOptions": "autocompleteOptions"; "displayValueWith": "displayValueWith"; "placeholder": "placeholder"; "required": "required"; "disabled": "disabled"; }, {}, never, never>;
|
|
75
88
|
}
|