@sebgroup/green-angular 4.6.0 → 4.6.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/esm2022/index.mjs +1 -19
- package/esm2022/src/v-angular/breadcrumbs/breadcrumbs.component.mjs +3 -3
- package/esm2022/src/v-angular/button/button.component.mjs +3 -3
- package/esm2022/src/v-angular/card/card.component.mjs +3 -3
- package/esm2022/src/v-angular/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/src/v-angular/core/core.globals.mjs +5 -2
- package/esm2022/src/v-angular/dropdown/dropdown-list/dropdown-list.component.mjs +3 -3
- package/esm2022/src/v-angular/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/src/v-angular/dropdown/typeahead/index.mjs +4 -1
- package/esm2022/src/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.mjs +3 -3
- package/esm2022/src/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.mjs +3 -3
- package/esm2022/src/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.mjs +3 -3
- package/esm2022/src/v-angular/dropdown/typeahead/typeahead.directive.mjs +177 -0
- package/esm2022/src/v-angular/info-circle/info-circle.component.mjs +3 -3
- package/esm2022/src/v-angular/input/input.component.mjs +3 -3
- package/esm2022/src/v-angular/modal/dialog/dialog.component.mjs +3 -3
- package/esm2022/src/v-angular/modal/fold-out/fold-out.component.mjs +3 -3
- package/esm2022/src/v-angular/modal/modal.globals.mjs +5 -2
- package/esm2022/src/v-angular/modal/slide-out/slide-out.component.mjs +4 -4
- package/esm2022/src/v-angular/radio/radio.component.mjs +3 -3
- package/esm2022/src/v-angular/textarea/textarea.component.mjs +3 -3
- package/esm2022/v-angular/breadcrumbs/breadcrumbs.component.mjs +3 -3
- package/esm2022/v-angular/button/button.component.mjs +3 -3
- package/esm2022/v-angular/card/card.component.mjs +3 -3
- package/esm2022/v-angular/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/v-angular/dropdown/dropdown-list/dropdown-list.component.mjs +3 -3
- package/esm2022/v-angular/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/v-angular/dropdown/typeahead/index.mjs +4 -1
- package/esm2022/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.mjs +3 -3
- package/esm2022/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.mjs +3 -3
- package/esm2022/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.mjs +3 -3
- package/esm2022/v-angular/dropdown/typeahead/typeahead.directive.mjs +177 -0
- package/esm2022/v-angular/index.mjs +17 -0
- package/esm2022/v-angular/info-circle/info-circle.component.mjs +3 -3
- package/esm2022/v-angular/input/input.component.mjs +3 -3
- package/esm2022/v-angular/modal/dialog/dialog.component.mjs +3 -3
- package/esm2022/v-angular/modal/fold-out/fold-out.component.mjs +3 -3
- package/esm2022/v-angular/modal/modal.globals.mjs +5 -2
- package/esm2022/v-angular/modal/slide-out/slide-out.component.mjs +4 -4
- package/esm2022/v-angular/radio/radio.component.mjs +3 -3
- package/esm2022/v-angular/sebgroup-green-angular-v-angular.mjs +5 -0
- package/esm2022/v-angular/textarea/textarea.component.mjs +3 -3
- package/esm2022/v-angular/v-angular.module.mjs +76 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-breadcrumbs.mjs +2 -2
- package/fesm2022/sebgroup-green-angular-src-v-angular-breadcrumbs.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-button.mjs +2 -2
- package/fesm2022/sebgroup-green-angular-src-v-angular-button.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-card.mjs +2 -2
- package/fesm2022/sebgroup-green-angular-src-v-angular-card.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-checkbox.mjs +2 -2
- package/fesm2022/sebgroup-green-angular-src-v-angular-checkbox.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-core.mjs +4 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-core.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs +182 -13
- package/fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-info-circle.mjs +2 -2
- package/fesm2022/sebgroup-green-angular-src-v-angular-info-circle.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-input.mjs +2 -2
- package/fesm2022/sebgroup-green-angular-src-v-angular-input.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-modal.mjs +11 -8
- package/fesm2022/sebgroup-green-angular-src-v-angular-modal.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-radio.mjs +2 -2
- package/fesm2022/sebgroup-green-angular-src-v-angular-radio.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-textarea.mjs +2 -2
- package/fesm2022/sebgroup-green-angular-src-v-angular-textarea.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-v-angular.mjs +3341 -0
- package/fesm2022/sebgroup-green-angular-v-angular.mjs.map +1 -0
- package/fesm2022/sebgroup-green-angular.mjs +13 -3105
- package/fesm2022/sebgroup-green-angular.mjs.map +1 -1
- package/index.d.ts +0 -18
- package/package.json +9 -3
- package/src/v-angular/breadcrumbs/breadcrumbs.component.d.ts +1 -1
- package/src/v-angular/button/button.component.d.ts +1 -1
- package/src/v-angular/card/card.component.d.ts +1 -1
- package/src/v-angular/checkbox/checkbox.component.d.ts +1 -1
- package/src/v-angular/dropdown/dropdown-list/dropdown-list.component.d.ts +1 -1
- package/src/v-angular/dropdown/dropdown.component.d.ts +1 -1
- package/src/v-angular/dropdown/typeahead/index.d.ts +3 -0
- package/src/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.d.ts +1 -1
- package/src/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.d.ts +1 -1
- package/src/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.d.ts +1 -1
- package/src/v-angular/dropdown/typeahead/typeahead.directive.d.ts +76 -0
- package/src/v-angular/info-circle/info-circle.component.d.ts +1 -1
- package/src/v-angular/input/input.component.d.ts +1 -1
- package/src/v-angular/modal/dialog/dialog.component.d.ts +1 -1
- package/src/v-angular/modal/fold-out/fold-out.component.d.ts +1 -1
- package/src/v-angular/modal/slide-out/slide-out.component.d.ts +2 -2
- package/src/v-angular/radio/radio.component.d.ts +1 -1
- package/src/v-angular/textarea/textarea.component.d.ts +1 -1
- package/v-angular/breadcrumbs/breadcrumbs.component.d.ts +1 -1
- package/v-angular/button/button.component.d.ts +1 -1
- package/v-angular/card/card.component.d.ts +1 -1
- package/v-angular/checkbox/checkbox.component.d.ts +1 -1
- package/v-angular/dropdown/dropdown-list/dropdown-list.component.d.ts +1 -1
- package/v-angular/dropdown/dropdown.component.d.ts +1 -1
- package/v-angular/dropdown/typeahead/index.d.ts +3 -0
- package/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.d.ts +1 -1
- package/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.d.ts +1 -1
- package/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.d.ts +1 -1
- package/v-angular/dropdown/typeahead/typeahead.directive.d.ts +76 -0
- package/v-angular/index.d.ts +16 -0
- package/v-angular/info-circle/info-circle.component.d.ts +1 -1
- package/v-angular/input/input.component.d.ts +1 -1
- package/v-angular/modal/dialog/dialog.component.d.ts +1 -1
- package/v-angular/modal/fold-out/fold-out.component.d.ts +1 -1
- package/v-angular/modal/slide-out/slide-out.component.d.ts +2 -2
- package/v-angular/radio/radio.component.d.ts +1 -1
- package/v-angular/textarea/textarea.component.d.ts +1 -1
- package/v-angular/v-angular.module.d.ts +22 -0
package/index.d.ts
CHANGED
|
@@ -15,21 +15,3 @@ export * from './lib/context-menu';
|
|
|
15
15
|
export * from './lib/sortable-list';
|
|
16
16
|
export * from './lib/cell-table';
|
|
17
17
|
export * from './lib/shared/core-element';
|
|
18
|
-
/**
|
|
19
|
-
* V-Angular exports
|
|
20
|
-
*/
|
|
21
|
-
export * from './v-angular/base-control-value-accessor';
|
|
22
|
-
export * from './v-angular/breadcrumbs';
|
|
23
|
-
export * from './v-angular/button';
|
|
24
|
-
export * from './v-angular/card';
|
|
25
|
-
export * from './v-angular/checkbox';
|
|
26
|
-
export * from './v-angular/dropdown';
|
|
27
|
-
export * from './v-angular/dropdown/dropdown-list';
|
|
28
|
-
export * from './v-angular/i18n';
|
|
29
|
-
export * from './v-angular/info-circle';
|
|
30
|
-
export * from './v-angular/input';
|
|
31
|
-
export * from './v-angular/input-mask';
|
|
32
|
-
export * from './v-angular/modal';
|
|
33
|
-
export * from './v-angular/radio';
|
|
34
|
-
export * from './v-angular/textarea';
|
|
35
|
-
export * from './v-angular/tooltip';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-angular",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": ">=16.2.14",
|
|
6
6
|
"@angular/common": ">=16.2.12",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"scroll-into-view-if-needed": "^2.2.31"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@sebgroup/green-core": "^1.
|
|
21
|
-
"@sebgroup/chlorophyll": "^3.6.
|
|
20
|
+
"@sebgroup/green-core": "^1.43.0",
|
|
21
|
+
"@sebgroup/chlorophyll": "^3.6.4",
|
|
22
22
|
"@sebgroup/extract": "^3.0.2",
|
|
23
23
|
"tslib": "^2.3.1"
|
|
24
24
|
},
|
|
@@ -51,6 +51,12 @@
|
|
|
51
51
|
"esm": "./esm2022/sebgroup-green-angular.mjs",
|
|
52
52
|
"default": "./fesm2022/sebgroup-green-angular.mjs"
|
|
53
53
|
},
|
|
54
|
+
"./v-angular": {
|
|
55
|
+
"types": "./v-angular/index.d.ts",
|
|
56
|
+
"esm2022": "./esm2022/v-angular/sebgroup-green-angular-v-angular.mjs",
|
|
57
|
+
"esm": "./esm2022/v-angular/sebgroup-green-angular-v-angular.mjs",
|
|
58
|
+
"default": "./fesm2022/sebgroup-green-angular-v-angular.mjs"
|
|
59
|
+
},
|
|
54
60
|
"./src/lib/accordion": {
|
|
55
61
|
"types": "./src/lib/accordion/index.d.ts",
|
|
56
62
|
"esm2022": "./esm2022/src/lib/accordion/sebgroup-green-angular-src-lib-accordion.mjs",
|
|
@@ -13,6 +13,6 @@ export declare class NgvBreadcrumbsComponent {
|
|
|
13
13
|
/** List of breadcrumbs to present. */
|
|
14
14
|
breadcrumbs: Breadcrumb[];
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvBreadcrumbsComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvBreadcrumbsComponent, "
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvBreadcrumbsComponent, "nggv-breadcrumbs", never, { "thook": { "alias": "thook"; "required": false; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -58,5 +58,5 @@ export declare class NgvButtonComponent extends NgvBaseControlValueAccessorCompo
|
|
|
58
58
|
/** @internal */
|
|
59
59
|
onClick(event: Event): void;
|
|
60
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvButtonComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvButtonComponent, "
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvButtonComponent, "nggv-button", never, { "thook": { "alias": "thook"; "required": false; }; "type": { "alias": "type"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "small": { "alias": "small"; "required": false; }; "href": { "alias": "href"; "required": false; }; }, { "ngvClick": "ngvClick"; }, never, ["*"], false, never>;
|
|
62
62
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class NgvCardComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvCardComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvCardComponent, "
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvCardComponent, "nggv-card", never, {}, {}, never, ["*"], false, never>;
|
|
5
5
|
}
|
|
@@ -23,5 +23,5 @@ export declare class NgvCheckboxComponent extends NgvBaseControlValueAccessorCom
|
|
|
23
23
|
/** Registers a callback function that is called when the child input element's value changes. */
|
|
24
24
|
registerOnChange(fn: (checked: any) => any): void;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvCheckboxComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvCheckboxComponent, "
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvCheckboxComponent, "nggv-checkbox", never, { "thook": { "alias": "thook"; "required": false; }; "optionalLabel": { "alias": "optionalLabel"; "required": false; }; }, { "valueChange": "valueChange"; }, never, ["*"], false, never>;
|
|
27
27
|
}
|
|
@@ -85,5 +85,5 @@ export declare class NgvDropdownListComponent implements OnInit, OnChanges {
|
|
|
85
85
|
*/
|
|
86
86
|
scrollToResult(option: any): void;
|
|
87
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvDropdownListComponent, [{ optional: true; }]>;
|
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvDropdownListComponent, "
|
|
88
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvDropdownListComponent, "nggv-dropdown-list", never, { "expanded": { "alias": "expanded"; "required": false; }; "state": { "alias": "state"; "required": false; }; "scrollOffset": { "alias": "scrollOffset"; "required": false; }; "optionContentTpl": { "alias": "optionContentTpl"; "required": false; }; "id": { "alias": "id"; "required": false; }; "thook": { "alias": "thook"; "required": false; }; "options": { "alias": "options"; "required": false; }; "textToHighlight": { "alias": "textToHighlight"; "required": false; }; }, { "selectedValueChanged": "selectedValueChanged"; "closed": "closed"; }, never, never, false, never>;
|
|
89
89
|
}
|
|
@@ -95,5 +95,5 @@ export declare class NgvDropdownComponent<K = string | null | undefined, V = str
|
|
|
95
95
|
*/
|
|
96
96
|
isOption(option: OptionBase<T>): option is OptionGroup<T>;
|
|
97
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvDropdownComponent<any, any, any>, [{ optional: true; self: true; }, { optional: true; }, null, null]>;
|
|
98
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvDropdownComponent<any, any, any>, "
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvDropdownComponent<any, any, any>, "nggv-dropdown", never, { "thook": { "alias": "thook"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "scrollOffset": { "alias": "scrollOffset"; "required": false; }; "allowControlNullishOption": { "alias": "allowControlNullishOption"; "required": false; }; "textToHighlight": { "alias": "textToHighlight"; "required": false; }; "selectOnSingleOption": { "alias": "selectOnSingleOption"; "required": false; }; }, { "expandedChange": "expandedChange"; }, ["selectedContentTpl", "optionContentTpl"], ["*"], false, never>;
|
|
99
99
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export * from './typeahead-highlight/typeahead-highlight.component';
|
|
2
2
|
export * from './typeahead-input/typeahead-input.component';
|
|
3
|
+
export * from './typeahead-dropdown-list/typeahead-dropdown-list.component';
|
|
4
|
+
export * from './typeahead.directive';
|
|
5
|
+
export * from './typeahead.module';
|
|
@@ -30,5 +30,5 @@ export declare class NgvTypeaheadDropdownListComponent extends NgvDropdownListCo
|
|
|
30
30
|
*/
|
|
31
31
|
private formatSelected;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvTypeaheadDropdownListComponent, [{ optional: true; skipSelf: true; }, null]>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTypeaheadDropdownListComponent, "
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTypeaheadDropdownListComponent, "nggv-typeahead-dropdown-list", never, { "hostComponent": { "alias": "hostComponent"; "required": false; }; "resultFormatter": { "alias": "resultFormatter"; "required": false; }; "selectedFormatter": { "alias": "selectedFormatter"; "required": false; }; }, {}, never, never, false, never>;
|
|
34
34
|
}
|
package/src/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.d.ts
CHANGED
|
@@ -30,5 +30,5 @@ export declare class NgvTypeaheadHighlightComponent implements OnChanges {
|
|
|
30
30
|
*/
|
|
31
31
|
private getHighlightedPart;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvTypeaheadHighlightComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTypeaheadHighlightComponent, "
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTypeaheadHighlightComponent, "nggv-typeahead-highlight", never, { "textContent": { "alias": "textContent"; "required": false; }; "textToHighlight": { "alias": "textToHighlight"; "required": false; }; }, {}, never, never, false, never>;
|
|
34
34
|
}
|
|
@@ -55,5 +55,5 @@ export declare class NgvTypeaheadInputComponent extends NgvInputComponent implem
|
|
|
55
55
|
*/
|
|
56
56
|
private setInput;
|
|
57
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvTypeaheadInputComponent, [null, null, { optional: true; self: true; }, { optional: true; }, null]>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTypeaheadInputComponent, "
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTypeaheadInputComponent, "nggv-typeahead-input", never, { "hostComponent": { "alias": "hostComponent"; "required": false; }; "resultFormatter": { "alias": "resultFormatter"; "required": false; }; "selectedFormatter": { "alias": "selectedFormatter"; "required": false; }; }, {}, never, never, false, never>;
|
|
59
59
|
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ComponentRef, ElementRef, EventEmitter, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { OperatorFunction } from 'rxjs';
|
|
3
|
+
import { Option, OptionBase } from '@sebgroup/green-angular/src/v-angular/core';
|
|
4
|
+
import { NgvDropdownComponent } from '../dropdown.component';
|
|
5
|
+
import { NgvInputComponent } from '@sebgroup/green-angular/src/v-angular/input';
|
|
6
|
+
import { NgvTypeaheadDropdownListComponent } from '../typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component';
|
|
7
|
+
import { NgvTypeaheadInputComponent } from './typeahead-input/typeahead-input.component';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class NgvTypeaheadDirective<K = string | null | undefined, V = string | null | undefined, T extends Option<K, V> = Option<K, V>> implements OnInit, OnDestroy {
|
|
10
|
+
private viewContainerRef;
|
|
11
|
+
private element;
|
|
12
|
+
private hostDropdown;
|
|
13
|
+
private hostInput;
|
|
14
|
+
/** Function that filter the inputvalue */
|
|
15
|
+
set ngvTypeahead(value: OperatorFunction<string, T[]> | undefined);
|
|
16
|
+
/** Formats each item that is displayed as an option. Only applies format if the option if it implement Option interface. */
|
|
17
|
+
resultFormatter?: (option: OptionBase<any>) => string;
|
|
18
|
+
/** Formats the selected item in the input when dropdown is opened. If no function is provided, it will display the value of the selected objects label property */
|
|
19
|
+
selectedFormatter?: (selected: OptionBase<any>) => string;
|
|
20
|
+
/** Allow option to be unselected in the dropdown even if it is required. Defaults to true */
|
|
21
|
+
allowUnselect: boolean;
|
|
22
|
+
/** Custom label for the unselect option */
|
|
23
|
+
unselectLabel?: string;
|
|
24
|
+
/** Emits the entered string the user has written in the input */
|
|
25
|
+
filterPhraseChange: EventEmitter<string>;
|
|
26
|
+
/** Forward text inputs to apply the filter function*/
|
|
27
|
+
onNgvInput(event: any): void;
|
|
28
|
+
/** Helper to the determine if the host is nggv-drodpown or nggv-input*/
|
|
29
|
+
get hostIsDropdown(): boolean;
|
|
30
|
+
/** Predefined options */
|
|
31
|
+
get defaultNullishOption(): OptionBase<any>;
|
|
32
|
+
get emptyOption(): OptionBase<any>;
|
|
33
|
+
/** Name of the component. nggv-dropdown if NgvDropdownComponent or nggv-input if NgvInputComponent */
|
|
34
|
+
get localName(): any;
|
|
35
|
+
dropdownListComponent: ComponentRef<NgvTypeaheadDropdownListComponent>;
|
|
36
|
+
inputComponent: ComponentRef<NgvTypeaheadInputComponent>;
|
|
37
|
+
private typeaheadFunction?;
|
|
38
|
+
private inputValue$;
|
|
39
|
+
private inputSubscription$?;
|
|
40
|
+
private onDestroy$;
|
|
41
|
+
constructor(viewContainerRef: ViewContainerRef, element: ElementRef, hostDropdown: NgvDropdownComponent, hostInput: NgvInputComponent);
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
ngOnDestroy(): void;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* Core functionality of typeahead. Emits input, then filters the result based on the supplied function
|
|
47
|
+
* If directive is applied on nggv-input, manually show or hide options in the list.
|
|
48
|
+
* If directive is applied on nggv-dropdown, let the dropdown itself choose when to open or close
|
|
49
|
+
*/
|
|
50
|
+
private handleInputChanges;
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Creates a nggv-input if the host itself is not a text-input
|
|
54
|
+
* Set styles to not display the input when closed
|
|
55
|
+
* Trigger filtering when changes occur in the field
|
|
56
|
+
* */
|
|
57
|
+
private createInput;
|
|
58
|
+
/** @internal Creates a nggv-dropdown-list if the host itself is a nggv-input */
|
|
59
|
+
private createDropdownList;
|
|
60
|
+
/**
|
|
61
|
+
* @internal Sets the options the user can select.
|
|
62
|
+
* If the host is a nggv-dropdown, utilize the dropdown itself to display the options
|
|
63
|
+
* If the host is a nggv-input, use the created nggv-dropdown-list to displaye the options
|
|
64
|
+
* @param filteredValues The options to display in the dropdown
|
|
65
|
+
* @param emptyInput If the input is empty
|
|
66
|
+
*/
|
|
67
|
+
private setOptions;
|
|
68
|
+
/**
|
|
69
|
+
* @internal Formats the available options to display in the dropdown list
|
|
70
|
+
* @param options The selected value
|
|
71
|
+
* @returns The formatted value
|
|
72
|
+
*/
|
|
73
|
+
private formatOptions;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvTypeaheadDirective<any, any, any>, [null, null, { optional: true; host: true; }, { optional: true; host: true; }]>;
|
|
75
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgvTypeaheadDirective<any, any, any>, "nggv-input[ngvTypeahead]", never, { "ngvTypeahead": { "alias": "ngvTypeahead"; "required": false; }; "resultFormatter": { "alias": "resultFormatter"; "required": false; }; "selectedFormatter": { "alias": "selectedFormatter"; "required": false; }; "allowUnselect": { "alias": "allowUnselect"; "required": false; }; "unselectLabel": { "alias": "unselectLabel"; "required": false; }; }, { "filterPhraseChange": "filterPhraseChange"; }, never, never, true, never>;
|
|
76
|
+
}
|
|
@@ -12,5 +12,5 @@ export declare class NgvInfoCircleComponent {
|
|
|
12
12
|
*/
|
|
13
13
|
info: string;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvInfoCircleComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvInfoCircleComponent, "
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvInfoCircleComponent, "nggv-info-circle", never, { "thook": { "alias": "thook"; "required": false; }; "info": { "alias": "info"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
16
|
}
|
|
@@ -86,5 +86,5 @@ export declare class NgvInputComponent extends NgvBaseControlValueAccessorCompon
|
|
|
86
86
|
/** @internal */
|
|
87
87
|
onInput(event: Event): void;
|
|
88
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvInputComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
89
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvInputComponent, "
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvInputComponent, "nggv-input", never, { "thook": { "alias": "thook"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "email": { "alias": "email"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "showCharacterCountdown": { "alias": "showCharacterCountdown"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "badgeText": { "alias": "badgeText"; "required": false; }; "inputMask": { "alias": "inputMask"; "required": false; }; }, { "ngvInput": "ngvInput"; }, never, ["[slot='prefix']", "[slot='suffix']", "*"], false, never>;
|
|
90
90
|
}
|
|
@@ -51,5 +51,5 @@ export declare class NgvDialogComponent implements OnInit {
|
|
|
51
51
|
close(event?: Event, initiator?: string): void;
|
|
52
52
|
focusTrap(event: KeyboardEvent): void;
|
|
53
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvDialogComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvDialogComponent, "
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvDialogComponent, "nggv-dialog", ["dialog"], { "thook": { "alias": "thook"; "required": false; }; "shown": { "alias": "shown"; "required": false; }; "initiallyShown": { "alias": "initiallyShown"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "title": { "alias": "title"; "required": false; }; "content": { "alias": "content"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "payload": { "alias": "payload"; "required": false; }; "dialogTitleId": { "alias": "dialogTitleId"; "required": false; }; "dialogBodyId": { "alias": "dialogBodyId"; "required": false; }; "closeModalOnEscape": { "alias": "closeModalOnEscape"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, { "ngvCloseEvent": "ngvCloseEvent"; "ngvPositiveEvent": "ngvPositiveEvent"; "ngvNeutralEvent": "ngvNeutralEvent"; "ngvNegativeEvent": "ngvNegativeEvent"; }, never, ["*"], false, never>;
|
|
55
55
|
}
|
|
@@ -20,5 +20,5 @@ export declare class NgvFoldOutComponent implements OnDestroy {
|
|
|
20
20
|
*/
|
|
21
21
|
subscribeToOutsideClickEvent(): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvFoldOutComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvFoldOutComponent, "
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvFoldOutComponent, "nggv-fold-out", never, { "thook": { "alias": "thook"; "required": false; }; "alignOptions": { "alias": "alignOptions"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
24
24
|
}
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
* The modal title can be set using the @Input heading, and will automatically be translated if
|
|
6
6
|
* the string matches a cms key.
|
|
7
7
|
* Content can be injected into the body of the slide-out by either setting the @Input content to any type of
|
|
8
|
-
* markdown, or using content projection (adding content between the `
|
|
8
|
+
* markdown, or using content projection (adding content between the `nggv-slideout-modal`-start and end tag).
|
|
9
9
|
* If the content needs to stretch outside the normal padded area, add the attribute `slot="outside-content"` to the
|
|
10
10
|
* projected content main element.
|
|
11
11
|
* Test hooks:
|
|
@@ -72,5 +72,5 @@ export declare class NgvSlideOutComponent implements OnInit {
|
|
|
72
72
|
focusTrap(event: KeyboardEvent): void;
|
|
73
73
|
private limitFocusable;
|
|
74
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvSlideOutComponent, never>;
|
|
75
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvSlideOutComponent, "
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvSlideOutComponent, "nggv-slideout-modal", never, { "side": { "alias": "side"; "required": false; }; "shown": { "alias": "shown"; "required": false; }; "initiallyShown": { "alias": "initiallyShown"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "title": { "alias": "title"; "required": false; }; "content": { "alias": "content"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "autoWidth": { "alias": "autoWidth"; "required": false; }; "thook": { "alias": "thook"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, { "ngvCloseEvent": "ngvCloseEvent"; "ngvPositiveEvent": "ngvPositiveEvent"; "ngvNeutralEvent": "ngvNeutralEvent"; "ngvNegativeEvent": "ngvNegativeEvent"; }, never, ["*", "[slot='outside-content']"], false, never>;
|
|
76
76
|
}
|
|
@@ -44,5 +44,5 @@ export declare class NgvRadioComponent extends NgvBaseControlValueAccessorCompon
|
|
|
44
44
|
/** Checks that the name properties match and updates name property if only formControlName is given. */
|
|
45
45
|
private _checkName;
|
|
46
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvRadioComponent, [{ optional: true; self: true; }, { optional: true; }, null, null]>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvRadioComponent, "
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvRadioComponent, "nggv-radio", never, { "thook": { "alias": "thook"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
48
48
|
}
|
|
@@ -40,5 +40,5 @@ export declare class NgvTextareaComponent extends NgvBaseControlValueAccessorCom
|
|
|
40
40
|
/** @internal */
|
|
41
41
|
onInput(event: Event): void;
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvTextareaComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTextareaComponent, "
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTextareaComponent, "nggv-textarea", never, { "thook": { "alias": "thook"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
44
44
|
}
|
|
@@ -13,6 +13,6 @@ export declare class NgvBreadcrumbsComponent {
|
|
|
13
13
|
/** List of breadcrumbs to present. */
|
|
14
14
|
breadcrumbs: Breadcrumb[];
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvBreadcrumbsComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvBreadcrumbsComponent, "
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvBreadcrumbsComponent, "nggv-breadcrumbs", never, { "thook": { "alias": "thook"; "required": false; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -58,5 +58,5 @@ export declare class NgvButtonComponent extends NgvBaseControlValueAccessorCompo
|
|
|
58
58
|
/** @internal */
|
|
59
59
|
onClick(event: Event): void;
|
|
60
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvButtonComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvButtonComponent, "
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvButtonComponent, "nggv-button", never, { "thook": { "alias": "thook"; "required": false; }; "type": { "alias": "type"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "small": { "alias": "small"; "required": false; }; "href": { "alias": "href"; "required": false; }; }, { "ngvClick": "ngvClick"; }, never, ["*"], false, never>;
|
|
62
62
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class NgvCardComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvCardComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvCardComponent, "
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvCardComponent, "nggv-card", never, {}, {}, never, ["*"], false, never>;
|
|
5
5
|
}
|
|
@@ -23,5 +23,5 @@ export declare class NgvCheckboxComponent extends NgvBaseControlValueAccessorCom
|
|
|
23
23
|
/** Registers a callback function that is called when the child input element's value changes. */
|
|
24
24
|
registerOnChange(fn: (checked: any) => any): void;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvCheckboxComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvCheckboxComponent, "
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvCheckboxComponent, "nggv-checkbox", never, { "thook": { "alias": "thook"; "required": false; }; "optionalLabel": { "alias": "optionalLabel"; "required": false; }; }, { "valueChange": "valueChange"; }, never, ["*"], false, never>;
|
|
27
27
|
}
|
|
@@ -85,5 +85,5 @@ export declare class NgvDropdownListComponent implements OnInit, OnChanges {
|
|
|
85
85
|
*/
|
|
86
86
|
scrollToResult(option: any): void;
|
|
87
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvDropdownListComponent, [{ optional: true; }]>;
|
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvDropdownListComponent, "
|
|
88
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvDropdownListComponent, "nggv-dropdown-list", never, { "expanded": { "alias": "expanded"; "required": false; }; "state": { "alias": "state"; "required": false; }; "scrollOffset": { "alias": "scrollOffset"; "required": false; }; "optionContentTpl": { "alias": "optionContentTpl"; "required": false; }; "id": { "alias": "id"; "required": false; }; "thook": { "alias": "thook"; "required": false; }; "options": { "alias": "options"; "required": false; }; "textToHighlight": { "alias": "textToHighlight"; "required": false; }; }, { "selectedValueChanged": "selectedValueChanged"; "closed": "closed"; }, never, never, false, never>;
|
|
89
89
|
}
|
|
@@ -95,5 +95,5 @@ export declare class NgvDropdownComponent<K = string | null | undefined, V = str
|
|
|
95
95
|
*/
|
|
96
96
|
isOption(option: OptionBase<T>): option is OptionGroup<T>;
|
|
97
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvDropdownComponent<any, any, any>, [{ optional: true; self: true; }, { optional: true; }, null, null]>;
|
|
98
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvDropdownComponent<any, any, any>, "
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvDropdownComponent<any, any, any>, "nggv-dropdown", never, { "thook": { "alias": "thook"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "scrollOffset": { "alias": "scrollOffset"; "required": false; }; "allowControlNullishOption": { "alias": "allowControlNullishOption"; "required": false; }; "textToHighlight": { "alias": "textToHighlight"; "required": false; }; "selectOnSingleOption": { "alias": "selectOnSingleOption"; "required": false; }; }, { "expandedChange": "expandedChange"; }, ["selectedContentTpl", "optionContentTpl"], ["*"], false, never>;
|
|
99
99
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export * from './typeahead-highlight/typeahead-highlight.component';
|
|
2
2
|
export * from './typeahead-input/typeahead-input.component';
|
|
3
|
+
export * from './typeahead-dropdown-list/typeahead-dropdown-list.component';
|
|
4
|
+
export * from './typeahead.directive';
|
|
5
|
+
export * from './typeahead.module';
|
package/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.d.ts
CHANGED
|
@@ -30,5 +30,5 @@ export declare class NgvTypeaheadDropdownListComponent extends NgvDropdownListCo
|
|
|
30
30
|
*/
|
|
31
31
|
private formatSelected;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvTypeaheadDropdownListComponent, [{ optional: true; skipSelf: true; }, null]>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTypeaheadDropdownListComponent, "
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTypeaheadDropdownListComponent, "nggv-typeahead-dropdown-list", never, { "hostComponent": { "alias": "hostComponent"; "required": false; }; "resultFormatter": { "alias": "resultFormatter"; "required": false; }; "selectedFormatter": { "alias": "selectedFormatter"; "required": false; }; }, {}, never, never, false, never>;
|
|
34
34
|
}
|
|
@@ -30,5 +30,5 @@ export declare class NgvTypeaheadHighlightComponent implements OnChanges {
|
|
|
30
30
|
*/
|
|
31
31
|
private getHighlightedPart;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvTypeaheadHighlightComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTypeaheadHighlightComponent, "
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTypeaheadHighlightComponent, "nggv-typeahead-highlight", never, { "textContent": { "alias": "textContent"; "required": false; }; "textToHighlight": { "alias": "textToHighlight"; "required": false; }; }, {}, never, never, false, never>;
|
|
34
34
|
}
|
|
@@ -55,5 +55,5 @@ export declare class NgvTypeaheadInputComponent extends NgvInputComponent implem
|
|
|
55
55
|
*/
|
|
56
56
|
private setInput;
|
|
57
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvTypeaheadInputComponent, [null, null, { optional: true; self: true; }, { optional: true; }, null]>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTypeaheadInputComponent, "
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTypeaheadInputComponent, "nggv-typeahead-input", never, { "hostComponent": { "alias": "hostComponent"; "required": false; }; "resultFormatter": { "alias": "resultFormatter"; "required": false; }; "selectedFormatter": { "alias": "selectedFormatter"; "required": false; }; }, {}, never, never, false, never>;
|
|
59
59
|
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ComponentRef, ElementRef, EventEmitter, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { OperatorFunction } from 'rxjs';
|
|
3
|
+
import { Option, OptionBase } from '@sebgroup/green-angular/src/v-angular/core';
|
|
4
|
+
import { NgvDropdownComponent } from '../dropdown.component';
|
|
5
|
+
import { NgvInputComponent } from '@sebgroup/green-angular/src/v-angular/input';
|
|
6
|
+
import { NgvTypeaheadDropdownListComponent } from '../typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component';
|
|
7
|
+
import { NgvTypeaheadInputComponent } from './typeahead-input/typeahead-input.component';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class NgvTypeaheadDirective<K = string | null | undefined, V = string | null | undefined, T extends Option<K, V> = Option<K, V>> implements OnInit, OnDestroy {
|
|
10
|
+
private viewContainerRef;
|
|
11
|
+
private element;
|
|
12
|
+
private hostDropdown;
|
|
13
|
+
private hostInput;
|
|
14
|
+
/** Function that filter the inputvalue */
|
|
15
|
+
set ngvTypeahead(value: OperatorFunction<string, T[]> | undefined);
|
|
16
|
+
/** Formats each item that is displayed as an option. Only applies format if the option if it implement Option interface. */
|
|
17
|
+
resultFormatter?: (option: OptionBase<any>) => string;
|
|
18
|
+
/** Formats the selected item in the input when dropdown is opened. If no function is provided, it will display the value of the selected objects label property */
|
|
19
|
+
selectedFormatter?: (selected: OptionBase<any>) => string;
|
|
20
|
+
/** Allow option to be unselected in the dropdown even if it is required. Defaults to true */
|
|
21
|
+
allowUnselect: boolean;
|
|
22
|
+
/** Custom label for the unselect option */
|
|
23
|
+
unselectLabel?: string;
|
|
24
|
+
/** Emits the entered string the user has written in the input */
|
|
25
|
+
filterPhraseChange: EventEmitter<string>;
|
|
26
|
+
/** Forward text inputs to apply the filter function*/
|
|
27
|
+
onNgvInput(event: any): void;
|
|
28
|
+
/** Helper to the determine if the host is nggv-drodpown or nggv-input*/
|
|
29
|
+
get hostIsDropdown(): boolean;
|
|
30
|
+
/** Predefined options */
|
|
31
|
+
get defaultNullishOption(): OptionBase<any>;
|
|
32
|
+
get emptyOption(): OptionBase<any>;
|
|
33
|
+
/** Name of the component. nggv-dropdown if NgvDropdownComponent or nggv-input if NgvInputComponent */
|
|
34
|
+
get localName(): any;
|
|
35
|
+
dropdownListComponent: ComponentRef<NgvTypeaheadDropdownListComponent>;
|
|
36
|
+
inputComponent: ComponentRef<NgvTypeaheadInputComponent>;
|
|
37
|
+
private typeaheadFunction?;
|
|
38
|
+
private inputValue$;
|
|
39
|
+
private inputSubscription$?;
|
|
40
|
+
private onDestroy$;
|
|
41
|
+
constructor(viewContainerRef: ViewContainerRef, element: ElementRef, hostDropdown: NgvDropdownComponent, hostInput: NgvInputComponent);
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
ngOnDestroy(): void;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* Core functionality of typeahead. Emits input, then filters the result based on the supplied function
|
|
47
|
+
* If directive is applied on nggv-input, manually show or hide options in the list.
|
|
48
|
+
* If directive is applied on nggv-dropdown, let the dropdown itself choose when to open or close
|
|
49
|
+
*/
|
|
50
|
+
private handleInputChanges;
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Creates a nggv-input if the host itself is not a text-input
|
|
54
|
+
* Set styles to not display the input when closed
|
|
55
|
+
* Trigger filtering when changes occur in the field
|
|
56
|
+
* */
|
|
57
|
+
private createInput;
|
|
58
|
+
/** @internal Creates a nggv-dropdown-list if the host itself is a nggv-input */
|
|
59
|
+
private createDropdownList;
|
|
60
|
+
/**
|
|
61
|
+
* @internal Sets the options the user can select.
|
|
62
|
+
* If the host is a nggv-dropdown, utilize the dropdown itself to display the options
|
|
63
|
+
* If the host is a nggv-input, use the created nggv-dropdown-list to displaye the options
|
|
64
|
+
* @param filteredValues The options to display in the dropdown
|
|
65
|
+
* @param emptyInput If the input is empty
|
|
66
|
+
*/
|
|
67
|
+
private setOptions;
|
|
68
|
+
/**
|
|
69
|
+
* @internal Formats the available options to display in the dropdown list
|
|
70
|
+
* @param options The selected value
|
|
71
|
+
* @returns The formatted value
|
|
72
|
+
*/
|
|
73
|
+
private formatOptions;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvTypeaheadDirective<any, any, any>, [null, null, { optional: true; host: true; }, { optional: true; host: true; }]>;
|
|
75
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgvTypeaheadDirective<any, any, any>, "nggv-input[ngvTypeahead]", never, { "ngvTypeahead": { "alias": "ngvTypeahead"; "required": false; }; "resultFormatter": { "alias": "resultFormatter"; "required": false; }; "selectedFormatter": { "alias": "selectedFormatter"; "required": false; }; "allowUnselect": { "alias": "allowUnselect"; "required": false; }; "unselectLabel": { "alias": "unselectLabel"; "required": false; }; }, { "filterPhraseChange": "filterPhraseChange"; }, never, never, true, never>;
|
|
76
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './base-control-value-accessor';
|
|
2
|
+
export * from './breadcrumbs';
|
|
3
|
+
export * from './button';
|
|
4
|
+
export * from './card';
|
|
5
|
+
export * from './checkbox';
|
|
6
|
+
export * from './dropdown';
|
|
7
|
+
export * from './dropdown/dropdown-list';
|
|
8
|
+
export * from './i18n';
|
|
9
|
+
export * from './info-circle';
|
|
10
|
+
export * from './input';
|
|
11
|
+
export * from './input-mask';
|
|
12
|
+
export * from './modal';
|
|
13
|
+
export * from './radio';
|
|
14
|
+
export * from './textarea';
|
|
15
|
+
export * from './tooltip';
|
|
16
|
+
export * from './v-angular.module';
|
|
@@ -12,5 +12,5 @@ export declare class NgvInfoCircleComponent {
|
|
|
12
12
|
*/
|
|
13
13
|
info: string;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvInfoCircleComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvInfoCircleComponent, "
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvInfoCircleComponent, "nggv-info-circle", never, { "thook": { "alias": "thook"; "required": false; }; "info": { "alias": "info"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
16
|
}
|
|
@@ -86,5 +86,5 @@ export declare class NgvInputComponent extends NgvBaseControlValueAccessorCompon
|
|
|
86
86
|
/** @internal */
|
|
87
87
|
onInput(event: Event): void;
|
|
88
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvInputComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
89
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvInputComponent, "
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvInputComponent, "nggv-input", never, { "thook": { "alias": "thook"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "email": { "alias": "email"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "showCharacterCountdown": { "alias": "showCharacterCountdown"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "badgeText": { "alias": "badgeText"; "required": false; }; "inputMask": { "alias": "inputMask"; "required": false; }; }, { "ngvInput": "ngvInput"; }, never, ["[slot='prefix']", "[slot='suffix']", "*"], false, never>;
|
|
90
90
|
}
|
|
@@ -51,5 +51,5 @@ export declare class NgvDialogComponent implements OnInit {
|
|
|
51
51
|
close(event?: Event, initiator?: string): void;
|
|
52
52
|
focusTrap(event: KeyboardEvent): void;
|
|
53
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvDialogComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvDialogComponent, "
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvDialogComponent, "nggv-dialog", ["dialog"], { "thook": { "alias": "thook"; "required": false; }; "shown": { "alias": "shown"; "required": false; }; "initiallyShown": { "alias": "initiallyShown"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "title": { "alias": "title"; "required": false; }; "content": { "alias": "content"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "payload": { "alias": "payload"; "required": false; }; "dialogTitleId": { "alias": "dialogTitleId"; "required": false; }; "dialogBodyId": { "alias": "dialogBodyId"; "required": false; }; "closeModalOnEscape": { "alias": "closeModalOnEscape"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, { "ngvCloseEvent": "ngvCloseEvent"; "ngvPositiveEvent": "ngvPositiveEvent"; "ngvNeutralEvent": "ngvNeutralEvent"; "ngvNegativeEvent": "ngvNegativeEvent"; }, never, ["*"], false, never>;
|
|
55
55
|
}
|
|
@@ -20,5 +20,5 @@ export declare class NgvFoldOutComponent implements OnDestroy {
|
|
|
20
20
|
*/
|
|
21
21
|
subscribeToOutsideClickEvent(): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvFoldOutComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvFoldOutComponent, "
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvFoldOutComponent, "nggv-fold-out", never, { "thook": { "alias": "thook"; "required": false; }; "alignOptions": { "alias": "alignOptions"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
24
24
|
}
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
* The modal title can be set using the @Input heading, and will automatically be translated if
|
|
6
6
|
* the string matches a cms key.
|
|
7
7
|
* Content can be injected into the body of the slide-out by either setting the @Input content to any type of
|
|
8
|
-
* markdown, or using content projection (adding content between the `
|
|
8
|
+
* markdown, or using content projection (adding content between the `nggv-slideout-modal`-start and end tag).
|
|
9
9
|
* If the content needs to stretch outside the normal padded area, add the attribute `slot="outside-content"` to the
|
|
10
10
|
* projected content main element.
|
|
11
11
|
* Test hooks:
|
|
@@ -72,5 +72,5 @@ export declare class NgvSlideOutComponent implements OnInit {
|
|
|
72
72
|
focusTrap(event: KeyboardEvent): void;
|
|
73
73
|
private limitFocusable;
|
|
74
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvSlideOutComponent, never>;
|
|
75
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvSlideOutComponent, "
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvSlideOutComponent, "nggv-slideout-modal", never, { "side": { "alias": "side"; "required": false; }; "shown": { "alias": "shown"; "required": false; }; "initiallyShown": { "alias": "initiallyShown"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "title": { "alias": "title"; "required": false; }; "content": { "alias": "content"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "autoWidth": { "alias": "autoWidth"; "required": false; }; "thook": { "alias": "thook"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, { "ngvCloseEvent": "ngvCloseEvent"; "ngvPositiveEvent": "ngvPositiveEvent"; "ngvNeutralEvent": "ngvNeutralEvent"; "ngvNegativeEvent": "ngvNegativeEvent"; }, never, ["*", "[slot='outside-content']"], false, never>;
|
|
76
76
|
}
|
|
@@ -44,5 +44,5 @@ export declare class NgvRadioComponent extends NgvBaseControlValueAccessorCompon
|
|
|
44
44
|
/** Checks that the name properties match and updates name property if only formControlName is given. */
|
|
45
45
|
private _checkName;
|
|
46
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgvRadioComponent, [{ optional: true; self: true; }, { optional: true; }, null, null]>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgvRadioComponent, "
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvRadioComponent, "nggv-radio", never, { "thook": { "alias": "thook"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
48
48
|
}
|