@sebgroup/green-angular 4.6.1 → 4.6.3

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 (189) hide show
  1. package/esm2022/src/v-angular/base-control-value-accessor/base-control-value-accessor.component.mjs +9 -9
  2. package/esm2022/src/v-angular/button/button.component.mjs +5 -5
  3. package/esm2022/src/v-angular/character-countdown/character-countdown.directive.mjs +5 -5
  4. package/esm2022/src/v-angular/core/core.globals.mjs +3 -3
  5. package/esm2022/src/v-angular/dropdown/dropdown-list/dropdown-list.component.mjs +4 -4
  6. package/esm2022/src/v-angular/dropdown/typeahead/index.mjs +4 -1
  7. package/esm2022/src/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.mjs +5 -5
  8. package/esm2022/src/v-angular/dropdown/typeahead/typeahead.directive.mjs +177 -0
  9. package/esm2022/src/v-angular/info-circle/info-circle.component.mjs +3 -3
  10. package/esm2022/src/v-angular/input/input.component.mjs +7 -7
  11. package/esm2022/src/v-angular/input-mask/input-mask-format.pipe.mjs +5 -4
  12. package/esm2022/src/v-angular/input-mask/input-mask.directive.mjs +8 -8
  13. package/esm2022/src/v-angular/modal/dialog/dialog.component.mjs +16 -16
  14. package/esm2022/src/v-angular/modal/fold-out/fold-out.directive.mjs +3 -3
  15. package/esm2022/src/v-angular/modal/modal.globals.mjs +3 -3
  16. package/esm2022/src/v-angular/modal/slide-out/slide-out.component.mjs +15 -15
  17. package/esm2022/src/v-angular/textarea/textarea.component.mjs +4 -3
  18. package/esm2022/src/v-angular/textarea/textarea.module.mjs +5 -4
  19. package/esm2022/src/v-angular/tooltip/tooltip.directive.mjs +13 -13
  20. package/esm2022/v-angular/base-control-value-accessor/base-control-value-accessor.component.mjs +287 -0
  21. package/esm2022/v-angular/base-control-value-accessor/base-control-value-accessor.module.mjs +17 -0
  22. package/esm2022/v-angular/base-control-value-accessor/index.mjs +3 -0
  23. package/esm2022/v-angular/breadcrumbs/breadcrumbs.component.mjs +25 -0
  24. package/esm2022/v-angular/breadcrumbs/breadcrumbs.module.mjs +20 -0
  25. package/esm2022/v-angular/breadcrumbs/index.mjs +3 -0
  26. package/esm2022/v-angular/button/button.component.mjs +108 -0
  27. package/esm2022/v-angular/button/button.module.mjs +20 -0
  28. package/esm2022/v-angular/button/index.mjs +3 -0
  29. package/esm2022/v-angular/card/card.component.mjs +11 -0
  30. package/esm2022/v-angular/card/card.module.mjs +18 -0
  31. package/esm2022/v-angular/card/index.mjs +3 -0
  32. package/esm2022/v-angular/character-countdown/character-countdown.directive.mjs +51 -0
  33. package/esm2022/v-angular/character-countdown/character-countdown.module.mjs +18 -0
  34. package/esm2022/v-angular/character-countdown/index.mjs +3 -0
  35. package/esm2022/v-angular/checkbox/checkbox.component.mjs +72 -0
  36. package/esm2022/v-angular/checkbox/checkbox.module.mjs +19 -0
  37. package/esm2022/v-angular/checkbox/index.mjs +3 -0
  38. package/esm2022/v-angular/dropdown/dropdown-list/dropdown-list.component.mjs +256 -0
  39. package/esm2022/v-angular/dropdown/dropdown-list/index.mjs +2 -0
  40. package/esm2022/v-angular/dropdown/dropdown.component.mjs +239 -0
  41. package/esm2022/v-angular/dropdown/dropdown.module.mjs +22 -0
  42. package/esm2022/v-angular/dropdown/index.mjs +6 -0
  43. package/esm2022/v-angular/dropdown/typeahead/index.mjs +6 -0
  44. package/esm2022/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.mjs +98 -0
  45. package/esm2022/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.mjs +85 -0
  46. package/esm2022/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.mjs +132 -0
  47. package/esm2022/v-angular/dropdown/typeahead/typeahead.directive.mjs +177 -0
  48. package/esm2022/v-angular/dropdown/typeahead/typeahead.module.mjs +33 -0
  49. package/esm2022/v-angular/i18n/i18n.json +12 -0
  50. package/esm2022/v-angular/i18n/i18n.module.mjs +83 -0
  51. package/esm2022/v-angular/i18n/i18n.test.module.mjs +89 -0
  52. package/esm2022/v-angular/i18n/index.mjs +3 -0
  53. package/esm2022/v-angular/index.mjs +18 -0
  54. package/esm2022/v-angular/info-circle/index.mjs +3 -0
  55. package/esm2022/v-angular/info-circle/info-circle.component.mjs +28 -0
  56. package/esm2022/v-angular/info-circle/info-circle.module.mjs +21 -0
  57. package/esm2022/v-angular/input/index.mjs +3 -0
  58. package/esm2022/v-angular/input/input.component.mjs +221 -0
  59. package/esm2022/v-angular/input/input.module.mjs +32 -0
  60. package/esm2022/v-angular/input-mask/config.mjs +9 -0
  61. package/esm2022/v-angular/input-mask/constants.mjs +2 -0
  62. package/esm2022/v-angular/input-mask/index.mjs +6 -0
  63. package/esm2022/v-angular/input-mask/input-mask-format.pipe.mjs +21 -0
  64. package/esm2022/v-angular/input-mask/input-mask.directive.mjs +165 -0
  65. package/esm2022/v-angular/input-mask/input-mask.module.mjs +35 -0
  66. package/esm2022/v-angular/input-mask/input-mask.types.mjs +2 -0
  67. package/esm2022/v-angular/modal/dialog/dialog.component.mjs +190 -0
  68. package/esm2022/v-angular/modal/fold-out/fold-out.component.mjs +56 -0
  69. package/esm2022/v-angular/modal/fold-out/fold-out.directive.mjs +19 -0
  70. package/esm2022/v-angular/modal/index.mjs +6 -0
  71. package/esm2022/v-angular/modal/modal.globals.mjs +20 -0
  72. package/esm2022/v-angular/modal/modal.module.mjs +40 -0
  73. package/esm2022/v-angular/modal/modal.types.mjs +2 -0
  74. package/esm2022/v-angular/modal/slide-out/slide-out.component.mjs +229 -0
  75. package/esm2022/v-angular/radio/index.mjs +3 -0
  76. package/esm2022/v-angular/radio/radio.component.mjs +130 -0
  77. package/esm2022/v-angular/radio/radio.module.mjs +20 -0
  78. package/esm2022/v-angular/sebgroup-green-angular-v-angular.mjs +5 -0
  79. package/esm2022/v-angular/textarea/index.mjs +3 -0
  80. package/esm2022/v-angular/textarea/textarea.component.mjs +102 -0
  81. package/esm2022/v-angular/textarea/textarea.module.mjs +19 -0
  82. package/esm2022/v-angular/tooltip/index.mjs +3 -0
  83. package/esm2022/v-angular/tooltip/tooltip.directive.mjs +273 -0
  84. package/esm2022/v-angular/tooltip/tooltip.module.mjs +18 -0
  85. package/esm2022/v-angular/v-angular.module.mjs +80 -0
  86. package/fesm2022/sebgroup-green-angular-src-v-angular-base-control-value-accessor.mjs +8 -8
  87. package/fesm2022/sebgroup-green-angular-src-v-angular-base-control-value-accessor.mjs.map +1 -1
  88. package/fesm2022/sebgroup-green-angular-src-v-angular-button.mjs +4 -4
  89. package/fesm2022/sebgroup-green-angular-src-v-angular-button.mjs.map +1 -1
  90. package/fesm2022/sebgroup-green-angular-src-v-angular-character-countdown.mjs +4 -4
  91. package/fesm2022/sebgroup-green-angular-src-v-angular-character-countdown.mjs.map +1 -1
  92. package/fesm2022/sebgroup-green-angular-src-v-angular-core.mjs +2 -2
  93. package/fesm2022/sebgroup-green-angular-src-v-angular-core.mjs.map +1 -1
  94. package/fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs +179 -10
  95. package/fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs.map +1 -1
  96. package/fesm2022/sebgroup-green-angular-src-v-angular-info-circle.mjs +2 -2
  97. package/fesm2022/sebgroup-green-angular-src-v-angular-info-circle.mjs.map +1 -1
  98. package/fesm2022/sebgroup-green-angular-src-v-angular-input-mask.mjs +11 -10
  99. package/fesm2022/sebgroup-green-angular-src-v-angular-input-mask.mjs.map +1 -1
  100. package/fesm2022/sebgroup-green-angular-src-v-angular-input.mjs +6 -6
  101. package/fesm2022/sebgroup-green-angular-src-v-angular-input.mjs.map +1 -1
  102. package/fesm2022/sebgroup-green-angular-src-v-angular-modal.mjs +33 -33
  103. package/fesm2022/sebgroup-green-angular-src-v-angular-modal.mjs.map +1 -1
  104. package/fesm2022/sebgroup-green-angular-src-v-angular-textarea.mjs +7 -5
  105. package/fesm2022/sebgroup-green-angular-src-v-angular-textarea.mjs.map +1 -1
  106. package/fesm2022/sebgroup-green-angular-src-v-angular-tooltip.mjs +12 -12
  107. package/fesm2022/sebgroup-green-angular-src-v-angular-tooltip.mjs.map +1 -1
  108. package/fesm2022/sebgroup-green-angular-v-angular.mjs +3408 -0
  109. package/fesm2022/sebgroup-green-angular-v-angular.mjs.map +1 -0
  110. package/package.json +8 -2
  111. package/src/v-angular/base-control-value-accessor/base-control-value-accessor.component.d.ts +3 -3
  112. package/src/v-angular/button/button.component.d.ts +2 -2
  113. package/src/v-angular/character-countdown/character-countdown.directive.d.ts +1 -1
  114. package/src/v-angular/core/core.globals.d.ts +1 -1
  115. package/src/v-angular/dropdown/typeahead/index.d.ts +3 -0
  116. package/src/v-angular/dropdown/typeahead/typeahead.directive.d.ts +76 -0
  117. package/src/v-angular/input/input.component.d.ts +3 -3
  118. package/src/v-angular/input-mask/input-mask-format.pipe.d.ts +1 -1
  119. package/src/v-angular/input-mask/input-mask.directive.d.ts +2 -2
  120. package/src/v-angular/modal/dialog/dialog.component.d.ts +5 -5
  121. package/src/v-angular/modal/fold-out/fold-out.directive.d.ts +1 -1
  122. package/src/v-angular/modal/modal.globals.d.ts +1 -1
  123. package/src/v-angular/modal/slide-out/slide-out.component.d.ts +6 -6
  124. package/src/v-angular/textarea/textarea.module.d.ts +2 -1
  125. package/src/v-angular/tooltip/tooltip.directive.d.ts +4 -4
  126. package/v-angular/base-control-value-accessor/base-control-value-accessor.component.d.ts +124 -0
  127. package/v-angular/base-control-value-accessor/base-control-value-accessor.module.d.ts +7 -0
  128. package/v-angular/base-control-value-accessor/index.d.ts +2 -0
  129. package/v-angular/breadcrumbs/breadcrumbs.component.d.ts +18 -0
  130. package/v-angular/breadcrumbs/breadcrumbs.module.d.ts +10 -0
  131. package/v-angular/breadcrumbs/index.d.ts +2 -0
  132. package/v-angular/button/button.component.d.ts +62 -0
  133. package/v-angular/button/button.module.d.ts +10 -0
  134. package/v-angular/button/index.d.ts +2 -0
  135. package/v-angular/card/card.component.d.ts +5 -0
  136. package/v-angular/card/card.module.d.ts +8 -0
  137. package/v-angular/card/index.d.ts +2 -0
  138. package/v-angular/character-countdown/character-countdown.directive.d.ts +17 -0
  139. package/v-angular/character-countdown/character-countdown.module.d.ts +8 -0
  140. package/v-angular/character-countdown/index.d.ts +2 -0
  141. package/v-angular/checkbox/checkbox.component.d.ts +27 -0
  142. package/v-angular/checkbox/checkbox.module.d.ts +9 -0
  143. package/v-angular/checkbox/index.d.ts +2 -0
  144. package/v-angular/dropdown/dropdown-list/dropdown-list.component.d.ts +89 -0
  145. package/v-angular/dropdown/dropdown-list/index.d.ts +1 -0
  146. package/v-angular/dropdown/dropdown.component.d.ts +99 -0
  147. package/v-angular/dropdown/dropdown.module.d.ts +12 -0
  148. package/v-angular/dropdown/index.d.ts +5 -0
  149. package/v-angular/dropdown/typeahead/index.d.ts +5 -0
  150. package/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.d.ts +34 -0
  151. package/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.d.ts +34 -0
  152. package/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.d.ts +59 -0
  153. package/v-angular/dropdown/typeahead/typeahead.directive.d.ts +76 -0
  154. package/v-angular/dropdown/typeahead/typeahead.module.d.ts +11 -0
  155. package/v-angular/i18n/i18n.module.d.ts +15 -0
  156. package/v-angular/i18n/i18n.test.module.d.ts +27 -0
  157. package/v-angular/i18n/index.d.ts +2 -0
  158. package/v-angular/index.d.ts +17 -0
  159. package/v-angular/info-circle/index.d.ts +2 -0
  160. package/v-angular/info-circle/info-circle.component.d.ts +16 -0
  161. package/v-angular/info-circle/info-circle.module.d.ts +10 -0
  162. package/v-angular/input/index.d.ts +2 -0
  163. package/v-angular/input/input.component.d.ts +90 -0
  164. package/v-angular/input/input.module.d.ts +11 -0
  165. package/v-angular/input-mask/config.d.ts +6 -0
  166. package/v-angular/input-mask/constants.d.ts +2 -0
  167. package/v-angular/input-mask/index.d.ts +5 -0
  168. package/v-angular/input-mask/input-mask-format.pipe.d.ts +8 -0
  169. package/v-angular/input-mask/input-mask.directive.d.ts +39 -0
  170. package/v-angular/input-mask/input-mask.module.d.ts +11 -0
  171. package/v-angular/input-mask/input-mask.types.d.ts +20 -0
  172. package/v-angular/modal/dialog/dialog.component.d.ts +55 -0
  173. package/v-angular/modal/fold-out/fold-out.component.d.ts +24 -0
  174. package/v-angular/modal/fold-out/fold-out.directive.d.ts +6 -0
  175. package/v-angular/modal/index.d.ts +5 -0
  176. package/v-angular/modal/modal.globals.d.ts +13 -0
  177. package/v-angular/modal/modal.module.d.ts +13 -0
  178. package/v-angular/modal/modal.types.d.ts +5 -0
  179. package/v-angular/modal/slide-out/slide-out.component.d.ts +76 -0
  180. package/v-angular/radio/index.d.ts +2 -0
  181. package/v-angular/radio/radio.component.d.ts +48 -0
  182. package/v-angular/radio/radio.module.d.ts +9 -0
  183. package/v-angular/textarea/index.d.ts +2 -0
  184. package/v-angular/textarea/textarea.component.d.ts +44 -0
  185. package/v-angular/textarea/textarea.module.d.ts +9 -0
  186. package/v-angular/tooltip/index.d.ts +2 -0
  187. package/v-angular/tooltip/tooltip.directive.d.ts +106 -0
  188. package/v-angular/tooltip/tooltip.module.d.ts +8 -0
  189. package/v-angular/v-angular.module.d.ts +23 -0
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class NgvCardComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvCardComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgvCardComponent, "nggv-card", never, {}, {}, never, ["*"], false, never>;
5
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./card.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class NgvCardModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvCardModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgvCardModule, [typeof i1.NgvCardComponent], [typeof i2.CommonModule], [typeof i1.NgvCardComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgvCardModule>;
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './card.component';
2
+ export * from './card.module';
@@ -0,0 +1,17 @@
1
+ import { TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CharacterCountdownDirective {
4
+ private readonly viewContainerRef;
5
+ private readonly templateRef;
6
+ set maxlength(value: number | undefined);
7
+ set currentLength(value: number);
8
+ private _maxlength;
9
+ private _currentLength;
10
+ private isViewCreated;
11
+ private context;
12
+ constructor(viewContainerRef: ViewContainerRef, templateRef: TemplateRef<any>);
13
+ updateContext(): void;
14
+ calculateCharactersLeft: (max: number, current: number) => number;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<CharacterCountdownDirective, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CharacterCountdownDirective, "[nggvCharacterCountdown]", never, { "maxlength": { "alias": "nggvCharacterCountdown"; "required": false; }; "currentLength": { "alias": "nggvCharacterCountdownCurrentLength"; "required": false; }; }, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./character-countdown.directive";
3
+ import * as i2 from "@angular/common";
4
+ export declare class NggCharacterCountdownDirectiveModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NggCharacterCountdownDirectiveModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NggCharacterCountdownDirectiveModule, [typeof i1.CharacterCountdownDirective], [typeof i2.CommonModule], [typeof i1.CharacterCountdownDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<NggCharacterCountdownDirectiveModule>;
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './character-countdown.directive';
2
+ export * from './character-countdown.module';
@@ -0,0 +1,27 @@
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
+ import { NgControl } from '@angular/forms';
3
+ import { TranslocoScope } from '@ngneat/transloco';
4
+ import { NgvBaseControlValueAccessorComponent } from '@sebgroup/green-angular/src/v-angular/base-control-value-accessor';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Checkboxes allow a user to toggle an option on or off, or make multiple choices in a set of available options.
8
+ * https://designlibrary.sebgroup.com/components/component-checkbox
9
+ */
10
+ export declare class NgvCheckboxComponent extends NgvBaseControlValueAccessorComponent {
11
+ ngControl: NgControl;
12
+ protected translocoScope: TranslocoScope;
13
+ protected cdr: ChangeDetectorRef;
14
+ /** Special property used for selecting DOM elements during automated UI testing. */
15
+ thook: string;
16
+ optionalLabel: string;
17
+ readonly valueChange: EventEmitter<string>;
18
+ constructor(ngControl: NgControl, translocoScope: TranslocoScope, cdr: ChangeDetectorRef);
19
+ /** @internal */
20
+ onInputChange(event: Event): void;
21
+ /** Writes a new value of true or false based on if argument matches this components value property. */
22
+ writeValue(value: any): void;
23
+ /** Registers a callback function that is called when the child input element's value changes. */
24
+ registerOnChange(fn: (checked: any) => any): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvCheckboxComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
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
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./checkbox.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@sebgroup/green-angular/src/v-angular/i18n";
5
+ export declare class NgvCheckboxModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvCheckboxModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgvCheckboxModule, [typeof i1.NgvCheckboxComponent], [typeof i2.CommonModule, typeof i3.NgvI18nModule], [typeof i1.NgvCheckboxComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgvCheckboxModule>;
9
+ }
@@ -0,0 +1,2 @@
1
+ export * from './checkbox.component';
2
+ export * from './checkbox.module';
@@ -0,0 +1,89 @@
1
+ import { ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
2
+ import { Subscription } from 'rxjs';
3
+ import { TranslocoScope } from '@ngneat/transloco';
4
+ import { Option, OptionBase } from '@sebgroup/green-angular/src/v-angular/core';
5
+ import * as i0 from "@angular/core";
6
+ export declare class NgvDropdownListComponent implements OnInit, OnChanges {
7
+ protected translocoScope: TranslocoScope;
8
+ set expanded(state: boolean);
9
+ get expanded(): boolean;
10
+ state: any;
11
+ /** The additional amount to show when option is scrolled into view. */
12
+ scrollOffset: number;
13
+ optionContentTpl: TemplateRef<OptionBase<any>> | undefined;
14
+ /** @internal List of references to the option elements. */
15
+ optionRefs: QueryList<ElementRef<HTMLLIElement>> | undefined;
16
+ /** Id of the host element and is accessible by the children, automatically generated if not provided. */
17
+ id: any;
18
+ /** Special property used for selecting DOM elements during automated UI testing. */
19
+ thook: string;
20
+ options: any[];
21
+ textToHighlight?: string;
22
+ selectedValueChanged: EventEmitter<any>;
23
+ closed: EventEmitter<void>;
24
+ /** The current active option based on numeric index. */
25
+ activeIndex: number;
26
+ scope: string | undefined;
27
+ private dropdownUtils;
28
+ private _expanded;
29
+ private closed$;
30
+ selectedValue?: Option<string, any>;
31
+ /** Subscribe if dropdown expanded to listen to click outside to close dropdown. */
32
+ protected onClickSubscription: Subscription | undefined;
33
+ constructor(translocoScope: TranslocoScope);
34
+ ngOnInit(): void;
35
+ ngOnChanges(changes: SimpleChanges): void;
36
+ /**
37
+ * Returns true if argument is an {@link OptionGroup}.
38
+ * @param option the object to check.
39
+ */
40
+ isGroup(option: any): boolean;
41
+ /** @internal */
42
+ updateState(option: any, event: Event): void;
43
+ /**
44
+ * @internal
45
+ */
46
+ setExpanded(expanded?: boolean): void;
47
+ /**
48
+ * @internal
49
+ */
50
+ refreshSelectedOption(): void;
51
+ /**
52
+ * @internal
53
+ * @returns The active index (number) if option is found, -1 otherwise.
54
+ * - If a selectedValue exists that's not nullish and that options is found, return that index
55
+ * - Else, return first non nullish index
56
+ * - If none of the above criterias are met, -1 are returned
57
+ */
58
+ getActiveIndex(): number;
59
+ /**
60
+ * @internal
61
+ * evaluates wether the HTML element overflows
62
+ * @param elem The HTMLElement to evaluate
63
+ * */
64
+ isOverflow(elem: HTMLElement): boolean;
65
+ /**
66
+ * Typecast anything to an {@link OptionGroup}.
67
+ * @param group the object to typecast.
68
+ */
69
+ castGroup(group: any): any;
70
+ /**
71
+ * @internal
72
+ * Disables default events.
73
+ * @param event fired containing which key was pressed.
74
+ */
75
+ onKeyDown(event: KeyboardEvent): boolean;
76
+ /**
77
+ * @internal
78
+ * Enter toggles the dropdown, home, end, and, arrows change the index.
79
+ * @param event fired containing which key was released.
80
+ */
81
+ onKeyUp(event: KeyboardEvent): void;
82
+ /**
83
+ * Scrolls focused result into view with a specified offset.
84
+ * @param key the result index which to scroll to.
85
+ */
86
+ scrollToResult(option: any): void;
87
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvDropdownListComponent, [{ optional: true; }]>;
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
+ }
@@ -0,0 +1 @@
1
+ export * from './dropdown-list.component';
@@ -0,0 +1,99 @@
1
+ import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges, TemplateRef } from '@angular/core';
2
+ import { NgControl } from '@angular/forms';
3
+ import { TranslocoScope } from '@ngneat/transloco';
4
+ import { NgvBaseControlValueAccessorComponent } from '@sebgroup/green-angular/src/v-angular/base-control-value-accessor';
5
+ import { DropdownUtils, Option, OptionBase, OptionGroup } from '@sebgroup/green-angular/src/v-angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * A dropdown allows the user to select an option from a list.
9
+ * Dropdowns enables users to make a quick selection of the available options for a specific entry.
10
+ * https://designlibrary.sebgroup.com/components/component-dropdown
11
+ */
12
+ export declare class NgvDropdownComponent<K = string | null | undefined, V = string | null | undefined, T extends Option<K, V> = Option<K, V>> extends NgvBaseControlValueAccessorComponent implements OnDestroy, OnChanges {
13
+ ngControl: NgControl;
14
+ protected translocoScope: TranslocoScope;
15
+ protected cdr: ChangeDetectorRef;
16
+ protected dropdownUtils: DropdownUtils<K, V, T>;
17
+ /** Custom template for displaying selected option. */
18
+ selectedContentTpl: TemplateRef<OptionBase<T>> | undefined;
19
+ optionContentTpl: TemplateRef<OptionBase<any>> | undefined;
20
+ /** Special property used for selecting DOM elements during automated UI testing. */
21
+ thook: string;
22
+ /** Text shown before an option is selected. */
23
+ placeholder?: string;
24
+ /** List of {@link Option} and {@link OptionGroup} listed when dropdown is expanded. */
25
+ set options(value: OptionBase<T>[]);
26
+ get options(): OptionBase<T>[];
27
+ /** The additional amount to show when option is scrolled into view. */
28
+ scrollOffset: number;
29
+ /**
30
+ * Allow this component to add/ remove nullish options based on wether the control is required or not
31
+ * Defaults to true.
32
+ */
33
+ allowControlNullishOption: boolean;
34
+ /** Text to highlight in option */
35
+ textToHighlight?: string;
36
+ /**
37
+ * If only one option exists in options[], default is to select it.
38
+ * This input can be used to alter that behaviour so it doesn't automatically
39
+ * select a value if it's the only one.
40
+ * Defaults to true.
41
+ */
42
+ selectOnSingleOption: boolean;
43
+ /**
44
+ * Emits changes of the expanded state of the dropdown
45
+ */
46
+ expandedChange: EventEmitter<boolean>;
47
+ /** @internal nullish option. */
48
+ get defaultNullishOption(): OptionBase<any>;
49
+ /** The current expanded state of the dropdown options. */
50
+ expanded: boolean;
51
+ /** The current option selected based on numeric index. */
52
+ activeIndex: number;
53
+ /** Subscribe if dropdown expanded to listen to click outside to close dropdown. */
54
+ private onClickSubscription;
55
+ keyEvent: KeyboardEvent;
56
+ private _options;
57
+ constructor(ngControl: NgControl, translocoScope: TranslocoScope, cdr: ChangeDetectorRef, dropdownUtils: DropdownUtils<K, V, T>);
58
+ ngOnChanges(changes: SimpleChanges): void;
59
+ ngOnDestroy(): void;
60
+ /** @internal override to correctly set state from form value */
61
+ writeValue(value: any): void;
62
+ /** @internal */
63
+ onSelectChange(option: T): void;
64
+ onKeyUp(event: KeyboardEvent): void;
65
+ /**
66
+ * Closes the dropdown on click outside.
67
+ */
68
+ subscribeToOutsideClickEvent(): void;
69
+ /**
70
+ * Set the dropdown value to given option.
71
+ * @param value the dropdown option to select.
72
+ */
73
+ private updateModel;
74
+ /** Toggle the expanded state of the dropdown options. */
75
+ toggleDropdown(): void;
76
+ /**
77
+ * Set the expanded state of the dropdown options. If true the options are shown below the field.
78
+ * Activate on click event to be able to close dropdown on click outside.
79
+ * @param state the expanded state which to set.
80
+ */
81
+ setExpanded(state?: boolean): void;
82
+ /**
83
+ * Typecast anything to an {@link Option}.
84
+ * @param option the object to typecast.
85
+ */
86
+ castOption(option: any): T;
87
+ /**
88
+ * Typecast anything to an {@link OptionGroup}.
89
+ * @param group the object to typecast.
90
+ */
91
+ castGroup(group: any): OptionGroup<T>;
92
+ /**
93
+ * Returns true if argument is an {@link Option}.
94
+ * @param option the object to check.
95
+ */
96
+ isOption(option: OptionBase<T>): option is OptionGroup<T>;
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>, "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
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./dropdown.component";
3
+ import * as i2 from "./dropdown-list/dropdown-list.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "./typeahead/typeahead.module";
6
+ import * as i5 from "@sebgroup/green-angular/src/v-angular/tooltip";
7
+ import * as i6 from "@sebgroup/green-angular/src/v-angular/i18n";
8
+ export declare class NgvDropdownModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvDropdownModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgvDropdownModule, [typeof i1.NgvDropdownComponent, typeof i2.NgvDropdownListComponent], [typeof i3.CommonModule, typeof i4.NgvTypeaheadModule, typeof i5.NgvTooltipModule, typeof i6.NgvI18nModule], [typeof i1.NgvDropdownComponent, typeof i2.NgvDropdownListComponent]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgvDropdownModule>;
12
+ }
@@ -0,0 +1,5 @@
1
+ export * from './dropdown.component';
2
+ export * from './dropdown.module';
3
+ export * from './dropdown-list';
4
+ export * from './typeahead';
5
+ export * from './dropdown-list';
@@ -0,0 +1,5 @@
1
+ export * from './typeahead-highlight/typeahead-highlight.component';
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';
@@ -0,0 +1,34 @@
1
+ import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { TranslocoScope } from '@ngneat/transloco';
3
+ import { OptionBase } from '@sebgroup/green-angular/src/v-angular/core';
4
+ import { NgvDropdownListComponent } from '../../dropdown-list/dropdown-list.component';
5
+ import { NgvInputComponent } from '@sebgroup/green-angular/src/v-angular/input';
6
+ import * as i0 from "@angular/core";
7
+ export declare class NgvTypeaheadDropdownListComponent extends NgvDropdownListComponent implements OnInit, OnDestroy {
8
+ protected translocoScope: TranslocoScope;
9
+ private element;
10
+ hostComponent: NgvInputComponent;
11
+ /** Formats each item that is displayed as an option. Only applies format if the option if it implement Option interface. */
12
+ resultFormatter?: (option: OptionBase<any>) => string;
13
+ /** 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 */
14
+ selectedFormatter?: (selected: OptionBase<any>) => string;
15
+ private _destroy$;
16
+ constructor(translocoScope: TranslocoScope, element: ElementRef);
17
+ ngOnInit(): void;
18
+ ngOnDestroy(): void;
19
+ /** @Internal Subscribe to click outside dropdownList and input to close dropdownList */
20
+ private subscribeToOutsideClickEvent;
21
+ /** @Internal Update state of the host-input to reflect the selected value */
22
+ private handleSelectedValueChanges;
23
+ /** @Internal Expand the dropdown when input receives focus. If no state, set empty string in input */
24
+ private handleFocusChanges;
25
+ /**
26
+ * @internal Formats the selected option to display in the input. Interpolate the returned value
27
+ * since we don't know the return type or label type.
28
+ * @param value The selected value
29
+ * @returns The formatted value
30
+ */
31
+ private formatSelected;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvTypeaheadDropdownListComponent, [{ optional: true; skipSelf: true; }, null]>;
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
+ }
@@ -0,0 +1,34 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class NgvTypeaheadHighlightComponent implements OnChanges {
4
+ /** The text that is displayed in the dropdown list */
5
+ textContent?: string;
6
+ /** The substring that should be highlighted within textContent */
7
+ textToHighlight?: string;
8
+ prefix?: string;
9
+ match?: string;
10
+ suffix?: string;
11
+ text: string;
12
+ input: string;
13
+ /**
14
+ * Regexp of characters that are allowed in textContent without being found in textToHighlight
15
+ * Allow whitespaces.
16
+ * */
17
+ allowedNonMatchingChars: RegExp;
18
+ ngOnChanges(changes: SimpleChanges): void;
19
+ private updateValues;
20
+ /**
21
+ * Function that finds the start and end index of where the input is located within the text to display.
22
+ * First occurence is returned. Allows for spaces to occur despite input not matching space.
23
+ * Loops through each character in splittedText and when a char in splittedText equlas the first character of
24
+ * splittedInput, evaluate wether it's match on the entire input.
25
+ * - If it's => return indexes.
26
+ * - If it's not => break out and check next char in outer loop.
27
+ * @param splittedText the text content splitted in an array
28
+ * @param splittedInput the input splitted in an array
29
+ * @returns { start: number, end: number } Indexes of where the match starts and ends in the text displatyed
30
+ */
31
+ private getHighlightedPart;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvTypeaheadHighlightComponent, 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
+ }
@@ -0,0 +1,59 @@
1
+ import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
+ import { NgControl } from '@angular/forms';
3
+ import { TranslocoScope } from '@ngneat/transloco';
4
+ import { OptionBase } from '@sebgroup/green-angular/src/v-angular/core';
5
+ import { NgvDropdownComponent } from '../../dropdown.component';
6
+ import { NgvInputComponent } from '@sebgroup/green-angular/src/v-angular/input';
7
+ import * as i0 from "@angular/core";
8
+ export declare class NgvTypeaheadInputComponent extends NgvInputComponent implements OnInit, OnDestroy {
9
+ private element;
10
+ private renderer2;
11
+ ngControl: NgControl;
12
+ protected translocoScope: TranslocoScope;
13
+ protected cdr: ChangeDetectorRef;
14
+ /** Reference to the host dropdown */
15
+ hostComponent: NgvDropdownComponent;
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
+ get dropdownButton(): HTMLElement;
21
+ /** Boolean to indicate wether the dropdown is expanded or not, to apply appropriate styling */
22
+ expanded: boolean;
23
+ /** Used to determine the height of the inputin html */
24
+ buttonHeight?: number;
25
+ constructor(element: ElementRef, renderer2: Renderer2, ngControl: NgControl, translocoScope: TranslocoScope, cdr: ChangeDetectorRef);
26
+ ngOnInit(): void;
27
+ /**
28
+ * @internal
29
+ * Allow space to be inputted as text
30
+ * @param event fired containing which key was released.
31
+ */
32
+ onKeyUp(event: KeyboardEvent): void;
33
+ /**
34
+ * @internal
35
+ * First time the dropdown is expanded, move the input sp it becomes a child of the dropdown button
36
+ * to better reflect semantics and styling.
37
+ */
38
+ private moveInput;
39
+ /**
40
+ * @internal
41
+ * When dropdown is expanded, focus on the input. If a value is selected, set it in the input.
42
+ * When the dropdown is collapsed, empty the input from text.
43
+ */
44
+ private handleExpandedChange;
45
+ /**
46
+ * @internal Formats the selected option to display in the input. Interpolate the returned value
47
+ * since we don't know the return type or label type.
48
+ * @param value The selected value
49
+ * @returns The formatted value
50
+ */
51
+ private formatSelected;
52
+ /**
53
+ * Sets the input programmatically instead of native HTML input event.
54
+ * @param input
55
+ */
56
+ private setInput;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvTypeaheadInputComponent, [null, null, { optional: true; self: true; }, { optional: true; }, null]>;
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
+ }
@@ -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 nggvTypeahead(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[nggvTypeahead], nggv-dropdown[nggvTypeahead]", never, { "nggvTypeahead": { "alias": "nggvTypeahead"; "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,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./typeahead-highlight/typeahead-highlight.component";
3
+ import * as i2 from "./typeahead-input/typeahead-input.component";
4
+ import * as i3 from "./typeahead-dropdown-list/typeahead-dropdown-list.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@sebgroup/green-angular/src/v-angular/tooltip";
7
+ export declare class NgvTypeaheadModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvTypeaheadModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgvTypeaheadModule, [typeof i1.NgvTypeaheadHighlightComponent, typeof i2.NgvTypeaheadInputComponent, typeof i3.NgvTypeaheadDropdownListComponent], [typeof i4.CommonModule, typeof i5.NgvTooltipModule], [typeof i1.NgvTypeaheadHighlightComponent, typeof i2.NgvTypeaheadInputComponent, typeof i3.NgvTypeaheadDropdownListComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgvTypeaheadModule>;
11
+ }
@@ -0,0 +1,15 @@
1
+ import { HashMap, TranslocoMissingHandler, TranslocoMissingHandlerData, TranslocoTranspiler } from '@ngneat/transloco';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@ngneat/transloco";
4
+ export declare class NgvMissingHandler implements TranslocoMissingHandler {
5
+ private transpiler;
6
+ constructor(transpiler: TranslocoTranspiler);
7
+ handle(key: string, _: TranslocoMissingHandlerData, params: HashMap): any;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvMissingHandler, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<NgvMissingHandler>;
10
+ }
11
+ export declare class NgvI18nModule {
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvI18nModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgvI18nModule, never, never, [typeof i1.TranslocoModule]>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgvI18nModule>;
15
+ }
@@ -0,0 +1,27 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { HashMap, Translation, TranslocoConfig, TranslocoFallbackStrategy, TranslocoInterceptor, TranslocoMissingHandler, TranslocoTranspilerFunction } from '@ngneat/transloco';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ export declare class TranslocoMockPipe implements PipeTransform {
6
+ transform: (value: number) => number;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslocoMockPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<TranslocoMockPipe, "transloco", false>;
9
+ }
10
+ export declare class TranslocoMockTranspiler implements TranslocoTranspilerFunction {
11
+ transpile: (..._args: string[]) => string;
12
+ }
13
+ export declare class TranslocoMockMissingHandler implements TranslocoMissingHandler {
14
+ handle: (key: string, _: TranslocoConfig, _params: HashMap) => string;
15
+ }
16
+ export declare class TranslocoMockStrategy implements TranslocoFallbackStrategy {
17
+ getNextLangs: (_failedLang: string) => any;
18
+ }
19
+ export declare class TranslocoMockInterceptor implements TranslocoInterceptor {
20
+ preSaveTranslation(translation: Translation, _lang: string): Translation;
21
+ preSaveTranslationKey(_key: string, value: string, _lang: string): string;
22
+ }
23
+ export declare class NgvI18nTestModule {
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvI18nTestModule, never>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgvI18nTestModule, [typeof TranslocoMockPipe], [typeof i1.CommonModule], [typeof TranslocoMockPipe]>;
26
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgvI18nTestModule>;
27
+ }
@@ -0,0 +1,2 @@
1
+ export * from './i18n.module';
2
+ export * from './i18n.test.module';
@@ -0,0 +1,17 @@
1
+ export * from './base-control-value-accessor';
2
+ export * from './breadcrumbs';
3
+ export * from './button';
4
+ export * from './card';
5
+ export * from './character-countdown';
6
+ export * from './checkbox';
7
+ export * from './dropdown';
8
+ export * from './dropdown/dropdown-list';
9
+ export * from './i18n';
10
+ export * from './info-circle';
11
+ export * from './input';
12
+ export * from './input-mask';
13
+ export * from './modal';
14
+ export * from './radio';
15
+ export * from './textarea';
16
+ export * from './tooltip';
17
+ export * from './v-angular.module';
@@ -0,0 +1,2 @@
1
+ export * from './info-circle.component';
2
+ export * from './info-circle.module';
@@ -0,0 +1,16 @@
1
+ import '@sebgroup/green-core/components/icon/icons/circle-info';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * A button that will present an explanation to a problem/question.
5
+ * https://designlibrary.sebgroup.com/components/component-contextual-help-button
6
+ */
7
+ export declare class NgvInfoCircleComponent {
8
+ /** Special property used for selecting DOM elements during automated UI testing. */
9
+ thook: string;
10
+ /**
11
+ * Text to display in tooltip when mouse hovers over icon.
12
+ */
13
+ info: string;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvInfoCircleComponent, 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
+ }