@energinet/watt 4.2.15 → 4.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (802) hide show
  1. package/badge/index.d.ts +17 -15
  2. package/breadcrumbs/index.d.ts +24 -15
  3. package/button/index.d.ts +23 -17
  4. package/card/index.d.ts +22 -16
  5. package/checkbox/index.d.ts +20 -17
  6. package/chip/index.d.ts +104 -23
  7. package/clipboard/index.d.ts +22 -18
  8. package/code/index.d.ts +40 -3
  9. package/core/breakpoints/index.d.ts +38 -2
  10. package/core/color/index.d.ts +48 -2
  11. package/core/date/index.d.ts +121 -7
  12. package/data/index.d.ts +61 -20
  13. package/datetime-field/index.d.ts +44 -17
  14. package/description-list/index.d.ts +30 -15
  15. package/drawer/index.d.ts +73 -21
  16. package/dropdown/index.d.ts +151 -3
  17. package/dropzone/index.d.ts +65 -17
  18. package/empty-state/index.d.ts +37 -19
  19. package/expandable-card/index.d.ts +39 -2
  20. package/{esm2022/badge/watt-badge.component.js → fesm2022/energinet-watt-badge.mjs} +30 -4
  21. package/fesm2022/energinet-watt-badge.mjs.map +1 -0
  22. package/{esm2022/breadcrumbs/watt-breadcrumbs.component.js → fesm2022/energinet-watt-breadcrumbs.mjs} +36 -10
  23. package/fesm2022/energinet-watt-breadcrumbs.mjs.map +1 -0
  24. package/{esm2022/button/watt-button.component.js → fesm2022/energinet-watt-button.mjs} +35 -9
  25. package/fesm2022/energinet-watt-button.mjs.map +1 -0
  26. package/{esm2022/card/watt-card.component.js → fesm2022/energinet-watt-card.mjs} +63 -7
  27. package/fesm2022/energinet-watt-card.mjs.map +1 -0
  28. package/{esm2022/checkbox/watt-checkbox.component.js → fesm2022/energinet-watt-checkbox.mjs} +32 -6
  29. package/fesm2022/energinet-watt-checkbox.mjs.map +1 -0
  30. package/fesm2022/energinet-watt-chip.mjs +694 -0
  31. package/fesm2022/energinet-watt-chip.mjs.map +1 -0
  32. package/{esm2022/clipboard/watt-copy-to-clipboard.directive.js → fesm2022/energinet-watt-clipboard.mjs} +61 -7
  33. package/fesm2022/energinet-watt-clipboard.mjs.map +1 -0
  34. package/{esm2022/code/watt-code.component.js → fesm2022/energinet-watt-code.mjs} +83 -11
  35. package/fesm2022/energinet-watt-code.mjs.map +1 -0
  36. package/fesm2022/energinet-watt-core-breakpoints.mjs +97 -0
  37. package/fesm2022/energinet-watt-core-breakpoints.mjs.map +1 -0
  38. package/fesm2022/energinet-watt-core-color.mjs +124 -0
  39. package/fesm2022/energinet-watt-core-color.mjs.map +1 -0
  40. package/fesm2022/energinet-watt-core-date.mjs +256 -0
  41. package/fesm2022/energinet-watt-core-date.mjs.map +1 -0
  42. package/{esm2022/data/watt-data-table.component.js → fesm2022/energinet-watt-data.mjs} +134 -12
  43. package/fesm2022/energinet-watt-data.mjs.map +1 -0
  44. package/{esm2022/datetime-field/watt-datetime-field.component.js → fesm2022/energinet-watt-datetime-field.mjs} +40 -14
  45. package/fesm2022/energinet-watt-datetime-field.mjs.map +1 -0
  46. package/{esm2022/description-list/watt-description-list.component.js → fesm2022/energinet-watt-description-list.mjs} +77 -8
  47. package/fesm2022/energinet-watt-description-list.mjs.map +1 -0
  48. package/{esm2022/drawer/watt-drawer.component.js → fesm2022/energinet-watt-drawer.mjs} +150 -17
  49. package/fesm2022/energinet-watt-drawer.mjs.map +1 -0
  50. package/{esm2022/dropdown/watt-dropdown.component.js → fesm2022/energinet-watt-dropdown.mjs} +44 -18
  51. package/fesm2022/energinet-watt-dropdown.mjs.map +1 -0
  52. package/{esm2022/dropzone/watt-dropzone.js → fesm2022/energinet-watt-dropzone.mjs} +133 -14
  53. package/fesm2022/energinet-watt-dropzone.mjs.map +1 -0
  54. package/{esm2022/empty-state/icons/not-found.js → fesm2022/energinet-watt-empty-state.mjs} +301 -4
  55. package/fesm2022/energinet-watt-empty-state.mjs.map +1 -0
  56. package/{esm2022/expandable-card/watt-expandable-card.component.js → fesm2022/energinet-watt-expandable-card.mjs} +40 -9
  57. package/fesm2022/energinet-watt-expandable-card.mjs.map +1 -0
  58. package/{esm2022/field/watt-field.component.js → fesm2022/energinet-watt-field.mjs} +149 -14
  59. package/fesm2022/energinet-watt-field.mjs.map +1 -0
  60. package/{esm2022/file-field/watt-file-field.component.js → fesm2022/energinet-watt-file-field.mjs} +32 -6
  61. package/fesm2022/energinet-watt-file-field.mjs.map +1 -0
  62. package/fesm2022/energinet-watt-icon-flags.mjs +547 -0
  63. package/fesm2022/energinet-watt-icon-flags.mjs.map +1 -0
  64. package/{esm2022/icon/icon.component.js → fesm2022/energinet-watt-icon.mjs} +135 -6
  65. package/fesm2022/energinet-watt-icon.mjs.map +1 -0
  66. package/fesm2022/energinet-watt-menu.mjs +282 -0
  67. package/fesm2022/energinet-watt-menu.mjs.map +1 -0
  68. package/{esm2022/modal/watt-modal.component.js → fesm2022/energinet-watt-modal.mjs} +109 -13
  69. package/fesm2022/energinet-watt-modal.mjs.map +1 -0
  70. package/{esm2022/paginator/watt-paginator.component.js → fesm2022/energinet-watt-paginator.mjs} +69 -9
  71. package/fesm2022/energinet-watt-paginator.mjs.map +1 -0
  72. package/{esm2022/phone-field/watt-phone-field.component.js → fesm2022/energinet-watt-phone-field.mjs} +80 -16
  73. package/fesm2022/energinet-watt-phone-field.mjs.map +1 -0
  74. package/fesm2022/energinet-watt-picker-__shared.mjs +292 -0
  75. package/fesm2022/energinet-watt-picker-__shared.mjs.map +1 -0
  76. package/{esm2022/picker/datepicker/watt-datepicker.component.js → fesm2022/energinet-watt-picker-datepicker.mjs} +71 -16
  77. package/fesm2022/energinet-watt-picker-datepicker.mjs.map +1 -0
  78. package/{esm2022/picker/timepicker/watt-timepicker.component.js → fesm2022/energinet-watt-picker-timepicker.mjs} +126 -20
  79. package/fesm2022/energinet-watt-picker-timepicker.mjs.map +1 -0
  80. package/{esm2022/progress-tracker/watt-progress-tracker-step.component.js → fesm2022/energinet-watt-progress-tracker.mjs} +64 -6
  81. package/fesm2022/energinet-watt-progress-tracker.mjs.map +1 -0
  82. package/{esm2022/query-params/watt-query-params.directive.js → fesm2022/energinet-watt-query-params.mjs} +32 -6
  83. package/fesm2022/energinet-watt-query-params.mjs.map +1 -0
  84. package/{esm2022/radio/watt-radio.component.js → fesm2022/energinet-watt-radio.mjs} +146 -5
  85. package/fesm2022/energinet-watt-radio.mjs.map +1 -0
  86. package/{esm2022/search/watt-search.component.js → fesm2022/energinet-watt-search.mjs} +33 -7
  87. package/fesm2022/energinet-watt-search.mjs.map +1 -0
  88. package/{esm2022/segmented-buttons/watt-segmented-buttons.component.js → fesm2022/energinet-watt-segmented-buttons.mjs} +77 -11
  89. package/fesm2022/energinet-watt-segmented-buttons.mjs.map +1 -0
  90. package/fesm2022/energinet-watt-shell.mjs +303 -0
  91. package/fesm2022/energinet-watt-shell.mjs.map +1 -0
  92. package/{esm2022/slide-toggle/watt-slide-toggle.component.js → fesm2022/energinet-watt-slide-toggle.mjs} +34 -8
  93. package/fesm2022/energinet-watt-slide-toggle.mjs.map +1 -0
  94. package/{esm2022/slider/watt-slider.component.js → fesm2022/energinet-watt-slider.mjs} +33 -7
  95. package/fesm2022/energinet-watt-slider.mjs.map +1 -0
  96. package/{esm2022/spinner/watt-spinner.component.js → fesm2022/energinet-watt-spinner.mjs} +30 -4
  97. package/fesm2022/energinet-watt-spinner.mjs.map +1 -0
  98. package/{esm2022/stepper/watt-stepper.component.js → fesm2022/energinet-watt-stepper.mjs} +85 -15
  99. package/fesm2022/energinet-watt-stepper.mjs.map +1 -0
  100. package/{esm2022/table/watt-table.component.js → fesm2022/energinet-watt-table.mjs} +134 -22
  101. package/fesm2022/energinet-watt-table.mjs.map +1 -0
  102. package/fesm2022/energinet-watt-tabs.mjs +254 -0
  103. package/fesm2022/energinet-watt-tabs.mjs.map +1 -0
  104. package/{esm2022/text-field/watt-text-field.component.js → fesm2022/energinet-watt-text-field.mjs} +36 -10
  105. package/fesm2022/energinet-watt-text-field.mjs.map +1 -0
  106. package/{esm2022/textarea-field/watt-textarea-field.component.js → fesm2022/energinet-watt-textarea-field.mjs} +32 -6
  107. package/fesm2022/energinet-watt-textarea-field.mjs.map +1 -0
  108. package/{esm2022/toast/watt-toast.component.js → fesm2022/energinet-watt-toast.mjs} +82 -9
  109. package/fesm2022/energinet-watt-toast.mjs.map +1 -0
  110. package/{esm2022/tooltip/watt-tooltip.component.js → fesm2022/energinet-watt-tooltip.mjs} +98 -8
  111. package/fesm2022/energinet-watt-tooltip.mjs.map +1 -0
  112. package/{esm2022/utils/css/css-custom-properties.service.js → fesm2022/energinet-watt-utils-css.mjs} +30 -4
  113. package/fesm2022/energinet-watt-utils-css.mjs.map +1 -0
  114. package/{esm2022/utils/intersection-observer/watt-intersection-observer.service.js → fesm2022/energinet-watt-utils-intersection-observer.mjs} +31 -5
  115. package/fesm2022/energinet-watt-utils-intersection-observer.mjs.map +1 -0
  116. package/fesm2022/energinet-watt-utils-resize-observer.mjs +143 -0
  117. package/fesm2022/energinet-watt-utils-resize-observer.mjs.map +1 -0
  118. package/{esm2022/validation-message/watt-validation-message.component.js → fesm2022/energinet-watt-validation-message.mjs} +31 -5
  119. package/fesm2022/energinet-watt-validation-message.mjs.map +1 -0
  120. package/{esm2022/validators/watt-range.validators.js → fesm2022/energinet-watt-validators.mjs} +28 -2
  121. package/fesm2022/energinet-watt-validators.mjs.map +1 -0
  122. package/fesm2022/energinet-watt-vater.mjs +248 -0
  123. package/fesm2022/energinet-watt-vater.mjs.map +1 -0
  124. package/{esm2022/year-field/watt-year-field.component.js → fesm2022/energinet-watt-year-field.mjs} +39 -13
  125. package/fesm2022/energinet-watt-year-field.mjs.map +1 -0
  126. package/{esm2022/yearmonth-field/watt-yearmonth-field.component.js → fesm2022/energinet-watt-yearmonth-field.mjs} +79 -13
  127. package/fesm2022/energinet-watt-yearmonth-field.mjs.map +1 -0
  128. package/{esm2022/index.js → fesm2022/energinet-watt.mjs} +8 -2
  129. package/fesm2022/energinet-watt.mjs.map +1 -0
  130. package/field/index.d.ts +62 -21
  131. package/file-field/index.d.ts +13 -17
  132. package/icon/flags/index.d.ts +61 -26
  133. package/icon/index.d.ts +105 -1
  134. package/index.d.ts +3 -1
  135. package/menu/index.d.ts +103 -9
  136. package/modal/index.d.ts +111 -2
  137. package/package.json +9 -9
  138. package/paginator/index.d.ts +52 -16
  139. package/phone-field/index.d.ts +79 -18
  140. package/picker/__shared/index.d.ts +88 -3
  141. package/picker/datepicker/index.d.ts +87 -16
  142. package/picker/timepicker/index.d.ts +70 -14
  143. package/progress-tracker/index.d.ts +21 -4
  144. package/query-params/index.d.ts +12 -17
  145. package/radio/index.d.ts +71 -18
  146. package/search/index.d.ts +47 -17
  147. package/segmented-buttons/index.d.ts +32 -5
  148. package/shell/index.d.ts +47 -18
  149. package/slide-toggle/index.d.ts +18 -15
  150. package/slider/index.d.ts +33 -15
  151. package/spinner/index.d.ts +16 -15
  152. package/stepper/index.d.ts +43 -2
  153. package/table/index.d.ts +301 -2
  154. package/tabs/index.d.ts +52 -10
  155. package/text-field/index.d.ts +67 -17
  156. package/textarea-field/index.d.ts +31 -17
  157. package/toast/index.d.ts +59 -17
  158. package/tooltip/index.d.ts +20 -17
  159. package/utils/css/index.d.ts +12 -17
  160. package/utils/intersection-observer/index.d.ts +22 -14
  161. package/utils/resize-observer/index.d.ts +46 -2
  162. package/validation-message/index.d.ts +36 -15
  163. package/validators/index.d.ts +12 -1
  164. package/vater/index.d.ts +71 -5
  165. package/year-field/index.d.ts +60 -17
  166. package/yearmonth-field/index.d.ts +64 -18
  167. package/badge/energinet-watt-badge.d.ts +0 -5
  168. package/badge/watt-badge.component.d.ts +0 -15
  169. package/breadcrumbs/energinet-watt-breadcrumbs.d.ts +0 -5
  170. package/breadcrumbs/watt-breadcrumbs.component.d.ts +0 -23
  171. package/button/energinet-watt-button.d.ts +0 -5
  172. package/button/watt-button.component.d.ts +0 -22
  173. package/card/energinet-watt-card.d.ts +0 -5
  174. package/card/watt-card-title.component.d.ts +0 -6
  175. package/card/watt-card.component.d.ts +0 -15
  176. package/checkbox/energinet-watt-checkbox.d.ts +0 -5
  177. package/checkbox/watt-checkbox.component.d.ts +0 -17
  178. package/chip/energinet-watt-chip.d.ts +0 -5
  179. package/chip/watt-action-chip.component.d.ts +0 -8
  180. package/chip/watt-chip.component.d.ts +0 -8
  181. package/chip/watt-chip.directive.d.ts +0 -16
  182. package/chip/watt-date-chip.component.d.ts +0 -12
  183. package/chip/watt-date-range-chip.component.d.ts +0 -50
  184. package/chip/watt-filter-chip.component.d.ts +0 -13
  185. package/chip/watt-menu-chip.component.d.ts +0 -13
  186. package/clipboard/energinet-watt-clipboard.d.ts +0 -5
  187. package/clipboard/watt-clipboard-intl.service.d.ts +0 -7
  188. package/clipboard/watt-copy-to-clipboard.directive.d.ts +0 -12
  189. package/code/energinet-watt-code.d.ts +0 -5
  190. package/code/watt-code-intl.service.d.ts +0 -6
  191. package/code/watt-code.component.d.ts +0 -45
  192. package/code/watt-code.worker.token.d.ts +0 -18
  193. package/core/breakpoints/breakpoints-observer.d.ts +0 -21
  194. package/core/breakpoints/breakpoints.d.ts +0 -29
  195. package/core/breakpoints/energinet-watt-core-breakpoints.d.ts +0 -5
  196. package/core/color/color-helper.service.d.ts +0 -10
  197. package/core/color/colors.d.ts +0 -51
  198. package/core/color/energinet-watt-core-color.d.ts +0 -5
  199. package/core/date/dayjs.d.ts +0 -22
  200. package/core/date/energinet-watt-core-date.d.ts +0 -5
  201. package/core/date/watt-danish-datetime.providers.d.ts +0 -1
  202. package/core/date/watt-date-adapter.d.ts +0 -31
  203. package/core/date/watt-date-range.d.ts +0 -25
  204. package/core/date/watt-date.pipe.d.ts +0 -28
  205. package/core/date/watt-format-date.d.ts +0 -11
  206. package/core/date/watt-locale.service.d.ts +0 -11
  207. package/data/energinet-watt-data.d.ts +0 -5
  208. package/data/watt-data-actions.component.d.ts +0 -5
  209. package/data/watt-data-filters.component.d.ts +0 -5
  210. package/data/watt-data-intl.service.d.ts +0 -15
  211. package/data/watt-data-table.component.d.ts +0 -34
  212. package/datetime-field/energinet-watt-datetime-field.d.ts +0 -5
  213. package/datetime-field/watt-datetime-field.component.d.ts +0 -39
  214. package/description-list/energinet-watt-description-list.d.ts +0 -5
  215. package/description-list/watt-description-list-item.component.d.ts +0 -27
  216. package/description-list/watt-description-list.component.d.ts +0 -20
  217. package/drawer/energinet-watt-drawer.d.ts +0 -5
  218. package/drawer/watt-drawer-actions.component.d.ts +0 -5
  219. package/drawer/watt-drawer-content.component.d.ts +0 -5
  220. package/drawer/watt-drawer-heading.component.d.ts +0 -5
  221. package/drawer/watt-drawer-topbar.component.d.ts +0 -5
  222. package/drawer/watt-drawer.component.d.ts +0 -66
  223. package/dropdown/energinet-watt-dropdown.d.ts +0 -5
  224. package/dropdown/watt-dropdown-option.d.ts +0 -28
  225. package/dropdown/watt-dropdown-value.d.ts +0 -17
  226. package/dropdown/watt-dropdown.component.d.ts +0 -133
  227. package/dropzone/energinet-watt-dropzone.d.ts +0 -5
  228. package/dropzone/watt-dropzone-intl.d.ts +0 -11
  229. package/dropzone/watt-dropzone-validators.d.ts +0 -27
  230. package/dropzone/watt-dropzone.d.ts +0 -31
  231. package/empty-state/energinet-watt-empty-state.d.ts +0 -5
  232. package/empty-state/icons/explore.d.ts +0 -5
  233. package/empty-state/icons/no-results.d.ts +0 -5
  234. package/empty-state/icons/not-found.d.ts +0 -5
  235. package/empty-state/icons/power.d.ts +0 -5
  236. package/empty-state/watt-empty-state.component.d.ts +0 -16
  237. package/energinet-watt.d.ts +0 -5
  238. package/esm2022/badge/energinet-watt-badge.js +0 -5
  239. package/esm2022/badge/energinet-watt-badge.js.map +0 -1
  240. package/esm2022/badge/index.js +0 -20
  241. package/esm2022/badge/index.js.map +0 -1
  242. package/esm2022/badge/watt-badge.component.js.map +0 -1
  243. package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js +0 -5
  244. package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js.map +0 -1
  245. package/esm2022/breadcrumbs/index.js +0 -20
  246. package/esm2022/breadcrumbs/index.js.map +0 -1
  247. package/esm2022/breadcrumbs/watt-breadcrumbs.component.js.map +0 -1
  248. package/esm2022/button/energinet-watt-button.js +0 -5
  249. package/esm2022/button/energinet-watt-button.js.map +0 -1
  250. package/esm2022/button/index.js +0 -20
  251. package/esm2022/button/index.js.map +0 -1
  252. package/esm2022/button/watt-button.component.js.map +0 -1
  253. package/esm2022/card/energinet-watt-card.js +0 -5
  254. package/esm2022/card/energinet-watt-card.js.map +0 -1
  255. package/esm2022/card/index.js +0 -21
  256. package/esm2022/card/index.js.map +0 -1
  257. package/esm2022/card/watt-card-title.component.js +0 -33
  258. package/esm2022/card/watt-card-title.component.js.map +0 -1
  259. package/esm2022/card/watt-card.component.js.map +0 -1
  260. package/esm2022/checkbox/energinet-watt-checkbox.js +0 -5
  261. package/esm2022/checkbox/energinet-watt-checkbox.js.map +0 -1
  262. package/esm2022/checkbox/index.js +0 -20
  263. package/esm2022/checkbox/index.js.map +0 -1
  264. package/esm2022/checkbox/watt-checkbox.component.js.map +0 -1
  265. package/esm2022/chip/energinet-watt-chip.js +0 -5
  266. package/esm2022/chip/energinet-watt-chip.js.map +0 -1
  267. package/esm2022/chip/index.js +0 -26
  268. package/esm2022/chip/index.js.map +0 -1
  269. package/esm2022/chip/watt-action-chip.component.js +0 -68
  270. package/esm2022/chip/watt-action-chip.component.js.map +0 -1
  271. package/esm2022/chip/watt-chip.component.js +0 -55
  272. package/esm2022/chip/watt-chip.component.js.map +0 -1
  273. package/esm2022/chip/watt-chip.directive.js +0 -92
  274. package/esm2022/chip/watt-chip.directive.js.map +0 -1
  275. package/esm2022/chip/watt-date-chip.component.js +0 -104
  276. package/esm2022/chip/watt-date-chip.component.js.map +0 -1
  277. package/esm2022/chip/watt-date-range-chip.component.js +0 -213
  278. package/esm2022/chip/watt-date-range-chip.component.js.map +0 -1
  279. package/esm2022/chip/watt-filter-chip.component.js +0 -82
  280. package/esm2022/chip/watt-filter-chip.component.js.map +0 -1
  281. package/esm2022/chip/watt-menu-chip.component.js +0 -80
  282. package/esm2022/chip/watt-menu-chip.component.js.map +0 -1
  283. package/esm2022/clipboard/energinet-watt-clipboard.js +0 -5
  284. package/esm2022/clipboard/energinet-watt-clipboard.js.map +0 -1
  285. package/esm2022/clipboard/index.js +0 -21
  286. package/esm2022/clipboard/index.js.map +0 -1
  287. package/esm2022/clipboard/watt-clipboard-intl.service.js +0 -31
  288. package/esm2022/clipboard/watt-clipboard-intl.service.js.map +0 -1
  289. package/esm2022/clipboard/watt-copy-to-clipboard.directive.js.map +0 -1
  290. package/esm2022/code/energinet-watt-code.js +0 -5
  291. package/esm2022/code/energinet-watt-code.js.map +0 -1
  292. package/esm2022/code/index.js +0 -22
  293. package/esm2022/code/index.js.map +0 -1
  294. package/esm2022/code/watt-code-intl.service.js +0 -30
  295. package/esm2022/code/watt-code-intl.service.js.map +0 -1
  296. package/esm2022/code/watt-code.component.js.map +0 -1
  297. package/esm2022/code/watt-code.worker.token.js +0 -21
  298. package/esm2022/code/watt-code.worker.token.js.map +0 -1
  299. package/esm2022/core/breakpoints/breakpoints-observer.js +0 -41
  300. package/esm2022/core/breakpoints/breakpoints-observer.js.map +0 -1
  301. package/esm2022/core/breakpoints/breakpoints.js +0 -31
  302. package/esm2022/core/breakpoints/breakpoints.js.map +0 -1
  303. package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js +0 -5
  304. package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js.map +0 -1
  305. package/esm2022/core/breakpoints/index.js +0 -21
  306. package/esm2022/core/breakpoints/index.js.map +0 -1
  307. package/esm2022/core/color/color-helper.service.js +0 -41
  308. package/esm2022/core/color/color-helper.service.js.map +0 -1
  309. package/esm2022/core/color/colors.js +0 -58
  310. package/esm2022/core/color/colors.js.map +0 -1
  311. package/esm2022/core/color/energinet-watt-core-color.js +0 -5
  312. package/esm2022/core/color/energinet-watt-core-color.js.map +0 -1
  313. package/esm2022/core/color/index.js +0 -21
  314. package/esm2022/core/color/index.js.map +0 -1
  315. package/esm2022/core/date/dayjs.js +0 -34
  316. package/esm2022/core/date/dayjs.js.map +0 -1
  317. package/esm2022/core/date/energinet-watt-core-date.js +0 -5
  318. package/esm2022/core/date/energinet-watt-core-date.js.map +0 -1
  319. package/esm2022/core/date/index.js +0 -25
  320. package/esm2022/core/date/index.js.map +0 -1
  321. package/esm2022/core/date/watt-danish-datetime.providers.js +0 -31
  322. package/esm2022/core/date/watt-danish-datetime.providers.js.map +0 -1
  323. package/esm2022/core/date/watt-date-adapter.js +0 -43
  324. package/esm2022/core/date/watt-date-adapter.js.map +0 -1
  325. package/esm2022/core/date/watt-date-range.js +0 -2
  326. package/esm2022/core/date/watt-date-range.js.map +0 -1
  327. package/esm2022/core/date/watt-date.pipe.js +0 -38
  328. package/esm2022/core/date/watt-date.pipe.js.map +0 -1
  329. package/esm2022/core/date/watt-format-date.js +0 -50
  330. package/esm2022/core/date/watt-format-date.js.map +0 -1
  331. package/esm2022/core/date/watt-locale.service.js +0 -48
  332. package/esm2022/core/date/watt-locale.service.js.map +0 -1
  333. package/esm2022/data/energinet-watt-data.js +0 -5
  334. package/esm2022/data/energinet-watt-data.js.map +0 -1
  335. package/esm2022/data/index.js +0 -23
  336. package/esm2022/data/index.js.map +0 -1
  337. package/esm2022/data/watt-data-actions.component.js +0 -32
  338. package/esm2022/data/watt-data-actions.component.js.map +0 -1
  339. package/esm2022/data/watt-data-filters.component.js +0 -32
  340. package/esm2022/data/watt-data-filters.component.js.map +0 -1
  341. package/esm2022/data/watt-data-intl.service.js +0 -39
  342. package/esm2022/data/watt-data-intl.service.js.map +0 -1
  343. package/esm2022/data/watt-data-table.component.js.map +0 -1
  344. package/esm2022/datetime-field/energinet-watt-datetime-field.js +0 -5
  345. package/esm2022/datetime-field/energinet-watt-datetime-field.js.map +0 -1
  346. package/esm2022/datetime-field/index.js +0 -20
  347. package/esm2022/datetime-field/index.js.map +0 -1
  348. package/esm2022/datetime-field/watt-datetime-field.component.js.map +0 -1
  349. package/esm2022/description-list/energinet-watt-description-list.js +0 -5
  350. package/esm2022/description-list/energinet-watt-description-list.js.map +0 -1
  351. package/esm2022/description-list/index.js +0 -20
  352. package/esm2022/description-list/index.js.map +0 -1
  353. package/esm2022/description-list/watt-description-list-item.component.js +0 -49
  354. package/esm2022/description-list/watt-description-list-item.component.js.map +0 -1
  355. package/esm2022/description-list/watt-description-list.component.js.map +0 -1
  356. package/esm2022/drawer/energinet-watt-drawer.js +0 -5
  357. package/esm2022/drawer/energinet-watt-drawer.js.map +0 -1
  358. package/esm2022/drawer/index.js +0 -24
  359. package/esm2022/drawer/index.js.map +0 -1
  360. package/esm2022/drawer/watt-drawer-actions.component.js +0 -29
  361. package/esm2022/drawer/watt-drawer-actions.component.js.map +0 -1
  362. package/esm2022/drawer/watt-drawer-content.component.js +0 -29
  363. package/esm2022/drawer/watt-drawer-content.component.js.map +0 -1
  364. package/esm2022/drawer/watt-drawer-heading.component.js +0 -29
  365. package/esm2022/drawer/watt-drawer-heading.component.js.map +0 -1
  366. package/esm2022/drawer/watt-drawer-topbar.component.js +0 -32
  367. package/esm2022/drawer/watt-drawer-topbar.component.js.map +0 -1
  368. package/esm2022/drawer/watt-drawer.component.js.map +0 -1
  369. package/esm2022/dropdown/energinet-watt-dropdown.js +0 -5
  370. package/esm2022/dropdown/energinet-watt-dropdown.js.map +0 -1
  371. package/esm2022/dropdown/index.js +0 -20
  372. package/esm2022/dropdown/index.js.map +0 -1
  373. package/esm2022/dropdown/watt-dropdown-option.js +0 -2
  374. package/esm2022/dropdown/watt-dropdown-option.js.map +0 -1
  375. package/esm2022/dropdown/watt-dropdown-value.js +0 -2
  376. package/esm2022/dropdown/watt-dropdown-value.js.map +0 -1
  377. package/esm2022/dropdown/watt-dropdown.component.js.map +0 -1
  378. package/esm2022/dropzone/energinet-watt-dropzone.js +0 -5
  379. package/esm2022/dropzone/energinet-watt-dropzone.js.map +0 -1
  380. package/esm2022/dropzone/index.js +0 -22
  381. package/esm2022/dropzone/index.js.map +0 -1
  382. package/esm2022/dropzone/watt-dropzone-intl.js +0 -35
  383. package/esm2022/dropzone/watt-dropzone-intl.js.map +0 -1
  384. package/esm2022/dropzone/watt-dropzone-validators.js +0 -67
  385. package/esm2022/dropzone/watt-dropzone-validators.js.map +0 -1
  386. package/esm2022/dropzone/watt-dropzone.js.map +0 -1
  387. package/esm2022/empty-state/energinet-watt-empty-state.js +0 -5
  388. package/esm2022/empty-state/energinet-watt-empty-state.js.map +0 -1
  389. package/esm2022/empty-state/icons/explore.js +0 -54
  390. package/esm2022/empty-state/icons/explore.js.map +0 -1
  391. package/esm2022/empty-state/icons/no-results.js +0 -62
  392. package/esm2022/empty-state/icons/no-results.js.map +0 -1
  393. package/esm2022/empty-state/icons/not-found.js.map +0 -1
  394. package/esm2022/empty-state/icons/power.js +0 -46
  395. package/esm2022/empty-state/icons/power.js.map +0 -1
  396. package/esm2022/empty-state/index.js +0 -24
  397. package/esm2022/empty-state/index.js.map +0 -1
  398. package/esm2022/empty-state/watt-empty-state.component.js +0 -120
  399. package/esm2022/empty-state/watt-empty-state.component.js.map +0 -1
  400. package/esm2022/energinet-watt.js +0 -5
  401. package/esm2022/energinet-watt.js.map +0 -1
  402. package/esm2022/expandable-card/energinet-watt-expandable-card.js +0 -5
  403. package/esm2022/expandable-card/energinet-watt-expandable-card.js.map +0 -1
  404. package/esm2022/expandable-card/index.js +0 -26
  405. package/esm2022/expandable-card/index.js.map +0 -1
  406. package/esm2022/expandable-card/watt-expandable-card.component.js.map +0 -1
  407. package/esm2022/field/energinet-watt-field.js +0 -5
  408. package/esm2022/field/energinet-watt-field.js.map +0 -1
  409. package/esm2022/field/index.js +0 -24
  410. package/esm2022/field/index.js.map +0 -1
  411. package/esm2022/field/watt-field-error.component.js +0 -29
  412. package/esm2022/field/watt-field-error.component.js.map +0 -1
  413. package/esm2022/field/watt-field-hint.component.js +0 -29
  414. package/esm2022/field/watt-field-hint.component.js.map +0 -1
  415. package/esm2022/field/watt-field-intl.service.js +0 -32
  416. package/esm2022/field/watt-field-intl.service.js.map +0 -1
  417. package/esm2022/field/watt-field-warning.component.js +0 -29
  418. package/esm2022/field/watt-field-warning.component.js.map +0 -1
  419. package/esm2022/field/watt-field.component.js.map +0 -1
  420. package/esm2022/file-field/energinet-watt-file-field.js +0 -5
  421. package/esm2022/file-field/energinet-watt-file-field.js.map +0 -1
  422. package/esm2022/file-field/index.js +0 -20
  423. package/esm2022/file-field/index.js.map +0 -1
  424. package/esm2022/file-field/watt-file-field.component.js.map +0 -1
  425. package/esm2022/icon/energinet-watt-icon.js +0 -5
  426. package/esm2022/icon/energinet-watt-icon.js.map +0 -1
  427. package/esm2022/icon/flags/energinet-watt-icon-flags.js +0 -5
  428. package/esm2022/icon/flags/energinet-watt-icon-flags.js.map +0 -1
  429. package/esm2022/icon/flags/index.js +0 -29
  430. package/esm2022/icon/flags/index.js.map +0 -1
  431. package/esm2022/icon/flags/watt-flag-ch.js +0 -52
  432. package/esm2022/icon/flags/watt-flag-ch.js.map +0 -1
  433. package/esm2022/icon/flags/watt-flag-de.js +0 -44
  434. package/esm2022/icon/flags/watt-flag-de.js.map +0 -1
  435. package/esm2022/icon/flags/watt-flag-dk.js +0 -44
  436. package/esm2022/icon/flags/watt-flag-dk.js.map +0 -1
  437. package/esm2022/icon/flags/watt-flag-fi.js +0 -44
  438. package/esm2022/icon/flags/watt-flag-fi.js.map +0 -1
  439. package/esm2022/icon/flags/watt-flag-gb.js +0 -60
  440. package/esm2022/icon/flags/watt-flag-gb.js.map +0 -1
  441. package/esm2022/icon/flags/watt-flag-nl.js +0 -44
  442. package/esm2022/icon/flags/watt-flag-nl.js.map +0 -1
  443. package/esm2022/icon/flags/watt-flag-no.js +0 -48
  444. package/esm2022/icon/flags/watt-flag-no.js.map +0 -1
  445. package/esm2022/icon/flags/watt-flag-pl.js +0 -46
  446. package/esm2022/icon/flags/watt-flag-pl.js.map +0 -1
  447. package/esm2022/icon/flags/watt-flag-se.js +0 -42
  448. package/esm2022/icon/flags/watt-flag-se.js.map +0 -1
  449. package/esm2022/icon/flags/watt-flag.js +0 -124
  450. package/esm2022/icon/flags/watt-flag.js.map +0 -1
  451. package/esm2022/icon/icon.component.js.map +0 -1
  452. package/esm2022/icon/icons.js +0 -104
  453. package/esm2022/icon/icons.js.map +0 -1
  454. package/esm2022/icon/index.js +0 -20
  455. package/esm2022/icon/index.js.map +0 -1
  456. package/esm2022/index.js.map +0 -1
  457. package/esm2022/menu/energinet-watt-menu.js +0 -5
  458. package/esm2022/menu/energinet-watt-menu.js.map +0 -1
  459. package/esm2022/menu/index.js +0 -36
  460. package/esm2022/menu/index.js.map +0 -1
  461. package/esm2022/menu/watt-menu-group.component.js +0 -45
  462. package/esm2022/menu/watt-menu-group.component.js.map +0 -1
  463. package/esm2022/menu/watt-menu-item.component.js +0 -50
  464. package/esm2022/menu/watt-menu-item.component.js.map +0 -1
  465. package/esm2022/menu/watt-menu-trigger.directive.js +0 -85
  466. package/esm2022/menu/watt-menu-trigger.directive.js.map +0 -1
  467. package/esm2022/menu/watt-menu.component.js +0 -77
  468. package/esm2022/menu/watt-menu.component.js.map +0 -1
  469. package/esm2022/modal/energinet-watt-modal.js +0 -5
  470. package/esm2022/modal/energinet-watt-modal.js.map +0 -1
  471. package/esm2022/modal/index.js +0 -21
  472. package/esm2022/modal/index.js.map +0 -1
  473. package/esm2022/modal/watt-modal.component.js.map +0 -1
  474. package/esm2022/modal/watt-modal.service.js +0 -74
  475. package/esm2022/modal/watt-modal.service.js.map +0 -1
  476. package/esm2022/paginator/energinet-watt-paginator.js +0 -5
  477. package/esm2022/paginator/energinet-watt-paginator.js.map +0 -1
  478. package/esm2022/paginator/index.js +0 -21
  479. package/esm2022/paginator/index.js.map +0 -1
  480. package/esm2022/paginator/watt-paginator-intl.service.js +0 -38
  481. package/esm2022/paginator/watt-paginator-intl.service.js.map +0 -1
  482. package/esm2022/paginator/watt-paginator.component.js.map +0 -1
  483. package/esm2022/phone-field/energinet-watt-phone-field.js +0 -5
  484. package/esm2022/phone-field/energinet-watt-phone-field.js.map +0 -1
  485. package/esm2022/phone-field/index.js +0 -21
  486. package/esm2022/phone-field/index.js.map +0 -1
  487. package/esm2022/phone-field/watt-phone-field-intl.service.js +0 -41
  488. package/esm2022/phone-field/watt-phone-field-intl.service.js.map +0 -1
  489. package/esm2022/phone-field/watt-phone-field.component.js.map +0 -1
  490. package/esm2022/picker/__shared/energinet-watt-picker-__shared.js +0 -5
  491. package/esm2022/picker/__shared/energinet-watt-picker-__shared.js.map +0 -1
  492. package/esm2022/picker/__shared/index.js +0 -21
  493. package/esm2022/picker/__shared/index.js.map +0 -1
  494. package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js +0 -71
  495. package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js.map +0 -1
  496. package/esm2022/picker/__shared/watt-picker-base.js +0 -197
  497. package/esm2022/picker/__shared/watt-picker-base.js.map +0 -1
  498. package/esm2022/picker/__shared/watt-picker-value.js +0 -2
  499. package/esm2022/picker/__shared/watt-picker-value.js.map +0 -1
  500. package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js +0 -5
  501. package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js.map +0 -1
  502. package/esm2022/picker/datepicker/index.js +0 -22
  503. package/esm2022/picker/datepicker/index.js.map +0 -1
  504. package/esm2022/picker/datepicker/watt-datepicker-intl.service.js +0 -31
  505. package/esm2022/picker/datepicker/watt-datepicker-intl.service.js.map +0 -1
  506. package/esm2022/picker/datepicker/watt-datepicker.component.js.map +0 -1
  507. package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js +0 -5
  508. package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js.map +0 -1
  509. package/esm2022/picker/timepicker/index.js +0 -20
  510. package/esm2022/picker/timepicker/index.js.map +0 -1
  511. package/esm2022/picker/timepicker/maskito-time-range-mask.js +0 -81
  512. package/esm2022/picker/timepicker/maskito-time-range-mask.js.map +0 -1
  513. package/esm2022/picker/timepicker/watt-timepicker.component.js.map +0 -1
  514. package/esm2022/progress-tracker/energinet-watt-progress-tracker.js +0 -5
  515. package/esm2022/progress-tracker/energinet-watt-progress-tracker.js.map +0 -1
  516. package/esm2022/progress-tracker/index.js +0 -27
  517. package/esm2022/progress-tracker/index.js.map +0 -1
  518. package/esm2022/progress-tracker/watt-progress-tracker-step.component.js.map +0 -1
  519. package/esm2022/progress-tracker/watt-progress-tracker.component.js +0 -30
  520. package/esm2022/progress-tracker/watt-progress-tracker.component.js.map +0 -1
  521. package/esm2022/query-params/energinet-watt-query-params.js +0 -5
  522. package/esm2022/query-params/energinet-watt-query-params.js.map +0 -1
  523. package/esm2022/query-params/index.js +0 -20
  524. package/esm2022/query-params/index.js.map +0 -1
  525. package/esm2022/query-params/watt-query-params.directive.js.map +0 -1
  526. package/esm2022/radio/energinet-watt-radio.js +0 -5
  527. package/esm2022/radio/energinet-watt-radio.js.map +0 -1
  528. package/esm2022/radio/index.js +0 -21
  529. package/esm2022/radio/index.js.map +0 -1
  530. package/esm2022/radio/watt-radio-group.component.js +0 -119
  531. package/esm2022/radio/watt-radio-group.component.js.map +0 -1
  532. package/esm2022/radio/watt-radio.component.js.map +0 -1
  533. package/esm2022/search/energinet-watt-search.js +0 -5
  534. package/esm2022/search/energinet-watt-search.js.map +0 -1
  535. package/esm2022/search/index.js +0 -20
  536. package/esm2022/search/index.js.map +0 -1
  537. package/esm2022/search/watt-search.component.js.map +0 -1
  538. package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js +0 -5
  539. package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js.map +0 -1
  540. package/esm2022/segmented-buttons/index.js +0 -27
  541. package/esm2022/segmented-buttons/index.js.map +0 -1
  542. package/esm2022/segmented-buttons/watt-segmented-button.component.js +0 -39
  543. package/esm2022/segmented-buttons/watt-segmented-button.component.js.map +0 -1
  544. package/esm2022/segmented-buttons/watt-segmented-buttons.component.js.map +0 -1
  545. package/esm2022/shell/energinet-watt-shell.js +0 -5
  546. package/esm2022/shell/energinet-watt-shell.js.map +0 -1
  547. package/esm2022/shell/index.js +0 -21
  548. package/esm2022/shell/index.js.map +0 -1
  549. package/esm2022/shell/nav-list/index.js +0 -21
  550. package/esm2022/shell/nav-list/index.js.map +0 -1
  551. package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js +0 -47
  552. package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js.map +0 -1
  553. package/esm2022/shell/nav-list/watt-nav-list-item.component.js +0 -83
  554. package/esm2022/shell/nav-list/watt-nav-list-item.component.js.map +0 -1
  555. package/esm2022/shell/nav-list/watt-nav-list.component.js +0 -80
  556. package/esm2022/shell/nav-list/watt-nav-list.component.js.map +0 -1
  557. package/esm2022/shell/shell.component.js +0 -59
  558. package/esm2022/shell/shell.component.js.map +0 -1
  559. package/esm2022/slide-toggle/energinet-watt-slide-toggle.js +0 -5
  560. package/esm2022/slide-toggle/energinet-watt-slide-toggle.js.map +0 -1
  561. package/esm2022/slide-toggle/index.js +0 -20
  562. package/esm2022/slide-toggle/index.js.map +0 -1
  563. package/esm2022/slide-toggle/watt-slide-toggle.component.js.map +0 -1
  564. package/esm2022/slider/energinet-watt-slider.js +0 -5
  565. package/esm2022/slider/energinet-watt-slider.js.map +0 -1
  566. package/esm2022/slider/index.js +0 -20
  567. package/esm2022/slider/index.js.map +0 -1
  568. package/esm2022/slider/watt-slider.component.js.map +0 -1
  569. package/esm2022/spinner/energinet-watt-spinner.js +0 -5
  570. package/esm2022/spinner/energinet-watt-spinner.js.map +0 -1
  571. package/esm2022/spinner/index.js +0 -20
  572. package/esm2022/spinner/index.js.map +0 -1
  573. package/esm2022/spinner/watt-spinner.component.js.map +0 -1
  574. package/esm2022/stepper/energinet-watt-stepper.js +0 -5
  575. package/esm2022/stepper/energinet-watt-stepper.js.map +0 -1
  576. package/esm2022/stepper/index.js +0 -21
  577. package/esm2022/stepper/index.js.map +0 -1
  578. package/esm2022/stepper/watt-stepper-step.component.js +0 -49
  579. package/esm2022/stepper/watt-stepper-step.component.js.map +0 -1
  580. package/esm2022/stepper/watt-stepper.component.js.map +0 -1
  581. package/esm2022/table/energinet-watt-table.js +0 -5
  582. package/esm2022/table/energinet-watt-table.js.map +0 -1
  583. package/esm2022/table/index.js +0 -21
  584. package/esm2022/table/index.js.map +0 -1
  585. package/esm2022/table/watt-table-data-source.js +0 -27
  586. package/esm2022/table/watt-table-data-source.js.map +0 -1
  587. package/esm2022/table/watt-table-expand-animation.js +0 -65
  588. package/esm2022/table/watt-table-expand-animation.js.map +0 -1
  589. package/esm2022/table/watt-table.component.js.map +0 -1
  590. package/esm2022/tabs/energinet-watt-tabs.js +0 -5
  591. package/esm2022/tabs/energinet-watt-tabs.js.map +0 -1
  592. package/esm2022/tabs/index.js +0 -31
  593. package/esm2022/tabs/index.js.map +0 -1
  594. package/esm2022/tabs/watt-link-tab.component.js +0 -34
  595. package/esm2022/tabs/watt-link-tab.component.js.map +0 -1
  596. package/esm2022/tabs/watt-link-tabs.component.js +0 -71
  597. package/esm2022/tabs/watt-link-tabs.component.js.map +0 -1
  598. package/esm2022/tabs/watt-tab.component.js +0 -42
  599. package/esm2022/tabs/watt-tab.component.js.map +0 -1
  600. package/esm2022/tabs/watt-tabs-action.component.js +0 -32
  601. package/esm2022/tabs/watt-tabs-action.component.js.map +0 -1
  602. package/esm2022/tabs/watt-tabs.component.js +0 -60
  603. package/esm2022/tabs/watt-tabs.component.js.map +0 -1
  604. package/esm2022/text-field/energinet-watt-text-field.js +0 -5
  605. package/esm2022/text-field/energinet-watt-text-field.js.map +0 -1
  606. package/esm2022/text-field/index.js +0 -20
  607. package/esm2022/text-field/index.js.map +0 -1
  608. package/esm2022/text-field/watt-text-field.component.js.map +0 -1
  609. package/esm2022/textarea-field/energinet-watt-textarea-field.js +0 -5
  610. package/esm2022/textarea-field/energinet-watt-textarea-field.js.map +0 -1
  611. package/esm2022/textarea-field/index.js +0 -20
  612. package/esm2022/textarea-field/index.js.map +0 -1
  613. package/esm2022/textarea-field/watt-textarea-field.component.js.map +0 -1
  614. package/esm2022/toast/energinet-watt-toast.js +0 -5
  615. package/esm2022/toast/energinet-watt-toast.js.map +0 -1
  616. package/esm2022/toast/index.js +0 -21
  617. package/esm2022/toast/index.js.map +0 -1
  618. package/esm2022/toast/watt-toast.component.js.map +0 -1
  619. package/esm2022/toast/watt-toast.service.js +0 -51
  620. package/esm2022/toast/watt-toast.service.js.map +0 -1
  621. package/esm2022/tooltip/energinet-watt-tooltip.js +0 -5
  622. package/esm2022/tooltip/energinet-watt-tooltip.js.map +0 -1
  623. package/esm2022/tooltip/index.js +0 -20
  624. package/esm2022/tooltip/index.js.map +0 -1
  625. package/esm2022/tooltip/watt-tooltip.component.js.map +0 -1
  626. package/esm2022/tooltip/watt-tooltip.directive.js +0 -67
  627. package/esm2022/tooltip/watt-tooltip.directive.js.map +0 -1
  628. package/esm2022/utils/css/css-custom-properties.service.js.map +0 -1
  629. package/esm2022/utils/css/energinet-watt-utils-css.js +0 -5
  630. package/esm2022/utils/css/energinet-watt-utils-css.js.map +0 -1
  631. package/esm2022/utils/css/index.js +0 -20
  632. package/esm2022/utils/css/index.js.map +0 -1
  633. package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js +0 -5
  634. package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js.map +0 -1
  635. package/esm2022/utils/intersection-observer/index.js +0 -20
  636. package/esm2022/utils/intersection-observer/index.js.map +0 -1
  637. package/esm2022/utils/intersection-observer/watt-intersection-observer.service.js.map +0 -1
  638. package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js +0 -5
  639. package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js.map +0 -1
  640. package/esm2022/utils/resize-observer/index.js +0 -21
  641. package/esm2022/utils/resize-observer/index.js.map +0 -1
  642. package/esm2022/utils/resize-observer/watt-resize-observer.directive.js +0 -53
  643. package/esm2022/utils/resize-observer/watt-resize-observer.directive.js.map +0 -1
  644. package/esm2022/utils/resize-observer/watt-resize-observer.service.js +0 -67
  645. package/esm2022/utils/resize-observer/watt-resize-observer.service.js.map +0 -1
  646. package/esm2022/validation-message/energinet-watt-validation-message.js +0 -5
  647. package/esm2022/validation-message/energinet-watt-validation-message.js.map +0 -1
  648. package/esm2022/validation-message/index.js +0 -20
  649. package/esm2022/validation-message/index.js.map +0 -1
  650. package/esm2022/validation-message/watt-validation-message.component.js.map +0 -1
  651. package/esm2022/validators/energinet-watt-validators.js +0 -5
  652. package/esm2022/validators/energinet-watt-validators.js.map +0 -1
  653. package/esm2022/validators/index.js +0 -20
  654. package/esm2022/validators/index.js.map +0 -1
  655. package/esm2022/validators/watt-range.validators.js.map +0 -1
  656. package/esm2022/vater/energinet-watt-vater.js +0 -5
  657. package/esm2022/vater/energinet-watt-vater.js.map +0 -1
  658. package/esm2022/vater/index.js +0 -24
  659. package/esm2022/vater/index.js.map +0 -1
  660. package/esm2022/vater/types.js +0 -20
  661. package/esm2022/vater/types.js.map +0 -1
  662. package/esm2022/vater/vater-flex.component.js +0 -49
  663. package/esm2022/vater/vater-flex.component.js.map +0 -1
  664. package/esm2022/vater/vater-layout.directive.js +0 -65
  665. package/esm2022/vater/vater-layout.directive.js.map +0 -1
  666. package/esm2022/vater/vater-spacer.component.js +0 -29
  667. package/esm2022/vater/vater-spacer.component.js.map +0 -1
  668. package/esm2022/vater/vater-stack.component.js +0 -42
  669. package/esm2022/vater/vater-stack.component.js.map +0 -1
  670. package/esm2022/vater/vater-utility.directive.js +0 -53
  671. package/esm2022/vater/vater-utility.directive.js.map +0 -1
  672. package/esm2022/year-field/energinet-watt-year-field.js +0 -5
  673. package/esm2022/year-field/energinet-watt-year-field.js.map +0 -1
  674. package/esm2022/year-field/index.js +0 -20
  675. package/esm2022/year-field/index.js.map +0 -1
  676. package/esm2022/year-field/watt-year-field.component.js.map +0 -1
  677. package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js +0 -5
  678. package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js.map +0 -1
  679. package/esm2022/yearmonth-field/index.js +0 -21
  680. package/esm2022/yearmonth-field/index.js.map +0 -1
  681. package/esm2022/yearmonth-field/watt-yearmonth-field.component.js.map +0 -1
  682. package/esm2022/yearmonth-field/year-month.js +0 -42
  683. package/esm2022/yearmonth-field/year-month.js.map +0 -1
  684. package/expandable-card/energinet-watt-expandable-card.d.ts +0 -5
  685. package/expandable-card/watt-expandable-card.component.d.ts +0 -34
  686. package/field/energinet-watt-field.d.ts +0 -5
  687. package/field/watt-field-error.component.d.ts +0 -5
  688. package/field/watt-field-hint.component.d.ts +0 -5
  689. package/field/watt-field-intl.service.d.ts +0 -8
  690. package/field/watt-field-warning.component.d.ts +0 -5
  691. package/field/watt-field.component.d.ts +0 -53
  692. package/file-field/energinet-watt-file-field.d.ts +0 -5
  693. package/file-field/watt-file-field.component.d.ts +0 -10
  694. package/icon/energinet-watt-icon.d.ts +0 -5
  695. package/icon/flags/energinet-watt-icon-flags.d.ts +0 -5
  696. package/icon/flags/watt-flag-ch.d.ts +0 -5
  697. package/icon/flags/watt-flag-de.d.ts +0 -5
  698. package/icon/flags/watt-flag-dk.d.ts +0 -5
  699. package/icon/flags/watt-flag-fi.d.ts +0 -5
  700. package/icon/flags/watt-flag-gb.d.ts +0 -5
  701. package/icon/flags/watt-flag-nl.d.ts +0 -5
  702. package/icon/flags/watt-flag-no.d.ts +0 -5
  703. package/icon/flags/watt-flag-pl.d.ts +0 -5
  704. package/icon/flags/watt-flag-se.d.ts +0 -5
  705. package/icon/flags/watt-flag.d.ts +0 -13
  706. package/icon/icon.component.d.ts +0 -20
  707. package/icon/icons.d.ts +0 -97
  708. package/menu/energinet-watt-menu.d.ts +0 -5
  709. package/menu/watt-menu-group.component.d.ts +0 -9
  710. package/menu/watt-menu-item.component.d.ts +0 -9
  711. package/menu/watt-menu-trigger.directive.d.ts +0 -36
  712. package/menu/watt-menu.component.d.ts +0 -44
  713. package/modal/energinet-watt-modal.d.ts +0 -5
  714. package/modal/watt-modal.component.d.ts +0 -84
  715. package/modal/watt-modal.service.d.ts +0 -56
  716. package/paginator/energinet-watt-paginator.d.ts +0 -5
  717. package/paginator/watt-paginator-intl.service.d.ts +0 -14
  718. package/paginator/watt-paginator.component.d.ts +0 -53
  719. package/phone-field/energinet-watt-phone-field.d.ts +0 -5
  720. package/phone-field/watt-phone-field-intl.service.d.ts +0 -17
  721. package/phone-field/watt-phone-field.component.d.ts +0 -75
  722. package/picker/__shared/energinet-watt-picker-__shared.d.ts +0 -5
  723. package/picker/__shared/placeholder-mask/watt-placeholder-mask.component.d.ts +0 -34
  724. package/picker/__shared/watt-picker-base.d.ts +0 -81
  725. package/picker/__shared/watt-picker-value.d.ts +0 -18
  726. package/picker/datepicker/energinet-watt-picker-datepicker.d.ts +0 -5
  727. package/picker/datepicker/watt-datepicker-intl.service.d.ts +0 -7
  728. package/picker/datepicker/watt-datepicker.component.d.ts +0 -95
  729. package/picker/timepicker/energinet-watt-picker-timepicker.d.ts +0 -5
  730. package/picker/timepicker/maskito-time-range-mask.d.ts +0 -18
  731. package/picker/timepicker/watt-timepicker.component.d.ts +0 -69
  732. package/progress-tracker/energinet-watt-progress-tracker.d.ts +0 -5
  733. package/progress-tracker/watt-progress-tracker-step.component.d.ts +0 -10
  734. package/progress-tracker/watt-progress-tracker.component.d.ts +0 -5
  735. package/query-params/energinet-watt-query-params.d.ts +0 -5
  736. package/query-params/watt-query-params.directive.d.ts +0 -9
  737. package/radio/energinet-watt-radio.d.ts +0 -5
  738. package/radio/watt-radio-group.component.d.ts +0 -47
  739. package/radio/watt-radio.component.d.ts +0 -23
  740. package/search/energinet-watt-search.d.ts +0 -5
  741. package/search/watt-search.component.d.ts +0 -44
  742. package/segmented-buttons/energinet-watt-segmented-buttons.d.ts +0 -5
  743. package/segmented-buttons/watt-segmented-button.component.d.ts +0 -25
  744. package/segmented-buttons/watt-segmented-buttons.component.d.ts +0 -18
  745. package/shell/energinet-watt-shell.d.ts +0 -5
  746. package/shell/nav-list/index.d.ts +0 -18
  747. package/shell/nav-list/watt-expand-on-active-link.directive.d.ts +0 -9
  748. package/shell/nav-list/watt-nav-list-item.component.d.ts +0 -16
  749. package/shell/nav-list/watt-nav-list.component.d.ts +0 -12
  750. package/shell/shell.component.d.ts +0 -17
  751. package/slide-toggle/energinet-watt-slide-toggle.d.ts +0 -5
  752. package/slide-toggle/watt-slide-toggle.component.d.ts +0 -33
  753. package/slider/energinet-watt-slider.d.ts +0 -5
  754. package/slider/watt-slider.component.d.ts +0 -47
  755. package/spinner/energinet-watt-spinner.d.ts +0 -5
  756. package/spinner/watt-spinner.component.d.ts +0 -15
  757. package/stepper/energinet-watt-stepper.d.ts +0 -5
  758. package/stepper/watt-stepper-step.component.d.ts +0 -35
  759. package/stepper/watt-stepper.component.d.ts +0 -40
  760. package/table/energinet-watt-table.d.ts +0 -5
  761. package/table/watt-table-data-source.d.ts +0 -39
  762. package/table/watt-table-expand-animation.d.ts +0 -18
  763. package/table/watt-table.component.d.ts +0 -294
  764. package/tabs/energinet-watt-tabs.d.ts +0 -5
  765. package/tabs/watt-link-tab.component.d.ts +0 -7
  766. package/tabs/watt-link-tabs.component.d.ts +0 -7
  767. package/tabs/watt-tab.component.d.ts +0 -26
  768. package/tabs/watt-tabs-action.component.d.ts +0 -5
  769. package/tabs/watt-tabs.component.d.ts +0 -36
  770. package/text-field/energinet-watt-text-field.d.ts +0 -5
  771. package/text-field/watt-text-field.component.d.ts +0 -80
  772. package/textarea-field/energinet-watt-textarea-field.d.ts +0 -5
  773. package/textarea-field/watt-textarea-field.component.d.ts +0 -28
  774. package/toast/energinet-watt-toast.d.ts +0 -5
  775. package/toast/watt-toast.component.d.ts +0 -47
  776. package/toast/watt-toast.service.d.ts +0 -12
  777. package/tooltip/energinet-watt-tooltip.d.ts +0 -5
  778. package/tooltip/watt-tooltip.component.d.ts +0 -26
  779. package/tooltip/watt-tooltip.directive.d.ts +0 -16
  780. package/utils/css/css-custom-properties.service.d.ts +0 -9
  781. package/utils/css/energinet-watt-utils-css.d.ts +0 -5
  782. package/utils/intersection-observer/energinet-watt-utils-intersection-observer.d.ts +0 -5
  783. package/utils/intersection-observer/watt-intersection-observer.service.d.ts +0 -21
  784. package/utils/resize-observer/energinet-watt-utils-resize-observer.d.ts +0 -5
  785. package/utils/resize-observer/watt-resize-observer.directive.d.ts +0 -35
  786. package/utils/resize-observer/watt-resize-observer.service.d.ts +0 -22
  787. package/validation-message/energinet-watt-validation-message.d.ts +0 -5
  788. package/validation-message/watt-validation-message.component.d.ts +0 -50
  789. package/validators/energinet-watt-validators.d.ts +0 -5
  790. package/validators/watt-range.validators.d.ts +0 -24
  791. package/vater/energinet-watt-vater.d.ts +0 -5
  792. package/vater/types.d.ts +0 -22
  793. package/vater/vater-flex.component.d.ts +0 -14
  794. package/vater/vater-layout.directive.d.ts +0 -24
  795. package/vater/vater-spacer.component.d.ts +0 -5
  796. package/vater/vater-stack.component.d.ts +0 -7
  797. package/vater/vater-utility.directive.d.ts +0 -17
  798. package/year-field/energinet-watt-year-field.d.ts +0 -5
  799. package/year-field/watt-year-field.component.d.ts +0 -56
  800. package/yearmonth-field/energinet-watt-yearmonth-field.d.ts +0 -5
  801. package/yearmonth-field/watt-yearmonth-field.component.d.ts +0 -58
  802. package/yearmonth-field/year-month.d.ts +0 -20
@@ -1,77 +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, ViewEncapsulation, ChangeDetectionStrategy, viewChild } from '@angular/core';
20
- import { MatMenuModule } from '@angular/material/menu';
21
- import * as i0 from "@angular/core";
22
- import * as i1 from "@angular/material/menu";
23
- /**
24
- * Watt Menu Component
25
- *
26
- * A wrapper around Angular Material's menu component that provides consistent styling
27
- * and integration with the Watt design system.
28
- *
29
- * @example Basic usage
30
- * ```html
31
- * <watt-button [wattMenuTriggerFor]="menu">
32
- * Open Menu
33
- * </watt-button>
34
- *
35
- * <watt-menu #menu>
36
- * <watt-menu-item>Option 1</watt-menu-item>
37
- * <watt-menu-item>Option 2</watt-menu-item>
38
- * </watt-menu>
39
- * ```
40
- *
41
- * @example With groups
42
- * ```html
43
- * <watt-menu #menu>
44
- * <watt-menu-group label="File">
45
- * <watt-menu-item>New</watt-menu-item>
46
- * <watt-menu-item>Open</watt-menu-item>
47
- * </watt-menu-group>
48
- *
49
- * <watt-menu-group label="Edit">
50
- * <watt-menu-item>Cut</watt-menu-item>
51
- * <watt-menu-item>Copy</watt-menu-item>
52
- * </watt-menu-group>
53
- * </watt-menu>
54
- * ```
55
- */
56
- export class WattMenuComponent {
57
- /**
58
- * Reference to the underlying MatMenu instance.
59
- * @ignore
60
- */
61
- menu = viewChild.required('menu');
62
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
63
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.15", type: WattMenuComponent, isStandalone: true, selector: "watt-menu", viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, isSignal: true }], exportAs: ["wattMenu"], ngImport: i0, template: `
64
- <mat-menu #menu="matMenu" class="watt-menu-panel">
65
- <ng-content />
66
- </mat-menu>
67
- `, isInline: true, styles: [":root{--watt-menu-padding-block: var(--watt-space-s);--watt-menu-padding-inline: var(--watt-space-m);--watt-menu-item-gap: var(--watt-space-s);--watt-menu-icon-space: calc(var(--watt-menu-icon-size) + var(--watt-menu-item-gap));--watt-menu-icon-size: var(--watt-icon-size-s)}.watt-menu-panel .mat-mdc-menu-content{padding-block:var(--watt-menu-padding-block)}.watt-menu-panel .mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{letter-spacing:0}.watt-menu-panel:not(:has(watt-icon)) .watt-menu-item-icon{display:none}\n"], dependencies: [{ kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
68
- }
69
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattMenuComponent, decorators: [{
70
- type: Component,
71
- args: [{ selector: 'watt-menu', template: `
72
- <mat-menu #menu="matMenu" class="watt-menu-panel">
73
- <ng-content />
74
- </mat-menu>
75
- `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatMenuModule], exportAs: 'wattMenu', styles: [":root{--watt-menu-padding-block: var(--watt-space-s);--watt-menu-padding-inline: var(--watt-space-m);--watt-menu-item-gap: var(--watt-space-s);--watt-menu-icon-space: calc(var(--watt-menu-icon-size) + var(--watt-menu-item-gap));--watt-menu-icon-size: var(--watt-icon-size-s)}.watt-menu-panel .mat-mdc-menu-content{padding-block:var(--watt-menu-padding-block)}.watt-menu-panel .mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{letter-spacing:0}.watt-menu-panel:not(:has(watt-icon)) .watt-menu-item-icon{display:none}\n"] }]
76
- }], propDecorators: { menu: [{ type: i0.ViewChild, args: ['menu', { isSignal: true }] }] } });
77
- //# sourceMappingURL=watt-menu.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-menu.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/menu/watt-menu.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EAAW,aAAa,EAAE,MAAM,wBAAwB,CAAC;;;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AA0CH,MAAM,OAAO,iBAAiB;IAC5B;;;OAGG;IACH,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAU,MAAM,CAAC,CAAC;wGALhC,iBAAiB;4FAAjB,iBAAiB,2MAvClB;;;;GAIT,6lBAgCS,aAAa;;4FAGZ,iBAAiB;kBAzC7B,SAAS;+BACE,WAAW,YACX;;;;GAIT,iBA8Bc,iBAAiB,CAAC,IAAI,mBACpB,uBAAuB,CAAC,MAAM,WACtC,CAAC,aAAa,CAAC,YACd,UAAU;kEAOe,MAAM","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy, viewChild } from '@angular/core';\nimport { MatMenu, MatMenuModule } from '@angular/material/menu';\n\n/**\n * Watt Menu Component\n *\n * A wrapper around Angular Material's menu component that provides consistent styling\n * and integration with the Watt design system.\n *\n * @example Basic usage\n * ```html\n * <watt-button [wattMenuTriggerFor]=\"menu\">\n * Open Menu\n * </watt-button>\n *\n * <watt-menu #menu>\n * <watt-menu-item>Option 1</watt-menu-item>\n * <watt-menu-item>Option 2</watt-menu-item>\n * </watt-menu>\n * ```\n *\n * @example With groups\n * ```html\n * <watt-menu #menu>\n * <watt-menu-group label=\"File\">\n * <watt-menu-item>New</watt-menu-item>\n * <watt-menu-item>Open</watt-menu-item>\n * </watt-menu-group>\n *\n * <watt-menu-group label=\"Edit\">\n * <watt-menu-item>Cut</watt-menu-item>\n * <watt-menu-item>Copy</watt-menu-item>\n * </watt-menu-group>\n * </watt-menu>\n * ```\n */\n@Component({\n selector: 'watt-menu',\n template: `\n <mat-menu #menu=\"matMenu\" class=\"watt-menu-panel\">\n <ng-content />\n </mat-menu>\n `,\n styles: [\n `\n :root {\n --watt-menu-padding-block: var(--watt-space-s);\n --watt-menu-padding-inline: var(--watt-space-m);\n --watt-menu-item-gap: var(--watt-space-s);\n --watt-menu-icon-space: calc(var(--watt-menu-icon-size) + var(--watt-menu-item-gap));\n --watt-menu-icon-size: var(--watt-icon-size-s);\n }\n\n /* Menu panel styles */\n .watt-menu-panel {\n /* Override Material menu padding to have consistent spacing */\n .mat-mdc-menu-content {\n padding-block: var(--watt-menu-padding-block);\n }\n\n /* Remove default letter-spacing */\n .mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text {\n letter-spacing: 0;\n }\n\n /* Hide icon space when no menu items have icons */\n &:not(:has(watt-icon)) .watt-menu-item-icon {\n display: none;\n }\n }\n `,\n ],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [MatMenuModule],\n exportAs: 'wattMenu',\n})\nexport class WattMenuComponent {\n /**\n * Reference to the underlying MatMenu instance.\n * @ignore\n */\n menu = viewChild.required<MatMenu>('menu');\n}\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-modal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-modal.js","sourceRoot":"","sources":["../../../../libs/watt/package/modal/energinet-watt-modal.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 { WattModalComponent, WattModalActionsComponent, WATT_MODAL } from './watt-modal.component';
20
- export { WattModalService, WattTypedModal } from './watt-modal.service';
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/modal/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACnG,OAAO,EAAE,gBAAgB,EAAmB,cAAc,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { WattModalComponent, WattModalActionsComponent, WATT_MODAL } from './watt-modal.component';\nexport { WattModalService, WattModalConfig, WattTypedModal } from './watt-modal.service';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-modal.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/modal/watt-modal.component.ts","../../../../libs/watt/package/modal/watt-modal.component.html"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,uBAAuB,EACvB,SAAS,EAET,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,MAAM,EACN,KAAK,EACL,MAAM,EACN,SAAS,EACT,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAY,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;;AAInE;;;;;;GAMG;AAgBH,MAAM,OAAO,kBAAkB;IACrB,YAAY,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACtC,SAAS,GAAG,MAAM,CAAwB,YAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAEtF,2CAA2C;IAC3C,KAAK,GAAG,KAAK,CAAC,EAAE,iDAAC,CAAC;IAElB,IAAI,GAAG,KAAK,CAAgB,QAAQ,gDAAC,CAAC;IAEtC,qDAAqD;IACrD,OAAO,GAAG,KAAK,CAAC,KAAK,mDAAC,CAAC;IAEvB,0EAA0E;IAC1E,cAAc,GAAG,KAA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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 TemplateRef,\n ViewEncapsulation,\n afterRenderEffect,\n booleanAttribute,\n inject,\n input,\n output,\n viewChild,\n signal,\n} from '@angular/core';\nimport { NgClass, NgTemplateOutlet } from '@angular/common';\nimport { MatDialogRef } from '@angular/material/dialog';\n\nimport { WattResizeObserverDirective } from '@energinet/watt/utils/resize-observer';\nimport { WattButtonComponent } from '@energinet/watt/button';\nimport { WattSpinnerComponent } from '@energinet/watt/spinner';\n\nimport { WattModalService } from './watt-modal.service';\nimport { WattIcon, WattIconComponent } from '@energinet/watt/icon';\n\nexport type WattModalSize = 'small' | 'medium' | 'large';\n\n/**\n * Component for representing a binary decision in the form of\n * a modal window that appears in front of the entire content.\n *\n * Usage:\n * `import { WATT_MODAL } from '@energinet/watt/modal';`\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n selector: 'watt-modal',\n styleUrls: ['./watt-modal.component.scss'],\n templateUrl: './watt-modal.component.html',\n imports: [\n NgClass,\n NgTemplateOutlet,\n WattResizeObserverDirective,\n WattButtonComponent,\n WattSpinnerComponent,\n WattIconComponent,\n ],\n})\nexport class WattModalComponent {\n private modalService = inject(WattModalService);\n protected dialogRef = inject<MatDialogRef<unknown>>(MatDialogRef, { optional: true });\n\n /** Title to stay fixed to top of modal. */\n title = input('');\n\n size = input<WattModalSize>('medium');\n\n /** Whether the modal should show a loading state. */\n loading = input(false);\n\n /** Whether the modal should show a loading text for the loading state. */\n loadingMessage = input('');\n\n /** Disable ESC, close button and backdrop click as methods of closing. */\n disableClose = input(false);\n\n /** Whether to show the close button */\n hideCloseButton = input(false);\n\n /** Disable ESC, backdrop click as methods of closing. */\n disableEscAndBackdropClose = input(false);\n\n /** The aria-label for the close button. */\n closeLabel = input('Close');\n\n /** Classes added to the modal panel */\n panelClass = input<string[]>([]);\n\n minHeight = input('147px');\n\n /** Whether the dialog should restore focus to the previously-focused element, after it's closed. */\n restoreFocus = input(true);\n\n /** Icon displayed next to the modal title. */\n titleIcon = input<WattIcon | undefined>(undefined);\n\n /** Whether the modal should open automatically when rendered. */\n autoOpen = input(false, { transform: booleanAttribute });\n\n closed = output<boolean>();\n\n modal = viewChild<TemplateRef<Element>>('modal');\n\n scrollable = signal(false);\n\n constructor() {\n afterRenderEffect(() => {\n if (this.autoOpen()) {\n this.open();\n }\n });\n }\n\n /**\n * Opens the modal. Subsequent calls are ignored while the modal is opened.\n * @ignore\n */\n open() {\n this.modalService.open({\n disableClose: this.disableEscAndBackdropClose() || this.disableClose(),\n templateRef: this.modal(),\n onClosed: (result: boolean) => this.closed.emit(result),\n minHeight: this.minHeight(),\n panelClass: this.panelClass(),\n restoreFocus: this.restoreFocus(),\n });\n }\n\n /**\n * Closes the modal with `true` for acceptance or `false` for rejection.\n * @ignore\n */\n close(result: boolean) {\n this.modalService.close(result); // inline modal\n this.dialogRef?.close(result); // injected modal\n }\n\n /**\n * Called when the modal content element changes size.\n * @ignore\n */\n onResize(event: ResizeObserverEntry) {\n this.scrollable.set(event.target.scrollHeight > event.target.clientHeight);\n }\n}\n\n/**\n * Component for projecting buttons (actions) to the bottom of the modal.\n */\n@Component({\n selector: 'watt-modal-actions',\n template: '<ng-content />',\n})\nexport class WattModalActionsComponent {}\n\nexport const WATT_MODAL = [WattModalComponent, WattModalActionsComponent];\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<ng-template #modal>\n <div class=\"watt-modal\" [ngClass]=\"'watt-modal--' + size()\">\n @if (!disableClose() && !hideCloseButton()) {\n <watt-button\n variant=\"icon\"\n icon=\"close\"\n class=\"watt-modal-close\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"close(false)\"\n />\n }\n\n @if (!loading()) {\n <ng-content select=\"h2\">\n @if (title()) {\n <h2 class=\"watt-modal-title\" [ngClass]=\"{ 'watt-modal-title-icon': titleIcon() }\">\n @if (titleIcon()) {\n <watt-icon [name]=\"titleIcon()\" size=\"l\" />\n }\n {{ title() }}\n </h2>\n }\n </ng-content>\n }\n\n <div\n wattResizeObserver\n class=\"watt-modal-content\"\n [class.watt-modal-scrollable]=\"scrollable()\"\n (resize)=\"onResize($event)\"\n >\n <ng-content />\n </div>\n <ng-content select=\"watt-modal-actions\" />\n\n @if (loading()) {\n <div class=\"watt-modal__spinner\">\n <div>\n <watt-spinner />\n <p>{{ loadingMessage() }}</p>\n </div>\n </div>\n }\n </div>\n</ng-template>\n\n@if (dialogRef) {\n <ng-template [ngTemplateOutlet]=\"modal\" />\n}\n"]}
@@ -1,74 +0,0 @@
1
- import { EventEmitter, Injectable, inject } from '@angular/core';
2
- import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog';
3
- import { map, take } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export class WattTypedModal {
6
- modalData = inject(MAT_DIALOG_DATA);
7
- dialogRef = inject(MatDialogRef);
8
- }
9
- export class WattModalService {
10
- dialog = inject(MatDialog);
11
- matDialogRef;
12
- /**
13
- * Opens the modal. Subsequent calls are ignored while the modal is opened.
14
- * @ignore
15
- */
16
- open = (config) => {
17
- const template = config.templateRef ?? config.component;
18
- if (!template)
19
- return;
20
- this.matDialogRef = this.openModal(template, config);
21
- this.matDialogRef
22
- .afterClosed()
23
- .pipe(map(Boolean), take(1))
24
- .subscribe((result) => {
25
- if (config?.onClosed instanceof EventEmitter) {
26
- config?.onClosed.emit(result);
27
- }
28
- else {
29
- config?.onClosed?.(result);
30
- }
31
- });
32
- if (config.minHeight)
33
- this.setMinHeight(config.minHeight);
34
- };
35
- /**
36
- * Opens the modal using the provided template and configuration.
37
- */
38
- openModal(template, config) {
39
- return this.dialog.open(template, {
40
- autoFocus: 'dialog',
41
- panelClass: [
42
- 'watt-modal-panel',
43
- ...(config.component ? ['watt-modal-panel--component'] : []),
44
- ...(config.panelClass ?? []),
45
- ],
46
- disableClose: config.disableClose ?? false,
47
- data: config.data,
48
- maxWidth: 'none',
49
- injector: config.injector,
50
- restoreFocus: config.restoreFocus === false ? false : true,
51
- });
52
- }
53
- /**
54
- * Closes the modal with `true` for acceptance or `false` for rejection.
55
- * @ignore
56
- */
57
- close(result) {
58
- this.matDialogRef?.close(result);
59
- }
60
- setMinHeight(minHeight) {
61
- setTimeout(() => {
62
- document
63
- ?.getElementById(this.matDialogRef?.id ?? '')
64
- ?.querySelector('.watt-modal')
65
- ?.setAttribute('style', `--watt-modal-min-height: ${minHeight}`);
66
- });
67
- }
68
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
69
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattModalService });
70
- }
71
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattModalService, decorators: [{
72
- type: Injectable
73
- }] });
74
- //# sourceMappingURL=watt-modal.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-modal.service.js","sourceRoot":"","sources":["../../../../libs/watt/package/modal/watt-modal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K,SAAS,CACf,QAAiE,EACjE,MAA0B;QAE1B,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE;YAChC,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE;gBACV,kBAAkB;gBAClB,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC5D,GAAG,CAAC,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;aAC7B;YACD,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,KAAK;YAC1C,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,QAAQ,EAAE,MAAM;YAChB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,YAAY,EAAE,MAAM,CAAC,YAAY,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;SAC3D,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,MAAe;QACnB,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAEO,YAAY,CAAC,SAAiB;QACpC,UAAU,CAAC,GAAG,EAAE;YACd,QAAQ;gBACN,EAAE,cAAc,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,CAAC;gBAC7C,EAAE,aAAa,CAAC,aAAa,CAAC;gBAC9B,EAAE,YAAY,CAAC,OAAO,EAAE,4BAA4B,SAAS,EAAE,CAAC,CAAC;QACrE,CAAC,CAAC,CAAC;IACL,CAAC;wGAlEU,gBAAgB;4GAAhB,gBAAgB;;4FAAhB,gBAAgB;kBAD5B,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 { ComponentType } from '@angular/cdk/portal';\nimport { EventEmitter, Injectable, Injector, TemplateRef, inject } from '@angular/core';\nimport { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog';\nimport { map, take } from 'rxjs';\n\nexport interface WattModalConfig<T> {\n templateRef?: TemplateRef<unknown>;\n component?: ComponentType<WattTypedModal<T>>;\n data?: T;\n disableClose?: boolean;\n onClosed?: EventEmitter<boolean> | ((result: boolean) => void);\n minHeight?: string;\n panelClass?: string[];\n injector?: Injector;\n restoreFocus?: boolean;\n}\n\nexport abstract class WattTypedModal<T = void> {\n protected modalData: T = inject(MAT_DIALOG_DATA);\n protected dialogRef: MatDialogRef<WattTypedModal<T>> = inject(MatDialogRef);\n}\n\n@Injectable()\nexport class WattModalService {\n private readonly dialog = inject(MatDialog);\n private matDialogRef: MatDialogRef<unknown> | undefined;\n\n /**\n * Opens the modal. Subsequent calls are ignored while the modal is opened.\n * @ignore\n */\n open = <T>(config: WattModalConfig<T>) => {\n const template = config.templateRef ?? config.component;\n\n if (!template) return;\n\n this.matDialogRef = this.openModal(template, config);\n\n this.matDialogRef\n .afterClosed()\n .pipe(map(Boolean), take(1))\n .subscribe((result) => {\n if (config?.onClosed instanceof EventEmitter) {\n config?.onClosed.emit(result);\n } else {\n config?.onClosed?.(result);\n }\n });\n\n if (config.minHeight) this.setMinHeight(config.minHeight);\n };\n\n /**\n * Opens the modal using the provided template and configuration.\n */\n private openModal<T>(\n template: TemplateRef<unknown> | ComponentType<WattTypedModal<T>>,\n config: WattModalConfig<T>\n ): MatDialogRef<unknown> {\n return this.dialog.open(template, {\n autoFocus: 'dialog',\n panelClass: [\n 'watt-modal-panel',\n ...(config.component ? ['watt-modal-panel--component'] : []),\n ...(config.panelClass ?? []),\n ],\n disableClose: config.disableClose ?? false,\n data: config.data,\n maxWidth: 'none',\n injector: config.injector,\n restoreFocus: config.restoreFocus === false ? false : true,\n });\n }\n\n /**\n * Closes the modal with `true` for acceptance or `false` for rejection.\n * @ignore\n */\n close(result: boolean) {\n this.matDialogRef?.close(result);\n }\n\n private setMinHeight(minHeight: string) {\n setTimeout(() => {\n document\n ?.getElementById(this.matDialogRef?.id ?? '')\n ?.querySelector('.watt-modal')\n ?.setAttribute('style', `--watt-modal-min-height: ${minHeight}`);\n });\n }\n}\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-paginator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-paginator.js","sourceRoot":"","sources":["../../../../libs/watt/package/paginator/energinet-watt-paginator.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 { WattPaginatorComponent } from './watt-paginator.component';
20
- export { WattPaginatorIntlService } from './watt-paginator-intl.service';
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/paginator/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,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 { WattPaginatorComponent } from './watt-paginator.component';\nexport { WattPaginatorIntlService } from './watt-paginator-intl.service';\n"]}
@@ -1,38 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- import { Injectable } from '@angular/core';
20
- import { Subject } from 'rxjs';
21
- import * as i0 from "@angular/core";
22
- export class WattPaginatorIntlService {
23
- changes = new Subject();
24
- description = 'Select page';
25
- itemsPerPage = 'Results per page';
26
- nextPage = 'Next page';
27
- previousPage = 'Previous page';
28
- firstPage = 'First page';
29
- lastPage = 'Last page';
30
- of = 'of';
31
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattPaginatorIntlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
32
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattPaginatorIntlService, providedIn: 'root' });
33
- }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattPaginatorIntlService, decorators: [{
35
- type: Injectable,
36
- args: [{ providedIn: 'root' }]
37
- }] });
38
- //# sourceMappingURL=watt-paginator-intl.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-paginator-intl.service.js","sourceRoot":"","sources":["../../../../libs/watt/package/paginator/watt-paginator-intl.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;AAG/B,MAAM,OAAO,wBAAwB;IAC1B,OAAO,GAAkB,IAAI,OAAO,EAAQ,CAAC;IACtD,WAAW,GAAG,aAAa,CAAC;IAC5B,YAAY,GAAG,kBAAkB,CAAC;IAClC,QAAQ,GAAG,WAAW,CAAC;IACvB,YAAY,GAAG,eAAe,CAAC;IAC/B,SAAS,GAAG,YAAY,CAAC;IACzB,QAAQ,GAAG,WAAW,CAAC;IACvB,EAAE,GAAG,IAAI,CAAC;wGARC,wBAAwB;4GAAxB,wBAAwB,cADX,MAAM;;4FACnB,wBAAwB;kBADpC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class WattPaginatorIntlService {\n readonly changes: Subject<void> = new Subject<void>();\n description = 'Select page';\n itemsPerPage = 'Results per page';\n nextPage = 'Next page';\n previousPage = 'Previous page';\n firstPage = 'First page';\n lastPage = 'Last page';\n of = 'of';\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-paginator.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/paginator/watt-paginator.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,MAAM,EAEN,iBAAiB,EACjB,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,GACT,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,GAEnB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;;;AAEtC;;;GAGG;AAoBH,MAAM,OAAO,sBAAsB;IACzB,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC;IACxC,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAEpD,MAAM,GAAG,KAAK,CAAC,CAAC,kDAAC,CAAC;IAClB,eAAe,GAAG,KAAK,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,2DAAC,CAAC;IAClD,QAAQ,GAAG,KAAK,CAAC,EAAE,oDAAC,CAAC;IACrB,SAAS,GAAG,KAAK,CAAC,CAAC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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 inject,\n OnInit,\n ViewEncapsulation,\n viewChild,\n input,\n effect,\n output,\n computed,\n} from '@angular/core';\nimport {\n MatPaginator,\n MatPaginatorIntl,\n MatPaginatorModule,\n PageEvent,\n} from '@angular/material/paginator';\n\nimport { IWattTableDataSource } from '@energinet/watt/table';\nimport { WattPaginatorIntlService } from './watt-paginator-intl.service';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { map, startWith } from 'rxjs';\n\n/**\n * Usage:\n * `import { WattPaginatorComponent } from '@energinet/watt/paginator';`\n */\n@Component({\n imports: [MatPaginatorModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n selector: 'watt-paginator',\n styleUrls: ['./watt-paginator.component.scss'],\n template: `\n <mat-paginator\n class=\"watt-paginator\"\n (page)=\"changed.emit($event)\"\n [length]=\"length()\"\n [pageSize]=\"pageSize()\"\n [pageSizeOptions]=\"pageSizeOptions()\"\n [pageIndex]=\"pageIndex()\"\n [showFirstLastButtons]=\"true\"\n [attr.aria-label]=\"description()\"\n />\n `,\n})\nexport class WattPaginatorComponent<T> implements OnInit {\n private intl = inject(WattPaginatorIntlService);\n private matPaginatorIntl = inject(MatPaginatorIntl);\n\n length = input(0);\n pageSizeOptions = input([50, 100, 150, 200, 250]);\n pageSize = input(50);\n pageIndex = input(0);\n for = input<IWattTableDataSource<T>>();\n changed = output<PageEvent>();\n instance = viewChild.required(MatPaginator);\n\n changes = toSignal(\n this.intl.changes.pipe(\n // Signals use referential equality to determine if a value has changed.\n // Therefore it is not possible to just map to the intl service directly\n // as the intl service relies on mutation for updating values.\n map(() => ({ ...this.intl })),\n startWith(this.intl)\n ),\n { requireSync: true }\n );\n\n description = computed(() => this.changes().description);\n\n updateDataSource = effect(() => {\n const dataSource = this.for();\n const instance = this.instance();\n if (!dataSource) return;\n dataSource.paginator = instance;\n });\n\n updateLabels = effect(() => {\n const changes = this.changes();\n this.matPaginatorIntl.itemsPerPageLabel = changes.itemsPerPage;\n this.matPaginatorIntl.nextPageLabel = changes.nextPage;\n this.matPaginatorIntl.previousPageLabel = changes.previousPage;\n this.matPaginatorIntl.firstPageLabel = changes.firstPage;\n this.matPaginatorIntl.lastPageLabel = changes.lastPage;\n this.matPaginatorIntl.changes.next();\n });\n\n ngOnInit() {\n this.matPaginatorIntl.getRangeLabel = this.getRangeLabel;\n }\n\n private getRangeLabel = (page: number, pageSize: number, length: number) => {\n if (length == 0 || pageSize == 0) {\n return `0 ${this.intl.of} ${length}`;\n }\n\n length = Math.max(length, 0);\n\n const startIndex = page * pageSize;\n\n // If the start index exceeds the list length, do not try and fix the end index to the end.\n const endIndex =\n startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;\n\n return `${startIndex + 1} – ${endIndex} ${this.intl.of} ${length}`;\n };\n}\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-phone-field.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-phone-field.js","sourceRoot":"","sources":["../../../../libs/watt/package/phone-field/energinet-watt-phone-field.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1,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 { WattPhoneFieldComponent } from './watt-phone-field.component';
20
- export { WattPhoneFieldIntlService } from './watt-phone-field-intl.service';
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/phone-field/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { WattPhoneFieldComponent } from './watt-phone-field.component';\nexport { WattPhoneFieldIntlService } from './watt-phone-field-intl.service';\n"]}
@@ -1,41 +0,0 @@
1
- //#region License
2
- /**
3
- * @license
4
- * Copyright 2020 Energinet DataHub A/S
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License2");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- //#endregion
19
- import { Injectable } from '@angular/core';
20
- import { Subject } from 'rxjs';
21
- import * as i0 from "@angular/core";
22
- export class WattPhoneFieldIntlService {
23
- changes = new Subject();
24
- invalidPhoneNumber = 'Invalid phone number';
25
- DK = 'Denmark';
26
- DE = 'Germany';
27
- FI = 'Finland';
28
- GB = 'United Kingdom';
29
- NO = 'Norway';
30
- SE = 'Sweden';
31
- PL = 'Poland';
32
- NL = 'Netherlands';
33
- CH = 'Switzerland';
34
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattPhoneFieldIntlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
35
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattPhoneFieldIntlService, providedIn: 'root' });
36
- }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattPhoneFieldIntlService, decorators: [{
38
- type: Injectable,
39
- args: [{ providedIn: 'root' }]
40
- }] });
41
- //# sourceMappingURL=watt-phone-field-intl.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-phone-field-intl.service.js","sourceRoot":"","sources":["../../../../libs/watt/package/phone-field/watt-phone-field-intl.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;AAG/B,MAAM,OAAO,yBAAyB;IAC3B,OAAO,GAAkB,IAAI,OAAO,EAAQ,CAAC;IACtD,kBAAkB,GAAG,sBAAsB,CAAC;IAC5C,EAAE,GAAG,SAAS,CAAC;IACf,EAAE,GAAG,SAAS,CAAC;IACf,EAAE,GAAG,SAAS,CAAC;IACf,EAAE,GAAG,gBAAgB,CAAC;IACtB,EAAE,GAAG,QAAQ,CAAC;IACd,EAAE,GAAG,QAAQ,CAAC;IACd,EAAE,GAAG,QAAQ,CAAC;IACd,EAAE,GAAG,aAAa,CAAC;IACnB,EAAE,GAAG,aAAa,CAAC;wGAXR,yBAAyB;4GAAzB,yBAAyB,cADZ,MAAM;;4FACnB,yBAAyB;kBADrC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class WattPhoneFieldIntlService {\n readonly changes: Subject<void> = new Subject<void>();\n invalidPhoneNumber = 'Invalid phone number';\n DK = 'Denmark';\n DE = 'Germany';\n FI = 'Finland';\n GB = 'United Kingdom';\n NO = 'Norway';\n SE = 'Sweden';\n PL = 'Poland';\n NL = 'Netherlands';\n CH = 'Switzerland';\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-phone-field.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/phone-field/watt-phone-field.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,SAAS,EAET,iBAAiB,EACjB,UAAU,EACV,MAAM,EACN,KAAK,EACL,MAAM,EACN,SAAS,EACT,SAAS,GAEV,MAAM,eAAe,C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P,mBAAmB;wBACnB,eAAe;wBACf,gBAAgB;wBAChB,kBAAkB;wBAClB,uBAAuB;wBACvB,iBAAiB;qBAClB,aACU;wBACT;4BACE,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,wBAAwB,CAAC;4BACtD,KAAK,EAAE,IAAI;yBACZ;qBACF,YACS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCT,QAEK;wBACJ,4BAA4B,EAAE,cAAc;qBAC7C;6QAmCmE,kBAAkB","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport {\n Component,\n OnInit,\n ViewEncapsulation,\n forwardRef,\n inject,\n input,\n signal,\n untracked,\n viewChild,\n ElementRef,\n} from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n FormControl,\n NG_VALUE_ACCESSOR,\n ReactiveFormsModule,\n ValidationErrors,\n ValidatorFn,\n} from '@angular/forms';\nimport { MaskitoDirective } from '@maskito/angular';\nimport { MatSelectChange, MatSelectModule } from '@angular/material/select';\nimport { MASKITO_DEFAULT_OPTIONS, maskitoTransform } from '@maskito/core';\nimport { maskitoPhoneOptionsGenerator } from '@maskito/phone';\nimport { isValidPhoneNumber, type CountryCode } from 'libphonenumber-js';\nimport phoneMetadata from 'libphonenumber-js/min/metadata';\n\nimport { WattFlagComponent } from '@energinet/watt/icon/flags';\nimport { WattFieldComponent, WattFieldErrorComponent } from '@energinet/watt/field';\n\nimport { WattPhoneFieldIntlService } from './watt-phone-field-intl.service';\n\ntype Contry = {\n countryIsoCode: CountryCode;\n phoneExtension: string;\n};\n\nfunction phoneValidator(countryCode: CountryCode): ValidatorFn {\n return (control: AbstractControl): ValidationErrors | null => {\n if (!control.value) return null;\n const valid = isValidPhoneNumber(control.value, countryCode);\n return valid ? null : { invalidPhone: true };\n };\n}\n\n@Component({\n selector: 'watt-phone-field',\n encapsulation: ViewEncapsulation.None,\n imports: [\n ReactiveFormsModule,\n MatSelectModule,\n MaskitoDirective,\n WattFieldComponent,\n WattFieldErrorComponent,\n WattFlagComponent,\n ],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => WattPhoneFieldComponent),\n multi: true,\n },\n ],\n template: `\n <watt-field [label]=\"label()\" [control]=\"formControl()\">\n <div class=\"watt-phone-field__prefix-container\">\n <mat-select\n panelWidth=\"\"\n panelClass=\"watt-phone-field__select\"\n [hideSingleSelectionIndicator]=\"true\"\n [value]=\"chosenCountry().countryIsoCode\"\n (selectionChange)=\"selectedContry($event)\"\n >\n <mat-select-trigger>\n <watt-flag [country]=\"chosenCountry().countryIsoCode\" />\n </mat-select-trigger>\n @for (contry of countries; track contry) {\n <mat-option value=\"{{ contry.countryIsoCode }}\">\n <watt-flag [country]=\"contry.countryIsoCode\" />\n <div>{{ getCountryName(contry.countryIsoCode) }}</div>\n </mat-option>\n }\n </mat-select>\n <input\n [attr.aria-label]=\"label()\"\n autocomplete=\"tel\"\n inputmode=\"tel\"\n [value]=\"value\"\n [formControl]=\"formControl()\"\n (blur)=\"onTouched()\"\n (input)=\"onChanged($event)\"\n [maskito]=\"mask\"\n #phoneNumberInput\n />\n </div>\n <ng-content ngProjectAs=\"watt-field-hint\" select=\"watt-field-hint\" />\n <ng-content ngProjectAs=\"watt-field-error\" select=\"watt-field-error\" />\n @if (formControl().hasError('invalidPhone')) {\n <watt-field-error> {{ intl.invalidPhoneNumber }} </watt-field-error>\n }\n </watt-field>\n `,\n styleUrl: './watt-phone-field.component.scss',\n host: {\n '[attr.watt-field-disabled]': 'isDisabled()',\n },\n})\nexport class WattPhoneFieldComponent implements ControlValueAccessor, OnInit {\n /** @ignore */\n readonly countries: Contry[] = [\n { countryIsoCode: 'DK', phoneExtension: '+45' },\n { countryIsoCode: 'SE', phoneExtension: '+46' },\n { countryIsoCode: 'NO', phoneExtension: '+47' },\n { countryIsoCode: 'GB', phoneExtension: '+44' },\n { countryIsoCode: 'DE', phoneExtension: '+49' },\n { countryIsoCode: 'FI', phoneExtension: '+358' },\n { countryIsoCode: 'PL', phoneExtension: '+48' },\n { countryIsoCode: 'NL', phoneExtension: '+31' },\n { countryIsoCode: 'CH', phoneExtension: '+41' },\n ];\n\n formControl = input.required<FormControl>();\n label = input<string>();\n\n /** @ignore */\n chosenCountry = signal<Contry>(this.countries[0]);\n\n /** @ignore */\n mask = MASKITO_DEFAULT_OPTIONS;\n\n /** @ignore */\n intl = inject(WattPhoneFieldIntlService);\n\n /** @ignore */\n isDisabled = signal(false);\n\n /** @ignore */\n value: string | null = null;\n\n /** @ignore */\n phoneNumberInput = viewChild.required<ElementRef<HTMLInputElement>>('phoneNumberInput');\n\n /** @ignore */\n ngOnInit(): void {\n this.setup();\n }\n\n /** @ignore */\n writeValue(value: string): void {\n if (value) {\n const country = this.countries.find((country) => value.startsWith(country.phoneExtension));\n if (country) {\n // Exclude Signal from being tracked\n // in case the parent component sets the value inside an `effect`.\n // Without this, updating the Signal internaly triggers the parrent `effect` to re-run.\n // Note: Revisit once v19 is released because the `effect` API has changed\n // significantly and this might not be necessary anymore\n untracked(() => {\n this.setCountry(country);\n });\n\n value = maskitoTransform(value, this.mask);\n }\n }\n\n this.value = value;\n }\n\n /** @ignore */\n onChange: (value: string) => void = () => {\n /* noop function */\n };\n\n /** @ignore */\n onTouched: () => void = () => {\n /* noop function */\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.set(isDisabled);\n }\n\n /** @ignore */\n selectedContry({ value }: MatSelectChange) {\n const country = this.countries.find((contry) => contry.countryIsoCode === value);\n if (!country) {\n throw new Error('Prefix not found');\n }\n this.setCountry(country);\n this.formControl().reset();\n setTimeout(() => {\n this.phoneNumberInput().nativeElement.focus();\n }, 100);\n }\n\n /** @ignore */\n setCountry(country: Contry) {\n this.chosenCountry.set(country);\n this.setup();\n }\n\n /** @ignore */\n onChanged(event: Event): void {\n const value = (event.target as HTMLSelectElement)?.value;\n this.onChange(value);\n }\n\n /** @ignore */\n private generatePhoneOptions(): void {\n this.mask = maskitoPhoneOptionsGenerator({\n countryIsoCode: this.chosenCountry().countryIsoCode,\n metadata: phoneMetadata,\n separator: ' ',\n });\n }\n\n /** @ignore */\n private setup(): void {\n this.generatePhoneOptions();\n this.setValidator();\n }\n\n /** @ignore */\n private setValidator() {\n const countryCode = this.chosenCountry().countryIsoCode;\n this.formControl().addValidators(phoneValidator(countryCode));\n }\n\n /** @ignore */\n getCountryName(countryIsoCode: CountryCode) {\n return this.intl[countryIsoCode as keyof WattPhoneFieldIntlService];\n }\n}\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-picker-__shared.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-picker-__shared.js","sourceRoot":"","sources":["../../../../../libs/watt/package/picker/__shared/energinet-watt-picker-__shared.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 { WattPlaceholderMaskComponent } from './placeholder-mask/watt-placeholder-mask.component';
20
- export { WattPickerBase } from './watt-picker-base';
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/watt/package/picker/__shared/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,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 { WattPlaceholderMaskComponent } from './placeholder-mask/watt-placeholder-mask.component';\nexport { WattPickerBase } from './watt-picker-base';\nexport { WattPickerValue } from './watt-picker-value';\n"]}
@@ -1,71 +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 { ChangeDetectorRef, Component, ViewEncapsulation, effect, inject, input, output, signal, untracked, } from '@angular/core';
20
- import { Maskito } from '@maskito/core';
21
- import * as i0 from "@angular/core";
22
- export class WattPlaceholderMaskComponent {
23
- cdr = inject(ChangeDetectorRef);
24
- primaryInputElement = input.required(...(ngDevMode ? [{ debugName: "primaryInputElement" }] : []));
25
- secondaryInputElement = input(...(ngDevMode ? [undefined, { debugName: "secondaryInputElement" }] : []));
26
- mask = input.required(...(ngDevMode ? [{ debugName: "mask" }] : []));
27
- placeholder = input.required(...(ngDevMode ? [{ debugName: "placeholder" }] : []));
28
- maskApplied = output();
29
- maskedInput = signal(null, ...(ngDevMode ? [{ debugName: "maskedInput" }] : []));
30
- primaryGhost = signal('', ...(ngDevMode ? [{ debugName: "primaryGhost" }] : []));
31
- primaryFiller = signal(null, ...(ngDevMode ? [{ debugName: "primaryFiller" }] : []));
32
- maskEffect = effect((onCleanup) => {
33
- const mask = this.mask();
34
- const placeholder = this.placeholder();
35
- const primaryMask = {
36
- ...mask,
37
- preprocessors: [
38
- ...(mask.preprocessors ?? []),
39
- (state) => {
40
- this.primaryGhost.set(state.elementState.value.slice(0, placeholder.length));
41
- this.primaryFiller.set(placeholder.slice(state.elementState.value.length));
42
- return state;
43
- },
44
- ],
45
- postprocessors: [
46
- (elementState) => {
47
- this.maskApplied.emit(elementState.value);
48
- return elementState;
49
- },
50
- ...(mask.postprocessors ?? []),
51
- ],
52
- };
53
- const maskedInput = new Maskito(this.primaryInputElement(), primaryMask);
54
- this.maskedInput.set(maskedInput);
55
- onCleanup(() => {
56
- maskedInput.destroy();
57
- this.maskedInput.set(null);
58
- });
59
- }, ...(ngDevMode ? [{ debugName: "maskEffect" }] : []));
60
- inputEffect = effect(() => {
61
- const primaryInputElement = this.primaryInputElement();
62
- untracked(() => primaryInputElement.dispatchEvent(new InputEvent('input')));
63
- }, ...(ngDevMode ? [{ debugName: "inputEffect" }] : []));
64
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattPlaceholderMaskComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
65
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: WattPlaceholderMaskComponent, isStandalone: true, selector: "watt-placeholder-mask", inputs: { primaryInputElement: { classPropertyName: "primaryInputElement", publicName: "primaryInputElement", isSignal: true, isRequired: true, transformFunction: null }, secondaryInputElement: { classPropertyName: "secondaryInputElement", publicName: "secondaryInputElement", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: true, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { maskApplied: "maskApplied" }, 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<span class=\"ghost\">{{ primaryGhost() }}</span>\n<span class=\"filler\">{{ primaryFiller() ?? placeholder() }}</span>\n", styles: ["watt-placeholder-mask{position:absolute;font-family:Droid Sans Mono,monospace;box-sizing:content-box;max-width:100%;line-height:20px;padding:1px 2px;letter-spacing:-.03em;pointer-events:none;display:block}.ghost{color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.filler{color:var(--watt-color-neutral-grey-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}\n"], encapsulation: i0.ViewEncapsulation.None });
66
- }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattPlaceholderMaskComponent, decorators: [{
68
- type: Component,
69
- args: [{ selector: 'watt-placeholder-mask', encapsulation: ViewEncapsulation.None, 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<span class=\"ghost\">{{ primaryGhost() }}</span>\n<span class=\"filler\">{{ primaryFiller() ?? placeholder() }}</span>\n", styles: ["watt-placeholder-mask{position:absolute;font-family:Droid Sans Mono,monospace;box-sizing:content-box;max-width:100%;line-height:20px;padding:1px 2px;letter-spacing:-.03em;pointer-events:none;display:block}.ghost{color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.filler{color:var(--watt-color-neutral-grey-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}\n"] }]
70
- }], propDecorators: { primaryInputElement: [{ type: i0.Input, args: [{ isSignal: true, alias: "primaryInputElement", required: true }] }], secondaryInputElement: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryInputElement", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: true }] }], maskApplied: [{ type: i0.Output, args: ["maskApplied"] }] } });
71
- //# sourceMappingURL=watt-placeholder-mask.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-placeholder-mask.component.js","sourceRoot":"","sources":["../../../../../../libs/watt/package/picker/__shared/placeholder-mask/watt-placeholder-mask.component.ts","../../../../../../libs/watt/package/picker/__shared/placeholder-mask/watt-placeholder-mask.component.html"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,iBAAiB,EACjB,MAAM,EACN,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAkB,MAAM,eAAe,CAAC;;AAQxD,MAAM,OAAO,4BAA4B;IACvC,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAChC,mBAAmB,GAAG,KAAK,CAAC,QAAQ,8DAAoB,CAAC;IACzD,qBAAqB,GAAG,KAAK,2EAAoB,CAAC;IAClD,IAAI,GAAG,KAAK,CAAC,QAAQ,+CAAkB,CAAC;IACxC,WAAW,GAAG,KAAK,CAAC,QAAQ,sDAAU,CAAC;IACvC,WAAW,GAAG,MAAM,EAAU,CAAC;IAC/B,WAAW,GAAG,MAAM,CAAiB,IAAI,uDAAC,CAAC;IAC3C,YAAY,GAAG,MAAM,CAAC,EAAE,wDAAC,CAAC;IAC1B,aAAa,GAAG,MAAM,CAAgB,IAAI,yDAAC,CAAC;IAE5C,UAAU,GAAG,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE;QAChC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QACzB,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QACvC,MAAM,WAAW,GAAmB;YAClC,GAAG,IAAI;YACP,aAAa,EAAE;gBACb,GAAG,CAAC,IAAI,CAAC,aAAa,IAAI,EAAE,CAAC;gBAC7B,CAAC,KAAK,EAAE,EAAE;oBACR,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;oBAC7E,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;oBAC3E,OAAO,KAAK,CAAC;gBACf,CAAC;aACF;YACD,cAAc,EAAE;gBACd,CAAC,YAAY,EAAE,EAAE;oBACf,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;oBAC1C,OAAO,YAAY,CAAC;gBACtB,CAAC;gBACD,GAAG,CAAC,IAAI,CAAC,cAAc,IAAI,EAAE,CAAC;aAC/B;SACF,CAAC;QAEF,MAAM,WAAW,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,WAAW,CAAC,CAAC;QACzE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAElC,SAAS,CAAC,GAAG,EAAE;YACb,WAAW,CAAC,OAAO,EAAE,CAAC;YACtB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;IACL,CAAC,sDAAC,CAAC;IAEH,WAAW,GAAG,MAAM,CAAC,GAAG,EAAE;QACxB,MAAM,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,EAAE,CAAC;QACvD,SAAS,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,aAAa,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC9E,CAAC,uDAAC,CAAC;wGA7CQ,4BAA4B;4FAA5B,4BAA4B,4sBCrCzC,otBAkBA;;4FDmBa,4BAA4B;kBANxC,SAAS;+BACE,uBAAuB,iBAGlB,iBAAiB,CAAC,IAAI","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 ChangeDetectorRef,\n Component,\n ViewEncapsulation,\n effect,\n inject,\n input,\n output,\n signal,\n untracked,\n} from '@angular/core';\nimport { Maskito, MaskitoOptions } from '@maskito/core';\n\n@Component({\n selector: 'watt-placeholder-mask',\n templateUrl: './watt-placeholder-mask.component.html',\n styleUrls: ['./watt-placeholder-mask.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class WattPlaceholderMaskComponent {\n cdr = inject(ChangeDetectorRef);\n primaryInputElement = input.required<HTMLInputElement>();\n secondaryInputElement = input<HTMLInputElement>();\n mask = input.required<MaskitoOptions>();\n placeholder = input.required<string>();\n maskApplied = output<string>();\n maskedInput = signal<Maskito | null>(null);\n primaryGhost = signal('');\n primaryFiller = signal<string | null>(null);\n\n maskEffect = effect((onCleanup) => {\n const mask = this.mask();\n const placeholder = this.placeholder();\n const primaryMask: MaskitoOptions = {\n ...mask,\n preprocessors: [\n ...(mask.preprocessors ?? []),\n (state) => {\n this.primaryGhost.set(state.elementState.value.slice(0, placeholder.length));\n this.primaryFiller.set(placeholder.slice(state.elementState.value.length));\n return state;\n },\n ],\n postprocessors: [\n (elementState) => {\n this.maskApplied.emit(elementState.value);\n return elementState;\n },\n ...(mask.postprocessors ?? []),\n ],\n };\n\n const maskedInput = new Maskito(this.primaryInputElement(), primaryMask);\n this.maskedInput.set(maskedInput);\n\n onCleanup(() => {\n maskedInput.destroy();\n this.maskedInput.set(null);\n });\n });\n\n inputEffect = effect(() => {\n const primaryInputElement = this.primaryInputElement();\n untracked(() => primaryInputElement.dispatchEvent(new InputEvent('input')));\n });\n}\n","<!--\n@license\nCopyright 2020 Energinet DataHub A/S\n\nLicensed under the Apache License, Version 2.0 (the \"License2\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n<span class=\"ghost\">{{ primaryGhost() }}</span>\n<span class=\"filler\">{{ primaryFiller() ?? placeholder() }}</span>\n"]}