@energinet/watt 4.2.13 → 4.2.15-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (842) hide show
  1. package/{esm2022/badge/watt-badge.component.js → fesm2022/energinet-watt-badge.mjs} +30 -4
  2. package/fesm2022/energinet-watt-badge.mjs.map +1 -0
  3. package/{esm2022/breadcrumbs/watt-breadcrumbs.component.js → fesm2022/energinet-watt-breadcrumbs.mjs} +36 -10
  4. package/fesm2022/energinet-watt-breadcrumbs.mjs.map +1 -0
  5. package/{esm2022/button/watt-button.component.js → fesm2022/energinet-watt-button.mjs} +36 -10
  6. package/fesm2022/energinet-watt-button.mjs.map +1 -0
  7. package/{esm2022/card/watt-card.component.js → fesm2022/energinet-watt-card.mjs} +63 -7
  8. package/fesm2022/energinet-watt-card.mjs.map +1 -0
  9. package/{esm2022/checkbox/watt-checkbox.component.js → fesm2022/energinet-watt-checkbox.mjs} +32 -6
  10. package/fesm2022/energinet-watt-checkbox.mjs.map +1 -0
  11. package/fesm2022/energinet-watt-chip.mjs +694 -0
  12. package/fesm2022/energinet-watt-chip.mjs.map +1 -0
  13. package/{esm2022/clipboard/watt-copy-to-clipboard.directive.js → fesm2022/energinet-watt-clipboard.mjs} +61 -7
  14. package/fesm2022/energinet-watt-clipboard.mjs.map +1 -0
  15. package/{esm2022/code/watt-code.component.js → fesm2022/energinet-watt-code.mjs} +83 -11
  16. package/fesm2022/energinet-watt-code.mjs.map +1 -0
  17. package/fesm2022/energinet-watt-core-breakpoints.mjs +97 -0
  18. package/fesm2022/energinet-watt-core-breakpoints.mjs.map +1 -0
  19. package/fesm2022/energinet-watt-core-color.mjs +124 -0
  20. package/fesm2022/energinet-watt-core-color.mjs.map +1 -0
  21. package/fesm2022/energinet-watt-core-date.mjs +256 -0
  22. package/fesm2022/energinet-watt-core-date.mjs.map +1 -0
  23. package/{esm2022/data/watt-data-table.component.js → fesm2022/energinet-watt-data.mjs} +136 -14
  24. package/fesm2022/energinet-watt-data.mjs.map +1 -0
  25. package/{esm2022/datetime-field/watt-datetime-field.component.js → fesm2022/energinet-watt-datetime-field.mjs} +40 -14
  26. package/fesm2022/energinet-watt-datetime-field.mjs.map +1 -0
  27. package/{esm2022/description-list/watt-description-list.component.js → fesm2022/energinet-watt-description-list.mjs} +77 -8
  28. package/fesm2022/energinet-watt-description-list.mjs.map +1 -0
  29. package/{esm2022/drawer/watt-drawer.component.js → fesm2022/energinet-watt-drawer.mjs} +150 -17
  30. package/fesm2022/energinet-watt-drawer.mjs.map +1 -0
  31. package/{esm2022/dropdown/watt-dropdown.component.js → fesm2022/energinet-watt-dropdown.mjs} +44 -18
  32. package/fesm2022/energinet-watt-dropdown.mjs.map +1 -0
  33. package/{esm2022/dropzone/watt-dropzone.js → fesm2022/energinet-watt-dropzone.mjs} +133 -14
  34. package/fesm2022/energinet-watt-dropzone.mjs.map +1 -0
  35. package/{esm2022/empty-state/icons/not-found.js → fesm2022/energinet-watt-empty-state.mjs} +301 -4
  36. package/fesm2022/energinet-watt-empty-state.mjs.map +1 -0
  37. package/{esm2022/expandable-card/watt-expandable-card.component.js → fesm2022/energinet-watt-expandable-card.mjs} +40 -9
  38. package/fesm2022/energinet-watt-expandable-card.mjs.map +1 -0
  39. package/{esm2022/field/watt-field.component.js → fesm2022/energinet-watt-field.mjs} +149 -14
  40. package/fesm2022/energinet-watt-field.mjs.map +1 -0
  41. package/{esm2022/file-field/watt-file-field.component.js → fesm2022/energinet-watt-file-field.mjs} +32 -6
  42. package/fesm2022/energinet-watt-file-field.mjs.map +1 -0
  43. package/fesm2022/energinet-watt-icon-flags.mjs +547 -0
  44. package/fesm2022/energinet-watt-icon-flags.mjs.map +1 -0
  45. package/{esm2022/icon/icon.component.js → fesm2022/energinet-watt-icon.mjs} +133 -6
  46. package/fesm2022/energinet-watt-icon.mjs.map +1 -0
  47. package/fesm2022/energinet-watt-menu.mjs +282 -0
  48. package/fesm2022/energinet-watt-menu.mjs.map +1 -0
  49. package/{esm2022/modal/watt-modal.component.js → fesm2022/energinet-watt-modal.mjs} +109 -13
  50. package/fesm2022/energinet-watt-modal.mjs.map +1 -0
  51. package/{esm2022/paginator/watt-paginator.component.js → fesm2022/energinet-watt-paginator.mjs} +71 -11
  52. package/fesm2022/energinet-watt-paginator.mjs.map +1 -0
  53. package/{esm2022/phone-field/watt-phone-field.component.js → fesm2022/energinet-watt-phone-field.mjs} +80 -16
  54. package/fesm2022/energinet-watt-phone-field.mjs.map +1 -0
  55. package/fesm2022/energinet-watt-picker-__shared.mjs +292 -0
  56. package/fesm2022/energinet-watt-picker-__shared.mjs.map +1 -0
  57. package/{esm2022/picker/datepicker/watt-datepicker.component.js → fesm2022/energinet-watt-picker-datepicker.mjs} +71 -16
  58. package/fesm2022/energinet-watt-picker-datepicker.mjs.map +1 -0
  59. package/{esm2022/picker/timepicker/watt-timepicker.component.js → fesm2022/energinet-watt-picker-timepicker.mjs} +126 -20
  60. package/fesm2022/energinet-watt-picker-timepicker.mjs.map +1 -0
  61. package/{esm2022/progress-tracker/watt-progress-tracker-step.component.js → fesm2022/energinet-watt-progress-tracker.mjs} +64 -6
  62. package/fesm2022/energinet-watt-progress-tracker.mjs.map +1 -0
  63. package/{esm2022/query-params/watt-query-params.directive.js → fesm2022/energinet-watt-query-params.mjs} +32 -6
  64. package/fesm2022/energinet-watt-query-params.mjs.map +1 -0
  65. package/{esm2022/radio/watt-radio.component.js → fesm2022/energinet-watt-radio.mjs} +146 -5
  66. package/fesm2022/energinet-watt-radio.mjs.map +1 -0
  67. package/{esm2022/search/watt-search.component.js → fesm2022/energinet-watt-search.mjs} +33 -7
  68. package/fesm2022/energinet-watt-search.mjs.map +1 -0
  69. package/{esm2022/segmented-buttons/watt-segmented-buttons.component.js → fesm2022/energinet-watt-segmented-buttons.mjs} +77 -11
  70. package/fesm2022/energinet-watt-segmented-buttons.mjs.map +1 -0
  71. package/fesm2022/energinet-watt-shell.mjs +303 -0
  72. package/fesm2022/energinet-watt-shell.mjs.map +1 -0
  73. package/{esm2022/slide-toggle/watt-slide-toggle.component.js → fesm2022/energinet-watt-slide-toggle.mjs} +34 -8
  74. package/fesm2022/energinet-watt-slide-toggle.mjs.map +1 -0
  75. package/{esm2022/slider/watt-slider.component.js → fesm2022/energinet-watt-slider.mjs} +33 -7
  76. package/fesm2022/energinet-watt-slider.mjs.map +1 -0
  77. package/{esm2022/spinner/watt-spinner.component.js → fesm2022/energinet-watt-spinner.mjs} +30 -4
  78. package/fesm2022/energinet-watt-spinner.mjs.map +1 -0
  79. package/{esm2022/stepper/watt-stepper.component.js → fesm2022/energinet-watt-stepper.mjs} +85 -15
  80. package/fesm2022/energinet-watt-stepper.mjs.map +1 -0
  81. package/{esm2022/table/watt-table.component.js → fesm2022/energinet-watt-table.mjs} +136 -24
  82. package/fesm2022/energinet-watt-table.mjs.map +1 -0
  83. package/fesm2022/energinet-watt-tabs.mjs +254 -0
  84. package/fesm2022/energinet-watt-tabs.mjs.map +1 -0
  85. package/{esm2022/text-field/watt-text-field.component.js → fesm2022/energinet-watt-text-field.mjs} +36 -10
  86. package/fesm2022/energinet-watt-text-field.mjs.map +1 -0
  87. package/{esm2022/textarea-field/watt-textarea-field.component.js → fesm2022/energinet-watt-textarea-field.mjs} +32 -6
  88. package/fesm2022/energinet-watt-textarea-field.mjs.map +1 -0
  89. package/{esm2022/toast/watt-toast.component.js → fesm2022/energinet-watt-toast.mjs} +82 -9
  90. package/fesm2022/energinet-watt-toast.mjs.map +1 -0
  91. package/{esm2022/tooltip/watt-tooltip.component.js → fesm2022/energinet-watt-tooltip.mjs} +98 -8
  92. package/fesm2022/energinet-watt-tooltip.mjs.map +1 -0
  93. package/{esm2022/utils/css/css-custom-properties.service.js → fesm2022/energinet-watt-utils-css.mjs} +30 -4
  94. package/fesm2022/energinet-watt-utils-css.mjs.map +1 -0
  95. package/{esm2022/utils/intersection-observer/watt-intersection-observer.service.js → fesm2022/energinet-watt-utils-intersection-observer.mjs} +31 -5
  96. package/fesm2022/energinet-watt-utils-intersection-observer.mjs.map +1 -0
  97. package/fesm2022/energinet-watt-utils-resize-observer.mjs +143 -0
  98. package/fesm2022/energinet-watt-utils-resize-observer.mjs.map +1 -0
  99. package/{esm2022/validation-message/watt-validation-message.component.js → fesm2022/energinet-watt-validation-message.mjs} +31 -5
  100. package/fesm2022/energinet-watt-validation-message.mjs.map +1 -0
  101. package/{esm2022/validators/watt-range.validators.js → fesm2022/energinet-watt-validators.mjs} +28 -2
  102. package/fesm2022/energinet-watt-validators.mjs.map +1 -0
  103. package/fesm2022/energinet-watt-vater.mjs +248 -0
  104. package/fesm2022/energinet-watt-vater.mjs.map +1 -0
  105. package/{esm2022/year-field/watt-year-field.component.js → fesm2022/energinet-watt-year-field.mjs} +39 -13
  106. package/fesm2022/energinet-watt-year-field.mjs.map +1 -0
  107. package/{esm2022/yearmonth-field/watt-yearmonth-field.component.js → fesm2022/energinet-watt-yearmonth-field.mjs} +79 -13
  108. package/fesm2022/energinet-watt-yearmonth-field.mjs.map +1 -0
  109. package/{esm2022/index.js → fesm2022/energinet-watt.mjs} +8 -2
  110. package/fesm2022/energinet-watt.mjs.map +1 -0
  111. package/package.json +89 -89
  112. package/types/energinet-watt-badge.d.ts +19 -0
  113. package/{breadcrumbs/watt-breadcrumbs.component.d.ts → types/energinet-watt-breadcrumbs.d.ts} +10 -7
  114. package/types/energinet-watt-button.d.ts +23 -0
  115. package/types/energinet-watt-card.d.ts +24 -0
  116. package/types/energinet-watt-checkbox.d.ts +20 -0
  117. package/types/energinet-watt-chip.d.ts +104 -0
  118. package/types/energinet-watt-clipboard.d.ts +22 -0
  119. package/types/energinet-watt-code.d.ts +56 -0
  120. package/{core/breakpoints/breakpoints.d.ts → types/energinet-watt-core-breakpoints.d.ts} +27 -2
  121. package/{core/color/colors.d.ts → types/energinet-watt-core-color.d.ts} +15 -2
  122. package/types/energinet-watt-core-date.d.ts +154 -0
  123. package/types/energinet-watt-data.d.ts +61 -0
  124. package/types/energinet-watt-datetime-field.d.ts +44 -0
  125. package/types/energinet-watt-description-list.d.ts +32 -0
  126. package/{drawer/watt-drawer.component.d.ts → types/energinet-watt-drawer.d.ts} +35 -28
  127. package/types/energinet-watt-dropdown.d.ts +167 -0
  128. package/types/energinet-watt-dropzone.d.ts +67 -0
  129. package/types/energinet-watt-empty-state.d.ts +39 -0
  130. package/{expandable-card/watt-expandable-card.component.d.ts → types/energinet-watt-expandable-card.d.ts} +31 -9
  131. package/types/energinet-watt-field.d.ts +62 -0
  132. package/types/energinet-watt-file-field.d.ts +13 -0
  133. package/types/energinet-watt-icon-flags.d.ts +61 -0
  134. package/types/energinet-watt-icon.d.ts +119 -0
  135. package/types/energinet-watt-menu.d.ts +119 -0
  136. package/types/energinet-watt-modal.d.ts +127 -0
  137. package/types/energinet-watt-paginator.d.ts +54 -0
  138. package/types/energinet-watt-phone-field.d.ts +79 -0
  139. package/{picker/__shared/watt-picker-base.d.ts → types/energinet-watt-picker-__shared.d.ts} +34 -11
  140. package/types/energinet-watt-picker-datepicker.d.ts +90 -0
  141. package/{picker/timepicker/watt-timepicker.component.d.ts → types/energinet-watt-picker-timepicker.d.ts} +16 -12
  142. package/types/energinet-watt-progress-tracker.d.ts +37 -0
  143. package/{query-params/watt-query-params.directive.d.ts → types/energinet-watt-query-params.d.ts} +5 -2
  144. package/types/energinet-watt-radio.d.ts +71 -0
  145. package/types/energinet-watt-search.d.ts +47 -0
  146. package/types/energinet-watt-segmented-buttons.d.ts +48 -0
  147. package/types/energinet-watt-shell.d.ts +47 -0
  148. package/types/energinet-watt-slide-toggle.d.ts +20 -0
  149. package/types/energinet-watt-slider.d.ts +35 -0
  150. package/types/energinet-watt-spinner.d.ts +18 -0
  151. package/types/energinet-watt-stepper.d.ts +59 -0
  152. package/{table/watt-table.component.d.ts → types/energinet-watt-table.d.ts} +72 -49
  153. package/types/energinet-watt-tabs.d.ts +68 -0
  154. package/types/energinet-watt-text-field.d.ts +67 -0
  155. package/types/energinet-watt-textarea-field.d.ts +31 -0
  156. package/{toast/watt-toast.component.d.ts → types/energinet-watt-toast.d.ts} +19 -5
  157. package/types/energinet-watt-tooltip.d.ts +20 -0
  158. package/{utils/css/css-custom-properties.service.d.ts → types/energinet-watt-utils-css.d.ts} +5 -2
  159. package/{utils/intersection-observer/watt-intersection-observer.service.d.ts → types/energinet-watt-utils-intersection-observer.d.ts} +7 -3
  160. package/{utils/resize-observer/watt-resize-observer.directive.d.ts → types/energinet-watt-utils-resize-observer.d.ts} +30 -3
  161. package/types/energinet-watt-validation-message.d.ts +38 -0
  162. package/{validators/watt-range.validators.d.ts → types/energinet-watt-validators.d.ts} +6 -2
  163. package/types/energinet-watt-vater.d.ts +87 -0
  164. package/types/energinet-watt-year-field.d.ts +60 -0
  165. package/types/energinet-watt-yearmonth-field.d.ts +64 -0
  166. package/{core/color/index.d.ts → types/energinet-watt.d.ts} +3 -2
  167. package/badge/energinet-watt-badge.d.ts +0 -5
  168. package/badge/index.d.ts +0 -17
  169. package/badge/watt-badge.component.d.ts +0 -15
  170. package/breadcrumbs/energinet-watt-breadcrumbs.d.ts +0 -5
  171. package/breadcrumbs/index.d.ts +0 -17
  172. package/button/energinet-watt-button.d.ts +0 -5
  173. package/button/index.d.ts +0 -17
  174. package/button/watt-button.component.d.ts +0 -22
  175. package/card/energinet-watt-card.d.ts +0 -5
  176. package/card/index.d.ts +0 -18
  177. package/card/watt-card-title.component.d.ts +0 -6
  178. package/card/watt-card.component.d.ts +0 -15
  179. package/checkbox/energinet-watt-checkbox.d.ts +0 -5
  180. package/checkbox/index.d.ts +0 -17
  181. package/checkbox/watt-checkbox.component.d.ts +0 -17
  182. package/chip/energinet-watt-chip.d.ts +0 -5
  183. package/chip/index.d.ts +0 -23
  184. package/chip/watt-action-chip.component.d.ts +0 -8
  185. package/chip/watt-chip.component.d.ts +0 -8
  186. package/chip/watt-chip.directive.d.ts +0 -16
  187. package/chip/watt-date-chip.component.d.ts +0 -12
  188. package/chip/watt-date-range-chip.component.d.ts +0 -50
  189. package/chip/watt-filter-chip.component.d.ts +0 -13
  190. package/chip/watt-menu-chip.component.d.ts +0 -13
  191. package/clipboard/energinet-watt-clipboard.d.ts +0 -5
  192. package/clipboard/index.d.ts +0 -18
  193. package/clipboard/watt-clipboard-intl.service.d.ts +0 -7
  194. package/clipboard/watt-copy-to-clipboard.directive.d.ts +0 -12
  195. package/code/energinet-watt-code.d.ts +0 -5
  196. package/code/index.d.ts +0 -19
  197. package/code/watt-code-intl.service.d.ts +0 -6
  198. package/code/watt-code.component.d.ts +0 -45
  199. package/code/watt-code.worker.token.d.ts +0 -18
  200. package/core/breakpoints/breakpoints-observer.d.ts +0 -21
  201. package/core/breakpoints/energinet-watt-core-breakpoints.d.ts +0 -5
  202. package/core/breakpoints/index.d.ts +0 -18
  203. package/core/color/color-helper.service.d.ts +0 -10
  204. package/core/color/energinet-watt-core-color.d.ts +0 -5
  205. package/core/date/dayjs.d.ts +0 -22
  206. package/core/date/energinet-watt-core-date.d.ts +0 -5
  207. package/core/date/index.d.ts +0 -23
  208. package/core/date/watt-danish-datetime.providers.d.ts +0 -1
  209. package/core/date/watt-date-adapter.d.ts +0 -31
  210. package/core/date/watt-date-range.d.ts +0 -25
  211. package/core/date/watt-date.pipe.d.ts +0 -28
  212. package/core/date/watt-format-date.d.ts +0 -11
  213. package/core/date/watt-locale.service.d.ts +0 -11
  214. package/data/energinet-watt-data.d.ts +0 -5
  215. package/data/index.d.ts +0 -20
  216. package/data/watt-data-actions.component.d.ts +0 -5
  217. package/data/watt-data-filters.component.d.ts +0 -5
  218. package/data/watt-data-intl.service.d.ts +0 -15
  219. package/data/watt-data-table.component.d.ts +0 -34
  220. package/datetime-field/energinet-watt-datetime-field.d.ts +0 -5
  221. package/datetime-field/index.d.ts +0 -17
  222. package/datetime-field/watt-datetime-field.component.d.ts +0 -39
  223. package/description-list/energinet-watt-description-list.d.ts +0 -5
  224. package/description-list/index.d.ts +0 -17
  225. package/description-list/watt-description-list-item.component.d.ts +0 -27
  226. package/description-list/watt-description-list.component.d.ts +0 -20
  227. package/drawer/energinet-watt-drawer.d.ts +0 -5
  228. package/drawer/index.d.ts +0 -21
  229. package/drawer/watt-drawer-actions.component.d.ts +0 -5
  230. package/drawer/watt-drawer-content.component.d.ts +0 -5
  231. package/drawer/watt-drawer-heading.component.d.ts +0 -5
  232. package/drawer/watt-drawer-topbar.component.d.ts +0 -5
  233. package/dropdown/energinet-watt-dropdown.d.ts +0 -5
  234. package/dropdown/index.d.ts +0 -19
  235. package/dropdown/watt-dropdown-option.d.ts +0 -28
  236. package/dropdown/watt-dropdown-value.d.ts +0 -17
  237. package/dropdown/watt-dropdown.component.d.ts +0 -133
  238. package/dropzone/energinet-watt-dropzone.d.ts +0 -5
  239. package/dropzone/index.d.ts +0 -19
  240. package/dropzone/watt-dropzone-intl.d.ts +0 -11
  241. package/dropzone/watt-dropzone-validators.d.ts +0 -27
  242. package/dropzone/watt-dropzone.d.ts +0 -31
  243. package/empty-state/energinet-watt-empty-state.d.ts +0 -5
  244. package/empty-state/icons/explore.d.ts +0 -5
  245. package/empty-state/icons/no-results.d.ts +0 -5
  246. package/empty-state/icons/not-found.d.ts +0 -5
  247. package/empty-state/icons/power.d.ts +0 -5
  248. package/empty-state/index.d.ts +0 -21
  249. package/empty-state/watt-empty-state.component.d.ts +0 -16
  250. package/energinet-watt.d.ts +0 -5
  251. package/esm2022/badge/energinet-watt-badge.js +0 -5
  252. package/esm2022/badge/energinet-watt-badge.js.map +0 -1
  253. package/esm2022/badge/index.js +0 -20
  254. package/esm2022/badge/index.js.map +0 -1
  255. package/esm2022/badge/watt-badge.component.js.map +0 -1
  256. package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js +0 -5
  257. package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js.map +0 -1
  258. package/esm2022/breadcrumbs/index.js +0 -20
  259. package/esm2022/breadcrumbs/index.js.map +0 -1
  260. package/esm2022/breadcrumbs/watt-breadcrumbs.component.js.map +0 -1
  261. package/esm2022/button/energinet-watt-button.js +0 -5
  262. package/esm2022/button/energinet-watt-button.js.map +0 -1
  263. package/esm2022/button/index.js +0 -20
  264. package/esm2022/button/index.js.map +0 -1
  265. package/esm2022/button/watt-button.component.js.map +0 -1
  266. package/esm2022/card/energinet-watt-card.js +0 -5
  267. package/esm2022/card/energinet-watt-card.js.map +0 -1
  268. package/esm2022/card/index.js +0 -21
  269. package/esm2022/card/index.js.map +0 -1
  270. package/esm2022/card/watt-card-title.component.js +0 -33
  271. package/esm2022/card/watt-card-title.component.js.map +0 -1
  272. package/esm2022/card/watt-card.component.js.map +0 -1
  273. package/esm2022/checkbox/energinet-watt-checkbox.js +0 -5
  274. package/esm2022/checkbox/energinet-watt-checkbox.js.map +0 -1
  275. package/esm2022/checkbox/index.js +0 -20
  276. package/esm2022/checkbox/index.js.map +0 -1
  277. package/esm2022/checkbox/watt-checkbox.component.js.map +0 -1
  278. package/esm2022/chip/energinet-watt-chip.js +0 -5
  279. package/esm2022/chip/energinet-watt-chip.js.map +0 -1
  280. package/esm2022/chip/index.js +0 -26
  281. package/esm2022/chip/index.js.map +0 -1
  282. package/esm2022/chip/watt-action-chip.component.js +0 -68
  283. package/esm2022/chip/watt-action-chip.component.js.map +0 -1
  284. package/esm2022/chip/watt-chip.component.js +0 -55
  285. package/esm2022/chip/watt-chip.component.js.map +0 -1
  286. package/esm2022/chip/watt-chip.directive.js +0 -92
  287. package/esm2022/chip/watt-chip.directive.js.map +0 -1
  288. package/esm2022/chip/watt-date-chip.component.js +0 -104
  289. package/esm2022/chip/watt-date-chip.component.js.map +0 -1
  290. package/esm2022/chip/watt-date-range-chip.component.js +0 -213
  291. package/esm2022/chip/watt-date-range-chip.component.js.map +0 -1
  292. package/esm2022/chip/watt-filter-chip.component.js +0 -82
  293. package/esm2022/chip/watt-filter-chip.component.js.map +0 -1
  294. package/esm2022/chip/watt-menu-chip.component.js +0 -80
  295. package/esm2022/chip/watt-menu-chip.component.js.map +0 -1
  296. package/esm2022/clipboard/energinet-watt-clipboard.js +0 -5
  297. package/esm2022/clipboard/energinet-watt-clipboard.js.map +0 -1
  298. package/esm2022/clipboard/index.js +0 -21
  299. package/esm2022/clipboard/index.js.map +0 -1
  300. package/esm2022/clipboard/watt-clipboard-intl.service.js +0 -31
  301. package/esm2022/clipboard/watt-clipboard-intl.service.js.map +0 -1
  302. package/esm2022/clipboard/watt-copy-to-clipboard.directive.js.map +0 -1
  303. package/esm2022/code/energinet-watt-code.js +0 -5
  304. package/esm2022/code/energinet-watt-code.js.map +0 -1
  305. package/esm2022/code/index.js +0 -22
  306. package/esm2022/code/index.js.map +0 -1
  307. package/esm2022/code/watt-code-intl.service.js +0 -30
  308. package/esm2022/code/watt-code-intl.service.js.map +0 -1
  309. package/esm2022/code/watt-code.component.js.map +0 -1
  310. package/esm2022/code/watt-code.worker.token.js +0 -21
  311. package/esm2022/code/watt-code.worker.token.js.map +0 -1
  312. package/esm2022/core/breakpoints/breakpoints-observer.js +0 -41
  313. package/esm2022/core/breakpoints/breakpoints-observer.js.map +0 -1
  314. package/esm2022/core/breakpoints/breakpoints.js +0 -31
  315. package/esm2022/core/breakpoints/breakpoints.js.map +0 -1
  316. package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js +0 -5
  317. package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js.map +0 -1
  318. package/esm2022/core/breakpoints/index.js +0 -21
  319. package/esm2022/core/breakpoints/index.js.map +0 -1
  320. package/esm2022/core/color/color-helper.service.js +0 -41
  321. package/esm2022/core/color/color-helper.service.js.map +0 -1
  322. package/esm2022/core/color/colors.js +0 -58
  323. package/esm2022/core/color/colors.js.map +0 -1
  324. package/esm2022/core/color/energinet-watt-core-color.js +0 -5
  325. package/esm2022/core/color/energinet-watt-core-color.js.map +0 -1
  326. package/esm2022/core/color/index.js +0 -21
  327. package/esm2022/core/color/index.js.map +0 -1
  328. package/esm2022/core/date/dayjs.js +0 -34
  329. package/esm2022/core/date/dayjs.js.map +0 -1
  330. package/esm2022/core/date/energinet-watt-core-date.js +0 -5
  331. package/esm2022/core/date/energinet-watt-core-date.js.map +0 -1
  332. package/esm2022/core/date/index.js +0 -25
  333. package/esm2022/core/date/index.js.map +0 -1
  334. package/esm2022/core/date/watt-danish-datetime.providers.js +0 -31
  335. package/esm2022/core/date/watt-danish-datetime.providers.js.map +0 -1
  336. package/esm2022/core/date/watt-date-adapter.js +0 -43
  337. package/esm2022/core/date/watt-date-adapter.js.map +0 -1
  338. package/esm2022/core/date/watt-date-range.js +0 -2
  339. package/esm2022/core/date/watt-date-range.js.map +0 -1
  340. package/esm2022/core/date/watt-date.pipe.js +0 -38
  341. package/esm2022/core/date/watt-date.pipe.js.map +0 -1
  342. package/esm2022/core/date/watt-format-date.js +0 -50
  343. package/esm2022/core/date/watt-format-date.js.map +0 -1
  344. package/esm2022/core/date/watt-locale.service.js +0 -48
  345. package/esm2022/core/date/watt-locale.service.js.map +0 -1
  346. package/esm2022/data/energinet-watt-data.js +0 -5
  347. package/esm2022/data/energinet-watt-data.js.map +0 -1
  348. package/esm2022/data/index.js +0 -23
  349. package/esm2022/data/index.js.map +0 -1
  350. package/esm2022/data/watt-data-actions.component.js +0 -32
  351. package/esm2022/data/watt-data-actions.component.js.map +0 -1
  352. package/esm2022/data/watt-data-filters.component.js +0 -32
  353. package/esm2022/data/watt-data-filters.component.js.map +0 -1
  354. package/esm2022/data/watt-data-intl.service.js +0 -39
  355. package/esm2022/data/watt-data-intl.service.js.map +0 -1
  356. package/esm2022/data/watt-data-table.component.js.map +0 -1
  357. package/esm2022/datetime-field/energinet-watt-datetime-field.js +0 -5
  358. package/esm2022/datetime-field/energinet-watt-datetime-field.js.map +0 -1
  359. package/esm2022/datetime-field/index.js +0 -20
  360. package/esm2022/datetime-field/index.js.map +0 -1
  361. package/esm2022/datetime-field/watt-datetime-field.component.js.map +0 -1
  362. package/esm2022/description-list/energinet-watt-description-list.js +0 -5
  363. package/esm2022/description-list/energinet-watt-description-list.js.map +0 -1
  364. package/esm2022/description-list/index.js +0 -20
  365. package/esm2022/description-list/index.js.map +0 -1
  366. package/esm2022/description-list/watt-description-list-item.component.js +0 -49
  367. package/esm2022/description-list/watt-description-list-item.component.js.map +0 -1
  368. package/esm2022/description-list/watt-description-list.component.js.map +0 -1
  369. package/esm2022/drawer/energinet-watt-drawer.js +0 -5
  370. package/esm2022/drawer/energinet-watt-drawer.js.map +0 -1
  371. package/esm2022/drawer/index.js +0 -24
  372. package/esm2022/drawer/index.js.map +0 -1
  373. package/esm2022/drawer/watt-drawer-actions.component.js +0 -29
  374. package/esm2022/drawer/watt-drawer-actions.component.js.map +0 -1
  375. package/esm2022/drawer/watt-drawer-content.component.js +0 -29
  376. package/esm2022/drawer/watt-drawer-content.component.js.map +0 -1
  377. package/esm2022/drawer/watt-drawer-heading.component.js +0 -29
  378. package/esm2022/drawer/watt-drawer-heading.component.js.map +0 -1
  379. package/esm2022/drawer/watt-drawer-topbar.component.js +0 -32
  380. package/esm2022/drawer/watt-drawer-topbar.component.js.map +0 -1
  381. package/esm2022/drawer/watt-drawer.component.js.map +0 -1
  382. package/esm2022/dropdown/energinet-watt-dropdown.js +0 -5
  383. package/esm2022/dropdown/energinet-watt-dropdown.js.map +0 -1
  384. package/esm2022/dropdown/index.js +0 -20
  385. package/esm2022/dropdown/index.js.map +0 -1
  386. package/esm2022/dropdown/watt-dropdown-option.js +0 -2
  387. package/esm2022/dropdown/watt-dropdown-option.js.map +0 -1
  388. package/esm2022/dropdown/watt-dropdown-value.js +0 -2
  389. package/esm2022/dropdown/watt-dropdown-value.js.map +0 -1
  390. package/esm2022/dropdown/watt-dropdown.component.js.map +0 -1
  391. package/esm2022/dropzone/energinet-watt-dropzone.js +0 -5
  392. package/esm2022/dropzone/energinet-watt-dropzone.js.map +0 -1
  393. package/esm2022/dropzone/index.js +0 -22
  394. package/esm2022/dropzone/index.js.map +0 -1
  395. package/esm2022/dropzone/watt-dropzone-intl.js +0 -35
  396. package/esm2022/dropzone/watt-dropzone-intl.js.map +0 -1
  397. package/esm2022/dropzone/watt-dropzone-validators.js +0 -67
  398. package/esm2022/dropzone/watt-dropzone-validators.js.map +0 -1
  399. package/esm2022/dropzone/watt-dropzone.js.map +0 -1
  400. package/esm2022/empty-state/energinet-watt-empty-state.js +0 -5
  401. package/esm2022/empty-state/energinet-watt-empty-state.js.map +0 -1
  402. package/esm2022/empty-state/icons/explore.js +0 -54
  403. package/esm2022/empty-state/icons/explore.js.map +0 -1
  404. package/esm2022/empty-state/icons/no-results.js +0 -62
  405. package/esm2022/empty-state/icons/no-results.js.map +0 -1
  406. package/esm2022/empty-state/icons/not-found.js.map +0 -1
  407. package/esm2022/empty-state/icons/power.js +0 -46
  408. package/esm2022/empty-state/icons/power.js.map +0 -1
  409. package/esm2022/empty-state/index.js +0 -24
  410. package/esm2022/empty-state/index.js.map +0 -1
  411. package/esm2022/empty-state/watt-empty-state.component.js +0 -120
  412. package/esm2022/empty-state/watt-empty-state.component.js.map +0 -1
  413. package/esm2022/energinet-watt.js +0 -5
  414. package/esm2022/energinet-watt.js.map +0 -1
  415. package/esm2022/expandable-card/energinet-watt-expandable-card.js +0 -5
  416. package/esm2022/expandable-card/energinet-watt-expandable-card.js.map +0 -1
  417. package/esm2022/expandable-card/index.js +0 -26
  418. package/esm2022/expandable-card/index.js.map +0 -1
  419. package/esm2022/expandable-card/watt-expandable-card.component.js.map +0 -1
  420. package/esm2022/field/energinet-watt-field.js +0 -5
  421. package/esm2022/field/energinet-watt-field.js.map +0 -1
  422. package/esm2022/field/index.js +0 -24
  423. package/esm2022/field/index.js.map +0 -1
  424. package/esm2022/field/watt-field-error.component.js +0 -29
  425. package/esm2022/field/watt-field-error.component.js.map +0 -1
  426. package/esm2022/field/watt-field-hint.component.js +0 -29
  427. package/esm2022/field/watt-field-hint.component.js.map +0 -1
  428. package/esm2022/field/watt-field-intl.service.js +0 -32
  429. package/esm2022/field/watt-field-intl.service.js.map +0 -1
  430. package/esm2022/field/watt-field-warning.component.js +0 -29
  431. package/esm2022/field/watt-field-warning.component.js.map +0 -1
  432. package/esm2022/field/watt-field.component.js.map +0 -1
  433. package/esm2022/file-field/energinet-watt-file-field.js +0 -5
  434. package/esm2022/file-field/energinet-watt-file-field.js.map +0 -1
  435. package/esm2022/file-field/index.js +0 -20
  436. package/esm2022/file-field/index.js.map +0 -1
  437. package/esm2022/file-field/watt-file-field.component.js.map +0 -1
  438. package/esm2022/icon/energinet-watt-icon.js +0 -5
  439. package/esm2022/icon/energinet-watt-icon.js.map +0 -1
  440. package/esm2022/icon/flags/energinet-watt-icon-flags.js +0 -5
  441. package/esm2022/icon/flags/energinet-watt-icon-flags.js.map +0 -1
  442. package/esm2022/icon/flags/index.js +0 -29
  443. package/esm2022/icon/flags/index.js.map +0 -1
  444. package/esm2022/icon/flags/watt-flag-ch.js +0 -52
  445. package/esm2022/icon/flags/watt-flag-ch.js.map +0 -1
  446. package/esm2022/icon/flags/watt-flag-de.js +0 -44
  447. package/esm2022/icon/flags/watt-flag-de.js.map +0 -1
  448. package/esm2022/icon/flags/watt-flag-dk.js +0 -44
  449. package/esm2022/icon/flags/watt-flag-dk.js.map +0 -1
  450. package/esm2022/icon/flags/watt-flag-fi.js +0 -44
  451. package/esm2022/icon/flags/watt-flag-fi.js.map +0 -1
  452. package/esm2022/icon/flags/watt-flag-gb.js +0 -60
  453. package/esm2022/icon/flags/watt-flag-gb.js.map +0 -1
  454. package/esm2022/icon/flags/watt-flag-nl.js +0 -44
  455. package/esm2022/icon/flags/watt-flag-nl.js.map +0 -1
  456. package/esm2022/icon/flags/watt-flag-no.js +0 -48
  457. package/esm2022/icon/flags/watt-flag-no.js.map +0 -1
  458. package/esm2022/icon/flags/watt-flag-pl.js +0 -46
  459. package/esm2022/icon/flags/watt-flag-pl.js.map +0 -1
  460. package/esm2022/icon/flags/watt-flag-se.js +0 -42
  461. package/esm2022/icon/flags/watt-flag-se.js.map +0 -1
  462. package/esm2022/icon/flags/watt-flag.js +0 -124
  463. package/esm2022/icon/flags/watt-flag.js.map +0 -1
  464. package/esm2022/icon/icon.component.js.map +0 -1
  465. package/esm2022/icon/icons.js +0 -102
  466. package/esm2022/icon/icons.js.map +0 -1
  467. package/esm2022/icon/index.js +0 -20
  468. package/esm2022/icon/index.js.map +0 -1
  469. package/esm2022/index.js.map +0 -1
  470. package/esm2022/menu/energinet-watt-menu.js +0 -5
  471. package/esm2022/menu/energinet-watt-menu.js.map +0 -1
  472. package/esm2022/menu/index.js +0 -36
  473. package/esm2022/menu/index.js.map +0 -1
  474. package/esm2022/menu/watt-menu-group.component.js +0 -45
  475. package/esm2022/menu/watt-menu-group.component.js.map +0 -1
  476. package/esm2022/menu/watt-menu-item.component.js +0 -50
  477. package/esm2022/menu/watt-menu-item.component.js.map +0 -1
  478. package/esm2022/menu/watt-menu-trigger.directive.js +0 -85
  479. package/esm2022/menu/watt-menu-trigger.directive.js.map +0 -1
  480. package/esm2022/menu/watt-menu.component.js +0 -77
  481. package/esm2022/menu/watt-menu.component.js.map +0 -1
  482. package/esm2022/modal/energinet-watt-modal.js +0 -5
  483. package/esm2022/modal/energinet-watt-modal.js.map +0 -1
  484. package/esm2022/modal/index.js +0 -21
  485. package/esm2022/modal/index.js.map +0 -1
  486. package/esm2022/modal/watt-modal.component.js.map +0 -1
  487. package/esm2022/modal/watt-modal.service.js +0 -74
  488. package/esm2022/modal/watt-modal.service.js.map +0 -1
  489. package/esm2022/paginator/energinet-watt-paginator.js +0 -5
  490. package/esm2022/paginator/energinet-watt-paginator.js.map +0 -1
  491. package/esm2022/paginator/index.js +0 -21
  492. package/esm2022/paginator/index.js.map +0 -1
  493. package/esm2022/paginator/watt-paginator-intl.service.js +0 -38
  494. package/esm2022/paginator/watt-paginator-intl.service.js.map +0 -1
  495. package/esm2022/paginator/watt-paginator.component.js.map +0 -1
  496. package/esm2022/phone-field/energinet-watt-phone-field.js +0 -5
  497. package/esm2022/phone-field/energinet-watt-phone-field.js.map +0 -1
  498. package/esm2022/phone-field/index.js +0 -21
  499. package/esm2022/phone-field/index.js.map +0 -1
  500. package/esm2022/phone-field/watt-phone-field-intl.service.js +0 -41
  501. package/esm2022/phone-field/watt-phone-field-intl.service.js.map +0 -1
  502. package/esm2022/phone-field/watt-phone-field.component.js.map +0 -1
  503. package/esm2022/picker/__shared/energinet-watt-picker-__shared.js +0 -5
  504. package/esm2022/picker/__shared/energinet-watt-picker-__shared.js.map +0 -1
  505. package/esm2022/picker/__shared/index.js +0 -21
  506. package/esm2022/picker/__shared/index.js.map +0 -1
  507. package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js +0 -71
  508. package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js.map +0 -1
  509. package/esm2022/picker/__shared/watt-picker-base.js +0 -197
  510. package/esm2022/picker/__shared/watt-picker-base.js.map +0 -1
  511. package/esm2022/picker/__shared/watt-picker-value.js +0 -2
  512. package/esm2022/picker/__shared/watt-picker-value.js.map +0 -1
  513. package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js +0 -5
  514. package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js.map +0 -1
  515. package/esm2022/picker/datepicker/index.js +0 -22
  516. package/esm2022/picker/datepicker/index.js.map +0 -1
  517. package/esm2022/picker/datepicker/watt-datepicker-intl.service.js +0 -31
  518. package/esm2022/picker/datepicker/watt-datepicker-intl.service.js.map +0 -1
  519. package/esm2022/picker/datepicker/watt-datepicker.component.js.map +0 -1
  520. package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js +0 -5
  521. package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js.map +0 -1
  522. package/esm2022/picker/timepicker/index.js +0 -20
  523. package/esm2022/picker/timepicker/index.js.map +0 -1
  524. package/esm2022/picker/timepicker/maskito-time-range-mask.js +0 -81
  525. package/esm2022/picker/timepicker/maskito-time-range-mask.js.map +0 -1
  526. package/esm2022/picker/timepicker/watt-timepicker.component.js.map +0 -1
  527. package/esm2022/progress-tracker/energinet-watt-progress-tracker.js +0 -5
  528. package/esm2022/progress-tracker/energinet-watt-progress-tracker.js.map +0 -1
  529. package/esm2022/progress-tracker/index.js +0 -27
  530. package/esm2022/progress-tracker/index.js.map +0 -1
  531. package/esm2022/progress-tracker/watt-progress-tracker-step.component.js.map +0 -1
  532. package/esm2022/progress-tracker/watt-progress-tracker.component.js +0 -30
  533. package/esm2022/progress-tracker/watt-progress-tracker.component.js.map +0 -1
  534. package/esm2022/query-params/energinet-watt-query-params.js +0 -5
  535. package/esm2022/query-params/energinet-watt-query-params.js.map +0 -1
  536. package/esm2022/query-params/index.js +0 -20
  537. package/esm2022/query-params/index.js.map +0 -1
  538. package/esm2022/query-params/watt-query-params.directive.js.map +0 -1
  539. package/esm2022/radio/energinet-watt-radio.js +0 -5
  540. package/esm2022/radio/energinet-watt-radio.js.map +0 -1
  541. package/esm2022/radio/index.js +0 -21
  542. package/esm2022/radio/index.js.map +0 -1
  543. package/esm2022/radio/watt-radio-group.component.js +0 -119
  544. package/esm2022/radio/watt-radio-group.component.js.map +0 -1
  545. package/esm2022/radio/watt-radio.component.js.map +0 -1
  546. package/esm2022/search/energinet-watt-search.js +0 -5
  547. package/esm2022/search/energinet-watt-search.js.map +0 -1
  548. package/esm2022/search/index.js +0 -20
  549. package/esm2022/search/index.js.map +0 -1
  550. package/esm2022/search/watt-search.component.js.map +0 -1
  551. package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js +0 -5
  552. package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js.map +0 -1
  553. package/esm2022/segmented-buttons/index.js +0 -27
  554. package/esm2022/segmented-buttons/index.js.map +0 -1
  555. package/esm2022/segmented-buttons/watt-segmented-button.component.js +0 -39
  556. package/esm2022/segmented-buttons/watt-segmented-button.component.js.map +0 -1
  557. package/esm2022/segmented-buttons/watt-segmented-buttons.component.js.map +0 -1
  558. package/esm2022/shell/energinet-watt-shell.js +0 -5
  559. package/esm2022/shell/energinet-watt-shell.js.map +0 -1
  560. package/esm2022/shell/index.js +0 -21
  561. package/esm2022/shell/index.js.map +0 -1
  562. package/esm2022/shell/nav-list/index.js +0 -21
  563. package/esm2022/shell/nav-list/index.js.map +0 -1
  564. package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js +0 -47
  565. package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js.map +0 -1
  566. package/esm2022/shell/nav-list/watt-nav-list-item.component.js +0 -83
  567. package/esm2022/shell/nav-list/watt-nav-list-item.component.js.map +0 -1
  568. package/esm2022/shell/nav-list/watt-nav-list.component.js +0 -80
  569. package/esm2022/shell/nav-list/watt-nav-list.component.js.map +0 -1
  570. package/esm2022/shell/shell.component.js +0 -59
  571. package/esm2022/shell/shell.component.js.map +0 -1
  572. package/esm2022/slide-toggle/energinet-watt-slide-toggle.js +0 -5
  573. package/esm2022/slide-toggle/energinet-watt-slide-toggle.js.map +0 -1
  574. package/esm2022/slide-toggle/index.js +0 -20
  575. package/esm2022/slide-toggle/index.js.map +0 -1
  576. package/esm2022/slide-toggle/watt-slide-toggle.component.js.map +0 -1
  577. package/esm2022/slider/energinet-watt-slider.js +0 -5
  578. package/esm2022/slider/energinet-watt-slider.js.map +0 -1
  579. package/esm2022/slider/index.js +0 -20
  580. package/esm2022/slider/index.js.map +0 -1
  581. package/esm2022/slider/watt-slider.component.js.map +0 -1
  582. package/esm2022/spinner/energinet-watt-spinner.js +0 -5
  583. package/esm2022/spinner/energinet-watt-spinner.js.map +0 -1
  584. package/esm2022/spinner/index.js +0 -20
  585. package/esm2022/spinner/index.js.map +0 -1
  586. package/esm2022/spinner/watt-spinner.component.js.map +0 -1
  587. package/esm2022/stepper/energinet-watt-stepper.js +0 -5
  588. package/esm2022/stepper/energinet-watt-stepper.js.map +0 -1
  589. package/esm2022/stepper/index.js +0 -21
  590. package/esm2022/stepper/index.js.map +0 -1
  591. package/esm2022/stepper/watt-stepper-step.component.js +0 -49
  592. package/esm2022/stepper/watt-stepper-step.component.js.map +0 -1
  593. package/esm2022/stepper/watt-stepper.component.js.map +0 -1
  594. package/esm2022/table/energinet-watt-table.js +0 -5
  595. package/esm2022/table/energinet-watt-table.js.map +0 -1
  596. package/esm2022/table/index.js +0 -21
  597. package/esm2022/table/index.js.map +0 -1
  598. package/esm2022/table/watt-table-data-source.js +0 -27
  599. package/esm2022/table/watt-table-data-source.js.map +0 -1
  600. package/esm2022/table/watt-table-expand-animation.js +0 -65
  601. package/esm2022/table/watt-table-expand-animation.js.map +0 -1
  602. package/esm2022/table/watt-table.component.js.map +0 -1
  603. package/esm2022/tabs/energinet-watt-tabs.js +0 -5
  604. package/esm2022/tabs/energinet-watt-tabs.js.map +0 -1
  605. package/esm2022/tabs/index.js +0 -31
  606. package/esm2022/tabs/index.js.map +0 -1
  607. package/esm2022/tabs/watt-link-tab.component.js +0 -34
  608. package/esm2022/tabs/watt-link-tab.component.js.map +0 -1
  609. package/esm2022/tabs/watt-link-tabs.component.js +0 -71
  610. package/esm2022/tabs/watt-link-tabs.component.js.map +0 -1
  611. package/esm2022/tabs/watt-tab.component.js +0 -42
  612. package/esm2022/tabs/watt-tab.component.js.map +0 -1
  613. package/esm2022/tabs/watt-tabs-action.component.js +0 -32
  614. package/esm2022/tabs/watt-tabs-action.component.js.map +0 -1
  615. package/esm2022/tabs/watt-tabs.component.js +0 -60
  616. package/esm2022/tabs/watt-tabs.component.js.map +0 -1
  617. package/esm2022/text-field/energinet-watt-text-field.js +0 -5
  618. package/esm2022/text-field/energinet-watt-text-field.js.map +0 -1
  619. package/esm2022/text-field/index.js +0 -20
  620. package/esm2022/text-field/index.js.map +0 -1
  621. package/esm2022/text-field/watt-text-field.component.js.map +0 -1
  622. package/esm2022/textarea-field/energinet-watt-textarea-field.js +0 -5
  623. package/esm2022/textarea-field/energinet-watt-textarea-field.js.map +0 -1
  624. package/esm2022/textarea-field/index.js +0 -20
  625. package/esm2022/textarea-field/index.js.map +0 -1
  626. package/esm2022/textarea-field/watt-textarea-field.component.js.map +0 -1
  627. package/esm2022/toast/energinet-watt-toast.js +0 -5
  628. package/esm2022/toast/energinet-watt-toast.js.map +0 -1
  629. package/esm2022/toast/index.js +0 -21
  630. package/esm2022/toast/index.js.map +0 -1
  631. package/esm2022/toast/watt-toast.component.js.map +0 -1
  632. package/esm2022/toast/watt-toast.service.js +0 -51
  633. package/esm2022/toast/watt-toast.service.js.map +0 -1
  634. package/esm2022/tooltip/energinet-watt-tooltip.js +0 -5
  635. package/esm2022/tooltip/energinet-watt-tooltip.js.map +0 -1
  636. package/esm2022/tooltip/index.js +0 -20
  637. package/esm2022/tooltip/index.js.map +0 -1
  638. package/esm2022/tooltip/watt-tooltip.component.js.map +0 -1
  639. package/esm2022/tooltip/watt-tooltip.directive.js +0 -67
  640. package/esm2022/tooltip/watt-tooltip.directive.js.map +0 -1
  641. package/esm2022/utils/css/css-custom-properties.service.js.map +0 -1
  642. package/esm2022/utils/css/energinet-watt-utils-css.js +0 -5
  643. package/esm2022/utils/css/energinet-watt-utils-css.js.map +0 -1
  644. package/esm2022/utils/css/index.js +0 -20
  645. package/esm2022/utils/css/index.js.map +0 -1
  646. package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js +0 -5
  647. package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js.map +0 -1
  648. package/esm2022/utils/intersection-observer/index.js +0 -20
  649. package/esm2022/utils/intersection-observer/index.js.map +0 -1
  650. package/esm2022/utils/intersection-observer/watt-intersection-observer.service.js.map +0 -1
  651. package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js +0 -5
  652. package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js.map +0 -1
  653. package/esm2022/utils/resize-observer/index.js +0 -21
  654. package/esm2022/utils/resize-observer/index.js.map +0 -1
  655. package/esm2022/utils/resize-observer/watt-resize-observer.directive.js +0 -53
  656. package/esm2022/utils/resize-observer/watt-resize-observer.directive.js.map +0 -1
  657. package/esm2022/utils/resize-observer/watt-resize-observer.service.js +0 -67
  658. package/esm2022/utils/resize-observer/watt-resize-observer.service.js.map +0 -1
  659. package/esm2022/validation-message/energinet-watt-validation-message.js +0 -5
  660. package/esm2022/validation-message/energinet-watt-validation-message.js.map +0 -1
  661. package/esm2022/validation-message/index.js +0 -20
  662. package/esm2022/validation-message/index.js.map +0 -1
  663. package/esm2022/validation-message/watt-validation-message.component.js.map +0 -1
  664. package/esm2022/validators/energinet-watt-validators.js +0 -5
  665. package/esm2022/validators/energinet-watt-validators.js.map +0 -1
  666. package/esm2022/validators/index.js +0 -20
  667. package/esm2022/validators/index.js.map +0 -1
  668. package/esm2022/validators/watt-range.validators.js.map +0 -1
  669. package/esm2022/vater/energinet-watt-vater.js +0 -5
  670. package/esm2022/vater/energinet-watt-vater.js.map +0 -1
  671. package/esm2022/vater/index.js +0 -24
  672. package/esm2022/vater/index.js.map +0 -1
  673. package/esm2022/vater/types.js +0 -20
  674. package/esm2022/vater/types.js.map +0 -1
  675. package/esm2022/vater/vater-flex.component.js +0 -49
  676. package/esm2022/vater/vater-flex.component.js.map +0 -1
  677. package/esm2022/vater/vater-layout.directive.js +0 -65
  678. package/esm2022/vater/vater-layout.directive.js.map +0 -1
  679. package/esm2022/vater/vater-spacer.component.js +0 -29
  680. package/esm2022/vater/vater-spacer.component.js.map +0 -1
  681. package/esm2022/vater/vater-stack.component.js +0 -42
  682. package/esm2022/vater/vater-stack.component.js.map +0 -1
  683. package/esm2022/vater/vater-utility.directive.js +0 -53
  684. package/esm2022/vater/vater-utility.directive.js.map +0 -1
  685. package/esm2022/year-field/energinet-watt-year-field.js +0 -5
  686. package/esm2022/year-field/energinet-watt-year-field.js.map +0 -1
  687. package/esm2022/year-field/index.js +0 -20
  688. package/esm2022/year-field/index.js.map +0 -1
  689. package/esm2022/year-field/watt-year-field.component.js.map +0 -1
  690. package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js +0 -5
  691. package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js.map +0 -1
  692. package/esm2022/yearmonth-field/index.js +0 -21
  693. package/esm2022/yearmonth-field/index.js.map +0 -1
  694. package/esm2022/yearmonth-field/watt-yearmonth-field.component.js.map +0 -1
  695. package/esm2022/yearmonth-field/year-month.js +0 -42
  696. package/esm2022/yearmonth-field/year-month.js.map +0 -1
  697. package/expandable-card/energinet-watt-expandable-card.d.ts +0 -5
  698. package/expandable-card/index.d.ts +0 -19
  699. package/field/energinet-watt-field.d.ts +0 -5
  700. package/field/index.d.ts +0 -21
  701. package/field/watt-field-error.component.d.ts +0 -5
  702. package/field/watt-field-hint.component.d.ts +0 -5
  703. package/field/watt-field-intl.service.d.ts +0 -8
  704. package/field/watt-field-warning.component.d.ts +0 -5
  705. package/field/watt-field.component.d.ts +0 -53
  706. package/file-field/energinet-watt-file-field.d.ts +0 -5
  707. package/file-field/index.d.ts +0 -17
  708. package/file-field/watt-file-field.component.d.ts +0 -10
  709. package/icon/energinet-watt-icon.d.ts +0 -5
  710. package/icon/flags/energinet-watt-icon-flags.d.ts +0 -5
  711. package/icon/flags/index.d.ts +0 -26
  712. package/icon/flags/watt-flag-ch.d.ts +0 -5
  713. package/icon/flags/watt-flag-de.d.ts +0 -5
  714. package/icon/flags/watt-flag-dk.d.ts +0 -5
  715. package/icon/flags/watt-flag-fi.d.ts +0 -5
  716. package/icon/flags/watt-flag-gb.d.ts +0 -5
  717. package/icon/flags/watt-flag-nl.d.ts +0 -5
  718. package/icon/flags/watt-flag-no.d.ts +0 -5
  719. package/icon/flags/watt-flag-pl.d.ts +0 -5
  720. package/icon/flags/watt-flag-se.d.ts +0 -5
  721. package/icon/flags/watt-flag.d.ts +0 -13
  722. package/icon/icon.component.d.ts +0 -20
  723. package/icon/icons.d.ts +0 -95
  724. package/icon/index.d.ts +0 -17
  725. package/index.d.ts +0 -17
  726. package/menu/energinet-watt-menu.d.ts +0 -5
  727. package/menu/index.d.ts +0 -25
  728. package/menu/watt-menu-group.component.d.ts +0 -9
  729. package/menu/watt-menu-item.component.d.ts +0 -9
  730. package/menu/watt-menu-trigger.directive.d.ts +0 -36
  731. package/menu/watt-menu.component.d.ts +0 -44
  732. package/modal/energinet-watt-modal.d.ts +0 -5
  733. package/modal/index.d.ts +0 -18
  734. package/modal/watt-modal.component.d.ts +0 -84
  735. package/modal/watt-modal.service.d.ts +0 -56
  736. package/paginator/energinet-watt-paginator.d.ts +0 -5
  737. package/paginator/index.d.ts +0 -18
  738. package/paginator/watt-paginator-intl.service.d.ts +0 -14
  739. package/paginator/watt-paginator.component.d.ts +0 -53
  740. package/phone-field/energinet-watt-phone-field.d.ts +0 -5
  741. package/phone-field/index.d.ts +0 -18
  742. package/phone-field/watt-phone-field-intl.service.d.ts +0 -17
  743. package/phone-field/watt-phone-field.component.d.ts +0 -75
  744. package/picker/__shared/energinet-watt-picker-__shared.d.ts +0 -5
  745. package/picker/__shared/index.d.ts +0 -19
  746. package/picker/__shared/placeholder-mask/watt-placeholder-mask.component.d.ts +0 -34
  747. package/picker/__shared/watt-picker-value.d.ts +0 -18
  748. package/picker/datepicker/energinet-watt-picker-datepicker.d.ts +0 -5
  749. package/picker/datepicker/index.d.ts +0 -19
  750. package/picker/datepicker/watt-datepicker-intl.service.d.ts +0 -7
  751. package/picker/datepicker/watt-datepicker.component.d.ts +0 -95
  752. package/picker/timepicker/energinet-watt-picker-timepicker.d.ts +0 -5
  753. package/picker/timepicker/index.d.ts +0 -17
  754. package/picker/timepicker/maskito-time-range-mask.d.ts +0 -18
  755. package/progress-tracker/energinet-watt-progress-tracker.d.ts +0 -5
  756. package/progress-tracker/index.d.ts +0 -20
  757. package/progress-tracker/watt-progress-tracker-step.component.d.ts +0 -10
  758. package/progress-tracker/watt-progress-tracker.component.d.ts +0 -5
  759. package/query-params/energinet-watt-query-params.d.ts +0 -5
  760. package/query-params/index.d.ts +0 -17
  761. package/radio/energinet-watt-radio.d.ts +0 -5
  762. package/radio/index.d.ts +0 -18
  763. package/radio/watt-radio-group.component.d.ts +0 -47
  764. package/radio/watt-radio.component.d.ts +0 -23
  765. package/search/energinet-watt-search.d.ts +0 -5
  766. package/search/index.d.ts +0 -17
  767. package/search/watt-search.component.d.ts +0 -44
  768. package/segmented-buttons/energinet-watt-segmented-buttons.d.ts +0 -5
  769. package/segmented-buttons/index.d.ts +0 -21
  770. package/segmented-buttons/watt-segmented-button.component.d.ts +0 -25
  771. package/segmented-buttons/watt-segmented-buttons.component.d.ts +0 -18
  772. package/shell/energinet-watt-shell.d.ts +0 -5
  773. package/shell/index.d.ts +0 -18
  774. package/shell/nav-list/index.d.ts +0 -18
  775. package/shell/nav-list/watt-expand-on-active-link.directive.d.ts +0 -9
  776. package/shell/nav-list/watt-nav-list-item.component.d.ts +0 -16
  777. package/shell/nav-list/watt-nav-list.component.d.ts +0 -12
  778. package/shell/shell.component.d.ts +0 -17
  779. package/slide-toggle/energinet-watt-slide-toggle.d.ts +0 -5
  780. package/slide-toggle/index.d.ts +0 -17
  781. package/slide-toggle/watt-slide-toggle.component.d.ts +0 -33
  782. package/slider/energinet-watt-slider.d.ts +0 -5
  783. package/slider/index.d.ts +0 -17
  784. package/slider/watt-slider.component.d.ts +0 -47
  785. package/spinner/energinet-watt-spinner.d.ts +0 -5
  786. package/spinner/index.d.ts +0 -17
  787. package/spinner/watt-spinner.component.d.ts +0 -15
  788. package/stepper/energinet-watt-stepper.d.ts +0 -5
  789. package/stepper/index.d.ts +0 -18
  790. package/stepper/watt-stepper-step.component.d.ts +0 -35
  791. package/stepper/watt-stepper.component.d.ts +0 -40
  792. package/table/energinet-watt-table.d.ts +0 -5
  793. package/table/index.d.ts +0 -18
  794. package/table/watt-table-data-source.d.ts +0 -39
  795. package/table/watt-table-expand-animation.d.ts +0 -18
  796. package/tabs/energinet-watt-tabs.d.ts +0 -5
  797. package/tabs/index.d.ts +0 -26
  798. package/tabs/watt-link-tab.component.d.ts +0 -7
  799. package/tabs/watt-link-tabs.component.d.ts +0 -7
  800. package/tabs/watt-tab.component.d.ts +0 -26
  801. package/tabs/watt-tabs-action.component.d.ts +0 -5
  802. package/tabs/watt-tabs.component.d.ts +0 -36
  803. package/text-field/energinet-watt-text-field.d.ts +0 -5
  804. package/text-field/index.d.ts +0 -17
  805. package/text-field/watt-text-field.component.d.ts +0 -80
  806. package/textarea-field/energinet-watt-textarea-field.d.ts +0 -5
  807. package/textarea-field/index.d.ts +0 -17
  808. package/textarea-field/watt-textarea-field.component.d.ts +0 -28
  809. package/toast/energinet-watt-toast.d.ts +0 -5
  810. package/toast/index.d.ts +0 -19
  811. package/toast/watt-toast.service.d.ts +0 -12
  812. package/tooltip/energinet-watt-tooltip.d.ts +0 -5
  813. package/tooltip/index.d.ts +0 -17
  814. package/tooltip/watt-tooltip.component.d.ts +0 -26
  815. package/tooltip/watt-tooltip.directive.d.ts +0 -16
  816. package/utils/css/energinet-watt-utils-css.d.ts +0 -5
  817. package/utils/css/index.d.ts +0 -17
  818. package/utils/intersection-observer/energinet-watt-utils-intersection-observer.d.ts +0 -5
  819. package/utils/intersection-observer/index.d.ts +0 -17
  820. package/utils/resize-observer/energinet-watt-utils-resize-observer.d.ts +0 -5
  821. package/utils/resize-observer/index.d.ts +0 -18
  822. package/utils/resize-observer/watt-resize-observer.service.d.ts +0 -22
  823. package/validation-message/energinet-watt-validation-message.d.ts +0 -5
  824. package/validation-message/index.d.ts +0 -17
  825. package/validation-message/watt-validation-message.component.d.ts +0 -50
  826. package/validators/energinet-watt-validators.d.ts +0 -5
  827. package/validators/index.d.ts +0 -17
  828. package/vater/energinet-watt-vater.d.ts +0 -5
  829. package/vater/index.d.ts +0 -21
  830. package/vater/types.d.ts +0 -22
  831. package/vater/vater-flex.component.d.ts +0 -14
  832. package/vater/vater-layout.directive.d.ts +0 -24
  833. package/vater/vater-spacer.component.d.ts +0 -5
  834. package/vater/vater-stack.component.d.ts +0 -7
  835. package/vater/vater-utility.directive.d.ts +0 -17
  836. package/year-field/energinet-watt-year-field.d.ts +0 -5
  837. package/year-field/index.d.ts +0 -17
  838. package/year-field/watt-year-field.component.d.ts +0 -56
  839. package/yearmonth-field/energinet-watt-yearmonth-field.d.ts +0 -5
  840. package/yearmonth-field/index.d.ts +0 -18
  841. package/yearmonth-field/watt-yearmonth-field.component.d.ts +0 -58
  842. package/yearmonth-field/year-month.d.ts +0 -20
@@ -1,39 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- import { Component, input, TemplateRef, viewChild } from '@angular/core';
20
- import * as i0 from "@angular/core";
21
- export class WattSegmentedButtonComponent {
22
- templateRef = viewChild.required(TemplateRef);
23
- value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
24
- link = input(...(ngDevMode ? [undefined, { debugName: "link" }] : []));
25
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattSegmentedButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
26
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.15", type: WattSegmentedButtonComponent, isStandalone: true, selector: "watt-segmented-button", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: ` <ng-template>
27
- <ng-content />
28
- </ng-template>`, isInline: true });
29
- }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattSegmentedButtonComponent, decorators: [{
31
- type: Component,
32
- args: [{
33
- selector: 'watt-segmented-button',
34
- template: ` <ng-template>
35
- <ng-content />
36
- </ng-template>`,
37
- }]
38
- }], propDecorators: { templateRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], link: [{ type: i0.Input, args: [{ isSignal: true, alias: "link", required: false }] }] } });
39
- //# sourceMappingURL=watt-segmented-button.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-segmented-button.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/segmented-buttons/watt-segmented-button.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;AAQzE,MAAM,OAAO,4BAA4B;IACvC,WAAW,GAAG,SAAS,CAAC,QAAQ,CAAuB,WAAW,CAAC,CAAC;IACpE,KAAK,GAAG,KAAK,2DAAU,CAAC;IACxB,IAAI,GAAG,KAAK,0DAAU,CAAC;wGAHZ,4BAA4B;4FAA5B,4BAA4B,uXACgB,WAAW,gEALxD;;iBAEK;;4FAEJ,4BAA4B;kBANxC,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE;;iBAEK;iBAChB;6FAEwD,WAAW","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component, input, TemplateRef, viewChild } from '@angular/core';\n\n@Component({\n selector: 'watt-segmented-button',\n template: ` <ng-template>\n <ng-content />\n </ng-template>`,\n})\nexport class WattSegmentedButtonComponent {\n templateRef = viewChild.required<TemplateRef<unknown>>(TemplateRef);\n value = input<string>();\n link = input<string>();\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-segmented-buttons.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/segmented-buttons/watt-segmented-buttons.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAwB,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtF,OAAO,EACL,KAAK,EACL,MAAM,EACN,MAAM,EACN,SAAS,EACT,UAAU,EACV,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;;;;AAEjF;;GAEG;AAsEH,MAAM,OAAO,6BAA6B;IAChC,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IACrC,uBAAuB,GAAG,eAAe,CAAC,4BAA4B,mEAAC,CAAC;IACxE,QAAQ,GAAG,KAAK,CAAS,EAAE,oDAAC,CAAC;IAC7B,QAAQ,GAAG,MAAM,CAAC,KAAK,oDAAC,CAAC;IAEzB,UAAU,CAAC,QAAgB;QACzB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC9B,CAAC;IAED,gBAAgB,CAAC,EAA2B;QAC1C,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAC9B,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,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAChC,CAAC;wGApBU,6BAA6B;4FAA7B,6BAA6B,2PA3D7B;YACT;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;gBAC5D,KAAK,EAAE,IAAI;aACZ;SACF,kEAuDyC,4BAA4B,6CAtB5D;;;;;;;;;;;;;;;;;;GAkBT,6oBA/DC,qBAAqB,soBACrB,WAAW,+VACX,gBAAgB,oJAChB,kBAAkB,oOAClB,gBAAgB;;4FA6DP,6BAA6B;kBArEzC,SAAS;sCACS,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,WAC5B;wBACP,qBAAqB;wBACrB,WAAW;wBACX,gBAAgB;wBAChB,kBAAkB;wBAClB,gBAAgB;qBACjB,aACU;wBACT;4BACE,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,8BAA8B,CAAC;4BAC5D,KAAK,EAAE,IAAI;yBACZ;qBACF,YACS,wBAAwB,YAgCxB;;;;;;;;;;;;;;;;;;GAkBT;+GAIyC,4BAA4B","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 { NgTemplateOutlet } from '@angular/common';\nimport { RouterLinkWithHref, RouterLinkActive } from '@angular/router';\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport {\n model,\n signal,\n inject,\n Component,\n ElementRef,\n forwardRef,\n contentChildren,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport { MatButtonToggleModule } from '@angular/material/button-toggle';\nimport { WattSegmentedButtonComponent } from './watt-segmented-button.component';\n\n/**\n * Segmented buttons.\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [\n MatButtonToggleModule,\n FormsModule,\n NgTemplateOutlet,\n RouterLinkWithHref,\n RouterLinkActive,\n ],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => WattSegmentedButtonsComponent),\n multi: true,\n },\n ],\n selector: 'watt-segmented-buttons',\n styles: `\n @use '@energinet/watt/utils' as watt;\n @use '@angular/material' as mat;\n\n :root {\n @include mat.button-toggle-overrides(\n (\n selected-state-text-color: white,\n selected-state-background-color: var(--watt-color-primary),\n height: 2.5rem,\n )\n );\n\n mat-button-toggle-group {\n border-color: var(--watt-color-neutral-grey-700);\n\n mat-button-toggle {\n border-color: var(--watt-color-neutral-grey-700) !important;\n\n button {\n min-width: 6.5rem;\n\n span {\n font-size: 0.875rem;\n font-weight: 600;\n }\n }\n }\n }\n }\n `,\n template: `\n <mat-button-toggle-group\n [(ngModel)]=\"selected\"\n [multiple]=\"false\"\n [hideSingleSelectionIndicator]=\"true\"\n [disabled]=\"disabled()\"\n >\n @for (segmentedButton of segmentedButtonElements(); track segmentedButton) {\n <mat-button-toggle\n [routerLink]=\"segmentedButton.link()\"\n routerLinkActive=\"mat-button-toggle-checked\"\n [disableRipple]=\"true\"\n [value]=\"segmentedButton.value()\"\n >\n <ng-container *ngTemplateOutlet=\"segmentedButton.templateRef()\" />\n </mat-button-toggle>\n }\n </mat-button-toggle-group>\n `,\n})\nexport class WattSegmentedButtonsComponent implements ControlValueAccessor {\n private element = inject(ElementRef);\n segmentedButtonElements = contentChildren(WattSegmentedButtonComponent);\n selected = model<string>('');\n disabled = signal(false);\n\n writeValue(selected: string): void {\n this.selected.set(selected);\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this.selected.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.disabled.set(isDisabled);\n }\n}\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-shell.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-shell.js","sourceRoot":"","sources":["../../../../libs/watt/package/shell/energinet-watt-shell.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1,21 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- export { WattShellComponent } from './shell.component';
20
- export * from './nav-list';
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/shell/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,cAAc,YAAY,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 { WattShellComponent } from './shell.component';\nexport * from './nav-list';\n"]}
@@ -1,21 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- export { WattNavListComponent } from './watt-nav-list.component';
20
- export { WattNavListItemComponent } from './watt-nav-list-item.component';
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/watt/package/shell/nav-list/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { WattNavListComponent } from './watt-nav-list.component';\nexport { WattNavListItemComponent } from './watt-nav-list-item.component';\n"]}
@@ -1,47 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- import { Directive, inject, input, effect } from '@angular/core';
20
- import { MatExpansionPanel } from '@angular/material/expansion';
21
- import * as i0 from "@angular/core";
22
- export class WattExpandOnActiveLinkDirective {
23
- panel = inject(MatExpansionPanel);
24
- navListItemsEffect = effect((cleanupFn) => {
25
- const subs = [];
26
- cleanupFn(() => subs.forEach((sub) => sub.unsubscribe()));
27
- const navListItems = this.wattNavListItemComponents();
28
- if (navListItems.length > 0) {
29
- subs.push(...navListItems.map((item) => item.isActive.subscribe((isActive) => {
30
- if (isActive) {
31
- this.panel.open();
32
- }
33
- })));
34
- }
35
- }, ...(ngDevMode ? [{ debugName: "navListItemsEffect" }] : []));
36
- wattNavListItemComponents = input([], ...(ngDevMode ? [{ debugName: "wattNavListItemComponents" }] : []));
37
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattExpandOnActiveLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
38
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: WattExpandOnActiveLinkDirective, isStandalone: true, selector: "[wattExpandOnActiveLink]", inputs: { wattNavListItemComponents: { classPropertyName: "wattNavListItemComponents", publicName: "wattNavListItemComponents", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["wattExpandOnActiveLink"], ngImport: i0 });
39
- }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattExpandOnActiveLinkDirective, decorators: [{
41
- type: Directive,
42
- args: [{
43
- selector: '[wattExpandOnActiveLink]',
44
- exportAs: 'wattExpandOnActiveLink',
45
- }]
46
- }], propDecorators: { wattNavListItemComponents: [{ type: i0.Input, args: [{ isSignal: true, alias: "wattNavListItemComponents", required: false }] }] } });
47
- //# sourceMappingURL=watt-expand-on-active-link.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-expand-on-active-link.directive.js","sourceRoot":"","sources":["../../../../../libs/watt/package/shell/nav-list/watt-expand-on-active-link.directive.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAyB,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;;AAQhE,MAAM,OAAO,+BAA+B;IAClC,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAElC,kBAAkB,GAAG,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE;QAChD,MAAM,IAAI,GAA4B,EAAE,CAAC;QAEzC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QAE1D,MAAM,YAAY,GAAG,IAAI,CAAC,yBAAyB,EAAE,CAAC;QAEtD,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5B,IAAI,CAAC,IAAI,CACP,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAC3B,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACnC,IAAI,QAAQ,EAAE,CAAC;oBACb,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;gBACpB,CAAC;YACH,CAAC,CAAC,CACH,CACF,CAAC;QACJ,CAAC;IACH,CAAC,8DAAC,CAAC;IAEH,yBAAyB,GAAG,KAAK,CAAsC,EAAE,qEAAC,CAAC;wGAvBhE,+BAA+B;4FAA/B,+BAA+B;;4FAA/B,+BAA+B;kBAJ3C,SAAS;mBAAC;oBACT,QAAQ,EAAE,0BAA0B;oBACpC,QAAQ,EAAE,wBAAwB;iBACnC","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Directive, inject, input, effect, OutputRefSubscription } from '@angular/core';\nimport { MatExpansionPanel } from '@angular/material/expansion';\n\nimport { type WattNavListItemComponent } from './watt-nav-list-item.component';\n\n@Directive({\n selector: '[wattExpandOnActiveLink]',\n exportAs: 'wattExpandOnActiveLink',\n})\nexport class WattExpandOnActiveLinkDirective {\n private panel = inject(MatExpansionPanel);\n\n private navListItemsEffect = effect((cleanupFn) => {\n const subs: OutputRefSubscription[] = [];\n\n cleanupFn(() => subs.forEach((sub) => sub.unsubscribe()));\n\n const navListItems = this.wattNavListItemComponents();\n\n if (navListItems.length > 0) {\n subs.push(\n ...navListItems.map((item) =>\n item.isActive.subscribe((isActive) => {\n if (isActive) {\n this.panel.open();\n }\n })\n )\n );\n }\n });\n\n wattNavListItemComponents = input<readonly WattNavListItemComponent[]>([]);\n}\n"]}
@@ -1,83 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';
20
- import { NgTemplateOutlet } from '@angular/common';
21
- import { RouterLink, RouterLinkActive } from '@angular/router';
22
- import * as i0 from "@angular/core";
23
- export class WattNavListItemComponent {
24
- link = input.required(...(ngDevMode ? [{ debugName: "link" }] : []));
25
- target = input('_self', ...(ngDevMode ? [{ debugName: "target" }] : []));
26
- isActive = output();
27
- /**
28
- * @ignore
29
- */
30
- isExternalLink = computed(() => /^(http:\/\/|https:\/\/)/i.test(this.link()), ...(ngDevMode ? [{ debugName: "isExternalLink" }] : []));
31
- /**
32
- * @ignore
33
- */
34
- onRouterLinkActive(isActive) {
35
- this.isActive.emit(isActive);
36
- }
37
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattNavListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
38
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: WattNavListItemComponent, isStandalone: true, selector: "watt-nav-list-item", inputs: { link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: true, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isActive: "isActive" }, ngImport: i0, template: `
39
- @if (isExternalLink()) {
40
- <a [href]="link()" [attr.target]="target()"
41
- ><ng-container *ngTemplateOutlet="templateContent"
42
- /></a>
43
- } @else {
44
- <a
45
- [routerLink]="link()"
46
- routerLinkActive="active"
47
- (isActiveChange)="onRouterLinkActive($event)"
48
- ><ng-container *ngTemplateOutlet="templateContent"
49
- /></a>
50
- }
51
-
52
- <ng-template #templateContent>
53
- <ng-content />
54
- </ng-template>
55
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
56
- }
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattNavListItemComponent, decorators: [{
58
- type: Component,
59
- args: [{
60
- selector: 'watt-nav-list-item',
61
- changeDetection: ChangeDetectionStrategy.OnPush,
62
- imports: [NgTemplateOutlet, RouterLink, RouterLinkActive],
63
- template: `
64
- @if (isExternalLink()) {
65
- <a [href]="link()" [attr.target]="target()"
66
- ><ng-container *ngTemplateOutlet="templateContent"
67
- /></a>
68
- } @else {
69
- <a
70
- [routerLink]="link()"
71
- routerLinkActive="active"
72
- (isActiveChange)="onRouterLinkActive($event)"
73
- ><ng-container *ngTemplateOutlet="templateContent"
74
- /></a>
75
- }
76
-
77
- <ng-template #templateContent>
78
- <ng-content />
79
- </ng-template>
80
- `,
81
- }]
82
- }], propDecorators: { link: [{ type: i0.Input, args: [{ isSignal: true, alias: "link", required: true }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], isActive: [{ type: i0.Output, args: ["isActive"] }] } });
83
- //# sourceMappingURL=watt-nav-list-item.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-nav-list-item.component.js","sourceRoot":"","sources":["../../../../../libs/watt/package/shell/nav-list/watt-nav-list-item.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;;AAyB/D,MAAM,OAAO,wBAAwB;IACnC,IAAI,GAAG,KAAK,CAAC,QAAQ,+CAAU,CAAC;IAChC,MAAM,GAAG,KAAK,CAA0C,OAAO,kDAAC,CAAC;IACjE,QAAQ,GAAG,MAAM,EAAW,CAAC;IAE7B;;OAEG;IACH,cAAc,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,0DAAC,CAAC;IAE9E;;OAEG;IACH,kBAAkB,CAAC,QAAiB;QAClC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC;wGAfU,wBAAwB;4FAAxB,wBAAwB,4WAnBzB;;;;;;;;;;;;;;;;;GAiBT,4DAlBS,gBAAgB,oJAAE,UAAU,oOAAE,gBAAgB;;4FAoB7C,wBAAwB;kBAvBpC,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;oBAC9B,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,gBAAgB,EAAE,UAAU,EAAE,gBAAgB,CAAC;oBACzD,QAAQ,EAAE;;;;;;;;;;;;;;;;;GAiBT;iBACF","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 { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n@Component({\n selector: 'watt-nav-list-item',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgTemplateOutlet, RouterLink, RouterLinkActive],\n template: `\n @if (isExternalLink()) {\n <a [href]=\"link()\" [attr.target]=\"target()\"\n ><ng-container *ngTemplateOutlet=\"templateContent\"\n /></a>\n } @else {\n <a\n [routerLink]=\"link()\"\n routerLinkActive=\"active\"\n (isActiveChange)=\"onRouterLinkActive($event)\"\n ><ng-container *ngTemplateOutlet=\"templateContent\"\n /></a>\n }\n\n <ng-template #templateContent>\n <ng-content />\n </ng-template>\n `,\n})\nexport class WattNavListItemComponent {\n link = input.required<string>();\n target = input<'_self' | '_blank' | '_parent' | '_top'>('_self');\n isActive = output<boolean>();\n\n /**\n * @ignore\n */\n isExternalLink = computed(() => /^(http:\\/\\/|https:\\/\\/)/i.test(this.link()));\n\n /**\n * @ignore\n */\n onRouterLinkActive(isActive: boolean) {\n this.isActive.emit(isActive);\n }\n}\n"]}
@@ -1,80 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- import { NgTemplateOutlet } from '@angular/common';
20
- import { ChangeDetectionStrategy, Component, ViewEncapsulation, contentChildren, input, } from '@angular/core';
21
- import { MatExpansionModule } from '@angular/material/expansion';
22
- import { WattExpandOnActiveLinkDirective } from './watt-expand-on-active-link.directive';
23
- import { WattNavListItemComponent } from './watt-nav-list-item.component';
24
- import * as i0 from "@angular/core";
25
- import * as i1 from "@angular/material/expansion";
26
- export class WattNavListComponent {
27
- /**
28
- * @ignore
29
- */
30
- navListItemComponents = contentChildren(WattNavListItemComponent, ...(ngDevMode ? [{ debugName: "navListItemComponents" }] : []));
31
- expandable = input(false, ...(ngDevMode ? [{ debugName: "expandable" }] : []));
32
- title = input('', ...(ngDevMode ? [{ debugName: "title" }] : []));
33
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattNavListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
34
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: WattNavListComponent, isStandalone: true, selector: "watt-nav-list", inputs: { expandable: { classPropertyName: "expandable", publicName: "expandable", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.watt-nav-list--expandable": "expandable()" } }, queries: [{ propertyName: "navListItemComponents", predicate: WattNavListItemComponent, isSignal: true }], ngImport: i0, template: `
35
- @if (expandable()) {
36
- <mat-expansion-panel
37
- wattExpandOnActiveLink
38
- [wattNavListItemComponents]="navListItemComponents()"
39
- class="mat-elevation-z0"
40
- >
41
- <mat-expansion-panel-header>
42
- <mat-panel-title class="watt-text-m">{{ title() }}</mat-panel-title>
43
- </mat-expansion-panel-header>
44
- <ng-container *ngTemplateOutlet="navListTemplate" />
45
- </mat-expansion-panel>
46
- } @else {
47
- <ng-container *ngTemplateOutlet="navListTemplate" />
48
- }
49
-
50
- <ng-template #navListTemplate>
51
- <ng-content />
52
- </ng-template>
53
- `, isInline: true, styles: ["watt-nav-list{background-color:var(--watt-sidenav-background-color)}watt-nav-list watt-nav-list-item{display:block}watt-nav-list watt-nav-list-item a{padding:var(--watt-space-s) var(--watt-space-m);padding:var(--watt-space-s);display:block;border-left:var(--watt-space-xs) solid transparent;border-radius:var(--watt-space-s);color:var(--watt-color-neutral-white);text-decoration:none}watt-nav-list watt-nav-list-item a:hover{transition:background-color linear var(--watt-faster-than-a-blink-of-an-eye)}watt-nav-list watt-nav-list-item a:hover{background-color:var(--watt-nav-list-hover-background-color)}watt-nav-list watt-nav-list-item a.active{background-color:var(--watt-nav-list-active-background-color)}watt-nav-list.watt-nav-list--expandable .mat-expansion-panel{background-color:var(--watt-sidenav-background-color);margin:0;border-radius:0}watt-nav-list.watt-nav-list--expandable .mat-expansion-panel-header.mat-expanded:hover,watt-nav-list.watt-nav-list--expandable .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){transition:background-color linear var(--watt-faster-than-a-blink-of-an-eye);background-color:var(--watt-nav-list-hover-background-color)}watt-nav-list.watt-nav-list--expandable .mat-expansion-panel-header{border-radius:var(--watt-space-s);padding-left:calc(var(--watt-space-xs) + var(--watt-space-s));height:40px}watt-nav-list.watt-nav-list--expandable .mat-expansion-panel-header-title{color:var(--watt-color-neutral-white)}watt-nav-list.watt-nav-list--expandable .mat-expansion-indicator:after{color:var(--watt-color-neutral-white);position:relative;top:-3px}watt-nav-list.watt-nav-list--expandable .mat-expansion-panel-body{padding:0}watt-nav-list.watt-nav-list--expandable watt-nav-list-item a{padding-left:var(--watt-space-m)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "component", type: i1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: WattExpandOnActiveLinkDirective, selector: "[wattExpandOnActiveLink]", inputs: ["wattNavListItemComponents"], exportAs: ["wattExpandOnActiveLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
54
- }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattNavListComponent, decorators: [{
56
- type: Component,
57
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, selector: 'watt-nav-list', host: {
58
- '[class.watt-nav-list--expandable]': 'expandable()',
59
- }, template: `
60
- @if (expandable()) {
61
- <mat-expansion-panel
62
- wattExpandOnActiveLink
63
- [wattNavListItemComponents]="navListItemComponents()"
64
- class="mat-elevation-z0"
65
- >
66
- <mat-expansion-panel-header>
67
- <mat-panel-title class="watt-text-m">{{ title() }}</mat-panel-title>
68
- </mat-expansion-panel-header>
69
- <ng-container *ngTemplateOutlet="navListTemplate" />
70
- </mat-expansion-panel>
71
- } @else {
72
- <ng-container *ngTemplateOutlet="navListTemplate" />
73
- }
74
-
75
- <ng-template #navListTemplate>
76
- <ng-content />
77
- </ng-template>
78
- `, imports: [NgTemplateOutlet, MatExpansionModule, WattExpandOnActiveLinkDirective], styles: ["watt-nav-list{background-color:var(--watt-sidenav-background-color)}watt-nav-list watt-nav-list-item{display:block}watt-nav-list watt-nav-list-item a{padding:var(--watt-space-s) var(--watt-space-m);padding:var(--watt-space-s);display:block;border-left:var(--watt-space-xs) solid transparent;border-radius:var(--watt-space-s);color:var(--watt-color-neutral-white);text-decoration:none}watt-nav-list watt-nav-list-item a:hover{transition:background-color linear var(--watt-faster-than-a-blink-of-an-eye)}watt-nav-list watt-nav-list-item a:hover{background-color:var(--watt-nav-list-hover-background-color)}watt-nav-list watt-nav-list-item a.active{background-color:var(--watt-nav-list-active-background-color)}watt-nav-list.watt-nav-list--expandable .mat-expansion-panel{background-color:var(--watt-sidenav-background-color);margin:0;border-radius:0}watt-nav-list.watt-nav-list--expandable .mat-expansion-panel-header.mat-expanded:hover,watt-nav-list.watt-nav-list--expandable .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){transition:background-color linear var(--watt-faster-than-a-blink-of-an-eye);background-color:var(--watt-nav-list-hover-background-color)}watt-nav-list.watt-nav-list--expandable .mat-expansion-panel-header{border-radius:var(--watt-space-s);padding-left:calc(var(--watt-space-xs) + var(--watt-space-s));height:40px}watt-nav-list.watt-nav-list--expandable .mat-expansion-panel-header-title{color:var(--watt-color-neutral-white)}watt-nav-list.watt-nav-list--expandable .mat-expansion-indicator:after{color:var(--watt-color-neutral-white);position:relative;top:-3px}watt-nav-list.watt-nav-list--expandable .mat-expansion-panel-body{padding:0}watt-nav-list.watt-nav-list--expandable watt-nav-list-item a{padding-left:var(--watt-space-m)}\n"] }]
79
- }], propDecorators: { navListItemComponents: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => WattNavListItemComponent), { isSignal: true }] }], expandable: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandable", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }] } });
80
- //# sourceMappingURL=watt-nav-list.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-nav-list.component.js","sourceRoot":"","sources":["../../../../../libs/watt/package/shell/nav-list/watt-nav-list.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;;;AAgC1E,MAAM,OAAO,oBAAoB;IAC/B;;OAEG;IACH,qBAAqB,GAAG,eAAe,CAAC,wBAAwB,iEAAC,CAAC;IAElE,UAAU,GAAG,KAAK,CAAC,KAAK,sDAAC,CAAC;IAC1B,KAAK,GAAG,KAAK,CAAC,EAAE,iDAAC,CAAC;wGAPP,oBAAoB;4FAApB,oBAAoB,ucAIS,wBAAwB,6CA1BtD;;;;;;;;;;;;;;;;;;;GAmBT,21DACS,gBAAgB,mJAAE,kBAAkB,0dAAE,+BAA+B;;4FAEpE,oBAAoB;kBA9BhC,SAAS;sCACS,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,YAC3B,eAAe,QAEnB;wBACJ,mCAAmC,EAAE,cAAc;qBACpD,YACS;;;;;;;;;;;;;;;;;;;GAmBT,WACQ,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,+BAA+B,CAAC;6GAMxC,wBAAwB","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 { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n contentChildren,\n input,\n} from '@angular/core';\nimport { MatExpansionModule } from '@angular/material/expansion';\n\nimport { WattExpandOnActiveLinkDirective } from './watt-expand-on-active-link.directive';\nimport { WattNavListItemComponent } from './watt-nav-list-item.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n selector: 'watt-nav-list',\n styleUrl: './watt-nav-list.component.scss',\n host: {\n '[class.watt-nav-list--expandable]': 'expandable()',\n },\n template: `\n @if (expandable()) {\n <mat-expansion-panel\n wattExpandOnActiveLink\n [wattNavListItemComponents]=\"navListItemComponents()\"\n class=\"mat-elevation-z0\"\n >\n <mat-expansion-panel-header>\n <mat-panel-title class=\"watt-text-m\">{{ title() }}</mat-panel-title>\n </mat-expansion-panel-header>\n <ng-container *ngTemplateOutlet=\"navListTemplate\" />\n </mat-expansion-panel>\n } @else {\n <ng-container *ngTemplateOutlet=\"navListTemplate\" />\n }\n\n <ng-template #navListTemplate>\n <ng-content />\n </ng-template>\n `,\n imports: [NgTemplateOutlet, MatExpansionModule, WattExpandOnActiveLinkDirective],\n})\nexport class WattNavListComponent {\n /**\n * @ignore\n */\n navListItemComponents = contentChildren(WattNavListItemComponent);\n\n expandable = input(false);\n title = input('');\n}\n"]}
@@ -1,59 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- import { Router, NavigationEnd } from '@angular/router';
20
- import { Component, inject, viewChild } from '@angular/core';
21
- import { filter, map } from 'rxjs';
22
- import { MatToolbarModule } from '@angular/material/toolbar';
23
- import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
24
- import { MatSidenavModule } from '@angular/material/sidenav';
25
- import { WattButtonComponent } from '@energinet/watt/button';
26
- import { WattBreakpointsObserver } from '@energinet/watt/core/breakpoints';
27
- import * as i0 from "@angular/core";
28
- import * as i1 from "@angular/material/sidenav";
29
- import * as i2 from "@angular/material/toolbar";
30
- export class WattShellComponent {
31
- breakpointObserver = inject(WattBreakpointsObserver);
32
- router = inject(Router);
33
- sidenav = viewChild.required('drawer');
34
- /**
35
- * @ignore
36
- */
37
- onNavigationEnd$ = this.router.events.pipe(filter((event) => event instanceof NavigationEnd));
38
- /**
39
- * @ignore
40
- */
41
- isHandset = toSignal(this.breakpointObserver
42
- .observe(['XSmall', 'Small', 'Medium'])
43
- .pipe(map((result) => result.matches)));
44
- constructor() {
45
- this.onNavigationEnd$.pipe(takeUntilDestroyed()).subscribe(() => {
46
- const sidenav = this.sidenav();
47
- if (this.isHandset() && sidenav.opened) {
48
- sidenav.close();
49
- }
50
- });
51
- }
52
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
53
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: WattShellComponent, isStandalone: true, selector: "watt-shell", viewQueries: [{ propertyName: "sidenav", first: true, predicate: ["drawer"], descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright 2020 Energinet DataHub A/S\n\nLicensed under the Apache License, Version 2.0 (the \"License2\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n<mat-sidenav-container class=\"watt-sidenav-container\">\n <mat-sidenav\n #drawer\n class=\"watt-sidenav\"\n [disableClose]=\"isHandset() === false\"\n [mode]=\"isHandset() ? 'over' : 'side'\"\n [opened]=\"isHandset() === false\"\n role=\"navigation\"\n >\n @if (isHandset()) {\n <watt-button\n variant=\"icon\"\n icon=\"close\"\n class=\"watt-sidenav-close-button\"\n (click)=\"drawer.toggle()\"\n />\n }\n <ng-content select=\"[watt-shell-sidenav]\" />\n </mat-sidenav>\n\n <mat-sidenav-content class=\"watt-sidenav-content\">\n <mat-toolbar class=\"watt-toolbar\">\n @if (isHandset()) {\n <watt-button variant=\"icon\" icon=\"menu\" (click)=\"drawer.toggle()\" />\n }\n\n <ng-content select=\"[watt-shell-toolbar]\" />\n </mat-toolbar>\n\n <main class=\"watt-main-content\">\n <ng-content />\n </main>\n </mat-sidenav-content>\n</mat-sidenav-container>\n", styles: [":host{display:block}.watt-sidenav-container{height:100vh}.watt-sidenav-close-button{position:absolute;top:10px;right:0}.mat-drawer{overflow-y:visible}.watt-sidenav{width:245px;background-color:var(--watt-sidenav-background-color)}@media(max-width:1279.98px){.watt-sidenav{width:289px}}.watt-sidenav.mat-drawer-over.mat-drawer-opened .watt-sidenav-close-button{opacity:1}.watt-sidenav.mat-drawer-over .watt-sidenav-close-button{opacity:0;transition:opacity 50ms linear}.watt-sidenav.mat-drawer-over .watt-sidenav-close-button ::ng-deep .mat-mdc-button.mat-icon{color:var(--watt-color-neutral-white)}.watt-sidenav-content{display:grid;grid-template-rows:auto minmax(30rem,1fr)}.watt-main-content{position:relative;height:100%}.watt-toolbar{position:sticky;top:0;background-color:var(--watt-color-neutral-white);border-bottom:1px solid var(--watt-color-neutral-grey-300);height:var(--watt-space-xl);z-index:2}.watt-main-content,.watt-toolbar{width:100vw}@media(min-width:1280px){.watt-main-content,.watt-toolbar{width:calc(100vw - 245px)}}\n"], dependencies: [{ kind: "ngmodule", type: MatSidenavModule }, { kind: "component", type: i1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i1.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i1.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i2.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: WattButtonComponent, selector: "watt-button", inputs: ["icon", "variant", "size", "type", "formId", "disabled", "loading"] }] });
54
- }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattShellComponent, decorators: [{
56
- type: Component,
57
- args: [{ selector: 'watt-shell', imports: [MatSidenavModule, MatToolbarModule, WattButtonComponent], template: "<!--\n@license\nCopyright 2020 Energinet DataHub A/S\n\nLicensed under the Apache License, Version 2.0 (the \"License2\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n<mat-sidenav-container class=\"watt-sidenav-container\">\n <mat-sidenav\n #drawer\n class=\"watt-sidenav\"\n [disableClose]=\"isHandset() === false\"\n [mode]=\"isHandset() ? 'over' : 'side'\"\n [opened]=\"isHandset() === false\"\n role=\"navigation\"\n >\n @if (isHandset()) {\n <watt-button\n variant=\"icon\"\n icon=\"close\"\n class=\"watt-sidenav-close-button\"\n (click)=\"drawer.toggle()\"\n />\n }\n <ng-content select=\"[watt-shell-sidenav]\" />\n </mat-sidenav>\n\n <mat-sidenav-content class=\"watt-sidenav-content\">\n <mat-toolbar class=\"watt-toolbar\">\n @if (isHandset()) {\n <watt-button variant=\"icon\" icon=\"menu\" (click)=\"drawer.toggle()\" />\n }\n\n <ng-content select=\"[watt-shell-toolbar]\" />\n </mat-toolbar>\n\n <main class=\"watt-main-content\">\n <ng-content />\n </main>\n </mat-sidenav-content>\n</mat-sidenav-container>\n", styles: [":host{display:block}.watt-sidenav-container{height:100vh}.watt-sidenav-close-button{position:absolute;top:10px;right:0}.mat-drawer{overflow-y:visible}.watt-sidenav{width:245px;background-color:var(--watt-sidenav-background-color)}@media(max-width:1279.98px){.watt-sidenav{width:289px}}.watt-sidenav.mat-drawer-over.mat-drawer-opened .watt-sidenav-close-button{opacity:1}.watt-sidenav.mat-drawer-over .watt-sidenav-close-button{opacity:0;transition:opacity 50ms linear}.watt-sidenav.mat-drawer-over .watt-sidenav-close-button ::ng-deep .mat-mdc-button.mat-icon{color:var(--watt-color-neutral-white)}.watt-sidenav-content{display:grid;grid-template-rows:auto minmax(30rem,1fr)}.watt-main-content{position:relative;height:100%}.watt-toolbar{position:sticky;top:0;background-color:var(--watt-color-neutral-white);border-bottom:1px solid var(--watt-color-neutral-grey-300);height:var(--watt-space-xl);z-index:2}.watt-main-content,.watt-toolbar{width:100vw}@media(min-width:1280px){.watt-main-content,.watt-toolbar{width:calc(100vw - 245px)}}\n"] }]
58
- }], ctorParameters: () => [], propDecorators: { sidenav: [{ type: i0.ViewChild, args: ['drawer', { isSignal: true }] }] } });
59
- //# sourceMappingURL=shell.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shell.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/shell/shell.component.ts","../../../../libs/watt/package/shell/shell.component.html"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAc,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;;;;AAQ3E,MAAM,OAAO,kBAAkB;IACrB,kBAAkB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC;IACrD,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IACf,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAa,QAAQ,CAAC,CAAC;IAEpE;;OAEG;IACK,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAChD,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,YAAY,aAAa,CAAC,CAClD,CAAC;IAEF;;OAEG;IACH,SAAS,GAAG,QAAQ,CAClB,IAAI,CAAC,kBAAkB;SACpB,OAAO,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;SACtC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CACzC,CAAC;IAEF;QACE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE;YAC9D,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAC/B,IAAI,IAAI,CAAC,SAAS,EAAE,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;gBACvC,OAAO,CAAC,KAAK,EAAE,CAAC;YAClB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;wGA5BU,kBAAkB;4FAAlB,kBAAkB,yLCnC/B,iiDAkDA,ukCDjBY,gBAAgB,0YAAE,gBAAgB,iJAAE,mBAAmB;;4FAEtD,kBAAkB;kBAN9B,SAAS;+BACE,YAAY,WAGb,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,mBAAmB,CAAC;+FAKR,QAAQ","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 { Router, NavigationEnd } from '@angular/router';\nimport { Component, inject, viewChild } from '@angular/core';\n\nimport { filter, map } from 'rxjs';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';\nimport { MatSidenav, MatSidenavModule } from '@angular/material/sidenav';\n\nimport { WattButtonComponent } from '@energinet/watt/button';\nimport { WattBreakpointsObserver } from '@energinet/watt/core/breakpoints';\n\n@Component({\n selector: 'watt-shell',\n styleUrls: ['./shell.component.scss'],\n templateUrl: './shell.component.html',\n imports: [MatSidenavModule, MatToolbarModule, WattButtonComponent],\n})\nexport class WattShellComponent {\n private breakpointObserver = inject(WattBreakpointsObserver);\n private router = inject(Router);\n private readonly sidenav = viewChild.required<MatSidenav>('drawer');\n\n /**\n * @ignore\n */\n private onNavigationEnd$ = this.router.events.pipe(\n filter((event) => event instanceof NavigationEnd)\n );\n\n /**\n * @ignore\n */\n isHandset = toSignal(\n this.breakpointObserver\n .observe(['XSmall', 'Small', 'Medium'])\n .pipe(map((result) => result.matches))\n );\n\n constructor() {\n this.onNavigationEnd$.pipe(takeUntilDestroyed()).subscribe(() => {\n const sidenav = this.sidenav();\n if (this.isHandset() && sidenav.opened) {\n sidenav.close();\n }\n });\n }\n}\n","<!--\n@license\nCopyright 2020 Energinet DataHub A/S\n\nLicensed under the Apache License, Version 2.0 (the \"License2\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n<mat-sidenav-container class=\"watt-sidenav-container\">\n <mat-sidenav\n #drawer\n class=\"watt-sidenav\"\n [disableClose]=\"isHandset() === false\"\n [mode]=\"isHandset() ? 'over' : 'side'\"\n [opened]=\"isHandset() === false\"\n role=\"navigation\"\n >\n @if (isHandset()) {\n <watt-button\n variant=\"icon\"\n icon=\"close\"\n class=\"watt-sidenav-close-button\"\n (click)=\"drawer.toggle()\"\n />\n }\n <ng-content select=\"[watt-shell-sidenav]\" />\n </mat-sidenav>\n\n <mat-sidenav-content class=\"watt-sidenav-content\">\n <mat-toolbar class=\"watt-toolbar\">\n @if (isHandset()) {\n <watt-button variant=\"icon\" icon=\"menu\" (click)=\"drawer.toggle()\" />\n }\n\n <ng-content select=\"[watt-shell-toolbar]\" />\n </mat-toolbar>\n\n <main class=\"watt-main-content\">\n <ng-content />\n </main>\n </mat-sidenav-content>\n</mat-sidenav-container>\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-slide-toggle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-slide-toggle.js","sourceRoot":"","sources":["../../../../libs/watt/package/slide-toggle/energinet-watt-slide-toggle.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1,20 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- export { WattSlideToggleComponent } from './watt-slide-toggle.component';
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/slide-toggle/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,wBAAwB,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 { WattSlideToggleComponent } from './watt-slide-toggle.component';\n"]}
@@ -1 +0,0 @@
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"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-slider.js.map
@@ -1 +0,0 @@
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"]}
@@ -1,20 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- export { WattSliderComponent } from './watt-slider.component';
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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 +0,0 @@
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":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,MAAM,EAEN,MAAM,EACN,KAAK,EACL,MAAM,EACN,SAAS,EACT,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;;AAOpE;;GAEG;AAQH,MAAM,OAAO,mBAAmB;IACb,YAAY,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;IAC9C,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAEjD,kCAAkC;IACzB,GAAG,GAAG,KAAK,CAAC,QAAQ,8CAAU,CAAC;IAExC,mCAAmC;IAC1B,GAAG,GAAG,KAAK,CAAC,QAAQ,8CAAU,CAAC;IAExC,+BAA+B;IACtB,IAAI,GAAG,KAAK,CAAC,CAAC,gDAAC,CAAC;IAEzB,0CAA0C;IACjC,KAAK,GAAG,KAAK,2DAA+B,CAAC;IAC7C,YAAY,GAAG,QAAQ,CAAC,GAAG,EAAE;QACpC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;QAChC,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;QAC9C,CAAC;QACD,OAAO,UAAU,CAAC;IACpB,CAAC,wDAAC,CAAC;IAEM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAA+B,UAAU,CAAC,CAAC;IACxE,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAA+B,UAAU,CAAC,CAAC;IAExE,WAAW,GAAG,MAAM,EAAmB,CAAC;IAExC,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAC3D,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAE5D;QACE,MAAM,CAAC,GAAG,EAAE;YACV,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;YAClC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,GAAG,EAAE;YACV,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;YACjC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;YAEjC,MAAM,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC;YAC/C,MAAM,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC;YAE/C,+BAA+B;YAC/B,SAAS,CAAC,eAAe,EAAE,OAAO,CAAC;iBAChC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;iBACzC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE;gBACnB,MAAM,QAAQ,GAAI,KAAK,CAAC,MAA2B,CAAC,aAAa,CAAC;gBAClE,MAAM,QAAQ,GAAG,eAAe,CAAC,aAAa,CAAC;gBAE/C,IAAI,WAAW,GAAG,QAAQ,CAAC;gBAC3B,IAAI,QAAQ,GAAG,QAAQ,EAAE,CAAC;oBACxB,WAAW,GAAG,QAAQ,CAAC;oBACvB,eAAe,CAAC,aAAa,GAAG,WAAW,CAAC;gBAC9C,CAAC;gBAED,MAAM,QAAQ,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;gBACrD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;gBAC7C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAClC,CAAC,CAAC,CAAC;YAEL,+BAA+B;YAC/B,SAAS,CAAC,eAAe,EAAE,OAAO,CAAC;iBAChC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;iBACzC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE;gBACnB,MAAM,QAAQ,GAAI,KAAK,CAAC,MAA2B,CAAC,aAAa,CAAC;gBAClE,MAAM,QAAQ,GAAG,eAAe,CAAC,aAAa,CAAC;gBAE/C,IAAI,WAAW,GAAG,QAAQ,CAAC;gBAC3B,IAAI,QAAQ,GAAG,QAAQ,EAAE,CAAC;oBACxB,WAAW,GAAG,QAAQ,CAAC;oBACvB,eAAe,CAAC,aAAa,GAAG,WAAW,CAAC;gBAC9C,CAAC;gBAED,MAAM,QAAQ,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;gBACrD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;gBAC7C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAClC,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,WAAW,CAAC,QAAgB,EAAE,QAAgB;QACpD,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QACjC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QACjC,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ;YAAE,OAAO;QAEnC,MAAM,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC;QAC/C,MAAM,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC;QAE/C,eAAe,CAAC,aAAa,GAAG,QAAQ,CAAC;QACzC,eAAe,CAAC,aAAa,GAAG,QAAQ,CAAC;QAEzC,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC9C,MAAM,YAAY,GAAG,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC3C,MAAM,UAAU,GAAG,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAEzC,eAAe,CAAC,KAAK,CAAC,UAAU,GAAG;;QAE/B,IAAI,CAAC,WAAW;QAChB,IAAI,CAAC,WAAW,IAAI,CAAC,YAAY,GAAG,aAAa,CAAC,GAAG,GAAG;QACxD,IAAI,CAAC,UAAU,IAAI,CAAC,YAAY,GAAG,aAAa,CAAC,GAAG,GAAG;QACvD,IAAI,CAAC,UAAU,IAAI,CAAC,UAAU,GAAG,aAAa,CAAC,GAAG,GAAG;QACrD,IAAI,CAAC,WAAW,IAAI,CAAC,UAAU,GAAG,aAAa,CAAC,GAAG,GAAG;QACtD,IAAI,CAAC,WAAW,QAAQ,CAAC;IAC/B,CAAC;wGAzGU,mBAAmB;4FAAnB,mBAAmB,wyBCnDhC,wgCAsCA;;4FDaa,mBAAmB;kBAP/B,SAAS;sCACS,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,YAC3B,aAAa;4bA2B8C,UAAU,kEACV,UAAU","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"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-spinner.js.map
@@ -1 +0,0 @@
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"]}