@sebgroup/green-angular 4.4.1 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/README.md +2 -2
  2. package/esm2022/index.mjs +19 -1
  3. package/esm2022/lib/in-page-wizard/in-page-wizard-step-card.component.mjs +11 -4
  4. package/esm2022/lib/shared/on-scroll.directive.mjs +2 -2
  5. package/esm2022/src/lib/in-page-wizard/in-page-wizard-step-card.component.mjs +11 -4
  6. package/esm2022/src/lib/shared/on-scroll.directive.mjs +2 -2
  7. package/esm2022/src/v-angular/base-control-value-accessor/base-control-value-accessor.component.mjs +287 -0
  8. package/esm2022/src/v-angular/base-control-value-accessor/base-control-value-accessor.module.mjs +17 -0
  9. package/esm2022/src/v-angular/base-control-value-accessor/index.mjs +3 -0
  10. package/esm2022/src/v-angular/base-control-value-accessor/sebgroup-green-angular-src-v-angular-base-control-value-accessor.mjs +5 -0
  11. package/esm2022/src/v-angular/breadcrumbs/breadcrumbs.component.mjs +25 -0
  12. package/esm2022/src/v-angular/breadcrumbs/breadcrumbs.module.mjs +20 -0
  13. package/esm2022/src/v-angular/breadcrumbs/index.mjs +3 -0
  14. package/esm2022/src/v-angular/breadcrumbs/sebgroup-green-angular-src-v-angular-breadcrumbs.mjs +5 -0
  15. package/esm2022/src/v-angular/button/button.component.mjs +108 -0
  16. package/esm2022/src/v-angular/button/button.module.mjs +20 -0
  17. package/esm2022/src/v-angular/button/index.mjs +3 -0
  18. package/esm2022/src/v-angular/button/sebgroup-green-angular-src-v-angular-button.mjs +5 -0
  19. package/esm2022/src/v-angular/card/card.component.mjs +11 -0
  20. package/esm2022/src/v-angular/card/card.module.mjs +18 -0
  21. package/esm2022/src/v-angular/card/index.mjs +3 -0
  22. package/esm2022/src/v-angular/card/sebgroup-green-angular-src-v-angular-card.mjs +5 -0
  23. package/esm2022/src/v-angular/character-countdown/character-countdown.directive.mjs +51 -0
  24. package/esm2022/src/v-angular/character-countdown/character-countdown.module.mjs +18 -0
  25. package/esm2022/src/v-angular/character-countdown/index.mjs +3 -0
  26. package/esm2022/src/v-angular/character-countdown/sebgroup-green-angular-src-v-angular-character-countdown.mjs +5 -0
  27. package/esm2022/src/v-angular/checkbox/checkbox.component.mjs +72 -0
  28. package/esm2022/src/v-angular/checkbox/checkbox.module.mjs +19 -0
  29. package/esm2022/src/v-angular/checkbox/index.mjs +3 -0
  30. package/esm2022/src/v-angular/checkbox/sebgroup-green-angular-src-v-angular-checkbox.mjs +5 -0
  31. package/esm2022/src/v-angular/core/core.globals.mjs +17 -0
  32. package/esm2022/src/v-angular/core/core.utils.mjs +28 -0
  33. package/esm2022/src/v-angular/core/index.mjs +3 -0
  34. package/esm2022/src/v-angular/core/sebgroup-green-angular-src-v-angular-core.mjs +5 -0
  35. package/esm2022/src/v-angular/dropdown/dropdown-list/dropdown-list.component.mjs +256 -0
  36. package/esm2022/src/v-angular/dropdown/dropdown-list/index.mjs +2 -0
  37. package/esm2022/src/v-angular/dropdown/dropdown.component.mjs +239 -0
  38. package/esm2022/src/v-angular/dropdown/dropdown.module.mjs +22 -0
  39. package/esm2022/src/v-angular/dropdown/index.mjs +6 -0
  40. package/esm2022/src/v-angular/dropdown/sebgroup-green-angular-src-v-angular-dropdown.mjs +5 -0
  41. package/esm2022/src/v-angular/dropdown/typeahead/index.mjs +3 -0
  42. package/esm2022/src/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.mjs +98 -0
  43. package/esm2022/src/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.mjs +85 -0
  44. package/esm2022/src/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.mjs +132 -0
  45. package/esm2022/src/v-angular/dropdown/typeahead/typeahead.module.mjs +33 -0
  46. package/esm2022/src/v-angular/external-link/external-link.directive.mjs +37 -0
  47. package/esm2022/src/v-angular/external-link/external-link.module.mjs +18 -0
  48. package/esm2022/src/v-angular/external-link/index.mjs +3 -0
  49. package/esm2022/src/v-angular/external-link/sebgroup-green-angular-src-v-angular-external-link.mjs +5 -0
  50. package/esm2022/src/v-angular/i18n/i18n.json +12 -0
  51. package/esm2022/src/v-angular/i18n/i18n.module.mjs +83 -0
  52. package/esm2022/src/v-angular/i18n/i18n.test.module.mjs +89 -0
  53. package/esm2022/src/v-angular/i18n/index.mjs +3 -0
  54. package/esm2022/src/v-angular/i18n/sebgroup-green-angular-src-v-angular-i18n.mjs +5 -0
  55. package/esm2022/src/v-angular/info-circle/index.mjs +3 -0
  56. package/esm2022/src/v-angular/info-circle/info-circle.component.mjs +28 -0
  57. package/esm2022/src/v-angular/info-circle/info-circle.module.mjs +21 -0
  58. package/esm2022/src/v-angular/info-circle/sebgroup-green-angular-src-v-angular-info-circle.mjs +5 -0
  59. package/esm2022/src/v-angular/input/index.mjs +3 -0
  60. package/esm2022/src/v-angular/input/input.component.mjs +221 -0
  61. package/esm2022/src/v-angular/input/input.module.mjs +32 -0
  62. package/esm2022/src/v-angular/input/sebgroup-green-angular-src-v-angular-input.mjs +5 -0
  63. package/esm2022/src/v-angular/input-mask/config.mjs +9 -0
  64. package/esm2022/src/v-angular/input-mask/constants.mjs +2 -0
  65. package/esm2022/src/v-angular/input-mask/index.mjs +6 -0
  66. package/esm2022/src/v-angular/input-mask/input-mask-format.pipe.mjs +20 -0
  67. package/esm2022/src/v-angular/input-mask/input-mask.directive.mjs +165 -0
  68. package/esm2022/src/v-angular/input-mask/input-mask.module.mjs +35 -0
  69. package/esm2022/src/v-angular/input-mask/input-mask.types.mjs +2 -0
  70. package/esm2022/src/v-angular/input-mask/sebgroup-green-angular-src-v-angular-input-mask.mjs +5 -0
  71. package/esm2022/src/v-angular/modal/dialog/dialog.component.mjs +190 -0
  72. package/esm2022/src/v-angular/modal/fold-out/fold-out.component.mjs +56 -0
  73. package/esm2022/src/v-angular/modal/fold-out/fold-out.directive.mjs +19 -0
  74. package/esm2022/src/v-angular/modal/index.mjs +6 -0
  75. package/esm2022/src/v-angular/modal/modal.globals.mjs +17 -0
  76. package/esm2022/src/v-angular/modal/modal.module.mjs +40 -0
  77. package/esm2022/src/v-angular/modal/modal.types.mjs +2 -0
  78. package/esm2022/src/v-angular/modal/sebgroup-green-angular-src-v-angular-modal.mjs +5 -0
  79. package/esm2022/src/v-angular/modal/slide-out/slide-out.component.mjs +229 -0
  80. package/esm2022/src/v-angular/radio/index.mjs +3 -0
  81. package/esm2022/src/v-angular/radio/radio.component.mjs +130 -0
  82. package/esm2022/src/v-angular/radio/radio.module.mjs +20 -0
  83. package/esm2022/src/v-angular/radio/sebgroup-green-angular-src-v-angular-radio.mjs +5 -0
  84. package/esm2022/src/v-angular/slug/index.mjs +3 -0
  85. package/esm2022/src/v-angular/slug/sebgroup-green-angular-src-v-angular-slug.mjs +5 -0
  86. package/esm2022/src/v-angular/slug/slug.module.mjs +18 -0
  87. package/esm2022/src/v-angular/slug/slug.pipe.mjs +27 -0
  88. package/esm2022/src/v-angular/textarea/index.mjs +3 -0
  89. package/esm2022/src/v-angular/textarea/sebgroup-green-angular-src-v-angular-textarea.mjs +5 -0
  90. package/esm2022/src/v-angular/textarea/textarea.component.mjs +101 -0
  91. package/esm2022/src/v-angular/textarea/textarea.module.mjs +18 -0
  92. package/esm2022/src/v-angular/tooltip/index.mjs +3 -0
  93. package/esm2022/src/v-angular/tooltip/sebgroup-green-angular-src-v-angular-tooltip.mjs +5 -0
  94. package/esm2022/src/v-angular/tooltip/tooltip.directive.mjs +273 -0
  95. package/esm2022/src/v-angular/tooltip/tooltip.module.mjs +18 -0
  96. package/esm2022/v-angular/base-control-value-accessor/base-control-value-accessor.component.mjs +287 -0
  97. package/esm2022/v-angular/base-control-value-accessor/base-control-value-accessor.module.mjs +17 -0
  98. package/esm2022/v-angular/base-control-value-accessor/index.mjs +3 -0
  99. package/esm2022/v-angular/breadcrumbs/breadcrumbs.component.mjs +25 -0
  100. package/esm2022/v-angular/breadcrumbs/breadcrumbs.module.mjs +20 -0
  101. package/esm2022/v-angular/breadcrumbs/index.mjs +3 -0
  102. package/esm2022/v-angular/button/button.component.mjs +108 -0
  103. package/esm2022/v-angular/button/button.module.mjs +20 -0
  104. package/esm2022/v-angular/button/index.mjs +3 -0
  105. package/esm2022/v-angular/card/card.component.mjs +11 -0
  106. package/esm2022/v-angular/card/card.module.mjs +18 -0
  107. package/esm2022/v-angular/card/index.mjs +3 -0
  108. package/esm2022/v-angular/checkbox/checkbox.component.mjs +72 -0
  109. package/esm2022/v-angular/checkbox/checkbox.module.mjs +19 -0
  110. package/esm2022/v-angular/checkbox/index.mjs +3 -0
  111. package/esm2022/v-angular/dropdown/dropdown-list/dropdown-list.component.mjs +256 -0
  112. package/esm2022/v-angular/dropdown/dropdown-list/index.mjs +2 -0
  113. package/esm2022/v-angular/dropdown/dropdown.component.mjs +239 -0
  114. package/esm2022/v-angular/dropdown/dropdown.module.mjs +22 -0
  115. package/esm2022/v-angular/dropdown/index.mjs +6 -0
  116. package/esm2022/v-angular/dropdown/typeahead/index.mjs +3 -0
  117. package/esm2022/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.mjs +98 -0
  118. package/esm2022/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.mjs +85 -0
  119. package/esm2022/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.mjs +132 -0
  120. package/esm2022/v-angular/dropdown/typeahead/typeahead.module.mjs +33 -0
  121. package/esm2022/v-angular/i18n/i18n.json +12 -0
  122. package/esm2022/v-angular/i18n/i18n.module.mjs +83 -0
  123. package/esm2022/v-angular/i18n/i18n.test.module.mjs +89 -0
  124. package/esm2022/v-angular/i18n/index.mjs +3 -0
  125. package/esm2022/v-angular/info-circle/index.mjs +3 -0
  126. package/esm2022/v-angular/info-circle/info-circle.component.mjs +28 -0
  127. package/esm2022/v-angular/info-circle/info-circle.module.mjs +21 -0
  128. package/esm2022/v-angular/input/index.mjs +3 -0
  129. package/esm2022/v-angular/input/input.component.mjs +221 -0
  130. package/esm2022/v-angular/input/input.module.mjs +32 -0
  131. package/esm2022/v-angular/input-mask/config.mjs +9 -0
  132. package/esm2022/v-angular/input-mask/constants.mjs +2 -0
  133. package/esm2022/v-angular/input-mask/index.mjs +6 -0
  134. package/esm2022/v-angular/input-mask/input-mask-format.pipe.mjs +20 -0
  135. package/esm2022/v-angular/input-mask/input-mask.directive.mjs +165 -0
  136. package/esm2022/v-angular/input-mask/input-mask.module.mjs +35 -0
  137. package/esm2022/v-angular/input-mask/input-mask.types.mjs +2 -0
  138. package/esm2022/v-angular/modal/dialog/dialog.component.mjs +190 -0
  139. package/esm2022/v-angular/modal/fold-out/fold-out.component.mjs +56 -0
  140. package/esm2022/v-angular/modal/fold-out/fold-out.directive.mjs +19 -0
  141. package/esm2022/v-angular/modal/index.mjs +6 -0
  142. package/esm2022/v-angular/modal/modal.globals.mjs +17 -0
  143. package/esm2022/v-angular/modal/modal.module.mjs +40 -0
  144. package/esm2022/v-angular/modal/modal.types.mjs +2 -0
  145. package/esm2022/v-angular/modal/slide-out/slide-out.component.mjs +229 -0
  146. package/esm2022/v-angular/radio/index.mjs +3 -0
  147. package/esm2022/v-angular/radio/radio.component.mjs +130 -0
  148. package/esm2022/v-angular/radio/radio.module.mjs +20 -0
  149. package/esm2022/v-angular/textarea/index.mjs +3 -0
  150. package/esm2022/v-angular/textarea/textarea.component.mjs +101 -0
  151. package/esm2022/v-angular/textarea/textarea.module.mjs +18 -0
  152. package/esm2022/v-angular/tooltip/index.mjs +3 -0
  153. package/esm2022/v-angular/tooltip/tooltip.directive.mjs +273 -0
  154. package/esm2022/v-angular/tooltip/tooltip.module.mjs +18 -0
  155. package/fesm2022/sebgroup-green-angular-src-lib-in-page-wizard.mjs +10 -3
  156. package/fesm2022/sebgroup-green-angular-src-lib-in-page-wizard.mjs.map +1 -1
  157. package/fesm2022/sebgroup-green-angular-src-lib-shared.mjs +1 -1
  158. package/fesm2022/sebgroup-green-angular-src-lib-shared.mjs.map +1 -1
  159. package/fesm2022/sebgroup-green-angular-src-v-angular-base-control-value-accessor.mjs +308 -0
  160. package/fesm2022/sebgroup-green-angular-src-v-angular-base-control-value-accessor.mjs.map +1 -0
  161. package/fesm2022/sebgroup-green-angular-src-v-angular-breadcrumbs.mjs +49 -0
  162. package/fesm2022/sebgroup-green-angular-src-v-angular-breadcrumbs.mjs.map +1 -0
  163. package/fesm2022/sebgroup-green-angular-src-v-angular-button.mjs +131 -0
  164. package/fesm2022/sebgroup-green-angular-src-v-angular-button.mjs.map +1 -0
  165. package/fesm2022/sebgroup-green-angular-src-v-angular-card.mjs +33 -0
  166. package/fesm2022/sebgroup-green-angular-src-v-angular-card.mjs.map +1 -0
  167. package/fesm2022/sebgroup-green-angular-src-v-angular-character-countdown.mjs +73 -0
  168. package/fesm2022/sebgroup-green-angular-src-v-angular-character-countdown.mjs.map +1 -0
  169. package/fesm2022/sebgroup-green-angular-src-v-angular-checkbox.mjs +94 -0
  170. package/fesm2022/sebgroup-green-angular-src-v-angular-checkbox.mjs.map +1 -0
  171. package/fesm2022/sebgroup-green-angular-src-v-angular-core.mjs +51 -0
  172. package/fesm2022/sebgroup-green-angular-src-v-angular-core.mjs.map +1 -0
  173. package/fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs +830 -0
  174. package/fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs.map +1 -0
  175. package/fesm2022/sebgroup-green-angular-src-v-angular-external-link.mjs +58 -0
  176. package/fesm2022/sebgroup-green-angular-src-v-angular-external-link.mjs.map +1 -0
  177. package/fesm2022/sebgroup-green-angular-src-v-angular-i18n.mjs +192 -0
  178. package/fesm2022/sebgroup-green-angular-src-v-angular-i18n.mjs.map +1 -0
  179. package/fesm2022/sebgroup-green-angular-src-v-angular-info-circle.mjs +53 -0
  180. package/fesm2022/sebgroup-green-angular-src-v-angular-info-circle.mjs.map +1 -0
  181. package/fesm2022/sebgroup-green-angular-src-v-angular-input-mask.mjs +226 -0
  182. package/fesm2022/sebgroup-green-angular-src-v-angular-input-mask.mjs.map +1 -0
  183. package/fesm2022/sebgroup-green-angular-src-v-angular-input.mjs +256 -0
  184. package/fesm2022/sebgroup-green-angular-src-v-angular-input.mjs.map +1 -0
  185. package/fesm2022/sebgroup-green-angular-src-v-angular-modal.mjs +542 -0
  186. package/fesm2022/sebgroup-green-angular-src-v-angular-modal.mjs.map +1 -0
  187. package/fesm2022/sebgroup-green-angular-src-v-angular-radio.mjs +153 -0
  188. package/fesm2022/sebgroup-green-angular-src-v-angular-radio.mjs.map +1 -0
  189. package/fesm2022/sebgroup-green-angular-src-v-angular-slug.mjs +49 -0
  190. package/fesm2022/sebgroup-green-angular-src-v-angular-slug.mjs.map +1 -0
  191. package/fesm2022/sebgroup-green-angular-src-v-angular-textarea.mjs +122 -0
  192. package/fesm2022/sebgroup-green-angular-src-v-angular-textarea.mjs.map +1 -0
  193. package/fesm2022/sebgroup-green-angular-src-v-angular-tooltip.mjs +295 -0
  194. package/fesm2022/sebgroup-green-angular-src-v-angular-tooltip.mjs.map +1 -0
  195. package/fesm2022/sebgroup-green-angular.mjs +3116 -17
  196. package/fesm2022/sebgroup-green-angular.mjs.map +1 -1
  197. package/index.d.ts +18 -0
  198. package/lib/in-page-wizard/in-page-wizard-step-card.component.d.ts +2 -1
  199. package/package.json +117 -6
  200. package/src/lib/in-page-wizard/in-page-wizard-step-card.component.d.ts +2 -1
  201. package/src/v-angular/base-control-value-accessor/base-control-value-accessor.component.d.ts +124 -0
  202. package/src/v-angular/base-control-value-accessor/base-control-value-accessor.module.d.ts +7 -0
  203. package/src/v-angular/base-control-value-accessor/index.d.ts +2 -0
  204. package/src/v-angular/breadcrumbs/breadcrumbs.component.d.ts +18 -0
  205. package/src/v-angular/breadcrumbs/breadcrumbs.module.d.ts +10 -0
  206. package/src/v-angular/breadcrumbs/index.d.ts +2 -0
  207. package/src/v-angular/button/button.component.d.ts +62 -0
  208. package/src/v-angular/button/button.module.d.ts +10 -0
  209. package/src/v-angular/button/index.d.ts +2 -0
  210. package/src/v-angular/card/card.component.d.ts +5 -0
  211. package/src/v-angular/card/card.module.d.ts +8 -0
  212. package/src/v-angular/card/index.d.ts +2 -0
  213. package/src/v-angular/character-countdown/character-countdown.directive.d.ts +17 -0
  214. package/src/v-angular/character-countdown/character-countdown.module.d.ts +8 -0
  215. package/src/v-angular/character-countdown/index.d.ts +2 -0
  216. package/src/v-angular/checkbox/checkbox.component.d.ts +27 -0
  217. package/src/v-angular/checkbox/checkbox.module.d.ts +9 -0
  218. package/src/v-angular/checkbox/index.d.ts +2 -0
  219. package/src/v-angular/core/core.globals.d.ts +13 -0
  220. package/src/v-angular/core/core.utils.d.ts +22 -0
  221. package/src/v-angular/core/index.d.ts +2 -0
  222. package/src/v-angular/dropdown/dropdown-list/dropdown-list.component.d.ts +89 -0
  223. package/src/v-angular/dropdown/dropdown-list/index.d.ts +1 -0
  224. package/src/v-angular/dropdown/dropdown.component.d.ts +99 -0
  225. package/src/v-angular/dropdown/dropdown.module.d.ts +12 -0
  226. package/src/v-angular/dropdown/index.d.ts +5 -0
  227. package/src/v-angular/dropdown/typeahead/index.d.ts +2 -0
  228. package/src/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.d.ts +34 -0
  229. package/src/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.d.ts +34 -0
  230. package/src/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.d.ts +59 -0
  231. package/src/v-angular/dropdown/typeahead/typeahead.module.d.ts +11 -0
  232. package/src/v-angular/external-link/external-link.directive.d.ts +17 -0
  233. package/src/v-angular/external-link/external-link.module.d.ts +8 -0
  234. package/src/v-angular/external-link/index.d.ts +2 -0
  235. package/src/v-angular/i18n/i18n.module.d.ts +15 -0
  236. package/src/v-angular/i18n/i18n.test.module.d.ts +27 -0
  237. package/src/v-angular/i18n/index.d.ts +2 -0
  238. package/src/v-angular/info-circle/index.d.ts +2 -0
  239. package/src/v-angular/info-circle/info-circle.component.d.ts +16 -0
  240. package/src/v-angular/info-circle/info-circle.module.d.ts +10 -0
  241. package/src/v-angular/input/index.d.ts +2 -0
  242. package/src/v-angular/input/input.component.d.ts +90 -0
  243. package/src/v-angular/input/input.module.d.ts +11 -0
  244. package/src/v-angular/input-mask/config.d.ts +6 -0
  245. package/src/v-angular/input-mask/constants.d.ts +2 -0
  246. package/src/v-angular/input-mask/index.d.ts +5 -0
  247. package/src/v-angular/input-mask/input-mask-format.pipe.d.ts +8 -0
  248. package/src/v-angular/input-mask/input-mask.directive.d.ts +39 -0
  249. package/src/v-angular/input-mask/input-mask.module.d.ts +11 -0
  250. package/src/v-angular/input-mask/input-mask.types.d.ts +20 -0
  251. package/src/v-angular/modal/dialog/dialog.component.d.ts +55 -0
  252. package/src/v-angular/modal/fold-out/fold-out.component.d.ts +24 -0
  253. package/src/v-angular/modal/fold-out/fold-out.directive.d.ts +6 -0
  254. package/src/v-angular/modal/index.d.ts +5 -0
  255. package/src/v-angular/modal/modal.globals.d.ts +13 -0
  256. package/src/v-angular/modal/modal.module.d.ts +13 -0
  257. package/src/v-angular/modal/modal.types.d.ts +5 -0
  258. package/src/v-angular/modal/slide-out/slide-out.component.d.ts +76 -0
  259. package/src/v-angular/radio/index.d.ts +2 -0
  260. package/src/v-angular/radio/radio.component.d.ts +48 -0
  261. package/src/v-angular/radio/radio.module.d.ts +9 -0
  262. package/src/v-angular/slug/index.d.ts +2 -0
  263. package/src/v-angular/slug/slug.module.d.ts +8 -0
  264. package/src/v-angular/slug/slug.pipe.d.ts +12 -0
  265. package/src/v-angular/textarea/index.d.ts +2 -0
  266. package/src/v-angular/textarea/textarea.component.d.ts +44 -0
  267. package/src/v-angular/textarea/textarea.module.d.ts +8 -0
  268. package/src/v-angular/tooltip/index.d.ts +2 -0
  269. package/src/v-angular/tooltip/tooltip.directive.d.ts +106 -0
  270. package/src/v-angular/tooltip/tooltip.module.d.ts +8 -0
  271. package/v-angular/base-control-value-accessor/base-control-value-accessor.component.d.ts +124 -0
  272. package/v-angular/base-control-value-accessor/base-control-value-accessor.module.d.ts +7 -0
  273. package/v-angular/base-control-value-accessor/index.d.ts +2 -0
  274. package/v-angular/breadcrumbs/breadcrumbs.component.d.ts +18 -0
  275. package/v-angular/breadcrumbs/breadcrumbs.module.d.ts +10 -0
  276. package/v-angular/breadcrumbs/index.d.ts +2 -0
  277. package/v-angular/button/button.component.d.ts +62 -0
  278. package/v-angular/button/button.module.d.ts +10 -0
  279. package/v-angular/button/index.d.ts +2 -0
  280. package/v-angular/card/card.component.d.ts +5 -0
  281. package/v-angular/card/card.module.d.ts +8 -0
  282. package/v-angular/card/index.d.ts +2 -0
  283. package/v-angular/checkbox/checkbox.component.d.ts +27 -0
  284. package/v-angular/checkbox/checkbox.module.d.ts +9 -0
  285. package/v-angular/checkbox/index.d.ts +2 -0
  286. package/v-angular/dropdown/dropdown-list/dropdown-list.component.d.ts +89 -0
  287. package/v-angular/dropdown/dropdown-list/index.d.ts +1 -0
  288. package/v-angular/dropdown/dropdown.component.d.ts +99 -0
  289. package/v-angular/dropdown/dropdown.module.d.ts +12 -0
  290. package/v-angular/dropdown/index.d.ts +5 -0
  291. package/v-angular/dropdown/typeahead/index.d.ts +2 -0
  292. package/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.d.ts +34 -0
  293. package/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.d.ts +34 -0
  294. package/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.d.ts +59 -0
  295. package/v-angular/dropdown/typeahead/typeahead.module.d.ts +11 -0
  296. package/v-angular/i18n/i18n.module.d.ts +15 -0
  297. package/v-angular/i18n/i18n.test.module.d.ts +27 -0
  298. package/v-angular/i18n/index.d.ts +2 -0
  299. package/v-angular/info-circle/index.d.ts +2 -0
  300. package/v-angular/info-circle/info-circle.component.d.ts +16 -0
  301. package/v-angular/info-circle/info-circle.module.d.ts +10 -0
  302. package/v-angular/input/index.d.ts +2 -0
  303. package/v-angular/input/input.component.d.ts +90 -0
  304. package/v-angular/input/input.module.d.ts +11 -0
  305. package/v-angular/input-mask/config.d.ts +6 -0
  306. package/v-angular/input-mask/constants.d.ts +2 -0
  307. package/v-angular/input-mask/index.d.ts +5 -0
  308. package/v-angular/input-mask/input-mask-format.pipe.d.ts +8 -0
  309. package/v-angular/input-mask/input-mask.directive.d.ts +39 -0
  310. package/v-angular/input-mask/input-mask.module.d.ts +11 -0
  311. package/v-angular/input-mask/input-mask.types.d.ts +20 -0
  312. package/v-angular/modal/dialog/dialog.component.d.ts +55 -0
  313. package/v-angular/modal/fold-out/fold-out.component.d.ts +24 -0
  314. package/v-angular/modal/fold-out/fold-out.directive.d.ts +6 -0
  315. package/v-angular/modal/index.d.ts +5 -0
  316. package/v-angular/modal/modal.globals.d.ts +13 -0
  317. package/v-angular/modal/modal.module.d.ts +13 -0
  318. package/v-angular/modal/modal.types.d.ts +5 -0
  319. package/v-angular/modal/slide-out/slide-out.component.d.ts +76 -0
  320. package/v-angular/radio/index.d.ts +2 -0
  321. package/v-angular/radio/radio.component.d.ts +48 -0
  322. package/v-angular/radio/radio.module.d.ts +9 -0
  323. package/v-angular/textarea/index.d.ts +2 -0
  324. package/v-angular/textarea/textarea.component.d.ts +44 -0
  325. package/v-angular/textarea/textarea.module.d.ts +8 -0
  326. package/v-angular/tooltip/index.d.ts +2 -0
  327. package/v-angular/tooltip/tooltip.directive.d.ts +106 -0
  328. package/v-angular/tooltip/tooltip.module.d.ts +8 -0
@@ -0,0 +1,124 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
+ import { AbstractControl, ControlValueAccessor, NgControl, Validator } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
4
+ import { TranslocoScope } from '@ngneat/transloco';
5
+ import * as i0 from "@angular/core";
6
+ export declare class NgvBaseControlValueAccessorComponent implements AfterViewInit, OnInit, OnDestroy, ControlValueAccessor, Validator {
7
+ ngControl: NgControl;
8
+ protected translocoScope: TranslocoScope;
9
+ protected cdr: ChangeDetectorRef;
10
+ /** Custom template for displaying the content of the label.
11
+ * Specified by nesting an `<ng-template #labelTpl>Custom Label</ng-template>`.
12
+ */
13
+ labelContentTpl?: TemplateRef<undefined>;
14
+ /** Reference to the native child input element. */
15
+ inputRef?: ElementRef;
16
+ /** Id of the host element and is accessible by the children, automatically generated if not provided. */
17
+ id: any;
18
+ /** Name of the child input element. */
19
+ name?: string;
20
+ /**
21
+ * Label of the child input element using the default template.
22
+ * Can be overwritten by specifying an `<ng-template #labelTpl>Custom Label</ng-template>`.
23
+ */
24
+ label?: string;
25
+ /** Role of the child input element. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles */
26
+ role?: string;
27
+ /** Value of the child input element. Mostly used in conjunction with radio and checkboxes. */
28
+ value: any;
29
+ /** An error string to be shown under invalid inputs. Overwrites any form errors. */
30
+ error?: string;
31
+ /** Description of the child input element. Both visibly and as `aria-label`. */
32
+ description?: string;
33
+ /** If set to true, the browser will try to automatically set focus to the child input element. */
34
+ autofocus: boolean;
35
+ /** Deafult value of the child input element. Used when resetting child element. */
36
+ defaultValue?: any;
37
+ /** If passed, the component will listen for updates and will reset its value. */
38
+ reset?: Observable<any>;
39
+ /** Adds (Optional) to input label. */
40
+ optional?: boolean | null | undefined;
41
+ private _locked;
42
+ /** Hides the input borders and displays current value as a text. */
43
+ set locked(value: boolean | null | undefined);
44
+ get locked(): boolean | null | undefined;
45
+ /** If set to true, using a controls disabled state will display input as locked. */
46
+ displayDisabledAsLocked?: boolean | null | undefined;
47
+ private _required;
48
+ /** Override the required flag of the component. */
49
+ set required(value: boolean | null | undefined);
50
+ /** Child input element is considered required and changes default label template accordingly. */
51
+ get required(): boolean | null | undefined;
52
+ private _invalid;
53
+ /** Override the invalid state of the component. */
54
+ set invalid(value: boolean);
55
+ /** The component has the invalid state, usually decorating the elements red and shows the first error. */
56
+ get invalid(): boolean;
57
+ private _valid;
58
+ /** Override the valid state of the component. */
59
+ set valid(value: boolean);
60
+ /** The component has the valid state, usually decorating the elements green. */
61
+ get valid(): boolean;
62
+ /** The component has the focused state, updated by the child input element's focus state. */
63
+ focused: boolean;
64
+ private _disabled;
65
+ /** Override the disabled state of the component. */
66
+ set disabled(value: boolean);
67
+ /** The component has the disabled state, usually muting the colors and removes interaction. */
68
+ get disabled(): boolean;
69
+ /** Emits focus events triggered by the child elements. */
70
+ readonly ngvFocus: EventEmitter<any>;
71
+ /** Emits focus events triggered by the child elements. */
72
+ readonly ngvBlur: EventEmitter<any>;
73
+ private _state;
74
+ /** @internal */
75
+ protected onChange: (_: any) => void;
76
+ /** @internal */
77
+ protected onTouched: () => void;
78
+ /** @internal */
79
+ protected onValidatorChange: () => void;
80
+ scope: string | undefined;
81
+ private _onDestroy$;
82
+ /**
83
+ * Creates a new BaseControlValueAccessorComponent.
84
+ * @param ngControl optional FormControl provided when component is used in a form, through dependency injection.
85
+ * @param translocoScope optional TranslocoScope provided if component is used within a scope.
86
+ */
87
+ constructor(ngControl: NgControl, translocoScope: TranslocoScope, cdr: ChangeDetectorRef);
88
+ ngOnInit(): void;
89
+ ngAfterViewInit(): void;
90
+ ngOnDestroy(): void;
91
+ detectChanges(): void;
92
+ /** @internal */
93
+ onFocus(event: Event): void;
94
+ /** @internal */
95
+ onBlur(event: Event): void;
96
+ /** Sets the focus on the actual input element. */
97
+ setFocus(): void;
98
+ /** Internal state/value that the native input element has. */
99
+ get state(): any;
100
+ /** Internal state/value that the native input element has. */
101
+ set state(value: any);
102
+ /** Writes a new value to the child input element. */
103
+ writeValue(value: any): void;
104
+ /** Registers a callback function that is called when the child input element's value changes. */
105
+ registerOnChange(fn: (_: any) => object): void;
106
+ /** Registers a callback function that is called when the child input element triggers on blur. */
107
+ registerOnTouched(fn: () => void): void;
108
+ /** Function that is called by the forms API when the control status changes to or from 'DISABLED'. */
109
+ setDisabledState(isDisabled: boolean): void;
110
+ /** Method that performs synchronous validation against the provided control. Used for internal validation. */
111
+ validate(_control: AbstractControl): {
112
+ [name: string]: any;
113
+ } | null;
114
+ /** Registers a callback function to call when the validator inputs change. */
115
+ registerOnValidatorChange(fn: () => void): void;
116
+ /** Returns the first entry in an error object. */
117
+ get firstError(): {
118
+ code: string;
119
+ params: any;
120
+ } | null;
121
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvBaseControlValueAccessorComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
122
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgvBaseControlValueAccessorComponent, "ng-component", never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "role": { "alias": "role"; "required": false; }; "value": { "alias": "value"; "required": false; }; "error": { "alias": "error"; "required": false; }; "description": { "alias": "description"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "reset": { "alias": "reset"; "required": false; }; "optional": { "alias": "optional"; "required": false; }; "locked": { "alias": "locked"; "required": false; }; "displayDisabledAsLocked": { "alias": "displayDisabledAsLocked"; "required": false; }; "required": { "alias": "required"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "focused": { "alias": "focused"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "ngvFocus": "ngvFocus"; "ngvBlur": "ngvBlur"; }, ["labelContentTpl"], never, false, never>;
123
+ static ɵprov: i0.ɵɵInjectableDeclaration<NgvBaseControlValueAccessorComponent>;
124
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./base-control-value-accessor.component";
3
+ export declare class NgvBaseControlValueAccessorModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvBaseControlValueAccessorModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgvBaseControlValueAccessorModule, [typeof i1.NgvBaseControlValueAccessorComponent], never, [typeof i1.NgvBaseControlValueAccessorComponent]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgvBaseControlValueAccessorModule>;
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from './base-control-value-accessor.component';
2
+ export * from './base-control-value-accessor.module';
@@ -0,0 +1,18 @@
1
+ import * as i0 from "@angular/core";
2
+ type Breadcrumb = {
3
+ /** Title shown for the breadcrumb link. */
4
+ title: string;
5
+ /** The link which is redirected to when clicked. Can be relative with external set to `false`. */
6
+ href: string;
7
+ /** Flags this link to be either internal using router link or external using browser location. */
8
+ external?: boolean;
9
+ };
10
+ export declare class NgvBreadcrumbsComponent {
11
+ /** Special property used for selecting DOM elements during automated UI testing. */
12
+ thook: string;
13
+ /** List of breadcrumbs to present. */
14
+ breadcrumbs: Breadcrumb[];
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>;
17
+ }
18
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./breadcrumbs.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@sebgroup/green-angular/src/v-angular/external-link";
5
+ import * as i4 from "@angular/router";
6
+ export declare class NgvBreadcrumbsModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvBreadcrumbsModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgvBreadcrumbsModule, [typeof i1.NgvBreadcrumbsComponent], [typeof i2.CommonModule, typeof i3.NgvExternalLinkDirectiveModule, typeof i4.RouterModule], [typeof i1.NgvBreadcrumbsComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgvBreadcrumbsModule>;
10
+ }
@@ -0,0 +1,2 @@
1
+ export * from './breadcrumbs.component';
2
+ export * from './breadcrumbs.module';
@@ -0,0 +1,62 @@
1
+ import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } 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
+ export type ButtonTypes = 'button' | 'submit' | 'reset' | 'link';
7
+ export declare enum ButtonStyle {
8
+ Primary = 0,
9
+ Secondary = 1,
10
+ Alternative = 2,
11
+ Delete = 3,
12
+ DeleteConfirm = 4,
13
+ Ghost = 5,
14
+ GhostDark = 6,
15
+ Link = 7
16
+ }
17
+ /**
18
+ * Buttons allow users to take action with a single tap.
19
+ * https://designlibrary.sebgroup.com/components/component-button
20
+ */
21
+ export declare class NgvButtonComponent extends NgvBaseControlValueAccessorComponent implements OnInit, OnChanges {
22
+ ngControl: NgControl;
23
+ protected translocoScope: TranslocoScope;
24
+ protected cdr: ChangeDetectorRef;
25
+ /** Special property used for selecting DOM elements during automated UI testing. */
26
+ thook: string;
27
+ /** Type of button to one of button|submit|reset|link, where link creates an anchor tag. */
28
+ type: ButtonTypes;
29
+ /** Style of the button to one of Primary|Secondary|Alternative|Delete|DeleteConfirm|Ghost|GhostDark|Link. */
30
+ buttonStyle: ButtonStyle;
31
+ /** Size of the button to be smaller. */
32
+ small: boolean;
33
+ /** Where the button should link to if {@link ButtonTypes} is set to link. */
34
+ href?: string;
35
+ /** @internal Determines if the the href property should use internal routing. */
36
+ external: boolean;
37
+ /** @internal The classes determined by the buttonStyle and small properties. */
38
+ buttonClasses: {
39
+ [className: string]: boolean;
40
+ };
41
+ /** Emits click events triggered by the button or link.
42
+ * Use instead of click to avoid triggering events on disabled buttons and links.
43
+ */
44
+ ngvClick: EventEmitter<any>;
45
+ constructor(ngControl: NgControl, translocoScope: TranslocoScope, cdr: ChangeDetectorRef);
46
+ /** @internal */
47
+ static buttonStyleClasses(type: ButtonStyle, small: boolean): {
48
+ small: boolean;
49
+ primary: boolean;
50
+ secondary: boolean;
51
+ tertiary: boolean;
52
+ danger: boolean;
53
+ ghost: boolean;
54
+ 'ghost-light': boolean;
55
+ };
56
+ ngOnInit(): void;
57
+ ngOnChanges(changes: SimpleChanges): void;
58
+ /** @internal */
59
+ onClick(event: Event): void;
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>;
62
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./button.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@sebgroup/green-angular/src/v-angular/external-link";
5
+ import * as i4 from "@angular/router";
6
+ export declare class NgvButtonModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgvButtonModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgvButtonModule, [typeof i1.NgvButtonComponent], [typeof i2.CommonModule, typeof i3.NgvExternalLinkDirectiveModule, typeof i4.RouterModule], [typeof i1.NgvButtonComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgvButtonModule>;
10
+ }
@@ -0,0 +1,2 @@
1
+ export * from './button.component';
2
+ export * from './button.module';
@@ -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, "ngv-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,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, "ngv-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, "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>;
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>, "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>;
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,2 @@
1
+ export * from './typeahead-highlight/typeahead-highlight.component';
2
+ export * from './typeahead-input/typeahead-input.component';
@@ -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, "ngv-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, "ngv-typeahead-highlight", never, { "textContent": { "alias": "textContent"; "required": false; }; "textToHighlight": { "alias": "textToHighlight"; "required": false; }; }, {}, never, never, false, never>;
34
+ }