@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.
Files changed (109) hide show
  1. package/esm2022/index.mjs +1 -19
  2. package/esm2022/src/v-angular/breadcrumbs/breadcrumbs.component.mjs +3 -3
  3. package/esm2022/src/v-angular/button/button.component.mjs +3 -3
  4. package/esm2022/src/v-angular/card/card.component.mjs +3 -3
  5. package/esm2022/src/v-angular/checkbox/checkbox.component.mjs +3 -3
  6. package/esm2022/src/v-angular/core/core.globals.mjs +5 -2
  7. package/esm2022/src/v-angular/dropdown/dropdown-list/dropdown-list.component.mjs +3 -3
  8. package/esm2022/src/v-angular/dropdown/dropdown.component.mjs +3 -3
  9. package/esm2022/src/v-angular/dropdown/typeahead/index.mjs +4 -1
  10. package/esm2022/src/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.mjs +3 -3
  11. package/esm2022/src/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.mjs +3 -3
  12. package/esm2022/src/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.mjs +3 -3
  13. package/esm2022/src/v-angular/dropdown/typeahead/typeahead.directive.mjs +177 -0
  14. package/esm2022/src/v-angular/info-circle/info-circle.component.mjs +3 -3
  15. package/esm2022/src/v-angular/input/input.component.mjs +3 -3
  16. package/esm2022/src/v-angular/modal/dialog/dialog.component.mjs +3 -3
  17. package/esm2022/src/v-angular/modal/fold-out/fold-out.component.mjs +3 -3
  18. package/esm2022/src/v-angular/modal/modal.globals.mjs +5 -2
  19. package/esm2022/src/v-angular/modal/slide-out/slide-out.component.mjs +4 -4
  20. package/esm2022/src/v-angular/radio/radio.component.mjs +3 -3
  21. package/esm2022/src/v-angular/textarea/textarea.component.mjs +3 -3
  22. package/esm2022/v-angular/breadcrumbs/breadcrumbs.component.mjs +3 -3
  23. package/esm2022/v-angular/button/button.component.mjs +3 -3
  24. package/esm2022/v-angular/card/card.component.mjs +3 -3
  25. package/esm2022/v-angular/checkbox/checkbox.component.mjs +3 -3
  26. package/esm2022/v-angular/dropdown/dropdown-list/dropdown-list.component.mjs +3 -3
  27. package/esm2022/v-angular/dropdown/dropdown.component.mjs +3 -3
  28. package/esm2022/v-angular/dropdown/typeahead/index.mjs +4 -1
  29. package/esm2022/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.mjs +3 -3
  30. package/esm2022/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.mjs +3 -3
  31. package/esm2022/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.mjs +3 -3
  32. package/esm2022/v-angular/dropdown/typeahead/typeahead.directive.mjs +177 -0
  33. package/esm2022/v-angular/index.mjs +17 -0
  34. package/esm2022/v-angular/info-circle/info-circle.component.mjs +3 -3
  35. package/esm2022/v-angular/input/input.component.mjs +3 -3
  36. package/esm2022/v-angular/modal/dialog/dialog.component.mjs +3 -3
  37. package/esm2022/v-angular/modal/fold-out/fold-out.component.mjs +3 -3
  38. package/esm2022/v-angular/modal/modal.globals.mjs +5 -2
  39. package/esm2022/v-angular/modal/slide-out/slide-out.component.mjs +4 -4
  40. package/esm2022/v-angular/radio/radio.component.mjs +3 -3
  41. package/esm2022/v-angular/sebgroup-green-angular-v-angular.mjs +5 -0
  42. package/esm2022/v-angular/textarea/textarea.component.mjs +3 -3
  43. package/esm2022/v-angular/v-angular.module.mjs +76 -0
  44. package/fesm2022/sebgroup-green-angular-src-v-angular-breadcrumbs.mjs +2 -2
  45. package/fesm2022/sebgroup-green-angular-src-v-angular-breadcrumbs.mjs.map +1 -1
  46. package/fesm2022/sebgroup-green-angular-src-v-angular-button.mjs +2 -2
  47. package/fesm2022/sebgroup-green-angular-src-v-angular-button.mjs.map +1 -1
  48. package/fesm2022/sebgroup-green-angular-src-v-angular-card.mjs +2 -2
  49. package/fesm2022/sebgroup-green-angular-src-v-angular-card.mjs.map +1 -1
  50. package/fesm2022/sebgroup-green-angular-src-v-angular-checkbox.mjs +2 -2
  51. package/fesm2022/sebgroup-green-angular-src-v-angular-checkbox.mjs.map +1 -1
  52. package/fesm2022/sebgroup-green-angular-src-v-angular-core.mjs +4 -1
  53. package/fesm2022/sebgroup-green-angular-src-v-angular-core.mjs.map +1 -1
  54. package/fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs +182 -13
  55. package/fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs.map +1 -1
  56. package/fesm2022/sebgroup-green-angular-src-v-angular-info-circle.mjs +2 -2
  57. package/fesm2022/sebgroup-green-angular-src-v-angular-info-circle.mjs.map +1 -1
  58. package/fesm2022/sebgroup-green-angular-src-v-angular-input.mjs +2 -2
  59. package/fesm2022/sebgroup-green-angular-src-v-angular-input.mjs.map +1 -1
  60. package/fesm2022/sebgroup-green-angular-src-v-angular-modal.mjs +11 -8
  61. package/fesm2022/sebgroup-green-angular-src-v-angular-modal.mjs.map +1 -1
  62. package/fesm2022/sebgroup-green-angular-src-v-angular-radio.mjs +2 -2
  63. package/fesm2022/sebgroup-green-angular-src-v-angular-radio.mjs.map +1 -1
  64. package/fesm2022/sebgroup-green-angular-src-v-angular-textarea.mjs +2 -2
  65. package/fesm2022/sebgroup-green-angular-src-v-angular-textarea.mjs.map +1 -1
  66. package/fesm2022/sebgroup-green-angular-v-angular.mjs +3341 -0
  67. package/fesm2022/sebgroup-green-angular-v-angular.mjs.map +1 -0
  68. package/fesm2022/sebgroup-green-angular.mjs +13 -3105
  69. package/fesm2022/sebgroup-green-angular.mjs.map +1 -1
  70. package/index.d.ts +0 -18
  71. package/package.json +9 -3
  72. package/src/v-angular/breadcrumbs/breadcrumbs.component.d.ts +1 -1
  73. package/src/v-angular/button/button.component.d.ts +1 -1
  74. package/src/v-angular/card/card.component.d.ts +1 -1
  75. package/src/v-angular/checkbox/checkbox.component.d.ts +1 -1
  76. package/src/v-angular/dropdown/dropdown-list/dropdown-list.component.d.ts +1 -1
  77. package/src/v-angular/dropdown/dropdown.component.d.ts +1 -1
  78. package/src/v-angular/dropdown/typeahead/index.d.ts +3 -0
  79. package/src/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.d.ts +1 -1
  80. package/src/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.d.ts +1 -1
  81. package/src/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.d.ts +1 -1
  82. package/src/v-angular/dropdown/typeahead/typeahead.directive.d.ts +76 -0
  83. package/src/v-angular/info-circle/info-circle.component.d.ts +1 -1
  84. package/src/v-angular/input/input.component.d.ts +1 -1
  85. package/src/v-angular/modal/dialog/dialog.component.d.ts +1 -1
  86. package/src/v-angular/modal/fold-out/fold-out.component.d.ts +1 -1
  87. package/src/v-angular/modal/slide-out/slide-out.component.d.ts +2 -2
  88. package/src/v-angular/radio/radio.component.d.ts +1 -1
  89. package/src/v-angular/textarea/textarea.component.d.ts +1 -1
  90. package/v-angular/breadcrumbs/breadcrumbs.component.d.ts +1 -1
  91. package/v-angular/button/button.component.d.ts +1 -1
  92. package/v-angular/card/card.component.d.ts +1 -1
  93. package/v-angular/checkbox/checkbox.component.d.ts +1 -1
  94. package/v-angular/dropdown/dropdown-list/dropdown-list.component.d.ts +1 -1
  95. package/v-angular/dropdown/dropdown.component.d.ts +1 -1
  96. package/v-angular/dropdown/typeahead/index.d.ts +3 -0
  97. package/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.d.ts +1 -1
  98. package/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.d.ts +1 -1
  99. package/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.d.ts +1 -1
  100. package/v-angular/dropdown/typeahead/typeahead.directive.d.ts +76 -0
  101. package/v-angular/index.d.ts +16 -0
  102. package/v-angular/info-circle/info-circle.component.d.ts +1 -1
  103. package/v-angular/input/input.component.d.ts +1 -1
  104. package/v-angular/modal/dialog/dialog.component.d.ts +1 -1
  105. package/v-angular/modal/fold-out/fold-out.component.d.ts +1 -1
  106. package/v-angular/modal/slide-out/slide-out.component.d.ts +2 -2
  107. package/v-angular/radio/radio.component.d.ts +1 -1
  108. package/v-angular/textarea/textarea.component.d.ts +1 -1
  109. 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.0",
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.40.0",
21
- "@sebgroup/chlorophyll": "^3.6.3",
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, "ngv-breadcrumbs", never, { "thook": { "alias": "thook"; "required": false; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; }, {}, never, never, false, never>;
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, "ngv-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>;
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, "ngv-card", never, {}, {}, never, ["*"], false, never>;
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, "ngv-checkbox", never, { "thook": { "alias": "thook"; "required": false; }; "optionalLabel": { "alias": "optionalLabel"; "required": false; }; }, { "valueChange": "valueChange"; }, never, ["*"], false, never>;
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, "ngv-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>;
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>, "ngv-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>;
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, "ngv-typeahead-dropdown-list", never, { "hostComponent": { "alias": "hostComponent"; "required": false; }; "resultFormatter": { "alias": "resultFormatter"; "required": false; }; "selectedFormatter": { "alias": "selectedFormatter"; "required": false; }; }, {}, never, never, false, never>;
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, "ngv-typeahead-highlight", never, { "textContent": { "alias": "textContent"; "required": false; }; "textToHighlight": { "alias": "textToHighlight"; "required": false; }; }, {}, never, never, false, never>;
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, "ngv-typeahead-input", never, { "hostComponent": { "alias": "hostComponent"; "required": false; }; "resultFormatter": { "alias": "resultFormatter"; "required": false; }; "selectedFormatter": { "alias": "selectedFormatter"; "required": false; }; }, {}, never, never, false, never>;
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, "ngv-info-circle", never, { "thook": { "alias": "thook"; "required": false; }; "info": { "alias": "info"; "required": false; }; }, {}, never, never, false, never>;
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, "ngv-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>;
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, "ngv-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>;
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, "ngv-fold-out", never, { "thook": { "alias": "thook"; "required": false; }; "alignOptions": { "alias": "alignOptions"; "required": false; }; }, {}, never, ["*"], false, never>;
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 `ngv-slideout-modal`-start and end tag).
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, "ngv-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>;
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, "ngv-radio", never, { "thook": { "alias": "thook"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; }, {}, never, ["*"], false, never>;
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, "ngv-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>;
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, "ngv-breadcrumbs", never, { "thook": { "alias": "thook"; "required": false; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; }, {}, never, never, false, never>;
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, "ngv-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>;
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, "ngv-card", never, {}, {}, never, ["*"], false, never>;
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, "ngv-checkbox", never, { "thook": { "alias": "thook"; "required": false; }; "optionalLabel": { "alias": "optionalLabel"; "required": false; }; }, { "valueChange": "valueChange"; }, never, ["*"], false, never>;
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, "ngv-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>;
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>, "ngv-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>;
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, "ngv-typeahead-dropdown-list", never, { "hostComponent": { "alias": "hostComponent"; "required": false; }; "resultFormatter": { "alias": "resultFormatter"; "required": false; }; "selectedFormatter": { "alias": "selectedFormatter"; "required": false; }; }, {}, never, never, false, never>;
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, "ngv-typeahead-highlight", never, { "textContent": { "alias": "textContent"; "required": false; }; "textToHighlight": { "alias": "textToHighlight"; "required": false; }; }, {}, never, never, false, never>;
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, "ngv-typeahead-input", never, { "hostComponent": { "alias": "hostComponent"; "required": false; }; "resultFormatter": { "alias": "resultFormatter"; "required": false; }; "selectedFormatter": { "alias": "selectedFormatter"; "required": false; }; }, {}, never, never, false, never>;
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, "ngv-info-circle", never, { "thook": { "alias": "thook"; "required": false; }; "info": { "alias": "info"; "required": false; }; }, {}, never, never, false, never>;
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, "ngv-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>;
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, "ngv-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>;
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, "ngv-fold-out", never, { "thook": { "alias": "thook"; "required": false; }; "alignOptions": { "alias": "alignOptions"; "required": false; }; }, {}, never, ["*"], false, never>;
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 `ngv-slideout-modal`-start and end tag).
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, "ngv-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>;
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, "ngv-radio", never, { "thook": { "alias": "thook"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; }, {}, never, ["*"], false, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgvRadioComponent, "nggv-radio", never, { "thook": { "alias": "thook"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; }, {}, never, ["*"], false, never>;
48
48
  }