@energinet/watt 4.2.15-alpha.0 → 4.2.15

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 (842) hide show
  1. package/badge/energinet-watt-badge.d.ts +5 -0
  2. package/badge/index.d.ts +17 -0
  3. package/badge/watt-badge.component.d.ts +15 -0
  4. package/breadcrumbs/energinet-watt-breadcrumbs.d.ts +5 -0
  5. package/breadcrumbs/index.d.ts +17 -0
  6. package/{types/energinet-watt-breadcrumbs.d.ts → breadcrumbs/watt-breadcrumbs.component.d.ts} +7 -10
  7. package/button/energinet-watt-button.d.ts +5 -0
  8. package/button/index.d.ts +17 -0
  9. package/button/watt-button.component.d.ts +22 -0
  10. package/card/energinet-watt-card.d.ts +5 -0
  11. package/card/index.d.ts +18 -0
  12. package/card/watt-card-title.component.d.ts +6 -0
  13. package/card/watt-card.component.d.ts +15 -0
  14. package/checkbox/energinet-watt-checkbox.d.ts +5 -0
  15. package/checkbox/index.d.ts +17 -0
  16. package/checkbox/watt-checkbox.component.d.ts +17 -0
  17. package/chip/energinet-watt-chip.d.ts +5 -0
  18. package/chip/index.d.ts +23 -0
  19. package/chip/watt-action-chip.component.d.ts +8 -0
  20. package/chip/watt-chip.component.d.ts +8 -0
  21. package/chip/watt-chip.directive.d.ts +16 -0
  22. package/chip/watt-date-chip.component.d.ts +12 -0
  23. package/chip/watt-date-range-chip.component.d.ts +50 -0
  24. package/chip/watt-filter-chip.component.d.ts +13 -0
  25. package/chip/watt-menu-chip.component.d.ts +13 -0
  26. package/clipboard/energinet-watt-clipboard.d.ts +5 -0
  27. package/clipboard/index.d.ts +18 -0
  28. package/clipboard/watt-clipboard-intl.service.d.ts +7 -0
  29. package/clipboard/watt-copy-to-clipboard.directive.d.ts +12 -0
  30. package/code/energinet-watt-code.d.ts +5 -0
  31. package/code/index.d.ts +19 -0
  32. package/code/watt-code-intl.service.d.ts +6 -0
  33. package/code/watt-code.component.d.ts +45 -0
  34. package/code/watt-code.worker.token.d.ts +18 -0
  35. package/core/breakpoints/breakpoints-observer.d.ts +21 -0
  36. package/{types/energinet-watt-core-breakpoints.d.ts → core/breakpoints/breakpoints.d.ts} +2 -27
  37. package/core/breakpoints/energinet-watt-core-breakpoints.d.ts +5 -0
  38. package/core/breakpoints/index.d.ts +18 -0
  39. package/core/color/color-helper.service.d.ts +10 -0
  40. package/{types/energinet-watt-core-color.d.ts → core/color/colors.d.ts} +2 -15
  41. package/core/color/energinet-watt-core-color.d.ts +5 -0
  42. package/{types/energinet-watt.d.ts → core/color/index.d.ts} +2 -3
  43. package/core/date/dayjs.d.ts +22 -0
  44. package/core/date/energinet-watt-core-date.d.ts +5 -0
  45. package/core/date/index.d.ts +23 -0
  46. package/core/date/watt-danish-datetime.providers.d.ts +1 -0
  47. package/core/date/watt-date-adapter.d.ts +31 -0
  48. package/core/date/watt-date-range.d.ts +25 -0
  49. package/core/date/watt-date.pipe.d.ts +28 -0
  50. package/core/date/watt-format-date.d.ts +11 -0
  51. package/core/date/watt-locale.service.d.ts +11 -0
  52. package/data/energinet-watt-data.d.ts +5 -0
  53. package/data/index.d.ts +20 -0
  54. package/data/watt-data-actions.component.d.ts +5 -0
  55. package/data/watt-data-filters.component.d.ts +5 -0
  56. package/data/watt-data-intl.service.d.ts +15 -0
  57. package/data/watt-data-table.component.d.ts +34 -0
  58. package/datetime-field/energinet-watt-datetime-field.d.ts +5 -0
  59. package/datetime-field/index.d.ts +17 -0
  60. package/datetime-field/watt-datetime-field.component.d.ts +39 -0
  61. package/description-list/energinet-watt-description-list.d.ts +5 -0
  62. package/description-list/index.d.ts +17 -0
  63. package/description-list/watt-description-list-item.component.d.ts +27 -0
  64. package/description-list/watt-description-list.component.d.ts +20 -0
  65. package/drawer/energinet-watt-drawer.d.ts +5 -0
  66. package/drawer/index.d.ts +21 -0
  67. package/drawer/watt-drawer-actions.component.d.ts +5 -0
  68. package/drawer/watt-drawer-content.component.d.ts +5 -0
  69. package/drawer/watt-drawer-heading.component.d.ts +5 -0
  70. package/drawer/watt-drawer-topbar.component.d.ts +5 -0
  71. package/{types/energinet-watt-drawer.d.ts → drawer/watt-drawer.component.d.ts} +28 -35
  72. package/dropdown/energinet-watt-dropdown.d.ts +5 -0
  73. package/dropdown/index.d.ts +19 -0
  74. package/dropdown/watt-dropdown-option.d.ts +28 -0
  75. package/dropdown/watt-dropdown-value.d.ts +17 -0
  76. package/dropdown/watt-dropdown.component.d.ts +133 -0
  77. package/dropzone/energinet-watt-dropzone.d.ts +5 -0
  78. package/dropzone/index.d.ts +19 -0
  79. package/dropzone/watt-dropzone-intl.d.ts +11 -0
  80. package/dropzone/watt-dropzone-validators.d.ts +27 -0
  81. package/dropzone/watt-dropzone.d.ts +31 -0
  82. package/empty-state/energinet-watt-empty-state.d.ts +5 -0
  83. package/empty-state/icons/explore.d.ts +5 -0
  84. package/empty-state/icons/no-results.d.ts +5 -0
  85. package/empty-state/icons/not-found.d.ts +5 -0
  86. package/empty-state/icons/power.d.ts +5 -0
  87. package/empty-state/index.d.ts +21 -0
  88. package/empty-state/watt-empty-state.component.d.ts +16 -0
  89. package/energinet-watt.d.ts +5 -0
  90. package/esm2022/badge/energinet-watt-badge.js +5 -0
  91. package/esm2022/badge/energinet-watt-badge.js.map +1 -0
  92. package/esm2022/badge/index.js +20 -0
  93. package/esm2022/badge/index.js.map +1 -0
  94. package/{fesm2022/energinet-watt-badge.mjs → esm2022/badge/watt-badge.component.js} +4 -30
  95. package/esm2022/badge/watt-badge.component.js.map +1 -0
  96. package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js +5 -0
  97. package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js.map +1 -0
  98. package/esm2022/breadcrumbs/index.js +20 -0
  99. package/esm2022/breadcrumbs/index.js.map +1 -0
  100. package/{fesm2022/energinet-watt-breadcrumbs.mjs → esm2022/breadcrumbs/watt-breadcrumbs.component.js} +10 -36
  101. package/esm2022/breadcrumbs/watt-breadcrumbs.component.js.map +1 -0
  102. package/esm2022/button/energinet-watt-button.js +5 -0
  103. package/esm2022/button/energinet-watt-button.js.map +1 -0
  104. package/esm2022/button/index.js +20 -0
  105. package/esm2022/button/index.js.map +1 -0
  106. package/{fesm2022/energinet-watt-button.mjs → esm2022/button/watt-button.component.js} +9 -35
  107. package/esm2022/button/watt-button.component.js.map +1 -0
  108. package/esm2022/card/energinet-watt-card.js +5 -0
  109. package/esm2022/card/energinet-watt-card.js.map +1 -0
  110. package/esm2022/card/index.js +21 -0
  111. package/esm2022/card/index.js.map +1 -0
  112. package/esm2022/card/watt-card-title.component.js +33 -0
  113. package/esm2022/card/watt-card-title.component.js.map +1 -0
  114. package/{fesm2022/energinet-watt-card.mjs → esm2022/card/watt-card.component.js} +7 -63
  115. package/esm2022/card/watt-card.component.js.map +1 -0
  116. package/esm2022/checkbox/energinet-watt-checkbox.js +5 -0
  117. package/esm2022/checkbox/energinet-watt-checkbox.js.map +1 -0
  118. package/esm2022/checkbox/index.js +20 -0
  119. package/esm2022/checkbox/index.js.map +1 -0
  120. package/{fesm2022/energinet-watt-checkbox.mjs → esm2022/checkbox/watt-checkbox.component.js} +6 -32
  121. package/esm2022/checkbox/watt-checkbox.component.js.map +1 -0
  122. package/esm2022/chip/energinet-watt-chip.js +5 -0
  123. package/esm2022/chip/energinet-watt-chip.js.map +1 -0
  124. package/esm2022/chip/index.js +26 -0
  125. package/esm2022/chip/index.js.map +1 -0
  126. package/esm2022/chip/watt-action-chip.component.js +68 -0
  127. package/esm2022/chip/watt-action-chip.component.js.map +1 -0
  128. package/esm2022/chip/watt-chip.component.js +55 -0
  129. package/esm2022/chip/watt-chip.component.js.map +1 -0
  130. package/esm2022/chip/watt-chip.directive.js +92 -0
  131. package/esm2022/chip/watt-chip.directive.js.map +1 -0
  132. package/esm2022/chip/watt-date-chip.component.js +104 -0
  133. package/esm2022/chip/watt-date-chip.component.js.map +1 -0
  134. package/esm2022/chip/watt-date-range-chip.component.js +213 -0
  135. package/esm2022/chip/watt-date-range-chip.component.js.map +1 -0
  136. package/esm2022/chip/watt-filter-chip.component.js +82 -0
  137. package/esm2022/chip/watt-filter-chip.component.js.map +1 -0
  138. package/esm2022/chip/watt-menu-chip.component.js +80 -0
  139. package/esm2022/chip/watt-menu-chip.component.js.map +1 -0
  140. package/esm2022/clipboard/energinet-watt-clipboard.js +5 -0
  141. package/esm2022/clipboard/energinet-watt-clipboard.js.map +1 -0
  142. package/esm2022/clipboard/index.js +21 -0
  143. package/esm2022/clipboard/index.js.map +1 -0
  144. package/esm2022/clipboard/watt-clipboard-intl.service.js +31 -0
  145. package/esm2022/clipboard/watt-clipboard-intl.service.js.map +1 -0
  146. package/{fesm2022/energinet-watt-clipboard.mjs → esm2022/clipboard/watt-copy-to-clipboard.directive.js} +7 -61
  147. package/esm2022/clipboard/watt-copy-to-clipboard.directive.js.map +1 -0
  148. package/esm2022/code/energinet-watt-code.js +5 -0
  149. package/esm2022/code/energinet-watt-code.js.map +1 -0
  150. package/esm2022/code/index.js +22 -0
  151. package/esm2022/code/index.js.map +1 -0
  152. package/esm2022/code/watt-code-intl.service.js +30 -0
  153. package/esm2022/code/watt-code-intl.service.js.map +1 -0
  154. package/{fesm2022/energinet-watt-code.mjs → esm2022/code/watt-code.component.js} +11 -83
  155. package/esm2022/code/watt-code.component.js.map +1 -0
  156. package/esm2022/code/watt-code.worker.token.js +21 -0
  157. package/esm2022/code/watt-code.worker.token.js.map +1 -0
  158. package/esm2022/core/breakpoints/breakpoints-observer.js +41 -0
  159. package/esm2022/core/breakpoints/breakpoints-observer.js.map +1 -0
  160. package/esm2022/core/breakpoints/breakpoints.js +31 -0
  161. package/esm2022/core/breakpoints/breakpoints.js.map +1 -0
  162. package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js +5 -0
  163. package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js.map +1 -0
  164. package/esm2022/core/breakpoints/index.js +21 -0
  165. package/esm2022/core/breakpoints/index.js.map +1 -0
  166. package/esm2022/core/color/color-helper.service.js +41 -0
  167. package/esm2022/core/color/color-helper.service.js.map +1 -0
  168. package/esm2022/core/color/colors.js +58 -0
  169. package/esm2022/core/color/colors.js.map +1 -0
  170. package/esm2022/core/color/energinet-watt-core-color.js +5 -0
  171. package/esm2022/core/color/energinet-watt-core-color.js.map +1 -0
  172. package/esm2022/core/color/index.js +21 -0
  173. package/esm2022/core/color/index.js.map +1 -0
  174. package/esm2022/core/date/dayjs.js +34 -0
  175. package/esm2022/core/date/dayjs.js.map +1 -0
  176. package/esm2022/core/date/energinet-watt-core-date.js +5 -0
  177. package/esm2022/core/date/energinet-watt-core-date.js.map +1 -0
  178. package/esm2022/core/date/index.js +25 -0
  179. package/esm2022/core/date/index.js.map +1 -0
  180. package/esm2022/core/date/watt-danish-datetime.providers.js +31 -0
  181. package/esm2022/core/date/watt-danish-datetime.providers.js.map +1 -0
  182. package/esm2022/core/date/watt-date-adapter.js +43 -0
  183. package/esm2022/core/date/watt-date-adapter.js.map +1 -0
  184. package/esm2022/core/date/watt-date-range.js +2 -0
  185. package/esm2022/core/date/watt-date-range.js.map +1 -0
  186. package/esm2022/core/date/watt-date.pipe.js +38 -0
  187. package/esm2022/core/date/watt-date.pipe.js.map +1 -0
  188. package/esm2022/core/date/watt-format-date.js +50 -0
  189. package/esm2022/core/date/watt-format-date.js.map +1 -0
  190. package/esm2022/core/date/watt-locale.service.js +48 -0
  191. package/esm2022/core/date/watt-locale.service.js.map +1 -0
  192. package/esm2022/data/energinet-watt-data.js +5 -0
  193. package/esm2022/data/energinet-watt-data.js.map +1 -0
  194. package/esm2022/data/index.js +23 -0
  195. package/esm2022/data/index.js.map +1 -0
  196. package/esm2022/data/watt-data-actions.component.js +32 -0
  197. package/esm2022/data/watt-data-actions.component.js.map +1 -0
  198. package/esm2022/data/watt-data-filters.component.js +32 -0
  199. package/esm2022/data/watt-data-filters.component.js.map +1 -0
  200. package/esm2022/data/watt-data-intl.service.js +39 -0
  201. package/esm2022/data/watt-data-intl.service.js.map +1 -0
  202. package/{fesm2022/energinet-watt-data.mjs → esm2022/data/watt-data-table.component.js} +12 -134
  203. package/esm2022/data/watt-data-table.component.js.map +1 -0
  204. package/esm2022/datetime-field/energinet-watt-datetime-field.js +5 -0
  205. package/esm2022/datetime-field/energinet-watt-datetime-field.js.map +1 -0
  206. package/esm2022/datetime-field/index.js +20 -0
  207. package/esm2022/datetime-field/index.js.map +1 -0
  208. package/{fesm2022/energinet-watt-datetime-field.mjs → esm2022/datetime-field/watt-datetime-field.component.js} +14 -40
  209. package/esm2022/datetime-field/watt-datetime-field.component.js.map +1 -0
  210. package/esm2022/description-list/energinet-watt-description-list.js +5 -0
  211. package/esm2022/description-list/energinet-watt-description-list.js.map +1 -0
  212. package/esm2022/description-list/index.js +20 -0
  213. package/esm2022/description-list/index.js.map +1 -0
  214. package/esm2022/description-list/watt-description-list-item.component.js +49 -0
  215. package/esm2022/description-list/watt-description-list-item.component.js.map +1 -0
  216. package/{fesm2022/energinet-watt-description-list.mjs → esm2022/description-list/watt-description-list.component.js} +8 -77
  217. package/esm2022/description-list/watt-description-list.component.js.map +1 -0
  218. package/esm2022/drawer/energinet-watt-drawer.js +5 -0
  219. package/esm2022/drawer/energinet-watt-drawer.js.map +1 -0
  220. package/esm2022/drawer/index.js +24 -0
  221. package/esm2022/drawer/index.js.map +1 -0
  222. package/esm2022/drawer/watt-drawer-actions.component.js +29 -0
  223. package/esm2022/drawer/watt-drawer-actions.component.js.map +1 -0
  224. package/esm2022/drawer/watt-drawer-content.component.js +29 -0
  225. package/esm2022/drawer/watt-drawer-content.component.js.map +1 -0
  226. package/esm2022/drawer/watt-drawer-heading.component.js +29 -0
  227. package/esm2022/drawer/watt-drawer-heading.component.js.map +1 -0
  228. package/esm2022/drawer/watt-drawer-topbar.component.js +32 -0
  229. package/esm2022/drawer/watt-drawer-topbar.component.js.map +1 -0
  230. package/{fesm2022/energinet-watt-drawer.mjs → esm2022/drawer/watt-drawer.component.js} +17 -150
  231. package/esm2022/drawer/watt-drawer.component.js.map +1 -0
  232. package/esm2022/dropdown/energinet-watt-dropdown.js +5 -0
  233. package/esm2022/dropdown/energinet-watt-dropdown.js.map +1 -0
  234. package/esm2022/dropdown/index.js +20 -0
  235. package/esm2022/dropdown/index.js.map +1 -0
  236. package/esm2022/dropdown/watt-dropdown-option.js +2 -0
  237. package/esm2022/dropdown/watt-dropdown-option.js.map +1 -0
  238. package/esm2022/dropdown/watt-dropdown-value.js +2 -0
  239. package/esm2022/dropdown/watt-dropdown-value.js.map +1 -0
  240. package/{fesm2022/energinet-watt-dropdown.mjs → esm2022/dropdown/watt-dropdown.component.js} +18 -44
  241. package/esm2022/dropdown/watt-dropdown.component.js.map +1 -0
  242. package/esm2022/dropzone/energinet-watt-dropzone.js +5 -0
  243. package/esm2022/dropzone/energinet-watt-dropzone.js.map +1 -0
  244. package/esm2022/dropzone/index.js +22 -0
  245. package/esm2022/dropzone/index.js.map +1 -0
  246. package/esm2022/dropzone/watt-dropzone-intl.js +35 -0
  247. package/esm2022/dropzone/watt-dropzone-intl.js.map +1 -0
  248. package/esm2022/dropzone/watt-dropzone-validators.js +67 -0
  249. package/esm2022/dropzone/watt-dropzone-validators.js.map +1 -0
  250. package/{fesm2022/energinet-watt-dropzone.mjs → esm2022/dropzone/watt-dropzone.js} +14 -133
  251. package/esm2022/dropzone/watt-dropzone.js.map +1 -0
  252. package/esm2022/empty-state/energinet-watt-empty-state.js +5 -0
  253. package/esm2022/empty-state/energinet-watt-empty-state.js.map +1 -0
  254. package/esm2022/empty-state/icons/explore.js +54 -0
  255. package/esm2022/empty-state/icons/explore.js.map +1 -0
  256. package/esm2022/empty-state/icons/no-results.js +62 -0
  257. package/esm2022/empty-state/icons/no-results.js.map +1 -0
  258. package/{fesm2022/energinet-watt-empty-state.mjs → esm2022/empty-state/icons/not-found.js} +4 -301
  259. package/esm2022/empty-state/icons/not-found.js.map +1 -0
  260. package/esm2022/empty-state/icons/power.js +46 -0
  261. package/esm2022/empty-state/icons/power.js.map +1 -0
  262. package/esm2022/empty-state/index.js +24 -0
  263. package/esm2022/empty-state/index.js.map +1 -0
  264. package/esm2022/empty-state/watt-empty-state.component.js +120 -0
  265. package/esm2022/empty-state/watt-empty-state.component.js.map +1 -0
  266. package/esm2022/energinet-watt.js +5 -0
  267. package/esm2022/energinet-watt.js.map +1 -0
  268. package/esm2022/expandable-card/energinet-watt-expandable-card.js +5 -0
  269. package/esm2022/expandable-card/energinet-watt-expandable-card.js.map +1 -0
  270. package/esm2022/expandable-card/index.js +26 -0
  271. package/esm2022/expandable-card/index.js.map +1 -0
  272. package/{fesm2022/energinet-watt-expandable-card.mjs → esm2022/expandable-card/watt-expandable-card.component.js} +9 -40
  273. package/esm2022/expandable-card/watt-expandable-card.component.js.map +1 -0
  274. package/esm2022/field/energinet-watt-field.js +5 -0
  275. package/esm2022/field/energinet-watt-field.js.map +1 -0
  276. package/esm2022/field/index.js +24 -0
  277. package/esm2022/field/index.js.map +1 -0
  278. package/esm2022/field/watt-field-error.component.js +29 -0
  279. package/esm2022/field/watt-field-error.component.js.map +1 -0
  280. package/esm2022/field/watt-field-hint.component.js +29 -0
  281. package/esm2022/field/watt-field-hint.component.js.map +1 -0
  282. package/esm2022/field/watt-field-intl.service.js +32 -0
  283. package/esm2022/field/watt-field-intl.service.js.map +1 -0
  284. package/esm2022/field/watt-field-warning.component.js +29 -0
  285. package/esm2022/field/watt-field-warning.component.js.map +1 -0
  286. package/{fesm2022/energinet-watt-field.mjs → esm2022/field/watt-field.component.js} +14 -149
  287. package/esm2022/field/watt-field.component.js.map +1 -0
  288. package/esm2022/file-field/energinet-watt-file-field.js +5 -0
  289. package/esm2022/file-field/energinet-watt-file-field.js.map +1 -0
  290. package/esm2022/file-field/index.js +20 -0
  291. package/esm2022/file-field/index.js.map +1 -0
  292. package/{fesm2022/energinet-watt-file-field.mjs → esm2022/file-field/watt-file-field.component.js} +6 -32
  293. package/esm2022/file-field/watt-file-field.component.js.map +1 -0
  294. package/esm2022/icon/energinet-watt-icon.js +5 -0
  295. package/esm2022/icon/energinet-watt-icon.js.map +1 -0
  296. package/esm2022/icon/flags/energinet-watt-icon-flags.js +5 -0
  297. package/esm2022/icon/flags/energinet-watt-icon-flags.js.map +1 -0
  298. package/esm2022/icon/flags/index.js +29 -0
  299. package/esm2022/icon/flags/index.js.map +1 -0
  300. package/esm2022/icon/flags/watt-flag-ch.js +52 -0
  301. package/esm2022/icon/flags/watt-flag-ch.js.map +1 -0
  302. package/esm2022/icon/flags/watt-flag-de.js +44 -0
  303. package/esm2022/icon/flags/watt-flag-de.js.map +1 -0
  304. package/esm2022/icon/flags/watt-flag-dk.js +44 -0
  305. package/esm2022/icon/flags/watt-flag-dk.js.map +1 -0
  306. package/esm2022/icon/flags/watt-flag-fi.js +44 -0
  307. package/esm2022/icon/flags/watt-flag-fi.js.map +1 -0
  308. package/esm2022/icon/flags/watt-flag-gb.js +60 -0
  309. package/esm2022/icon/flags/watt-flag-gb.js.map +1 -0
  310. package/esm2022/icon/flags/watt-flag-nl.js +44 -0
  311. package/esm2022/icon/flags/watt-flag-nl.js.map +1 -0
  312. package/esm2022/icon/flags/watt-flag-no.js +48 -0
  313. package/esm2022/icon/flags/watt-flag-no.js.map +1 -0
  314. package/esm2022/icon/flags/watt-flag-pl.js +46 -0
  315. package/esm2022/icon/flags/watt-flag-pl.js.map +1 -0
  316. package/esm2022/icon/flags/watt-flag-se.js +42 -0
  317. package/esm2022/icon/flags/watt-flag-se.js.map +1 -0
  318. package/esm2022/icon/flags/watt-flag.js +124 -0
  319. package/esm2022/icon/flags/watt-flag.js.map +1 -0
  320. package/{fesm2022/energinet-watt-icon.mjs → esm2022/icon/icon.component.js} +6 -133
  321. package/esm2022/icon/icon.component.js.map +1 -0
  322. package/esm2022/icon/icons.js +104 -0
  323. package/esm2022/icon/icons.js.map +1 -0
  324. package/esm2022/icon/index.js +20 -0
  325. package/esm2022/icon/index.js.map +1 -0
  326. package/{fesm2022/energinet-watt.mjs → esm2022/index.js} +2 -8
  327. package/esm2022/index.js.map +1 -0
  328. package/esm2022/menu/energinet-watt-menu.js +5 -0
  329. package/esm2022/menu/energinet-watt-menu.js.map +1 -0
  330. package/esm2022/menu/index.js +36 -0
  331. package/esm2022/menu/index.js.map +1 -0
  332. package/esm2022/menu/watt-menu-group.component.js +45 -0
  333. package/esm2022/menu/watt-menu-group.component.js.map +1 -0
  334. package/esm2022/menu/watt-menu-item.component.js +50 -0
  335. package/esm2022/menu/watt-menu-item.component.js.map +1 -0
  336. package/esm2022/menu/watt-menu-trigger.directive.js +85 -0
  337. package/esm2022/menu/watt-menu-trigger.directive.js.map +1 -0
  338. package/esm2022/menu/watt-menu.component.js +77 -0
  339. package/esm2022/menu/watt-menu.component.js.map +1 -0
  340. package/esm2022/modal/energinet-watt-modal.js +5 -0
  341. package/esm2022/modal/energinet-watt-modal.js.map +1 -0
  342. package/esm2022/modal/index.js +21 -0
  343. package/esm2022/modal/index.js.map +1 -0
  344. package/{fesm2022/energinet-watt-modal.mjs → esm2022/modal/watt-modal.component.js} +13 -109
  345. package/esm2022/modal/watt-modal.component.js.map +1 -0
  346. package/esm2022/modal/watt-modal.service.js +74 -0
  347. package/esm2022/modal/watt-modal.service.js.map +1 -0
  348. package/esm2022/paginator/energinet-watt-paginator.js +5 -0
  349. package/esm2022/paginator/energinet-watt-paginator.js.map +1 -0
  350. package/esm2022/paginator/index.js +21 -0
  351. package/esm2022/paginator/index.js.map +1 -0
  352. package/esm2022/paginator/watt-paginator-intl.service.js +38 -0
  353. package/esm2022/paginator/watt-paginator-intl.service.js.map +1 -0
  354. package/{fesm2022/energinet-watt-paginator.mjs → esm2022/paginator/watt-paginator.component.js} +9 -69
  355. package/esm2022/paginator/watt-paginator.component.js.map +1 -0
  356. package/esm2022/phone-field/energinet-watt-phone-field.js +5 -0
  357. package/esm2022/phone-field/energinet-watt-phone-field.js.map +1 -0
  358. package/esm2022/phone-field/index.js +21 -0
  359. package/esm2022/phone-field/index.js.map +1 -0
  360. package/esm2022/phone-field/watt-phone-field-intl.service.js +41 -0
  361. package/esm2022/phone-field/watt-phone-field-intl.service.js.map +1 -0
  362. package/{fesm2022/energinet-watt-phone-field.mjs → esm2022/phone-field/watt-phone-field.component.js} +16 -80
  363. package/esm2022/phone-field/watt-phone-field.component.js.map +1 -0
  364. package/esm2022/picker/__shared/energinet-watt-picker-__shared.js +5 -0
  365. package/esm2022/picker/__shared/energinet-watt-picker-__shared.js.map +1 -0
  366. package/esm2022/picker/__shared/index.js +21 -0
  367. package/esm2022/picker/__shared/index.js.map +1 -0
  368. package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js +71 -0
  369. package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js.map +1 -0
  370. package/esm2022/picker/__shared/watt-picker-base.js +197 -0
  371. package/esm2022/picker/__shared/watt-picker-base.js.map +1 -0
  372. package/esm2022/picker/__shared/watt-picker-value.js +2 -0
  373. package/esm2022/picker/__shared/watt-picker-value.js.map +1 -0
  374. package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js +5 -0
  375. package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js.map +1 -0
  376. package/esm2022/picker/datepicker/index.js +22 -0
  377. package/esm2022/picker/datepicker/index.js.map +1 -0
  378. package/esm2022/picker/datepicker/watt-datepicker-intl.service.js +31 -0
  379. package/esm2022/picker/datepicker/watt-datepicker-intl.service.js.map +1 -0
  380. package/{fesm2022/energinet-watt-picker-datepicker.mjs → esm2022/picker/datepicker/watt-datepicker.component.js} +16 -71
  381. package/esm2022/picker/datepicker/watt-datepicker.component.js.map +1 -0
  382. package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js +5 -0
  383. package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js.map +1 -0
  384. package/esm2022/picker/timepicker/index.js +20 -0
  385. package/esm2022/picker/timepicker/index.js.map +1 -0
  386. package/esm2022/picker/timepicker/maskito-time-range-mask.js +81 -0
  387. package/esm2022/picker/timepicker/maskito-time-range-mask.js.map +1 -0
  388. package/{fesm2022/energinet-watt-picker-timepicker.mjs → esm2022/picker/timepicker/watt-timepicker.component.js} +20 -126
  389. package/esm2022/picker/timepicker/watt-timepicker.component.js.map +1 -0
  390. package/esm2022/progress-tracker/energinet-watt-progress-tracker.js +5 -0
  391. package/esm2022/progress-tracker/energinet-watt-progress-tracker.js.map +1 -0
  392. package/esm2022/progress-tracker/index.js +27 -0
  393. package/esm2022/progress-tracker/index.js.map +1 -0
  394. package/{fesm2022/energinet-watt-progress-tracker.mjs → esm2022/progress-tracker/watt-progress-tracker-step.component.js} +6 -64
  395. package/esm2022/progress-tracker/watt-progress-tracker-step.component.js.map +1 -0
  396. package/esm2022/progress-tracker/watt-progress-tracker.component.js +30 -0
  397. package/esm2022/progress-tracker/watt-progress-tracker.component.js.map +1 -0
  398. package/esm2022/query-params/energinet-watt-query-params.js +5 -0
  399. package/esm2022/query-params/energinet-watt-query-params.js.map +1 -0
  400. package/esm2022/query-params/index.js +20 -0
  401. package/esm2022/query-params/index.js.map +1 -0
  402. package/{fesm2022/energinet-watt-query-params.mjs → esm2022/query-params/watt-query-params.directive.js} +6 -32
  403. package/esm2022/query-params/watt-query-params.directive.js.map +1 -0
  404. package/esm2022/radio/energinet-watt-radio.js +5 -0
  405. package/esm2022/radio/energinet-watt-radio.js.map +1 -0
  406. package/esm2022/radio/index.js +21 -0
  407. package/esm2022/radio/index.js.map +1 -0
  408. package/esm2022/radio/watt-radio-group.component.js +119 -0
  409. package/esm2022/radio/watt-radio-group.component.js.map +1 -0
  410. package/{fesm2022/energinet-watt-radio.mjs → esm2022/radio/watt-radio.component.js} +5 -146
  411. package/esm2022/radio/watt-radio.component.js.map +1 -0
  412. package/esm2022/search/energinet-watt-search.js +5 -0
  413. package/esm2022/search/energinet-watt-search.js.map +1 -0
  414. package/esm2022/search/index.js +20 -0
  415. package/esm2022/search/index.js.map +1 -0
  416. package/{fesm2022/energinet-watt-search.mjs → esm2022/search/watt-search.component.js} +7 -33
  417. package/esm2022/search/watt-search.component.js.map +1 -0
  418. package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js +5 -0
  419. package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js.map +1 -0
  420. package/esm2022/segmented-buttons/index.js +27 -0
  421. package/esm2022/segmented-buttons/index.js.map +1 -0
  422. package/esm2022/segmented-buttons/watt-segmented-button.component.js +39 -0
  423. package/esm2022/segmented-buttons/watt-segmented-button.component.js.map +1 -0
  424. package/{fesm2022/energinet-watt-segmented-buttons.mjs → esm2022/segmented-buttons/watt-segmented-buttons.component.js} +11 -77
  425. package/esm2022/segmented-buttons/watt-segmented-buttons.component.js.map +1 -0
  426. package/esm2022/shell/energinet-watt-shell.js +5 -0
  427. package/esm2022/shell/energinet-watt-shell.js.map +1 -0
  428. package/esm2022/shell/index.js +21 -0
  429. package/esm2022/shell/index.js.map +1 -0
  430. package/esm2022/shell/nav-list/index.js +21 -0
  431. package/esm2022/shell/nav-list/index.js.map +1 -0
  432. package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js +47 -0
  433. package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js.map +1 -0
  434. package/esm2022/shell/nav-list/watt-nav-list-item.component.js +83 -0
  435. package/esm2022/shell/nav-list/watt-nav-list-item.component.js.map +1 -0
  436. package/esm2022/shell/nav-list/watt-nav-list.component.js +80 -0
  437. package/esm2022/shell/nav-list/watt-nav-list.component.js.map +1 -0
  438. package/esm2022/shell/shell.component.js +59 -0
  439. package/esm2022/shell/shell.component.js.map +1 -0
  440. package/esm2022/slide-toggle/energinet-watt-slide-toggle.js +5 -0
  441. package/esm2022/slide-toggle/energinet-watt-slide-toggle.js.map +1 -0
  442. package/esm2022/slide-toggle/index.js +20 -0
  443. package/esm2022/slide-toggle/index.js.map +1 -0
  444. package/{fesm2022/energinet-watt-slide-toggle.mjs → esm2022/slide-toggle/watt-slide-toggle.component.js} +8 -34
  445. package/esm2022/slide-toggle/watt-slide-toggle.component.js.map +1 -0
  446. package/esm2022/slider/energinet-watt-slider.js +5 -0
  447. package/esm2022/slider/energinet-watt-slider.js.map +1 -0
  448. package/esm2022/slider/index.js +20 -0
  449. package/esm2022/slider/index.js.map +1 -0
  450. package/{fesm2022/energinet-watt-slider.mjs → esm2022/slider/watt-slider.component.js} +7 -33
  451. package/esm2022/slider/watt-slider.component.js.map +1 -0
  452. package/esm2022/spinner/energinet-watt-spinner.js +5 -0
  453. package/esm2022/spinner/energinet-watt-spinner.js.map +1 -0
  454. package/esm2022/spinner/index.js +20 -0
  455. package/esm2022/spinner/index.js.map +1 -0
  456. package/{fesm2022/energinet-watt-spinner.mjs → esm2022/spinner/watt-spinner.component.js} +4 -30
  457. package/esm2022/spinner/watt-spinner.component.js.map +1 -0
  458. package/esm2022/stepper/energinet-watt-stepper.js +5 -0
  459. package/esm2022/stepper/energinet-watt-stepper.js.map +1 -0
  460. package/esm2022/stepper/index.js +21 -0
  461. package/esm2022/stepper/index.js.map +1 -0
  462. package/esm2022/stepper/watt-stepper-step.component.js +49 -0
  463. package/esm2022/stepper/watt-stepper-step.component.js.map +1 -0
  464. package/{fesm2022/energinet-watt-stepper.mjs → esm2022/stepper/watt-stepper.component.js} +15 -85
  465. package/esm2022/stepper/watt-stepper.component.js.map +1 -0
  466. package/esm2022/table/energinet-watt-table.js +5 -0
  467. package/esm2022/table/energinet-watt-table.js.map +1 -0
  468. package/esm2022/table/index.js +21 -0
  469. package/esm2022/table/index.js.map +1 -0
  470. package/esm2022/table/watt-table-data-source.js +27 -0
  471. package/esm2022/table/watt-table-data-source.js.map +1 -0
  472. package/esm2022/table/watt-table-expand-animation.js +65 -0
  473. package/esm2022/table/watt-table-expand-animation.js.map +1 -0
  474. package/{fesm2022/energinet-watt-table.mjs → esm2022/table/watt-table.component.js} +22 -134
  475. package/esm2022/table/watt-table.component.js.map +1 -0
  476. package/esm2022/tabs/energinet-watt-tabs.js +5 -0
  477. package/esm2022/tabs/energinet-watt-tabs.js.map +1 -0
  478. package/esm2022/tabs/index.js +31 -0
  479. package/esm2022/tabs/index.js.map +1 -0
  480. package/esm2022/tabs/watt-link-tab.component.js +34 -0
  481. package/esm2022/tabs/watt-link-tab.component.js.map +1 -0
  482. package/esm2022/tabs/watt-link-tabs.component.js +71 -0
  483. package/esm2022/tabs/watt-link-tabs.component.js.map +1 -0
  484. package/esm2022/tabs/watt-tab.component.js +42 -0
  485. package/esm2022/tabs/watt-tab.component.js.map +1 -0
  486. package/esm2022/tabs/watt-tabs-action.component.js +32 -0
  487. package/esm2022/tabs/watt-tabs-action.component.js.map +1 -0
  488. package/esm2022/tabs/watt-tabs.component.js +60 -0
  489. package/esm2022/tabs/watt-tabs.component.js.map +1 -0
  490. package/esm2022/text-field/energinet-watt-text-field.js +5 -0
  491. package/esm2022/text-field/energinet-watt-text-field.js.map +1 -0
  492. package/esm2022/text-field/index.js +20 -0
  493. package/esm2022/text-field/index.js.map +1 -0
  494. package/{fesm2022/energinet-watt-text-field.mjs → esm2022/text-field/watt-text-field.component.js} +10 -36
  495. package/esm2022/text-field/watt-text-field.component.js.map +1 -0
  496. package/esm2022/textarea-field/energinet-watt-textarea-field.js +5 -0
  497. package/esm2022/textarea-field/energinet-watt-textarea-field.js.map +1 -0
  498. package/esm2022/textarea-field/index.js +20 -0
  499. package/esm2022/textarea-field/index.js.map +1 -0
  500. package/{fesm2022/energinet-watt-textarea-field.mjs → esm2022/textarea-field/watt-textarea-field.component.js} +6 -32
  501. package/esm2022/textarea-field/watt-textarea-field.component.js.map +1 -0
  502. package/esm2022/toast/energinet-watt-toast.js +5 -0
  503. package/esm2022/toast/energinet-watt-toast.js.map +1 -0
  504. package/esm2022/toast/index.js +21 -0
  505. package/esm2022/toast/index.js.map +1 -0
  506. package/{fesm2022/energinet-watt-toast.mjs → esm2022/toast/watt-toast.component.js} +9 -82
  507. package/esm2022/toast/watt-toast.component.js.map +1 -0
  508. package/esm2022/toast/watt-toast.service.js +51 -0
  509. package/esm2022/toast/watt-toast.service.js.map +1 -0
  510. package/esm2022/tooltip/energinet-watt-tooltip.js +5 -0
  511. package/esm2022/tooltip/energinet-watt-tooltip.js.map +1 -0
  512. package/esm2022/tooltip/index.js +20 -0
  513. package/esm2022/tooltip/index.js.map +1 -0
  514. package/{fesm2022/energinet-watt-tooltip.mjs → esm2022/tooltip/watt-tooltip.component.js} +8 -98
  515. package/esm2022/tooltip/watt-tooltip.component.js.map +1 -0
  516. package/esm2022/tooltip/watt-tooltip.directive.js +67 -0
  517. package/esm2022/tooltip/watt-tooltip.directive.js.map +1 -0
  518. package/{fesm2022/energinet-watt-utils-css.mjs → esm2022/utils/css/css-custom-properties.service.js} +4 -30
  519. package/esm2022/utils/css/css-custom-properties.service.js.map +1 -0
  520. package/esm2022/utils/css/energinet-watt-utils-css.js +5 -0
  521. package/esm2022/utils/css/energinet-watt-utils-css.js.map +1 -0
  522. package/esm2022/utils/css/index.js +20 -0
  523. package/esm2022/utils/css/index.js.map +1 -0
  524. package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js +5 -0
  525. package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js.map +1 -0
  526. package/esm2022/utils/intersection-observer/index.js +20 -0
  527. package/esm2022/utils/intersection-observer/index.js.map +1 -0
  528. package/{fesm2022/energinet-watt-utils-intersection-observer.mjs → esm2022/utils/intersection-observer/watt-intersection-observer.service.js} +5 -31
  529. package/esm2022/utils/intersection-observer/watt-intersection-observer.service.js.map +1 -0
  530. package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js +5 -0
  531. package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js.map +1 -0
  532. package/esm2022/utils/resize-observer/index.js +21 -0
  533. package/esm2022/utils/resize-observer/index.js.map +1 -0
  534. package/esm2022/utils/resize-observer/watt-resize-observer.directive.js +53 -0
  535. package/esm2022/utils/resize-observer/watt-resize-observer.directive.js.map +1 -0
  536. package/esm2022/utils/resize-observer/watt-resize-observer.service.js +67 -0
  537. package/esm2022/utils/resize-observer/watt-resize-observer.service.js.map +1 -0
  538. package/esm2022/validation-message/energinet-watt-validation-message.js +5 -0
  539. package/esm2022/validation-message/energinet-watt-validation-message.js.map +1 -0
  540. package/esm2022/validation-message/index.js +20 -0
  541. package/esm2022/validation-message/index.js.map +1 -0
  542. package/{fesm2022/energinet-watt-validation-message.mjs → esm2022/validation-message/watt-validation-message.component.js} +5 -31
  543. package/esm2022/validation-message/watt-validation-message.component.js.map +1 -0
  544. package/esm2022/validators/energinet-watt-validators.js +5 -0
  545. package/esm2022/validators/energinet-watt-validators.js.map +1 -0
  546. package/esm2022/validators/index.js +20 -0
  547. package/esm2022/validators/index.js.map +1 -0
  548. package/{fesm2022/energinet-watt-validators.mjs → esm2022/validators/watt-range.validators.js} +2 -28
  549. package/esm2022/validators/watt-range.validators.js.map +1 -0
  550. package/esm2022/vater/energinet-watt-vater.js +5 -0
  551. package/esm2022/vater/energinet-watt-vater.js.map +1 -0
  552. package/esm2022/vater/index.js +24 -0
  553. package/esm2022/vater/index.js.map +1 -0
  554. package/esm2022/vater/types.js +20 -0
  555. package/esm2022/vater/types.js.map +1 -0
  556. package/esm2022/vater/vater-flex.component.js +49 -0
  557. package/esm2022/vater/vater-flex.component.js.map +1 -0
  558. package/esm2022/vater/vater-layout.directive.js +65 -0
  559. package/esm2022/vater/vater-layout.directive.js.map +1 -0
  560. package/esm2022/vater/vater-spacer.component.js +29 -0
  561. package/esm2022/vater/vater-spacer.component.js.map +1 -0
  562. package/esm2022/vater/vater-stack.component.js +42 -0
  563. package/esm2022/vater/vater-stack.component.js.map +1 -0
  564. package/esm2022/vater/vater-utility.directive.js +53 -0
  565. package/esm2022/vater/vater-utility.directive.js.map +1 -0
  566. package/esm2022/year-field/energinet-watt-year-field.js +5 -0
  567. package/esm2022/year-field/energinet-watt-year-field.js.map +1 -0
  568. package/esm2022/year-field/index.js +20 -0
  569. package/esm2022/year-field/index.js.map +1 -0
  570. package/{fesm2022/energinet-watt-year-field.mjs → esm2022/year-field/watt-year-field.component.js} +13 -39
  571. package/esm2022/year-field/watt-year-field.component.js.map +1 -0
  572. package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js +5 -0
  573. package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js.map +1 -0
  574. package/esm2022/yearmonth-field/index.js +21 -0
  575. package/esm2022/yearmonth-field/index.js.map +1 -0
  576. package/{fesm2022/energinet-watt-yearmonth-field.mjs → esm2022/yearmonth-field/watt-yearmonth-field.component.js} +13 -79
  577. package/esm2022/yearmonth-field/watt-yearmonth-field.component.js.map +1 -0
  578. package/esm2022/yearmonth-field/year-month.js +42 -0
  579. package/esm2022/yearmonth-field/year-month.js.map +1 -0
  580. package/expandable-card/energinet-watt-expandable-card.d.ts +5 -0
  581. package/expandable-card/index.d.ts +19 -0
  582. package/{types/energinet-watt-expandable-card.d.ts → expandable-card/watt-expandable-card.component.d.ts} +9 -31
  583. package/field/energinet-watt-field.d.ts +5 -0
  584. package/field/index.d.ts +21 -0
  585. package/field/watt-field-error.component.d.ts +5 -0
  586. package/field/watt-field-hint.component.d.ts +5 -0
  587. package/field/watt-field-intl.service.d.ts +8 -0
  588. package/field/watt-field-warning.component.d.ts +5 -0
  589. package/field/watt-field.component.d.ts +53 -0
  590. package/file-field/energinet-watt-file-field.d.ts +5 -0
  591. package/file-field/index.d.ts +17 -0
  592. package/file-field/watt-file-field.component.d.ts +10 -0
  593. package/icon/energinet-watt-icon.d.ts +5 -0
  594. package/icon/flags/energinet-watt-icon-flags.d.ts +5 -0
  595. package/icon/flags/index.d.ts +26 -0
  596. package/icon/flags/watt-flag-ch.d.ts +5 -0
  597. package/icon/flags/watt-flag-de.d.ts +5 -0
  598. package/icon/flags/watt-flag-dk.d.ts +5 -0
  599. package/icon/flags/watt-flag-fi.d.ts +5 -0
  600. package/icon/flags/watt-flag-gb.d.ts +5 -0
  601. package/icon/flags/watt-flag-nl.d.ts +5 -0
  602. package/icon/flags/watt-flag-no.d.ts +5 -0
  603. package/icon/flags/watt-flag-pl.d.ts +5 -0
  604. package/icon/flags/watt-flag-se.d.ts +5 -0
  605. package/icon/flags/watt-flag.d.ts +13 -0
  606. package/icon/icon.component.d.ts +20 -0
  607. package/icon/icons.d.ts +97 -0
  608. package/icon/index.d.ts +17 -0
  609. package/index.d.ts +17 -0
  610. package/menu/energinet-watt-menu.d.ts +5 -0
  611. package/menu/index.d.ts +25 -0
  612. package/menu/watt-menu-group.component.d.ts +9 -0
  613. package/menu/watt-menu-item.component.d.ts +9 -0
  614. package/menu/watt-menu-trigger.directive.d.ts +36 -0
  615. package/menu/watt-menu.component.d.ts +44 -0
  616. package/modal/energinet-watt-modal.d.ts +5 -0
  617. package/modal/index.d.ts +18 -0
  618. package/modal/watt-modal.component.d.ts +84 -0
  619. package/modal/watt-modal.service.d.ts +56 -0
  620. package/package.json +92 -92
  621. package/paginator/energinet-watt-paginator.d.ts +5 -0
  622. package/paginator/index.d.ts +18 -0
  623. package/paginator/watt-paginator-intl.service.d.ts +14 -0
  624. package/paginator/watt-paginator.component.d.ts +53 -0
  625. package/phone-field/energinet-watt-phone-field.d.ts +5 -0
  626. package/phone-field/index.d.ts +18 -0
  627. package/phone-field/watt-phone-field-intl.service.d.ts +17 -0
  628. package/phone-field/watt-phone-field.component.d.ts +75 -0
  629. package/picker/__shared/energinet-watt-picker-__shared.d.ts +5 -0
  630. package/picker/__shared/index.d.ts +19 -0
  631. package/picker/__shared/placeholder-mask/watt-placeholder-mask.component.d.ts +34 -0
  632. package/{types/energinet-watt-picker-__shared.d.ts → picker/__shared/watt-picker-base.d.ts} +11 -34
  633. package/picker/__shared/watt-picker-value.d.ts +18 -0
  634. package/picker/datepicker/energinet-watt-picker-datepicker.d.ts +5 -0
  635. package/picker/datepicker/index.d.ts +19 -0
  636. package/picker/datepicker/watt-datepicker-intl.service.d.ts +7 -0
  637. package/picker/datepicker/watt-datepicker.component.d.ts +95 -0
  638. package/picker/timepicker/energinet-watt-picker-timepicker.d.ts +5 -0
  639. package/picker/timepicker/index.d.ts +17 -0
  640. package/picker/timepicker/maskito-time-range-mask.d.ts +18 -0
  641. package/{types/energinet-watt-picker-timepicker.d.ts → picker/timepicker/watt-timepicker.component.d.ts} +12 -16
  642. package/progress-tracker/energinet-watt-progress-tracker.d.ts +5 -0
  643. package/progress-tracker/index.d.ts +20 -0
  644. package/progress-tracker/watt-progress-tracker-step.component.d.ts +10 -0
  645. package/progress-tracker/watt-progress-tracker.component.d.ts +5 -0
  646. package/query-params/energinet-watt-query-params.d.ts +5 -0
  647. package/query-params/index.d.ts +17 -0
  648. package/{types/energinet-watt-query-params.d.ts → query-params/watt-query-params.directive.d.ts} +2 -5
  649. package/radio/energinet-watt-radio.d.ts +5 -0
  650. package/radio/index.d.ts +18 -0
  651. package/radio/watt-radio-group.component.d.ts +47 -0
  652. package/radio/watt-radio.component.d.ts +23 -0
  653. package/search/energinet-watt-search.d.ts +5 -0
  654. package/search/index.d.ts +17 -0
  655. package/search/watt-search.component.d.ts +44 -0
  656. package/segmented-buttons/energinet-watt-segmented-buttons.d.ts +5 -0
  657. package/segmented-buttons/index.d.ts +21 -0
  658. package/segmented-buttons/watt-segmented-button.component.d.ts +25 -0
  659. package/segmented-buttons/watt-segmented-buttons.component.d.ts +18 -0
  660. package/shell/energinet-watt-shell.d.ts +5 -0
  661. package/shell/index.d.ts +18 -0
  662. package/shell/nav-list/index.d.ts +18 -0
  663. package/shell/nav-list/watt-expand-on-active-link.directive.d.ts +9 -0
  664. package/shell/nav-list/watt-nav-list-item.component.d.ts +16 -0
  665. package/shell/nav-list/watt-nav-list.component.d.ts +12 -0
  666. package/shell/shell.component.d.ts +17 -0
  667. package/slide-toggle/energinet-watt-slide-toggle.d.ts +5 -0
  668. package/slide-toggle/index.d.ts +17 -0
  669. package/slide-toggle/watt-slide-toggle.component.d.ts +33 -0
  670. package/slider/energinet-watt-slider.d.ts +5 -0
  671. package/slider/index.d.ts +17 -0
  672. package/slider/watt-slider.component.d.ts +47 -0
  673. package/spinner/energinet-watt-spinner.d.ts +5 -0
  674. package/spinner/index.d.ts +17 -0
  675. package/spinner/watt-spinner.component.d.ts +15 -0
  676. package/stepper/energinet-watt-stepper.d.ts +5 -0
  677. package/stepper/index.d.ts +18 -0
  678. package/stepper/watt-stepper-step.component.d.ts +35 -0
  679. package/stepper/watt-stepper.component.d.ts +40 -0
  680. package/table/energinet-watt-table.d.ts +5 -0
  681. package/table/index.d.ts +18 -0
  682. package/table/watt-table-data-source.d.ts +39 -0
  683. package/table/watt-table-expand-animation.d.ts +18 -0
  684. package/{types/energinet-watt-table.d.ts → table/watt-table.component.d.ts} +49 -72
  685. package/tabs/energinet-watt-tabs.d.ts +5 -0
  686. package/tabs/index.d.ts +26 -0
  687. package/tabs/watt-link-tab.component.d.ts +7 -0
  688. package/tabs/watt-link-tabs.component.d.ts +7 -0
  689. package/tabs/watt-tab.component.d.ts +26 -0
  690. package/tabs/watt-tabs-action.component.d.ts +5 -0
  691. package/tabs/watt-tabs.component.d.ts +36 -0
  692. package/text-field/energinet-watt-text-field.d.ts +5 -0
  693. package/text-field/index.d.ts +17 -0
  694. package/text-field/watt-text-field.component.d.ts +80 -0
  695. package/textarea-field/energinet-watt-textarea-field.d.ts +5 -0
  696. package/textarea-field/index.d.ts +17 -0
  697. package/textarea-field/watt-textarea-field.component.d.ts +28 -0
  698. package/toast/energinet-watt-toast.d.ts +5 -0
  699. package/toast/index.d.ts +19 -0
  700. package/{types/energinet-watt-toast.d.ts → toast/watt-toast.component.d.ts} +5 -19
  701. package/toast/watt-toast.service.d.ts +12 -0
  702. package/tooltip/energinet-watt-tooltip.d.ts +5 -0
  703. package/tooltip/index.d.ts +17 -0
  704. package/tooltip/watt-tooltip.component.d.ts +26 -0
  705. package/tooltip/watt-tooltip.directive.d.ts +16 -0
  706. package/{types/energinet-watt-utils-css.d.ts → utils/css/css-custom-properties.service.d.ts} +2 -5
  707. package/utils/css/energinet-watt-utils-css.d.ts +5 -0
  708. package/utils/css/index.d.ts +17 -0
  709. package/utils/intersection-observer/energinet-watt-utils-intersection-observer.d.ts +5 -0
  710. package/utils/intersection-observer/index.d.ts +17 -0
  711. package/{types/energinet-watt-utils-intersection-observer.d.ts → utils/intersection-observer/watt-intersection-observer.service.d.ts} +3 -7
  712. package/utils/resize-observer/energinet-watt-utils-resize-observer.d.ts +5 -0
  713. package/utils/resize-observer/index.d.ts +18 -0
  714. package/{types/energinet-watt-utils-resize-observer.d.ts → utils/resize-observer/watt-resize-observer.directive.d.ts} +3 -30
  715. package/utils/resize-observer/watt-resize-observer.service.d.ts +22 -0
  716. package/validation-message/energinet-watt-validation-message.d.ts +5 -0
  717. package/validation-message/index.d.ts +17 -0
  718. package/validation-message/watt-validation-message.component.d.ts +50 -0
  719. package/validators/energinet-watt-validators.d.ts +5 -0
  720. package/validators/index.d.ts +17 -0
  721. package/{types/energinet-watt-validators.d.ts → validators/watt-range.validators.d.ts} +2 -6
  722. package/vater/energinet-watt-vater.d.ts +5 -0
  723. package/vater/index.d.ts +21 -0
  724. package/vater/types.d.ts +22 -0
  725. package/vater/vater-flex.component.d.ts +14 -0
  726. package/vater/vater-layout.directive.d.ts +24 -0
  727. package/vater/vater-spacer.component.d.ts +5 -0
  728. package/vater/vater-stack.component.d.ts +7 -0
  729. package/vater/vater-utility.directive.d.ts +17 -0
  730. package/year-field/energinet-watt-year-field.d.ts +5 -0
  731. package/year-field/index.d.ts +17 -0
  732. package/year-field/watt-year-field.component.d.ts +56 -0
  733. package/yearmonth-field/energinet-watt-yearmonth-field.d.ts +5 -0
  734. package/yearmonth-field/index.d.ts +18 -0
  735. package/yearmonth-field/watt-yearmonth-field.component.d.ts +58 -0
  736. package/yearmonth-field/year-month.d.ts +20 -0
  737. package/fesm2022/energinet-watt-badge.mjs.map +0 -1
  738. package/fesm2022/energinet-watt-breadcrumbs.mjs.map +0 -1
  739. package/fesm2022/energinet-watt-button.mjs.map +0 -1
  740. package/fesm2022/energinet-watt-card.mjs.map +0 -1
  741. package/fesm2022/energinet-watt-checkbox.mjs.map +0 -1
  742. package/fesm2022/energinet-watt-chip.mjs +0 -694
  743. package/fesm2022/energinet-watt-chip.mjs.map +0 -1
  744. package/fesm2022/energinet-watt-clipboard.mjs.map +0 -1
  745. package/fesm2022/energinet-watt-code.mjs.map +0 -1
  746. package/fesm2022/energinet-watt-core-breakpoints.mjs +0 -97
  747. package/fesm2022/energinet-watt-core-breakpoints.mjs.map +0 -1
  748. package/fesm2022/energinet-watt-core-color.mjs +0 -124
  749. package/fesm2022/energinet-watt-core-color.mjs.map +0 -1
  750. package/fesm2022/energinet-watt-core-date.mjs +0 -256
  751. package/fesm2022/energinet-watt-core-date.mjs.map +0 -1
  752. package/fesm2022/energinet-watt-data.mjs.map +0 -1
  753. package/fesm2022/energinet-watt-datetime-field.mjs.map +0 -1
  754. package/fesm2022/energinet-watt-description-list.mjs.map +0 -1
  755. package/fesm2022/energinet-watt-drawer.mjs.map +0 -1
  756. package/fesm2022/energinet-watt-dropdown.mjs.map +0 -1
  757. package/fesm2022/energinet-watt-dropzone.mjs.map +0 -1
  758. package/fesm2022/energinet-watt-empty-state.mjs.map +0 -1
  759. package/fesm2022/energinet-watt-expandable-card.mjs.map +0 -1
  760. package/fesm2022/energinet-watt-field.mjs.map +0 -1
  761. package/fesm2022/energinet-watt-file-field.mjs.map +0 -1
  762. package/fesm2022/energinet-watt-icon-flags.mjs +0 -547
  763. package/fesm2022/energinet-watt-icon-flags.mjs.map +0 -1
  764. package/fesm2022/energinet-watt-icon.mjs.map +0 -1
  765. package/fesm2022/energinet-watt-menu.mjs +0 -282
  766. package/fesm2022/energinet-watt-menu.mjs.map +0 -1
  767. package/fesm2022/energinet-watt-modal.mjs.map +0 -1
  768. package/fesm2022/energinet-watt-paginator.mjs.map +0 -1
  769. package/fesm2022/energinet-watt-phone-field.mjs.map +0 -1
  770. package/fesm2022/energinet-watt-picker-__shared.mjs +0 -292
  771. package/fesm2022/energinet-watt-picker-__shared.mjs.map +0 -1
  772. package/fesm2022/energinet-watt-picker-datepicker.mjs.map +0 -1
  773. package/fesm2022/energinet-watt-picker-timepicker.mjs.map +0 -1
  774. package/fesm2022/energinet-watt-progress-tracker.mjs.map +0 -1
  775. package/fesm2022/energinet-watt-query-params.mjs.map +0 -1
  776. package/fesm2022/energinet-watt-radio.mjs.map +0 -1
  777. package/fesm2022/energinet-watt-search.mjs.map +0 -1
  778. package/fesm2022/energinet-watt-segmented-buttons.mjs.map +0 -1
  779. package/fesm2022/energinet-watt-shell.mjs +0 -303
  780. package/fesm2022/energinet-watt-shell.mjs.map +0 -1
  781. package/fesm2022/energinet-watt-slide-toggle.mjs.map +0 -1
  782. package/fesm2022/energinet-watt-slider.mjs.map +0 -1
  783. package/fesm2022/energinet-watt-spinner.mjs.map +0 -1
  784. package/fesm2022/energinet-watt-stepper.mjs.map +0 -1
  785. package/fesm2022/energinet-watt-table.mjs.map +0 -1
  786. package/fesm2022/energinet-watt-tabs.mjs +0 -254
  787. package/fesm2022/energinet-watt-tabs.mjs.map +0 -1
  788. package/fesm2022/energinet-watt-text-field.mjs.map +0 -1
  789. package/fesm2022/energinet-watt-textarea-field.mjs.map +0 -1
  790. package/fesm2022/energinet-watt-toast.mjs.map +0 -1
  791. package/fesm2022/energinet-watt-tooltip.mjs.map +0 -1
  792. package/fesm2022/energinet-watt-utils-css.mjs.map +0 -1
  793. package/fesm2022/energinet-watt-utils-intersection-observer.mjs.map +0 -1
  794. package/fesm2022/energinet-watt-utils-resize-observer.mjs +0 -143
  795. package/fesm2022/energinet-watt-utils-resize-observer.mjs.map +0 -1
  796. package/fesm2022/energinet-watt-validation-message.mjs.map +0 -1
  797. package/fesm2022/energinet-watt-validators.mjs.map +0 -1
  798. package/fesm2022/energinet-watt-vater.mjs +0 -248
  799. package/fesm2022/energinet-watt-vater.mjs.map +0 -1
  800. package/fesm2022/energinet-watt-year-field.mjs.map +0 -1
  801. package/fesm2022/energinet-watt-yearmonth-field.mjs.map +0 -1
  802. package/fesm2022/energinet-watt.mjs.map +0 -1
  803. package/types/energinet-watt-badge.d.ts +0 -19
  804. package/types/energinet-watt-button.d.ts +0 -23
  805. package/types/energinet-watt-card.d.ts +0 -24
  806. package/types/energinet-watt-checkbox.d.ts +0 -20
  807. package/types/energinet-watt-chip.d.ts +0 -104
  808. package/types/energinet-watt-clipboard.d.ts +0 -22
  809. package/types/energinet-watt-code.d.ts +0 -56
  810. package/types/energinet-watt-core-date.d.ts +0 -154
  811. package/types/energinet-watt-data.d.ts +0 -61
  812. package/types/energinet-watt-datetime-field.d.ts +0 -44
  813. package/types/energinet-watt-description-list.d.ts +0 -32
  814. package/types/energinet-watt-dropdown.d.ts +0 -167
  815. package/types/energinet-watt-dropzone.d.ts +0 -67
  816. package/types/energinet-watt-empty-state.d.ts +0 -39
  817. package/types/energinet-watt-field.d.ts +0 -62
  818. package/types/energinet-watt-file-field.d.ts +0 -13
  819. package/types/energinet-watt-icon-flags.d.ts +0 -61
  820. package/types/energinet-watt-icon.d.ts +0 -119
  821. package/types/energinet-watt-menu.d.ts +0 -119
  822. package/types/energinet-watt-modal.d.ts +0 -127
  823. package/types/energinet-watt-paginator.d.ts +0 -54
  824. package/types/energinet-watt-phone-field.d.ts +0 -79
  825. package/types/energinet-watt-picker-datepicker.d.ts +0 -90
  826. package/types/energinet-watt-progress-tracker.d.ts +0 -37
  827. package/types/energinet-watt-radio.d.ts +0 -71
  828. package/types/energinet-watt-search.d.ts +0 -47
  829. package/types/energinet-watt-segmented-buttons.d.ts +0 -48
  830. package/types/energinet-watt-shell.d.ts +0 -47
  831. package/types/energinet-watt-slide-toggle.d.ts +0 -20
  832. package/types/energinet-watt-slider.d.ts +0 -35
  833. package/types/energinet-watt-spinner.d.ts +0 -18
  834. package/types/energinet-watt-stepper.d.ts +0 -59
  835. package/types/energinet-watt-tabs.d.ts +0 -68
  836. package/types/energinet-watt-text-field.d.ts +0 -67
  837. package/types/energinet-watt-textarea-field.d.ts +0 -31
  838. package/types/energinet-watt-tooltip.d.ts +0 -20
  839. package/types/energinet-watt-validation-message.d.ts +0 -38
  840. package/types/energinet-watt-vater.d.ts +0 -87
  841. package/types/energinet-watt-year-field.d.ts +0 -60
  842. package/types/energinet-watt-yearmonth-field.d.ts +0 -64
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watt-tab.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/tabs/watt-tab.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;AAQjF,MAAM,OAAO,gBAAgB;IAC3B,WAAW,GAAG,SAAS,CAAC,QAAQ,CAAuB,WAAW,CAAC,CAAC;IACpE,KAAK,GAAG,KAAK,CAAS,EAAE,iDAAC,CAAC;IAC1B,OAAO,GAAG,MAAM,EAAQ,CAAC;IAEzB,UAAU;QACR,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IACtB,CAAC;wGAPU,gBAAgB;4FAAhB,gBAAgB,sRAC4B,WAAW,gEALxD;;iBAEK;;4FAEJ,gBAAgB;kBAN5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,UAAU;oBACpB,QAAQ,EAAE;;iBAEK;iBAChB;6FAEwD,WAAW","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 { Component, TemplateRef, input, output, viewChild } from '@angular/core';\n\n@Component({\n selector: 'watt-tab',\n template: `<ng-template>\n <ng-content />\n </ng-template>`,\n})\nexport class WattTabComponent {\n templateRef = viewChild.required<TemplateRef<unknown>>(TemplateRef);\n label = input<string>('');\n changed = output<void>();\n\n emitChange() {\n this.changed.emit();\n }\n}\n"]}
@@ -0,0 +1,32 @@
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 { Component } from '@angular/core';
20
+ import * as i0 from "@angular/core";
21
+ export class WattTabsActionComponent {
22
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattTabsActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
23
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: WattTabsActionComponent, isStandalone: true, selector: "watt-tabs-action", ngImport: i0, template: `<ng-content />`, isInline: true });
24
+ }
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattTabsActionComponent, decorators: [{
26
+ type: Component,
27
+ args: [{
28
+ selector: 'watt-tabs-action',
29
+ template: `<ng-content />`,
30
+ }]
31
+ }] });
32
+ //# sourceMappingURL=watt-tabs-action.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watt-tabs-action.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/tabs/watt-tabs-action.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;AAM1C,MAAM,OAAO,uBAAuB;wGAAvB,uBAAuB;4FAAvB,uBAAuB,4EAFxB,gBAAgB;;4FAEf,uBAAuB;kBAJnC,SAAS;mBAAC;oBACT,QAAQ,EAAE,kBAAkB;oBAC5B,QAAQ,EAAE,gBAAgB;iBAC3B","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 { Component } from '@angular/core';\n\n@Component({\n selector: 'watt-tabs-action',\n template: `<ng-content />`,\n})\nexport class WattTabsActionComponent {}\n"]}
@@ -0,0 +1,60 @@
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 { ChangeDetectionStrategy, ChangeDetectorRef, Component, ViewEncapsulation, inject, HostBinding, contentChild, viewChild, input, contentChildren, } from '@angular/core';
20
+ import { NgTemplateOutlet } from '@angular/common';
21
+ import { MatTabGroup, MatTabsModule } from '@angular/material/tabs';
22
+ import { WattTabComponent } from './watt-tab.component';
23
+ import { WattTabsActionComponent } from './watt-tabs-action.component';
24
+ import * as i0 from "@angular/core";
25
+ import * as i1 from "@angular/material/tabs";
26
+ export class WattTabsComponent {
27
+ cdr = inject(ChangeDetectorRef);
28
+ variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
29
+ get hostClass() {
30
+ return this.variant() ? `watt-tabs-${this.variant()}` : '';
31
+ }
32
+ tabElements = contentChildren(WattTabComponent, ...(ngDevMode ? [{ debugName: "tabElements" }] : []));
33
+ activeTabIndex = 0;
34
+ tabGroup = viewChild.required(MatTabGroup);
35
+ actionsTab = contentChild(WattTabsActionComponent, ...(ngDevMode ? [{ debugName: "actionsTab" }] : []));
36
+ ngAfterViewInit() {
37
+ this.cdr.detectChanges();
38
+ }
39
+ emitSelectedTabChange(selectedIndex) {
40
+ this.activeTabIndex = selectedIndex;
41
+ const currentTab = this.tabElements().find((tab, index) => index === selectedIndex);
42
+ currentTab?.emitChange();
43
+ }
44
+ setSelectedIndex(index) {
45
+ this.tabGroup().selectedIndex = index;
46
+ }
47
+ triggerChange() {
48
+ this.emitSelectedTabChange(this.activeTabIndex);
49
+ }
50
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
51
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: WattTabsComponent, isStandalone: true, selector: "watt-tabs", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.hostClass" } }, queries: [{ propertyName: "tabElements", predicate: WattTabComponent, isSignal: true }, { propertyName: "actionsTab", first: true, predicate: WattTabsActionComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "tabGroup", first: true, predicate: MatTabGroup, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\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<mat-tab-group\n [mat-stretch-tabs]=\"false\"\n dynamicHeight\n animationDuration=\"0ms\"\n [disableRipple]=\"true\"\n (selectedIndexChange)=\"emitSelectedTabChange($event)\"\n>\n @for (tab of tabElements(); track tab) {\n <mat-tab [label]=\"tab.label()\">\n <ng-container *ngTemplateOutlet=\"tab.templateRef()\" />\n </mat-tab>\n }\n\n @if (actionsTab()) {\n <mat-tab labelClass=\"watt-tabs-action\" [disabled]=\"true\">\n <ng-template mat-tab-label>\n <ng-content />\n </ng-template>\n </mat-tab>\n }\n</mat-tab-group>\n", styles: ["watt-drawer watt-tabs .mat-mdc-tab-group,watt-drawer watt-tabs .mat-mdc-tab-body-wrapper{height:100%}watt-tabs.watt-tabs-secondary .mat-mdc-tab.mat-mdc-tab:hover{border-bottom:none}watt-tabs.watt-tabs-secondary .mdc-tab{padding-left:var(--watt-space-m);padding-right:var(--watt-space-m);height:32px}watt-tabs.watt-tabs-secondary .mat-mdc-tab-group.mat-primary .mdc-tab.cdk-focused.cdk-keyboard-focused:focus{background-color:transparent}watt-tabs.watt-tabs-secondary .mat-mdc-tab-group,watt-tabs.watt-tabs-secondary .mat-mdc-tab-nav-bar{--mat-tab-active-focus-indicator-color: var(--watt-color-secondary);--mat-tab-active-focus-label-text-color: var(--watt-color-neutral-black);--mat-tab-active-hover-indicator-color: var(--watt-color-secondary);--mat-tab-active-hover-label-text-color: var(--watt-color-neutral-black);--mat-tab-active-label-text-color: var(--watt-color-neutral-black);--mat-tab-inactive-label-text-color: var(--watt-on-light-low-emphasis);--mat-tab-inactive-ripple-color: none;--mat-tab-disabled-ripple-color: none;--mat-tab-active-indicator-color: var(--watt-color-secondary);--mat-tab-active-indicator-height: 3px;--mat-tab-active-indicator-shape: 99999px;--mat-tab-active-ripple-color: transparent}watt-tabs.watt-tabs-secondary .mat-mdc-tab-header{background:none;box-shadow:none}watt-tabs.watt-tabs-secondary .mat-mdc-tab-labels{flex-wrap:wrap;padding-left:0}watt-tabs.watt-tabs-secondary .mdc-tab-indicator__content--underline{width:43px}watt-tabs.watt-tabs-secondary .mat-mdc-tab-body-wrapper{padding:var(--watt-space-s);padding-top:var(--watt-space-m)}watt-tabs .mat-mdc-tab.mdc-tab.watt-tabs-action{flex-grow:1;justify-content:flex-end;cursor:default;height:auto}watt-tabs .mat-mdc-tab.mdc-tab.watt-tabs-action.mat-mdc-tab-disabled{opacity:1}watt-tabs .mat-mdc-tab.mdc-tab.watt-tabs-action.mat-mdc-tab-disabled,watt-tabs .mat-mdc-tab.mdc-tab.watt-tabs-action .mdc-tab__content{pointer-events:initial}watt-tabs .mat-mdc-tab.mdc-tab.watt-tabs-action:hover{border-bottom:none}watt-tabs .mat-mdc-tab.mdc-tab.watt-tabs-action:hover .mdc-tab__ripple{display:none}watt-tabs .mat-mdc-tab-body{width:100%}watt-tabs .mat-mdc-tab-group,watt-tabs .mat-mdc-tab-body-wrapper{height:100%}watt-tabs .mat-mdc-tab-group.mat-primary .mdc-tab.cdk-focused.cdk-keyboard-focused:focus{background-color:var(--watt-color-primary-ultralight)}watt-tabs .mat-mdc-tab-labels{padding-left:var(--watt-space-ml)}watt-tabs .mat-mdc-tab{min-width:120px;opacity:1}watt-tabs .mat-mdc-tab .mdc-tab__content{color:var(--watt-typography-button-color);font-size:1rem;line-height:1.5rem;font-weight:600;text-transform:none;letter-spacing:0;color:var(--watt-on-light-medium-emphasis)}watt-tabs .mat-mdc-tab.mat-mdc-tab-active{border-bottom:2px solid var(--watt-color-primary)}watt-tabs .mat-mdc-tab.mat-mdc-tab:hover{border-bottom:2px solid var(--watt-color-primary)}watt-tabs .mat-mdc-tab.mat-mdc-tab-active,watt-tabs .mat-mdc-tab.mat-mdc-tab:hover{color:var(--watt-on-light-medium-emphasis)}watt-tabs .mat-mdc-tab.mat-mdc-tab-active .mdc-tab__content,watt-tabs .mat-mdc-tab.mat-mdc-tab:hover .mdc-tab__content{color:var(--watt-color-primary)}watt-tabs .mat-mdc-tab-body-wrapper{padding:var(--watt-space-ml)}watt-tabs .mat-mdc-tab-body.mat-mdc-tab-body-active,watt-tabs .mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active,watt-tabs .mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{position:relative;overflow:initial}watt-tabs .mat-tab-label-container{padding-left:var(--watt-space-ml)}watt-tabs .mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:none}watt-tabs .mat-mdc-tab-header{box-shadow:var(--watt-bottom-box-shadow);background-color:var(--watt-color-neutral-white)}watt-tabs .mat-ink-bar{display:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "directive", type: i1.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i1.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i1.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
52
+ }
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattTabsComponent, decorators: [{
54
+ type: Component,
55
+ args: [{ selector: 'watt-tabs', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, imports: [NgTemplateOutlet, MatTabsModule], template: "<!--\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<mat-tab-group\n [mat-stretch-tabs]=\"false\"\n dynamicHeight\n animationDuration=\"0ms\"\n [disableRipple]=\"true\"\n (selectedIndexChange)=\"emitSelectedTabChange($event)\"\n>\n @for (tab of tabElements(); track tab) {\n <mat-tab [label]=\"tab.label()\">\n <ng-container *ngTemplateOutlet=\"tab.templateRef()\" />\n </mat-tab>\n }\n\n @if (actionsTab()) {\n <mat-tab labelClass=\"watt-tabs-action\" [disabled]=\"true\">\n <ng-template mat-tab-label>\n <ng-content />\n </ng-template>\n </mat-tab>\n }\n</mat-tab-group>\n", styles: ["watt-drawer watt-tabs .mat-mdc-tab-group,watt-drawer watt-tabs .mat-mdc-tab-body-wrapper{height:100%}watt-tabs.watt-tabs-secondary .mat-mdc-tab.mat-mdc-tab:hover{border-bottom:none}watt-tabs.watt-tabs-secondary .mdc-tab{padding-left:var(--watt-space-m);padding-right:var(--watt-space-m);height:32px}watt-tabs.watt-tabs-secondary .mat-mdc-tab-group.mat-primary .mdc-tab.cdk-focused.cdk-keyboard-focused:focus{background-color:transparent}watt-tabs.watt-tabs-secondary .mat-mdc-tab-group,watt-tabs.watt-tabs-secondary .mat-mdc-tab-nav-bar{--mat-tab-active-focus-indicator-color: var(--watt-color-secondary);--mat-tab-active-focus-label-text-color: var(--watt-color-neutral-black);--mat-tab-active-hover-indicator-color: var(--watt-color-secondary);--mat-tab-active-hover-label-text-color: var(--watt-color-neutral-black);--mat-tab-active-label-text-color: var(--watt-color-neutral-black);--mat-tab-inactive-label-text-color: var(--watt-on-light-low-emphasis);--mat-tab-inactive-ripple-color: none;--mat-tab-disabled-ripple-color: none;--mat-tab-active-indicator-color: var(--watt-color-secondary);--mat-tab-active-indicator-height: 3px;--mat-tab-active-indicator-shape: 99999px;--mat-tab-active-ripple-color: transparent}watt-tabs.watt-tabs-secondary .mat-mdc-tab-header{background:none;box-shadow:none}watt-tabs.watt-tabs-secondary .mat-mdc-tab-labels{flex-wrap:wrap;padding-left:0}watt-tabs.watt-tabs-secondary .mdc-tab-indicator__content--underline{width:43px}watt-tabs.watt-tabs-secondary .mat-mdc-tab-body-wrapper{padding:var(--watt-space-s);padding-top:var(--watt-space-m)}watt-tabs .mat-mdc-tab.mdc-tab.watt-tabs-action{flex-grow:1;justify-content:flex-end;cursor:default;height:auto}watt-tabs .mat-mdc-tab.mdc-tab.watt-tabs-action.mat-mdc-tab-disabled{opacity:1}watt-tabs .mat-mdc-tab.mdc-tab.watt-tabs-action.mat-mdc-tab-disabled,watt-tabs .mat-mdc-tab.mdc-tab.watt-tabs-action .mdc-tab__content{pointer-events:initial}watt-tabs .mat-mdc-tab.mdc-tab.watt-tabs-action:hover{border-bottom:none}watt-tabs .mat-mdc-tab.mdc-tab.watt-tabs-action:hover .mdc-tab__ripple{display:none}watt-tabs .mat-mdc-tab-body{width:100%}watt-tabs .mat-mdc-tab-group,watt-tabs .mat-mdc-tab-body-wrapper{height:100%}watt-tabs .mat-mdc-tab-group.mat-primary .mdc-tab.cdk-focused.cdk-keyboard-focused:focus{background-color:var(--watt-color-primary-ultralight)}watt-tabs .mat-mdc-tab-labels{padding-left:var(--watt-space-ml)}watt-tabs .mat-mdc-tab{min-width:120px;opacity:1}watt-tabs .mat-mdc-tab .mdc-tab__content{color:var(--watt-typography-button-color);font-size:1rem;line-height:1.5rem;font-weight:600;text-transform:none;letter-spacing:0;color:var(--watt-on-light-medium-emphasis)}watt-tabs .mat-mdc-tab.mat-mdc-tab-active{border-bottom:2px solid var(--watt-color-primary)}watt-tabs .mat-mdc-tab.mat-mdc-tab:hover{border-bottom:2px solid var(--watt-color-primary)}watt-tabs .mat-mdc-tab.mat-mdc-tab-active,watt-tabs .mat-mdc-tab.mat-mdc-tab:hover{color:var(--watt-on-light-medium-emphasis)}watt-tabs .mat-mdc-tab.mat-mdc-tab-active .mdc-tab__content,watt-tabs .mat-mdc-tab.mat-mdc-tab:hover .mdc-tab__content{color:var(--watt-color-primary)}watt-tabs .mat-mdc-tab-body-wrapper{padding:var(--watt-space-ml)}watt-tabs .mat-mdc-tab-body.mat-mdc-tab-body-active,watt-tabs .mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active,watt-tabs .mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{position:relative;overflow:initial}watt-tabs .mat-tab-label-container{padding-left:var(--watt-space-ml)}watt-tabs .mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:none}watt-tabs .mat-mdc-tab-header{box-shadow:var(--watt-bottom-box-shadow);background-color:var(--watt-color-neutral-white)}watt-tabs .mat-ink-bar{display:none}\n"] }]
56
+ }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], hostClass: [{
57
+ type: HostBinding,
58
+ args: ['class']
59
+ }], tabElements: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => WattTabComponent), { isSignal: true }] }], tabGroup: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatTabGroup), { isSignal: true }] }], actionsTab: [{ type: i0.ContentChild, args: [i0.forwardRef(() => WattTabsActionComponent), { isSignal: true }] }] } });
60
+ //# sourceMappingURL=watt-tabs.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watt-tabs.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/tabs/watt-tabs.component.ts","../../../../libs/watt/package/tabs/watt-tabs.component.html"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EAET,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,YAAY,EACZ,SAAS,EACT,KAAK,EACL,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;;;AAUvE,MAAM,OAAO,iBAAiB;IACX,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAEjD,OAAO,GAAG,KAAK,6DAAU,CAAC;IAE1B,IACI,SAAS;QACX,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,aAAa,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7D,CAAC;IAED,WAAW,GAAG,eAAe,CAAC,gBAAgB,uDAAC,CAAC;IAChD,cAAc,GAAG,CAAC,CAAC;IAEnB,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAE3C,UAAU,GAAG,YAAY,CAAC,uBAAuB,sDAAC,CAAC;IAEnD,eAAe;QACb,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;IAC3B,CAAC;IAED,qBAAqB,CAAC,aAAqB;QACzC,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,aAAa,CAAC,CAAC;QACpF,UAAU,EAAE,UAAU,EAAE,CAAC;IAC3B,CAAC;IAED,gBAAgB,CAAC,KAAa;QAC5B,IAAI,CAAC,QAAQ,EAAE,CAAC,aAAa,GAAG,KAAK,CAAC;IACxC,CAAC;IAED,aAAa;QACX,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAClD,CAAC;wGAjCU,iBAAiB;4FAAjB,iBAAiB,gSAUE,gBAAgB,0EAKpB,uBAAuB,0GAFnB,WAAW,gEC1D3C,gpCAqCA,iwHDMY,gBAAgB,mJAAE,aAAa;;4FAE9B,iBAAiB;kBAR7B,SAAS;+BACE,WAAW,iBAGN,iBAAiB,CAAC,IAAI,mBACpB,uBAAuB,CAAC,OAAO,WACvC,CAAC,gBAAgB,EAAE,aAAa,CAAC;;sBAOzC,WAAW;uBAAC,OAAO;qFAKU,gBAAgB,uFAGhB,WAAW,4FAEf,uBAAuB","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 ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n AfterViewInit,\n ViewEncapsulation,\n inject,\n HostBinding,\n contentChild,\n viewChild,\n input,\n contentChildren,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MatTabGroup, MatTabsModule } from '@angular/material/tabs';\n\nimport { WattTabComponent } from './watt-tab.component';\nimport { WattTabsActionComponent } from './watt-tabs-action.component';\n\n@Component({\n selector: 'watt-tabs',\n styleUrls: ['./watt-tabs.component.scss'],\n templateUrl: './watt-tabs.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.Default,\n imports: [NgTemplateOutlet, MatTabsModule],\n})\nexport class WattTabsComponent implements AfterViewInit {\n private readonly cdr = inject(ChangeDetectorRef);\n\n variant = input<string>();\n\n @HostBinding('class')\n get hostClass() {\n return this.variant() ? `watt-tabs-${this.variant()}` : '';\n }\n\n tabElements = contentChildren(WattTabComponent);\n activeTabIndex = 0;\n\n tabGroup = viewChild.required(MatTabGroup);\n\n actionsTab = contentChild(WattTabsActionComponent);\n\n ngAfterViewInit() {\n this.cdr.detectChanges();\n }\n\n emitSelectedTabChange(selectedIndex: number) {\n this.activeTabIndex = selectedIndex;\n const currentTab = this.tabElements().find((tab, index) => index === selectedIndex);\n currentTab?.emitChange();\n }\n\n setSelectedIndex(index: number) {\n this.tabGroup().selectedIndex = index;\n }\n\n triggerChange() {\n this.emitSelectedTabChange(this.activeTabIndex);\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<mat-tab-group\n [mat-stretch-tabs]=\"false\"\n dynamicHeight\n animationDuration=\"0ms\"\n [disableRipple]=\"true\"\n (selectedIndexChange)=\"emitSelectedTabChange($event)\"\n>\n @for (tab of tabElements(); track tab) {\n <mat-tab [label]=\"tab.label()\">\n <ng-container *ngTemplateOutlet=\"tab.templateRef()\" />\n </mat-tab>\n }\n\n @if (actionsTab()) {\n <mat-tab labelClass=\"watt-tabs-action\" [disabled]=\"true\">\n <ng-template mat-tab-label>\n <ng-content />\n </ng-template>\n </mat-tab>\n }\n</mat-tab-group>\n"]}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=energinet-watt-text-field.js.map
@@ -0,0 +1 @@
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"]}
@@ -0,0 +1,20 @@
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
@@ -0,0 +1 @@
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,12 +1,3 @@
1
- import * as i0 from '@angular/core';
2
- import { input, viewChild, output, inject, ElementRef, linkedSignal, signal, forwardRef, ViewEncapsulation, Component } from '@angular/core';
3
- import * as i2 from '@angular/forms';
4
- import { ReactiveFormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
5
- import * as i1 from '@angular/material/autocomplete';
6
- import { MatAutocomplete, MatAutocompleteModule } from '@angular/material/autocomplete';
7
- import { WattFieldComponent } from '@energinet/watt/field';
8
- import { WattIconComponent } from '@energinet/watt/icon';
9
-
10
1
  //#region License
11
2
  /**
12
3
  * @license
@@ -25,7 +16,15 @@ import { WattIconComponent } from '@energinet/watt/icon';
25
16
  * limitations under the License.
26
17
  */
27
18
  //#endregion
28
- class WattTextFieldComponent {
19
+ import { Component, ViewEncapsulation, ElementRef, forwardRef, inject, input, output, viewChild, signal, linkedSignal, } from '@angular/core';
20
+ import { NG_VALUE_ACCESSOR, ReactiveFormsModule, } from '@angular/forms';
21
+ import { MatAutocomplete, MatAutocompleteModule } from '@angular/material/autocomplete';
22
+ import { WattFieldComponent } from '@energinet/watt/field';
23
+ import { WattIconComponent } from '@energinet/watt/icon';
24
+ import * as i0 from "@angular/core";
25
+ import * as i1 from "@angular/material/autocomplete";
26
+ import * as i2 from "@angular/forms";
27
+ export class WattTextFieldComponent {
29
28
  value = input('', ...(ngDevMode ? [{ debugName: "value" }] : []));
30
29
  type = input('text', ...(ngDevMode ? [{ debugName: "type" }] : []));
31
30
  placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
@@ -237,29 +236,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
237
236
  </watt-field>
238
237
  `, styles: ["watt-text-field{display:block;width:100%}watt-text-field input{border:none;width:100%;outline:none;background-color:transparent}watt-text-field input::placeholder{color:var(--watt-on-light-low-emphasis)}watt-text-field[size]{width:auto}\n"] }]
239
238
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], prefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefix", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], formControl: [{ type: i0.Input, args: [{ isSignal: true, alias: "formControl", required: true }] }], autocompleteOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocompleteOptions", required: false }] }], autocompleteMatcherFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocompleteMatcherFn", required: false }] }], showErrors: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrors", required: false }] }], autoFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFocus", required: false }] }], autocompleteRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatAutocomplete), { isSignal: true }] }], searchChanged: [{ type: i0.Output, args: ["searchChanged"] }], autocompleteOptionSelected: [{ type: i0.Output, args: ["autocompleteOptionSelected"] }], autocompleteOptionDeselected: [{ type: i0.Output, args: ["autocompleteOptionDeselected"] }], inputField: [{ type: i0.ViewChild, args: ['inputField', { isSignal: true }] }] } });
240
-
241
- //#region License
242
- /**
243
- * @license
244
- * Copyright 2020 Energinet DataHub A/S
245
- *
246
- * Licensed under the Apache License, Version 2.0 (the "License2");
247
- * you may not use this file except in compliance with the License.
248
- * You may obtain a copy of the License at
249
- *
250
- * http://www.apache.org/licenses/LICENSE-2.0
251
- *
252
- * Unless required by applicable law or agreed to in writing, software
253
- * distributed under the License is distributed on an "AS IS" BASIS,
254
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
255
- * See the License for the specific language governing permissions and
256
- * limitations under the License.
257
- */
258
- //#endregion
259
-
260
- /**
261
- * Generated bundle index. Do not edit.
262
- */
263
-
264
- export { WattTextFieldComponent };
265
- //# sourceMappingURL=energinet-watt-text-field.mjs.map
239
+ //# sourceMappingURL=watt-text-field.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watt-text-field.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/text-field/watt-text-field.component.ts"],"names":[],"mappings":"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","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"]}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=energinet-watt-textarea-field.js.map
@@ -0,0 +1 @@
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"]}
@@ -0,0 +1,20 @@
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
@@ -0,0 +1 @@
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,8 +1,3 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, ElementRef, input, booleanAttribute, model, signal, forwardRef, ViewEncapsulation, Component } from '@angular/core';
3
- import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
4
- import { WattFieldComponent } from '@energinet/watt/field';
5
-
6
1
  //#region License
7
2
  /**
8
3
  * @license
@@ -21,7 +16,11 @@ import { WattFieldComponent } from '@energinet/watt/field';
21
16
  * limitations under the License.
22
17
  */
23
18
  //#endregion
24
- class WattTextAreaFieldComponent {
19
+ import { Component, forwardRef, ViewEncapsulation, inject, ElementRef, input, model, signal, booleanAttribute, } from '@angular/core';
20
+ import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
21
+ import { WattFieldComponent } from '@energinet/watt/field';
22
+ import * as i0 from "@angular/core";
23
+ export class WattTextAreaFieldComponent {
25
24
  /** @ignore */
26
25
  element = inject(ElementRef);
27
26
  formControl = input.required(...(ngDevMode ? [{ debugName: "formControl" }] : []));
@@ -100,29 +99,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
100
99
  '[attr.resize]': 'resize()',
101
100
  }, styles: ["watt-textarea-field{display:block;width:100%;--watt-textarea-min-height: 200px}watt-textarea-field[small=true]{--watt-textarea-min-height: 80px}watt-textarea-field textarea{border:none;width:100%;outline:none;padding:var(--watt-space-s);padding-left:0;background-color:transparent;min-height:var(--watt-textarea-min-height)}watt-textarea-field[resize=none] textarea{resize:none}watt-textarea-field[resize=horizontal] textarea{resize:horizontal}watt-textarea-field[resize=vertical] textarea{resize:vertical}watt-textarea-field[resize=both] textarea{resize:both}\n"] }]
102
101
  }], propDecorators: { formControl: [{ type: i0.Input, args: [{ isSignal: true, alias: "formControl", required: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], small: [{ type: i0.Input, args: [{ isSignal: true, alias: "small", required: false }] }], resize: [{ type: i0.Input, args: [{ isSignal: true, alias: "resize", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
103
-
104
- //#region License
105
- /**
106
- * @license
107
- * Copyright 2020 Energinet DataHub A/S
108
- *
109
- * Licensed under the Apache License, Version 2.0 (the "License2");
110
- * you may not use this file except in compliance with the License.
111
- * You may obtain a copy of the License at
112
- *
113
- * http://www.apache.org/licenses/LICENSE-2.0
114
- *
115
- * Unless required by applicable law or agreed to in writing, software
116
- * distributed under the License is distributed on an "AS IS" BASIS,
117
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
118
- * See the License for the specific language governing permissions and
119
- * limitations under the License.
120
- */
121
- //#endregion
122
-
123
- /**
124
- * Generated bundle index. Do not edit.
125
- */
126
-
127
- export { WattTextAreaFieldComponent };
128
- //# sourceMappingURL=energinet-watt-textarea-field.mjs.map
102
+ //# sourceMappingURL=watt-textarea-field.component.js.map
@@ -0,0 +1 @@
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,KAAK,yCAAI,SAAS,EAAE,gBAAgB,OAA7B,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAC,CAAC;IACtD,MAAM,GAAG,KAAK,CAA8C,MAAM,kDAAC,CAAC;IAEpE,OAAO,CAAC,KAAY;QAClB,MAAM,MAAM,GAAG,KAAK,CAAC,MAA6B,CAAC;QACnD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAED,cAAc;IACd,KAAK,GAAG,KAAK,CAAS,EAAE,iDAAC,CAAC;IAE1B,cAAc;IACd,UAAU,GAAG,MAAM,CAAC,KAAK,sDAAC,CAAC;IAE3B,cAAc;IACd,UAAU,CAAC,KAAa;QACtB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,cAAc;IACd,gBAAgB,CAAC,EAA2B;QAC1C,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC;IAED,cAAc;IACd,iBAAiB,CAAC,EAAc;QAC9B,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,gBAAgB,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,cAAc;IACd,gBAAgB,CAAC,UAAmB;QAClC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;wGAxCU,0BAA0B;4FAA1B,0BAA0B,suCA5B1B;YACT;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;gBACzD,KAAK,EAAE,IAAI;aACZ;SACF,0BAIS;;;;;;;;;;;gBAWI,2nBAtBJ,WAAW,+BAAE,kBAAkB;;4FA6B9B,0BAA0B;kBA9BtC,SAAS;8BACC,CAAC,WAAW,EAAE,kBAAkB,CAAC,aAC/B;wBACT;4BACE,OAAO,EAAE,iBAAiB;4BAC1B,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"]}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=energinet-watt-toast.js.map
@@ -0,0 +1 @@
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"]}
@@ -0,0 +1,21 @@
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
@@ -0,0 +1 @@
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,11 +1,3 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, ChangeDetectorRef, ElementRef, HostBinding, ViewEncapsulation, ChangeDetectionStrategy, Component, Injectable } from '@angular/core';
3
- import { MAT_SNACK_BAR_DATA, MatSnackBarRef, MatSnackBarModule, MatSnackBar } from '@angular/material/snack-bar';
4
- import { fromEvent, timer, tap, takeUntil, repeat } from 'rxjs';
5
- import { WattIconComponent } from '@energinet/watt/icon';
6
- import { WattButtonComponent } from '@energinet/watt/button';
7
- import { WattSpinnerComponent } from '@energinet/watt/spinner';
8
-
9
1
  //#region License
10
2
  /**
11
3
  * @license
@@ -24,11 +16,18 @@ import { WattSpinnerComponent } from '@energinet/watt/spinner';
24
16
  * limitations under the License.
25
17
  */
26
18
  //#endregion
19
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, HostBinding, ViewEncapsulation, inject, } from '@angular/core';
20
+ import { MatSnackBarModule, MatSnackBarRef, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';
21
+ import { fromEvent, repeat, takeUntil, tap, timer } from 'rxjs';
22
+ import { WattIconComponent } from '@energinet/watt/icon';
23
+ import { WattButtonComponent } from '@energinet/watt/button';
24
+ import { WattSpinnerComponent } from '@energinet/watt/spinner';
25
+ import * as i0 from "@angular/core";
27
26
  /**
28
27
  * Usage:
29
28
  * `import { WattToastService } from '@energinet/watt/toast';`
30
29
  */
31
- class WattToastComponent {
30
+ export class WattToastComponent {
32
31
  _config = inject(MAT_SNACK_BAR_DATA);
33
32
  cd = inject(ChangeDetectorRef);
34
33
  _matSnackBarRef = inject(MatSnackBarRef);
@@ -95,76 +94,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
95
94
  type: HostBinding,
96
95
  args: ['class']
97
96
  }] } });
98
-
99
- //#region License
100
- /**
101
- * @license
102
- * Copyright 2020 Energinet DataHub A/S
103
- *
104
- * Licensed under the Apache License, Version 2.0 (the "License2");
105
- * you may not use this file except in compliance with the License.
106
- * You may obtain a copy of the License at
107
- *
108
- * http://www.apache.org/licenses/LICENSE-2.0
109
- *
110
- * Unless required by applicable law or agreed to in writing, software
111
- * distributed under the License is distributed on an "AS IS" BASIS,
112
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113
- * See the License for the specific language governing permissions and
114
- * limitations under the License.
115
- */
116
- //#endregion
117
- class WattToastService {
118
- _snackBar = inject(MatSnackBar);
119
- ref;
120
- open(config) {
121
- this.ref = this._snackBar.openFromComponent(WattToastComponent, {
122
- data: config,
123
- });
124
- return this.ref;
125
- }
126
- update(config) {
127
- if (!this.ref)
128
- return;
129
- this.ref.instance.update(config);
130
- }
131
- dismiss() {
132
- if (!this.ref)
133
- return;
134
- this.ref.dismiss();
135
- }
136
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
137
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattToastService, providedIn: 'root' });
138
- }
139
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattToastService, decorators: [{
140
- type: Injectable,
141
- args: [{
142
- providedIn: 'root',
143
- }]
144
- }] });
145
-
146
- //#region License
147
- /**
148
- * @license
149
- * Copyright 2020 Energinet DataHub A/S
150
- *
151
- * Licensed under the Apache License, Version 2.0 (the "License2");
152
- * you may not use this file except in compliance with the License.
153
- * You may obtain a copy of the License at
154
- *
155
- * http://www.apache.org/licenses/LICENSE-2.0
156
- *
157
- * Unless required by applicable law or agreed to in writing, software
158
- * distributed under the License is distributed on an "AS IS" BASIS,
159
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
160
- * See the License for the specific language governing permissions and
161
- * limitations under the License.
162
- */
163
- //#endregion
164
-
165
- /**
166
- * Generated bundle index. Do not edit.
167
- */
168
-
169
- export { WattToastComponent, WattToastService };
170
- //# sourceMappingURL=energinet-watt-toast.mjs.map
97
+ //# sourceMappingURL=watt-toast.component.js.map
@@ -0,0 +1 @@
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":"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","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 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"]}
@@ -0,0 +1,51 @@
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
@@ -0,0 +1 @@
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"]}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=energinet-watt-tooltip.js.map