@energinet/watt 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/LICENSE +201 -0
  2. package/badge/index.d.ts +17 -0
  3. package/badge/watt-badge.component.d.ts +15 -0
  4. package/breadcrumbs/index.d.ts +17 -0
  5. package/breadcrumbs/watt-breadcrumbs.component.d.ts +23 -0
  6. package/button/index.d.ts +17 -0
  7. package/button/watt-button.component.d.ts +20 -0
  8. package/card/index.d.ts +18 -0
  9. package/card/watt-card-title.component.d.ts +6 -0
  10. package/card/watt-card.component.d.ts +15 -0
  11. package/checkbox/index.d.ts +17 -0
  12. package/checkbox/watt-checkbox.component.d.ts +17 -0
  13. package/chip/index.d.ts +23 -0
  14. package/chip/watt-action-chip.component.d.ts +8 -0
  15. package/chip/watt-chip.component.d.ts +8 -0
  16. package/chip/watt-chip.directive.d.ts +16 -0
  17. package/chip/watt-date-chip.component.d.ts +29 -0
  18. package/chip/watt-date-range-chip.component.d.ts +50 -0
  19. package/chip/watt-filter-chip.component.d.ts +30 -0
  20. package/chip/watt-menu-chip.component.d.ts +30 -0
  21. package/clipboard/index.d.ts +18 -0
  22. package/clipboard/watt-clipboard-intl.service.d.ts +7 -0
  23. package/clipboard/watt-copy-to-clipboard.directive.d.ts +12 -0
  24. package/code/index.d.ts +18 -0
  25. package/code/watt-code.component.d.ts +32 -0
  26. package/code/watt-code.worker.token.d.ts +18 -0
  27. package/core/breakpoints/_breakpoints.import.scss +53 -0
  28. package/core/breakpoints/_include-media.scss +568 -0
  29. package/core/breakpoints/breakpoints-observer.d.ts +39 -0
  30. package/core/breakpoints/breakpoints.d.ts +29 -0
  31. package/core/breakpoints/index.d.ts +18 -0
  32. package/core/color/+storybook/storybook-colors-overview.component.scss +50 -0
  33. package/core/color/color-helper.service.d.ts +12 -0
  34. package/core/color/colors.d.ts +51 -0
  35. package/core/color/index.d.ts +18 -0
  36. package/core/date/dayjs.d.ts +22 -0
  37. package/core/date/index.d.ts +23 -0
  38. package/core/date/watt-danish-datetime.providers.d.ts +1 -0
  39. package/core/date/watt-date-adapter.d.ts +31 -0
  40. package/core/date/watt-date-range.d.ts +25 -0
  41. package/core/date/watt-date.pipe.d.ts +28 -0
  42. package/core/date/watt-format-date.d.ts +11 -0
  43. package/core/date/watt-locale.service.d.ts +13 -0
  44. package/core/styles/@energinet-datahub/watt/_index.scss +52 -0
  45. package/core/styles/@energinet-datahub/watt/_utils.scss +16 -0
  46. package/core/styles/@energinet-datahub/watt/theme/light-theme.scss +71 -0
  47. package/core/styles/@energinet-datahub/watt/theme/material-overwrites/datepicker.scss +69 -0
  48. package/core/styles/@energinet-datahub/watt/theme/material-overwrites/snack-bar.scss +26 -0
  49. package/core/styles/_box-sizing.scss +22 -0
  50. package/core/styles/_chips.scss +22 -0
  51. package/core/styles/_elevation.scss +18 -0
  52. package/core/styles/_hr.scss +20 -0
  53. package/core/styles/_table.scss +89 -0
  54. package/core/styles/_tokens.scss +134 -0
  55. package/core/styles/_tooltip.scss +64 -0
  56. package/core/styles/_variables.scss +106 -0
  57. package/core/styles/_vater.scss +69 -0
  58. package/core/styles/spacing/+storybook/storybook-spacing-overview.component.scss +25 -0
  59. package/core/styles/spacing/_baseline.scss +23 -0
  60. package/core/styles/spacing/_inline.scss +38 -0
  61. package/core/styles/spacing/_inset.scss +61 -0
  62. package/core/styles/spacing/_spacing.import.scss +113 -0
  63. package/core/styles/spacing/_stack.scss +38 -0
  64. package/core/styles/spacing/_variables.scss +14 -0
  65. package/core/styles/spacing/index.scss +18 -0
  66. package/core/styles/typography/+storybook/storybook-typography-overview.component.scss +78 -0
  67. package/core/styles/typography/_rem.scss +24 -0
  68. package/core/styles/typography/_typography.import.scss +195 -0
  69. package/core/styles/typography/index.scss +118 -0
  70. package/data/index.d.ts +20 -0
  71. package/data/watt-data-actions.component.d.ts +5 -0
  72. package/data/watt-data-filters.component.d.ts +5 -0
  73. package/data/watt-data-intl.service.d.ts +15 -0
  74. package/data/watt-data-table.component.d.ts +27 -0
  75. package/datetime-field/index.d.ts +17 -0
  76. package/datetime-field/watt-datetime-field.component.d.ts +39 -0
  77. package/description-list/index.d.ts +17 -0
  78. package/description-list/watt-description-list-item.component.d.ts +27 -0
  79. package/description-list/watt-description-list.component.d.ts +19 -0
  80. package/drawer/index.d.ts +21 -0
  81. package/drawer/watt-drawer-actions.component.d.ts +5 -0
  82. package/drawer/watt-drawer-content.component.d.ts +5 -0
  83. package/drawer/watt-drawer-heading.component.d.ts +5 -0
  84. package/drawer/watt-drawer-topbar.component.d.ts +5 -0
  85. package/drawer/watt-drawer.component.d.ts +61 -0
  86. package/dropdown/index.d.ts +19 -0
  87. package/dropdown/watt-dropdown-option.d.ts +22 -0
  88. package/dropdown/watt-dropdown-value.d.ts +17 -0
  89. package/dropdown/watt-dropdown.component.d.ts +195 -0
  90. package/empty-state/icons/explore.d.ts +5 -0
  91. package/empty-state/icons/no-results.d.ts +5 -0
  92. package/empty-state/icons/power.d.ts +5 -0
  93. package/empty-state/index.d.ts +20 -0
  94. package/empty-state/watt-empty-state.component.d.ts +16 -0
  95. package/expandable-card/index.d.ts +19 -0
  96. package/expandable-card/watt-expandable-card.component.d.ts +34 -0
  97. package/expansion/expansion.component.d.ts +18 -0
  98. package/expansion/index.d.ts +17 -0
  99. package/fesm2022/energinet-watt-badge.mjs +66 -0
  100. package/fesm2022/energinet-watt-badge.mjs.map +1 -0
  101. package/fesm2022/energinet-watt-breadcrumbs.mjs +116 -0
  102. package/fesm2022/energinet-watt-breadcrumbs.mjs.map +1 -0
  103. package/fesm2022/energinet-watt-button.mjs +120 -0
  104. package/fesm2022/energinet-watt-button.mjs.map +1 -0
  105. package/fesm2022/energinet-watt-card.mjs +117 -0
  106. package/fesm2022/energinet-watt-card.mjs.map +1 -0
  107. package/fesm2022/energinet-watt-checkbox.mjs +118 -0
  108. package/fesm2022/energinet-watt-checkbox.mjs.map +1 -0
  109. package/fesm2022/energinet-watt-chip.mjs +760 -0
  110. package/fesm2022/energinet-watt-chip.mjs.map +1 -0
  111. package/fesm2022/energinet-watt-clipboard.mjs +118 -0
  112. package/fesm2022/energinet-watt-clipboard.mjs.map +1 -0
  113. package/fesm2022/energinet-watt-code.mjs +119 -0
  114. package/fesm2022/energinet-watt-code.mjs.map +1 -0
  115. package/fesm2022/energinet-watt-core-breakpoints.mjs +100 -0
  116. package/fesm2022/energinet-watt-core-breakpoints.mjs.map +1 -0
  117. package/fesm2022/energinet-watt-core-color.mjs +127 -0
  118. package/fesm2022/energinet-watt-core-color.mjs.map +1 -0
  119. package/fesm2022/energinet-watt-core-date.mjs +260 -0
  120. package/fesm2022/energinet-watt-core-date.mjs.map +1 -0
  121. package/fesm2022/energinet-watt-data.mjs +286 -0
  122. package/fesm2022/energinet-watt-data.mjs.map +1 -0
  123. package/fesm2022/energinet-watt-datetime-field.mjs +233 -0
  124. package/fesm2022/energinet-watt-datetime-field.mjs.map +1 -0
  125. package/fesm2022/energinet-watt-description-list.mjs +130 -0
  126. package/fesm2022/energinet-watt-description-list.mjs.map +1 -0
  127. package/fesm2022/energinet-watt-drawer.mjs +271 -0
  128. package/fesm2022/energinet-watt-drawer.mjs.map +1 -0
  129. package/fesm2022/energinet-watt-dropdown.mjs +423 -0
  130. package/fesm2022/energinet-watt-dropdown.mjs.map +1 -0
  131. package/fesm2022/energinet-watt-empty-state.mjs +299 -0
  132. package/fesm2022/energinet-watt-empty-state.mjs.map +1 -0
  133. package/fesm2022/energinet-watt-expandable-card.mjs +151 -0
  134. package/fesm2022/energinet-watt-expandable-card.mjs.map +1 -0
  135. package/fesm2022/energinet-watt-expansion.mjs +78 -0
  136. package/fesm2022/energinet-watt-expansion.mjs.map +1 -0
  137. package/fesm2022/energinet-watt-field.mjs +249 -0
  138. package/fesm2022/energinet-watt-field.mjs.map +1 -0
  139. package/fesm2022/energinet-watt-icon-flags.mjs +376 -0
  140. package/fesm2022/energinet-watt-icon-flags.mjs.map +1 -0
  141. package/fesm2022/energinet-watt-icon.mjs +195 -0
  142. package/fesm2022/energinet-watt-icon.mjs.map +1 -0
  143. package/fesm2022/energinet-watt-modal.mjs +260 -0
  144. package/fesm2022/energinet-watt-modal.mjs.map +1 -0
  145. package/fesm2022/energinet-watt-paginator.mjs +164 -0
  146. package/fesm2022/energinet-watt-paginator.mjs.map +1 -0
  147. package/fesm2022/energinet-watt-phone-field.mjs +322 -0
  148. package/fesm2022/energinet-watt-phone-field.mjs.map +1 -0
  149. package/fesm2022/energinet-watt-picker-__shared.mjs +384 -0
  150. package/fesm2022/energinet-watt-picker-__shared.mjs.map +1 -0
  151. package/fesm2022/energinet-watt-picker-datepicker.mjs +430 -0
  152. package/fesm2022/energinet-watt-picker-datepicker.mjs.map +1 -0
  153. package/fesm2022/energinet-watt-picker-timepicker.mjs +394 -0
  154. package/fesm2022/energinet-watt-picker-timepicker.mjs.map +1 -0
  155. package/fesm2022/energinet-watt-progress-tracker.mjs +141 -0
  156. package/fesm2022/energinet-watt-progress-tracker.mjs.map +1 -0
  157. package/fesm2022/energinet-watt-query-params.mjs +95 -0
  158. package/fesm2022/energinet-watt-query-params.mjs.map +1 -0
  159. package/fesm2022/energinet-watt-radio.mjs +125 -0
  160. package/fesm2022/energinet-watt-radio.mjs.map +1 -0
  161. package/fesm2022/energinet-watt-search.mjs +126 -0
  162. package/fesm2022/energinet-watt-search.mjs.map +1 -0
  163. package/fesm2022/energinet-watt-shell.mjs +315 -0
  164. package/fesm2022/energinet-watt-shell.mjs.map +1 -0
  165. package/fesm2022/energinet-watt-slider.mjs +159 -0
  166. package/fesm2022/energinet-watt-slider.mjs.map +1 -0
  167. package/fesm2022/energinet-watt-spinner.mjs +72 -0
  168. package/fesm2022/energinet-watt-spinner.mjs.map +1 -0
  169. package/fesm2022/energinet-watt-stepper.mjs +185 -0
  170. package/fesm2022/energinet-watt-stepper.mjs.map +1 -0
  171. package/fesm2022/energinet-watt-table.mjs +423 -0
  172. package/fesm2022/energinet-watt-table.mjs.map +1 -0
  173. package/fesm2022/energinet-watt-tabs.mjs +254 -0
  174. package/fesm2022/energinet-watt-tabs.mjs.map +1 -0
  175. package/fesm2022/energinet-watt-text-field.mjs +316 -0
  176. package/fesm2022/energinet-watt-text-field.mjs.map +1 -0
  177. package/fesm2022/energinet-watt-textarea-field.mjs +136 -0
  178. package/fesm2022/energinet-watt-textarea-field.mjs.map +1 -0
  179. package/fesm2022/energinet-watt-toast.mjs +174 -0
  180. package/fesm2022/energinet-watt-toast.mjs.map +1 -0
  181. package/fesm2022/energinet-watt-tooltip.mjs +214 -0
  182. package/fesm2022/energinet-watt-tooltip.mjs.map +1 -0
  183. package/fesm2022/energinet-watt-utils-css.mjs +72 -0
  184. package/fesm2022/energinet-watt-utils-css.mjs.map +1 -0
  185. package/fesm2022/energinet-watt-utils-intersection-observer.mjs +83 -0
  186. package/fesm2022/energinet-watt-utils-intersection-observer.mjs.map +1 -0
  187. package/fesm2022/energinet-watt-utils-resize-observer.mjs +144 -0
  188. package/fesm2022/energinet-watt-utils-resize-observer.mjs.map +1 -0
  189. package/fesm2022/energinet-watt-validation-message.mjs +114 -0
  190. package/fesm2022/energinet-watt-validation-message.mjs.map +1 -0
  191. package/fesm2022/energinet-watt-validators.mjs +40 -0
  192. package/fesm2022/energinet-watt-validators.mjs.map +1 -0
  193. package/fesm2022/energinet-watt-vater.mjs +287 -0
  194. package/fesm2022/energinet-watt-vater.mjs.map +1 -0
  195. package/fesm2022/energinet-watt.mjs +47 -0
  196. package/fesm2022/energinet-watt.mjs.map +1 -0
  197. package/field/index.d.ts +20 -0
  198. package/field/watt-field-error.component.d.ts +5 -0
  199. package/field/watt-field-hint.component.d.ts +5 -0
  200. package/field/watt-field-intl.service.d.ts +8 -0
  201. package/field/watt-field.component.d.ts +42 -0
  202. package/icon/flags/index.d.ts +23 -0
  203. package/icon/flags/watt-flag-de.d.ts +5 -0
  204. package/icon/flags/watt-flag-dk.d.ts +5 -0
  205. package/icon/flags/watt-flag-fi.d.ts +5 -0
  206. package/icon/flags/watt-flag-no.d.ts +5 -0
  207. package/icon/flags/watt-flag-pl.d.ts +5 -0
  208. package/icon/flags/watt-flag-se.d.ts +5 -0
  209. package/icon/flags/watt-flag.d.ts +13 -0
  210. package/icon/icon.component.d.ts +20 -0
  211. package/icon/icons.d.ts +82 -0
  212. package/icon/index.d.ts +17 -0
  213. package/index.d.ts +33 -0
  214. package/modal/index.d.ts +18 -0
  215. package/modal/watt-modal.component.d.ts +86 -0
  216. package/modal/watt-modal.service.d.ts +62 -0
  217. package/package.json +237 -0
  218. package/paginator/index.d.ts +18 -0
  219. package/paginator/watt-paginator-intl.service.d.ts +14 -0
  220. package/paginator/watt-paginator.component.d.ts +53 -0
  221. package/phone-field/index.d.ts +18 -0
  222. package/phone-field/watt-phone-field-intl.service.d.ts +14 -0
  223. package/phone-field/watt-phone-field.component.d.ts +75 -0
  224. package/picker/__shared/index.d.ts +19 -0
  225. package/picker/__shared/placeholder-mask/watt-placeholder-mask.component.d.ts +34 -0
  226. package/picker/__shared/watt-picker-base.d.ts +201 -0
  227. package/picker/__shared/watt-picker-value.d.ts +18 -0
  228. package/picker/datepicker/index.d.ts +19 -0
  229. package/picker/datepicker/watt-datepicker-intl.service.d.ts +7 -0
  230. package/picker/datepicker/watt-datepicker.component.d.ts +149 -0
  231. package/picker/timepicker/index.d.ts +17 -0
  232. package/picker/timepicker/maskito-time-range-mask.d.ts +18 -0
  233. package/picker/timepicker/watt-timepicker.component.d.ts +132 -0
  234. package/progress-tracker/index.d.ts +20 -0
  235. package/progress-tracker/watt-progress-tracker-step.component.d.ts +10 -0
  236. package/progress-tracker/watt-progress-tracker.component.d.ts +5 -0
  237. package/query-params/index.d.ts +17 -0
  238. package/query-params/watt-query-params.directive.d.ts +27 -0
  239. package/radio/index.d.ts +17 -0
  240. package/radio/watt-radio.component.d.ts +24 -0
  241. package/search/index.d.ts +17 -0
  242. package/search/watt-search.component.d.ts +31 -0
  243. package/shell/index.d.ts +18 -0
  244. package/shell/nav-list/index.d.ts +18 -0
  245. package/shell/nav-list/watt-expand-on-active-link.directive.d.ts +26 -0
  246. package/shell/nav-list/watt-nav-list-item.component.d.ts +16 -0
  247. package/shell/nav-list/watt-nav-list.component.d.ts +12 -0
  248. package/shell/shell.component.d.ts +28 -0
  249. package/slider/index.d.ts +17 -0
  250. package/slider/watt-slider.component.d.ts +57 -0
  251. package/spinner/index.d.ts +17 -0
  252. package/spinner/watt-spinner.component.d.ts +15 -0
  253. package/stepper/index.d.ts +18 -0
  254. package/stepper/watt-stepper-step.component.d.ts +34 -0
  255. package/stepper/watt-stepper.component.d.ts +40 -0
  256. package/table/index.d.ts +18 -0
  257. package/table/watt-table-data-source.d.ts +37 -0
  258. package/table/watt-table.component.d.ts +239 -0
  259. package/tabs/index.d.ts +26 -0
  260. package/tabs/watt-link-tab.component.d.ts +7 -0
  261. package/tabs/watt-link-tabs.component.d.ts +7 -0
  262. package/tabs/watt-tab.component.d.ts +26 -0
  263. package/tabs/watt-tabs-action.component.d.ts +5 -0
  264. package/tabs/watt-tabs.component.d.ts +36 -0
  265. package/text-field/index.d.ts +17 -0
  266. package/text-field/watt-text-field.component.d.ts +77 -0
  267. package/textarea-field/index.d.ts +17 -0
  268. package/textarea-field/watt-textarea-field.component.d.ts +27 -0
  269. package/toast/index.d.ts +19 -0
  270. package/toast/watt-toast.component.d.ts +47 -0
  271. package/toast/watt-toast.service.d.ts +13 -0
  272. package/tooltip/index.d.ts +17 -0
  273. package/tooltip/watt-tooltip.component.d.ts +47 -0
  274. package/tooltip/watt-tooltip.directive.d.ts +31 -0
  275. package/utils/css/css-custom-properties.service.d.ts +10 -0
  276. package/utils/css/index.d.ts +17 -0
  277. package/utils/intersection-observer/index.d.ts +17 -0
  278. package/utils/intersection-observer/watt-intersection-observer.service.d.ts +21 -0
  279. package/utils/resize-observer/index.d.ts +18 -0
  280. package/utils/resize-observer/watt-resize-observer.directive.d.ts +35 -0
  281. package/utils/resize-observer/watt-resize-observer.service.d.ts +39 -0
  282. package/validation-message/index.d.ts +17 -0
  283. package/validation-message/watt-validation-message.component.d.ts +50 -0
  284. package/validators/index.d.ts +17 -0
  285. package/validators/watt-range.validators.d.ts +23 -0
  286. package/vater/index.d.ts +20 -0
  287. package/vater/types.d.ts +21 -0
  288. package/vater/vater-flex.component.d.ts +19 -0
  289. package/vater/vater-spacer.component.d.ts +5 -0
  290. package/vater/vater-stack.component.d.ts +14 -0
  291. package/vater/vater-utility.directive.d.ts +16 -0
@@ -0,0 +1,113 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ @use "sass:math";
15
+
16
+ @use "./variables" as spaceVariables;
17
+
18
+ // Inset
19
+ @mixin inset-xs {
20
+ padding: var(--watt-space-xs);
21
+ }
22
+
23
+ @mixin inset-s {
24
+ padding: var(--watt-space-s);
25
+ }
26
+
27
+ @mixin inset-m {
28
+ padding: var(--watt-space-m);
29
+ }
30
+
31
+ @mixin inset-l {
32
+ padding: var(--watt-space-l);
33
+ }
34
+
35
+ @mixin inset-xl {
36
+ padding: var(--watt-space-xl);
37
+ }
38
+
39
+ // Inset Squish
40
+ @mixin inset-squish-xs {
41
+ padding: math.div(spaceVariables.$watt-space-baseline, 2) var(--watt-space-xs);
42
+ }
43
+
44
+ @mixin inset-squish-s {
45
+ padding: var(--watt-space-xs) var(--watt-space-s);
46
+ }
47
+
48
+ @mixin inset-squish-m {
49
+ padding: var(--watt-space-s) var(--watt-space-m);
50
+ }
51
+
52
+ @mixin inset-squish-l {
53
+ padding: var(--watt-space-m) var(--watt-space-l);
54
+ }
55
+
56
+ // Inset Stretch
57
+ @mixin inset-stretch-s {
58
+ padding: #{spaceVariables.$watt-space-baseline * 3} var(--watt-space-s);
59
+ }
60
+
61
+ @mixin inset-stretch-m {
62
+ padding: #{spaceVariables.$watt-space-baseline * 6} var(--watt-space-m);
63
+ }
64
+
65
+ // Stack
66
+ @mixin stack-xxs {
67
+ margin: 0 0 math.div(spaceVariables.$watt-space-baseline, 2) 0;
68
+ }
69
+
70
+ @mixin stack-xs {
71
+ margin: 0 0 var(--watt-space-xs) 0;
72
+ }
73
+
74
+ @mixin stack-s {
75
+ margin: 0 0 var(--watt-space-s) 0;
76
+ }
77
+
78
+ @mixin stack-m {
79
+ margin: 0 0 var(--watt-space-m) 0;
80
+ }
81
+
82
+ @mixin stack-l {
83
+ margin: 0 0 var(--watt-space-l) 0;
84
+ }
85
+
86
+ @mixin stack-xl {
87
+ margin: 0 0 var(--watt-space-xl) 0;
88
+ }
89
+
90
+ // Inline
91
+ @mixin inline-xxs {
92
+ margin: 0 math.div(spaceVariables.$watt-space-baseline, 2) 0 0;
93
+ }
94
+
95
+ @mixin inline-xs {
96
+ margin: 0 var(--watt-space-xs) 0 0;
97
+ }
98
+
99
+ @mixin inline-s {
100
+ margin: 0 var(--watt-space-s) 0 0;
101
+ }
102
+
103
+ @mixin inline-m {
104
+ margin: 0 var(--watt-space-m) 0 0;
105
+ }
106
+
107
+ @mixin inline-l {
108
+ margin: 0 var(--watt-space-l) 0 0;
109
+ }
110
+
111
+ @mixin inline-xl {
112
+ margin: 0 var(--watt-space-xl) 0 0;
113
+ }
@@ -0,0 +1,38 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ @use "./spacing.import" as space;
15
+
16
+ .watt-space-stack-xxs {
17
+ @include space.stack-xxs;
18
+ }
19
+
20
+ .watt-space-stack-xs {
21
+ @include space.stack-xs;
22
+ }
23
+
24
+ .watt-space-stack-s {
25
+ @include space.stack-s;
26
+ }
27
+
28
+ .watt-space-stack-m {
29
+ @include space.stack-m;
30
+ }
31
+
32
+ .watt-space-stack-l {
33
+ @include space.stack-l;
34
+ }
35
+
36
+ .watt-space-stack-xl {
37
+ @include space.stack-xl;
38
+ }
@@ -0,0 +1,14 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ $watt-space-baseline: 0.25rem;
@@ -0,0 +1,18 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ @use "./baseline";
15
+
16
+ @use "./inset";
17
+ @use "./stack";
18
+ @use "./inline";
@@ -0,0 +1,78 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ @use "../typography.import" as typography;
15
+
16
+ storybook-typography-overview {
17
+ display: block;
18
+ max-width: 880px;
19
+ }
20
+
21
+ ul {
22
+ list-style: none;
23
+ padding: 0;
24
+ }
25
+
26
+ table caption {
27
+ text-align: left;
28
+ }
29
+
30
+ .font-size-xxl {
31
+ @include typography.font-size("xxl");
32
+ }
33
+
34
+ .font-size-xl {
35
+ @include typography.font-size("xl");
36
+ }
37
+
38
+ .font-size-l {
39
+ @include typography.font-size("l");
40
+ }
41
+
42
+ .font-size-m {
43
+ @include typography.font-size("m");
44
+ }
45
+
46
+ .font-size-s {
47
+ @include typography.font-size("s");
48
+ }
49
+
50
+ .font-weight-light {
51
+ @include typography.font-weight("light");
52
+ }
53
+
54
+ .font-weight-regular {
55
+ @include typography.font-weight("regular");
56
+ }
57
+
58
+ .font-weight-semi-bold {
59
+ @include typography.font-weight("semi-bold");
60
+ }
61
+
62
+ .font-weight-bold {
63
+ @include typography.font-weight("bold");
64
+ }
65
+
66
+ .small-screen {
67
+ h1 {
68
+ @include typography.font-size("xl");
69
+ }
70
+
71
+ h2 {
72
+ @include typography.font-size("l");
73
+ }
74
+
75
+ h3 {
76
+ @include typography.font-size("m");
77
+ }
78
+ }
@@ -0,0 +1,24 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ @use "sass:math";
15
+ $html-font-size: 16px;
16
+
17
+ @function stripUnit($value) {
18
+ @return math.div($value, $value * 0 + 1);
19
+ }
20
+
21
+ @function rem($pxValue) {
22
+ $remValue: math.div(stripUnit($pxValue), stripUnit($html-font-size));
23
+ @return #{$remValue}rem;
24
+ }
@@ -0,0 +1,195 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ @use "sass:map";
15
+
16
+ @use "../../breakpoints/breakpoints.import" as breakpoints;
17
+ @use "./rem" as utils;
18
+
19
+ $primary-font-family: "Open Sans", sans-serif;
20
+ $monospace-font-family: "Droid Sans Mono", monospace;
21
+
22
+ $font-weights: (
23
+ "regular": 400,
24
+ "semi-bold": 600,
25
+ "bold": 700,
26
+ );
27
+
28
+ $font-sizes: (
29
+ "xxl": (
30
+ "font-size": 32px,
31
+ "line-height": 42px,
32
+ ),
33
+ "xl": (
34
+ "font-size": 26px,
35
+ "line-height": 36px,
36
+ ),
37
+ "l": (
38
+ "font-size": 20px,
39
+ "line-height": 28px,
40
+ ),
41
+ "m": (
42
+ "font-size": 16px,
43
+ "line-height": 24px,
44
+ ),
45
+ "s": (
46
+ "font-size": 14px,
47
+ "line-height": 20px,
48
+ ),
49
+ "xs": (
50
+ "font-size": 12px,
51
+ "line-height": 22px,
52
+ ),
53
+ );
54
+
55
+ @mixin font-size($size) {
56
+ $sizes: map.get($font-sizes, $size);
57
+ font-size: utils.rem(map.get($sizes, "font-size"));
58
+ line-height: utils.rem(map.get($sizes, "line-height"));
59
+ }
60
+
61
+ @mixin font-weight($weight) {
62
+ font-weight: map.get($font-weights, $weight);
63
+ }
64
+
65
+ @mixin watt-headline-1 {
66
+ color: var(--watt-typography-headline-color);
67
+ @include font-size("xl");
68
+ @include font-weight("semi-bold");
69
+ text-transform: none;
70
+ letter-spacing: 0;
71
+
72
+ @include breakpoints.media(">=Large") {
73
+ @include font-size("xxl");
74
+ }
75
+ }
76
+
77
+ @mixin watt-headline-2 {
78
+ color: var(--watt-typography-headline-color);
79
+ @include font-size("l");
80
+ @include font-weight("semi-bold");
81
+ text-transform: none;
82
+ letter-spacing: 0;
83
+
84
+ @include breakpoints.media(">=Large") {
85
+ @include font-size("xl");
86
+ }
87
+ }
88
+
89
+ @mixin watt-headline-3 {
90
+ color: var(--watt-typography-headline-color);
91
+ @include font-size("m");
92
+ @include font-weight("semi-bold");
93
+ text-transform: none;
94
+ letter-spacing: 0;
95
+
96
+ @include breakpoints.media(">=Large") {
97
+ @include font-size("l");
98
+ }
99
+ }
100
+
101
+ @mixin watt-headline-4 {
102
+ color: var(--watt-typography-headline-color);
103
+ @include font-size("m");
104
+ @include font-weight("semi-bold");
105
+ text-transform: none;
106
+ letter-spacing: 0;
107
+ }
108
+
109
+ @mixin watt-headline-5 {
110
+ color: var(--watt-typography-headline-color);
111
+ @include font-size("m");
112
+ @include font-weight("semi-bold");
113
+ text-transform: none;
114
+ letter-spacing: 0;
115
+ }
116
+
117
+ @mixin watt-headline-6 {
118
+ @include font-size("s");
119
+ @include font-weight("semi-bold");
120
+ text-transform: none;
121
+ letter-spacing: 0;
122
+ }
123
+
124
+ @mixin watt-text-s {
125
+ @include font-size("s");
126
+ @include font-weight("regular");
127
+ text-transform: none;
128
+ letter-spacing: 0;
129
+ }
130
+
131
+ @mixin watt-text-m {
132
+ @include font-size("m");
133
+ @include font-weight("regular");
134
+ text-transform: none;
135
+ letter-spacing: 0;
136
+ }
137
+
138
+ @mixin watt-text-l {
139
+ @include font-size("l");
140
+ @include font-weight("regular");
141
+ text-transform: none;
142
+ letter-spacing: 0;
143
+ }
144
+
145
+ @mixin watt-text-s-highlighted {
146
+ @include watt-text-s;
147
+ @include font-weight("bold");
148
+ }
149
+
150
+ @mixin watt-text-m-highlighted {
151
+ @include watt-text-m;
152
+ @include font-weight("bold");
153
+ }
154
+
155
+ @mixin watt-text-l-highlighted {
156
+ @include watt-text-l;
157
+ @include font-weight("bold");
158
+ }
159
+
160
+ @mixin watt-button {
161
+ color: var(--watt-typography-button-color);
162
+ @include font-size("m");
163
+ @include font-weight("semi-bold");
164
+ text-transform: none;
165
+ letter-spacing: 0;
166
+ }
167
+
168
+ @mixin watt-label {
169
+ color: var(--watt-typography-label-color);
170
+ @include font-size("s");
171
+ @include font-weight("semi-bold");
172
+ text-transform: uppercase;
173
+ }
174
+
175
+ @mixin watt-step-label {
176
+ color: var(--watt-typography-label-color);
177
+ @include font-size("m");
178
+ @include font-weight("semi-bold");
179
+ text-transform: none;
180
+ }
181
+
182
+ @mixin watt-link {
183
+ color: var(--watt-typography-link-color);
184
+ @include font-size("m");
185
+ @include font-weight("regular");
186
+ text-transform: none;
187
+ letter-spacing: 0;
188
+ text-decoration: underline;
189
+ cursor: pointer;
190
+ }
191
+
192
+ @mixin watt-link-s {
193
+ @include watt-link;
194
+ @include font-size("s");
195
+ }
@@ -0,0 +1,118 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ @use "./typography.import" as typography;
15
+
16
+ body h1,
17
+ .watt-headline-1 {
18
+ @include typography.watt-headline-1;
19
+ }
20
+
21
+ body h2,
22
+ .watt-headline-2 {
23
+ @include typography.watt-headline-2;
24
+ }
25
+
26
+ body h3,
27
+ .watt-headline-3 {
28
+ @include typography.watt-headline-3;
29
+ }
30
+
31
+ body h4,
32
+ .watt-headline-4 {
33
+ @include typography.watt-headline-4;
34
+ }
35
+
36
+ body h5,
37
+ .watt-headline-5 {
38
+ @include typography.watt-headline-5;
39
+ }
40
+
41
+ body h6,
42
+ .watt-headline-6 {
43
+ @include typography.watt-headline-6;
44
+ }
45
+
46
+ .watt-text-l {
47
+ @include typography.watt-text-l;
48
+ }
49
+
50
+ body,
51
+ .watt-text-m {
52
+ @include typography.watt-text-m;
53
+ }
54
+
55
+ small,
56
+ .watt-text-s {
57
+ @include typography.watt-text-s;
58
+ }
59
+
60
+ .watt-text-l-highlighted {
61
+ @include typography.watt-text-l-highlighted;
62
+ }
63
+
64
+ body strong,
65
+ .watt-text-m-highlighted {
66
+ @include typography.watt-text-m-highlighted;
67
+ }
68
+
69
+ body b {
70
+ @include typography.font-weight("semi-bold");
71
+ }
72
+
73
+ .watt-text-s-highlighted {
74
+ @include typography.watt-text-s-highlighted;
75
+ }
76
+
77
+ .watt-button {
78
+ @include typography.watt-button;
79
+ }
80
+
81
+ label,
82
+ .watt-label {
83
+ @include typography.watt-label;
84
+ }
85
+
86
+ a,
87
+ .watt-link {
88
+ @include typography.watt-link;
89
+ }
90
+
91
+ small a,
92
+ .watt-link-s {
93
+ @include typography.watt-link-s;
94
+ }
95
+
96
+ .watt-on-dark {
97
+ &--high-emphasis {
98
+ color: var(--watt-on-dark-high-emphasis);
99
+ }
100
+ &--medium-emphasis {
101
+ color: var(--watt-on-dark-medium-emphasis);
102
+ }
103
+ &--low-emphasis {
104
+ color: var(--watt-on-dark-low-emphasis);
105
+ }
106
+ }
107
+
108
+ .watt-on-light {
109
+ &--high-emphasis {
110
+ color: var(--watt-on-light-high-emphasis);
111
+ }
112
+ &--medium-emphasis {
113
+ color: var(--watt-on-light-medium-emphasis);
114
+ }
115
+ &--low-emphasis {
116
+ color: var(--watt-on-light-low-emphasis);
117
+ }
118
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Energinet DataHub A/S
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License2");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export { WattDataFiltersComponent } from './watt-data-filters.component';
18
+ export { WattDataActionsComponent } from './watt-data-actions.component';
19
+ export { WattDataIntlService } from './watt-data-intl.service';
20
+ export { WattDataTableComponent } from './watt-data-table.component';
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class WattDataActionsComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<WattDataActionsComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<WattDataActionsComponent, "watt-data-actions", never, {}, {}, never, ["*"], true, never>;
5
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class WattDataFiltersComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<WattDataFiltersComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<WattDataFiltersComponent, "watt-data-filters", never, {}, {}, never, ["*"], true, never>;
5
+ }
@@ -0,0 +1,15 @@
1
+ import { Subject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class WattDataIntlService {
4
+ readonly changes: Subject<void>;
5
+ search: string;
6
+ emptyTitle: string;
7
+ emptyText: string;
8
+ emptyRetry: string;
9
+ errorTitle: string;
10
+ errorText: string;
11
+ defaultTitle: string;
12
+ defaultText: string;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<WattDataIntlService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<WattDataIntlService>;
15
+ }
@@ -0,0 +1,27 @@
1
+ import { PageEvent } from '@angular/material/paginator';
2
+ import { WATT_CARD_VARIANT } from '@energinet/watt/card';
3
+ import { WattSearchComponent } from '@energinet/watt/search';
4
+ import { WattTableComponent } from '@energinet/watt/table';
5
+ import { WattDataIntlService } from './watt-data-intl.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class WattDataTableComponent {
8
+ intl: WattDataIntlService;
9
+ error: import("@angular/core").InputSignal<unknown>;
10
+ ready: import("@angular/core").InputSignal<boolean>;
11
+ enableSearch: import("@angular/core").InputSignal<boolean>;
12
+ enableRetry: import("@angular/core").InputSignal<boolean>;
13
+ queryTime: import("@angular/core").InputSignal<number | undefined>;
14
+ searchLabel: import("@angular/core").InputSignal<string | undefined>;
15
+ enablePaginator: import("@angular/core").InputSignal<boolean>;
16
+ count: import("@angular/core").InputSignal<number | undefined>;
17
+ variant: import("@angular/core").InputSignal<WATT_CARD_VARIANT>;
18
+ clear: import("@angular/core").OutputEmitterRef<void>;
19
+ pageChanged: import("@angular/core").OutputEmitterRef<PageEvent>;
20
+ retry: import("@angular/core").OutputEmitterRef<void>;
21
+ table: import("@angular/core").Signal<WattTableComponent<any>>;
22
+ search: import("@angular/core").Signal<WattSearchComponent | undefined>;
23
+ reset: () => void | undefined;
24
+ onSearch(value: string): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<WattDataTableComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<WattDataTableComponent, "watt-data-table", never, { "error": { "alias": "error"; "required": false; "isSignal": true; }; "ready": { "alias": "ready"; "required": false; "isSignal": true; }; "enableSearch": { "alias": "enableSearch"; "required": false; "isSignal": true; }; "enableRetry": { "alias": "enableRetry"; "required": false; "isSignal": true; }; "queryTime": { "alias": "queryTime"; "required": false; "isSignal": true; }; "searchLabel": { "alias": "searchLabel"; "required": false; "isSignal": true; }; "enablePaginator": { "alias": "enablePaginator"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "clear": "clear"; "pageChanged": "pageChanged"; "retry": "retry"; }, ["table"], ["h3", "h4", "*", "watt-data-actions", "watt-button", "watt-data-filters", "watt-table"], true, never>;
27
+ }