@energinet/watt 4.2.14 → 4.2.15-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (842) hide show
  1. package/{esm2022/badge/watt-badge.component.js → fesm2022/energinet-watt-badge.mjs} +30 -4
  2. package/fesm2022/energinet-watt-badge.mjs.map +1 -0
  3. package/{esm2022/breadcrumbs/watt-breadcrumbs.component.js → fesm2022/energinet-watt-breadcrumbs.mjs} +36 -10
  4. package/fesm2022/energinet-watt-breadcrumbs.mjs.map +1 -0
  5. package/{esm2022/button/watt-button.component.js → fesm2022/energinet-watt-button.mjs} +35 -9
  6. package/fesm2022/energinet-watt-button.mjs.map +1 -0
  7. package/{esm2022/card/watt-card.component.js → fesm2022/energinet-watt-card.mjs} +63 -7
  8. package/fesm2022/energinet-watt-card.mjs.map +1 -0
  9. package/{esm2022/checkbox/watt-checkbox.component.js → fesm2022/energinet-watt-checkbox.mjs} +32 -6
  10. package/fesm2022/energinet-watt-checkbox.mjs.map +1 -0
  11. package/fesm2022/energinet-watt-chip.mjs +694 -0
  12. package/fesm2022/energinet-watt-chip.mjs.map +1 -0
  13. package/{esm2022/clipboard/watt-copy-to-clipboard.directive.js → fesm2022/energinet-watt-clipboard.mjs} +61 -7
  14. package/fesm2022/energinet-watt-clipboard.mjs.map +1 -0
  15. package/{esm2022/code/watt-code.component.js → fesm2022/energinet-watt-code.mjs} +83 -11
  16. package/fesm2022/energinet-watt-code.mjs.map +1 -0
  17. package/fesm2022/energinet-watt-core-breakpoints.mjs +97 -0
  18. package/fesm2022/energinet-watt-core-breakpoints.mjs.map +1 -0
  19. package/fesm2022/energinet-watt-core-color.mjs +124 -0
  20. package/fesm2022/energinet-watt-core-color.mjs.map +1 -0
  21. package/fesm2022/energinet-watt-core-date.mjs +256 -0
  22. package/fesm2022/energinet-watt-core-date.mjs.map +1 -0
  23. package/{esm2022/data/watt-data-table.component.js → fesm2022/energinet-watt-data.mjs} +136 -14
  24. package/fesm2022/energinet-watt-data.mjs.map +1 -0
  25. package/{esm2022/datetime-field/watt-datetime-field.component.js → fesm2022/energinet-watt-datetime-field.mjs} +40 -14
  26. package/fesm2022/energinet-watt-datetime-field.mjs.map +1 -0
  27. package/{esm2022/description-list/watt-description-list.component.js → fesm2022/energinet-watt-description-list.mjs} +77 -8
  28. package/fesm2022/energinet-watt-description-list.mjs.map +1 -0
  29. package/{esm2022/drawer/watt-drawer.component.js → fesm2022/energinet-watt-drawer.mjs} +150 -17
  30. package/fesm2022/energinet-watt-drawer.mjs.map +1 -0
  31. package/{esm2022/dropdown/watt-dropdown.component.js → fesm2022/energinet-watt-dropdown.mjs} +44 -18
  32. package/fesm2022/energinet-watt-dropdown.mjs.map +1 -0
  33. package/{esm2022/dropzone/watt-dropzone.js → fesm2022/energinet-watt-dropzone.mjs} +133 -14
  34. package/fesm2022/energinet-watt-dropzone.mjs.map +1 -0
  35. package/{esm2022/empty-state/icons/not-found.js → fesm2022/energinet-watt-empty-state.mjs} +301 -4
  36. package/fesm2022/energinet-watt-empty-state.mjs.map +1 -0
  37. package/{esm2022/expandable-card/watt-expandable-card.component.js → fesm2022/energinet-watt-expandable-card.mjs} +40 -9
  38. package/fesm2022/energinet-watt-expandable-card.mjs.map +1 -0
  39. package/{esm2022/field/watt-field.component.js → fesm2022/energinet-watt-field.mjs} +149 -14
  40. package/fesm2022/energinet-watt-field.mjs.map +1 -0
  41. package/{esm2022/file-field/watt-file-field.component.js → fesm2022/energinet-watt-file-field.mjs} +32 -6
  42. package/fesm2022/energinet-watt-file-field.mjs.map +1 -0
  43. package/fesm2022/energinet-watt-icon-flags.mjs +547 -0
  44. package/fesm2022/energinet-watt-icon-flags.mjs.map +1 -0
  45. package/{esm2022/icon/icon.component.js → fesm2022/energinet-watt-icon.mjs} +133 -6
  46. package/fesm2022/energinet-watt-icon.mjs.map +1 -0
  47. package/fesm2022/energinet-watt-menu.mjs +282 -0
  48. package/fesm2022/energinet-watt-menu.mjs.map +1 -0
  49. package/{esm2022/modal/watt-modal.component.js → fesm2022/energinet-watt-modal.mjs} +109 -13
  50. package/fesm2022/energinet-watt-modal.mjs.map +1 -0
  51. package/{esm2022/paginator/watt-paginator.component.js → fesm2022/energinet-watt-paginator.mjs} +71 -11
  52. package/fesm2022/energinet-watt-paginator.mjs.map +1 -0
  53. package/{esm2022/phone-field/watt-phone-field.component.js → fesm2022/energinet-watt-phone-field.mjs} +80 -16
  54. package/fesm2022/energinet-watt-phone-field.mjs.map +1 -0
  55. package/fesm2022/energinet-watt-picker-__shared.mjs +292 -0
  56. package/fesm2022/energinet-watt-picker-__shared.mjs.map +1 -0
  57. package/{esm2022/picker/datepicker/watt-datepicker.component.js → fesm2022/energinet-watt-picker-datepicker.mjs} +71 -16
  58. package/fesm2022/energinet-watt-picker-datepicker.mjs.map +1 -0
  59. package/{esm2022/picker/timepicker/watt-timepicker.component.js → fesm2022/energinet-watt-picker-timepicker.mjs} +126 -20
  60. package/fesm2022/energinet-watt-picker-timepicker.mjs.map +1 -0
  61. package/{esm2022/progress-tracker/watt-progress-tracker-step.component.js → fesm2022/energinet-watt-progress-tracker.mjs} +64 -6
  62. package/fesm2022/energinet-watt-progress-tracker.mjs.map +1 -0
  63. package/{esm2022/query-params/watt-query-params.directive.js → fesm2022/energinet-watt-query-params.mjs} +32 -6
  64. package/fesm2022/energinet-watt-query-params.mjs.map +1 -0
  65. package/{esm2022/radio/watt-radio.component.js → fesm2022/energinet-watt-radio.mjs} +146 -5
  66. package/fesm2022/energinet-watt-radio.mjs.map +1 -0
  67. package/{esm2022/search/watt-search.component.js → fesm2022/energinet-watt-search.mjs} +33 -7
  68. package/fesm2022/energinet-watt-search.mjs.map +1 -0
  69. package/{esm2022/segmented-buttons/watt-segmented-buttons.component.js → fesm2022/energinet-watt-segmented-buttons.mjs} +77 -11
  70. package/fesm2022/energinet-watt-segmented-buttons.mjs.map +1 -0
  71. package/fesm2022/energinet-watt-shell.mjs +303 -0
  72. package/fesm2022/energinet-watt-shell.mjs.map +1 -0
  73. package/{esm2022/slide-toggle/watt-slide-toggle.component.js → fesm2022/energinet-watt-slide-toggle.mjs} +34 -8
  74. package/fesm2022/energinet-watt-slide-toggle.mjs.map +1 -0
  75. package/{esm2022/slider/watt-slider.component.js → fesm2022/energinet-watt-slider.mjs} +33 -7
  76. package/fesm2022/energinet-watt-slider.mjs.map +1 -0
  77. package/{esm2022/spinner/watt-spinner.component.js → fesm2022/energinet-watt-spinner.mjs} +30 -4
  78. package/fesm2022/energinet-watt-spinner.mjs.map +1 -0
  79. package/{esm2022/stepper/watt-stepper.component.js → fesm2022/energinet-watt-stepper.mjs} +85 -15
  80. package/fesm2022/energinet-watt-stepper.mjs.map +1 -0
  81. package/{esm2022/table/watt-table.component.js → fesm2022/energinet-watt-table.mjs} +136 -24
  82. package/fesm2022/energinet-watt-table.mjs.map +1 -0
  83. package/fesm2022/energinet-watt-tabs.mjs +254 -0
  84. package/fesm2022/energinet-watt-tabs.mjs.map +1 -0
  85. package/{esm2022/text-field/watt-text-field.component.js → fesm2022/energinet-watt-text-field.mjs} +36 -10
  86. package/fesm2022/energinet-watt-text-field.mjs.map +1 -0
  87. package/{esm2022/textarea-field/watt-textarea-field.component.js → fesm2022/energinet-watt-textarea-field.mjs} +32 -6
  88. package/fesm2022/energinet-watt-textarea-field.mjs.map +1 -0
  89. package/{esm2022/toast/watt-toast.component.js → fesm2022/energinet-watt-toast.mjs} +82 -9
  90. package/fesm2022/energinet-watt-toast.mjs.map +1 -0
  91. package/{esm2022/tooltip/watt-tooltip.component.js → fesm2022/energinet-watt-tooltip.mjs} +98 -8
  92. package/fesm2022/energinet-watt-tooltip.mjs.map +1 -0
  93. package/{esm2022/utils/css/css-custom-properties.service.js → fesm2022/energinet-watt-utils-css.mjs} +30 -4
  94. package/fesm2022/energinet-watt-utils-css.mjs.map +1 -0
  95. package/{esm2022/utils/intersection-observer/watt-intersection-observer.service.js → fesm2022/energinet-watt-utils-intersection-observer.mjs} +31 -5
  96. package/fesm2022/energinet-watt-utils-intersection-observer.mjs.map +1 -0
  97. package/fesm2022/energinet-watt-utils-resize-observer.mjs +143 -0
  98. package/fesm2022/energinet-watt-utils-resize-observer.mjs.map +1 -0
  99. package/{esm2022/validation-message/watt-validation-message.component.js → fesm2022/energinet-watt-validation-message.mjs} +31 -5
  100. package/fesm2022/energinet-watt-validation-message.mjs.map +1 -0
  101. package/{esm2022/validators/watt-range.validators.js → fesm2022/energinet-watt-validators.mjs} +28 -2
  102. package/fesm2022/energinet-watt-validators.mjs.map +1 -0
  103. package/fesm2022/energinet-watt-vater.mjs +248 -0
  104. package/fesm2022/energinet-watt-vater.mjs.map +1 -0
  105. package/{esm2022/year-field/watt-year-field.component.js → fesm2022/energinet-watt-year-field.mjs} +39 -13
  106. package/fesm2022/energinet-watt-year-field.mjs.map +1 -0
  107. package/{esm2022/yearmonth-field/watt-yearmonth-field.component.js → fesm2022/energinet-watt-yearmonth-field.mjs} +79 -13
  108. package/fesm2022/energinet-watt-yearmonth-field.mjs.map +1 -0
  109. package/{esm2022/index.js → fesm2022/energinet-watt.mjs} +8 -2
  110. package/fesm2022/energinet-watt.mjs.map +1 -0
  111. package/package.json +89 -89
  112. package/types/energinet-watt-badge.d.ts +19 -0
  113. package/{breadcrumbs/watt-breadcrumbs.component.d.ts → types/energinet-watt-breadcrumbs.d.ts} +10 -7
  114. package/types/energinet-watt-button.d.ts +23 -0
  115. package/types/energinet-watt-card.d.ts +24 -0
  116. package/types/energinet-watt-checkbox.d.ts +20 -0
  117. package/types/energinet-watt-chip.d.ts +104 -0
  118. package/types/energinet-watt-clipboard.d.ts +22 -0
  119. package/types/energinet-watt-code.d.ts +56 -0
  120. package/{core/breakpoints/breakpoints.d.ts → types/energinet-watt-core-breakpoints.d.ts} +27 -2
  121. package/{core/color/colors.d.ts → types/energinet-watt-core-color.d.ts} +15 -2
  122. package/types/energinet-watt-core-date.d.ts +154 -0
  123. package/types/energinet-watt-data.d.ts +61 -0
  124. package/types/energinet-watt-datetime-field.d.ts +44 -0
  125. package/types/energinet-watt-description-list.d.ts +32 -0
  126. package/{drawer/watt-drawer.component.d.ts → types/energinet-watt-drawer.d.ts} +35 -28
  127. package/types/energinet-watt-dropdown.d.ts +167 -0
  128. package/types/energinet-watt-dropzone.d.ts +67 -0
  129. package/types/energinet-watt-empty-state.d.ts +39 -0
  130. package/{expandable-card/watt-expandable-card.component.d.ts → types/energinet-watt-expandable-card.d.ts} +31 -9
  131. package/types/energinet-watt-field.d.ts +62 -0
  132. package/types/energinet-watt-file-field.d.ts +13 -0
  133. package/types/energinet-watt-icon-flags.d.ts +61 -0
  134. package/types/energinet-watt-icon.d.ts +119 -0
  135. package/types/energinet-watt-menu.d.ts +119 -0
  136. package/types/energinet-watt-modal.d.ts +127 -0
  137. package/types/energinet-watt-paginator.d.ts +54 -0
  138. package/types/energinet-watt-phone-field.d.ts +79 -0
  139. package/{picker/__shared/watt-picker-base.d.ts → types/energinet-watt-picker-__shared.d.ts} +34 -11
  140. package/types/energinet-watt-picker-datepicker.d.ts +90 -0
  141. package/{picker/timepicker/watt-timepicker.component.d.ts → types/energinet-watt-picker-timepicker.d.ts} +16 -12
  142. package/types/energinet-watt-progress-tracker.d.ts +37 -0
  143. package/{query-params/watt-query-params.directive.d.ts → types/energinet-watt-query-params.d.ts} +5 -2
  144. package/types/energinet-watt-radio.d.ts +71 -0
  145. package/types/energinet-watt-search.d.ts +47 -0
  146. package/types/energinet-watt-segmented-buttons.d.ts +48 -0
  147. package/types/energinet-watt-shell.d.ts +47 -0
  148. package/types/energinet-watt-slide-toggle.d.ts +20 -0
  149. package/types/energinet-watt-slider.d.ts +35 -0
  150. package/types/energinet-watt-spinner.d.ts +18 -0
  151. package/types/energinet-watt-stepper.d.ts +59 -0
  152. package/{table/watt-table.component.d.ts → types/energinet-watt-table.d.ts} +72 -49
  153. package/types/energinet-watt-tabs.d.ts +68 -0
  154. package/types/energinet-watt-text-field.d.ts +67 -0
  155. package/types/energinet-watt-textarea-field.d.ts +31 -0
  156. package/{toast/watt-toast.component.d.ts → types/energinet-watt-toast.d.ts} +19 -5
  157. package/types/energinet-watt-tooltip.d.ts +20 -0
  158. package/{utils/css/css-custom-properties.service.d.ts → types/energinet-watt-utils-css.d.ts} +5 -2
  159. package/{utils/intersection-observer/watt-intersection-observer.service.d.ts → types/energinet-watt-utils-intersection-observer.d.ts} +7 -3
  160. package/{utils/resize-observer/watt-resize-observer.directive.d.ts → types/energinet-watt-utils-resize-observer.d.ts} +30 -3
  161. package/types/energinet-watt-validation-message.d.ts +38 -0
  162. package/{validators/watt-range.validators.d.ts → types/energinet-watt-validators.d.ts} +6 -2
  163. package/types/energinet-watt-vater.d.ts +87 -0
  164. package/types/energinet-watt-year-field.d.ts +60 -0
  165. package/types/energinet-watt-yearmonth-field.d.ts +64 -0
  166. package/{core/color/index.d.ts → types/energinet-watt.d.ts} +3 -2
  167. package/badge/energinet-watt-badge.d.ts +0 -5
  168. package/badge/index.d.ts +0 -17
  169. package/badge/watt-badge.component.d.ts +0 -15
  170. package/breadcrumbs/energinet-watt-breadcrumbs.d.ts +0 -5
  171. package/breadcrumbs/index.d.ts +0 -17
  172. package/button/energinet-watt-button.d.ts +0 -5
  173. package/button/index.d.ts +0 -17
  174. package/button/watt-button.component.d.ts +0 -22
  175. package/card/energinet-watt-card.d.ts +0 -5
  176. package/card/index.d.ts +0 -18
  177. package/card/watt-card-title.component.d.ts +0 -6
  178. package/card/watt-card.component.d.ts +0 -15
  179. package/checkbox/energinet-watt-checkbox.d.ts +0 -5
  180. package/checkbox/index.d.ts +0 -17
  181. package/checkbox/watt-checkbox.component.d.ts +0 -17
  182. package/chip/energinet-watt-chip.d.ts +0 -5
  183. package/chip/index.d.ts +0 -23
  184. package/chip/watt-action-chip.component.d.ts +0 -8
  185. package/chip/watt-chip.component.d.ts +0 -8
  186. package/chip/watt-chip.directive.d.ts +0 -16
  187. package/chip/watt-date-chip.component.d.ts +0 -12
  188. package/chip/watt-date-range-chip.component.d.ts +0 -50
  189. package/chip/watt-filter-chip.component.d.ts +0 -13
  190. package/chip/watt-menu-chip.component.d.ts +0 -13
  191. package/clipboard/energinet-watt-clipboard.d.ts +0 -5
  192. package/clipboard/index.d.ts +0 -18
  193. package/clipboard/watt-clipboard-intl.service.d.ts +0 -7
  194. package/clipboard/watt-copy-to-clipboard.directive.d.ts +0 -12
  195. package/code/energinet-watt-code.d.ts +0 -5
  196. package/code/index.d.ts +0 -19
  197. package/code/watt-code-intl.service.d.ts +0 -6
  198. package/code/watt-code.component.d.ts +0 -45
  199. package/code/watt-code.worker.token.d.ts +0 -18
  200. package/core/breakpoints/breakpoints-observer.d.ts +0 -21
  201. package/core/breakpoints/energinet-watt-core-breakpoints.d.ts +0 -5
  202. package/core/breakpoints/index.d.ts +0 -18
  203. package/core/color/color-helper.service.d.ts +0 -10
  204. package/core/color/energinet-watt-core-color.d.ts +0 -5
  205. package/core/date/dayjs.d.ts +0 -22
  206. package/core/date/energinet-watt-core-date.d.ts +0 -5
  207. package/core/date/index.d.ts +0 -23
  208. package/core/date/watt-danish-datetime.providers.d.ts +0 -1
  209. package/core/date/watt-date-adapter.d.ts +0 -31
  210. package/core/date/watt-date-range.d.ts +0 -25
  211. package/core/date/watt-date.pipe.d.ts +0 -28
  212. package/core/date/watt-format-date.d.ts +0 -11
  213. package/core/date/watt-locale.service.d.ts +0 -11
  214. package/data/energinet-watt-data.d.ts +0 -5
  215. package/data/index.d.ts +0 -20
  216. package/data/watt-data-actions.component.d.ts +0 -5
  217. package/data/watt-data-filters.component.d.ts +0 -5
  218. package/data/watt-data-intl.service.d.ts +0 -15
  219. package/data/watt-data-table.component.d.ts +0 -34
  220. package/datetime-field/energinet-watt-datetime-field.d.ts +0 -5
  221. package/datetime-field/index.d.ts +0 -17
  222. package/datetime-field/watt-datetime-field.component.d.ts +0 -39
  223. package/description-list/energinet-watt-description-list.d.ts +0 -5
  224. package/description-list/index.d.ts +0 -17
  225. package/description-list/watt-description-list-item.component.d.ts +0 -27
  226. package/description-list/watt-description-list.component.d.ts +0 -20
  227. package/drawer/energinet-watt-drawer.d.ts +0 -5
  228. package/drawer/index.d.ts +0 -21
  229. package/drawer/watt-drawer-actions.component.d.ts +0 -5
  230. package/drawer/watt-drawer-content.component.d.ts +0 -5
  231. package/drawer/watt-drawer-heading.component.d.ts +0 -5
  232. package/drawer/watt-drawer-topbar.component.d.ts +0 -5
  233. package/dropdown/energinet-watt-dropdown.d.ts +0 -5
  234. package/dropdown/index.d.ts +0 -19
  235. package/dropdown/watt-dropdown-option.d.ts +0 -28
  236. package/dropdown/watt-dropdown-value.d.ts +0 -17
  237. package/dropdown/watt-dropdown.component.d.ts +0 -133
  238. package/dropzone/energinet-watt-dropzone.d.ts +0 -5
  239. package/dropzone/index.d.ts +0 -19
  240. package/dropzone/watt-dropzone-intl.d.ts +0 -11
  241. package/dropzone/watt-dropzone-validators.d.ts +0 -27
  242. package/dropzone/watt-dropzone.d.ts +0 -31
  243. package/empty-state/energinet-watt-empty-state.d.ts +0 -5
  244. package/empty-state/icons/explore.d.ts +0 -5
  245. package/empty-state/icons/no-results.d.ts +0 -5
  246. package/empty-state/icons/not-found.d.ts +0 -5
  247. package/empty-state/icons/power.d.ts +0 -5
  248. package/empty-state/index.d.ts +0 -21
  249. package/empty-state/watt-empty-state.component.d.ts +0 -16
  250. package/energinet-watt.d.ts +0 -5
  251. package/esm2022/badge/energinet-watt-badge.js +0 -5
  252. package/esm2022/badge/energinet-watt-badge.js.map +0 -1
  253. package/esm2022/badge/index.js +0 -20
  254. package/esm2022/badge/index.js.map +0 -1
  255. package/esm2022/badge/watt-badge.component.js.map +0 -1
  256. package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js +0 -5
  257. package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js.map +0 -1
  258. package/esm2022/breadcrumbs/index.js +0 -20
  259. package/esm2022/breadcrumbs/index.js.map +0 -1
  260. package/esm2022/breadcrumbs/watt-breadcrumbs.component.js.map +0 -1
  261. package/esm2022/button/energinet-watt-button.js +0 -5
  262. package/esm2022/button/energinet-watt-button.js.map +0 -1
  263. package/esm2022/button/index.js +0 -20
  264. package/esm2022/button/index.js.map +0 -1
  265. package/esm2022/button/watt-button.component.js.map +0 -1
  266. package/esm2022/card/energinet-watt-card.js +0 -5
  267. package/esm2022/card/energinet-watt-card.js.map +0 -1
  268. package/esm2022/card/index.js +0 -21
  269. package/esm2022/card/index.js.map +0 -1
  270. package/esm2022/card/watt-card-title.component.js +0 -33
  271. package/esm2022/card/watt-card-title.component.js.map +0 -1
  272. package/esm2022/card/watt-card.component.js.map +0 -1
  273. package/esm2022/checkbox/energinet-watt-checkbox.js +0 -5
  274. package/esm2022/checkbox/energinet-watt-checkbox.js.map +0 -1
  275. package/esm2022/checkbox/index.js +0 -20
  276. package/esm2022/checkbox/index.js.map +0 -1
  277. package/esm2022/checkbox/watt-checkbox.component.js.map +0 -1
  278. package/esm2022/chip/energinet-watt-chip.js +0 -5
  279. package/esm2022/chip/energinet-watt-chip.js.map +0 -1
  280. package/esm2022/chip/index.js +0 -26
  281. package/esm2022/chip/index.js.map +0 -1
  282. package/esm2022/chip/watt-action-chip.component.js +0 -68
  283. package/esm2022/chip/watt-action-chip.component.js.map +0 -1
  284. package/esm2022/chip/watt-chip.component.js +0 -55
  285. package/esm2022/chip/watt-chip.component.js.map +0 -1
  286. package/esm2022/chip/watt-chip.directive.js +0 -92
  287. package/esm2022/chip/watt-chip.directive.js.map +0 -1
  288. package/esm2022/chip/watt-date-chip.component.js +0 -104
  289. package/esm2022/chip/watt-date-chip.component.js.map +0 -1
  290. package/esm2022/chip/watt-date-range-chip.component.js +0 -213
  291. package/esm2022/chip/watt-date-range-chip.component.js.map +0 -1
  292. package/esm2022/chip/watt-filter-chip.component.js +0 -82
  293. package/esm2022/chip/watt-filter-chip.component.js.map +0 -1
  294. package/esm2022/chip/watt-menu-chip.component.js +0 -80
  295. package/esm2022/chip/watt-menu-chip.component.js.map +0 -1
  296. package/esm2022/clipboard/energinet-watt-clipboard.js +0 -5
  297. package/esm2022/clipboard/energinet-watt-clipboard.js.map +0 -1
  298. package/esm2022/clipboard/index.js +0 -21
  299. package/esm2022/clipboard/index.js.map +0 -1
  300. package/esm2022/clipboard/watt-clipboard-intl.service.js +0 -31
  301. package/esm2022/clipboard/watt-clipboard-intl.service.js.map +0 -1
  302. package/esm2022/clipboard/watt-copy-to-clipboard.directive.js.map +0 -1
  303. package/esm2022/code/energinet-watt-code.js +0 -5
  304. package/esm2022/code/energinet-watt-code.js.map +0 -1
  305. package/esm2022/code/index.js +0 -22
  306. package/esm2022/code/index.js.map +0 -1
  307. package/esm2022/code/watt-code-intl.service.js +0 -30
  308. package/esm2022/code/watt-code-intl.service.js.map +0 -1
  309. package/esm2022/code/watt-code.component.js.map +0 -1
  310. package/esm2022/code/watt-code.worker.token.js +0 -21
  311. package/esm2022/code/watt-code.worker.token.js.map +0 -1
  312. package/esm2022/core/breakpoints/breakpoints-observer.js +0 -41
  313. package/esm2022/core/breakpoints/breakpoints-observer.js.map +0 -1
  314. package/esm2022/core/breakpoints/breakpoints.js +0 -31
  315. package/esm2022/core/breakpoints/breakpoints.js.map +0 -1
  316. package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js +0 -5
  317. package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js.map +0 -1
  318. package/esm2022/core/breakpoints/index.js +0 -21
  319. package/esm2022/core/breakpoints/index.js.map +0 -1
  320. package/esm2022/core/color/color-helper.service.js +0 -41
  321. package/esm2022/core/color/color-helper.service.js.map +0 -1
  322. package/esm2022/core/color/colors.js +0 -58
  323. package/esm2022/core/color/colors.js.map +0 -1
  324. package/esm2022/core/color/energinet-watt-core-color.js +0 -5
  325. package/esm2022/core/color/energinet-watt-core-color.js.map +0 -1
  326. package/esm2022/core/color/index.js +0 -21
  327. package/esm2022/core/color/index.js.map +0 -1
  328. package/esm2022/core/date/dayjs.js +0 -34
  329. package/esm2022/core/date/dayjs.js.map +0 -1
  330. package/esm2022/core/date/energinet-watt-core-date.js +0 -5
  331. package/esm2022/core/date/energinet-watt-core-date.js.map +0 -1
  332. package/esm2022/core/date/index.js +0 -25
  333. package/esm2022/core/date/index.js.map +0 -1
  334. package/esm2022/core/date/watt-danish-datetime.providers.js +0 -31
  335. package/esm2022/core/date/watt-danish-datetime.providers.js.map +0 -1
  336. package/esm2022/core/date/watt-date-adapter.js +0 -43
  337. package/esm2022/core/date/watt-date-adapter.js.map +0 -1
  338. package/esm2022/core/date/watt-date-range.js +0 -2
  339. package/esm2022/core/date/watt-date-range.js.map +0 -1
  340. package/esm2022/core/date/watt-date.pipe.js +0 -38
  341. package/esm2022/core/date/watt-date.pipe.js.map +0 -1
  342. package/esm2022/core/date/watt-format-date.js +0 -50
  343. package/esm2022/core/date/watt-format-date.js.map +0 -1
  344. package/esm2022/core/date/watt-locale.service.js +0 -48
  345. package/esm2022/core/date/watt-locale.service.js.map +0 -1
  346. package/esm2022/data/energinet-watt-data.js +0 -5
  347. package/esm2022/data/energinet-watt-data.js.map +0 -1
  348. package/esm2022/data/index.js +0 -23
  349. package/esm2022/data/index.js.map +0 -1
  350. package/esm2022/data/watt-data-actions.component.js +0 -32
  351. package/esm2022/data/watt-data-actions.component.js.map +0 -1
  352. package/esm2022/data/watt-data-filters.component.js +0 -32
  353. package/esm2022/data/watt-data-filters.component.js.map +0 -1
  354. package/esm2022/data/watt-data-intl.service.js +0 -39
  355. package/esm2022/data/watt-data-intl.service.js.map +0 -1
  356. package/esm2022/data/watt-data-table.component.js.map +0 -1
  357. package/esm2022/datetime-field/energinet-watt-datetime-field.js +0 -5
  358. package/esm2022/datetime-field/energinet-watt-datetime-field.js.map +0 -1
  359. package/esm2022/datetime-field/index.js +0 -20
  360. package/esm2022/datetime-field/index.js.map +0 -1
  361. package/esm2022/datetime-field/watt-datetime-field.component.js.map +0 -1
  362. package/esm2022/description-list/energinet-watt-description-list.js +0 -5
  363. package/esm2022/description-list/energinet-watt-description-list.js.map +0 -1
  364. package/esm2022/description-list/index.js +0 -20
  365. package/esm2022/description-list/index.js.map +0 -1
  366. package/esm2022/description-list/watt-description-list-item.component.js +0 -49
  367. package/esm2022/description-list/watt-description-list-item.component.js.map +0 -1
  368. package/esm2022/description-list/watt-description-list.component.js.map +0 -1
  369. package/esm2022/drawer/energinet-watt-drawer.js +0 -5
  370. package/esm2022/drawer/energinet-watt-drawer.js.map +0 -1
  371. package/esm2022/drawer/index.js +0 -24
  372. package/esm2022/drawer/index.js.map +0 -1
  373. package/esm2022/drawer/watt-drawer-actions.component.js +0 -29
  374. package/esm2022/drawer/watt-drawer-actions.component.js.map +0 -1
  375. package/esm2022/drawer/watt-drawer-content.component.js +0 -29
  376. package/esm2022/drawer/watt-drawer-content.component.js.map +0 -1
  377. package/esm2022/drawer/watt-drawer-heading.component.js +0 -29
  378. package/esm2022/drawer/watt-drawer-heading.component.js.map +0 -1
  379. package/esm2022/drawer/watt-drawer-topbar.component.js +0 -32
  380. package/esm2022/drawer/watt-drawer-topbar.component.js.map +0 -1
  381. package/esm2022/drawer/watt-drawer.component.js.map +0 -1
  382. package/esm2022/dropdown/energinet-watt-dropdown.js +0 -5
  383. package/esm2022/dropdown/energinet-watt-dropdown.js.map +0 -1
  384. package/esm2022/dropdown/index.js +0 -20
  385. package/esm2022/dropdown/index.js.map +0 -1
  386. package/esm2022/dropdown/watt-dropdown-option.js +0 -2
  387. package/esm2022/dropdown/watt-dropdown-option.js.map +0 -1
  388. package/esm2022/dropdown/watt-dropdown-value.js +0 -2
  389. package/esm2022/dropdown/watt-dropdown-value.js.map +0 -1
  390. package/esm2022/dropdown/watt-dropdown.component.js.map +0 -1
  391. package/esm2022/dropzone/energinet-watt-dropzone.js +0 -5
  392. package/esm2022/dropzone/energinet-watt-dropzone.js.map +0 -1
  393. package/esm2022/dropzone/index.js +0 -22
  394. package/esm2022/dropzone/index.js.map +0 -1
  395. package/esm2022/dropzone/watt-dropzone-intl.js +0 -35
  396. package/esm2022/dropzone/watt-dropzone-intl.js.map +0 -1
  397. package/esm2022/dropzone/watt-dropzone-validators.js +0 -67
  398. package/esm2022/dropzone/watt-dropzone-validators.js.map +0 -1
  399. package/esm2022/dropzone/watt-dropzone.js.map +0 -1
  400. package/esm2022/empty-state/energinet-watt-empty-state.js +0 -5
  401. package/esm2022/empty-state/energinet-watt-empty-state.js.map +0 -1
  402. package/esm2022/empty-state/icons/explore.js +0 -54
  403. package/esm2022/empty-state/icons/explore.js.map +0 -1
  404. package/esm2022/empty-state/icons/no-results.js +0 -62
  405. package/esm2022/empty-state/icons/no-results.js.map +0 -1
  406. package/esm2022/empty-state/icons/not-found.js.map +0 -1
  407. package/esm2022/empty-state/icons/power.js +0 -46
  408. package/esm2022/empty-state/icons/power.js.map +0 -1
  409. package/esm2022/empty-state/index.js +0 -24
  410. package/esm2022/empty-state/index.js.map +0 -1
  411. package/esm2022/empty-state/watt-empty-state.component.js +0 -120
  412. package/esm2022/empty-state/watt-empty-state.component.js.map +0 -1
  413. package/esm2022/energinet-watt.js +0 -5
  414. package/esm2022/energinet-watt.js.map +0 -1
  415. package/esm2022/expandable-card/energinet-watt-expandable-card.js +0 -5
  416. package/esm2022/expandable-card/energinet-watt-expandable-card.js.map +0 -1
  417. package/esm2022/expandable-card/index.js +0 -26
  418. package/esm2022/expandable-card/index.js.map +0 -1
  419. package/esm2022/expandable-card/watt-expandable-card.component.js.map +0 -1
  420. package/esm2022/field/energinet-watt-field.js +0 -5
  421. package/esm2022/field/energinet-watt-field.js.map +0 -1
  422. package/esm2022/field/index.js +0 -24
  423. package/esm2022/field/index.js.map +0 -1
  424. package/esm2022/field/watt-field-error.component.js +0 -29
  425. package/esm2022/field/watt-field-error.component.js.map +0 -1
  426. package/esm2022/field/watt-field-hint.component.js +0 -29
  427. package/esm2022/field/watt-field-hint.component.js.map +0 -1
  428. package/esm2022/field/watt-field-intl.service.js +0 -32
  429. package/esm2022/field/watt-field-intl.service.js.map +0 -1
  430. package/esm2022/field/watt-field-warning.component.js +0 -29
  431. package/esm2022/field/watt-field-warning.component.js.map +0 -1
  432. package/esm2022/field/watt-field.component.js.map +0 -1
  433. package/esm2022/file-field/energinet-watt-file-field.js +0 -5
  434. package/esm2022/file-field/energinet-watt-file-field.js.map +0 -1
  435. package/esm2022/file-field/index.js +0 -20
  436. package/esm2022/file-field/index.js.map +0 -1
  437. package/esm2022/file-field/watt-file-field.component.js.map +0 -1
  438. package/esm2022/icon/energinet-watt-icon.js +0 -5
  439. package/esm2022/icon/energinet-watt-icon.js.map +0 -1
  440. package/esm2022/icon/flags/energinet-watt-icon-flags.js +0 -5
  441. package/esm2022/icon/flags/energinet-watt-icon-flags.js.map +0 -1
  442. package/esm2022/icon/flags/index.js +0 -29
  443. package/esm2022/icon/flags/index.js.map +0 -1
  444. package/esm2022/icon/flags/watt-flag-ch.js +0 -52
  445. package/esm2022/icon/flags/watt-flag-ch.js.map +0 -1
  446. package/esm2022/icon/flags/watt-flag-de.js +0 -44
  447. package/esm2022/icon/flags/watt-flag-de.js.map +0 -1
  448. package/esm2022/icon/flags/watt-flag-dk.js +0 -44
  449. package/esm2022/icon/flags/watt-flag-dk.js.map +0 -1
  450. package/esm2022/icon/flags/watt-flag-fi.js +0 -44
  451. package/esm2022/icon/flags/watt-flag-fi.js.map +0 -1
  452. package/esm2022/icon/flags/watt-flag-gb.js +0 -60
  453. package/esm2022/icon/flags/watt-flag-gb.js.map +0 -1
  454. package/esm2022/icon/flags/watt-flag-nl.js +0 -44
  455. package/esm2022/icon/flags/watt-flag-nl.js.map +0 -1
  456. package/esm2022/icon/flags/watt-flag-no.js +0 -48
  457. package/esm2022/icon/flags/watt-flag-no.js.map +0 -1
  458. package/esm2022/icon/flags/watt-flag-pl.js +0 -46
  459. package/esm2022/icon/flags/watt-flag-pl.js.map +0 -1
  460. package/esm2022/icon/flags/watt-flag-se.js +0 -42
  461. package/esm2022/icon/flags/watt-flag-se.js.map +0 -1
  462. package/esm2022/icon/flags/watt-flag.js +0 -124
  463. package/esm2022/icon/flags/watt-flag.js.map +0 -1
  464. package/esm2022/icon/icon.component.js.map +0 -1
  465. package/esm2022/icon/icons.js +0 -102
  466. package/esm2022/icon/icons.js.map +0 -1
  467. package/esm2022/icon/index.js +0 -20
  468. package/esm2022/icon/index.js.map +0 -1
  469. package/esm2022/index.js.map +0 -1
  470. package/esm2022/menu/energinet-watt-menu.js +0 -5
  471. package/esm2022/menu/energinet-watt-menu.js.map +0 -1
  472. package/esm2022/menu/index.js +0 -36
  473. package/esm2022/menu/index.js.map +0 -1
  474. package/esm2022/menu/watt-menu-group.component.js +0 -45
  475. package/esm2022/menu/watt-menu-group.component.js.map +0 -1
  476. package/esm2022/menu/watt-menu-item.component.js +0 -50
  477. package/esm2022/menu/watt-menu-item.component.js.map +0 -1
  478. package/esm2022/menu/watt-menu-trigger.directive.js +0 -85
  479. package/esm2022/menu/watt-menu-trigger.directive.js.map +0 -1
  480. package/esm2022/menu/watt-menu.component.js +0 -77
  481. package/esm2022/menu/watt-menu.component.js.map +0 -1
  482. package/esm2022/modal/energinet-watt-modal.js +0 -5
  483. package/esm2022/modal/energinet-watt-modal.js.map +0 -1
  484. package/esm2022/modal/index.js +0 -21
  485. package/esm2022/modal/index.js.map +0 -1
  486. package/esm2022/modal/watt-modal.component.js.map +0 -1
  487. package/esm2022/modal/watt-modal.service.js +0 -74
  488. package/esm2022/modal/watt-modal.service.js.map +0 -1
  489. package/esm2022/paginator/energinet-watt-paginator.js +0 -5
  490. package/esm2022/paginator/energinet-watt-paginator.js.map +0 -1
  491. package/esm2022/paginator/index.js +0 -21
  492. package/esm2022/paginator/index.js.map +0 -1
  493. package/esm2022/paginator/watt-paginator-intl.service.js +0 -38
  494. package/esm2022/paginator/watt-paginator-intl.service.js.map +0 -1
  495. package/esm2022/paginator/watt-paginator.component.js.map +0 -1
  496. package/esm2022/phone-field/energinet-watt-phone-field.js +0 -5
  497. package/esm2022/phone-field/energinet-watt-phone-field.js.map +0 -1
  498. package/esm2022/phone-field/index.js +0 -21
  499. package/esm2022/phone-field/index.js.map +0 -1
  500. package/esm2022/phone-field/watt-phone-field-intl.service.js +0 -41
  501. package/esm2022/phone-field/watt-phone-field-intl.service.js.map +0 -1
  502. package/esm2022/phone-field/watt-phone-field.component.js.map +0 -1
  503. package/esm2022/picker/__shared/energinet-watt-picker-__shared.js +0 -5
  504. package/esm2022/picker/__shared/energinet-watt-picker-__shared.js.map +0 -1
  505. package/esm2022/picker/__shared/index.js +0 -21
  506. package/esm2022/picker/__shared/index.js.map +0 -1
  507. package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js +0 -71
  508. package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js.map +0 -1
  509. package/esm2022/picker/__shared/watt-picker-base.js +0 -197
  510. package/esm2022/picker/__shared/watt-picker-base.js.map +0 -1
  511. package/esm2022/picker/__shared/watt-picker-value.js +0 -2
  512. package/esm2022/picker/__shared/watt-picker-value.js.map +0 -1
  513. package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js +0 -5
  514. package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js.map +0 -1
  515. package/esm2022/picker/datepicker/index.js +0 -22
  516. package/esm2022/picker/datepicker/index.js.map +0 -1
  517. package/esm2022/picker/datepicker/watt-datepicker-intl.service.js +0 -31
  518. package/esm2022/picker/datepicker/watt-datepicker-intl.service.js.map +0 -1
  519. package/esm2022/picker/datepicker/watt-datepicker.component.js.map +0 -1
  520. package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js +0 -5
  521. package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js.map +0 -1
  522. package/esm2022/picker/timepicker/index.js +0 -20
  523. package/esm2022/picker/timepicker/index.js.map +0 -1
  524. package/esm2022/picker/timepicker/maskito-time-range-mask.js +0 -81
  525. package/esm2022/picker/timepicker/maskito-time-range-mask.js.map +0 -1
  526. package/esm2022/picker/timepicker/watt-timepicker.component.js.map +0 -1
  527. package/esm2022/progress-tracker/energinet-watt-progress-tracker.js +0 -5
  528. package/esm2022/progress-tracker/energinet-watt-progress-tracker.js.map +0 -1
  529. package/esm2022/progress-tracker/index.js +0 -27
  530. package/esm2022/progress-tracker/index.js.map +0 -1
  531. package/esm2022/progress-tracker/watt-progress-tracker-step.component.js.map +0 -1
  532. package/esm2022/progress-tracker/watt-progress-tracker.component.js +0 -30
  533. package/esm2022/progress-tracker/watt-progress-tracker.component.js.map +0 -1
  534. package/esm2022/query-params/energinet-watt-query-params.js +0 -5
  535. package/esm2022/query-params/energinet-watt-query-params.js.map +0 -1
  536. package/esm2022/query-params/index.js +0 -20
  537. package/esm2022/query-params/index.js.map +0 -1
  538. package/esm2022/query-params/watt-query-params.directive.js.map +0 -1
  539. package/esm2022/radio/energinet-watt-radio.js +0 -5
  540. package/esm2022/radio/energinet-watt-radio.js.map +0 -1
  541. package/esm2022/radio/index.js +0 -21
  542. package/esm2022/radio/index.js.map +0 -1
  543. package/esm2022/radio/watt-radio-group.component.js +0 -119
  544. package/esm2022/radio/watt-radio-group.component.js.map +0 -1
  545. package/esm2022/radio/watt-radio.component.js.map +0 -1
  546. package/esm2022/search/energinet-watt-search.js +0 -5
  547. package/esm2022/search/energinet-watt-search.js.map +0 -1
  548. package/esm2022/search/index.js +0 -20
  549. package/esm2022/search/index.js.map +0 -1
  550. package/esm2022/search/watt-search.component.js.map +0 -1
  551. package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js +0 -5
  552. package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js.map +0 -1
  553. package/esm2022/segmented-buttons/index.js +0 -27
  554. package/esm2022/segmented-buttons/index.js.map +0 -1
  555. package/esm2022/segmented-buttons/watt-segmented-button.component.js +0 -39
  556. package/esm2022/segmented-buttons/watt-segmented-button.component.js.map +0 -1
  557. package/esm2022/segmented-buttons/watt-segmented-buttons.component.js.map +0 -1
  558. package/esm2022/shell/energinet-watt-shell.js +0 -5
  559. package/esm2022/shell/energinet-watt-shell.js.map +0 -1
  560. package/esm2022/shell/index.js +0 -21
  561. package/esm2022/shell/index.js.map +0 -1
  562. package/esm2022/shell/nav-list/index.js +0 -21
  563. package/esm2022/shell/nav-list/index.js.map +0 -1
  564. package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js +0 -47
  565. package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js.map +0 -1
  566. package/esm2022/shell/nav-list/watt-nav-list-item.component.js +0 -83
  567. package/esm2022/shell/nav-list/watt-nav-list-item.component.js.map +0 -1
  568. package/esm2022/shell/nav-list/watt-nav-list.component.js +0 -80
  569. package/esm2022/shell/nav-list/watt-nav-list.component.js.map +0 -1
  570. package/esm2022/shell/shell.component.js +0 -59
  571. package/esm2022/shell/shell.component.js.map +0 -1
  572. package/esm2022/slide-toggle/energinet-watt-slide-toggle.js +0 -5
  573. package/esm2022/slide-toggle/energinet-watt-slide-toggle.js.map +0 -1
  574. package/esm2022/slide-toggle/index.js +0 -20
  575. package/esm2022/slide-toggle/index.js.map +0 -1
  576. package/esm2022/slide-toggle/watt-slide-toggle.component.js.map +0 -1
  577. package/esm2022/slider/energinet-watt-slider.js +0 -5
  578. package/esm2022/slider/energinet-watt-slider.js.map +0 -1
  579. package/esm2022/slider/index.js +0 -20
  580. package/esm2022/slider/index.js.map +0 -1
  581. package/esm2022/slider/watt-slider.component.js.map +0 -1
  582. package/esm2022/spinner/energinet-watt-spinner.js +0 -5
  583. package/esm2022/spinner/energinet-watt-spinner.js.map +0 -1
  584. package/esm2022/spinner/index.js +0 -20
  585. package/esm2022/spinner/index.js.map +0 -1
  586. package/esm2022/spinner/watt-spinner.component.js.map +0 -1
  587. package/esm2022/stepper/energinet-watt-stepper.js +0 -5
  588. package/esm2022/stepper/energinet-watt-stepper.js.map +0 -1
  589. package/esm2022/stepper/index.js +0 -21
  590. package/esm2022/stepper/index.js.map +0 -1
  591. package/esm2022/stepper/watt-stepper-step.component.js +0 -49
  592. package/esm2022/stepper/watt-stepper-step.component.js.map +0 -1
  593. package/esm2022/stepper/watt-stepper.component.js.map +0 -1
  594. package/esm2022/table/energinet-watt-table.js +0 -5
  595. package/esm2022/table/energinet-watt-table.js.map +0 -1
  596. package/esm2022/table/index.js +0 -21
  597. package/esm2022/table/index.js.map +0 -1
  598. package/esm2022/table/watt-table-data-source.js +0 -27
  599. package/esm2022/table/watt-table-data-source.js.map +0 -1
  600. package/esm2022/table/watt-table-expand-animation.js +0 -65
  601. package/esm2022/table/watt-table-expand-animation.js.map +0 -1
  602. package/esm2022/table/watt-table.component.js.map +0 -1
  603. package/esm2022/tabs/energinet-watt-tabs.js +0 -5
  604. package/esm2022/tabs/energinet-watt-tabs.js.map +0 -1
  605. package/esm2022/tabs/index.js +0 -31
  606. package/esm2022/tabs/index.js.map +0 -1
  607. package/esm2022/tabs/watt-link-tab.component.js +0 -34
  608. package/esm2022/tabs/watt-link-tab.component.js.map +0 -1
  609. package/esm2022/tabs/watt-link-tabs.component.js +0 -71
  610. package/esm2022/tabs/watt-link-tabs.component.js.map +0 -1
  611. package/esm2022/tabs/watt-tab.component.js +0 -42
  612. package/esm2022/tabs/watt-tab.component.js.map +0 -1
  613. package/esm2022/tabs/watt-tabs-action.component.js +0 -32
  614. package/esm2022/tabs/watt-tabs-action.component.js.map +0 -1
  615. package/esm2022/tabs/watt-tabs.component.js +0 -60
  616. package/esm2022/tabs/watt-tabs.component.js.map +0 -1
  617. package/esm2022/text-field/energinet-watt-text-field.js +0 -5
  618. package/esm2022/text-field/energinet-watt-text-field.js.map +0 -1
  619. package/esm2022/text-field/index.js +0 -20
  620. package/esm2022/text-field/index.js.map +0 -1
  621. package/esm2022/text-field/watt-text-field.component.js.map +0 -1
  622. package/esm2022/textarea-field/energinet-watt-textarea-field.js +0 -5
  623. package/esm2022/textarea-field/energinet-watt-textarea-field.js.map +0 -1
  624. package/esm2022/textarea-field/index.js +0 -20
  625. package/esm2022/textarea-field/index.js.map +0 -1
  626. package/esm2022/textarea-field/watt-textarea-field.component.js.map +0 -1
  627. package/esm2022/toast/energinet-watt-toast.js +0 -5
  628. package/esm2022/toast/energinet-watt-toast.js.map +0 -1
  629. package/esm2022/toast/index.js +0 -21
  630. package/esm2022/toast/index.js.map +0 -1
  631. package/esm2022/toast/watt-toast.component.js.map +0 -1
  632. package/esm2022/toast/watt-toast.service.js +0 -51
  633. package/esm2022/toast/watt-toast.service.js.map +0 -1
  634. package/esm2022/tooltip/energinet-watt-tooltip.js +0 -5
  635. package/esm2022/tooltip/energinet-watt-tooltip.js.map +0 -1
  636. package/esm2022/tooltip/index.js +0 -20
  637. package/esm2022/tooltip/index.js.map +0 -1
  638. package/esm2022/tooltip/watt-tooltip.component.js.map +0 -1
  639. package/esm2022/tooltip/watt-tooltip.directive.js +0 -67
  640. package/esm2022/tooltip/watt-tooltip.directive.js.map +0 -1
  641. package/esm2022/utils/css/css-custom-properties.service.js.map +0 -1
  642. package/esm2022/utils/css/energinet-watt-utils-css.js +0 -5
  643. package/esm2022/utils/css/energinet-watt-utils-css.js.map +0 -1
  644. package/esm2022/utils/css/index.js +0 -20
  645. package/esm2022/utils/css/index.js.map +0 -1
  646. package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js +0 -5
  647. package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js.map +0 -1
  648. package/esm2022/utils/intersection-observer/index.js +0 -20
  649. package/esm2022/utils/intersection-observer/index.js.map +0 -1
  650. package/esm2022/utils/intersection-observer/watt-intersection-observer.service.js.map +0 -1
  651. package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js +0 -5
  652. package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js.map +0 -1
  653. package/esm2022/utils/resize-observer/index.js +0 -21
  654. package/esm2022/utils/resize-observer/index.js.map +0 -1
  655. package/esm2022/utils/resize-observer/watt-resize-observer.directive.js +0 -53
  656. package/esm2022/utils/resize-observer/watt-resize-observer.directive.js.map +0 -1
  657. package/esm2022/utils/resize-observer/watt-resize-observer.service.js +0 -67
  658. package/esm2022/utils/resize-observer/watt-resize-observer.service.js.map +0 -1
  659. package/esm2022/validation-message/energinet-watt-validation-message.js +0 -5
  660. package/esm2022/validation-message/energinet-watt-validation-message.js.map +0 -1
  661. package/esm2022/validation-message/index.js +0 -20
  662. package/esm2022/validation-message/index.js.map +0 -1
  663. package/esm2022/validation-message/watt-validation-message.component.js.map +0 -1
  664. package/esm2022/validators/energinet-watt-validators.js +0 -5
  665. package/esm2022/validators/energinet-watt-validators.js.map +0 -1
  666. package/esm2022/validators/index.js +0 -20
  667. package/esm2022/validators/index.js.map +0 -1
  668. package/esm2022/validators/watt-range.validators.js.map +0 -1
  669. package/esm2022/vater/energinet-watt-vater.js +0 -5
  670. package/esm2022/vater/energinet-watt-vater.js.map +0 -1
  671. package/esm2022/vater/index.js +0 -24
  672. package/esm2022/vater/index.js.map +0 -1
  673. package/esm2022/vater/types.js +0 -20
  674. package/esm2022/vater/types.js.map +0 -1
  675. package/esm2022/vater/vater-flex.component.js +0 -49
  676. package/esm2022/vater/vater-flex.component.js.map +0 -1
  677. package/esm2022/vater/vater-layout.directive.js +0 -65
  678. package/esm2022/vater/vater-layout.directive.js.map +0 -1
  679. package/esm2022/vater/vater-spacer.component.js +0 -29
  680. package/esm2022/vater/vater-spacer.component.js.map +0 -1
  681. package/esm2022/vater/vater-stack.component.js +0 -42
  682. package/esm2022/vater/vater-stack.component.js.map +0 -1
  683. package/esm2022/vater/vater-utility.directive.js +0 -53
  684. package/esm2022/vater/vater-utility.directive.js.map +0 -1
  685. package/esm2022/year-field/energinet-watt-year-field.js +0 -5
  686. package/esm2022/year-field/energinet-watt-year-field.js.map +0 -1
  687. package/esm2022/year-field/index.js +0 -20
  688. package/esm2022/year-field/index.js.map +0 -1
  689. package/esm2022/year-field/watt-year-field.component.js.map +0 -1
  690. package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js +0 -5
  691. package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js.map +0 -1
  692. package/esm2022/yearmonth-field/index.js +0 -21
  693. package/esm2022/yearmonth-field/index.js.map +0 -1
  694. package/esm2022/yearmonth-field/watt-yearmonth-field.component.js.map +0 -1
  695. package/esm2022/yearmonth-field/year-month.js +0 -42
  696. package/esm2022/yearmonth-field/year-month.js.map +0 -1
  697. package/expandable-card/energinet-watt-expandable-card.d.ts +0 -5
  698. package/expandable-card/index.d.ts +0 -19
  699. package/field/energinet-watt-field.d.ts +0 -5
  700. package/field/index.d.ts +0 -21
  701. package/field/watt-field-error.component.d.ts +0 -5
  702. package/field/watt-field-hint.component.d.ts +0 -5
  703. package/field/watt-field-intl.service.d.ts +0 -8
  704. package/field/watt-field-warning.component.d.ts +0 -5
  705. package/field/watt-field.component.d.ts +0 -53
  706. package/file-field/energinet-watt-file-field.d.ts +0 -5
  707. package/file-field/index.d.ts +0 -17
  708. package/file-field/watt-file-field.component.d.ts +0 -10
  709. package/icon/energinet-watt-icon.d.ts +0 -5
  710. package/icon/flags/energinet-watt-icon-flags.d.ts +0 -5
  711. package/icon/flags/index.d.ts +0 -26
  712. package/icon/flags/watt-flag-ch.d.ts +0 -5
  713. package/icon/flags/watt-flag-de.d.ts +0 -5
  714. package/icon/flags/watt-flag-dk.d.ts +0 -5
  715. package/icon/flags/watt-flag-fi.d.ts +0 -5
  716. package/icon/flags/watt-flag-gb.d.ts +0 -5
  717. package/icon/flags/watt-flag-nl.d.ts +0 -5
  718. package/icon/flags/watt-flag-no.d.ts +0 -5
  719. package/icon/flags/watt-flag-pl.d.ts +0 -5
  720. package/icon/flags/watt-flag-se.d.ts +0 -5
  721. package/icon/flags/watt-flag.d.ts +0 -13
  722. package/icon/icon.component.d.ts +0 -20
  723. package/icon/icons.d.ts +0 -95
  724. package/icon/index.d.ts +0 -17
  725. package/index.d.ts +0 -17
  726. package/menu/energinet-watt-menu.d.ts +0 -5
  727. package/menu/index.d.ts +0 -25
  728. package/menu/watt-menu-group.component.d.ts +0 -9
  729. package/menu/watt-menu-item.component.d.ts +0 -9
  730. package/menu/watt-menu-trigger.directive.d.ts +0 -36
  731. package/menu/watt-menu.component.d.ts +0 -44
  732. package/modal/energinet-watt-modal.d.ts +0 -5
  733. package/modal/index.d.ts +0 -18
  734. package/modal/watt-modal.component.d.ts +0 -84
  735. package/modal/watt-modal.service.d.ts +0 -56
  736. package/paginator/energinet-watt-paginator.d.ts +0 -5
  737. package/paginator/index.d.ts +0 -18
  738. package/paginator/watt-paginator-intl.service.d.ts +0 -14
  739. package/paginator/watt-paginator.component.d.ts +0 -53
  740. package/phone-field/energinet-watt-phone-field.d.ts +0 -5
  741. package/phone-field/index.d.ts +0 -18
  742. package/phone-field/watt-phone-field-intl.service.d.ts +0 -17
  743. package/phone-field/watt-phone-field.component.d.ts +0 -75
  744. package/picker/__shared/energinet-watt-picker-__shared.d.ts +0 -5
  745. package/picker/__shared/index.d.ts +0 -19
  746. package/picker/__shared/placeholder-mask/watt-placeholder-mask.component.d.ts +0 -34
  747. package/picker/__shared/watt-picker-value.d.ts +0 -18
  748. package/picker/datepicker/energinet-watt-picker-datepicker.d.ts +0 -5
  749. package/picker/datepicker/index.d.ts +0 -19
  750. package/picker/datepicker/watt-datepicker-intl.service.d.ts +0 -7
  751. package/picker/datepicker/watt-datepicker.component.d.ts +0 -95
  752. package/picker/timepicker/energinet-watt-picker-timepicker.d.ts +0 -5
  753. package/picker/timepicker/index.d.ts +0 -17
  754. package/picker/timepicker/maskito-time-range-mask.d.ts +0 -18
  755. package/progress-tracker/energinet-watt-progress-tracker.d.ts +0 -5
  756. package/progress-tracker/index.d.ts +0 -20
  757. package/progress-tracker/watt-progress-tracker-step.component.d.ts +0 -10
  758. package/progress-tracker/watt-progress-tracker.component.d.ts +0 -5
  759. package/query-params/energinet-watt-query-params.d.ts +0 -5
  760. package/query-params/index.d.ts +0 -17
  761. package/radio/energinet-watt-radio.d.ts +0 -5
  762. package/radio/index.d.ts +0 -18
  763. package/radio/watt-radio-group.component.d.ts +0 -47
  764. package/radio/watt-radio.component.d.ts +0 -23
  765. package/search/energinet-watt-search.d.ts +0 -5
  766. package/search/index.d.ts +0 -17
  767. package/search/watt-search.component.d.ts +0 -44
  768. package/segmented-buttons/energinet-watt-segmented-buttons.d.ts +0 -5
  769. package/segmented-buttons/index.d.ts +0 -21
  770. package/segmented-buttons/watt-segmented-button.component.d.ts +0 -25
  771. package/segmented-buttons/watt-segmented-buttons.component.d.ts +0 -18
  772. package/shell/energinet-watt-shell.d.ts +0 -5
  773. package/shell/index.d.ts +0 -18
  774. package/shell/nav-list/index.d.ts +0 -18
  775. package/shell/nav-list/watt-expand-on-active-link.directive.d.ts +0 -9
  776. package/shell/nav-list/watt-nav-list-item.component.d.ts +0 -16
  777. package/shell/nav-list/watt-nav-list.component.d.ts +0 -12
  778. package/shell/shell.component.d.ts +0 -17
  779. package/slide-toggle/energinet-watt-slide-toggle.d.ts +0 -5
  780. package/slide-toggle/index.d.ts +0 -17
  781. package/slide-toggle/watt-slide-toggle.component.d.ts +0 -33
  782. package/slider/energinet-watt-slider.d.ts +0 -5
  783. package/slider/index.d.ts +0 -17
  784. package/slider/watt-slider.component.d.ts +0 -47
  785. package/spinner/energinet-watt-spinner.d.ts +0 -5
  786. package/spinner/index.d.ts +0 -17
  787. package/spinner/watt-spinner.component.d.ts +0 -15
  788. package/stepper/energinet-watt-stepper.d.ts +0 -5
  789. package/stepper/index.d.ts +0 -18
  790. package/stepper/watt-stepper-step.component.d.ts +0 -35
  791. package/stepper/watt-stepper.component.d.ts +0 -40
  792. package/table/energinet-watt-table.d.ts +0 -5
  793. package/table/index.d.ts +0 -18
  794. package/table/watt-table-data-source.d.ts +0 -39
  795. package/table/watt-table-expand-animation.d.ts +0 -18
  796. package/tabs/energinet-watt-tabs.d.ts +0 -5
  797. package/tabs/index.d.ts +0 -26
  798. package/tabs/watt-link-tab.component.d.ts +0 -7
  799. package/tabs/watt-link-tabs.component.d.ts +0 -7
  800. package/tabs/watt-tab.component.d.ts +0 -26
  801. package/tabs/watt-tabs-action.component.d.ts +0 -5
  802. package/tabs/watt-tabs.component.d.ts +0 -36
  803. package/text-field/energinet-watt-text-field.d.ts +0 -5
  804. package/text-field/index.d.ts +0 -17
  805. package/text-field/watt-text-field.component.d.ts +0 -80
  806. package/textarea-field/energinet-watt-textarea-field.d.ts +0 -5
  807. package/textarea-field/index.d.ts +0 -17
  808. package/textarea-field/watt-textarea-field.component.d.ts +0 -28
  809. package/toast/energinet-watt-toast.d.ts +0 -5
  810. package/toast/index.d.ts +0 -19
  811. package/toast/watt-toast.service.d.ts +0 -12
  812. package/tooltip/energinet-watt-tooltip.d.ts +0 -5
  813. package/tooltip/index.d.ts +0 -17
  814. package/tooltip/watt-tooltip.component.d.ts +0 -26
  815. package/tooltip/watt-tooltip.directive.d.ts +0 -16
  816. package/utils/css/energinet-watt-utils-css.d.ts +0 -5
  817. package/utils/css/index.d.ts +0 -17
  818. package/utils/intersection-observer/energinet-watt-utils-intersection-observer.d.ts +0 -5
  819. package/utils/intersection-observer/index.d.ts +0 -17
  820. package/utils/resize-observer/energinet-watt-utils-resize-observer.d.ts +0 -5
  821. package/utils/resize-observer/index.d.ts +0 -18
  822. package/utils/resize-observer/watt-resize-observer.service.d.ts +0 -22
  823. package/validation-message/energinet-watt-validation-message.d.ts +0 -5
  824. package/validation-message/index.d.ts +0 -17
  825. package/validation-message/watt-validation-message.component.d.ts +0 -50
  826. package/validators/energinet-watt-validators.d.ts +0 -5
  827. package/validators/index.d.ts +0 -17
  828. package/vater/energinet-watt-vater.d.ts +0 -5
  829. package/vater/index.d.ts +0 -21
  830. package/vater/types.d.ts +0 -22
  831. package/vater/vater-flex.component.d.ts +0 -14
  832. package/vater/vater-layout.directive.d.ts +0 -24
  833. package/vater/vater-spacer.component.d.ts +0 -5
  834. package/vater/vater-stack.component.d.ts +0 -7
  835. package/vater/vater-utility.directive.d.ts +0 -17
  836. package/year-field/energinet-watt-year-field.d.ts +0 -5
  837. package/year-field/index.d.ts +0 -17
  838. package/year-field/watt-year-field.component.d.ts +0 -56
  839. package/yearmonth-field/energinet-watt-yearmonth-field.d.ts +0 -5
  840. package/yearmonth-field/index.d.ts +0 -18
  841. package/yearmonth-field/watt-yearmonth-field.component.d.ts +0 -58
  842. package/yearmonth-field/year-month.d.ts +0 -20
@@ -1,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,CAAC;AACvB,OAAO,EAIL,iBAAiB,EACjB,mBAAmB,GAGpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAmB,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAoB,MAAM,mBAAmB,CAAC;AACzE,OAAO,aAAa,MAAM,gCAAgC,CAAC;AAE3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;;;;AAO5E,SAAS,cAAc,CAAC,WAAwB;IAC9C,OAAO,CAAC,OAAwB,EAA2B,EAAE;QAC3D,IAAI,CAAC,OAAO,CAAC,KAAK;YAAE,OAAO,IAAI,CAAC;QAChC,MAAM,KAAK,GAAG,kBAAkB,CAAC,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAC7D,OAAO,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,EAA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AAO,EAAE,iBAAiB;gBAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;gBACtD,KAAK,EAAE,IAAI;aACZ;SACF,gKACS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCT,08BApDC,mBAAmB,ykBACnB,eAAe,kyBACf,gBAAgB,6FAChB,kBAAkB,yLAClB,uBAAuB,6DACvB,iBAAiB;;4FAqDR,uBAAuB;kBA9DnC,SAAS;+BACE,kBAAkB,iBACb,iBAAiB,CAAC,IAAI,WAC5B;wBACP,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,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ACvD,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"]}
@@ -1,197 +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 { Input, inject, Directive, ElementRef, DestroyRef, HostBinding, ChangeDetectorRef, input, } from '@angular/core';
20
- import { NgControl } from '@angular/forms';
21
- import { coerceBooleanProperty } from '@angular/cdk/coercion';
22
- import { Subject } from 'rxjs';
23
- import * as i0 from "@angular/core";
24
- export class WattPickerBase {
25
- destroyRef = inject(DestroyRef);
26
- changeDetectionRef = inject(ChangeDetectorRef);
27
- ngControl = inject(NgControl, { optional: true });
28
- elementRef = inject(ElementRef);
29
- static nextId = 0;
30
- id;
31
- initialValue = null;
32
- focused = false;
33
- controlType = 'mat-date-range-input'; // We keep the controlType of Material Date Range Input as is, to keep some styling.
34
- stateChanges = new Subject();
35
- // eslint-disable-next-line @angular-eslint/no-input-rename
36
- userAriaDescribedBy = input(undefined, ...(ngDevMode ? [{ debugName: "userAriaDescribedBy", alias: 'aria-describedby' }] : [{ alias: 'aria-describedby' }]));
37
- get placeholder() {
38
- return this._placeholder;
39
- }
40
- set placeholder(value) {
41
- this._placeholder = value;
42
- this.stateChanges.next();
43
- }
44
- get value() {
45
- if (this.ngControl?.valid) {
46
- const { value: { start, end }, } = this.ngControl;
47
- return { start, end };
48
- }
49
- return null;
50
- }
51
- set value(value) {
52
- const input = this.input();
53
- const startInput = this.startInput();
54
- const endInput = this.endInput();
55
- const inputNotToBeInTheDocument = !this.range ? !input : !startInput;
56
- if (inputNotToBeInTheDocument) {
57
- this.initialValue = value;
58
- return;
59
- }
60
- if (this.range) {
61
- if (!startInput || !endInput)
62
- return;
63
- this.setRangeValue(value, startInput.nativeElement, endInput.nativeElement);
64
- }
65
- else {
66
- if (!input)
67
- return;
68
- this.setSingleValue(value, input.nativeElement);
69
- }
70
- this.stateChanges.next();
71
- }
72
- set range(range) {
73
- this._range = coerceBooleanProperty(range);
74
- }
75
- get range() {
76
- return this._range;
77
- }
78
- _range = false;
79
- get required() {
80
- return this._required;
81
- }
82
- set required(value) {
83
- this._required = coerceBooleanProperty(value);
84
- this.stateChanges.next();
85
- }
86
- _required = false;
87
- get disabled() {
88
- return this._disabled;
89
- }
90
- set disabled(value) {
91
- this._disabled = coerceBooleanProperty(value);
92
- this.stateChanges.next();
93
- }
94
- _disabled = false;
95
- get empty() {
96
- if (this.range) {
97
- return !this.ngControl?.value?.start && !this.ngControl?.value?.end;
98
- }
99
- else {
100
- return this.ngControl?.value?.length === 0;
101
- }
102
- }
103
- get errorState() {
104
- return !!this.ngControl?.invalid && !!this.ngControl?.touched;
105
- }
106
- get shouldLabelFloat() {
107
- return this.focused || !this.empty;
108
- }
109
- /**
110
- *
111
- * @ignore
112
- */
113
- control = null;
114
- constructor(id) {
115
- this.id = id;
116
- this.elementRef.nativeElement.setAttribute('id', id);
117
- if (this.ngControl != null) {
118
- this.ngControl.valueAccessor = this;
119
- }
120
- }
121
- ngOnInit() {
122
- this.control = this.ngControl?.control;
123
- }
124
- ngAfterViewInit() {
125
- if (this.initialValue) {
126
- this.writeValue(this.initialValue);
127
- }
128
- if (this.range) {
129
- this.initRangeInput();
130
- }
131
- else {
132
- this.initSingleInput();
133
- }
134
- }
135
- ngOnDestroy() {
136
- this.stateChanges.complete();
137
- }
138
- setDescribedByIds(ids) {
139
- this.elementRef.nativeElement.setAttribute('aria-describedby', ids.join(' '));
140
- }
141
- onContainerClick() {
142
- // Intentionally left empty
143
- }
144
- writeValue(value) {
145
- this.value = value;
146
- }
147
- registerOnChange(onChangeFn) {
148
- this.changeParentValue = onChangeFn;
149
- }
150
- registerOnTouched(onTouchFn) {
151
- this.markParentControlAsTouched = onTouchFn;
152
- }
153
- setDisabledState(isDisabled) {
154
- this.disabled = isDisabled;
155
- this.changeDetectionRef.detectChanges();
156
- }
157
- onFocusIn() {
158
- if (!this.focused) {
159
- this.focused = true;
160
- this.stateChanges.next();
161
- }
162
- }
163
- onFocusOut(event) {
164
- const id = this.elementRef.nativeElement.attributes.getNamedItem('aria-owns');
165
- const overlay = id ? document.getElementById(id.value) : null;
166
- const isChild = overlay?.contains(event.relatedTarget);
167
- if (!this.elementRef.nativeElement.contains(event.relatedTarget) && !isChild) {
168
- this.focused = false;
169
- this.markParentControlAsTouched();
170
- this.stateChanges.next();
171
- }
172
- }
173
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
174
- changeParentValue = (value) => {
175
- // Intentionally left empty
176
- };
177
- markParentControlAsTouched = () => {
178
- // Intentionally left empty
179
- };
180
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattPickerBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
181
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: WattPickerBase, isStandalone: true, inputs: { userAriaDescribedBy: { classPropertyName: "userAriaDescribedBy", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, range: { classPropertyName: "range", publicName: "range", isSignal: false, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null } }, host: { properties: { "attr.watt-field-disabled": "this.disabled" } }, ngImport: i0 });
182
- }
183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattPickerBase, decorators: [{
184
- type: Directive
185
- }], ctorParameters: () => [{ type: undefined }], propDecorators: { userAriaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }], value: [{
186
- type: Input
187
- }], range: [{
188
- type: Input
189
- }], required: [{
190
- type: Input
191
- }], disabled: [{
192
- type: HostBinding,
193
- args: ['attr.watt-field-disabled']
194
- }, {
195
- type: Input
196
- }] } });
197
- //# sourceMappingURL=watt-picker-base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-picker-base.js","sourceRoot":"","sources":["../../../../../libs/watt/package/picker/__shared/watt-picker-base.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,KAAK,EAGL,MAAM,EACN,SAAS,EAET,UAAU,EACV,UAAU,EACV,WAAW,EAE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aAAa,CAAC,UAAU,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;QAC9E,MAAM,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC9D,MAAM,OAAO,GAAG,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,aAAwB,CAAC,CAAC;QAElE,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAwB,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YACxF,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YACrB,IAAI,CAAC,0BAA0B,EAAE,CAAC;YAClC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;QAC3B,CAAC;IACH,CAAC;IAED,6DAA6D;IACnD,iBAAiB,GAAG,CAAC,KAA6B,EAAQ,EAAE;QACpE,2BAA2B;IAC7B,CAAC,CAAC;IAEQ,0BAA0B,GAAG,GAAS,EAAE;QAChD,2BAA2B;IAC7B,CAAC,CAAC;wGAlOkB,cAAc;4FAAd,cAAc;;4FAAd,cAAc;kBADnC,SAAS;;sBAuCP,KAAK;;sBAoCL,KAAK;;sBAUL,KAAK;;sBAYL,WAAW;uBAAC,0BAA0B;;sBACtC,KAAK","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 Input,\n OnInit,\n Signal,\n inject,\n Directive,\n OnDestroy,\n ElementRef,\n DestroyRef,\n HostBinding,\n AfterViewInit,\n ChangeDetectorRef,\n input,\n} from '@angular/core';\n\nimport { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\n\nimport { Subject } from 'rxjs';\n\nimport { WattDateRange } from '@energinet/watt/core/date';\n\nimport { WattPickerValue } from './watt-picker-value';\n@Directive()\nexport abstract class WattPickerBase\n implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor\n{\n protected destroyRef = inject(DestroyRef);\n protected changeDetectionRef = inject(ChangeDetectorRef);\n protected ngControl = inject(NgControl, { optional: true });\n protected elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n abstract input: Signal<ElementRef<HTMLInputElement> | undefined>;\n abstract endInput: Signal<ElementRef<HTMLInputElement> | undefined>;\n abstract startInput: Signal<ElementRef<HTMLInputElement> | undefined>;\n\n static nextId = 0;\n\n id: string;\n\n initialValue: WattPickerValue = null;\n\n focused = false;\n\n controlType = 'mat-date-range-input'; // We keep the controlType of Material Date Range Input as is, to keep some styling.\n\n stateChanges = new Subject<void>();\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n userAriaDescribedBy = input<string>(undefined, { alias: 'aria-describedby' });\n\n get placeholder(): string {\n return this._placeholder;\n }\n\n set placeholder(value: string) {\n this._placeholder = value;\n this.stateChanges.next();\n }\n\n protected abstract _placeholder: string;\n\n @Input()\n get value(): WattDateRange | null {\n if (this.ngControl?.valid) {\n const {\n value: { start, end },\n } = this.ngControl;\n\n return { start, end };\n }\n\n return null;\n }\n\n set value(value: WattPickerValue) {\n const input = this.input();\n const startInput = this.startInput();\n const endInput = this.endInput();\n\n const inputNotToBeInTheDocument = !this.range ? !input : !startInput;\n\n if (inputNotToBeInTheDocument) {\n this.initialValue = value;\n return;\n }\n\n if (this.range) {\n if (!startInput || !endInput) return;\n this.setRangeValue(value as WattDateRange, startInput.nativeElement, endInput.nativeElement);\n } else {\n if (!input) return;\n this.setSingleValue(value as Exclude<WattPickerValue, WattDateRange>, input.nativeElement);\n }\n\n this.stateChanges.next();\n }\n\n @Input()\n set range(range: boolean) {\n this._range = coerceBooleanProperty(range);\n }\n get range(): boolean {\n return this._range;\n }\n\n private _range = false;\n\n @Input()\n get required(): boolean {\n return this._required;\n }\n\n set required(value: BooleanInput) {\n this._required = coerceBooleanProperty(value);\n this.stateChanges.next();\n }\n\n private _required = false;\n\n @HostBinding('attr.watt-field-disabled')\n @Input()\n get disabled(): boolean {\n return this._disabled;\n }\n\n set disabled(value: BooleanInput) {\n this._disabled = coerceBooleanProperty(value);\n this.stateChanges.next();\n }\n\n private _disabled = false;\n\n get empty() {\n if (this.range) {\n return !this.ngControl?.value?.start && !this.ngControl?.value?.end;\n } else {\n return this.ngControl?.value?.length === 0;\n }\n }\n\n get errorState(): boolean {\n return !!this.ngControl?.invalid && !!this.ngControl?.touched;\n }\n\n get shouldLabelFloat() {\n return this.focused || !this.empty;\n }\n\n /**\n *\n * @ignore\n */\n control: FormControl | null = null;\n\n constructor(id: string) {\n this.id = id;\n this.elementRef.nativeElement.setAttribute('id', id);\n\n if (this.ngControl != null) {\n this.ngControl.valueAccessor = this;\n }\n }\n\n ngOnInit(): void {\n this.control = this.ngControl?.control as FormControl;\n }\n\n ngAfterViewInit() {\n if (this.initialValue) {\n this.writeValue(this.initialValue);\n }\n\n if (this.range) {\n this.initRangeInput();\n } else {\n this.initSingleInput();\n }\n }\n\n ngOnDestroy(): void {\n this.stateChanges.complete();\n }\n\n protected abstract initRangeInput(): void;\n\n protected abstract initSingleInput(): void;\n\n protected abstract setSingleValue(\n value: Exclude<WattPickerValue, WattDateRange>,\n input: HTMLInputElement\n ): void;\n\n protected abstract setRangeValue(\n value: WattDateRange,\n startInput: HTMLInputElement,\n endInput: HTMLInputElement\n ): void;\n\n setDescribedByIds(ids: string[]) {\n this.elementRef.nativeElement.setAttribute('aria-describedby', ids.join(' '));\n }\n\n onContainerClick() {\n // Intentionally left empty\n }\n\n writeValue(value: WattPickerValue): void {\n this.value = value;\n }\n\n registerOnChange(onChangeFn: (value: string | WattDateRange) => void): void {\n this.changeParentValue = onChangeFn;\n }\n\n registerOnTouched(onTouchFn: () => void) {\n this.markParentControlAsTouched = onTouchFn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled;\n this.changeDetectionRef.detectChanges();\n }\n\n onFocusIn() {\n if (!this.focused) {\n this.focused = true;\n this.stateChanges.next();\n }\n }\n\n onFocusOut(event: FocusEvent) {\n const id = this.elementRef.nativeElement.attributes.getNamedItem('aria-owns');\n const overlay = id ? document.getElementById(id.value) : null;\n const isChild = overlay?.contains(event.relatedTarget as Element);\n\n if (!this.elementRef.nativeElement.contains(event.relatedTarget as Element) && !isChild) {\n this.focused = false;\n this.markParentControlAsTouched();\n this.stateChanges.next();\n }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n protected changeParentValue = (value: string | WattDateRange): void => {\n // Intentionally left empty\n };\n\n protected markParentControlAsTouched = (): void => {\n // Intentionally left empty\n };\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=watt-picker-value.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-picker-value.js","sourceRoot":"","sources":["../../../../../libs/watt/package/picker/__shared/watt-picker-value.ts"],"names":[],"mappings":"","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 { WattDateRange } from '@energinet/watt/core/date';\n\nexport type WattPickerValue = string | WattDateRange | null | undefined;\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-picker-datepicker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-picker-datepicker.js","sourceRoot":"","sources":["../../../../../libs/watt/package/picker/datepicker/energinet-watt-picker-datepicker.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1,22 +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 { WattDatepickerComponent } from './watt-datepicker.component';
20
- export { danishTimeZoneIdentifier } from './watt-datepicker.component';
21
- export { WattDatepickerIntlService } from './watt-datepicker-intl.service';
22
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/watt/package/picker/datepicker/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { WattDatepickerComponent } from './watt-datepicker.component';\nexport { danishTimeZoneIdentifier } from './watt-datepicker.component';\nexport { WattDatepickerIntlService } from './watt-datepicker-intl.service';\n"]}
@@ -1,31 +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 * as i0 from "@angular/core";
21
- export class WattDatepickerIntlService {
22
- clear = 'Clear';
23
- select = 'OK';
24
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDatepickerIntlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
25
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDatepickerIntlService, providedIn: 'root' });
26
- }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDatepickerIntlService, decorators: [{
28
- type: Injectable,
29
- args: [{ providedIn: 'root' }]
30
- }] });
31
- //# sourceMappingURL=watt-datepicker-intl.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-datepicker-intl.service.js","sourceRoot":"","sources":["../../../../../libs/watt/package/picker/datepicker/watt-datepicker-intl.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;AAG3C,MAAM,OAAO,yBAAyB;IACpC,KAAK,GAAG,OAAO,CAAC;IAChB,MAAM,GAAG,IAAI,CAAC;wGAFH,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';\n\n@Injectable({ providedIn: 'root' })\nexport class WattDatepickerIntlService {\n clear = 'Clear';\n select = 'OK';\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"watt-datepicker.component.js","sourceRoot":"","sources":["../../../../../libs/watt/package/picker/datepicker/watt-datepicker.component.ts","../../../../../libs/watt/package/picker/datepicker/watt-datepicker.component.html"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,YAAY,EAEZ,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,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AuB;4FAAvB,uBAAuB,s+BAXvB,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC,sEA0BnC,UAAU,+FACN,YAAY,oGACF,iBAAiB,qGACf,kBAAkB,qGAClB,kBAAkB,mgBC/GpF,6oIA8IA,8kED1DI,cAAc,iYACd,mBAAmB,k5BAEnB,kBAAkB,yLAClB,mBAAmB,sIACnB,4BAA4B;;4FAGnB,uBAAuB;kBAfnC,SAAS;+BACE,iBAAiB,aAGhB,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,yBAAyB,EAAE,CAAC,iBACpE,iBAAiB,CAAC,IAAI,WAC5B;wBACP,cAAc;wBACd,mBAAmB;wBAEnB,kBAAkB;wBAClB,mBAAmB;wBACnB,4BAA4B;qBAC7B;oyBAiB+C,UAAU,2FACN,YAAY,gGACF,iBAAiB,iGACf,kBAAkB,iGAClB,kBAAkB,sEAE5B,aAAa,+DACV,WAAW,kEACR,cAAc,oEACZ,gBAAgB","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 input,\n effect,\n inject,\n computed,\n Component,\n LOCALE_ID,\n viewChild,\n ElementRef,\n linkedSignal,\n AfterViewInit,\n booleanAttribute,\n ChangeDetectorRef,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { MatInputModule } from '@angular/material/input';\nimport { MatFormFieldControl } from '@angular/material/form-field';\nimport { AbstractControl, NgControl, Validator } from '@angular/forms';\n\nimport {\n MatEndDate,\n MatStartDate,\n MatDateRangeInput,\n MatDateRangePicker,\n MatDatepickerInput,\n MatDatepickerModule,\n MatCalendarCellClassFunction,\n} from '@angular/material/datepicker';\n\nimport { maskitoDateOptionsGenerator, maskitoDateRangeOptionsGenerator } from '@maskito/kit';\n\nimport {\n dayjs,\n WattRange,\n WattDateRange,\n WattLocaleService,\n WattSupportedLocales,\n} from '@energinet/watt/core/date';\n\nimport { WattFieldComponent } from '@energinet/watt/field';\nimport { WattButtonComponent } from '@energinet/watt/button';\n\nimport {\n WattPickerBase,\n WattPickerValue,\n WattPlaceholderMaskComponent,\n} from '@energinet/watt/picker/__shared';\n\nconst dateShortFormat = 'DD-MM-YYYY';\nexport const danishTimeZoneIdentifier = 'Europe/Copenhagen';\n\n/**\n * Usage:\n * `import { WattDatepickerComponent } from '@energinet/watt/datepicker';`\n *\n * IMPORTANT:\n * The styling is calculated based on our monospaced font.\n */\n@Component({\n selector: 'watt-datepicker',\n templateUrl: './watt-datepicker.component.html',\n styleUrls: ['./watt-datepicker.component.scss'],\n providers: [{ provide: MatFormFieldControl, useExisting: WattDatepickerComponent }],\n encapsulation: ViewEncapsulation.None,\n imports: [\n MatInputModule,\n MatDatepickerModule,\n\n WattFieldComponent,\n WattButtonComponent,\n WattPlaceholderMaskComponent,\n ],\n})\nexport class WattDatepickerComponent extends WattPickerBase implements Validator, AfterViewInit {\n protected override elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n protected override changeDetectionRef = inject(ChangeDetectorRef);\n protected override ngControl = inject(NgControl, { optional: true, self: true });\n private localeService = inject(WattLocaleService);\n private locale = inject<WattSupportedLocales>(LOCALE_ID);\n\n max = input<Date>();\n min = input<Date>();\n label = input<string>('');\n rangeMonthOnlyMode = input(false);\n startAt = input<Date | null>(null);\n dateClass = input<MatCalendarCellClassFunction<Date>>(() => '');\n canStepThroughDays = input(false, { transform: booleanAttribute });\n\n matEndDate = viewChild<MatEndDate<Date | null>>(MatEndDate);\n matStartDate = viewChild<MatStartDate<Date | null>>(MatStartDate);\n matDateRangeInput = viewChild<MatDateRangeInput<Date | null>>(MatDateRangeInput);\n matDatepickerInput = viewChild<MatDatepickerInput<Date | null>>(MatDatepickerInput);\n matDateRangePicker = viewChild<MatDateRangePicker<Date | null>>(MatDateRangePicker);\n\n actualInput = viewChild<ElementRef<HTMLInputElement>>('actualInput');\n override input = viewChild<ElementRef<HTMLInputElement>>('dateInput');\n override endInput = viewChild<ElementRef<HTMLInputElement>>('endDateInput');\n override startInput = viewChild<ElementRef<HTMLInputElement>>('startDateInput');\n\n protected _placeholder = this.getPlaceholderByLocale(this.locale);\n\n rangeSeparator = ' - ';\n\n rangePlaceholder = this.getRangePlaceholder();\n\n inputMask = computed(() =>\n maskitoDateOptionsGenerator({\n mode: 'dd/mm/yyyy',\n separator: '-',\n max: this.max(),\n min: this.min(),\n })\n );\n\n rangeInputMask = computed(() =>\n maskitoDateRangeOptionsGenerator({\n mode: 'dd/mm/yyyy',\n dateSeparator: '-',\n max: this.max(),\n min: this.min(),\n })\n );\n\n getPlaceholderByLocale(locale: WattSupportedLocales): string {\n return locale === 'da' ? 'dd-mm-åååå' : 'dd-mm-yyyy';\n }\n\n getRangePlaceholder(): string {\n return this.placeholder + this.rangeSeparator + this.placeholder;\n }\n\n isPrevDayButtonDisabled = linkedSignal(() => this.isPrevDayBeforeOrEqualToMinDate());\n isNextDayButtonDisabled = linkedSignal(() => this.isNextDayAfterOrEqualToMaxDate());\n\n constructor() {\n super(`watt-datepicker-${WattDatepickerComponent.nextId++}`);\n\n effect(() => {\n const locale = this.localeService.locale();\n this.placeholder = this.getPlaceholderByLocale(locale);\n this.rangePlaceholder = this.getRangePlaceholder();\n });\n\n effect(() => {\n this.rangeMonthOnlyMode();\n this.ngControl?.control?.updateValueAndValidity();\n });\n }\n\n override ngAfterViewInit() {\n super.ngAfterViewInit();\n\n this.ngControl?.control?.addValidators(this.validate);\n }\n\n validate = ({ value }: AbstractControl<WattRange<string>>) => {\n if (!value?.end || !value?.start) return null;\n if (!this.rangeMonthOnlyMode()) return null;\n const start = dayjs(value.start);\n const end = dayjs(value.end);\n return start.isSame(start.startOf('month')) && end.isSame(start.endOf('month'))\n ? null\n : { monthOnly: true };\n };\n\n protected initSingleInput() {\n const matDatepickerInput = this.matDatepickerInput();\n if (this.initialValue && matDatepickerInput) {\n matDatepickerInput.value = this.initialValue;\n this.datepickerClosed();\n }\n }\n\n inputChanged(value: string) {\n const dateString = value.slice(0, this.placeholder.length);\n\n if (dateString.length === 0) {\n this.control?.setValue(null);\n return;\n }\n\n if (dateString.length !== this.placeholder.length) {\n return;\n }\n\n const date = this.parseDateShortFormat(dateString);\n this.control?.setValue(this.formatDateFromViewToModel(date));\n }\n\n datepickerClosed() {\n const matDatepickerInput = this.matDatepickerInput();\n const actualInput = this.actualInput();\n\n if (!actualInput) return;\n\n if (matDatepickerInput && matDatepickerInput.value) {\n this.control?.setValue(matDatepickerInput.value);\n\n actualInput.nativeElement.value = this.formatDateTimeFromModelToView(\n this.formatDateFromViewToModel(matDatepickerInput.value)\n );\n } else {\n actualInput.nativeElement.value = '';\n this.control?.setValue(null);\n }\n\n this.isPrevDayButtonDisabled.set(this.isPrevDayBeforeOrEqualToMinDate());\n this.isNextDayButtonDisabled.set(this.isNextDayAfterOrEqualToMaxDate());\n\n actualInput.nativeElement.dispatchEvent(new InputEvent('input'));\n }\n\n onMonthSelected(date: Date) {\n const matDateRangePicker = this.matDateRangePicker();\n if (matDateRangePicker && this.rangeMonthOnlyMode() && date) {\n matDateRangePicker.select(dayjs(date).startOf('month').toDate());\n matDateRangePicker.select(dayjs(date).endOf('month').toDate());\n matDateRangePicker.close();\n }\n }\n\n protected initRangeInput() {\n const matStartDate = this.matStartDate();\n const matEndDate = this.matEndDate();\n\n if (this.initialValue && matStartDate && matEndDate) {\n matStartDate.value = (this.initialValue as WattDateRange).start;\n matEndDate.value = (this.initialValue as WattDateRange).end;\n this.rangePickerClosed();\n }\n }\n\n clearRangePicker() {\n const actualInput = this.actualInput();\n\n if (!actualInput) return;\n\n this.control?.setValue(null);\n actualInput.nativeElement.value = '';\n actualInput.nativeElement.dispatchEvent(new InputEvent('input'));\n }\n\n rangeInputChanged(value: string) {\n const startDateString = value.slice(0, this.placeholder.length);\n\n if (startDateString.length === 0) {\n this.control?.setValue(null);\n return;\n }\n\n if (startDateString.length !== this.placeholder.length) {\n return;\n }\n\n const start = this.parseDateShortFormat(startDateString);\n const endDateString = value.slice(this.placeholder.length + this.rangeSeparator.length);\n let end = this.setEndDateToDanishTimeZone(endDateString);\n\n if (end !== null) {\n end = this.setToEndOfDay(end);\n this.control?.setValue({ start, end });\n }\n }\n\n rangePickerClosed() {\n const matDateRangeInput = this.matDateRangeInput();\n const actualInput = this.actualInput();\n\n if (!actualInput) return;\n\n if (matDateRangeInput?.value?.start && matDateRangeInput?.value?.end) {\n actualInput.nativeElement.value =\n this.formatDateTimeFromModelToView(\n this.formatDateFromViewToModel(matDateRangeInput.value?.start)\n ) +\n '-' +\n this.formatDateTimeFromModelToView(\n this.formatDateFromViewToModel(matDateRangeInput.value.end)\n );\n\n this.control?.setValue({\n start: this.formatDateFromViewToModel(matDateRangeInput.value.start),\n end: this.formatDateFromViewToModel(matDateRangeInput.value.end),\n });\n } else {\n actualInput.nativeElement.value = '';\n this.control?.setValue(null);\n }\n\n actualInput.nativeElement.dispatchEvent(new InputEvent('input'));\n }\n\n protected setSingleValue(\n value: Exclude<WattPickerValue, WattDateRange>,\n input: HTMLInputElement\n ) {\n const matDatepickerInput = this.matDatepickerInput();\n if (matDatepickerInput) {\n this.setValueToInput(value, input, matDatepickerInput);\n }\n }\n\n protected setRangeValue(\n value: WattDateRange | null,\n startInput: HTMLInputElement,\n endInput: HTMLInputElement\n ) {\n const { start, end } = value ?? {};\n\n const matStartDate = this.matStartDate();\n const matEndDate = this.matEndDate();\n\n if (!matStartDate || !matEndDate) return;\n\n this.setValueToInput(start, startInput, matStartDate);\n this.setValueToInput(end, endInput, matEndDate);\n }\n\n prevDay() {\n this.changeDay(-1);\n }\n\n nextDay() {\n this.changeDay(1);\n }\n\n private changeDay(value: number) {\n const currentDate = this.matDatepickerInput()?.value;\n\n if (currentDate) {\n const newDate = dayjs(currentDate).add(value, 'day').toISOString();\n const newDateFormatted = this.formatDateTimeFromModelToView(newDate);\n\n this.inputChanged(newDateFormatted);\n this.datepickerClosed();\n }\n }\n\n private isPrevDayBeforeOrEqualToMinDate() {\n const min = this.min();\n const selectedDate = this.matDatepickerInput()?.value;\n\n if (!min || !selectedDate) return false;\n\n const isBefore = dayjs(selectedDate).isBefore(min, 'day');\n const isSame = dayjs(selectedDate).isSame(min, 'day');\n\n return isSame || isBefore;\n }\n\n private isNextDayAfterOrEqualToMaxDate() {\n const max = this.max();\n const selectedDate = this.matDatepickerInput()?.value;\n\n if (!max || !selectedDate) return false;\n\n const isAfter = dayjs(selectedDate).isAfter(max, 'day');\n const isSame = dayjs(selectedDate).isSame(max, 'day');\n\n return isSame || isAfter;\n }\n\n private parseDateShortFormat(value: string): Date {\n return dayjs(value, dateShortFormat).toDate();\n }\n\n private setValueToInput<D extends { value: Date | null }>(\n value: string | null | undefined,\n nativeInput: HTMLInputElement,\n matDateInput: D\n ): void {\n nativeInput.value = value ? this.formatDateTimeFromModelToView(value) : '';\n matDateInput.value = value ? dayjs(value).utc().toDate() : null;\n }\n\n /**\n * @ignore\n * Formats Date to full ISO 8601 format (e.g. `2022-08-31T22:00:00.000Z`)\n */\n private formatDateFromViewToModel(value: Date): string {\n return dayjs(value).utc().toISOString();\n }\n\n private formatDateTimeFromModelToView(value: string): string {\n return dayjs(value).tz(danishTimeZoneIdentifier).format(dateShortFormat);\n }\n\n private toDanishTimeZone(value: Date): Date {\n return dayjs(value.toISOString()).tz(danishTimeZoneIdentifier).toDate();\n }\n\n private setToEndOfDay(value: Date): Date {\n return dayjs(value).endOf('day').toDate();\n }\n\n private setEndDateToDanishTimeZone(value: string): Date | null {\n const dateBasedOnShortFormat = this.parseDateShortFormat(value);\n\n let maybeDateInDanishTimeZone: Date | null = null;\n\n if (dayjs(dateBasedOnShortFormat).isValid()) {\n maybeDateInDanishTimeZone = this.toDanishTimeZone(dateBasedOnShortFormat);\n }\n\n return maybeDateInDanishTimeZone;\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<watt-field [control]=\"control\" [label]=\"label()\">\n @if (range) {\n <mat-date-range-input\n [disabled]=\"disabled\"\n [rangePicker]=\"rangeDatepicker\"\n [min]=\"min() ?? null\"\n [max]=\"max() ?? null\"\n (focusin)=\"onFocusIn()\"\n (focusout)=\"onFocusOut($event)\"\n >\n <input\n inert\n aria-label=\"start-date-input\"\n matStartDate\n #startDateInput\n [readOnly]=\"rangeMonthOnlyMode()\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [hidden]=\"true\"\n />\n\n <input\n inert\n aria-label=\"end-date-input\"\n matEndDate\n #endDateInput\n [readOnly]=\"rangeMonthOnlyMode()\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [hidden]=\"true\"\n />\n </mat-date-range-input>\n <input #actualInput class=\"mask-input\" [disabled]=\"disabled\" />\n <watt-placeholder-mask\n [primaryInputElement]=\"actualInput\"\n [mask]=\"rangeInputMask()\"\n [placeholder]=\"rangePlaceholder\"\n (maskApplied)=\"rangeInputChanged($event)\"\n />\n\n <watt-button\n variant=\"icon\"\n icon=\"date\"\n [disabled]=\"disabled\"\n [attr.aria-pressed]=\"false\"\n (click)=\"rangeDatepicker.open()\"\n (focusin)=\"onFocusIn()\"\n (focusout)=\"onFocusOut($event)\"\n />\n\n <mat-date-range-picker\n [panelClass]=\"rangeMonthOnlyMode() ? 'watt-datepicker-range__panel--month-only' : ''\"\n [startView]=\"rangeMonthOnlyMode() ? 'multi-year' : 'month'\"\n [startAt]=\"startAt()\"\n (monthSelected)=\"onMonthSelected($event)\"\n (closed)=\"rangePickerClosed()\"\n #rangeDatepicker\n />\n } @else {\n <input\n inert\n matInput\n tabindex=\"-1\"\n aria-label=\"date-input\"\n #dateInput\n autocomplete=\"off\"\n spellcheck=\"false\"\n [disabled]=\"disabled\"\n [min]=\"min()\"\n [max]=\"max()\"\n [matDatepicker]=\"singleDatepicker\"\n (focusin)=\"onFocusIn()\"\n (focusout)=\"onFocusOut($event)\"\n />\n <input #actualInput class=\"mask-input\" [disabled]=\"disabled\" />\n <watt-placeholder-mask\n [primaryInputElement]=\"actualInput\"\n [mask]=\"inputMask()\"\n [placeholder]=\"placeholder\"\n (maskApplied)=\"inputChanged($event)\"\n />\n\n <watt-button\n wattSuffix\n variant=\"icon\"\n icon=\"date\"\n [disabled]=\"disabled\"\n (click)=\"singleDatepicker.open()\"\n (focusin)=\"onFocusIn()\"\n (focusout)=\"onFocusOut($event)\"\n />\n\n <mat-datepicker\n #singleDatepicker\n panelClass=\"watt-datepicker-single__panel\"\n [dateClass]=\"dateClass()\"\n [startAt]=\"startAt()\"\n (closed)=\"datepickerClosed()\"\n />\n }\n\n <ng-content />\n <ng-content ngProjectAs=\"watt-field-hint\" select=\"watt-field-hint\" />\n <ng-content ngProjectAs=\"watt-field-error\" select=\"watt-field-error\" />\n <ng-content ngProjectAs=\"watt-field-warning\" select=\"watt-field-warning\" />\n</watt-field>\n\n@if (!range && canStepThroughDays()) {\n <span\n class=\"watt-datepicker-single__step-through\"\n [class.watt-datepicker-single__has-label]=\"!!label()\"\n >\n <watt-button\n variant=\"icon\"\n icon=\"left\"\n (click)=\"prevDay()\"\n [disabled]=\"disabled || isPrevDayButtonDisabled()\"\n />\n <watt-button\n variant=\"icon\"\n icon=\"right\"\n (click)=\"nextDay()\"\n [disabled]=\"disabled || isNextDayButtonDisabled()\"\n />\n </span>\n}\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=energinet-watt-picker-timepicker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"energinet-watt-picker-timepicker.js","sourceRoot":"","sources":["../../../../../libs/watt/package/picker/timepicker/energinet-watt-picker-timepicker.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}