@energinet/watt 2.0.14 → 2.1.1

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 (391) hide show
  1. package/badge/energinet-watt-badge.d.ts +5 -0
  2. package/breadcrumbs/energinet-watt-breadcrumbs.d.ts +5 -0
  3. package/button/energinet-watt-button.d.ts +5 -0
  4. package/card/energinet-watt-card.d.ts +5 -0
  5. package/checkbox/energinet-watt-checkbox.d.ts +5 -0
  6. package/chip/energinet-watt-chip.d.ts +5 -0
  7. package/clipboard/energinet-watt-clipboard.d.ts +5 -0
  8. package/code/energinet-watt-code.d.ts +5 -0
  9. package/core/breakpoints/breakpoints-observer.d.ts +1 -19
  10. package/core/breakpoints/energinet-watt-core-breakpoints.d.ts +5 -0
  11. package/core/color/color-helper.service.d.ts +2 -4
  12. package/core/color/energinet-watt-core-color.d.ts +5 -0
  13. package/core/date/energinet-watt-core-date.d.ts +5 -0
  14. package/core/date/watt-locale.service.d.ts +1 -3
  15. package/data/energinet-watt-data.d.ts +5 -0
  16. package/data/watt-data-table.component.d.ts +2 -1
  17. package/datetime-field/energinet-watt-datetime-field.d.ts +5 -0
  18. package/description-list/energinet-watt-description-list.d.ts +5 -0
  19. package/drawer/energinet-watt-drawer.d.ts +5 -0
  20. package/dropdown/energinet-watt-dropdown.d.ts +5 -0
  21. package/dropzone/energinet-watt-dropzone.d.ts +5 -0
  22. package/empty-state/energinet-watt-empty-state.d.ts +5 -0
  23. package/energinet-watt.d.ts +5 -0
  24. package/esm2022/badge/energinet-watt-badge.js +5 -0
  25. package/esm2022/badge/index.js +20 -0
  26. package/{fesm2022/energinet-watt-badge.mjs → esm2022/badge/watt-badge.component.js} +7 -33
  27. package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js +5 -0
  28. package/esm2022/breadcrumbs/index.js +20 -0
  29. package/esm2022/breadcrumbs/watt-breadcrumbs.component.js +90 -0
  30. package/esm2022/button/energinet-watt-button.js +5 -0
  31. package/esm2022/button/index.js +20 -0
  32. package/{fesm2022/energinet-watt-button.mjs → esm2022/button/watt-button.component.js} +14 -40
  33. package/esm2022/card/energinet-watt-card.js +5 -0
  34. package/esm2022/card/index.js +21 -0
  35. package/esm2022/card/watt-card-title.component.js +33 -0
  36. package/esm2022/card/watt-card.component.js +61 -0
  37. package/esm2022/checkbox/energinet-watt-checkbox.js +5 -0
  38. package/esm2022/checkbox/index.js +20 -0
  39. package/{fesm2022/energinet-watt-checkbox.mjs → esm2022/checkbox/watt-checkbox.component.js} +9 -35
  40. package/esm2022/chip/energinet-watt-chip.js +5 -0
  41. package/esm2022/chip/index.js +26 -0
  42. package/esm2022/chip/watt-action-chip.component.js +68 -0
  43. package/esm2022/chip/watt-chip.component.js +55 -0
  44. package/esm2022/chip/watt-chip.directive.js +92 -0
  45. package/esm2022/chip/watt-date-chip.component.js +118 -0
  46. package/esm2022/chip/watt-date-range-chip.component.js +240 -0
  47. package/esm2022/chip/watt-filter-chip.component.js +94 -0
  48. package/esm2022/chip/watt-menu-chip.component.js +95 -0
  49. package/esm2022/clipboard/energinet-watt-clipboard.js +5 -0
  50. package/esm2022/clipboard/index.js +21 -0
  51. package/esm2022/clipboard/watt-clipboard-intl.service.js +31 -0
  52. package/esm2022/clipboard/watt-copy-to-clipboard.directive.js +64 -0
  53. package/esm2022/code/energinet-watt-code.js +5 -0
  54. package/esm2022/code/index.js +21 -0
  55. package/esm2022/code/watt-code.component.js +74 -0
  56. package/esm2022/code/watt-code.worker.token.js +21 -0
  57. package/esm2022/core/breakpoints/breakpoints-observer.js +41 -0
  58. package/esm2022/core/breakpoints/breakpoints.js +31 -0
  59. package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js +5 -0
  60. package/esm2022/core/breakpoints/index.js +21 -0
  61. package/esm2022/core/color/color-helper.service.js +41 -0
  62. package/esm2022/core/color/colors.js +58 -0
  63. package/esm2022/core/color/energinet-watt-core-color.js +5 -0
  64. package/esm2022/core/color/index.js +21 -0
  65. package/esm2022/core/date/dayjs.js +34 -0
  66. package/esm2022/core/date/energinet-watt-core-date.js +5 -0
  67. package/esm2022/core/date/index.js +25 -0
  68. package/esm2022/core/date/watt-danish-datetime.providers.js +31 -0
  69. package/esm2022/core/date/watt-date-adapter.js +43 -0
  70. package/esm2022/core/date/watt-date-range.js +2 -0
  71. package/esm2022/core/date/watt-date.pipe.js +38 -0
  72. package/esm2022/core/date/watt-format-date.js +50 -0
  73. package/esm2022/core/date/watt-locale.service.js +48 -0
  74. package/esm2022/data/energinet-watt-data.js +5 -0
  75. package/esm2022/data/index.js +23 -0
  76. package/esm2022/data/watt-data-actions.component.js +32 -0
  77. package/esm2022/data/watt-data-filters.component.js +32 -0
  78. package/esm2022/data/watt-data-intl.service.js +39 -0
  79. package/esm2022/data/watt-data-table.component.js +193 -0
  80. package/esm2022/datetime-field/energinet-watt-datetime-field.js +5 -0
  81. package/esm2022/datetime-field/index.js +20 -0
  82. package/esm2022/datetime-field/watt-datetime-field.component.js +207 -0
  83. package/esm2022/description-list/energinet-watt-description-list.js +5 -0
  84. package/esm2022/description-list/index.js +20 -0
  85. package/esm2022/description-list/watt-description-list-item.component.js +49 -0
  86. package/{fesm2022/energinet-watt-description-list.mjs → esm2022/description-list/watt-description-list.component.js} +10 -79
  87. package/esm2022/drawer/energinet-watt-drawer.js +5 -0
  88. package/esm2022/drawer/index.js +24 -0
  89. package/esm2022/drawer/watt-drawer-actions.component.js +29 -0
  90. package/esm2022/drawer/watt-drawer-content.component.js +29 -0
  91. package/esm2022/drawer/watt-drawer-heading.component.js +29 -0
  92. package/esm2022/drawer/watt-drawer-topbar.component.js +29 -0
  93. package/esm2022/drawer/watt-drawer.component.js +177 -0
  94. package/esm2022/dropdown/energinet-watt-dropdown.js +5 -0
  95. package/esm2022/dropdown/index.js +20 -0
  96. package/esm2022/dropdown/watt-dropdown-option.js +2 -0
  97. package/esm2022/dropdown/watt-dropdown-value.js +2 -0
  98. package/esm2022/dropdown/watt-dropdown.component.js +396 -0
  99. package/esm2022/dropzone/energinet-watt-dropzone.js +5 -0
  100. package/esm2022/dropzone/index.js +22 -0
  101. package/esm2022/dropzone/watt-dropzone-intl.js +35 -0
  102. package/esm2022/dropzone/watt-dropzone-validators.js +67 -0
  103. package/esm2022/dropzone/watt-dropzone.js +179 -0
  104. package/esm2022/empty-state/energinet-watt-empty-state.js +5 -0
  105. package/esm2022/empty-state/icons/explore.js +54 -0
  106. package/esm2022/empty-state/icons/no-results.js +62 -0
  107. package/esm2022/empty-state/icons/power.js +46 -0
  108. package/esm2022/empty-state/index.js +23 -0
  109. package/esm2022/empty-state/watt-empty-state.component.js +120 -0
  110. package/esm2022/energinet-watt.js +5 -0
  111. package/esm2022/expandable-card/energinet-watt-expandable-card.js +5 -0
  112. package/esm2022/expandable-card/index.js +26 -0
  113. package/{fesm2022/energinet-watt-expandable-card.mjs → esm2022/expandable-card/watt-expandable-card.component.js} +18 -49
  114. package/esm2022/expansion/energinet-watt-expansion.js +5 -0
  115. package/{fesm2022/energinet-watt-expansion.mjs → esm2022/expansion/expansion.component.js} +10 -36
  116. package/esm2022/expansion/index.js +20 -0
  117. package/esm2022/field/energinet-watt-field.js +5 -0
  118. package/esm2022/field/index.js +23 -0
  119. package/esm2022/field/watt-field-error.component.js +29 -0
  120. package/esm2022/field/watt-field-hint.component.js +29 -0
  121. package/esm2022/field/watt-field-intl.service.js +32 -0
  122. package/{fesm2022/energinet-watt-field.mjs → esm2022/field/watt-field.component.js} +17 -125
  123. package/esm2022/icon/energinet-watt-icon.js +5 -0
  124. package/esm2022/icon/flags/energinet-watt-icon-flags.js +5 -0
  125. package/esm2022/icon/flags/index.js +26 -0
  126. package/esm2022/icon/flags/watt-flag-ch.js +52 -0
  127. package/esm2022/icon/flags/watt-flag-de.js +44 -0
  128. package/esm2022/icon/flags/watt-flag-dk.js +44 -0
  129. package/esm2022/icon/flags/watt-flag-fi.js +44 -0
  130. package/esm2022/icon/flags/watt-flag-nl.js +44 -0
  131. package/esm2022/icon/flags/watt-flag-no.js +48 -0
  132. package/esm2022/icon/flags/watt-flag-pl.js +46 -0
  133. package/esm2022/icon/flags/watt-flag-se.js +42 -0
  134. package/esm2022/icon/flags/watt-flag.js +116 -0
  135. package/{fesm2022/energinet-watt-icon.mjs → esm2022/icon/icon.component.js} +9 -131
  136. package/esm2022/icon/icons.js +97 -0
  137. package/esm2022/icon/index.js +20 -0
  138. package/esm2022/index.js +25 -0
  139. package/esm2022/modal/energinet-watt-modal.js +5 -0
  140. package/esm2022/modal/index.js +21 -0
  141. package/{fesm2022/energinet-watt-modal.mjs → esm2022/modal/watt-modal.component.js} +19 -127
  142. package/esm2022/modal/watt-modal.service.js +86 -0
  143. package/esm2022/paginator/energinet-watt-paginator.js +5 -0
  144. package/esm2022/paginator/index.js +21 -0
  145. package/esm2022/paginator/watt-paginator-intl.service.js +38 -0
  146. package/esm2022/paginator/watt-paginator.component.js +104 -0
  147. package/esm2022/phone-field/energinet-watt-phone-field.js +5 -0
  148. package/esm2022/phone-field/index.js +21 -0
  149. package/esm2022/phone-field/watt-phone-field-intl.service.js +40 -0
  150. package/esm2022/phone-field/watt-phone-field.component.js +262 -0
  151. package/esm2022/picker/__shared/energinet-watt-picker-__shared.js +5 -0
  152. package/esm2022/picker/__shared/index.js +21 -0
  153. package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js +71 -0
  154. package/esm2022/picker/__shared/watt-picker-base.js +292 -0
  155. package/esm2022/picker/__shared/watt-picker-value.js +2 -0
  156. package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js +5 -0
  157. package/esm2022/picker/datepicker/index.js +22 -0
  158. package/esm2022/picker/datepicker/watt-datepicker-intl.service.js +31 -0
  159. package/esm2022/picker/datepicker/watt-datepicker.component.js +422 -0
  160. package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js +5 -0
  161. package/esm2022/picker/timepicker/index.js +20 -0
  162. package/esm2022/picker/timepicker/maskito-time-range-mask.js +81 -0
  163. package/esm2022/picker/timepicker/watt-timepicker.component.js +288 -0
  164. package/esm2022/progress-tracker/energinet-watt-progress-tracker.js +5 -0
  165. package/esm2022/progress-tracker/index.js +27 -0
  166. package/{fesm2022/energinet-watt-progress-tracker.mjs → esm2022/progress-tracker/watt-progress-tracker-step.component.js} +9 -67
  167. package/esm2022/progress-tracker/watt-progress-tracker.component.js +30 -0
  168. package/esm2022/query-params/energinet-watt-query-params.js +5 -0
  169. package/esm2022/query-params/index.js +20 -0
  170. package/esm2022/query-params/watt-query-params.directive.js +91 -0
  171. package/esm2022/radio/energinet-watt-radio.js +5 -0
  172. package/esm2022/radio/index.js +20 -0
  173. package/{fesm2022/energinet-watt-radio.mjs → esm2022/radio/watt-radio.component.js} +9 -35
  174. package/esm2022/search/energinet-watt-search.js +5 -0
  175. package/esm2022/search/index.js +20 -0
  176. package/{fesm2022/energinet-watt-search.mjs → esm2022/search/watt-search.component.js} +24 -39
  177. package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js +5 -0
  178. package/esm2022/segmented-buttons/index.js +21 -0
  179. package/esm2022/segmented-buttons/watt-segmented-button.component.js +38 -0
  180. package/esm2022/segmented-buttons/watt-segmented-buttons.component.js +88 -0
  181. package/esm2022/shell/energinet-watt-shell.js +5 -0
  182. package/esm2022/shell/index.js +21 -0
  183. package/esm2022/shell/nav-list/index.js +21 -0
  184. package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js +45 -0
  185. package/esm2022/shell/nav-list/watt-nav-list-item.component.js +84 -0
  186. package/esm2022/shell/nav-list/watt-nav-list.component.js +81 -0
  187. package/esm2022/shell/shell.component.js +75 -0
  188. package/esm2022/slide-toggle/energinet-watt-slide-toggle.js +5 -0
  189. package/esm2022/slide-toggle/index.js +20 -0
  190. package/esm2022/slide-toggle/watt-slide-toggle.component.js +78 -0
  191. package/esm2022/slider/energinet-watt-slider.js +5 -0
  192. package/esm2022/slider/index.js +20 -0
  193. package/esm2022/slider/watt-slider.component.js +133 -0
  194. package/esm2022/spinner/energinet-watt-spinner.js +5 -0
  195. package/esm2022/spinner/index.js +20 -0
  196. package/esm2022/spinner/watt-spinner.component.js +46 -0
  197. package/esm2022/stepper/energinet-watt-stepper.js +5 -0
  198. package/esm2022/stepper/index.js +21 -0
  199. package/esm2022/stepper/watt-stepper-step.component.js +52 -0
  200. package/{fesm2022/energinet-watt-stepper.mjs → esm2022/stepper/watt-stepper.component.js} +18 -91
  201. package/esm2022/table/energinet-watt-table.js +5 -0
  202. package/esm2022/table/index.js +21 -0
  203. package/esm2022/table/watt-table-data-source.js +17 -0
  204. package/esm2022/table/watt-table.component.js +400 -0
  205. package/esm2022/tabs/energinet-watt-tabs.js +5 -0
  206. package/esm2022/tabs/index.js +31 -0
  207. package/esm2022/tabs/watt-link-tab.component.js +34 -0
  208. package/esm2022/tabs/watt-link-tabs.component.js +71 -0
  209. package/esm2022/tabs/watt-tab.component.js +42 -0
  210. package/esm2022/tabs/watt-tabs-action.component.js +32 -0
  211. package/esm2022/tabs/watt-tabs.component.js +60 -0
  212. package/esm2022/text-field/energinet-watt-text-field.js +5 -0
  213. package/esm2022/text-field/index.js +20 -0
  214. package/esm2022/text-field/watt-text-field.component.js +289 -0
  215. package/esm2022/textarea-field/energinet-watt-textarea-field.js +5 -0
  216. package/esm2022/textarea-field/index.js +20 -0
  217. package/esm2022/textarea-field/watt-textarea-field.component.js +110 -0
  218. package/esm2022/toast/energinet-watt-toast.js +5 -0
  219. package/esm2022/toast/index.js +21 -0
  220. package/esm2022/toast/watt-toast.component.js +97 -0
  221. package/esm2022/toast/watt-toast.service.js +51 -0
  222. package/esm2022/tooltip/energinet-watt-tooltip.js +5 -0
  223. package/esm2022/tooltip/index.js +20 -0
  224. package/esm2022/tooltip/watt-tooltip.component.js +131 -0
  225. package/esm2022/tooltip/watt-tooltip.directive.js +60 -0
  226. package/esm2022/utils/css/css-custom-properties.service.js +39 -0
  227. package/esm2022/utils/css/energinet-watt-utils-css.js +5 -0
  228. package/esm2022/utils/css/index.js +20 -0
  229. package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js +5 -0
  230. package/esm2022/utils/intersection-observer/index.js +20 -0
  231. package/esm2022/utils/intersection-observer/watt-intersection-observer.service.js +57 -0
  232. package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js +5 -0
  233. package/esm2022/utils/resize-observer/index.js +21 -0
  234. package/esm2022/utils/resize-observer/watt-resize-observer.directive.js +53 -0
  235. package/esm2022/utils/resize-observer/watt-resize-observer.service.js +67 -0
  236. package/esm2022/validation-message/energinet-watt-validation-message.js +5 -0
  237. package/esm2022/validation-message/index.js +20 -0
  238. package/{fesm2022/energinet-watt-validation-message.mjs → esm2022/validation-message/watt-validation-message.component.js} +8 -34
  239. package/esm2022/validators/energinet-watt-validators.js +5 -0
  240. package/esm2022/validators/index.js +20 -0
  241. package/esm2022/validators/watt-range.validators.js +23 -0
  242. package/esm2022/vater/energinet-watt-vater.js +5 -0
  243. package/esm2022/vater/index.js +24 -0
  244. package/esm2022/vater/types.js +20 -0
  245. package/esm2022/vater/vater-flex.component.js +49 -0
  246. package/esm2022/vater/vater-layout.directive.js +65 -0
  247. package/esm2022/vater/vater-spacer.component.js +29 -0
  248. package/esm2022/vater/vater-stack.component.js +42 -0
  249. package/esm2022/vater/vater-utility.directive.js +53 -0
  250. package/esm2022/year-field/energinet-watt-year-field.js +5 -0
  251. package/esm2022/year-field/index.js +20 -0
  252. package/esm2022/year-field/watt-year-field.component.js +256 -0
  253. package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js +5 -0
  254. package/esm2022/yearmonth-field/index.js +21 -0
  255. package/esm2022/yearmonth-field/watt-yearmonth-field.component.js +258 -0
  256. package/esm2022/yearmonth-field/year-month.js +42 -0
  257. package/expandable-card/energinet-watt-expandable-card.d.ts +5 -0
  258. package/expansion/energinet-watt-expansion.d.ts +5 -0
  259. package/field/energinet-watt-field.d.ts +5 -0
  260. package/icon/energinet-watt-icon.d.ts +5 -0
  261. package/icon/flags/energinet-watt-icon-flags.d.ts +5 -0
  262. package/modal/energinet-watt-modal.d.ts +5 -0
  263. package/package.json +117 -117
  264. package/paginator/energinet-watt-paginator.d.ts +5 -0
  265. package/phone-field/energinet-watt-phone-field.d.ts +5 -0
  266. package/picker/__shared/energinet-watt-picker-__shared.d.ts +5 -0
  267. package/picker/__shared/watt-picker-base.d.ts +4 -1
  268. package/picker/datepicker/energinet-watt-picker-datepicker.d.ts +5 -0
  269. package/picker/timepicker/energinet-watt-picker-timepicker.d.ts +5 -0
  270. package/progress-tracker/energinet-watt-progress-tracker.d.ts +5 -0
  271. package/query-params/energinet-watt-query-params.d.ts +5 -0
  272. package/radio/energinet-watt-radio.d.ts +5 -0
  273. package/search/energinet-watt-search.d.ts +5 -0
  274. package/search/watt-search.component.d.ts +9 -1
  275. package/segmented-buttons/energinet-watt-segmented-buttons.d.ts +5 -0
  276. package/shell/energinet-watt-shell.d.ts +5 -0
  277. package/slide-toggle/energinet-watt-slide-toggle.d.ts +5 -0
  278. package/slider/energinet-watt-slider.d.ts +5 -0
  279. package/spinner/energinet-watt-spinner.d.ts +5 -0
  280. package/stepper/energinet-watt-stepper.d.ts +5 -0
  281. package/table/energinet-watt-table.d.ts +5 -0
  282. package/tabs/energinet-watt-tabs.d.ts +5 -0
  283. package/text-field/energinet-watt-text-field.d.ts +5 -0
  284. package/textarea-field/energinet-watt-textarea-field.d.ts +5 -0
  285. package/toast/energinet-watt-toast.d.ts +5 -0
  286. package/toast/watt-toast.service.d.ts +2 -3
  287. package/tooltip/energinet-watt-tooltip.d.ts +5 -0
  288. package/utils/css/css-custom-properties.service.d.ts +1 -2
  289. package/utils/css/energinet-watt-utils-css.d.ts +5 -0
  290. package/utils/intersection-observer/energinet-watt-utils-intersection-observer.d.ts +5 -0
  291. package/utils/resize-observer/energinet-watt-utils-resize-observer.d.ts +5 -0
  292. package/utils/resize-observer/watt-resize-observer.service.d.ts +2 -19
  293. package/validation-message/energinet-watt-validation-message.d.ts +5 -0
  294. package/validators/energinet-watt-validators.d.ts +5 -0
  295. package/vater/energinet-watt-vater.d.ts +5 -0
  296. package/year-field/energinet-watt-year-field.d.ts +5 -0
  297. package/yearmonth-field/energinet-watt-yearmonth-field.d.ts +5 -0
  298. package/fesm2022/energinet-watt-badge.mjs.map +0 -1
  299. package/fesm2022/energinet-watt-breadcrumbs.mjs +0 -116
  300. package/fesm2022/energinet-watt-breadcrumbs.mjs.map +0 -1
  301. package/fesm2022/energinet-watt-button.mjs.map +0 -1
  302. package/fesm2022/energinet-watt-card.mjs +0 -117
  303. package/fesm2022/energinet-watt-card.mjs.map +0 -1
  304. package/fesm2022/energinet-watt-checkbox.mjs.map +0 -1
  305. package/fesm2022/energinet-watt-chip.mjs +0 -760
  306. package/fesm2022/energinet-watt-chip.mjs.map +0 -1
  307. package/fesm2022/energinet-watt-clipboard.mjs +0 -118
  308. package/fesm2022/energinet-watt-clipboard.mjs.map +0 -1
  309. package/fesm2022/energinet-watt-code.mjs +0 -119
  310. package/fesm2022/energinet-watt-code.mjs.map +0 -1
  311. package/fesm2022/energinet-watt-core-breakpoints.mjs +0 -100
  312. package/fesm2022/energinet-watt-core-breakpoints.mjs.map +0 -1
  313. package/fesm2022/energinet-watt-core-color.mjs +0 -127
  314. package/fesm2022/energinet-watt-core-color.mjs.map +0 -1
  315. package/fesm2022/energinet-watt-core-date.mjs +0 -260
  316. package/fesm2022/energinet-watt-core-date.mjs.map +0 -1
  317. package/fesm2022/energinet-watt-data.mjs +0 -306
  318. package/fesm2022/energinet-watt-data.mjs.map +0 -1
  319. package/fesm2022/energinet-watt-datetime-field.mjs +0 -233
  320. package/fesm2022/energinet-watt-datetime-field.mjs.map +0 -1
  321. package/fesm2022/energinet-watt-description-list.mjs.map +0 -1
  322. package/fesm2022/energinet-watt-drawer.mjs +0 -307
  323. package/fesm2022/energinet-watt-drawer.mjs.map +0 -1
  324. package/fesm2022/energinet-watt-dropdown.mjs +0 -423
  325. package/fesm2022/energinet-watt-dropdown.mjs.map +0 -1
  326. package/fesm2022/energinet-watt-dropzone.mjs +0 -298
  327. package/fesm2022/energinet-watt-dropzone.mjs.map +0 -1
  328. package/fesm2022/energinet-watt-empty-state.mjs +0 -299
  329. package/fesm2022/energinet-watt-empty-state.mjs.map +0 -1
  330. package/fesm2022/energinet-watt-expandable-card.mjs.map +0 -1
  331. package/fesm2022/energinet-watt-expansion.mjs.map +0 -1
  332. package/fesm2022/energinet-watt-field.mjs.map +0 -1
  333. package/fesm2022/energinet-watt-icon-flags.mjs +0 -482
  334. package/fesm2022/energinet-watt-icon-flags.mjs.map +0 -1
  335. package/fesm2022/energinet-watt-icon.mjs.map +0 -1
  336. package/fesm2022/energinet-watt-modal.mjs.map +0 -1
  337. package/fesm2022/energinet-watt-paginator.mjs +0 -164
  338. package/fesm2022/energinet-watt-paginator.mjs.map +0 -1
  339. package/fesm2022/energinet-watt-phone-field.mjs +0 -326
  340. package/fesm2022/energinet-watt-phone-field.mjs.map +0 -1
  341. package/fesm2022/energinet-watt-picker-__shared.mjs +0 -384
  342. package/fesm2022/energinet-watt-picker-__shared.mjs.map +0 -1
  343. package/fesm2022/energinet-watt-picker-datepicker.mjs +0 -477
  344. package/fesm2022/energinet-watt-picker-datepicker.mjs.map +0 -1
  345. package/fesm2022/energinet-watt-picker-timepicker.mjs +0 -394
  346. package/fesm2022/energinet-watt-picker-timepicker.mjs.map +0 -1
  347. package/fesm2022/energinet-watt-progress-tracker.mjs.map +0 -1
  348. package/fesm2022/energinet-watt-query-params.mjs +0 -117
  349. package/fesm2022/energinet-watt-query-params.mjs.map +0 -1
  350. package/fesm2022/energinet-watt-radio.mjs.map +0 -1
  351. package/fesm2022/energinet-watt-search.mjs.map +0 -1
  352. package/fesm2022/energinet-watt-segmented-buttons.mjs +0 -149
  353. package/fesm2022/energinet-watt-segmented-buttons.mjs.map +0 -1
  354. package/fesm2022/energinet-watt-shell.mjs +0 -315
  355. package/fesm2022/energinet-watt-shell.mjs.map +0 -1
  356. package/fesm2022/energinet-watt-slide-toggle.mjs +0 -104
  357. package/fesm2022/energinet-watt-slide-toggle.mjs.map +0 -1
  358. package/fesm2022/energinet-watt-slider.mjs +0 -159
  359. package/fesm2022/energinet-watt-slider.mjs.map +0 -1
  360. package/fesm2022/energinet-watt-spinner.mjs +0 -72
  361. package/fesm2022/energinet-watt-spinner.mjs.map +0 -1
  362. package/fesm2022/energinet-watt-stepper.mjs.map +0 -1
  363. package/fesm2022/energinet-watt-table.mjs +0 -441
  364. package/fesm2022/energinet-watt-table.mjs.map +0 -1
  365. package/fesm2022/energinet-watt-tabs.mjs +0 -254
  366. package/fesm2022/energinet-watt-tabs.mjs.map +0 -1
  367. package/fesm2022/energinet-watt-text-field.mjs +0 -316
  368. package/fesm2022/energinet-watt-text-field.mjs.map +0 -1
  369. package/fesm2022/energinet-watt-textarea-field.mjs +0 -136
  370. package/fesm2022/energinet-watt-textarea-field.mjs.map +0 -1
  371. package/fesm2022/energinet-watt-toast.mjs +0 -174
  372. package/fesm2022/energinet-watt-toast.mjs.map +0 -1
  373. package/fesm2022/energinet-watt-tooltip.mjs +0 -214
  374. package/fesm2022/energinet-watt-tooltip.mjs.map +0 -1
  375. package/fesm2022/energinet-watt-utils-css.mjs +0 -72
  376. package/fesm2022/energinet-watt-utils-css.mjs.map +0 -1
  377. package/fesm2022/energinet-watt-utils-intersection-observer.mjs +0 -83
  378. package/fesm2022/energinet-watt-utils-intersection-observer.mjs.map +0 -1
  379. package/fesm2022/energinet-watt-utils-resize-observer.mjs +0 -144
  380. package/fesm2022/energinet-watt-utils-resize-observer.mjs.map +0 -1
  381. package/fesm2022/energinet-watt-validation-message.mjs.map +0 -1
  382. package/fesm2022/energinet-watt-validators.mjs +0 -49
  383. package/fesm2022/energinet-watt-validators.mjs.map +0 -1
  384. package/fesm2022/energinet-watt-vater.mjs +0 -248
  385. package/fesm2022/energinet-watt-vater.mjs.map +0 -1
  386. package/fesm2022/energinet-watt-year-field.mjs +0 -282
  387. package/fesm2022/energinet-watt-year-field.mjs.map +0 -1
  388. package/fesm2022/energinet-watt-yearmonth-field.mjs +0 -324
  389. package/fesm2022/energinet-watt-yearmonth-field.mjs.map +0 -1
  390. package/fesm2022/energinet-watt.mjs +0 -31
  391. package/fesm2022/energinet-watt.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-radio.mjs","sources":["../../../libs/watt/package/radio/watt-radio.component.ts","../../../libs/watt/package/radio/index.ts","../../../libs/watt/package/radio/energinet-watt-radio.ts"],"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, forwardRef, ViewEncapsulation, input } from '@angular/core';\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n imports: [FormsModule],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => WattRadioComponent),\n multi: true,\n },\n ],\n selector: 'watt-radio',\n styleUrls: ['./watt-radio.component.scss'],\n template: `\n <label class=\"watt-text-m\">\n <input\n type=\"radio\"\n [name]=\"group()\"\n [value]=\"value()\"\n [(ngModel)]=\"model\"\n [disabled]=\"isDisabled\"\n (ngModelChange)=\"onChange($event)\"\n />\n <ng-content />\n </label>\n `,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class.disabled]': 'isDisabled',\n },\n})\nexport class WattRadioComponent implements ControlValueAccessor {\n group = input.required<string>();\n value = input.required<string | boolean>();\n\n /** @ignore */\n model!: string;\n\n /** @ignore */\n isDisabled = false;\n\n /** @ignore */\n onChange: (value: string) => void = () => {\n /* left blank intentionally */\n };\n\n /** @ignore */\n onTouched: () => void = () => {\n /* left blank intentionally */\n };\n\n /** @ignore */\n writeValue(value: string): void {\n this.model = value;\n }\n\n /** @ignore */\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n /** @ignore */\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n /** @ignore */\n setDisabledState(isDisabled: boolean): void {\n this.isDisabled = isDisabled;\n }\n}\n","//#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 { WattRadioComponent } from './watt-radio.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;MAiCa,kBAAkB,CAAA;AAC7B,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAU;AAChC,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAoB;;AAG1C,IAAA,KAAK;;IAGL,UAAU,GAAG,KAAK;;IAGlB,QAAQ,GAA4B,MAAK;;AAEzC,KAAC;;IAGD,SAAS,GAAe,MAAK;;AAE7B,KAAC;;AAGD,IAAA,UAAU,CAAC,KAAa,EAAA;AACtB,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK;;;AAIpB,IAAA,gBAAgB,CAAC,EAA2B,EAAA;AAC1C,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE;;;AAIpB,IAAA,iBAAiB,CAAC,EAAc,EAAA;AAC9B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE;;;AAIrB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A,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,yBAAA,EAAA,QAAA,EAAA,8FAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,iBAAA,EAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FA4BV,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBA7B9B,SAAS;8BACC,CAAC,WAAW,CAAC,EAAA,SAAA,EACX;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,wBAAwB,CAAC;AACjD,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA,EAAA,QAAA,EACS,YAAY,EAAA,QAAA,EAEZ;;;;;;;;;;;;GAYT,EAAA,aAAA,EACc,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B;AACJ,wBAAA,kBAAkB,EAAE,YAAY;AACjC,qBAAA,EAAA,MAAA,EAAA,CAAA,0iCAAA,CAAA,EAAA;;;AChDH;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-search.mjs","sources":["../../../libs/watt/package/search/watt-search.component.ts","../../../libs/watt/package/search/index.ts","../../../libs/watt/package/search/energinet-watt-search.ts"],"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 { outputFromObservable } from '@angular/core/rxjs-interop';\nimport { Component, ElementRef, input, viewChild } from '@angular/core';\n\nimport { BehaviorSubject, debounceTime, skip } from 'rxjs';\n\nimport { WattIconComponent } from '@energinet/watt/icon';\n\n@Component({\n imports: [WattIconComponent],\n selector: 'watt-search',\n styleUrls: ['./watt-search.component.scss'],\n template: `\n <label>\n <input\n #input\n type=\"text\"\n role=\"searchbox\"\n [placeholder]=\"label()\"\n (input)=\"search$.next(input.value)\"\n />\n <span class=\"wrapper\">\n <span class=\"button\">\n <watt-icon name=\"search\" size=\"s\" aria-hidden=\"true\" />\n <span class=\"text\">{{ label() }}</span>\n </span>\n </span>\n <button class=\"clear\" (click)=\"clear()\">\n <watt-icon name=\"close\" size=\"s\" />\n </button>\n </label>\n `,\n})\nexport class WattSearchComponent {\n /**\n * @ignore\n */\n input = viewChild.required<ElementRef<HTMLInputElement>>('input');\n\n /**\n * @ignore\n */\n label = input<string>('');\n\n /**\n * @ignore\n */\n debounceTime = input<number>(300);\n\n /**\n * @ignore\n */\n search$ = new BehaviorSubject<string>('');\n\n /**\n * @ignore\n */\n search = outputFromObservable(this.search$.pipe(skip(1), debounceTime(this.debounceTime())));\n\n /**\n * @ignore\n */\n clear(): void {\n const element = this.input().nativeElement;\n if (element.value === '') return;\n\n element.value = '';\n\n this.search$.next(element.value);\n }\n}\n","//#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 { WattSearchComponent } from './watt-search.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;MAiCa,mBAAmB,CAAA;AAC9B;;AAEG;AACH,IAAA,KAAK,GAAG,SAAS,CAAC,QAAQ,CAA+B,OAAO,CAAC;AAEjE;;AAEG;AACH,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,CAAC;AAEzB;;AAEG;AACH,IAAA,YAAY,GAAG,KAAK,CAAS,GAAG,CAAC;AAEjC;;AAEG;AACH,IAAA,OAAO,GAAG,IAAI,eAAe,CAAS,EAAE,CAAC;AAEzC;;AAEG;IACH,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;AAE5F;;AAEG;IACH,KAAK,GAAA;QACH,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,aAAa;AAC1C,QAAA,IAAI,OAAO,CAAC,KAAK,KAAK,EAAE;YAAE;AAE1B,QAAA,OAAO,CAAC,KAAK,GAAG,EAAE;QAElB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;;uGAnCvB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA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A,CAAA,8yDAAA,CAAA,EAAA;;;AChDH;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
@@ -1,149 +0,0 @@
1
- import * as i2 from '@angular/forms';
2
- import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
3
- import * as i0 from '@angular/core';
4
- import { viewChild, TemplateRef, input, Component, contentChildren, model, signal, inject, ElementRef, forwardRef, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';
5
- import * as i1 from '@angular/material/button-toggle';
6
- import { MatButtonToggleModule } from '@angular/material/button-toggle';
7
- import { NgTemplateOutlet } from '@angular/common';
8
-
9
- //#region License
10
- /**
11
- * @license
12
- * Copyright 2020 Energinet DataHub A/S
13
- *
14
- * Licensed under the Apache License, Version 2.0 (the "License2");
15
- * you may not use this file except in compliance with the License.
16
- * You may obtain a copy of the License at
17
- *
18
- * http://www.apache.org/licenses/LICENSE-2.0
19
- *
20
- * Unless required by applicable law or agreed to in writing, software
21
- * distributed under the License is distributed on an "AS IS" BASIS,
22
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23
- * See the License for the specific language governing permissions and
24
- * limitations under the License.
25
- */
26
- //#endregion
27
- class WattSegmentedButtonComponent {
28
- templateRef = viewChild.required(TemplateRef);
29
- value = input.required();
30
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattSegmentedButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
31
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: WattSegmentedButtonComponent, isStandalone: true, selector: "watt-segmented-button", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: ` <ng-template>
32
- <ng-content />
33
- </ng-template>`, isInline: true });
34
- }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattSegmentedButtonComponent, decorators: [{
36
- type: Component,
37
- args: [{
38
- selector: 'watt-segmented-button',
39
- template: ` <ng-template>
40
- <ng-content />
41
- </ng-template>`,
42
- }]
43
- }] });
44
-
45
- //#region License
46
- /**
47
- * @license
48
- * Copyright 2020 Energinet DataHub A/S
49
- *
50
- * Licensed under the Apache License, Version 2.0 (the "License2");
51
- * you may not use this file except in compliance with the License.
52
- * You may obtain a copy of the License at
53
- *
54
- * http://www.apache.org/licenses/LICENSE-2.0
55
- *
56
- * Unless required by applicable law or agreed to in writing, software
57
- * distributed under the License is distributed on an "AS IS" BASIS,
58
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59
- * See the License for the specific language governing permissions and
60
- * limitations under the License.
61
- */
62
- //#endregion
63
- /**
64
- * Segmented buttons.
65
- */
66
- class WattSegmentedButtonsComponent {
67
- segmentedButtonElements = contentChildren(WattSegmentedButtonComponent);
68
- selected = model('');
69
- disabled = signal(false);
70
- element = inject(ElementRef);
71
- writeValue(selected) {
72
- this.selected.set(selected);
73
- }
74
- registerOnChange(fn) {
75
- this.selected.subscribe(fn);
76
- }
77
- registerOnTouched(fn) {
78
- this.element.nativeElement.addEventListener('focusout', fn);
79
- }
80
- setDisabledState(isDisabled) {
81
- this.disabled.set(isDisabled);
82
- }
83
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattSegmentedButtonsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
84
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: WattSegmentedButtonsComponent, isStandalone: true, selector: "watt-segmented-buttons", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange" }, providers: [
85
- {
86
- provide: NG_VALUE_ACCESSOR,
87
- useExisting: forwardRef(() => WattSegmentedButtonsComponent),
88
- multi: true,
89
- },
90
- ], queries: [{ propertyName: "segmentedButtonElements", predicate: WattSegmentedButtonComponent, isSignal: true }], ngImport: i0, template: ` <mat-button-toggle-group
91
- [(ngModel)]="selected"
92
- [multiple]="false"
93
- [hideSingleSelectionIndicator]="true"
94
- [disabled]="disabled()"
95
- >
96
- @for (segmentedButton of segmentedButtonElements(); track segmentedButton) {
97
- <mat-button-toggle [disableRipple]="true" [value]="segmentedButton.value()">
98
- <ng-container *ngTemplateOutlet="segmentedButton.templateRef()" />
99
- </mat-button-toggle>
100
- }
101
- </mat-button-toggle-group>`, isInline: true, styles: [":root{--mat-standard-button-toggle-selected-state-text-color: white}:root{--mat-standard-button-toggle-selected-state-background-color: var(--watt-color-primary)}:root{--mat-standard-button-toggle-height: 2.5rem}:root mat-button-toggle-group{border-color:var(--watt-color-neutral-grey-700)}:root mat-button-toggle-group mat-button-toggle{border-color:var(--watt-color-neutral-grey-700)!important}:root mat-button-toggle-group mat-button-toggle button{width:6.5rem}:root mat-button-toggle-group mat-button-toggle button span{font-size:.875rem;font-weight:600}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonToggleModule }, { kind: "directive", type: i1.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i1.MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
102
- }
103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattSegmentedButtonsComponent, decorators: [{
104
- type: Component,
105
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [MatButtonToggleModule, FormsModule, NgTemplateOutlet], providers: [
106
- {
107
- provide: NG_VALUE_ACCESSOR,
108
- useExisting: forwardRef(() => WattSegmentedButtonsComponent),
109
- multi: true,
110
- },
111
- ], selector: 'watt-segmented-buttons', template: ` <mat-button-toggle-group
112
- [(ngModel)]="selected"
113
- [multiple]="false"
114
- [hideSingleSelectionIndicator]="true"
115
- [disabled]="disabled()"
116
- >
117
- @for (segmentedButton of segmentedButtonElements(); track segmentedButton) {
118
- <mat-button-toggle [disableRipple]="true" [value]="segmentedButton.value()">
119
- <ng-container *ngTemplateOutlet="segmentedButton.templateRef()" />
120
- </mat-button-toggle>
121
- }
122
- </mat-button-toggle-group>`, styles: [":root{--mat-standard-button-toggle-selected-state-text-color: white}:root{--mat-standard-button-toggle-selected-state-background-color: var(--watt-color-primary)}:root{--mat-standard-button-toggle-height: 2.5rem}:root mat-button-toggle-group{border-color:var(--watt-color-neutral-grey-700)}:root mat-button-toggle-group mat-button-toggle{border-color:var(--watt-color-neutral-grey-700)!important}:root mat-button-toggle-group mat-button-toggle button{width:6.5rem}:root mat-button-toggle-group mat-button-toggle button span{font-size:.875rem;font-weight:600}\n"] }]
123
- }] });
124
-
125
- //#region License
126
- /**
127
- * @license
128
- * Copyright 2020 Energinet DataHub A/S
129
- *
130
- * Licensed under the Apache License, Version 2.0 (the "License2");
131
- * you may not use this file except in compliance with the License.
132
- * You may obtain a copy of the License at
133
- *
134
- * http://www.apache.org/licenses/LICENSE-2.0
135
- *
136
- * Unless required by applicable law or agreed to in writing, software
137
- * distributed under the License is distributed on an "AS IS" BASIS,
138
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
139
- * See the License for the specific language governing permissions and
140
- * limitations under the License.
141
- */
142
- //#endregion
143
-
144
- /**
145
- * Generated bundle index. Do not edit.
146
- */
147
-
148
- export { WattSegmentedButtonComponent, WattSegmentedButtonsComponent };
149
- //# sourceMappingURL=energinet-watt-segmented-buttons.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-segmented-buttons.mjs","sources":["../../../libs/watt/package/segmented-buttons/watt-segmented-button.component.ts","../../../libs/watt/package/segmented-buttons/watt-segmented-buttons.component.ts","../../../libs/watt/package/segmented-buttons/index.ts","../../../libs/watt/package/segmented-buttons/energinet-watt-segmented-buttons.ts"],"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.required<string>();\n}\n","//#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, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport {\n ChangeDetectionStrategy,\n Component,\n contentChildren,\n ElementRef,\n forwardRef,\n inject,\n model,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { MatButtonToggleModule } from '@angular/material/button-toggle';\nimport { NgTemplateOutlet } from '@angular/common';\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: [MatButtonToggleModule, FormsModule, NgTemplateOutlet],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => WattSegmentedButtonsComponent),\n multi: true,\n },\n ],\n selector: 'watt-segmented-buttons',\n styleUrls: ['./watt-segmented-buttons.component.scss'],\n template: ` <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 [disableRipple]=\"true\" [value]=\"segmentedButton.value()\">\n <ng-container *ngTemplateOutlet=\"segmentedButton.templateRef()\" />\n </mat-button-toggle>\n }\n </mat-button-toggle-group>`,\n})\nexport class WattSegmentedButtonsComponent implements ControlValueAccessor {\n segmentedButtonElements = contentChildren(WattSegmentedButtonComponent);\n selected = model<string>('');\n disabled = signal(false);\n private element = inject(ElementRef);\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","//#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 { WattSegmentedButtonsComponent } from './watt-segmented-buttons.component';\nexport { WattSegmentedButtonComponent } from './watt-segmented-button.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;MASa,4BAA4B,CAAA;AACvC,IAAA,WAAW,GAAG,SAAS,CAAC,QAAQ,CAAuB,WAAW,CAAC;AACnE,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAU;uGAFrB,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,aAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EACgB,WAAW,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QA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BAAA;AACF,qBAAA,EAAA,QAAA,EACS,wBAAwB,EAAA,QAAA,EAExB,CAAA;;;;;;;;;;;AAWiB,4BAAA,CAAA,EAAA,MAAA,EAAA,CAAA,kjBAAA,CAAA,EAAA;;;AC7D7B;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
@@ -1,315 +0,0 @@
1
- import { AsyncPipe, NgTemplateOutlet } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, DestroyRef, ViewChild, Component, input, Directive, output, computed, ChangeDetectionStrategy, contentChildren, ViewEncapsulation } from '@angular/core';
4
- import * as i1 from '@angular/material/sidenav';
5
- import { MatSidenavModule } from '@angular/material/sidenav';
6
- import * as i2 from '@angular/material/toolbar';
7
- import { MatToolbarModule } from '@angular/material/toolbar';
8
- import * as i1$1 from '@angular/router';
9
- import { Router, NavigationEnd, RouterModule } from '@angular/router';
10
- import { filter, map, switchMap, first, from, mergeMap } from 'rxjs';
11
- import { takeUntilDestroyed, outputToObservable } from '@angular/core/rxjs-interop';
12
- import { WattBreakpointsObserver } from '@energinet/watt/core/breakpoints';
13
- import { WattButtonComponent } from '@energinet/watt/button';
14
- import * as i1$2 from '@angular/material/expansion';
15
- import { MatExpansionPanel, MatExpansionModule } from '@angular/material/expansion';
16
-
17
- //#region License
18
- /**
19
- * @license
20
- * Copyright 2020 Energinet DataHub A/S
21
- *
22
- * Licensed under the Apache License, Version 2.0 (the "License2");
23
- * you may not use this file except in compliance with the License.
24
- * You may obtain a copy of the License at
25
- *
26
- * http://www.apache.org/licenses/LICENSE-2.0
27
- *
28
- * Unless required by applicable law or agreed to in writing, software
29
- * distributed under the License is distributed on an "AS IS" BASIS,
30
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31
- * See the License for the specific language governing permissions and
32
- * limitations under the License.
33
- */
34
- //#endregion
35
- class WattShellComponent {
36
- breakpointObserver = inject(WattBreakpointsObserver);
37
- router = inject(Router);
38
- /**
39
- * @ignore
40
- */
41
- _destroyRef = inject(DestroyRef);
42
- /**
43
- * @ignore
44
- */
45
- shouldAutoFocus = false;
46
- /**
47
- * @ignore
48
- */
49
- onNavigationEnd$ = this.router.events.pipe(filter((event) => event instanceof NavigationEnd));
50
- /**
51
- * @ignore
52
- */
53
- isHandset$ = this.breakpointObserver
54
- .observe(['XSmall', 'Small', 'Medium'])
55
- .pipe(map((result) => result.matches));
56
- sidenav;
57
- ngOnInit() {
58
- this.closeSidenavOnNavigation();
59
- }
60
- closeSidenavOnNavigation() {
61
- this.onNavigationEnd$
62
- .pipe(switchMap(() => this.isHandset$.pipe(first())), takeUntilDestroyed(this._destroyRef))
63
- .subscribe((isHandset) => {
64
- if (isHandset && this.sidenav && this.sidenav.opened) {
65
- this.sidenav.close();
66
- }
67
- });
68
- }
69
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
70
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: WattShellComponent, isStandalone: true, selector: "watt-shell", viewQueries: [{ propertyName: "sidenav", first: true, predicate: ["drawer"], descendants: 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$ | async) === false\"\n [autoFocus]=\"shouldAutoFocus\"\n [mode]=\"(isHandset$ | async) ? 'over' : 'side'\"\n [opened]=\"(isHandset$ | async) === false\"\n role=\"navigation\"\n >\n @if (isHandset$ | async) {\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$ | async) {\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: "pipe", type: AsyncPipe, name: "async" }, { 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"] }] });
71
- }
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattShellComponent, decorators: [{
73
- type: Component,
74
- args: [{ selector: 'watt-shell', imports: [AsyncPipe, 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$ | async) === false\"\n [autoFocus]=\"shouldAutoFocus\"\n [mode]=\"(isHandset$ | async) ? 'over' : 'side'\"\n [opened]=\"(isHandset$ | async) === false\"\n role=\"navigation\"\n >\n @if (isHandset$ | async) {\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$ | async) {\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"] }]
75
- }], propDecorators: { sidenav: [{
76
- type: ViewChild,
77
- args: ['drawer']
78
- }] } });
79
-
80
- //#region License
81
- /**
82
- * @license
83
- * Copyright 2020 Energinet DataHub A/S
84
- *
85
- * Licensed under the Apache License, Version 2.0 (the "License2");
86
- * you may not use this file except in compliance with the License.
87
- * You may obtain a copy of the License at
88
- *
89
- * http://www.apache.org/licenses/LICENSE-2.0
90
- *
91
- * Unless required by applicable law or agreed to in writing, software
92
- * distributed under the License is distributed on an "AS IS" BASIS,
93
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
94
- * See the License for the specific language governing permissions and
95
- * limitations under the License.
96
- */
97
- //#endregion
98
- class WattExpandOnActiveLinkDirective {
99
- panel = inject(MatExpansionPanel);
100
- wattNavListItemComponents = input([]);
101
- ngAfterViewInit() {
102
- const navListItems = this.wattNavListItemComponents();
103
- if (navListItems.length > 0) {
104
- from(this.wattNavListItemComponents())
105
- .pipe(mergeMap((item) => outputToObservable(item.isActive)), filter((isActive) => isActive))
106
- .subscribe(() => this.panel.open());
107
- }
108
- }
109
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattExpandOnActiveLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
110
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.1", type: WattExpandOnActiveLinkDirective, isStandalone: true, selector: "[wattExpandOnActiveLink]", inputs: { wattNavListItemComponents: { classPropertyName: "wattNavListItemComponents", publicName: "wattNavListItemComponents", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["wattExpandOnActiveLink"], ngImport: i0 });
111
- }
112
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattExpandOnActiveLinkDirective, decorators: [{
113
- type: Directive,
114
- args: [{
115
- selector: '[wattExpandOnActiveLink]',
116
- exportAs: 'wattExpandOnActiveLink',
117
- }]
118
- }] });
119
-
120
- //#region License
121
- /**
122
- * @license
123
- * Copyright 2020 Energinet DataHub A/S
124
- *
125
- * Licensed under the Apache License, Version 2.0 (the "License2");
126
- * you may not use this file except in compliance with the License.
127
- * You may obtain a copy of the License at
128
- *
129
- * http://www.apache.org/licenses/LICENSE-2.0
130
- *
131
- * Unless required by applicable law or agreed to in writing, software
132
- * distributed under the License is distributed on an "AS IS" BASIS,
133
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
134
- * See the License for the specific language governing permissions and
135
- * limitations under the License.
136
- */
137
- //#endregion
138
- class WattNavListItemComponent {
139
- link = input.required();
140
- target = input('_self');
141
- isActive = output();
142
- /**
143
- * @ignore
144
- */
145
- isExternalLink = computed(() => /^(http:\/\/|https:\/\/)/i.test(this.link()));
146
- /**
147
- * @ignore
148
- */
149
- onRouterLinkActive(isActive) {
150
- this.isActive.emit(isActive);
151
- }
152
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattNavListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
153
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", 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: `
154
- @if (isExternalLink()) {
155
- <a [href]="link()" [attr.target]="target()"
156
- ><ng-container *ngTemplateOutlet="templateContent"
157
- /></a>
158
- } @else {
159
- <a
160
- [routerLink]="link()"
161
- routerLinkActive="active"
162
- (isActiveChange)="onRouterLinkActive($event)"
163
- ><ng-container *ngTemplateOutlet="templateContent"
164
- /></a>
165
- }
166
-
167
- <ng-template #templateContent>
168
- <ng-content />
169
- </ng-template>
170
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
171
- }
172
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattNavListItemComponent, decorators: [{
173
- type: Component,
174
- args: [{
175
- changeDetection: ChangeDetectionStrategy.OnPush,
176
- selector: 'watt-nav-list-item',
177
- imports: [NgTemplateOutlet, RouterModule],
178
- template: `
179
- @if (isExternalLink()) {
180
- <a [href]="link()" [attr.target]="target()"
181
- ><ng-container *ngTemplateOutlet="templateContent"
182
- /></a>
183
- } @else {
184
- <a
185
- [routerLink]="link()"
186
- routerLinkActive="active"
187
- (isActiveChange)="onRouterLinkActive($event)"
188
- ><ng-container *ngTemplateOutlet="templateContent"
189
- /></a>
190
- }
191
-
192
- <ng-template #templateContent>
193
- <ng-content />
194
- </ng-template>
195
- `,
196
- }]
197
- }] });
198
-
199
- //#region License
200
- /**
201
- * @license
202
- * Copyright 2020 Energinet DataHub A/S
203
- *
204
- * Licensed under the Apache License, Version 2.0 (the "License2");
205
- * you may not use this file except in compliance with the License.
206
- * You may obtain a copy of the License at
207
- *
208
- * http://www.apache.org/licenses/LICENSE-2.0
209
- *
210
- * Unless required by applicable law or agreed to in writing, software
211
- * distributed under the License is distributed on an "AS IS" BASIS,
212
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
213
- * See the License for the specific language governing permissions and
214
- * limitations under the License.
215
- */
216
- //#endregion
217
- class WattNavListComponent {
218
- /**
219
- * @ignore
220
- */
221
- navListItemComponents = contentChildren(WattNavListItemComponent);
222
- expandable = input(false);
223
- title = input('');
224
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattNavListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
225
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", 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: `
226
- @if (expandable()) {
227
- <mat-expansion-panel
228
- wattExpandOnActiveLink
229
- [wattNavListItemComponents]="navListItemComponents()"
230
- class="mat-elevation-z0"
231
- >
232
- <mat-expansion-panel-header>
233
- <mat-panel-title class="watt-text-m">{{ title() }}</mat-panel-title>
234
- </mat-expansion-panel-header>
235
- <ng-container *ngTemplateOutlet="navListTemplate" />
236
- </mat-expansion-panel>
237
- } @else {
238
- <ng-container *ngTemplateOutlet="navListTemplate" />
239
- }
240
-
241
- <ng-template #navListTemplate>
242
- <ng-content />
243
- </ng-template>
244
- `, 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);display:block;border-left:var(--watt-space-xs) solid transparent;color:var(--watt-color-neutral-white);text-decoration:none}watt-nav-list watt-nav-list-item a:hover,watt-nav-list watt-nav-list-item a.active{background-color:var(--watt-nav-list-hover-background-color)}watt-nav-list watt-nav-list-item a.active{border-left-color:var(--watt-color-secondary)}watt-nav-list.watt-nav-list--expandable .mat-expansion-panel{background-color:var(--watt-sidenav-background-color);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]){background-color:var(--watt-nav-list-hover-background-color)}watt-nav-list.watt-nav-list--expandable .mat-expansion-panel-header{padding-left:calc(var(--watt-space-xs) + var(--watt-space-m));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-l)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "component", type: i1$2.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i1$2.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i1$2.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: WattExpandOnActiveLinkDirective, selector: "[wattExpandOnActiveLink]", inputs: ["wattNavListItemComponents"], exportAs: ["wattExpandOnActiveLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
245
- }
246
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattNavListComponent, decorators: [{
247
- type: Component,
248
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, selector: 'watt-nav-list', host: {
249
- '[class.watt-nav-list--expandable]': 'expandable()',
250
- }, template: `
251
- @if (expandable()) {
252
- <mat-expansion-panel
253
- wattExpandOnActiveLink
254
- [wattNavListItemComponents]="navListItemComponents()"
255
- class="mat-elevation-z0"
256
- >
257
- <mat-expansion-panel-header>
258
- <mat-panel-title class="watt-text-m">{{ title() }}</mat-panel-title>
259
- </mat-expansion-panel-header>
260
- <ng-container *ngTemplateOutlet="navListTemplate" />
261
- </mat-expansion-panel>
262
- } @else {
263
- <ng-container *ngTemplateOutlet="navListTemplate" />
264
- }
265
-
266
- <ng-template #navListTemplate>
267
- <ng-content />
268
- </ng-template>
269
- `, imports: [NgTemplateOutlet, RouterModule, 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);display:block;border-left:var(--watt-space-xs) solid transparent;color:var(--watt-color-neutral-white);text-decoration:none}watt-nav-list watt-nav-list-item a:hover,watt-nav-list watt-nav-list-item a.active{background-color:var(--watt-nav-list-hover-background-color)}watt-nav-list watt-nav-list-item a.active{border-left-color:var(--watt-color-secondary)}watt-nav-list.watt-nav-list--expandable .mat-expansion-panel{background-color:var(--watt-sidenav-background-color);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]){background-color:var(--watt-nav-list-hover-background-color)}watt-nav-list.watt-nav-list--expandable .mat-expansion-panel-header{padding-left:calc(var(--watt-space-xs) + var(--watt-space-m));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-l)}\n"] }]
270
- }] });
271
-
272
- //#region License
273
- /**
274
- * @license
275
- * Copyright 2020 Energinet DataHub A/S
276
- *
277
- * Licensed under the Apache License, Version 2.0 (the "License2");
278
- * you may not use this file except in compliance with the License.
279
- * You may obtain a copy of the License at
280
- *
281
- * http://www.apache.org/licenses/LICENSE-2.0
282
- *
283
- * Unless required by applicable law or agreed to in writing, software
284
- * distributed under the License is distributed on an "AS IS" BASIS,
285
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286
- * See the License for the specific language governing permissions and
287
- * limitations under the License.
288
- */
289
- //#endregion
290
-
291
- //#region License
292
- /**
293
- * @license
294
- * Copyright 2020 Energinet DataHub A/S
295
- *
296
- * Licensed under the Apache License, Version 2.0 (the "License2");
297
- * you may not use this file except in compliance with the License.
298
- * You may obtain a copy of the License at
299
- *
300
- * http://www.apache.org/licenses/LICENSE-2.0
301
- *
302
- * Unless required by applicable law or agreed to in writing, software
303
- * distributed under the License is distributed on an "AS IS" BASIS,
304
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
305
- * See the License for the specific language governing permissions and
306
- * limitations under the License.
307
- */
308
- //#endregion
309
-
310
- /**
311
- * Generated bundle index. Do not edit.
312
- */
313
-
314
- export { WattNavListComponent, WattNavListItemComponent, WattShellComponent };
315
- //# sourceMappingURL=energinet-watt-shell.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-shell.mjs","sources":["../../../libs/watt/package/shell/shell.component.ts","../../../libs/watt/package/shell/shell.component.html","../../../libs/watt/package/shell/nav-list/watt-expand-on-active-link.directive.ts","../../../libs/watt/package/shell/nav-list/watt-nav-list-item.component.ts","../../../libs/watt/package/shell/nav-list/watt-nav-list.component.ts","../../../libs/watt/package/shell/nav-list/index.ts","../../../libs/watt/package/shell/index.ts","../../../libs/watt/package/shell/energinet-watt-shell.ts"],"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 { AsyncPipe } from '@angular/common';\nimport { Component, DestroyRef, OnInit, ViewChild, inject } from '@angular/core';\nimport { MatSidenav, MatSidenavModule } from '@angular/material/sidenav';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { Router, NavigationEnd } from '@angular/router';\nimport { filter, map, switchMap, first } from 'rxjs';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { WattBreakpointsObserver } from '@energinet/watt/core/breakpoints';\nimport { WattButtonComponent } from '@energinet/watt/button';\n\n@Component({\n selector: 'watt-shell',\n styleUrls: ['./shell.component.scss'],\n templateUrl: './shell.component.html',\n imports: [AsyncPipe, MatSidenavModule, MatToolbarModule, WattButtonComponent],\n})\nexport class WattShellComponent implements OnInit {\n private breakpointObserver = inject(WattBreakpointsObserver);\n private router = inject(Router);\n /**\n * @ignore\n */\n private _destroyRef = inject(DestroyRef);\n\n /**\n * @ignore\n */\n shouldAutoFocus = false;\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$ = this.breakpointObserver\n .observe(['XSmall', 'Small', 'Medium'])\n .pipe(map((result) => result.matches));\n\n @ViewChild('drawer') sidenav!: MatSidenav;\n\n ngOnInit(): void {\n this.closeSidenavOnNavigation();\n }\n\n private closeSidenavOnNavigation(): void {\n this.onNavigationEnd$\n .pipe(\n switchMap(() => this.isHandset$.pipe(first())),\n takeUntilDestroyed(this._destroyRef)\n )\n .subscribe((isHandset) => {\n if (isHandset && this.sidenav && this.sidenav.opened) {\n this.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$ | async) === false\"\n [autoFocus]=\"shouldAutoFocus\"\n [mode]=\"(isHandset$ | async) ? 'over' : 'side'\"\n [opened]=\"(isHandset$ | async) === false\"\n role=\"navigation\"\n >\n @if (isHandset$ | async) {\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$ | async) {\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","//#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, AfterViewInit, inject, input } from '@angular/core';\nimport { MatExpansionPanel } from '@angular/material/expansion';\nimport { outputToObservable } from '@angular/core/rxjs-interop';\nimport { from, filter, mergeMap } from 'rxjs';\n\nimport { WattNavListItemComponent } from './watt-nav-list-item.component';\n\n@Directive({\n selector: '[wattExpandOnActiveLink]',\n exportAs: 'wattExpandOnActiveLink',\n})\nexport class WattExpandOnActiveLinkDirective implements AfterViewInit {\n private panel = inject(MatExpansionPanel);\n\n wattNavListItemComponents = input<readonly WattNavListItemComponent[]>([]);\n\n ngAfterViewInit(): void {\n const navListItems = this.wattNavListItemComponents();\n\n if (navListItems.length > 0) {\n from(this.wattNavListItemComponents())\n .pipe(\n mergeMap((item) => outputToObservable(item.isActive)),\n filter((isActive) => isActive)\n )\n .subscribe(() => this.panel.open());\n }\n }\n}\n","//#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 { RouterModule } from '@angular/router';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'watt-nav-list-item',\n imports: [NgTemplateOutlet, RouterModule],\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","//#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 { RouterModule } from '@angular/router';\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, RouterModule, MatExpansionModule, WattExpandOnActiveLinkDirective],\n})\nexport class WattNavListComponent {\n /**\n * @ignore\n */\n navListItemComponents = contentChildren(WattNavListItemComponent);\n\n expandable = input(false);\n title = input('');\n}\n","//#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","//#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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;MAkBa,kBAAkB,CAAA;AACrB,IAAA,kBAAkB,GAAG,MAAM,CAAC,uBAAuB,CAAC;AACpD,IAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AAC/B;;AAEG;AACK,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAExC;;AAEG;IACH,eAAe,GAAG,KAAK;AAEvB;;AAEG;IACK,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAChD,MAAM,CAAC,CAAC,KAAK,KAAK,KAAK,YAAY,aAAa,CAAC,CAClD;AAED;;AAEG;IACH,UAAU,GAAG,IAAI,CAAC;SACf,OAAO,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC;AACrC,SAAA,IAAI,CAAC,GAAG,C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