@energinet/watt 4.2.15 → 4.2.16

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 (802) hide show
  1. package/badge/index.d.ts +17 -15
  2. package/breadcrumbs/index.d.ts +24 -15
  3. package/button/index.d.ts +23 -17
  4. package/card/index.d.ts +22 -16
  5. package/checkbox/index.d.ts +20 -17
  6. package/chip/index.d.ts +104 -23
  7. package/clipboard/index.d.ts +22 -18
  8. package/code/index.d.ts +40 -3
  9. package/core/breakpoints/index.d.ts +38 -2
  10. package/core/color/index.d.ts +48 -2
  11. package/core/date/index.d.ts +121 -7
  12. package/data/index.d.ts +61 -20
  13. package/datetime-field/index.d.ts +44 -17
  14. package/description-list/index.d.ts +30 -15
  15. package/drawer/index.d.ts +73 -21
  16. package/dropdown/index.d.ts +151 -3
  17. package/dropzone/index.d.ts +65 -17
  18. package/empty-state/index.d.ts +37 -19
  19. package/expandable-card/index.d.ts +39 -2
  20. package/{esm2022/badge/watt-badge.component.js → fesm2022/energinet-watt-badge.mjs} +30 -4
  21. package/fesm2022/energinet-watt-badge.mjs.map +1 -0
  22. package/{esm2022/breadcrumbs/watt-breadcrumbs.component.js → fesm2022/energinet-watt-breadcrumbs.mjs} +36 -10
  23. package/fesm2022/energinet-watt-breadcrumbs.mjs.map +1 -0
  24. package/{esm2022/button/watt-button.component.js → fesm2022/energinet-watt-button.mjs} +35 -9
  25. package/fesm2022/energinet-watt-button.mjs.map +1 -0
  26. package/{esm2022/card/watt-card.component.js → fesm2022/energinet-watt-card.mjs} +63 -7
  27. package/fesm2022/energinet-watt-card.mjs.map +1 -0
  28. package/{esm2022/checkbox/watt-checkbox.component.js → fesm2022/energinet-watt-checkbox.mjs} +32 -6
  29. package/fesm2022/energinet-watt-checkbox.mjs.map +1 -0
  30. package/fesm2022/energinet-watt-chip.mjs +694 -0
  31. package/fesm2022/energinet-watt-chip.mjs.map +1 -0
  32. package/{esm2022/clipboard/watt-copy-to-clipboard.directive.js → fesm2022/energinet-watt-clipboard.mjs} +61 -7
  33. package/fesm2022/energinet-watt-clipboard.mjs.map +1 -0
  34. package/{esm2022/code/watt-code.component.js → fesm2022/energinet-watt-code.mjs} +83 -11
  35. package/fesm2022/energinet-watt-code.mjs.map +1 -0
  36. package/fesm2022/energinet-watt-core-breakpoints.mjs +97 -0
  37. package/fesm2022/energinet-watt-core-breakpoints.mjs.map +1 -0
  38. package/fesm2022/energinet-watt-core-color.mjs +124 -0
  39. package/fesm2022/energinet-watt-core-color.mjs.map +1 -0
  40. package/fesm2022/energinet-watt-core-date.mjs +256 -0
  41. package/fesm2022/energinet-watt-core-date.mjs.map +1 -0
  42. package/{esm2022/data/watt-data-table.component.js → fesm2022/energinet-watt-data.mjs} +134 -12
  43. package/fesm2022/energinet-watt-data.mjs.map +1 -0
  44. package/{esm2022/datetime-field/watt-datetime-field.component.js → fesm2022/energinet-watt-datetime-field.mjs} +40 -14
  45. package/fesm2022/energinet-watt-datetime-field.mjs.map +1 -0
  46. package/{esm2022/description-list/watt-description-list.component.js → fesm2022/energinet-watt-description-list.mjs} +77 -8
  47. package/fesm2022/energinet-watt-description-list.mjs.map +1 -0
  48. package/{esm2022/drawer/watt-drawer.component.js → fesm2022/energinet-watt-drawer.mjs} +150 -17
  49. package/fesm2022/energinet-watt-drawer.mjs.map +1 -0
  50. package/{esm2022/dropdown/watt-dropdown.component.js → fesm2022/energinet-watt-dropdown.mjs} +44 -18
  51. package/fesm2022/energinet-watt-dropdown.mjs.map +1 -0
  52. package/{esm2022/dropzone/watt-dropzone.js → fesm2022/energinet-watt-dropzone.mjs} +133 -14
  53. package/fesm2022/energinet-watt-dropzone.mjs.map +1 -0
  54. package/{esm2022/empty-state/icons/not-found.js → fesm2022/energinet-watt-empty-state.mjs} +301 -4
  55. package/fesm2022/energinet-watt-empty-state.mjs.map +1 -0
  56. package/{esm2022/expandable-card/watt-expandable-card.component.js → fesm2022/energinet-watt-expandable-card.mjs} +40 -9
  57. package/fesm2022/energinet-watt-expandable-card.mjs.map +1 -0
  58. package/{esm2022/field/watt-field.component.js → fesm2022/energinet-watt-field.mjs} +149 -14
  59. package/fesm2022/energinet-watt-field.mjs.map +1 -0
  60. package/{esm2022/file-field/watt-file-field.component.js → fesm2022/energinet-watt-file-field.mjs} +32 -6
  61. package/fesm2022/energinet-watt-file-field.mjs.map +1 -0
  62. package/fesm2022/energinet-watt-icon-flags.mjs +547 -0
  63. package/fesm2022/energinet-watt-icon-flags.mjs.map +1 -0
  64. package/{esm2022/icon/icon.component.js → fesm2022/energinet-watt-icon.mjs} +135 -6
  65. package/fesm2022/energinet-watt-icon.mjs.map +1 -0
  66. package/fesm2022/energinet-watt-menu.mjs +282 -0
  67. package/fesm2022/energinet-watt-menu.mjs.map +1 -0
  68. package/{esm2022/modal/watt-modal.component.js → fesm2022/energinet-watt-modal.mjs} +109 -13
  69. package/fesm2022/energinet-watt-modal.mjs.map +1 -0
  70. package/{esm2022/paginator/watt-paginator.component.js → fesm2022/energinet-watt-paginator.mjs} +69 -9
  71. package/fesm2022/energinet-watt-paginator.mjs.map +1 -0
  72. package/{esm2022/phone-field/watt-phone-field.component.js → fesm2022/energinet-watt-phone-field.mjs} +80 -16
  73. package/fesm2022/energinet-watt-phone-field.mjs.map +1 -0
  74. package/fesm2022/energinet-watt-picker-__shared.mjs +292 -0
  75. package/fesm2022/energinet-watt-picker-__shared.mjs.map +1 -0
  76. package/{esm2022/picker/datepicker/watt-datepicker.component.js → fesm2022/energinet-watt-picker-datepicker.mjs} +71 -16
  77. package/fesm2022/energinet-watt-picker-datepicker.mjs.map +1 -0
  78. package/{esm2022/picker/timepicker/watt-timepicker.component.js → fesm2022/energinet-watt-picker-timepicker.mjs} +126 -20
  79. package/fesm2022/energinet-watt-picker-timepicker.mjs.map +1 -0
  80. package/{esm2022/progress-tracker/watt-progress-tracker-step.component.js → fesm2022/energinet-watt-progress-tracker.mjs} +64 -6
  81. package/fesm2022/energinet-watt-progress-tracker.mjs.map +1 -0
  82. package/{esm2022/query-params/watt-query-params.directive.js → fesm2022/energinet-watt-query-params.mjs} +32 -6
  83. package/fesm2022/energinet-watt-query-params.mjs.map +1 -0
  84. package/{esm2022/radio/watt-radio.component.js → fesm2022/energinet-watt-radio.mjs} +146 -5
  85. package/fesm2022/energinet-watt-radio.mjs.map +1 -0
  86. package/{esm2022/search/watt-search.component.js → fesm2022/energinet-watt-search.mjs} +33 -7
  87. package/fesm2022/energinet-watt-search.mjs.map +1 -0
  88. package/{esm2022/segmented-buttons/watt-segmented-buttons.component.js → fesm2022/energinet-watt-segmented-buttons.mjs} +77 -11
  89. package/fesm2022/energinet-watt-segmented-buttons.mjs.map +1 -0
  90. package/fesm2022/energinet-watt-shell.mjs +303 -0
  91. package/fesm2022/energinet-watt-shell.mjs.map +1 -0
  92. package/{esm2022/slide-toggle/watt-slide-toggle.component.js → fesm2022/energinet-watt-slide-toggle.mjs} +34 -8
  93. package/fesm2022/energinet-watt-slide-toggle.mjs.map +1 -0
  94. package/{esm2022/slider/watt-slider.component.js → fesm2022/energinet-watt-slider.mjs} +33 -7
  95. package/fesm2022/energinet-watt-slider.mjs.map +1 -0
  96. package/{esm2022/spinner/watt-spinner.component.js → fesm2022/energinet-watt-spinner.mjs} +30 -4
  97. package/fesm2022/energinet-watt-spinner.mjs.map +1 -0
  98. package/{esm2022/stepper/watt-stepper.component.js → fesm2022/energinet-watt-stepper.mjs} +85 -15
  99. package/fesm2022/energinet-watt-stepper.mjs.map +1 -0
  100. package/{esm2022/table/watt-table.component.js → fesm2022/energinet-watt-table.mjs} +134 -22
  101. package/fesm2022/energinet-watt-table.mjs.map +1 -0
  102. package/fesm2022/energinet-watt-tabs.mjs +254 -0
  103. package/fesm2022/energinet-watt-tabs.mjs.map +1 -0
  104. package/{esm2022/text-field/watt-text-field.component.js → fesm2022/energinet-watt-text-field.mjs} +36 -10
  105. package/fesm2022/energinet-watt-text-field.mjs.map +1 -0
  106. package/{esm2022/textarea-field/watt-textarea-field.component.js → fesm2022/energinet-watt-textarea-field.mjs} +32 -6
  107. package/fesm2022/energinet-watt-textarea-field.mjs.map +1 -0
  108. package/{esm2022/toast/watt-toast.component.js → fesm2022/energinet-watt-toast.mjs} +82 -9
  109. package/fesm2022/energinet-watt-toast.mjs.map +1 -0
  110. package/{esm2022/tooltip/watt-tooltip.component.js → fesm2022/energinet-watt-tooltip.mjs} +98 -8
  111. package/fesm2022/energinet-watt-tooltip.mjs.map +1 -0
  112. package/{esm2022/utils/css/css-custom-properties.service.js → fesm2022/energinet-watt-utils-css.mjs} +30 -4
  113. package/fesm2022/energinet-watt-utils-css.mjs.map +1 -0
  114. package/{esm2022/utils/intersection-observer/watt-intersection-observer.service.js → fesm2022/energinet-watt-utils-intersection-observer.mjs} +31 -5
  115. package/fesm2022/energinet-watt-utils-intersection-observer.mjs.map +1 -0
  116. package/fesm2022/energinet-watt-utils-resize-observer.mjs +143 -0
  117. package/fesm2022/energinet-watt-utils-resize-observer.mjs.map +1 -0
  118. package/{esm2022/validation-message/watt-validation-message.component.js → fesm2022/energinet-watt-validation-message.mjs} +31 -5
  119. package/fesm2022/energinet-watt-validation-message.mjs.map +1 -0
  120. package/{esm2022/validators/watt-range.validators.js → fesm2022/energinet-watt-validators.mjs} +28 -2
  121. package/fesm2022/energinet-watt-validators.mjs.map +1 -0
  122. package/fesm2022/energinet-watt-vater.mjs +248 -0
  123. package/fesm2022/energinet-watt-vater.mjs.map +1 -0
  124. package/{esm2022/year-field/watt-year-field.component.js → fesm2022/energinet-watt-year-field.mjs} +39 -13
  125. package/fesm2022/energinet-watt-year-field.mjs.map +1 -0
  126. package/{esm2022/yearmonth-field/watt-yearmonth-field.component.js → fesm2022/energinet-watt-yearmonth-field.mjs} +79 -13
  127. package/fesm2022/energinet-watt-yearmonth-field.mjs.map +1 -0
  128. package/{esm2022/index.js → fesm2022/energinet-watt.mjs} +8 -2
  129. package/fesm2022/energinet-watt.mjs.map +1 -0
  130. package/field/index.d.ts +62 -21
  131. package/file-field/index.d.ts +13 -17
  132. package/icon/flags/index.d.ts +61 -26
  133. package/icon/index.d.ts +105 -1
  134. package/index.d.ts +3 -1
  135. package/menu/index.d.ts +103 -9
  136. package/modal/index.d.ts +111 -2
  137. package/package.json +9 -9
  138. package/paginator/index.d.ts +52 -16
  139. package/phone-field/index.d.ts +79 -18
  140. package/picker/__shared/index.d.ts +88 -3
  141. package/picker/datepicker/index.d.ts +87 -16
  142. package/picker/timepicker/index.d.ts +70 -14
  143. package/progress-tracker/index.d.ts +21 -4
  144. package/query-params/index.d.ts +12 -17
  145. package/radio/index.d.ts +71 -18
  146. package/search/index.d.ts +47 -17
  147. package/segmented-buttons/index.d.ts +32 -5
  148. package/shell/index.d.ts +47 -18
  149. package/slide-toggle/index.d.ts +18 -15
  150. package/slider/index.d.ts +33 -15
  151. package/spinner/index.d.ts +16 -15
  152. package/stepper/index.d.ts +43 -2
  153. package/table/index.d.ts +301 -2
  154. package/tabs/index.d.ts +52 -10
  155. package/text-field/index.d.ts +67 -17
  156. package/textarea-field/index.d.ts +31 -17
  157. package/toast/index.d.ts +59 -17
  158. package/tooltip/index.d.ts +20 -17
  159. package/utils/css/index.d.ts +12 -17
  160. package/utils/intersection-observer/index.d.ts +22 -14
  161. package/utils/resize-observer/index.d.ts +46 -2
  162. package/validation-message/index.d.ts +36 -15
  163. package/validators/index.d.ts +12 -1
  164. package/vater/index.d.ts +71 -5
  165. package/year-field/index.d.ts +60 -17
  166. package/yearmonth-field/index.d.ts +64 -18
  167. package/badge/energinet-watt-badge.d.ts +0 -5
  168. package/badge/watt-badge.component.d.ts +0 -15
  169. package/breadcrumbs/energinet-watt-breadcrumbs.d.ts +0 -5
  170. package/breadcrumbs/watt-breadcrumbs.component.d.ts +0 -23
  171. package/button/energinet-watt-button.d.ts +0 -5
  172. package/button/watt-button.component.d.ts +0 -22
  173. package/card/energinet-watt-card.d.ts +0 -5
  174. package/card/watt-card-title.component.d.ts +0 -6
  175. package/card/watt-card.component.d.ts +0 -15
  176. package/checkbox/energinet-watt-checkbox.d.ts +0 -5
  177. package/checkbox/watt-checkbox.component.d.ts +0 -17
  178. package/chip/energinet-watt-chip.d.ts +0 -5
  179. package/chip/watt-action-chip.component.d.ts +0 -8
  180. package/chip/watt-chip.component.d.ts +0 -8
  181. package/chip/watt-chip.directive.d.ts +0 -16
  182. package/chip/watt-date-chip.component.d.ts +0 -12
  183. package/chip/watt-date-range-chip.component.d.ts +0 -50
  184. package/chip/watt-filter-chip.component.d.ts +0 -13
  185. package/chip/watt-menu-chip.component.d.ts +0 -13
  186. package/clipboard/energinet-watt-clipboard.d.ts +0 -5
  187. package/clipboard/watt-clipboard-intl.service.d.ts +0 -7
  188. package/clipboard/watt-copy-to-clipboard.directive.d.ts +0 -12
  189. package/code/energinet-watt-code.d.ts +0 -5
  190. package/code/watt-code-intl.service.d.ts +0 -6
  191. package/code/watt-code.component.d.ts +0 -45
  192. package/code/watt-code.worker.token.d.ts +0 -18
  193. package/core/breakpoints/breakpoints-observer.d.ts +0 -21
  194. package/core/breakpoints/breakpoints.d.ts +0 -29
  195. package/core/breakpoints/energinet-watt-core-breakpoints.d.ts +0 -5
  196. package/core/color/color-helper.service.d.ts +0 -10
  197. package/core/color/colors.d.ts +0 -51
  198. package/core/color/energinet-watt-core-color.d.ts +0 -5
  199. package/core/date/dayjs.d.ts +0 -22
  200. package/core/date/energinet-watt-core-date.d.ts +0 -5
  201. package/core/date/watt-danish-datetime.providers.d.ts +0 -1
  202. package/core/date/watt-date-adapter.d.ts +0 -31
  203. package/core/date/watt-date-range.d.ts +0 -25
  204. package/core/date/watt-date.pipe.d.ts +0 -28
  205. package/core/date/watt-format-date.d.ts +0 -11
  206. package/core/date/watt-locale.service.d.ts +0 -11
  207. package/data/energinet-watt-data.d.ts +0 -5
  208. package/data/watt-data-actions.component.d.ts +0 -5
  209. package/data/watt-data-filters.component.d.ts +0 -5
  210. package/data/watt-data-intl.service.d.ts +0 -15
  211. package/data/watt-data-table.component.d.ts +0 -34
  212. package/datetime-field/energinet-watt-datetime-field.d.ts +0 -5
  213. package/datetime-field/watt-datetime-field.component.d.ts +0 -39
  214. package/description-list/energinet-watt-description-list.d.ts +0 -5
  215. package/description-list/watt-description-list-item.component.d.ts +0 -27
  216. package/description-list/watt-description-list.component.d.ts +0 -20
  217. package/drawer/energinet-watt-drawer.d.ts +0 -5
  218. package/drawer/watt-drawer-actions.component.d.ts +0 -5
  219. package/drawer/watt-drawer-content.component.d.ts +0 -5
  220. package/drawer/watt-drawer-heading.component.d.ts +0 -5
  221. package/drawer/watt-drawer-topbar.component.d.ts +0 -5
  222. package/drawer/watt-drawer.component.d.ts +0 -66
  223. package/dropdown/energinet-watt-dropdown.d.ts +0 -5
  224. package/dropdown/watt-dropdown-option.d.ts +0 -28
  225. package/dropdown/watt-dropdown-value.d.ts +0 -17
  226. package/dropdown/watt-dropdown.component.d.ts +0 -133
  227. package/dropzone/energinet-watt-dropzone.d.ts +0 -5
  228. package/dropzone/watt-dropzone-intl.d.ts +0 -11
  229. package/dropzone/watt-dropzone-validators.d.ts +0 -27
  230. package/dropzone/watt-dropzone.d.ts +0 -31
  231. package/empty-state/energinet-watt-empty-state.d.ts +0 -5
  232. package/empty-state/icons/explore.d.ts +0 -5
  233. package/empty-state/icons/no-results.d.ts +0 -5
  234. package/empty-state/icons/not-found.d.ts +0 -5
  235. package/empty-state/icons/power.d.ts +0 -5
  236. package/empty-state/watt-empty-state.component.d.ts +0 -16
  237. package/energinet-watt.d.ts +0 -5
  238. package/esm2022/badge/energinet-watt-badge.js +0 -5
  239. package/esm2022/badge/energinet-watt-badge.js.map +0 -1
  240. package/esm2022/badge/index.js +0 -20
  241. package/esm2022/badge/index.js.map +0 -1
  242. package/esm2022/badge/watt-badge.component.js.map +0 -1
  243. package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js +0 -5
  244. package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js.map +0 -1
  245. package/esm2022/breadcrumbs/index.js +0 -20
  246. package/esm2022/breadcrumbs/index.js.map +0 -1
  247. package/esm2022/breadcrumbs/watt-breadcrumbs.component.js.map +0 -1
  248. package/esm2022/button/energinet-watt-button.js +0 -5
  249. package/esm2022/button/energinet-watt-button.js.map +0 -1
  250. package/esm2022/button/index.js +0 -20
  251. package/esm2022/button/index.js.map +0 -1
  252. package/esm2022/button/watt-button.component.js.map +0 -1
  253. package/esm2022/card/energinet-watt-card.js +0 -5
  254. package/esm2022/card/energinet-watt-card.js.map +0 -1
  255. package/esm2022/card/index.js +0 -21
  256. package/esm2022/card/index.js.map +0 -1
  257. package/esm2022/card/watt-card-title.component.js +0 -33
  258. package/esm2022/card/watt-card-title.component.js.map +0 -1
  259. package/esm2022/card/watt-card.component.js.map +0 -1
  260. package/esm2022/checkbox/energinet-watt-checkbox.js +0 -5
  261. package/esm2022/checkbox/energinet-watt-checkbox.js.map +0 -1
  262. package/esm2022/checkbox/index.js +0 -20
  263. package/esm2022/checkbox/index.js.map +0 -1
  264. package/esm2022/checkbox/watt-checkbox.component.js.map +0 -1
  265. package/esm2022/chip/energinet-watt-chip.js +0 -5
  266. package/esm2022/chip/energinet-watt-chip.js.map +0 -1
  267. package/esm2022/chip/index.js +0 -26
  268. package/esm2022/chip/index.js.map +0 -1
  269. package/esm2022/chip/watt-action-chip.component.js +0 -68
  270. package/esm2022/chip/watt-action-chip.component.js.map +0 -1
  271. package/esm2022/chip/watt-chip.component.js +0 -55
  272. package/esm2022/chip/watt-chip.component.js.map +0 -1
  273. package/esm2022/chip/watt-chip.directive.js +0 -92
  274. package/esm2022/chip/watt-chip.directive.js.map +0 -1
  275. package/esm2022/chip/watt-date-chip.component.js +0 -104
  276. package/esm2022/chip/watt-date-chip.component.js.map +0 -1
  277. package/esm2022/chip/watt-date-range-chip.component.js +0 -213
  278. package/esm2022/chip/watt-date-range-chip.component.js.map +0 -1
  279. package/esm2022/chip/watt-filter-chip.component.js +0 -82
  280. package/esm2022/chip/watt-filter-chip.component.js.map +0 -1
  281. package/esm2022/chip/watt-menu-chip.component.js +0 -80
  282. package/esm2022/chip/watt-menu-chip.component.js.map +0 -1
  283. package/esm2022/clipboard/energinet-watt-clipboard.js +0 -5
  284. package/esm2022/clipboard/energinet-watt-clipboard.js.map +0 -1
  285. package/esm2022/clipboard/index.js +0 -21
  286. package/esm2022/clipboard/index.js.map +0 -1
  287. package/esm2022/clipboard/watt-clipboard-intl.service.js +0 -31
  288. package/esm2022/clipboard/watt-clipboard-intl.service.js.map +0 -1
  289. package/esm2022/clipboard/watt-copy-to-clipboard.directive.js.map +0 -1
  290. package/esm2022/code/energinet-watt-code.js +0 -5
  291. package/esm2022/code/energinet-watt-code.js.map +0 -1
  292. package/esm2022/code/index.js +0 -22
  293. package/esm2022/code/index.js.map +0 -1
  294. package/esm2022/code/watt-code-intl.service.js +0 -30
  295. package/esm2022/code/watt-code-intl.service.js.map +0 -1
  296. package/esm2022/code/watt-code.component.js.map +0 -1
  297. package/esm2022/code/watt-code.worker.token.js +0 -21
  298. package/esm2022/code/watt-code.worker.token.js.map +0 -1
  299. package/esm2022/core/breakpoints/breakpoints-observer.js +0 -41
  300. package/esm2022/core/breakpoints/breakpoints-observer.js.map +0 -1
  301. package/esm2022/core/breakpoints/breakpoints.js +0 -31
  302. package/esm2022/core/breakpoints/breakpoints.js.map +0 -1
  303. package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js +0 -5
  304. package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js.map +0 -1
  305. package/esm2022/core/breakpoints/index.js +0 -21
  306. package/esm2022/core/breakpoints/index.js.map +0 -1
  307. package/esm2022/core/color/color-helper.service.js +0 -41
  308. package/esm2022/core/color/color-helper.service.js.map +0 -1
  309. package/esm2022/core/color/colors.js +0 -58
  310. package/esm2022/core/color/colors.js.map +0 -1
  311. package/esm2022/core/color/energinet-watt-core-color.js +0 -5
  312. package/esm2022/core/color/energinet-watt-core-color.js.map +0 -1
  313. package/esm2022/core/color/index.js +0 -21
  314. package/esm2022/core/color/index.js.map +0 -1
  315. package/esm2022/core/date/dayjs.js +0 -34
  316. package/esm2022/core/date/dayjs.js.map +0 -1
  317. package/esm2022/core/date/energinet-watt-core-date.js +0 -5
  318. package/esm2022/core/date/energinet-watt-core-date.js.map +0 -1
  319. package/esm2022/core/date/index.js +0 -25
  320. package/esm2022/core/date/index.js.map +0 -1
  321. package/esm2022/core/date/watt-danish-datetime.providers.js +0 -31
  322. package/esm2022/core/date/watt-danish-datetime.providers.js.map +0 -1
  323. package/esm2022/core/date/watt-date-adapter.js +0 -43
  324. package/esm2022/core/date/watt-date-adapter.js.map +0 -1
  325. package/esm2022/core/date/watt-date-range.js +0 -2
  326. package/esm2022/core/date/watt-date-range.js.map +0 -1
  327. package/esm2022/core/date/watt-date.pipe.js +0 -38
  328. package/esm2022/core/date/watt-date.pipe.js.map +0 -1
  329. package/esm2022/core/date/watt-format-date.js +0 -50
  330. package/esm2022/core/date/watt-format-date.js.map +0 -1
  331. package/esm2022/core/date/watt-locale.service.js +0 -48
  332. package/esm2022/core/date/watt-locale.service.js.map +0 -1
  333. package/esm2022/data/energinet-watt-data.js +0 -5
  334. package/esm2022/data/energinet-watt-data.js.map +0 -1
  335. package/esm2022/data/index.js +0 -23
  336. package/esm2022/data/index.js.map +0 -1
  337. package/esm2022/data/watt-data-actions.component.js +0 -32
  338. package/esm2022/data/watt-data-actions.component.js.map +0 -1
  339. package/esm2022/data/watt-data-filters.component.js +0 -32
  340. package/esm2022/data/watt-data-filters.component.js.map +0 -1
  341. package/esm2022/data/watt-data-intl.service.js +0 -39
  342. package/esm2022/data/watt-data-intl.service.js.map +0 -1
  343. package/esm2022/data/watt-data-table.component.js.map +0 -1
  344. package/esm2022/datetime-field/energinet-watt-datetime-field.js +0 -5
  345. package/esm2022/datetime-field/energinet-watt-datetime-field.js.map +0 -1
  346. package/esm2022/datetime-field/index.js +0 -20
  347. package/esm2022/datetime-field/index.js.map +0 -1
  348. package/esm2022/datetime-field/watt-datetime-field.component.js.map +0 -1
  349. package/esm2022/description-list/energinet-watt-description-list.js +0 -5
  350. package/esm2022/description-list/energinet-watt-description-list.js.map +0 -1
  351. package/esm2022/description-list/index.js +0 -20
  352. package/esm2022/description-list/index.js.map +0 -1
  353. package/esm2022/description-list/watt-description-list-item.component.js +0 -49
  354. package/esm2022/description-list/watt-description-list-item.component.js.map +0 -1
  355. package/esm2022/description-list/watt-description-list.component.js.map +0 -1
  356. package/esm2022/drawer/energinet-watt-drawer.js +0 -5
  357. package/esm2022/drawer/energinet-watt-drawer.js.map +0 -1
  358. package/esm2022/drawer/index.js +0 -24
  359. package/esm2022/drawer/index.js.map +0 -1
  360. package/esm2022/drawer/watt-drawer-actions.component.js +0 -29
  361. package/esm2022/drawer/watt-drawer-actions.component.js.map +0 -1
  362. package/esm2022/drawer/watt-drawer-content.component.js +0 -29
  363. package/esm2022/drawer/watt-drawer-content.component.js.map +0 -1
  364. package/esm2022/drawer/watt-drawer-heading.component.js +0 -29
  365. package/esm2022/drawer/watt-drawer-heading.component.js.map +0 -1
  366. package/esm2022/drawer/watt-drawer-topbar.component.js +0 -32
  367. package/esm2022/drawer/watt-drawer-topbar.component.js.map +0 -1
  368. package/esm2022/drawer/watt-drawer.component.js.map +0 -1
  369. package/esm2022/dropdown/energinet-watt-dropdown.js +0 -5
  370. package/esm2022/dropdown/energinet-watt-dropdown.js.map +0 -1
  371. package/esm2022/dropdown/index.js +0 -20
  372. package/esm2022/dropdown/index.js.map +0 -1
  373. package/esm2022/dropdown/watt-dropdown-option.js +0 -2
  374. package/esm2022/dropdown/watt-dropdown-option.js.map +0 -1
  375. package/esm2022/dropdown/watt-dropdown-value.js +0 -2
  376. package/esm2022/dropdown/watt-dropdown-value.js.map +0 -1
  377. package/esm2022/dropdown/watt-dropdown.component.js.map +0 -1
  378. package/esm2022/dropzone/energinet-watt-dropzone.js +0 -5
  379. package/esm2022/dropzone/energinet-watt-dropzone.js.map +0 -1
  380. package/esm2022/dropzone/index.js +0 -22
  381. package/esm2022/dropzone/index.js.map +0 -1
  382. package/esm2022/dropzone/watt-dropzone-intl.js +0 -35
  383. package/esm2022/dropzone/watt-dropzone-intl.js.map +0 -1
  384. package/esm2022/dropzone/watt-dropzone-validators.js +0 -67
  385. package/esm2022/dropzone/watt-dropzone-validators.js.map +0 -1
  386. package/esm2022/dropzone/watt-dropzone.js.map +0 -1
  387. package/esm2022/empty-state/energinet-watt-empty-state.js +0 -5
  388. package/esm2022/empty-state/energinet-watt-empty-state.js.map +0 -1
  389. package/esm2022/empty-state/icons/explore.js +0 -54
  390. package/esm2022/empty-state/icons/explore.js.map +0 -1
  391. package/esm2022/empty-state/icons/no-results.js +0 -62
  392. package/esm2022/empty-state/icons/no-results.js.map +0 -1
  393. package/esm2022/empty-state/icons/not-found.js.map +0 -1
  394. package/esm2022/empty-state/icons/power.js +0 -46
  395. package/esm2022/empty-state/icons/power.js.map +0 -1
  396. package/esm2022/empty-state/index.js +0 -24
  397. package/esm2022/empty-state/index.js.map +0 -1
  398. package/esm2022/empty-state/watt-empty-state.component.js +0 -120
  399. package/esm2022/empty-state/watt-empty-state.component.js.map +0 -1
  400. package/esm2022/energinet-watt.js +0 -5
  401. package/esm2022/energinet-watt.js.map +0 -1
  402. package/esm2022/expandable-card/energinet-watt-expandable-card.js +0 -5
  403. package/esm2022/expandable-card/energinet-watt-expandable-card.js.map +0 -1
  404. package/esm2022/expandable-card/index.js +0 -26
  405. package/esm2022/expandable-card/index.js.map +0 -1
  406. package/esm2022/expandable-card/watt-expandable-card.component.js.map +0 -1
  407. package/esm2022/field/energinet-watt-field.js +0 -5
  408. package/esm2022/field/energinet-watt-field.js.map +0 -1
  409. package/esm2022/field/index.js +0 -24
  410. package/esm2022/field/index.js.map +0 -1
  411. package/esm2022/field/watt-field-error.component.js +0 -29
  412. package/esm2022/field/watt-field-error.component.js.map +0 -1
  413. package/esm2022/field/watt-field-hint.component.js +0 -29
  414. package/esm2022/field/watt-field-hint.component.js.map +0 -1
  415. package/esm2022/field/watt-field-intl.service.js +0 -32
  416. package/esm2022/field/watt-field-intl.service.js.map +0 -1
  417. package/esm2022/field/watt-field-warning.component.js +0 -29
  418. package/esm2022/field/watt-field-warning.component.js.map +0 -1
  419. package/esm2022/field/watt-field.component.js.map +0 -1
  420. package/esm2022/file-field/energinet-watt-file-field.js +0 -5
  421. package/esm2022/file-field/energinet-watt-file-field.js.map +0 -1
  422. package/esm2022/file-field/index.js +0 -20
  423. package/esm2022/file-field/index.js.map +0 -1
  424. package/esm2022/file-field/watt-file-field.component.js.map +0 -1
  425. package/esm2022/icon/energinet-watt-icon.js +0 -5
  426. package/esm2022/icon/energinet-watt-icon.js.map +0 -1
  427. package/esm2022/icon/flags/energinet-watt-icon-flags.js +0 -5
  428. package/esm2022/icon/flags/energinet-watt-icon-flags.js.map +0 -1
  429. package/esm2022/icon/flags/index.js +0 -29
  430. package/esm2022/icon/flags/index.js.map +0 -1
  431. package/esm2022/icon/flags/watt-flag-ch.js +0 -52
  432. package/esm2022/icon/flags/watt-flag-ch.js.map +0 -1
  433. package/esm2022/icon/flags/watt-flag-de.js +0 -44
  434. package/esm2022/icon/flags/watt-flag-de.js.map +0 -1
  435. package/esm2022/icon/flags/watt-flag-dk.js +0 -44
  436. package/esm2022/icon/flags/watt-flag-dk.js.map +0 -1
  437. package/esm2022/icon/flags/watt-flag-fi.js +0 -44
  438. package/esm2022/icon/flags/watt-flag-fi.js.map +0 -1
  439. package/esm2022/icon/flags/watt-flag-gb.js +0 -60
  440. package/esm2022/icon/flags/watt-flag-gb.js.map +0 -1
  441. package/esm2022/icon/flags/watt-flag-nl.js +0 -44
  442. package/esm2022/icon/flags/watt-flag-nl.js.map +0 -1
  443. package/esm2022/icon/flags/watt-flag-no.js +0 -48
  444. package/esm2022/icon/flags/watt-flag-no.js.map +0 -1
  445. package/esm2022/icon/flags/watt-flag-pl.js +0 -46
  446. package/esm2022/icon/flags/watt-flag-pl.js.map +0 -1
  447. package/esm2022/icon/flags/watt-flag-se.js +0 -42
  448. package/esm2022/icon/flags/watt-flag-se.js.map +0 -1
  449. package/esm2022/icon/flags/watt-flag.js +0 -124
  450. package/esm2022/icon/flags/watt-flag.js.map +0 -1
  451. package/esm2022/icon/icon.component.js.map +0 -1
  452. package/esm2022/icon/icons.js +0 -104
  453. package/esm2022/icon/icons.js.map +0 -1
  454. package/esm2022/icon/index.js +0 -20
  455. package/esm2022/icon/index.js.map +0 -1
  456. package/esm2022/index.js.map +0 -1
  457. package/esm2022/menu/energinet-watt-menu.js +0 -5
  458. package/esm2022/menu/energinet-watt-menu.js.map +0 -1
  459. package/esm2022/menu/index.js +0 -36
  460. package/esm2022/menu/index.js.map +0 -1
  461. package/esm2022/menu/watt-menu-group.component.js +0 -45
  462. package/esm2022/menu/watt-menu-group.component.js.map +0 -1
  463. package/esm2022/menu/watt-menu-item.component.js +0 -50
  464. package/esm2022/menu/watt-menu-item.component.js.map +0 -1
  465. package/esm2022/menu/watt-menu-trigger.directive.js +0 -85
  466. package/esm2022/menu/watt-menu-trigger.directive.js.map +0 -1
  467. package/esm2022/menu/watt-menu.component.js +0 -77
  468. package/esm2022/menu/watt-menu.component.js.map +0 -1
  469. package/esm2022/modal/energinet-watt-modal.js +0 -5
  470. package/esm2022/modal/energinet-watt-modal.js.map +0 -1
  471. package/esm2022/modal/index.js +0 -21
  472. package/esm2022/modal/index.js.map +0 -1
  473. package/esm2022/modal/watt-modal.component.js.map +0 -1
  474. package/esm2022/modal/watt-modal.service.js +0 -74
  475. package/esm2022/modal/watt-modal.service.js.map +0 -1
  476. package/esm2022/paginator/energinet-watt-paginator.js +0 -5
  477. package/esm2022/paginator/energinet-watt-paginator.js.map +0 -1
  478. package/esm2022/paginator/index.js +0 -21
  479. package/esm2022/paginator/index.js.map +0 -1
  480. package/esm2022/paginator/watt-paginator-intl.service.js +0 -38
  481. package/esm2022/paginator/watt-paginator-intl.service.js.map +0 -1
  482. package/esm2022/paginator/watt-paginator.component.js.map +0 -1
  483. package/esm2022/phone-field/energinet-watt-phone-field.js +0 -5
  484. package/esm2022/phone-field/energinet-watt-phone-field.js.map +0 -1
  485. package/esm2022/phone-field/index.js +0 -21
  486. package/esm2022/phone-field/index.js.map +0 -1
  487. package/esm2022/phone-field/watt-phone-field-intl.service.js +0 -41
  488. package/esm2022/phone-field/watt-phone-field-intl.service.js.map +0 -1
  489. package/esm2022/phone-field/watt-phone-field.component.js.map +0 -1
  490. package/esm2022/picker/__shared/energinet-watt-picker-__shared.js +0 -5
  491. package/esm2022/picker/__shared/energinet-watt-picker-__shared.js.map +0 -1
  492. package/esm2022/picker/__shared/index.js +0 -21
  493. package/esm2022/picker/__shared/index.js.map +0 -1
  494. package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js +0 -71
  495. package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js.map +0 -1
  496. package/esm2022/picker/__shared/watt-picker-base.js +0 -197
  497. package/esm2022/picker/__shared/watt-picker-base.js.map +0 -1
  498. package/esm2022/picker/__shared/watt-picker-value.js +0 -2
  499. package/esm2022/picker/__shared/watt-picker-value.js.map +0 -1
  500. package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js +0 -5
  501. package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js.map +0 -1
  502. package/esm2022/picker/datepicker/index.js +0 -22
  503. package/esm2022/picker/datepicker/index.js.map +0 -1
  504. package/esm2022/picker/datepicker/watt-datepicker-intl.service.js +0 -31
  505. package/esm2022/picker/datepicker/watt-datepicker-intl.service.js.map +0 -1
  506. package/esm2022/picker/datepicker/watt-datepicker.component.js.map +0 -1
  507. package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js +0 -5
  508. package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js.map +0 -1
  509. package/esm2022/picker/timepicker/index.js +0 -20
  510. package/esm2022/picker/timepicker/index.js.map +0 -1
  511. package/esm2022/picker/timepicker/maskito-time-range-mask.js +0 -81
  512. package/esm2022/picker/timepicker/maskito-time-range-mask.js.map +0 -1
  513. package/esm2022/picker/timepicker/watt-timepicker.component.js.map +0 -1
  514. package/esm2022/progress-tracker/energinet-watt-progress-tracker.js +0 -5
  515. package/esm2022/progress-tracker/energinet-watt-progress-tracker.js.map +0 -1
  516. package/esm2022/progress-tracker/index.js +0 -27
  517. package/esm2022/progress-tracker/index.js.map +0 -1
  518. package/esm2022/progress-tracker/watt-progress-tracker-step.component.js.map +0 -1
  519. package/esm2022/progress-tracker/watt-progress-tracker.component.js +0 -30
  520. package/esm2022/progress-tracker/watt-progress-tracker.component.js.map +0 -1
  521. package/esm2022/query-params/energinet-watt-query-params.js +0 -5
  522. package/esm2022/query-params/energinet-watt-query-params.js.map +0 -1
  523. package/esm2022/query-params/index.js +0 -20
  524. package/esm2022/query-params/index.js.map +0 -1
  525. package/esm2022/query-params/watt-query-params.directive.js.map +0 -1
  526. package/esm2022/radio/energinet-watt-radio.js +0 -5
  527. package/esm2022/radio/energinet-watt-radio.js.map +0 -1
  528. package/esm2022/radio/index.js +0 -21
  529. package/esm2022/radio/index.js.map +0 -1
  530. package/esm2022/radio/watt-radio-group.component.js +0 -119
  531. package/esm2022/radio/watt-radio-group.component.js.map +0 -1
  532. package/esm2022/radio/watt-radio.component.js.map +0 -1
  533. package/esm2022/search/energinet-watt-search.js +0 -5
  534. package/esm2022/search/energinet-watt-search.js.map +0 -1
  535. package/esm2022/search/index.js +0 -20
  536. package/esm2022/search/index.js.map +0 -1
  537. package/esm2022/search/watt-search.component.js.map +0 -1
  538. package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js +0 -5
  539. package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js.map +0 -1
  540. package/esm2022/segmented-buttons/index.js +0 -27
  541. package/esm2022/segmented-buttons/index.js.map +0 -1
  542. package/esm2022/segmented-buttons/watt-segmented-button.component.js +0 -39
  543. package/esm2022/segmented-buttons/watt-segmented-button.component.js.map +0 -1
  544. package/esm2022/segmented-buttons/watt-segmented-buttons.component.js.map +0 -1
  545. package/esm2022/shell/energinet-watt-shell.js +0 -5
  546. package/esm2022/shell/energinet-watt-shell.js.map +0 -1
  547. package/esm2022/shell/index.js +0 -21
  548. package/esm2022/shell/index.js.map +0 -1
  549. package/esm2022/shell/nav-list/index.js +0 -21
  550. package/esm2022/shell/nav-list/index.js.map +0 -1
  551. package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js +0 -47
  552. package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js.map +0 -1
  553. package/esm2022/shell/nav-list/watt-nav-list-item.component.js +0 -83
  554. package/esm2022/shell/nav-list/watt-nav-list-item.component.js.map +0 -1
  555. package/esm2022/shell/nav-list/watt-nav-list.component.js +0 -80
  556. package/esm2022/shell/nav-list/watt-nav-list.component.js.map +0 -1
  557. package/esm2022/shell/shell.component.js +0 -59
  558. package/esm2022/shell/shell.component.js.map +0 -1
  559. package/esm2022/slide-toggle/energinet-watt-slide-toggle.js +0 -5
  560. package/esm2022/slide-toggle/energinet-watt-slide-toggle.js.map +0 -1
  561. package/esm2022/slide-toggle/index.js +0 -20
  562. package/esm2022/slide-toggle/index.js.map +0 -1
  563. package/esm2022/slide-toggle/watt-slide-toggle.component.js.map +0 -1
  564. package/esm2022/slider/energinet-watt-slider.js +0 -5
  565. package/esm2022/slider/energinet-watt-slider.js.map +0 -1
  566. package/esm2022/slider/index.js +0 -20
  567. package/esm2022/slider/index.js.map +0 -1
  568. package/esm2022/slider/watt-slider.component.js.map +0 -1
  569. package/esm2022/spinner/energinet-watt-spinner.js +0 -5
  570. package/esm2022/spinner/energinet-watt-spinner.js.map +0 -1
  571. package/esm2022/spinner/index.js +0 -20
  572. package/esm2022/spinner/index.js.map +0 -1
  573. package/esm2022/spinner/watt-spinner.component.js.map +0 -1
  574. package/esm2022/stepper/energinet-watt-stepper.js +0 -5
  575. package/esm2022/stepper/energinet-watt-stepper.js.map +0 -1
  576. package/esm2022/stepper/index.js +0 -21
  577. package/esm2022/stepper/index.js.map +0 -1
  578. package/esm2022/stepper/watt-stepper-step.component.js +0 -49
  579. package/esm2022/stepper/watt-stepper-step.component.js.map +0 -1
  580. package/esm2022/stepper/watt-stepper.component.js.map +0 -1
  581. package/esm2022/table/energinet-watt-table.js +0 -5
  582. package/esm2022/table/energinet-watt-table.js.map +0 -1
  583. package/esm2022/table/index.js +0 -21
  584. package/esm2022/table/index.js.map +0 -1
  585. package/esm2022/table/watt-table-data-source.js +0 -27
  586. package/esm2022/table/watt-table-data-source.js.map +0 -1
  587. package/esm2022/table/watt-table-expand-animation.js +0 -65
  588. package/esm2022/table/watt-table-expand-animation.js.map +0 -1
  589. package/esm2022/table/watt-table.component.js.map +0 -1
  590. package/esm2022/tabs/energinet-watt-tabs.js +0 -5
  591. package/esm2022/tabs/energinet-watt-tabs.js.map +0 -1
  592. package/esm2022/tabs/index.js +0 -31
  593. package/esm2022/tabs/index.js.map +0 -1
  594. package/esm2022/tabs/watt-link-tab.component.js +0 -34
  595. package/esm2022/tabs/watt-link-tab.component.js.map +0 -1
  596. package/esm2022/tabs/watt-link-tabs.component.js +0 -71
  597. package/esm2022/tabs/watt-link-tabs.component.js.map +0 -1
  598. package/esm2022/tabs/watt-tab.component.js +0 -42
  599. package/esm2022/tabs/watt-tab.component.js.map +0 -1
  600. package/esm2022/tabs/watt-tabs-action.component.js +0 -32
  601. package/esm2022/tabs/watt-tabs-action.component.js.map +0 -1
  602. package/esm2022/tabs/watt-tabs.component.js +0 -60
  603. package/esm2022/tabs/watt-tabs.component.js.map +0 -1
  604. package/esm2022/text-field/energinet-watt-text-field.js +0 -5
  605. package/esm2022/text-field/energinet-watt-text-field.js.map +0 -1
  606. package/esm2022/text-field/index.js +0 -20
  607. package/esm2022/text-field/index.js.map +0 -1
  608. package/esm2022/text-field/watt-text-field.component.js.map +0 -1
  609. package/esm2022/textarea-field/energinet-watt-textarea-field.js +0 -5
  610. package/esm2022/textarea-field/energinet-watt-textarea-field.js.map +0 -1
  611. package/esm2022/textarea-field/index.js +0 -20
  612. package/esm2022/textarea-field/index.js.map +0 -1
  613. package/esm2022/textarea-field/watt-textarea-field.component.js.map +0 -1
  614. package/esm2022/toast/energinet-watt-toast.js +0 -5
  615. package/esm2022/toast/energinet-watt-toast.js.map +0 -1
  616. package/esm2022/toast/index.js +0 -21
  617. package/esm2022/toast/index.js.map +0 -1
  618. package/esm2022/toast/watt-toast.component.js.map +0 -1
  619. package/esm2022/toast/watt-toast.service.js +0 -51
  620. package/esm2022/toast/watt-toast.service.js.map +0 -1
  621. package/esm2022/tooltip/energinet-watt-tooltip.js +0 -5
  622. package/esm2022/tooltip/energinet-watt-tooltip.js.map +0 -1
  623. package/esm2022/tooltip/index.js +0 -20
  624. package/esm2022/tooltip/index.js.map +0 -1
  625. package/esm2022/tooltip/watt-tooltip.component.js.map +0 -1
  626. package/esm2022/tooltip/watt-tooltip.directive.js +0 -67
  627. package/esm2022/tooltip/watt-tooltip.directive.js.map +0 -1
  628. package/esm2022/utils/css/css-custom-properties.service.js.map +0 -1
  629. package/esm2022/utils/css/energinet-watt-utils-css.js +0 -5
  630. package/esm2022/utils/css/energinet-watt-utils-css.js.map +0 -1
  631. package/esm2022/utils/css/index.js +0 -20
  632. package/esm2022/utils/css/index.js.map +0 -1
  633. package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js +0 -5
  634. package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js.map +0 -1
  635. package/esm2022/utils/intersection-observer/index.js +0 -20
  636. package/esm2022/utils/intersection-observer/index.js.map +0 -1
  637. package/esm2022/utils/intersection-observer/watt-intersection-observer.service.js.map +0 -1
  638. package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js +0 -5
  639. package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js.map +0 -1
  640. package/esm2022/utils/resize-observer/index.js +0 -21
  641. package/esm2022/utils/resize-observer/index.js.map +0 -1
  642. package/esm2022/utils/resize-observer/watt-resize-observer.directive.js +0 -53
  643. package/esm2022/utils/resize-observer/watt-resize-observer.directive.js.map +0 -1
  644. package/esm2022/utils/resize-observer/watt-resize-observer.service.js +0 -67
  645. package/esm2022/utils/resize-observer/watt-resize-observer.service.js.map +0 -1
  646. package/esm2022/validation-message/energinet-watt-validation-message.js +0 -5
  647. package/esm2022/validation-message/energinet-watt-validation-message.js.map +0 -1
  648. package/esm2022/validation-message/index.js +0 -20
  649. package/esm2022/validation-message/index.js.map +0 -1
  650. package/esm2022/validation-message/watt-validation-message.component.js.map +0 -1
  651. package/esm2022/validators/energinet-watt-validators.js +0 -5
  652. package/esm2022/validators/energinet-watt-validators.js.map +0 -1
  653. package/esm2022/validators/index.js +0 -20
  654. package/esm2022/validators/index.js.map +0 -1
  655. package/esm2022/validators/watt-range.validators.js.map +0 -1
  656. package/esm2022/vater/energinet-watt-vater.js +0 -5
  657. package/esm2022/vater/energinet-watt-vater.js.map +0 -1
  658. package/esm2022/vater/index.js +0 -24
  659. package/esm2022/vater/index.js.map +0 -1
  660. package/esm2022/vater/types.js +0 -20
  661. package/esm2022/vater/types.js.map +0 -1
  662. package/esm2022/vater/vater-flex.component.js +0 -49
  663. package/esm2022/vater/vater-flex.component.js.map +0 -1
  664. package/esm2022/vater/vater-layout.directive.js +0 -65
  665. package/esm2022/vater/vater-layout.directive.js.map +0 -1
  666. package/esm2022/vater/vater-spacer.component.js +0 -29
  667. package/esm2022/vater/vater-spacer.component.js.map +0 -1
  668. package/esm2022/vater/vater-stack.component.js +0 -42
  669. package/esm2022/vater/vater-stack.component.js.map +0 -1
  670. package/esm2022/vater/vater-utility.directive.js +0 -53
  671. package/esm2022/vater/vater-utility.directive.js.map +0 -1
  672. package/esm2022/year-field/energinet-watt-year-field.js +0 -5
  673. package/esm2022/year-field/energinet-watt-year-field.js.map +0 -1
  674. package/esm2022/year-field/index.js +0 -20
  675. package/esm2022/year-field/index.js.map +0 -1
  676. package/esm2022/year-field/watt-year-field.component.js.map +0 -1
  677. package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js +0 -5
  678. package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js.map +0 -1
  679. package/esm2022/yearmonth-field/index.js +0 -21
  680. package/esm2022/yearmonth-field/index.js.map +0 -1
  681. package/esm2022/yearmonth-field/watt-yearmonth-field.component.js.map +0 -1
  682. package/esm2022/yearmonth-field/year-month.js +0 -42
  683. package/esm2022/yearmonth-field/year-month.js.map +0 -1
  684. package/expandable-card/energinet-watt-expandable-card.d.ts +0 -5
  685. package/expandable-card/watt-expandable-card.component.d.ts +0 -34
  686. package/field/energinet-watt-field.d.ts +0 -5
  687. package/field/watt-field-error.component.d.ts +0 -5
  688. package/field/watt-field-hint.component.d.ts +0 -5
  689. package/field/watt-field-intl.service.d.ts +0 -8
  690. package/field/watt-field-warning.component.d.ts +0 -5
  691. package/field/watt-field.component.d.ts +0 -53
  692. package/file-field/energinet-watt-file-field.d.ts +0 -5
  693. package/file-field/watt-file-field.component.d.ts +0 -10
  694. package/icon/energinet-watt-icon.d.ts +0 -5
  695. package/icon/flags/energinet-watt-icon-flags.d.ts +0 -5
  696. package/icon/flags/watt-flag-ch.d.ts +0 -5
  697. package/icon/flags/watt-flag-de.d.ts +0 -5
  698. package/icon/flags/watt-flag-dk.d.ts +0 -5
  699. package/icon/flags/watt-flag-fi.d.ts +0 -5
  700. package/icon/flags/watt-flag-gb.d.ts +0 -5
  701. package/icon/flags/watt-flag-nl.d.ts +0 -5
  702. package/icon/flags/watt-flag-no.d.ts +0 -5
  703. package/icon/flags/watt-flag-pl.d.ts +0 -5
  704. package/icon/flags/watt-flag-se.d.ts +0 -5
  705. package/icon/flags/watt-flag.d.ts +0 -13
  706. package/icon/icon.component.d.ts +0 -20
  707. package/icon/icons.d.ts +0 -97
  708. package/menu/energinet-watt-menu.d.ts +0 -5
  709. package/menu/watt-menu-group.component.d.ts +0 -9
  710. package/menu/watt-menu-item.component.d.ts +0 -9
  711. package/menu/watt-menu-trigger.directive.d.ts +0 -36
  712. package/menu/watt-menu.component.d.ts +0 -44
  713. package/modal/energinet-watt-modal.d.ts +0 -5
  714. package/modal/watt-modal.component.d.ts +0 -84
  715. package/modal/watt-modal.service.d.ts +0 -56
  716. package/paginator/energinet-watt-paginator.d.ts +0 -5
  717. package/paginator/watt-paginator-intl.service.d.ts +0 -14
  718. package/paginator/watt-paginator.component.d.ts +0 -53
  719. package/phone-field/energinet-watt-phone-field.d.ts +0 -5
  720. package/phone-field/watt-phone-field-intl.service.d.ts +0 -17
  721. package/phone-field/watt-phone-field.component.d.ts +0 -75
  722. package/picker/__shared/energinet-watt-picker-__shared.d.ts +0 -5
  723. package/picker/__shared/placeholder-mask/watt-placeholder-mask.component.d.ts +0 -34
  724. package/picker/__shared/watt-picker-base.d.ts +0 -81
  725. package/picker/__shared/watt-picker-value.d.ts +0 -18
  726. package/picker/datepicker/energinet-watt-picker-datepicker.d.ts +0 -5
  727. package/picker/datepicker/watt-datepicker-intl.service.d.ts +0 -7
  728. package/picker/datepicker/watt-datepicker.component.d.ts +0 -95
  729. package/picker/timepicker/energinet-watt-picker-timepicker.d.ts +0 -5
  730. package/picker/timepicker/maskito-time-range-mask.d.ts +0 -18
  731. package/picker/timepicker/watt-timepicker.component.d.ts +0 -69
  732. package/progress-tracker/energinet-watt-progress-tracker.d.ts +0 -5
  733. package/progress-tracker/watt-progress-tracker-step.component.d.ts +0 -10
  734. package/progress-tracker/watt-progress-tracker.component.d.ts +0 -5
  735. package/query-params/energinet-watt-query-params.d.ts +0 -5
  736. package/query-params/watt-query-params.directive.d.ts +0 -9
  737. package/radio/energinet-watt-radio.d.ts +0 -5
  738. package/radio/watt-radio-group.component.d.ts +0 -47
  739. package/radio/watt-radio.component.d.ts +0 -23
  740. package/search/energinet-watt-search.d.ts +0 -5
  741. package/search/watt-search.component.d.ts +0 -44
  742. package/segmented-buttons/energinet-watt-segmented-buttons.d.ts +0 -5
  743. package/segmented-buttons/watt-segmented-button.component.d.ts +0 -25
  744. package/segmented-buttons/watt-segmented-buttons.component.d.ts +0 -18
  745. package/shell/energinet-watt-shell.d.ts +0 -5
  746. package/shell/nav-list/index.d.ts +0 -18
  747. package/shell/nav-list/watt-expand-on-active-link.directive.d.ts +0 -9
  748. package/shell/nav-list/watt-nav-list-item.component.d.ts +0 -16
  749. package/shell/nav-list/watt-nav-list.component.d.ts +0 -12
  750. package/shell/shell.component.d.ts +0 -17
  751. package/slide-toggle/energinet-watt-slide-toggle.d.ts +0 -5
  752. package/slide-toggle/watt-slide-toggle.component.d.ts +0 -33
  753. package/slider/energinet-watt-slider.d.ts +0 -5
  754. package/slider/watt-slider.component.d.ts +0 -47
  755. package/spinner/energinet-watt-spinner.d.ts +0 -5
  756. package/spinner/watt-spinner.component.d.ts +0 -15
  757. package/stepper/energinet-watt-stepper.d.ts +0 -5
  758. package/stepper/watt-stepper-step.component.d.ts +0 -35
  759. package/stepper/watt-stepper.component.d.ts +0 -40
  760. package/table/energinet-watt-table.d.ts +0 -5
  761. package/table/watt-table-data-source.d.ts +0 -39
  762. package/table/watt-table-expand-animation.d.ts +0 -18
  763. package/table/watt-table.component.d.ts +0 -294
  764. package/tabs/energinet-watt-tabs.d.ts +0 -5
  765. package/tabs/watt-link-tab.component.d.ts +0 -7
  766. package/tabs/watt-link-tabs.component.d.ts +0 -7
  767. package/tabs/watt-tab.component.d.ts +0 -26
  768. package/tabs/watt-tabs-action.component.d.ts +0 -5
  769. package/tabs/watt-tabs.component.d.ts +0 -36
  770. package/text-field/energinet-watt-text-field.d.ts +0 -5
  771. package/text-field/watt-text-field.component.d.ts +0 -80
  772. package/textarea-field/energinet-watt-textarea-field.d.ts +0 -5
  773. package/textarea-field/watt-textarea-field.component.d.ts +0 -28
  774. package/toast/energinet-watt-toast.d.ts +0 -5
  775. package/toast/watt-toast.component.d.ts +0 -47
  776. package/toast/watt-toast.service.d.ts +0 -12
  777. package/tooltip/energinet-watt-tooltip.d.ts +0 -5
  778. package/tooltip/watt-tooltip.component.d.ts +0 -26
  779. package/tooltip/watt-tooltip.directive.d.ts +0 -16
  780. package/utils/css/css-custom-properties.service.d.ts +0 -9
  781. package/utils/css/energinet-watt-utils-css.d.ts +0 -5
  782. package/utils/intersection-observer/energinet-watt-utils-intersection-observer.d.ts +0 -5
  783. package/utils/intersection-observer/watt-intersection-observer.service.d.ts +0 -21
  784. package/utils/resize-observer/energinet-watt-utils-resize-observer.d.ts +0 -5
  785. package/utils/resize-observer/watt-resize-observer.directive.d.ts +0 -35
  786. package/utils/resize-observer/watt-resize-observer.service.d.ts +0 -22
  787. package/validation-message/energinet-watt-validation-message.d.ts +0 -5
  788. package/validation-message/watt-validation-message.component.d.ts +0 -50
  789. package/validators/energinet-watt-validators.d.ts +0 -5
  790. package/validators/watt-range.validators.d.ts +0 -24
  791. package/vater/energinet-watt-vater.d.ts +0 -5
  792. package/vater/types.d.ts +0 -22
  793. package/vater/vater-flex.component.d.ts +0 -14
  794. package/vater/vater-layout.directive.d.ts +0 -24
  795. package/vater/vater-spacer.component.d.ts +0 -5
  796. package/vater/vater-stack.component.d.ts +0 -7
  797. package/vater/vater-utility.directive.d.ts +0 -17
  798. package/year-field/energinet-watt-year-field.d.ts +0 -5
  799. package/year-field/watt-year-field.component.d.ts +0 -56
  800. package/yearmonth-field/energinet-watt-yearmonth-field.d.ts +0 -5
  801. package/yearmonth-field/watt-yearmonth-field.component.d.ts +0 -58
  802. package/yearmonth-field/year-month.d.ts +0 -20
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-text-field.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-text-field.js","sourceRoot":"","sources":["../../../../libs/watt/package/text-field/energinet-watt-text-field.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1,20 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- export { WattTextFieldComponent } from './watt-text-field.component';
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/text-field/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { WattTextFieldComponent } from './watt-text-field.component';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-text-field.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/text-field/watt-text-field.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,UAAU,EAEV,MAAM,EACN,KAAK,EACL,MAAM,EACN,SAAS,EACT,MAAM,EACN,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,iBAAiB,EACjB,mBAAmB,GACpB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AK,EAAE,IAAI;aACZ;SACF,2EAsEoC,eAAe,2KArE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CT,uTA7DS,qBAAqB,y9BAAE,mBAAmB,6uBAAE,kBAAkB,yLAAE,iBAAiB;;4FA+DhF,sBAAsB;kBAhElC,SAAS;8BACC,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,iBAAiB,CAAC,YAClF,iBAAiB,iBAEZ,iBAAiB,CAAC,IAAI,QAC/B;wBACJ,4BAA4B,EAAE,cAAc;qBAC7C,aACU;wBACT;4BACE,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,uBAAuB,CAAC;4BACrD,KAAK,EAAE,IAAI;yBACZ;qBACF,YACS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CT;k2CAsBoC,eAAe,0TAqBU,YAAY","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport {\n Component,\n ViewEncapsulation,\n ElementRef,\n forwardRef,\n AfterViewInit,\n inject,\n input,\n output,\n viewChild,\n signal,\n linkedSignal,\n} from '@angular/core';\nimport {\n ControlValueAccessor,\n FormControl,\n NG_VALUE_ACCESSOR,\n ReactiveFormsModule,\n} from '@angular/forms';\nimport { MatAutocomplete, MatAutocompleteModule } from '@angular/material/autocomplete';\n\nimport { WattFieldComponent } from '@energinet/watt/field';\nimport { WattIconComponent, WattIcon } from '@energinet/watt/icon';\n\nexport type WattInputTypes = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';\n\n@Component({\n imports: [MatAutocompleteModule, ReactiveFormsModule, WattFieldComponent, WattIconComponent],\n selector: 'watt-text-field',\n styleUrls: ['./watt-text-field.component.scss'],\n encapsulation: ViewEncapsulation.None,\n host: {\n '[attr.watt-field-disabled]': 'isDisabled()',\n },\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => WattTextFieldComponent),\n multi: true,\n },\n ],\n template: `\n <watt-field\n #wattField\n [control]=\"formControl()\"\n [label]=\"label()\"\n [tooltip]=\"tooltip()\"\n [autoFocus]=\"autoFocus()\"\n matAutocompleteOrigin\n [showErrors]=\"showErrors()\"\n >\n @if (prefix()) {\n <watt-icon [name]=\"prefix()\" />\n }\n\n <input\n [attr.aria-label]=\"label()\"\n [attr.type]=\"type()\"\n [attr.placeholder]=\"placeholder()\"\n [attr.size]=\"size()\"\n [value]=\"model()\"\n [formControl]=\"formControl()\"\n (blur)=\"onTouched()\"\n (input)=\"onChanged($event)\"\n [maxlength]=\"maxLength()\"\n [matAutocomplete]=\"auto\"\n [matAutocompleteDisabled]=\"!autocompleteOptions()\"\n [matAutocompleteConnectedTo]=\"{ elementRef: wattField.wrapper() ?? wattField.elementRef }\"\n #inputField\n />\n\n <mat-autocomplete\n #auto=\"matAutocomplete\"\n class=\"watt-autocomplete-panel\"\n (optionSelected)=\"autocompleteOptionSelected.emit($event.option.value)\"\n >\n @for (option of autocompleteOptions(); track option) {\n <mat-option [value]=\"option\">\n {{ option }}\n </mat-option>\n }\n </mat-autocomplete>\n\n <ng-content />\n <ng-content ngProjectAs=\"watt-field-descriptor\" select=\".descriptor\" />\n <ng-content ngProjectAs=\"watt-field-hint\" select=\"watt-field-hint\" />\n <ng-content ngProjectAs=\"watt-field-error\" select=\"watt-field-error\" />\n </watt-field>\n `,\n})\nexport class WattTextFieldComponent implements ControlValueAccessor, AfterViewInit {\n value = input('');\n type = input<WattInputTypes>('text');\n placeholder = input('');\n label = input('');\n tooltip = input('');\n prefix = input<WattIcon>();\n size = input<string | number | null>(null);\n maxLength = input<string | number | null>(null);\n formControl = input.required<FormControl>();\n autocompleteOptions = input<string[]>([]);\n autocompleteMatcherFn = input<(value: string, option: string) => boolean>();\n showErrors = input(true);\n\n /**\n * Whether the input should receive focus when the component is rendered.\n */\n autoFocus = input(false);\n\n /** @ignore */\n autocompleteRef = viewChild.required(MatAutocomplete);\n\n /**\n * Emits the value of the input field when it changes.\n */\n searchChanged = output<string>();\n\n /**\n * Emits the value of the input field when an autocomplete option is selected.\n */\n autocompleteOptionSelected = output<string>();\n\n /**\n * Emits the value of the input field when an autocomplete option is selected.\n */\n autocompleteOptionDeselected = output<void>();\n\n /** @ignore */\n private readonly element = inject(ElementRef);\n\n /** @ignore */\n inputField = viewChild.required<ElementRef<HTMLInputElement>>('inputField');\n model = linkedSignal(this.value);\n\n /** @ignore */\n isDisabled = signal(false);\n\n /** @ignore */\n onTouchedCallbacks: (() => void)[] = [];\n\n /** @ignore */\n ngAfterViewInit(): void {\n const attrName = 'data-testid';\n const testIdAttribute = this.element.nativeElement.getAttribute(attrName);\n this.element.nativeElement.removeAttribute(attrName);\n\n this.inputField().nativeElement.setAttribute(attrName, testIdAttribute);\n this.registerOnTouched(() => {\n const trimmedValue = this.inputField().nativeElement.value.trim();\n this.inputField().nativeElement.value = trimmedValue;\n this.formControl().setValue(trimmedValue);\n });\n }\n\n /** @ignore */\n onChanged(event: Event): void {\n const value = (event.target as HTMLInputElement).value;\n\n // Reset the autocomplete selection if the value is not matching anymore, and auto-select if the value has a match\n this.autocompleteRef().options.forEach((option) => {\n const matcherFn = this.autocompleteMatcherFn();\n const isMatchingOption = matcherFn ? matcherFn(value, option.value) : option.value === value;\n\n if (isMatchingOption) {\n option.select(false);\n this.autocompleteOptionSelected.emit(option.value);\n } else {\n option.deselect(false);\n this.autocompleteOptionDeselected.emit();\n }\n });\n\n this.searchChanged.emit(value);\n this.onChange(value);\n }\n\n /** @ignore */\n onChange: (value: string) => void = () => {\n /* noop function */\n };\n\n /** @ignore */\n onTouched: () => void = () => {\n for (const callback of this.onTouchedCallbacks) {\n callback();\n }\n };\n\n /** @ignore */\n writeValue(value: string): void {\n this.model.set(value);\n }\n\n /** @ignore */\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n /** @ignore */\n registerOnTouched(fn: () => void): void {\n this.onTouchedCallbacks.push(fn);\n }\n\n /** @ignore */\n setDisabledState(isDisabled: boolean): void {\n this.isDisabled.set(isDisabled);\n }\n}\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-textarea-field.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-textarea-field.js","sourceRoot":"","sources":["../../../../libs/watt/package/textarea-field/energinet-watt-textarea-field.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1,20 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- export { WattTextAreaFieldComponent } from './watt-textarea-field.component';
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/textarea-field/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { WattTextAreaFieldComponent } from './watt-textarea-field.component';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-textarea-field.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/textarea-field/watt-textarea-field.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,MAAM,EACN,UAAU,EACV,KAAK,EACL,KAAK,EACL,MAAM,EACN,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAqC,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;;AAgC3D,MAAM,OAAO,0BAA0B;IACrC,cAAc;IACN,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IACrC,WAAW,GAAG,KAAK,CAAC,QAAQ,sDAAe,CAAC;IAC5C,WAAW,GAAG,KAAK,iEAAU,CAAC;IAC9B,QAAQ,GAAG,KAAK,CAAC,KAAK,oDAAC,CAAC;IACxB,SAAS,GAAG,KAAK,CAAyB,IAAI,qDAAC,CAAC;IAChD,KAAK,GAAG,KAAK,2DAAU,CAAC;IACxB,KAAK,GAAG,KAAK,CAAC,K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AC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,2BAA2B,CAAC;4BACzD,KAAK,EAAE,IAAI;yBACZ;qBACF,YACS,qBAAqB,iBAEhB,iBAAiB,CAAC,IAAI,YAC3B;;;;;;;;;;;gBAWI,QACR;wBACJ,4BAA4B,EAAE,cAAc;wBAC5C,cAAc,EAAE,SAAS;wBACzB,eAAe,EAAE,UAAU;qBAC5B","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport {\n Component,\n forwardRef,\n ViewEncapsulation,\n inject,\n ElementRef,\n input,\n model,\n signal,\n booleanAttribute,\n} from '@angular/core';\nimport { ControlValueAccessor, FormControl, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nimport { WattFieldComponent } from '@energinet/watt/field';\n\n@Component({\n imports: [FormsModule, WattFieldComponent],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => WattTextAreaFieldComponent),\n multi: true,\n },\n ],\n selector: 'watt-textarea-field',\n styleUrls: ['./watt-textarea-field.component.scss'],\n encapsulation: ViewEncapsulation.None,\n template: `<watt-field [label]=\"label()\" [control]=\"formControl()\">\n <textarea\n [attr.placeholder]=\"placeholder()\"\n [value]=\"value()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.maxlength]=\"maxLength()\"\n (input)=\"onInput($event)\"\n ></textarea>\n <ng-content ngProjectAs=\"watt-field-hint\" select=\"watt-field-hint\" />\n <ng-content ngProjectAs=\"watt-field-error\" select=\"watt-field-error\" />\n </watt-field>`,\n host: {\n '[attr.watt-field-disabled]': 'isDisabled()',\n '[attr.small]': 'small()',\n '[attr.resize]': 'resize()',\n },\n})\nexport class WattTextAreaFieldComponent implements ControlValueAccessor {\n /** @ignore */\n private element = inject(ElementRef);\n formControl = input.required<FormControl>();\n placeholder = input<string>();\n required = input(false);\n maxLength = input<string | number | null>(null);\n label = input<string>();\n small = input(false, { transform: booleanAttribute });\n resize = input<'none' | 'horizontal' | 'vertical' | 'both'>('none');\n\n onInput(event: Event) {\n const target = event.target as HTMLTextAreaElement;\n this.value.set(target.value);\n }\n\n /** @ignore */\n value = model<string>('');\n\n /** @ignore */\n isDisabled = signal(false);\n\n /** @ignore */\n writeValue(value: string): void {\n this.value.set(value);\n }\n\n /** @ignore */\n registerOnChange(fn: (value: string) => void): void {\n this.value.subscribe(fn);\n }\n\n /** @ignore */\n registerOnTouched(fn: () => void): void {\n this.element.nativeElement.addEventListener('focusout', fn);\n }\n\n /** @ignore */\n setDisabledState(isDisabled: boolean): void {\n this.isDisabled.set(isDisabled);\n }\n}\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-toast.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-toast.js","sourceRoot":"","sources":["../../../../libs/watt/package/toast/energinet-watt-toast.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1,21 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- export { WattToastComponent } from './watt-toast.component';
20
- export { WattToastService } from './watt-toast.service';
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/toast/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,kBAAkB,EAAiB,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { WattToastComponent, WattToastType } from './watt-toast.component';\nexport { WattToastService } from './watt-toast.service';\nexport type { WattToastRef } from './watt-toast.component';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-toast.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/toast/watt-toast.component.ts","../../../../libs/watt/package/toast/watt-toast.component.html"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,6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\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n ViewEncapsulation,\n inject,\n} from '@angular/core';\nimport { MatSnackBarModule, MatSnackBarRef, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';\nimport { fromEvent, repeat, Subscription, takeUntil, tap, timer } from 'rxjs';\n\nimport { WattIconComponent } from '@energinet/watt/icon';\nimport { WattButtonComponent } from '@energinet/watt/button';\nimport { WattSpinnerComponent } from '@energinet/watt/spinner';\n\nexport type WattToastType = 'success' | 'info' | 'warning' | 'danger' | 'loading';\n\nexport interface WattToastConfig {\n duration?: number;\n type?: WattToastType;\n message: string;\n action?: (wattToastRef: WattToastRef) => void;\n actionLabel?: string;\n}\n\nexport type WattToastRef = MatSnackBarRef<WattToastComponent>;\n\n/**\n * Usage:\n * `import { WattToastService } from '@energinet/watt/toast';`\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n selector: 'watt-toast',\n styleUrls: ['./watt-toast.component.scss'],\n templateUrl: './watt-toast.component.html',\n imports: [MatSnackBarModule, WattButtonComponent, WattIconComponent, WattSpinnerComponent],\n})\nexport class WattToastComponent {\n private _config = inject(MAT_SNACK_BAR_DATA);\n private cd = inject(ChangeDetectorRef);\n private _matSnackBarRef = inject<MatSnackBarRef<WattToastComponent>>(MatSnackBarRef);\n private elementRef = inject(ElementRef);\n\n @HostBinding('class')\n get class() {\n this.cd.detectChanges(); // Make sure changes to the config will be detected\n return this.config.type ? `watt-toast watt-toast--${this.config.type}` : 'watt-toast';\n }\n\n /**\n * @ignore\n */\n config: WattToastConfig;\n\n /**\n * @ignore\n */\n matSnackBarRef: WattToastRef;\n\n /**\n * @ignore\n */\n private dissmissToastSubscription?: Subscription;\n\n constructor() {\n this.config = this._config;\n this.matSnackBarRef = this._matSnackBarRef;\n this.initDuration(this.config.duration);\n }\n\n /**\n * @ignore\n */\n onClose(): void {\n if (!this.matSnackBarRef) return;\n this.matSnackBarRef.dismiss();\n this.dissmissToastSubscription?.unsubscribe();\n }\n\n update(config: Partial<WattToastConfig>) {\n this.config = { ...this.config, ...config };\n if (this.dissmissToastSubscription) {\n this.dissmissToastSubscription.unsubscribe();\n }\n this.initDuration();\n this.cd.detectChanges();\n }\n\n /**\n * @ignore\n * Ensure the toast won't get dismissed when the user hovers over it.\n */\n private initDuration(duration = 5000): void {\n // When the type is loading, the developer is responsible for dismissing the toast manually.\n if (this.config.type === 'loading') return;\n\n const mouseEnter$ = fromEvent(this.elementRef.nativeElement, 'mouseenter');\n const mouseLeave$ = fromEvent(this.elementRef.nativeElement, 'mouseleave');\n\n this.dissmissToastSubscription = timer(duration)\n .pipe(\n tap(() => this.onClose()),\n takeUntil(mouseEnter$),\n repeat({ delay: () => mouseLeave$ })\n )\n .subscribe();\n }\n}\n","<!--\n@license\nCopyright 2020 Energinet DataHub A/S\n\nLicensed under the Apache License, Version 2.0 (the \"License2\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n<span>\n @if (config.type === \"loading\") {\n <watt-spinner [diameter]=\"24\" />\n }\n\n @if (config.type && config.type !== \"loading\") {\n <watt-icon [name]=\"config.type\" />\n }\n <p>{{ config.message }}</p>\n</span>\n<span class=\"toast__actions\">\n @if (config.action && config.actionLabel) {\n <watt-button variant=\"text\" (click)=\"config.action(matSnackBarRef)\">{{\n config.actionLabel\n }}</watt-button>\n }\n\n @if (config.type !== \"loading\") {\n <watt-button data-testid=\"dismiss\" variant=\"icon\" icon=\"close\" (click)=\"onClose()\" />\n }\n</span>\n"]}
@@ -1,51 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- import { Injectable, inject } from '@angular/core';
20
- import { MatSnackBar } from '@angular/material/snack-bar';
21
- import { WattToastComponent } from './watt-toast.component';
22
- import * as i0 from "@angular/core";
23
- export class WattToastService {
24
- _snackBar = inject(MatSnackBar);
25
- ref;
26
- open(config) {
27
- this.ref = this._snackBar.openFromComponent(WattToastComponent, {
28
- data: config,
29
- });
30
- return this.ref;
31
- }
32
- update(config) {
33
- if (!this.ref)
34
- return;
35
- this.ref.instance.update(config);
36
- }
37
- dismiss() {
38
- if (!this.ref)
39
- return;
40
- this.ref.dismiss();
41
- }
42
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
43
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattToastService, providedIn: 'root' });
44
- }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattToastService, decorators: [{
46
- type: Injectable,
47
- args: [{
48
- providedIn: 'root',
49
- }]
50
- }] });
51
- //# sourceMappingURL=watt-toast.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-toast.service.js","sourceRoot":"","sources":["../../../../libs/watt/package/toast/watt-toast.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,WAAW,EAAkB,MAAM,6BAA6B,CAAC;AAE1E,OAAO,EAAE,kBAAkB,EAAmB,MAAM,wBAAwB,CAAC;;AAK7E,MAAM,OAAO,gBAAgB;IACV,SAAS,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;IACzC,GAAG,CAAsC;IAEjD,IAAI,CAAC,MAAuB;QAC1B,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,kBAAkB,EAAE;YAC9D,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAED,MAAM,CAAC,MAAgC;QACrC,IAAI,CAAC,IAAI,CAAC,GAAG;YAAE,OAAO;QACtB,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAED,OAAO;QACL,IAAI,CAAC,IAAI,CAAC,GAAG;YAAE,OAAO;QACtB,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;IACrB,CAAC;wGAnBU,gBAAgB;4GAAhB,gBAAgB,cAFf,MAAM;;4FAEP,gBAAgB;kBAH5B,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Injectable, inject } from '@angular/core';\nimport { MatSnackBar, MatSnackBarRef } from '@angular/material/snack-bar';\n\nimport { WattToastComponent, WattToastConfig } from './watt-toast.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class WattToastService {\n private readonly _snackBar = inject(MatSnackBar);\n private ref?: MatSnackBarRef<WattToastComponent>;\n\n open(config: WattToastConfig): MatSnackBarRef<WattToastComponent> {\n this.ref = this._snackBar.openFromComponent(WattToastComponent, {\n data: config,\n });\n return this.ref;\n }\n\n update(config: Partial<WattToastConfig>): void {\n if (!this.ref) return;\n this.ref.instance.update(config);\n }\n\n dismiss() {\n if (!this.ref) return;\n this.ref.dismiss();\n }\n}\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-tooltip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-tooltip.js","sourceRoot":"","sources":["../../../../libs/watt/package/tooltip/energinet-watt-tooltip.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1,20 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- export { WattTooltipDirective, } from './watt-tooltip.directive';
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/tooltip/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,oBAAoB,GAGrB,MAAM,0BAA0B,CAAC","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport {\n WattTooltipDirective,\n wattTooltipPosition,\n wattTooltipVariant,\n} from './watt-tooltip.directive';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-tooltip.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/tooltip/watt-tooltip.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,SAAS,EACT,QAAQ,EACR,UAAU,EACV,MAAM,EACN,UAAU,EACV,MAAM,EACN,KAAK,EACL,SAAS,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAY,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BA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a;qBACzB","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport {\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n Renderer2,\n} from '@angular/core';\nimport { createPopper, Instance } from '@popperjs/core';\nimport { Platform } from '@angular/cdk/platform';\n\nimport { wattTooltipPosition, wattTooltipVariant } from './watt-tooltip.directive';\nimport { FocusMonitor } from '@angular/cdk/a11y';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\ntype unlistenerFunction = () => void;\n\n@Component({\n template: `\n {{ text() }}\n <div #arrow class=\"arrow\"></div>\n `,\n selector: 'watt-tooltip',\n styleUrls: ['./watt-tooltip.component.scss'],\n host: {\n '[id]': 'id',\n '[attr.role]': '\"tooltip\"',\n '[class]': 'hostClass()',\n },\n})\nexport class WattTooltipComponent {\n static nextId = 0;\n\n text = input.required<string>();\n target = input.required<HTMLElement>();\n position = input.required<wattTooltipPosition>();\n variant = input.required<wattTooltipVariant>();\n\n readonly id = `watt-tooltip-${WattTooltipComponent.nextId++}`; // used by aria-describedby\n hostClass = computed(() => `tooltip-${this.variant()}`);\n\n private element: HTMLElement = inject(ElementRef).nativeElement;\n private platform = inject(Platform);\n private renderer: Renderer2 = inject(Renderer2);\n private focusMonitor: FocusMonitor = inject(FocusMonitor);\n private destroyRef = inject(DestroyRef);\n\n private listeners: unlistenerFunction[] = [];\n private showClass = 'show';\n private popper: Instance | null = null;\n\n constructor() {\n this.destroyRef.onDestroy(() => {\n this.popper?.destroy();\n this.listeners.forEach((listener) => listener());\n });\n\n effect(() => {\n this.setupEventListeners();\n\n this.focusMonitor\n .monitor(this.target(), true)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((origin) => {\n if (!origin) {\n this.hide();\n } else if (origin === 'keyboard') {\n this.show();\n }\n });\n });\n }\n\n private setupEventListeners(): void {\n // The mouse events shouldn't be bound on mobile devices, because they can prevent the\n // first tap from firing its click event or can cause the tooltip to open for clicks.\n if (this.platformSupportsMouseEvents()) {\n const mouseEnter = this.renderer.listen(this.target(), 'mouseenter', this.show.bind(this));\n const mouseLeave = this.renderer.listen(this.target(), 'mouseleave', this.hide.bind(this));\n const wheel = this.renderer.listen(this.target(), 'wheel', this.hide.bind(this));\n this.listeners.push(mouseEnter, mouseLeave, wheel);\n } else {\n const touchStart = this.renderer.listen(this.target(), 'touchstart', this.show.bind(this));\n const touchEnd = this.renderer.listen(this.target(), 'touchend', this.hide.bind(this));\n const touchCancel = this.renderer.listen(this.target(), 'touchcancel', this.hide.bind(this));\n this.listeners.push(touchStart, touchEnd, touchCancel);\n }\n }\n\n private show(): void {\n if (!this.popper) {\n this.popper = createPopper(this.target(), this.element, {\n placement: this.position(),\n });\n } else {\n this.popper.forceUpdate();\n }\n this.renderer.addClass(this.element, this.showClass);\n }\n\n private hide(): void {\n this.renderer.removeClass(this.element, this.showClass);\n }\n\n private platformSupportsMouseEvents() {\n return !this.platform.IOS && !this.platform.ANDROID;\n }\n}\n"]}
@@ -1,67 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- import { computed, DestroyRef, Directive, effect, ElementRef, inject, input, ViewContainerRef, } from '@angular/core';
20
- import { WattTooltipComponent } from './watt-tooltip.component';
21
- import * as i0 from "@angular/core";
22
- export class WattTooltipDirective {
23
- text = input('', ...(ngDevMode ? [{ debugName: "text", alias: 'wattTooltip' }] : [{ alias: 'wattTooltip' }]));
24
- position = input('top', ...(ngDevMode ? [{ debugName: "position", alias: 'wattTooltipPosition' }] : [{ alias: 'wattTooltipPosition' }]));
25
- variant = input('dark', ...(ngDevMode ? [{ debugName: "variant", alias: 'wattTooltipVariant' }] : [{ alias: 'wattTooltipVariant' }]));
26
- element = inject(ElementRef).nativeElement;
27
- viewContainerRef = inject(ViewContainerRef);
28
- destroyRef = inject(DestroyRef);
29
- tooltip = computed(() => this.createTooltipComponent(), ...(ngDevMode ? [{ debugName: "tooltip" }] : []));
30
- constructor() {
31
- // Setup effect to manage tooltip component lifecycle
32
- effect(() => {
33
- // Access the tooltip computed to create/update it when inputs change
34
- const tooltipComponent = this.tooltip();
35
- // Cleanup on destroy
36
- this.destroyRef.onDestroy(() => {
37
- tooltipComponent?.destroy();
38
- this.element.removeAttribute('aria-describedby');
39
- });
40
- });
41
- }
42
- createTooltipComponent() {
43
- if (!this.text())
44
- return null;
45
- // Create the component
46
- const tooltipComponent = this.viewContainerRef.createComponent(WattTooltipComponent);
47
- // Get the component instance
48
- const instance = tooltipComponent.instance;
49
- // Set up bindings
50
- tooltipComponent.setInput('text', this.text());
51
- tooltipComponent.setInput('target', this.element);
52
- tooltipComponent.setInput('position', this.position());
53
- tooltipComponent.setInput('variant', this.variant());
54
- this.element.setAttribute('aria-describedby', instance.id);
55
- return tooltipComponent;
56
- }
57
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
58
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: WattTooltipDirective, isStandalone: true, selector: "[wattTooltip]", inputs: { text: { classPropertyName: "text", publicName: "wattTooltip", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "wattTooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "wattTooltipVariant", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["wattTooltip"], ngImport: i0 });
59
- }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattTooltipDirective, decorators: [{
61
- type: Directive,
62
- args: [{
63
- selector: '[wattTooltip]',
64
- exportAs: 'wattTooltip',
65
- }]
66
- }], ctorParameters: () => [], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "wattTooltip", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "wattTooltipPosition", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "wattTooltipVariant", required: false }] }] } });
67
- //# sourceMappingURL=watt-tooltip.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-tooltip.directive.js","sourceRoot":"","sources":["../../../../libs/watt/package/tooltip/watt-tooltip.directive.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,QAAQ,EACR,UAAU,EACV,SAAS,EACT,MAAM,EACN,UAAU,EACV,MAAM,EACN,KAAK,EACL,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;;AAkBhE,MAAM,OAAO,oBAAoB;IACtB,IAAI,GAAG,KAAK,CAAS,EAAE,wCAAI,KAAK,EAAE,aAAa,OAAtB,EAAE,KAAK,EAAE,aAAa,EAAE,GAAC,CAAC;IACnD,QAAQ,GAAG,KAAK,CAAsB,KAAK,4CAAI,KAAK,EAAE,qBAAqB,O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C,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvD,gBAAgB,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAErD,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,kBAAkB,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;QAE3D,OAAO,gBAAgB,CAAC;IAC1B,CAAC;wGA1CU,oBAAoB;4FAApB,oBAAoB;;4FAApB,oBAAoB;kBAJhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,eAAe;oBACzB,QAAQ,EAAE,aAAa;iBACxB","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport {\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n input,\n ViewContainerRef,\n} from '@angular/core';\n\nimport { WattTooltipComponent } from './watt-tooltip.component';\n\nexport type wattTooltipPosition =\n | 'top-start'\n | 'top'\n | 'top-end'\n | 'right'\n | 'bottom-start'\n | 'bottom'\n | 'bottom-end'\n | 'left';\n\nexport type wattTooltipVariant = 'dark' | 'light';\n\n@Directive({\n selector: '[wattTooltip]',\n exportAs: 'wattTooltip',\n})\nexport class WattTooltipDirective {\n readonly text = input<string>('', { alias: 'wattTooltip' });\n readonly position = input<wattTooltipPosition>('top', { alias: 'wattTooltipPosition' });\n readonly variant = input<wattTooltipVariant>('dark', { alias: 'wattTooltipVariant' });\n\n private readonly element = inject(ElementRef).nativeElement;\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly destroyRef = inject(DestroyRef);\n private tooltip = computed(() => this.createTooltipComponent());\n\n constructor() {\n // Setup effect to manage tooltip component lifecycle\n effect(() => {\n // Access the tooltip computed to create/update it when inputs change\n const tooltipComponent = this.tooltip();\n\n // Cleanup on destroy\n this.destroyRef.onDestroy(() => {\n tooltipComponent?.destroy();\n this.element.removeAttribute('aria-describedby');\n });\n });\n }\n\n private createTooltipComponent() {\n if (!this.text()) return null;\n\n // Create the component\n const tooltipComponent = this.viewContainerRef.createComponent(WattTooltipComponent);\n\n // Get the component instance\n const instance = tooltipComponent.instance;\n\n // Set up bindings\n tooltipComponent.setInput('text', this.text());\n tooltipComponent.setInput('target', this.element);\n tooltipComponent.setInput('position', this.position());\n tooltipComponent.setInput('variant', this.variant());\n\n this.element.setAttribute('aria-describedby', instance.id);\n\n return tooltipComponent;\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"css-custom-properties.service.js","sourceRoot":"","sources":["../../../../../libs/watt/package/utils/css/css-custom-properties.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AAEZ,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;;AAG7D,MAAM,OAAO,8BAA8B;IACxB,QAAQ,GAAG,MAAM,CAAW,QAAQ,CAAC,CAAC;IAEvD,IAAY,WAAW;QACrB,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC;IACvC,CAAC;IAEM,gBAAgB,CAAC,IAAY;QAClC,OAAO,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACnE,CAAC;IAEM,gBAAgB,CAAC,IAAY,EAAE,KAAa;QACjD,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC;wGAbU,8BAA8B;4GAA9B,8BAA8B,cADjB,MAAM;;4FACnB,8BAA8B;kBAD1C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\n\nimport { Injectable, DOCUMENT, inject } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class WattCssCustomPropertiesService {\n private readonly document = inject<Document>(DOCUMENT);\n\n private get rootElement() {\n return this.document.documentElement;\n }\n\n public getPropertyValue(name: string): string {\n return getComputedStyle(this.rootElement).getPropertyValue(name);\n }\n\n public setPropertyValue(name: string, value: string): void {\n this.rootElement.style.setProperty(name, value);\n }\n}\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-utils-css.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-utils-css.js","sourceRoot":"","sources":["../../../../../libs/watt/package/utils/css/energinet-watt-utils-css.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1,20 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- export * from './css-custom-properties.service';
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/watt/package/utils/css/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,cAAc,iCAAiC,CAAC","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport * from './css-custom-properties.service';\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-utils-intersection-observer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-utils-intersection-observer.js","sourceRoot":"","sources":["../../../../../libs/watt/package/utils/intersection-observer/energinet-watt-utils-intersection-observer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1,20 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- export { WattIntersectionObserverService } from './watt-intersection-observer.service';
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/watt/package/utils/intersection-observer/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { WattIntersectionObserverService } from './watt-intersection-observer.service';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-intersection-observer.service.js","sourceRoot":"","sources":["../../../../../libs/watt/package/utils/intersection-observer/watt-intersection-observer.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;AAEjD;;;;;;GAMG;AAEH,MAAM,OAAO,+BAA+B;IAClC,oBAAoB,CAAwB;IAC5C,YAAY,GAAG,IAAI,OAAO,EAA6B,CAAC;IAEhE;QACE,IAAI,MAAM,CAAC,oBAAoB,EAAE,CAAC;YAChC,IAAI,CAAC,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC/D,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;oBAC5B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAChC,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,OAAO,CAAC,OAAgB;QACtB,IAAI,CAAC,oBAAoB,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC,IAAI,CAC1C,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,OAAO,CAAC,EAC3C,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC,CAC9D,CAAC;IACJ,CAAC;wGAzBU,+BAA+B;4GAA/B,+BAA+B,cADlB,MAAM;;4FACnB,+BAA+B;kBAD3C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Injectable } from '@angular/core';\nimport { filter, finalize, Subject } from 'rxjs';\n\n/**\n * Service for observing changes in the intersection of a target element with\n * the viewport.\n *\n * Usage:\n * `import { WattIntersectionObserverService } from '@energinet/watt/intersection-observer';`\n */\n@Injectable({ providedIn: 'root' })\nexport class WattIntersectionObserverService {\n private intersectionObserver?: IntersectionObserver;\n private entrySubject = new Subject<IntersectionObserverEntry>();\n\n constructor() {\n if (window.IntersectionObserver) {\n this.intersectionObserver = new IntersectionObserver((entries) => {\n for (const entry of entries) {\n this.entrySubject.next(entry);\n }\n });\n }\n }\n\n /**\n * Add an element to be observed, returning an observable that emits\n * whenever that element enters or leaves the viewport. Element will\n * automatically be unobserved when the observable is unsubscribed.\n */\n observe(element: Element) {\n this.intersectionObserver?.observe(element);\n return this.entrySubject.asObservable().pipe(\n filter((entry) => entry.target === element),\n finalize(() => this.intersectionObserver?.unobserve(element))\n );\n }\n}\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-utils-resize-observer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-utils-resize-observer.js","sourceRoot":"","sources":["../../../../../libs/watt/package/utils/resize-observer/energinet-watt-utils-resize-observer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1,21 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- export { WattResizeObserverDirective } from './watt-resize-observer.directive';
20
- export { WattResizeObserverService } from './watt-resize-observer.service';
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/watt/package/utils/resize-observer/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { WattResizeObserverDirective } from './watt-resize-observer.directive';\nexport { WattResizeObserverService } from './watt-resize-observer.service';\n"]}
@@ -1,53 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- import { Directive, ElementRef, EventEmitter, Output, inject } from '@angular/core';
20
- import { WattResizeObserverService } from './watt-resize-observer.service';
21
- import * as i0 from "@angular/core";
22
- /**
23
- * A directive for subscribing to changes to the size of an element.
24
- * The `resize` event emits initially and then everytime the element is resized.
25
- *
26
- * Usage:
27
- * `import { WattResizeObserverDirective } from '@energinet/watt/resize-observer';`
28
- */
29
- export class WattResizeObserverDirective {
30
- el = inject(ElementRef);
31
- resizeObserverService = inject(WattResizeObserverService);
32
- // The `resize` event only natively exists on `window`.
33
- // eslint-disable-next-line @angular-eslint/no-output-native
34
- resize = new EventEmitter();
35
- subscription;
36
- constructor() {
37
- this.subscription = this.resizeObserverService
38
- .observe(this.el.nativeElement)
39
- .subscribe((entry) => this.resize.emit(entry));
40
- }
41
- ngOnDestroy() {
42
- this.subscription.unsubscribe();
43
- }
44
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattResizeObserverDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
45
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: WattResizeObserverDirective, isStandalone: true, selector: "[wattResizeObserver]", outputs: { resize: "resize" }, ngImport: i0 });
46
- }
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattResizeObserverDirective, decorators: [{
48
- type: Directive,
49
- args: [{ selector: '[wattResizeObserver]' }]
50
- }], ctorParameters: () => [], propDecorators: { resize: [{
51
- type: Output
52
- }] } });
53
- //# sourceMappingURL=watt-resize-observer.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-resize-observer.directive.js","sourceRoot":"","sources":["../../../../../libs/watt/package/utils/resize-observer/watt-resize-observer.directive.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAa,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE/F,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;;AAE3E;;;;;;GAMG;AAEH,MAAM,OAAO,2BAA2B;IAC9B,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IACxB,qBAAqB,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAC;IAClE,uDAAuD;IACvD,4DAA4D;IAClD,MAAM,GAAsC,IAAI,YAAY,EAAE,CAAC;IAEjE,YAAY,CAAe;IAEnC;QACE,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,qBAAqB;aAC3C,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC;aAC9B,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACnD,CAAC;IAEM,WAAW;QAChB,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;IAClC,CAAC;wGAjBU,2BAA2B;4FAA3B,2BAA2B;;4FAA3B,2BAA2B;kBADvC,SAAS;mBAAC,EAAE,QAAQ,EAAE,sBAAsB,EAAE;;sBAM5C,MAAM","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Directive, ElementRef, EventEmitter, OnDestroy, Output, inject } from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { WattResizeObserverService } from './watt-resize-observer.service';\n\n/**\n * A directive for subscribing to changes to the size of an element.\n * The `resize` event emits initially and then everytime the element is resized.\n *\n * Usage:\n * `import { WattResizeObserverDirective } from '@energinet/watt/resize-observer';`\n */\n@Directive({ selector: '[wattResizeObserver]' })\nexport class WattResizeObserverDirective implements OnDestroy {\n private el = inject(ElementRef);\n private resizeObserverService = inject(WattResizeObserverService);\n // The `resize` event only natively exists on `window`.\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() resize: EventEmitter<ResizeObserverEntry> = new EventEmitter();\n\n private subscription: Subscription;\n\n constructor() {\n this.subscription = this.resizeObserverService\n .observe(this.el.nativeElement)\n .subscribe((entry) => this.resize.emit(entry));\n }\n\n public ngOnDestroy(): void {\n this.subscription.unsubscribe();\n }\n}\n"]}