@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
@@ -1,10 +1,3 @@
1
- import * as i2 from '@angular/forms';
2
- import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
3
- import * as i0 from '@angular/core';
4
- import { inject, ElementRef, model, signal, input, forwardRef, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
5
- import * as i1 from '@angular/material/slide-toggle';
6
- import { MatSlideToggleModule } from '@angular/material/slide-toggle';
7
-
8
1
  //#region License
9
2
  /**
10
3
  * @license
@@ -23,10 +16,16 @@ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
23
16
  * limitations under the License.
24
17
  */
25
18
  //#endregion
19
+ import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
20
+ import { inject, input, model, signal, Component, forwardRef, ElementRef, ViewEncapsulation, ChangeDetectionStrategy, } from '@angular/core';
21
+ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
22
+ import * as i0 from "@angular/core";
23
+ import * as i1 from "@angular/material/slide-toggle";
24
+ import * as i2 from "@angular/forms";
26
25
  /**
27
26
  * Slide toggle
28
27
  */
29
- class WattSlideToggleComponent {
28
+ export class WattSlideToggleComponent {
30
29
  element = inject(ElementRef);
31
30
  checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : []));
32
31
  isDisabled = signal(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
@@ -76,29 +75,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
76
75
  ><ng-content
77
76
  /></mat-slide-toggle>`, styles: ["watt-slide-toggle .mat-mdc-slide-toggle{--mat-slide-toggle-track-outline-color: var(--watt-on-light-low-emphasis);--mat-slide-toggle-selected-track-outline-color: var(--watt-on-light-low-emphasis);--mat-slide-toggle-unselected-handle-horizontal-margin: 0 8px;--mat-slide-toggle-unselected-pressed-handle-horizontal-margin: 0 8px;--mat-slide-toggle-selected-handle-horizontal-margin: 0 -8px;--mat-slide-toggle-selected-pressed-handle-horizontal-margin: 0 -8px;--mat-slide-toggle-unselected-hover-handle-color: var(--watt-on-light-low-emphasis);--mat-slide-toggle-unselected-pressed-handle-color: var(--watt-on-light-low-emphasis);--mat-slide-toggle-unselected-handle-color: var(--watt-on-light-low-emphasis);--mat-slide-toggle-unselected-focus-handle-color: var(--watt-on-light-low-emphasis);--mat-slide-toggle-selected-track-outline-width: 0px}watt-slide-toggle .mat-mdc-slide-toggle:focus-within{--mat-slide-toggle-track-outline-color: var(--watt-color-primary)}watt-slide-toggle .mat-mdc-slide-toggle * label{font-size:.875rem;line-height:1.25rem;font-weight:400;text-transform:none;letter-spacing:0;padding-left:8px}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__track{--mat-slide-toggle-track-shape: 100px;--mat-slide-toggle-track-height: 32px;--mat-slide-toggle-unselected-track-color: var(--watt-color-neutral-white);--mat-slide-toggle-unselected-hover-track-color: var(--watt-color-neutral-white);--mat-slide-toggle-unselected-focus-track-color: var(--watt-color-neutral-white);--mat-slide-toggle-unselected-pressed-track-color: var(--watt-color-neutral-white);--mat-slide-toggle-selected-track-color: var(--watt-color-primary);--mat-slide-toggle-selected-pressed-track-color: var(--watt-color-primary);--mat-slide-toggle-selected-hover-track-color: var(--watt-color-primary);--mat-slide-toggle-selected-focus-track-color: var(--watt-color-primary)}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch{--mat-slide-toggle-track-width: 52px;--mat-slide-toggle-handle-elevation-shadow: none}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__handle{--mat-slide-toggle-handle-surface-color: var(--watt-on-light-low-emphasis);--mat-slide-toggle-handle-width: 16px;--mat-slide-toggle-handle-height: 16px;--mat-slide-toggle-handle-shape: 24px;--mat-slide-toggle-unselected-handle-size: 16px;--mat-slide-toggle-pressed-handle-size: 16px;--mat-slide-toggle-selected-handle-size: 16px;--mat-slide-toggle-selected-pressed-handle-size: 16px}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__handle,watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch--selected{--mat-slide-toggle-selected-handle-color: var(--watt-color-neutral-white);--mat-slide-toggle-selected-hover-handle-color: var(--watt-color-neutral-white);--mat-slide-toggle-selected-focus-handle-color: var(--watt-color-neutral-white);--mat-slide-toggle-handle-surface-color: var(--watt-color-neutral-white)}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__handle,watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch--unselected:enabled:hover:not(:focus):not(:active){--mat-slide-toggle-unselected-hover-handle-color: var(--watt-on-light-low-emphasis)}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__handle-track{--mat-slide-toggle-handle-width: 16px}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__ripple{display:none}\n"] }]
78
77
  }], propDecorators: { checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }] } });
79
-
80
- //#region License
81
- /**
82
- * @license
83
- * Copyright 2020 Energinet DataHub A/S
84
- *
85
- * Licensed under the Apache License, Version 2.0 (the "License2");
86
- * you may not use this file except in compliance with the License.
87
- * You may obtain a copy of the License at
88
- *
89
- * http://www.apache.org/licenses/LICENSE-2.0
90
- *
91
- * Unless required by applicable law or agreed to in writing, software
92
- * distributed under the License is distributed on an "AS IS" BASIS,
93
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
94
- * See the License for the specific language governing permissions and
95
- * limitations under the License.
96
- */
97
- //#endregion
98
-
99
- /**
100
- * Generated bundle index. Do not edit.
101
- */
102
-
103
- export { WattSlideToggleComponent };
104
- //# sourceMappingURL=energinet-watt-slide-toggle.mjs.map
78
+ //# sourceMappingURL=watt-slide-toggle.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watt-slide-toggle.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/slide-toggle/watt-slide-toggle.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAwB,iBAAiB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACtF,OAAO,EACL,MAAM,EACN,KAAK,EACL,KAAK,EACL,MAAM,EACN,SAAS,EACT,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;;;;AAEtE;;GAEG;AAuBH,MAAM,OAAO,wBAAwB;IAC3B,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAErC,OAAO,GAAG,KAAK,CAAC,KAAK,mDAAC,CAAC;IACvB,UAAU,GAAG,MAAM,CAAC,KAAK,sDAAC,CAAC;IAC3B,QAAQ,GAAG,KAAK,CAAC,KAAK,oDAAC,CAAC;IAExB,UAAU,CAAC,OAAgB;QACzB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;IAED,gBAAgB,CAAC,EAA4B;QAC3C,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAC7B,CAAC;IAED,iBAAiB,CAAC,EAA4B;QAC5C,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,gBAAgB,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,gBAAgB,CAAE,UAAmB;QACnC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;wGArBU,wBAAwB;4FAAxB,wBAAwB,kXAlBxB;YACT;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;gBACvD,KAAK,EAAE,IAAI;aACZ;SACF,0BAGS;;;;;;;wBAOY,2yGAjBZ,oBAAoB,yXAAE,WAAW;;4FAmBhC,wBAAwB;kBAtBpC,SAAS;sCACS,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,WAC5B,CAAC,oBAAoB,EAAE,WAAW,CAAC,aACjC;wBACT;4BACE,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,yBAAyB,CAAC;4BACvD,KAAK,EAAE,IAAI;yBACZ;qBACF,YACS,mBAAmB,YAEnB;;;;;;;wBAOY","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 { ControlValueAccessor, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';\nimport {\n inject,\n input,\n model,\n signal,\n Component,\n forwardRef,\n ElementRef,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\n\n/**\n * Slide toggle\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [MatSlideToggleModule, FormsModule],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => WattSlideToggleComponent),\n multi: true,\n },\n ],\n selector: 'watt-slide-toggle',\n styleUrls: ['./watt-slide-toggle.component.scss'],\n template: `<mat-slide-toggle\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [(ngModel)]=\"checked\"\n [disableRipple]=\"true\"\n [hideIcon]=\"true\"\n ><ng-content\n /></mat-slide-toggle>`,\n})\nexport class WattSlideToggleComponent implements ControlValueAccessor {\n private element = inject(ElementRef);\n\n checked = model(false);\n isDisabled = signal(false);\n required = input(false);\n\n writeValue(checked: boolean): void {\n this.checked.set(checked);\n }\n\n registerOnChange(fn: (value: boolean) => void): void {\n this.checked.subscribe(fn);\n }\n\n registerOnTouched(fn: (value: boolean) => void): void {\n this.element.nativeElement.addEventListener('focusout', fn);\n }\n\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-slider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"energinet-watt-slider.js","sourceRoot":"","sources":["../../../../libs/watt/package/slider/energinet-watt-slider.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 { WattSliderComponent } from './watt-slider.component';
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/slider/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,mBAAmB,EAAmB,MAAM,yBAAyB,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 { WattSliderComponent, WattSliderValue } from './watt-slider.component';\n"]}
@@ -1,9 +1,3 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, DestroyRef, input, computed, viewChild, output, effect, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { fromEvent } from 'rxjs';
4
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
- import { WattColorHelperService } from '@energinet/watt/core/color';
6
-
7
1
  //#region License
8
2
  /**
9
3
  * @license
@@ -22,10 +16,15 @@ import { WattColorHelperService } from '@energinet/watt/core/color';
22
16
  * limitations under the License.
23
17
  */
24
18
  //#endregion
19
+ import { ChangeDetectionStrategy, Component, computed, DestroyRef, effect, inject, input, output, viewChild, ViewEncapsulation, } from '@angular/core';
20
+ import { fromEvent } from 'rxjs';
21
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
22
+ import { WattColorHelperService } from '@energinet/watt/core/color';
23
+ import * as i0 from "@angular/core";
25
24
  /**
26
25
  * Slider for providing a range of values.
27
26
  */
28
- class WattSliderComponent {
27
+ export class WattSliderComponent {
29
28
  colorService = inject(WattColorHelperService);
30
29
  destroyRef = inject(DestroyRef);
31
30
  /** The lowest permitted value. */
@@ -118,29 +117,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
118
117
  type: Component,
119
118
  args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, selector: 'watt-slider', 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<div class=\"controls\">\n <input\n #minRange\n class=\"min-range\"\n [style.z-index]=\"1\"\n [style.height]=\"0\"\n type=\"range\"\n [max]=\"max()\"\n [min]=\"min()\"\n [step]=\"step()\"\n [value]=\"value()?.min\"\n />\n <input\n #maxRange\n class=\"max-range\"\n type=\"range\"\n [max]=\"max()\"\n [min]=\"min()\"\n [step]=\"step()\"\n [value]=\"value()?.max\"\n />\n</div>\n", styles: ["watt-slider{display:flex;flex-direction:column;margin:var(--watt-space-m) 0}watt-slider .controls{position:relative}watt-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:all;width:var(--watt-space-ml);height:var(--watt-space-ml);background-color:var(--watt-color-primary-dark);border-radius:50%;box-shadow:0 0 0 1px var(--watt-color-primary);cursor:pointer}watt-slider input[type=range]::-moz-range-thumb{pointer-events:all;width:24px;height:24px;background-color:var(--watt-color-primary-dark);border-radius:50%;box-shadow:0 0 0 1px var(--watt-color-primary);cursor:pointer}watt-slider input[type=range]::-webkit-slider-thumb:active{box-shadow:inset 0 0 3px var(--watt-color-primary-dark),0 0 9px var(--watt-color-primary-dark);-webkit-box-shadow:inset 0 0 3px var(--watt-color-primary-dark),0 0 9px var(--watt-color-primary-dark);cursor:ew-resize}watt-slider input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:var(--watt-space-s);top:var(--watt-space-s)/2;left:0;right:0;position:absolute;transform:translateY(-50%);background-color:var(--watt-color-secondary-light);pointer-events:none;border-radius:var(--watt-space-s)}\n"] }]
120
119
  }], ctorParameters: () => [], propDecorators: { min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: true }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: true }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], maxRange: [{ type: i0.ViewChild, args: ['maxRange', { isSignal: true }] }], minRange: [{ type: i0.ViewChild, args: ['minRange', { isSignal: true }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
121
-
122
- //#region License
123
- /**
124
- * @license
125
- * Copyright 2020 Energinet DataHub A/S
126
- *
127
- * Licensed under the Apache License, Version 2.0 (the "License2");
128
- * you may not use this file except in compliance with the License.
129
- * You may obtain a copy of the License at
130
- *
131
- * http://www.apache.org/licenses/LICENSE-2.0
132
- *
133
- * Unless required by applicable law or agreed to in writing, software
134
- * distributed under the License is distributed on an "AS IS" BASIS,
135
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
136
- * See the License for the specific language governing permissions and
137
- * limitations under the License.
138
- */
139
- //#endregion
140
-
141
- /**
142
- * Generated bundle index. Do not edit.
143
- */
144
-
145
- export { WattSliderComponent };
146
- //# sourceMappingURL=energinet-watt-slider.mjs.map
120
+ //# sourceMappingURL=watt-slider.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watt-slider.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/slider/watt-slider.component.ts","../../../../libs/watt/package/slider/watt-slider.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 Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n output,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { fromEvent } from 'rxjs';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { WattColorHelperService } from '@energinet/watt/core/color';\n\nexport interface WattSliderValue {\n min: number;\n max: number;\n}\n\n/**\n * Slider for providing a range of values.\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n selector: 'watt-slider',\n styleUrls: ['./watt-slider.component.scss'],\n templateUrl: './watt-slider.component.html',\n})\nexport class WattSliderComponent {\n private readonly colorService = inject(WattColorHelperService);\n private readonly destroyRef = inject(DestroyRef);\n\n /** The lowest permitted value. */\n readonly min = input.required<number>();\n\n /** The highest permitted value. */\n readonly max = input.required<number>();\n\n /** Step between each value. */\n readonly step = input(1);\n\n /** The currently selected range value. */\n readonly value = input<WattSliderValue | undefined>();\n readonly currentValue = computed(() => {\n const inputValue = this.value();\n if (!inputValue) {\n return { min: this.min(), max: this.max() };\n }\n return inputValue;\n });\n\n readonly maxRange = viewChild.required<ElementRef<HTMLInputElement>>('maxRange');\n readonly minRange = viewChild.required<ElementRef<HTMLInputElement>>('minRange');\n\n readonly valueChange = output<WattSliderValue>();\n\n readonly sliderColor = this.colorService.getColor('secondaryLight');\n readonly rangeColor = this.colorService.getColor('primary');\n\n constructor() {\n effect(() => {\n const value = this.currentValue();\n this.updateRange(value.min, value.max);\n });\n\n effect(() => {\n const maxRange = this.maxRange();\n const minRange = this.minRange();\n\n const maxRangeElement = maxRange.nativeElement;\n const minRangeElement = minRange.nativeElement;\n\n // Setup max range input events\n fromEvent(maxRangeElement, 'input')\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((event) => {\n const maxValue = (event.target as HTMLInputElement).valueAsNumber;\n const minValue = minRangeElement.valueAsNumber;\n\n let newMaxValue = maxValue;\n if (minValue > maxValue) {\n newMaxValue = minValue;\n maxRangeElement.valueAsNumber = newMaxValue;\n }\n\n const newValue = { min: minValue, max: newMaxValue };\n this.updateRange(newValue.min, newValue.max);\n this.valueChange.emit(newValue);\n });\n\n // Setup min range input events\n fromEvent(minRangeElement, 'input')\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((event) => {\n const minValue = (event.target as HTMLInputElement).valueAsNumber;\n const maxValue = maxRangeElement.valueAsNumber;\n\n let newMinValue = minValue;\n if (minValue > maxValue) {\n newMinValue = maxValue;\n minRangeElement.valueAsNumber = newMinValue;\n }\n\n const newValue = { min: newMinValue, max: maxValue };\n this.updateRange(newValue.min, newValue.max);\n this.valueChange.emit(newValue);\n });\n });\n }\n\n private updateRange(minValue: number, maxValue: number) {\n const maxRange = this.maxRange();\n const minRange = this.minRange();\n if (!maxRange || !minRange) return;\n\n const maxRangeElement = maxRange.nativeElement;\n const minRangeElement = minRange.nativeElement;\n\n maxRangeElement.valueAsNumber = maxValue;\n minRangeElement.valueAsNumber = minValue;\n\n const rangeDistance = this.max() - this.min();\n const fromPosition = minValue - this.min();\n const toPosition = maxValue - this.min();\n\n maxRangeElement.style.background = `linear-gradient(\n to right,\n ${this.sliderColor} 0%,\n ${this.sliderColor} ${(fromPosition / rangeDistance) * 100}%,\n ${this.rangeColor} ${(fromPosition / rangeDistance) * 100}%,\n ${this.rangeColor} ${(toPosition / rangeDistance) * 100}%,\n ${this.sliderColor} ${(toPosition / rangeDistance) * 100}%,\n ${this.sliderColor} 100%)`;\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<div class=\"controls\">\n <input\n #minRange\n class=\"min-range\"\n [style.z-index]=\"1\"\n [style.height]=\"0\"\n type=\"range\"\n [max]=\"max()\"\n [min]=\"min()\"\n [step]=\"step()\"\n [value]=\"value()?.min\"\n />\n <input\n #maxRange\n class=\"max-range\"\n type=\"range\"\n [max]=\"max()\"\n [min]=\"min()\"\n [step]=\"step()\"\n [value]=\"value()?.max\"\n />\n</div>\n"]}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=energinet-watt-spinner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"energinet-watt-spinner.js","sourceRoot":"","sources":["../../../../libs/watt/package/spinner/energinet-watt-spinner.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 { WattSpinnerComponent } from './watt-spinner.component';
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/spinner/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { WattSpinnerComponent } from './watt-spinner.component';\n"]}
@@ -1,6 +1,3 @@
1
- import * as i0 from '@angular/core';
2
- import { computed, input, Component } from '@angular/core';
3
-
4
1
  //#region License
5
2
  /**
6
3
  * @license
@@ -19,11 +16,13 @@ import { computed, input, Component } from '@angular/core';
19
16
  * limitations under the License.
20
17
  */
21
18
  //#endregion
19
+ import { Component, computed, input } from '@angular/core';
20
+ import * as i0 from "@angular/core";
22
21
  /**
23
22
  * Usage:
24
23
  * `import { WattSpinnerComponent } from '@energinet/watt/spinner';`
25
24
  */
26
- class WattSpinnerComponent {
25
+ export class WattSpinnerComponent {
27
26
  /**
28
27
  * @ignore
29
28
  */
@@ -44,29 +43,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
44
43
  <circle class="path" cx="25" cy="25" r="20" fill="none" [attr.stroke-width]="strokeWidth()" />
45
44
  </svg>`, styles: [":host{--watt-spinner-circle-color: var(--watt-color-primary);display:block;width:var(--watt-spinner-diameter);height:var(--watt-spinner-diameter);position:relative}.spinner{animation:rotate 2s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:calc(var(--watt-spinner-diameter) / 2 * -1) 0 0 calc(var(--watt-spinner-diameter) / 2 * -1);width:var(--watt-spinner-diameter);height:var(--watt-spinner-diameter)}.spinner .path{stroke:var(--watt-spinner-circle-color);stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}\n"] }]
46
45
  }], propDecorators: { diameter: [{ type: i0.Input, args: [{ isSignal: true, alias: "diameter", required: false }] }], strokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "strokeWidth", required: false }] }] } });
47
-
48
- //#region License
49
- /**
50
- * @license
51
- * Copyright 2020 Energinet DataHub A/S
52
- *
53
- * Licensed under the Apache License, Version 2.0 (the "License2");
54
- * you may not use this file except in compliance with the License.
55
- * You may obtain a copy of the License at
56
- *
57
- * http://www.apache.org/licenses/LICENSE-2.0
58
- *
59
- * Unless required by applicable law or agreed to in writing, software
60
- * distributed under the License is distributed on an "AS IS" BASIS,
61
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
62
- * See the License for the specific language governing permissions and
63
- * limitations under the License.
64
- */
65
- //#endregion
66
-
67
- /**
68
- * Generated bundle index. Do not edit.
69
- */
70
-
71
- export { WattSpinnerComponent };
72
- //# sourceMappingURL=energinet-watt-spinner.mjs.map
46
+ //# sourceMappingURL=watt-spinner.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watt-spinner.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/spinner/watt-spinner.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;;AAE3D;;;GAGG;AA4DH,MAAM,OAAO,oBAAoB;IAC/B;;OAEG;IACH,YAAY,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,4BAA4B,IAAI,CAAC,QAAQ,EAAE,IAAI,wDAAC,CAAC;IAE/E,QAAQ,GAAG,KAAK,CAAC,EAAE,oDAAC,CAAC;IACrB,WAAW,GAAG,KAAK,CAAC,CAAC,uDAAC,CAAC;wGAPZ,oBAAoB;4FAApB,oBAAoB,2bAJrB;;SAEH;;4FAEI,oBAAoB;kBA3DhC,SAAS;+BACE,cAAc,QAkDlB;wBACJ,IAAI,EAAE,aAAa;wBACnB,SAAS,EAAE,gBAAgB;qBAC5B,YACS;;SAEH","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, computed, input } from '@angular/core';\n\n/**\n * Usage:\n * `import { WattSpinnerComponent } from '@energinet/watt/spinner';`\n */\n@Component({\n selector: 'watt-spinner',\n styles: `\n :host {\n --watt-spinner-circle-color: var(--watt-color-primary);\n\n display: block;\n width: var(--watt-spinner-diameter);\n height: var(--watt-spinner-diameter);\n position: relative;\n }\n\n .spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: calc(var(--watt-spinner-diameter) / 2 * -1) 0 0\n calc(var(--watt-spinner-diameter) / 2 * -1);\n width: var(--watt-spinner-diameter);\n height: var(--watt-spinner-diameter);\n\n & .path {\n stroke: var(--watt-spinner-circle-color);\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n }\n }\n\n @keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n }\n\n @keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n }\n `,\n host: {\n role: 'progressbar',\n '[style]': 'diameterSize()',\n },\n template: `<svg class=\"spinner\" viewBox=\"0 0 50 50\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" [attr.stroke-width]=\"strokeWidth()\" />\n </svg>`,\n})\nexport class WattSpinnerComponent {\n /**\n * @ignore\n */\n diameterSize = computed(() => `--watt-spinner-diameter: ${this.diameter()}px`);\n\n diameter = input(44);\n strokeWidth = input(5);\n}\n"]}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=energinet-watt-stepper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"energinet-watt-stepper.js","sourceRoot":"","sources":["../../../../libs/watt/package/stepper/energinet-watt-stepper.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 { WATT_STEPPER, WattStepperComponent } from './watt-stepper.component';
20
+ export { WattStepperStepComponent, WattStep } from './watt-stepper-step.component';
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/stepper/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,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 { WATT_STEPPER, WattStepperComponent } from './watt-stepper.component';\nexport { WattStepperStepComponent, WattStep } from './watt-stepper-step.component';\n"]}
@@ -0,0 +1,49 @@
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, input, output, viewChild } from '@angular/core';
20
+ import { MatStep } from '@angular/material/stepper';
21
+ import { CdkStep } from '@angular/cdk/stepper';
22
+ import * as i0 from "@angular/core";
23
+ export { CdkStep as WattStep };
24
+ export class WattStepperStepComponent extends MatStep {
25
+ templateRef = viewChild('templateRef', ...(ngDevMode ? [{ debugName: "templateRef" }] : []));
26
+ nextButtonLabel = input(...(ngDevMode ? [undefined, { debugName: "nextButtonLabel" }] : []));
27
+ disableNextButton = input(false, ...(ngDevMode ? [{ debugName: "disableNextButton" }] : []));
28
+ loadingNextButton = input(false, ...(ngDevMode ? [{ debugName: "loadingNextButton" }] : []));
29
+ previousButtonLabel = input(...(ngDevMode ? [undefined, { debugName: "previousButtonLabel" }] : []));
30
+ enabled = input(true, ...(ngDevMode ? [{ debugName: "enabled" }] : []));
31
+ disablePreviousButton = input(false, ...(ngDevMode ? [{ debugName: "disablePreviousButton" }] : []));
32
+ entering = output();
33
+ leaving = output();
34
+ next = output();
35
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattStepperStepComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
36
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.15", type: WattStepperStepComponent, isStandalone: true, selector: "watt-stepper-step", inputs: { nextButtonLabel: { classPropertyName: "nextButtonLabel", publicName: "nextButtonLabel", isSignal: true, isRequired: false, transformFunction: null }, disableNextButton: { classPropertyName: "disableNextButton", publicName: "disableNextButton", isSignal: true, isRequired: false, transformFunction: null }, loadingNextButton: { classPropertyName: "loadingNextButton", publicName: "loadingNextButton", isSignal: true, isRequired: false, transformFunction: null }, previousButtonLabel: { classPropertyName: "previousButtonLabel", publicName: "previousButtonLabel", isSignal: true, isRequired: false, transformFunction: null }, enabled: { classPropertyName: "enabled", publicName: "enabled", isSignal: true, isRequired: false, transformFunction: null }, disablePreviousButton: { classPropertyName: "disablePreviousButton", publicName: "disablePreviousButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { entering: "entering", leaving: "leaving", next: "next" }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: ` <ng-template #templateRef>
37
+ <ng-content />
38
+ </ng-template>`, isInline: true });
39
+ }
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattStepperStepComponent, decorators: [{
41
+ type: Component,
42
+ args: [{
43
+ selector: 'watt-stepper-step',
44
+ template: ` <ng-template #templateRef>
45
+ <ng-content />
46
+ </ng-template>`,
47
+ }]
48
+ }], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], nextButtonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextButtonLabel", required: false }] }], disableNextButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableNextButton", required: false }] }], loadingNextButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingNextButton", required: false }] }], previousButtonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "previousButtonLabel", required: false }] }], enabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "enabled", required: false }] }], disablePreviousButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "disablePreviousButton", required: false }] }], entering: [{ type: i0.Output, args: ["entering"] }], leaving: [{ type: i0.Output, args: ["leaving"] }], next: [{ type: i0.Output, args: ["next"] }] } });
49
+ //# sourceMappingURL=watt-stepper-step.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watt-stepper-step.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/stepper/watt-stepper-step.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAe,SAAS,EAAE,MAAM,eAAe,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;;AAE/C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,CAAC;AAQ/B,MAAM,OAAO,wBAAyB,SAAQ,OAAO;IACnC,WAAW,GAAG,SAAS,CAAuB,aAAa,uDAAC,CAAC;IAE7E,eAAe,GAAG,KAAK,qEAAU,CAAC;IAClC,iBAAiB,GAAG,KAAK,CAAU,KAAK,6DAAC,CAAC;IAC1C,iBAAiB,GAAG,KAAK,CAAU,KAAK,6DAAC,CAAC;IAC1C,mBAAmB,GAAG,KAAK,yEAAU,CAAC;IACtC,OAAO,GAAG,KAAK,CAAU,IAAI,mDAAC,CAAC;IAC/B,qBAAqB,GAAG,KAAK,CAAU,KAAK,iEAAC,CAAC;IAE9C,QAAQ,GAAG,MAAM,EAAW,CAAC;IAC7B,OAAO,GAAG,MAAM,EAAW,CAAC;IAC5B,IAAI,GAAG,MAAM,EAAQ,CAAC;wGAZX,wBAAwB;4FAAxB,wBAAwB,usCAJzB;;iBAEK;;4FAEJ,wBAAwB;kBANpC,SAAS;mBAAC;oBACT,QAAQ,EAAE,mBAAmB;oBAC7B,QAAQ,EAAE;;iBAEK;iBAChB;yEAE+D,aAAa","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, input, output, TemplateRef, viewChild } from '@angular/core';\nimport { MatStep } from '@angular/material/stepper';\nimport { CdkStep } from '@angular/cdk/stepper';\n\nexport { CdkStep as WattStep };\n\n@Component({\n selector: 'watt-stepper-step',\n template: ` <ng-template #templateRef>\n <ng-content />\n </ng-template>`,\n})\nexport class WattStepperStepComponent extends MatStep {\n public readonly templateRef = viewChild<TemplateRef<unknown>>('templateRef');\n\n nextButtonLabel = input<string>();\n disableNextButton = input<boolean>(false);\n loadingNextButton = input<boolean>(false);\n previousButtonLabel = input<string>();\n enabled = input<boolean>(true);\n disablePreviousButton = input<boolean>(false);\n\n entering = output<CdkStep>();\n leaving = output<CdkStep>();\n next = output<void>();\n}\n"]}
@@ -1,60 +1,3 @@
1
- import * as i0 from '@angular/core';
2
- import { viewChild, input, output, Component, EventEmitter, inject, DestroyRef, ViewChild, ContentChildren, Input, Output, ViewEncapsulation } from '@angular/core';
3
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
- import { NgTemplateOutlet } from '@angular/common';
5
- import { STEPPER_GLOBAL_OPTIONS, CdkStepper } from '@angular/cdk/stepper';
6
- export { CdkStep as WattStep } from '@angular/cdk/stepper';
7
- import * as i1 from '@angular/material/stepper';
8
- import { MatStep, MatStepper, MatStepperModule } from '@angular/material/stepper';
9
- import { RxPush } from '@rx-angular/template/push';
10
- import { from, withLatestFrom, of, map, startWith } from 'rxjs';
11
- import { WattButtonComponent } from '@energinet/watt/button';
12
- import { WattIconComponent } from '@energinet/watt/icon';
13
-
14
- //#region License
15
- /**
16
- * @license
17
- * Copyright 2020 Energinet DataHub A/S
18
- *
19
- * Licensed under the Apache License, Version 2.0 (the "License2");
20
- * you may not use this file except in compliance with the License.
21
- * You may obtain a copy of the License at
22
- *
23
- * http://www.apache.org/licenses/LICENSE-2.0
24
- *
25
- * Unless required by applicable law or agreed to in writing, software
26
- * distributed under the License is distributed on an "AS IS" BASIS,
27
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28
- * See the License for the specific language governing permissions and
29
- * limitations under the License.
30
- */
31
- //#endregion
32
- class WattStepperStepComponent extends MatStep {
33
- templateRef = viewChild('templateRef', ...(ngDevMode ? [{ debugName: "templateRef" }] : []));
34
- nextButtonLabel = input(...(ngDevMode ? [undefined, { debugName: "nextButtonLabel" }] : []));
35
- disableNextButton = input(false, ...(ngDevMode ? [{ debugName: "disableNextButton" }] : []));
36
- loadingNextButton = input(false, ...(ngDevMode ? [{ debugName: "loadingNextButton" }] : []));
37
- previousButtonLabel = input(...(ngDevMode ? [undefined, { debugName: "previousButtonLabel" }] : []));
38
- enabled = input(true, ...(ngDevMode ? [{ debugName: "enabled" }] : []));
39
- disablePreviousButton = input(false, ...(ngDevMode ? [{ debugName: "disablePreviousButton" }] : []));
40
- entering = output();
41
- leaving = output();
42
- next = output();
43
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattStepperStepComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
44
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.15", type: WattStepperStepComponent, isStandalone: true, selector: "watt-stepper-step", inputs: { nextButtonLabel: { classPropertyName: "nextButtonLabel", publicName: "nextButtonLabel", isSignal: true, isRequired: false, transformFunction: null }, disableNextButton: { classPropertyName: "disableNextButton", publicName: "disableNextButton", isSignal: true, isRequired: false, transformFunction: null }, loadingNextButton: { classPropertyName: "loadingNextButton", publicName: "loadingNextButton", isSignal: true, isRequired: false, transformFunction: null }, previousButtonLabel: { classPropertyName: "previousButtonLabel", publicName: "previousButtonLabel", isSignal: true, isRequired: false, transformFunction: null }, enabled: { classPropertyName: "enabled", publicName: "enabled", isSignal: true, isRequired: false, transformFunction: null }, disablePreviousButton: { classPropertyName: "disablePreviousButton", publicName: "disablePreviousButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { entering: "entering", leaving: "leaving", next: "next" }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: ` <ng-template #templateRef>
45
- <ng-content />
46
- </ng-template>`, isInline: true });
47
- }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattStepperStepComponent, decorators: [{
49
- type: Component,
50
- args: [{
51
- selector: 'watt-stepper-step',
52
- template: ` <ng-template #templateRef>
53
- <ng-content />
54
- </ng-template>`,
55
- }]
56
- }], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], nextButtonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextButtonLabel", required: false }] }], disableNextButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableNextButton", required: false }] }], loadingNextButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingNextButton", required: false }] }], previousButtonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "previousButtonLabel", required: false }] }], enabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "enabled", required: false }] }], disablePreviousButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "disablePreviousButton", required: false }] }], entering: [{ type: i0.Output, args: ["entering"] }], leaving: [{ type: i0.Output, args: ["leaving"] }], next: [{ type: i0.Output, args: ["next"] }] } });
57
-
58
1
  //#region License
59
2
  /**
60
3
  * @license
@@ -73,7 +16,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
73
16
  * limitations under the License.
74
17
  */
75
18
  //#endregion
76
- class WattStepperComponent extends MatStepper {
19
+ import { Component, ContentChildren, DestroyRef, EventEmitter, inject, Input, Output, QueryList, ViewChild, ViewEncapsulation, } from '@angular/core';
20
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
21
+ import { NgTemplateOutlet } from '@angular/common';
22
+ import { CdkStepper, STEPPER_GLOBAL_OPTIONS } from '@angular/cdk/stepper';
23
+ import { MatStepper, MatStepperModule } from '@angular/material/stepper';
24
+ import { RxPush } from '@rx-angular/template/push';
25
+ import { from, map, of, startWith, withLatestFrom } from 'rxjs';
26
+ import { WattButtonComponent } from '@energinet/watt/button';
27
+ import { WattIconComponent } from '@energinet/watt/icon';
28
+ import { WattStepperStepComponent } from './watt-stepper-step.component';
29
+ import * as i0 from "@angular/core";
30
+ import * as i1 from "@angular/material/stepper";
31
+ export class WattStepperComponent extends MatStepper {
77
32
  completed = new EventEmitter();
78
33
  isCompleting = false;
79
34
  _steps;
@@ -138,30 +93,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
138
93
  type: ViewChild,
139
94
  args: [MatStepper]
140
95
  }] } });
141
- const WATT_STEPPER = [WattStepperComponent, WattStepperStepComponent];
142
-
143
- //#region License
144
- /**
145
- * @license
146
- * Copyright 2020 Energinet DataHub A/S
147
- *
148
- * Licensed under the Apache License, Version 2.0 (the "License2");
149
- * you may not use this file except in compliance with the License.
150
- * You may obtain a copy of the License at
151
- *
152
- * http://www.apache.org/licenses/LICENSE-2.0
153
- *
154
- * Unless required by applicable law or agreed to in writing, software
155
- * distributed under the License is distributed on an "AS IS" BASIS,
156
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
157
- * See the License for the specific language governing permissions and
158
- * limitations under the License.
159
- */
160
- //#endregion
161
-
162
- /**
163
- * Generated bundle index. Do not edit.
164
- */
165
-
166
- export { WATT_STEPPER, WattStepperComponent, WattStepperStepComponent };
167
- //# sourceMappingURL=energinet-watt-stepper.mjs.map
96
+ export const WATT_STEPPER = [WattStepperComponent, WattStepperStepComponent];
97
+ //# sourceMappingURL=watt-stepper.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watt-stepper.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/stepper/watt-stepper.component.ts","../../../../libs/watt/package/stepper/watt-stepper.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 AfterViewInit,\n Component,\n ContentChildren,\n DestroyRef,\n EventEmitter,\n inject,\n Input,\n Output,\n QueryList,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { CdkStepper, STEPPER_GLOBAL_OPTIONS, StepperSelectionEvent } from '@angular/cdk/stepper';\nimport { MatStepper, MatStepperModule } from '@angular/material/stepper';\nimport { RxPush } from '@rx-angular/template/push';\nimport { from, map, Observable, of, startWith, withLatestFrom } from 'rxjs';\n\nimport { WattButtonComponent } from '@energinet/watt/button';\nimport { WattIconComponent } from '@energinet/watt/icon';\n\nimport { WattStepperStepComponent } from './watt-stepper-step.component';\n\n@Component({\n selector: 'watt-stepper',\n templateUrl: './watt-stepper.component.html',\n styleUrls: ['./watt-stepper.component.scss'],\n encapsulation: ViewEncapsulation.None,\n imports: [NgTemplateOutlet, RxPush, MatStepperModule, WattIconComponent, WattButtonComponent],\n providers: [\n {\n provide: STEPPER_GLOBAL_OPTIONS,\n useValue: { showError: true, displayDefaultIndicatorType: false },\n },\n { provide: CdkStepper, useExisting: WattStepperComponent },\n { provide: MatStepper, useExisting: WattStepperComponent },\n ],\n})\nexport class WattStepperComponent extends MatStepper implements AfterViewInit {\n @Output() completed = new EventEmitter<void>();\n @Input() isCompleting = false;\n\n @ContentChildren(WattStepperStepComponent, { descendants: true })\n declare _steps: QueryList<WattStepperStepComponent>;\n\n @ViewChild(MatStepper) stepper!: MatStepper;\n\n selectedIndexChanged$!: Observable<StepperSelectionEvent>;\n onFirstStep$!: Observable<boolean>;\n onLastStep$!: Observable<boolean>;\n\n private destroyRef = inject(DestroyRef);\n\n override reset() {\n this.stepper.reset();\n }\n\n override ngAfterViewInit(): void {\n this.selectedIndexChanged$ = from(this.stepper.selectionChange);\n this.onLastStep$ = this.selectedIndexChanged$.pipe(\n withLatestFrom(of(this._steps)),\n map(([index, steps]) => index.selectedIndex === steps.filter((x) => x.enabled()).length - 1),\n startWith(false)\n );\n this.onFirstStep$ = this.selectedIndexChanged$.pipe(\n map((index) => index.selectedIndex === 0),\n startWith(true)\n );\n\n // Emit entering and leaving events\n this.selectedIndexChanged$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((change) => {\n this._steps.get(change.selectedIndex)?.entering.emit(change.selectedStep);\n this._steps.get(change.previouslySelectedIndex)?.leaving.emit(change.previouslySelectedStep);\n });\n }\n\n nextStep(step: WattStepperStepComponent): void {\n step.next.emit();\n this.stepper.selected?.stepControl?.markAllAsTouched();\n this.stepper.next();\n }\n\n previousStep(): void {\n this.stepper.previous();\n }\n\n complete(): void {\n this.stepper.selected?.stepControl?.markAllAsTouched();\n this.completed.emit();\n }\n}\n\nexport const WATT_STEPPER = [WattStepperComponent, WattStepperStepComponent];\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-stepper\n #stepper\n [disableRipple]=\"disableRipple\"\n [linear]=\"true\"\n animationDuration=\"0\"\n class=\"watt-stepper\"\n>\n <ng-template let-index=\"index\" matStepperIcon=\"edit\">\n {{ index + 1 }}\n </ng-template>\n <ng-template matStepperIcon=\"done\">\n <watt-icon name=\"checkmark\" />\n </ng-template>\n <ng-template let-index=\"index\" matStepperIcon=\"number\">\n @if (\n stepper.steps.get(index)?.completed &&\n stepper.steps.get(index)?.interacted &&\n index !== stepper.selectedIndex\n ) {\n <watt-icon name=\"checkmark\" />\n } @else {\n {{ index + 1 }}\n }\n </ng-template>\n <ng-template let-index=\"index\" matStepperIcon=\"error\">\n {{ index + 1 }}\n </ng-template>\n @for (step of _steps; track step) {\n @if (step.enabled()) {\n <mat-step [editable]=\"step.editable\" [stepControl]=\"step.stepControl\">\n <ng-template matStepLabel>{{ step.label }}</ng-template>\n <div class=\"watt-stepper-content-wrapper\">\n <ng-container *ngTemplateOutlet=\"step.templateRef()\" />\n </div>\n <div class=\"watt-stepper-button-wrapper\">\n @if (!(onFirstStep$ | push)) {\n <watt-button\n [disabled]=\"step.disablePreviousButton()\"\n variant=\"secondary\"\n (click)=\"previousStep()\"\n >\n <watt-icon name=\"left\" />\n {{ step.previousButtonLabel() }}\n </watt-button>\n }\n\n @if (!(onLastStep$ | push)) {\n <watt-button\n variant=\"secondary\"\n (click)=\"nextStep(step)\"\n [loading]=\"step.loadingNextButton()\"\n [disabled]=\"step.disableNextButton()\"\n >\n {{ step.nextButtonLabel() }}\n <watt-icon name=\"right\" />\n </watt-button>\n }\n\n @if (onLastStep$ | push) {\n <watt-button\n variant=\"primary\"\n [loading]=\"isCompleting\"\n (click)=\"complete()\"\n [disabled]=\"step.disableNextButton()\"\n >{{ step.nextButtonLabel() }}\n </watt-button>\n }\n </div>\n </mat-step>\n }\n }\n</mat-stepper>\n"]}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=energinet-watt-table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"energinet-watt-table.js","sourceRoot":"","sources":["../../../../libs/watt/package/table/energinet-watt-table.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 { WattTableDataSource, dataSource } from './watt-table-data-source';
20
+ export { WattTableComponent, WattTableCellDirective, WattTableToolbarDirective, WATT_TABLE, } from './watt-table.component';
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/table/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAwB,mBAAmB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACjG,OAAO,EAGL,kBAAkB,EAClB,sBAAsB,EACtB,yBAAyB,EACzB,UAAU,GACX,MAAM,wBAAwB,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 { IWattTableDataSource, WattTableDataSource, dataSource } from './watt-table-data-source';\nexport {\n type WattTableColumn,\n type WattTableColumnDef,\n WattTableComponent,\n WattTableCellDirective,\n WattTableToolbarDirective,\n WATT_TABLE,\n} from './watt-table.component';\n"]}
@@ -0,0 +1,27 @@
1
+ import { computed, effect } from '@angular/core';
2
+ import { MatTableDataSource } from '@angular/material/table';
3
+ /**
4
+ * @see https://material.angular.dev/components/table/api#MatTableDataSource
5
+ */
6
+ export class WattTableDataSource extends MatTableDataSource {
7
+ constructor(initialData, config = { disableClientSideSort: false }) {
8
+ super(initialData);
9
+ if (config.disableClientSideSort)
10
+ this.sortData = (data) => {
11
+ return data;
12
+ };
13
+ }
14
+ get totalCount() {
15
+ return this.data.length;
16
+ }
17
+ }
18
+ /** Convenience method for creating a data source from reactive input. */
19
+ export const dataSource = (computation) => {
20
+ const data = computed(computation, ...(ngDevMode ? [{ debugName: "data" }] : []));
21
+ const dataSource = new WattTableDataSource();
22
+ effect(() => {
23
+ dataSource.data = data();
24
+ });
25
+ return dataSource;
26
+ };
27
+ //# sourceMappingURL=watt-table-data-source.js.map