@sebgroup/green-angular 6.0.1 → 6.0.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/src/v-angular/dropdown/dropdown-list/dropdown-list.component.mjs +16 -3
- package/esm2022/src/v-angular/dropdown/dropdown.component.mjs +11 -3
- package/esm2022/src/v-angular/dropdown/typeahead/typeahead.directive.mjs +2 -1
- package/esm2022/src/v-angular/textarea/textarea.component.mjs +3 -3
- package/esm2022/v-angular/dropdown/dropdown-list/dropdown-list.component.mjs +16 -3
- package/esm2022/v-angular/dropdown/dropdown.component.mjs +11 -3
- package/esm2022/v-angular/dropdown/typeahead/typeahead.directive.mjs +2 -1
- package/esm2022/v-angular/textarea/textarea.component.mjs +3 -3
- package/fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs +26 -4
- package/fesm2022/sebgroup-green-angular-src-v-angular-dropdown.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 +28 -6
- package/fesm2022/sebgroup-green-angular-v-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/src/v-angular/dropdown/dropdown-list/dropdown-list.component.d.ts +8 -1
- package/src/v-angular/dropdown/dropdown.component.d.ts +7 -1
- package/v-angular/dropdown/dropdown-list/dropdown-list.component.d.ts +8 -1
- package/v-angular/dropdown/dropdown.component.d.ts +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-angular",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": ">=18",
|
|
6
6
|
"@angular/common": ">=18",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"scroll-into-view-if-needed": "^2.2.31"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@sebgroup/green-core": "^1.
|
|
20
|
+
"@sebgroup/green-core": "^1.87.0",
|
|
21
21
|
"@sebgroup/chlorophyll": "^3.6.20",
|
|
22
22
|
"@sebgroup/extract": "^3.0.2",
|
|
23
23
|
"tslib": "^2.3.1"
|
|
@@ -26,6 +26,12 @@ export declare class NggvDropdownListComponent implements OnInit, OnChanges {
|
|
|
26
26
|
* When false, value is emitted every time an option is selected
|
|
27
27
|
* */
|
|
28
28
|
onlyEmitDistinctChanges: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Used to control if the dropdown list should select the current active element, when Space is pressed on the keyboard.
|
|
31
|
+
* Primary usage is for typeahead, where the should be able to write a filter query containing spaces,
|
|
32
|
+
* but not select the current active element with Space.
|
|
33
|
+
*/
|
|
34
|
+
selectWithSpace: boolean;
|
|
29
35
|
selectedValueChanged: EventEmitter<any>;
|
|
30
36
|
closed: EventEmitter<void>;
|
|
31
37
|
/** The current active option based on numeric index. */
|
|
@@ -87,6 +93,7 @@ export declare class NggvDropdownListComponent implements OnInit, OnChanges {
|
|
|
87
93
|
/**
|
|
88
94
|
* @internal
|
|
89
95
|
* Enter toggles the dropdown, home, end, and, arrows change the index.
|
|
96
|
+
* Space selects the currently active option if `selectWithSpace` is true.
|
|
90
97
|
* @param event fired containing which key was released.
|
|
91
98
|
*/
|
|
92
99
|
onKeyUp(event: KeyboardEvent): void;
|
|
@@ -100,5 +107,5 @@ export declare class NggvDropdownListComponent implements OnInit, OnChanges {
|
|
|
100
107
|
*/
|
|
101
108
|
scrollToResult(option: any, focusElement?: boolean): void;
|
|
102
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<NggvDropdownListComponent, [{ optional: true; }]>;
|
|
103
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NggvDropdownListComponent, "nggv-dropdown-list", never, { "expanded": { "alias": "expanded"; "required": false; }; "state": { "alias": "state"; "required": false; }; "scrollOffset": { "alias": "scrollOffset"; "required": false; }; "optionContentTpl": { "alias": "optionContentTpl"; "required": false; }; "groupLabelTpl": { "alias": "groupLabelTpl"; "required": false; }; "id": { "alias": "id"; "required": false; }; "thook": { "alias": "thook"; "required": false; }; "options": { "alias": "options"; "required": false; }; "textToHighlight": { "alias": "textToHighlight"; "required": false; }; "onlyEmitDistinctChanges": { "alias": "onlyEmitDistinctChanges"; "required": false; }; }, { "selectedValueChanged": "selectedValueChanged"; "closed": "closed"; }, never, never, false, never>;
|
|
110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NggvDropdownListComponent, "nggv-dropdown-list", never, { "expanded": { "alias": "expanded"; "required": false; }; "state": { "alias": "state"; "required": false; }; "scrollOffset": { "alias": "scrollOffset"; "required": false; }; "optionContentTpl": { "alias": "optionContentTpl"; "required": false; }; "groupLabelTpl": { "alias": "groupLabelTpl"; "required": false; }; "id": { "alias": "id"; "required": false; }; "thook": { "alias": "thook"; "required": false; }; "options": { "alias": "options"; "required": false; }; "textToHighlight": { "alias": "textToHighlight"; "required": false; }; "onlyEmitDistinctChanges": { "alias": "onlyEmitDistinctChanges"; "required": false; }; "selectWithSpace": { "alias": "selectWithSpace"; "required": false; }; }, { "selectedValueChanged": "selectedValueChanged"; "closed": "closed"; }, never, never, false, never>;
|
|
104
111
|
}
|
|
@@ -52,6 +52,12 @@ export declare class NggvDropdownComponent<K = string | null | undefined, V = st
|
|
|
52
52
|
* Defaults to true.
|
|
53
53
|
*/
|
|
54
54
|
selectOnSingleOption: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Used to control if the dropdown list should select the current active element, when Space is pressed on the keyboard.
|
|
57
|
+
* Primary usage is for typeahead, where the should be able to write a filter query containing spaces,
|
|
58
|
+
* but not select the current active element with Space.
|
|
59
|
+
*/
|
|
60
|
+
selectWithSpace: boolean;
|
|
55
61
|
/**
|
|
56
62
|
* Used to determine which changes should be handled by the dropdown.
|
|
57
63
|
* If set to false, all changes will be handled by the dropdown.
|
|
@@ -114,5 +120,5 @@ export declare class NggvDropdownComponent<K = string | null | undefined, V = st
|
|
|
114
120
|
*/
|
|
115
121
|
isOption(option: OptionBase<T>): option is OptionGroup<T>;
|
|
116
122
|
static ɵfac: i0.ɵɵFactoryDeclaration<NggvDropdownComponent<any, any, any>, [{ optional: true; self: true; }, { optional: true; }, null, null]>;
|
|
117
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NggvDropdownComponent<any, any, any>, "nggv-dropdown", never, { "thook": { "alias": "thook"; "required": false; }; "size": { "alias": "size"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "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; }; "onlyHandleDistinctChanges": { "alias": "onlyHandleDistinctChanges"; "required": false; }; }, { "expandedChange": "expandedChange"; }, ["selectedContentTpl", "optionContentTpl", "groupLabelTpl"], ["*"], false, never>;
|
|
123
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NggvDropdownComponent<any, any, any>, "nggv-dropdown", never, { "thook": { "alias": "thook"; "required": false; }; "size": { "alias": "size"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "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; }; "selectWithSpace": { "alias": "selectWithSpace"; "required": false; }; "onlyHandleDistinctChanges": { "alias": "onlyHandleDistinctChanges"; "required": false; }; }, { "expandedChange": "expandedChange"; }, ["selectedContentTpl", "optionContentTpl", "groupLabelTpl"], ["*"], false, never>;
|
|
118
124
|
}
|
|
@@ -26,6 +26,12 @@ export declare class NggvDropdownListComponent implements OnInit, OnChanges {
|
|
|
26
26
|
* When false, value is emitted every time an option is selected
|
|
27
27
|
* */
|
|
28
28
|
onlyEmitDistinctChanges: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Used to control if the dropdown list should select the current active element, when Space is pressed on the keyboard.
|
|
31
|
+
* Primary usage is for typeahead, where the should be able to write a filter query containing spaces,
|
|
32
|
+
* but not select the current active element with Space.
|
|
33
|
+
*/
|
|
34
|
+
selectWithSpace: boolean;
|
|
29
35
|
selectedValueChanged: EventEmitter<any>;
|
|
30
36
|
closed: EventEmitter<void>;
|
|
31
37
|
/** The current active option based on numeric index. */
|
|
@@ -87,6 +93,7 @@ export declare class NggvDropdownListComponent implements OnInit, OnChanges {
|
|
|
87
93
|
/**
|
|
88
94
|
* @internal
|
|
89
95
|
* Enter toggles the dropdown, home, end, and, arrows change the index.
|
|
96
|
+
* Space selects the currently active option if `selectWithSpace` is true.
|
|
90
97
|
* @param event fired containing which key was released.
|
|
91
98
|
*/
|
|
92
99
|
onKeyUp(event: KeyboardEvent): void;
|
|
@@ -100,5 +107,5 @@ export declare class NggvDropdownListComponent implements OnInit, OnChanges {
|
|
|
100
107
|
*/
|
|
101
108
|
scrollToResult(option: any, focusElement?: boolean): void;
|
|
102
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<NggvDropdownListComponent, [{ optional: true; }]>;
|
|
103
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NggvDropdownListComponent, "nggv-dropdown-list", never, { "expanded": { "alias": "expanded"; "required": false; }; "state": { "alias": "state"; "required": false; }; "scrollOffset": { "alias": "scrollOffset"; "required": false; }; "optionContentTpl": { "alias": "optionContentTpl"; "required": false; }; "groupLabelTpl": { "alias": "groupLabelTpl"; "required": false; }; "id": { "alias": "id"; "required": false; }; "thook": { "alias": "thook"; "required": false; }; "options": { "alias": "options"; "required": false; }; "textToHighlight": { "alias": "textToHighlight"; "required": false; }; "onlyEmitDistinctChanges": { "alias": "onlyEmitDistinctChanges"; "required": false; }; }, { "selectedValueChanged": "selectedValueChanged"; "closed": "closed"; }, never, never, false, never>;
|
|
110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NggvDropdownListComponent, "nggv-dropdown-list", never, { "expanded": { "alias": "expanded"; "required": false; }; "state": { "alias": "state"; "required": false; }; "scrollOffset": { "alias": "scrollOffset"; "required": false; }; "optionContentTpl": { "alias": "optionContentTpl"; "required": false; }; "groupLabelTpl": { "alias": "groupLabelTpl"; "required": false; }; "id": { "alias": "id"; "required": false; }; "thook": { "alias": "thook"; "required": false; }; "options": { "alias": "options"; "required": false; }; "textToHighlight": { "alias": "textToHighlight"; "required": false; }; "onlyEmitDistinctChanges": { "alias": "onlyEmitDistinctChanges"; "required": false; }; "selectWithSpace": { "alias": "selectWithSpace"; "required": false; }; }, { "selectedValueChanged": "selectedValueChanged"; "closed": "closed"; }, never, never, false, never>;
|
|
104
111
|
}
|
|
@@ -52,6 +52,12 @@ export declare class NggvDropdownComponent<K = string | null | undefined, V = st
|
|
|
52
52
|
* Defaults to true.
|
|
53
53
|
*/
|
|
54
54
|
selectOnSingleOption: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Used to control if the dropdown list should select the current active element, when Space is pressed on the keyboard.
|
|
57
|
+
* Primary usage is for typeahead, where the should be able to write a filter query containing spaces,
|
|
58
|
+
* but not select the current active element with Space.
|
|
59
|
+
*/
|
|
60
|
+
selectWithSpace: boolean;
|
|
55
61
|
/**
|
|
56
62
|
* Used to determine which changes should be handled by the dropdown.
|
|
57
63
|
* If set to false, all changes will be handled by the dropdown.
|
|
@@ -114,5 +120,5 @@ export declare class NggvDropdownComponent<K = string | null | undefined, V = st
|
|
|
114
120
|
*/
|
|
115
121
|
isOption(option: OptionBase<T>): option is OptionGroup<T>;
|
|
116
122
|
static ɵfac: i0.ɵɵFactoryDeclaration<NggvDropdownComponent<any, any, any>, [{ optional: true; self: true; }, { optional: true; }, null, null]>;
|
|
117
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NggvDropdownComponent<any, any, any>, "nggv-dropdown", never, { "thook": { "alias": "thook"; "required": false; }; "size": { "alias": "size"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "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; }; "onlyHandleDistinctChanges": { "alias": "onlyHandleDistinctChanges"; "required": false; }; }, { "expandedChange": "expandedChange"; }, ["selectedContentTpl", "optionContentTpl", "groupLabelTpl"], ["*"], false, never>;
|
|
123
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NggvDropdownComponent<any, any, any>, "nggv-dropdown", never, { "thook": { "alias": "thook"; "required": false; }; "size": { "alias": "size"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "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; }; "selectWithSpace": { "alias": "selectWithSpace"; "required": false; }; "onlyHandleDistinctChanges": { "alias": "onlyHandleDistinctChanges"; "required": false; }; }, { "expandedChange": "expandedChange"; }, ["selectedContentTpl", "optionContentTpl", "groupLabelTpl"], ["*"], false, never>;
|
|
118
124
|
}
|