@danske/sapphire-angular 1.12.4

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 (354) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +25 -0
  3. package/esm2020/danske-sapphire-angular.mjs +5 -0
  4. package/esm2020/lib/badge/public_api.mjs +3 -0
  5. package/esm2020/lib/badge/src/badge.component.mjs +66 -0
  6. package/esm2020/lib/badge/src/badge.module.mjs +18 -0
  7. package/esm2020/lib/button/public_api.mjs +12 -0
  8. package/esm2020/lib/button/src/button-group.component.mjs +57 -0
  9. package/esm2020/lib/button/src/button-icon.directive.mjs +13 -0
  10. package/esm2020/lib/button/src/button.component.mjs +100 -0
  11. package/esm2020/lib/button/src/button.module.mjs +48 -0
  12. package/esm2020/lib/button/src/icon-button.component.mjs +95 -0
  13. package/esm2020/lib/button/src/toggle-button-required-validator.mjs +27 -0
  14. package/esm2020/lib/button/src/toggle-button.component.mjs +124 -0
  15. package/esm2020/lib/checkbox/public_api.mjs +8 -0
  16. package/esm2020/lib/checkbox/src/checkbox-required-validator.mjs +26 -0
  17. package/esm2020/lib/checkbox/src/checkbox.component.mjs +264 -0
  18. package/esm2020/lib/checkbox/src/checkbox.module.mjs +21 -0
  19. package/esm2020/lib/common/auto-id.decorator.mjs +24 -0
  20. package/esm2020/lib/common/coerce-boolean.decorator.mjs +32 -0
  21. package/esm2020/lib/common/constructor.mjs +2 -0
  22. package/esm2020/lib/common/disabled.mjs +16 -0
  23. package/esm2020/lib/common/focused.directive.mjs +64 -0
  24. package/esm2020/lib/common/placement.mjs +60 -0
  25. package/esm2020/lib/common/platform.mjs +45 -0
  26. package/esm2020/lib/common/pressed.directive.mjs +55 -0
  27. package/esm2020/lib/common/public_api.mjs +4 -0
  28. package/esm2020/lib/common/sapphire-view-encapsulation.mjs +83 -0
  29. package/esm2020/lib/common/scroll-monitor.directive.mjs +63 -0
  30. package/esm2020/lib/common/tabindex.mjs +19 -0
  31. package/esm2020/lib/common/visually-hidden.directive.mjs +32 -0
  32. package/esm2020/lib/contextual-help/public_api.mjs +3 -0
  33. package/esm2020/lib/contextual-help/src/contextual-help.component.mjs +112 -0
  34. package/esm2020/lib/contextual-help/src/contextual-help.module.mjs +33 -0
  35. package/esm2020/lib/core.module.mjs +179 -0
  36. package/esm2020/lib/field/public_api.mjs +8 -0
  37. package/esm2020/lib/field/src/field-control.mjs +17 -0
  38. package/esm2020/lib/field/src/field-error.directive.mjs +20 -0
  39. package/esm2020/lib/field/src/field-label.directive.mjs +17 -0
  40. package/esm2020/lib/field/src/field-note-suffix.directive.mjs +28 -0
  41. package/esm2020/lib/field/src/field-note.directive.mjs +17 -0
  42. package/esm2020/lib/field/src/field.component.mjs +153 -0
  43. package/esm2020/lib/field/src/field.module.mjs +49 -0
  44. package/esm2020/lib/icon/public_api.mjs +4 -0
  45. package/esm2020/lib/icon/src/icon-size-provider.mjs +18 -0
  46. package/esm2020/lib/icon/src/icon.component.mjs +67 -0
  47. package/esm2020/lib/icon/src/icon.module.mjs +18 -0
  48. package/esm2020/lib/label/public_api.mjs +6 -0
  49. package/esm2020/lib/label/src/label.component.mjs +61 -0
  50. package/esm2020/lib/link/public_api.mjs +7 -0
  51. package/esm2020/lib/link/src/link.component.mjs +62 -0
  52. package/esm2020/lib/link/src/link.module.mjs +16 -0
  53. package/esm2020/lib/listbox/public_api.mjs +10 -0
  54. package/esm2020/lib/listbox/src/cdk-option-scroll-issue-patch.mjs +30 -0
  55. package/esm2020/lib/listbox/src/listbox-child.mjs +7 -0
  56. package/esm2020/lib/listbox/src/listbox-input.directive.mjs +42 -0
  57. package/esm2020/lib/listbox/src/listbox-item.component.mjs +49 -0
  58. package/esm2020/lib/listbox/src/listbox.component.mjs +273 -0
  59. package/esm2020/lib/listbox/src/listbox.module.mjs +81 -0
  60. package/esm2020/lib/listbox/src/option-icon.directive.mjs +22 -0
  61. package/esm2020/lib/listbox/src/option-primary-text.directive.mjs +25 -0
  62. package/esm2020/lib/listbox/src/option-secondary-text.directive.mjs +22 -0
  63. package/esm2020/lib/listbox/src/option.component.mjs +58 -0
  64. package/esm2020/lib/listbox/src/section.directive.mjs +46 -0
  65. package/esm2020/lib/menu/public_api.mjs +10 -0
  66. package/esm2020/lib/menu/src/menu-item.component.mjs +45 -0
  67. package/esm2020/lib/menu/src/menu-section.component.mjs +27 -0
  68. package/esm2020/lib/menu/src/menu-trigger.directive.mjs +149 -0
  69. package/esm2020/lib/menu/src/menu.component.mjs +33 -0
  70. package/esm2020/lib/menu/src/menu.module.mjs +39 -0
  71. package/esm2020/lib/modal/public_api.mjs +19 -0
  72. package/esm2020/lib/modal/src/dialog/confirmation-dialog.component.mjs +61 -0
  73. package/esm2020/lib/modal/src/dialog/danger-dialog.component.mjs +62 -0
  74. package/esm2020/lib/modal/src/dialog/dialog-close-button.directive.mjs +18 -0
  75. package/esm2020/lib/modal/src/dialog/dialog-content.directive.mjs +29 -0
  76. package/esm2020/lib/modal/src/dialog/dialog-footer.component.mjs +43 -0
  77. package/esm2020/lib/modal/src/dialog/dialog-header.component.mjs +65 -0
  78. package/esm2020/lib/modal/src/dialog/dialog-trigger.directive.mjs +37 -0
  79. package/esm2020/lib/modal/src/dialog/dialog.component.mjs +60 -0
  80. package/esm2020/lib/modal/src/modal-base.component.mjs +89 -0
  81. package/esm2020/lib/modal/src/modal-close-button.directive.mjs +28 -0
  82. package/esm2020/lib/modal/src/modal-trigger.directive.mjs +42 -0
  83. package/esm2020/lib/modal/src/modal.module.mjs +143 -0
  84. package/esm2020/lib/modal/src/modal.service.mjs +58 -0
  85. package/esm2020/lib/modal/src/panel/inline-panel.component.mjs +15 -0
  86. package/esm2020/lib/modal/src/panel/panel-back-button.directive.mjs +13 -0
  87. package/esm2020/lib/modal/src/panel/panel-close-button.directive.mjs +16 -0
  88. package/esm2020/lib/modal/src/panel/panel-content.component.mjs +38 -0
  89. package/esm2020/lib/modal/src/panel/panel-footer.component.mjs +38 -0
  90. package/esm2020/lib/modal/src/panel/panel-header.component.mjs +68 -0
  91. package/esm2020/lib/modal/src/panel/panel-trigger.directive.mjs +37 -0
  92. package/esm2020/lib/modal/src/panel/panel.component.mjs +37 -0
  93. package/esm2020/lib/notification-badge/public_api.mjs +3 -0
  94. package/esm2020/lib/notification-badge/src/notification-badge.component.mjs +28 -0
  95. package/esm2020/lib/notification-badge/src/notification-badge.module.mjs +18 -0
  96. package/esm2020/lib/pagination/public_api.mjs +3 -0
  97. package/esm2020/lib/pagination/src/pagination.component.mjs +85 -0
  98. package/esm2020/lib/pagination/src/pagination.module.mjs +36 -0
  99. package/esm2020/lib/popover/public_api.mjs +10 -0
  100. package/esm2020/lib/popover/src/popover-close-button.directive.mjs +32 -0
  101. package/esm2020/lib/popover/src/popover-title.directive.mjs +24 -0
  102. package/esm2020/lib/popover/src/popover-trigger.directive.mjs +301 -0
  103. package/esm2020/lib/popover/src/popover.component.mjs +88 -0
  104. package/esm2020/lib/popover/src/popover.module.mjs +38 -0
  105. package/esm2020/lib/radio/public_api.mjs +8 -0
  106. package/esm2020/lib/radio/src/radio-group.component.mjs +195 -0
  107. package/esm2020/lib/radio/src/radio.component.mjs +279 -0
  108. package/esm2020/lib/radio/src/radio.module.mjs +22 -0
  109. package/esm2020/lib/segmented-tabs/public_api.mjs +6 -0
  110. package/esm2020/lib/segmented-tabs/src/segmented-tab-content.directive.mjs +15 -0
  111. package/esm2020/lib/segmented-tabs/src/segmented-tab-label.directive.mjs +20 -0
  112. package/esm2020/lib/segmented-tabs/src/segmented-tab.component.mjs +69 -0
  113. package/esm2020/lib/segmented-tabs/src/segmented-tabs.component.mjs +215 -0
  114. package/esm2020/lib/segmented-tabs/src/segmented-tabs.module.mjs +39 -0
  115. package/esm2020/lib/select/public_api.mjs +10 -0
  116. package/esm2020/lib/select/src/basic-select/basic-select.component.mjs +127 -0
  117. package/esm2020/lib/select/src/common/hidden-select.component.mjs +33 -0
  118. package/esm2020/lib/select/src/common/select-component-base.mjs +267 -0
  119. package/esm2020/lib/select/src/common/select-value-holder.mjs +86 -0
  120. package/esm2020/lib/select/src/select/searchable-select.directive.mjs +90 -0
  121. package/esm2020/lib/select/src/select/select.component.mjs +351 -0
  122. package/esm2020/lib/select/src/select/select.module.mjs +113 -0
  123. package/esm2020/lib/select/src/select/selection-text.directive.mjs +19 -0
  124. package/esm2020/lib/skeleton/public_api.mjs +6 -0
  125. package/esm2020/lib/skeleton/src/skeleton-block.directive.mjs +16 -0
  126. package/esm2020/lib/skeleton/src/skeleton-circle.directive.mjs +16 -0
  127. package/esm2020/lib/skeleton/src/skeleton-text.directive.mjs +43 -0
  128. package/esm2020/lib/skeleton/src/skeleton.component.mjs +29 -0
  129. package/esm2020/lib/skeleton/src/skeleton.module.mjs +37 -0
  130. package/esm2020/lib/skeleton/src/util.mjs +2 -0
  131. package/esm2020/lib/surface/public_api.mjs +7 -0
  132. package/esm2020/lib/surface/src/surface.component.mjs +25 -0
  133. package/esm2020/lib/surface/src/surface.module.mjs +16 -0
  134. package/esm2020/lib/switch/public_api.mjs +4 -0
  135. package/esm2020/lib/switch/src/switch-required-validator.mjs +27 -0
  136. package/esm2020/lib/switch/src/switch.component.mjs +216 -0
  137. package/esm2020/lib/switch/src/switch.module.mjs +19 -0
  138. package/esm2020/lib/table/public_api.mjs +15 -0
  139. package/esm2020/lib/table/src/table-body.directive.mjs +20 -0
  140. package/esm2020/lib/table/src/table-cell.directive.mjs +87 -0
  141. package/esm2020/lib/table/src/table-head-cell.component.mjs +57 -0
  142. package/esm2020/lib/table/src/table-head.directive.mjs +32 -0
  143. package/esm2020/lib/table/src/table-row.directive.mjs +48 -0
  144. package/esm2020/lib/table/src/table-sort-header.directive.mjs +44 -0
  145. package/esm2020/lib/table/src/table-sort.directive.mjs +26 -0
  146. package/esm2020/lib/table/src/table.component.mjs +82 -0
  147. package/esm2020/lib/table/src/table.directive.mjs +20 -0
  148. package/esm2020/lib/table/src/table.module.mjs +74 -0
  149. package/esm2020/lib/text-field/public_api.mjs +12 -0
  150. package/esm2020/lib/text-field/src/text-field-affix.directive.mjs +26 -0
  151. package/esm2020/lib/text-field/src/text-field-input.directive.mjs +51 -0
  152. package/esm2020/lib/text-field/src/text-field-postfix.directive.mjs +13 -0
  153. package/esm2020/lib/text-field/src/text-field-prefix.directive.mjs +13 -0
  154. package/esm2020/lib/text-field/src/text-field-textarea-autosize.directive.mjs +73 -0
  155. package/esm2020/lib/text-field/src/text-field.component.mjs +78 -0
  156. package/esm2020/lib/text-field/src/text-field.module.mjs +67 -0
  157. package/esm2020/lib/theme/public_api.mjs +34 -0
  158. package/esm2020/lib/theme/src/sapphire-overlay-container.service.mjs +38 -0
  159. package/esm2020/lib/theme/src/theme-base.directive.mjs +87 -0
  160. package/esm2020/lib/theme/src/theme-check.directive.mjs +29 -0
  161. package/esm2020/lib/theme/src/theme-root.directive.mjs +23 -0
  162. package/esm2020/lib/theme/src/theme.module.mjs +32 -0
  163. package/esm2020/lib/theme/src/themes.mjs +27 -0
  164. package/esm2020/lib/theme/src/top-level-theme-ref.service.mjs +21 -0
  165. package/esm2020/lib/tooltip/public_api.mjs +5 -0
  166. package/esm2020/lib/tooltip/src/tooltip.component.mjs +47 -0
  167. package/esm2020/lib/tooltip/src/tooltip.directive.mjs +223 -0
  168. package/esm2020/lib/tooltip/src/tooltip.module.mjs +30 -0
  169. package/esm2020/lib/tooltip/src/truncated-with-tooltip.directive.mjs +56 -0
  170. package/esm2020/lib/typography/public_api.mjs +8 -0
  171. package/esm2020/lib/typography/src/heading.component.mjs +44 -0
  172. package/esm2020/lib/typography/src/paragraph.component.mjs +24 -0
  173. package/esm2020/lib/typography/src/typography.module.mjs +19 -0
  174. package/esm2020/public-api.mjs +30 -0
  175. package/fesm2015/danske-sapphire-angular.mjs +8010 -0
  176. package/fesm2015/danske-sapphire-angular.mjs.map +1 -0
  177. package/fesm2020/danske-sapphire-angular.mjs +7890 -0
  178. package/fesm2020/danske-sapphire-angular.mjs.map +1 -0
  179. package/index.d.ts +5 -0
  180. package/lib/badge/public_api.d.ts +2 -0
  181. package/lib/badge/src/badge.component.d.ts +35 -0
  182. package/lib/badge/src/badge.module.d.ts +8 -0
  183. package/lib/button/public_api.d.ts +7 -0
  184. package/lib/button/src/button-group.component.d.ts +26 -0
  185. package/lib/button/src/button-icon.directive.d.ts +5 -0
  186. package/lib/button/src/button.component.d.ts +31 -0
  187. package/lib/button/src/button.module.d.ts +14 -0
  188. package/lib/button/src/icon-button.component.d.ts +26 -0
  189. package/lib/button/src/toggle-button-required-validator.d.ts +10 -0
  190. package/lib/button/src/toggle-button.component.d.ts +39 -0
  191. package/lib/checkbox/public_api.d.ts +3 -0
  192. package/lib/checkbox/src/checkbox-required-validator.d.ts +10 -0
  193. package/lib/checkbox/src/checkbox.component.d.ts +112 -0
  194. package/lib/checkbox/src/checkbox.module.d.ts +11 -0
  195. package/lib/common/auto-id.decorator.d.ts +7 -0
  196. package/lib/common/coerce-boolean.decorator.d.ts +7 -0
  197. package/lib/common/constructor.d.ts +2 -0
  198. package/lib/common/disabled.d.ts +9 -0
  199. package/lib/common/focused.directive.d.ts +30 -0
  200. package/lib/common/placement.d.ts +11 -0
  201. package/lib/common/platform.d.ts +9 -0
  202. package/lib/common/pressed.directive.d.ts +27 -0
  203. package/lib/common/public_api.d.ts +2 -0
  204. package/lib/common/sapphire-view-encapsulation.d.ts +37 -0
  205. package/lib/common/scroll-monitor.directive.d.ts +23 -0
  206. package/lib/common/tabindex.d.ts +12 -0
  207. package/lib/common/visually-hidden.directive.d.ts +11 -0
  208. package/lib/contextual-help/public_api.d.ts +2 -0
  209. package/lib/contextual-help/src/contextual-help.component.d.ts +50 -0
  210. package/lib/contextual-help/src/contextual-help.module.d.ts +7 -0
  211. package/lib/core.module.d.ts +30 -0
  212. package/lib/field/public_api.d.ts +7 -0
  213. package/lib/field/src/field-control.d.ts +16 -0
  214. package/lib/field/src/field-error.directive.d.ts +8 -0
  215. package/lib/field/src/field-label.directive.d.ts +8 -0
  216. package/lib/field/src/field-note-suffix.directive.d.ts +15 -0
  217. package/lib/field/src/field-note.directive.d.ts +8 -0
  218. package/lib/field/src/field.component.d.ts +77 -0
  219. package/lib/field/src/field.module.d.ts +14 -0
  220. package/lib/icon/public_api.d.ts +3 -0
  221. package/lib/icon/src/icon-size-provider.d.ts +23 -0
  222. package/lib/icon/src/icon.component.d.ts +18 -0
  223. package/lib/icon/src/icon.module.d.ts +8 -0
  224. package/lib/label/public_api.d.ts +5 -0
  225. package/lib/label/src/label.component.d.ts +43 -0
  226. package/lib/link/public_api.d.ts +2 -0
  227. package/lib/link/src/link.component.d.ts +13 -0
  228. package/lib/link/src/link.module.d.ts +7 -0
  229. package/lib/listbox/public_api.d.ts +9 -0
  230. package/lib/listbox/src/cdk-option-scroll-issue-patch.d.ts +17 -0
  231. package/lib/listbox/src/listbox-child.d.ts +6 -0
  232. package/lib/listbox/src/listbox-input.directive.d.ts +16 -0
  233. package/lib/listbox/src/listbox-item.component.d.ts +21 -0
  234. package/lib/listbox/src/listbox.component.d.ts +127 -0
  235. package/lib/listbox/src/listbox.module.d.ts +22 -0
  236. package/lib/listbox/src/option-icon.directive.d.ts +10 -0
  237. package/lib/listbox/src/option-primary-text.directive.d.ts +14 -0
  238. package/lib/listbox/src/option-secondary-text.directive.d.ts +10 -0
  239. package/lib/listbox/src/option.component.d.ts +21 -0
  240. package/lib/listbox/src/section.directive.d.ts +14 -0
  241. package/lib/menu/public_api.d.ts +5 -0
  242. package/lib/menu/src/menu-item.component.d.ts +12 -0
  243. package/lib/menu/src/menu-section.component.d.ts +12 -0
  244. package/lib/menu/src/menu-trigger.directive.d.ts +34 -0
  245. package/lib/menu/src/menu.component.d.ts +10 -0
  246. package/lib/menu/src/menu.module.d.ts +13 -0
  247. package/lib/modal/public_api.d.ts +18 -0
  248. package/lib/modal/src/dialog/confirmation-dialog.component.d.ts +43 -0
  249. package/lib/modal/src/dialog/danger-dialog.component.d.ts +44 -0
  250. package/lib/modal/src/dialog/dialog-close-button.directive.d.ts +7 -0
  251. package/lib/modal/src/dialog/dialog-content.directive.d.ts +13 -0
  252. package/lib/modal/src/dialog/dialog-footer.component.d.ts +20 -0
  253. package/lib/modal/src/dialog/dialog-header.component.d.ts +25 -0
  254. package/lib/modal/src/dialog/dialog-trigger.directive.d.ts +13 -0
  255. package/lib/modal/src/dialog/dialog.component.d.ts +33 -0
  256. package/lib/modal/src/modal-base.component.d.ts +33 -0
  257. package/lib/modal/src/modal-close-button.directive.d.ts +9 -0
  258. package/lib/modal/src/modal-trigger.directive.d.ts +24 -0
  259. package/lib/modal/src/modal.module.d.ts +30 -0
  260. package/lib/modal/src/modal.service.d.ts +26 -0
  261. package/lib/modal/src/panel/inline-panel.component.d.ts +6 -0
  262. package/lib/modal/src/panel/panel-back-button.directive.d.ts +5 -0
  263. package/lib/modal/src/panel/panel-close-button.directive.d.ts +6 -0
  264. package/lib/modal/src/panel/panel-content.component.d.ts +14 -0
  265. package/lib/modal/src/panel/panel-footer.component.d.ts +21 -0
  266. package/lib/modal/src/panel/panel-header.component.d.ts +26 -0
  267. package/lib/modal/src/panel/panel-trigger.directive.d.ts +13 -0
  268. package/lib/modal/src/panel/panel.component.d.ts +18 -0
  269. package/lib/notification-badge/public_api.d.ts +2 -0
  270. package/lib/notification-badge/src/notification-badge.component.d.ts +10 -0
  271. package/lib/notification-badge/src/notification-badge.module.d.ts +8 -0
  272. package/lib/pagination/public_api.d.ts +2 -0
  273. package/lib/pagination/src/pagination.component.d.ts +32 -0
  274. package/lib/pagination/src/pagination.module.d.ts +12 -0
  275. package/lib/popover/public_api.d.ts +5 -0
  276. package/lib/popover/src/popover-close-button.directive.d.ts +13 -0
  277. package/lib/popover/src/popover-title.directive.d.ts +11 -0
  278. package/lib/popover/src/popover-trigger.directive.d.ts +86 -0
  279. package/lib/popover/src/popover.component.d.ts +32 -0
  280. package/lib/popover/src/popover.module.d.ts +12 -0
  281. package/lib/radio/public_api.d.ts +3 -0
  282. package/lib/radio/src/radio-group.component.d.ts +65 -0
  283. package/lib/radio/src/radio.component.d.ts +99 -0
  284. package/lib/radio/src/radio.module.d.ts +12 -0
  285. package/lib/segmented-tabs/public_api.d.ts +5 -0
  286. package/lib/segmented-tabs/src/segmented-tab-content.directive.d.ts +6 -0
  287. package/lib/segmented-tabs/src/segmented-tab-label.directive.d.ts +6 -0
  288. package/lib/segmented-tabs/src/segmented-tab.component.d.ts +27 -0
  289. package/lib/segmented-tabs/src/segmented-tabs.component.d.ts +48 -0
  290. package/lib/segmented-tabs/src/segmented-tabs.module.d.ts +13 -0
  291. package/lib/select/public_api.d.ts +5 -0
  292. package/lib/select/src/basic-select/basic-select.component.d.ts +50 -0
  293. package/lib/select/src/common/hidden-select.component.d.ts +19 -0
  294. package/lib/select/src/common/select-component-base.d.ts +109 -0
  295. package/lib/select/src/common/select-value-holder.d.ts +54 -0
  296. package/lib/select/src/select/searchable-select.directive.d.ts +40 -0
  297. package/lib/select/src/select/select.component.d.ts +80 -0
  298. package/lib/select/src/select/select.module.d.ts +26 -0
  299. package/lib/select/src/select/selection-text.directive.d.ts +11 -0
  300. package/lib/skeleton/public_api.d.ts +5 -0
  301. package/lib/skeleton/src/skeleton-block.directive.d.ts +5 -0
  302. package/lib/skeleton/src/skeleton-circle.directive.d.ts +5 -0
  303. package/lib/skeleton/src/skeleton-text.directive.d.ts +13 -0
  304. package/lib/skeleton/src/skeleton.component.d.ts +13 -0
  305. package/lib/skeleton/src/skeleton.module.d.ts +11 -0
  306. package/lib/skeleton/src/util.d.ts +1 -0
  307. package/lib/surface/public_api.d.ts +2 -0
  308. package/lib/surface/src/surface.component.d.ts +11 -0
  309. package/lib/surface/src/surface.module.d.ts +7 -0
  310. package/lib/switch/public_api.d.ts +3 -0
  311. package/lib/switch/src/switch-required-validator.d.ts +10 -0
  312. package/lib/switch/src/switch.component.d.ts +91 -0
  313. package/lib/switch/src/switch.module.d.ts +9 -0
  314. package/lib/table/public_api.d.ts +10 -0
  315. package/lib/table/src/table-body.directive.d.ts +7 -0
  316. package/lib/table/src/table-cell.directive.d.ts +30 -0
  317. package/lib/table/src/table-head-cell.component.d.ts +19 -0
  318. package/lib/table/src/table-head.directive.d.ts +10 -0
  319. package/lib/table/src/table-row.directive.d.ts +16 -0
  320. package/lib/table/src/table-sort-header.directive.d.ts +11 -0
  321. package/lib/table/src/table-sort.directive.d.ts +13 -0
  322. package/lib/table/src/table.component.d.ts +37 -0
  323. package/lib/table/src/table.directive.d.ts +7 -0
  324. package/lib/table/src/table.module.d.ts +19 -0
  325. package/lib/text-field/public_api.d.ts +7 -0
  326. package/lib/text-field/src/text-field-affix.directive.d.ts +10 -0
  327. package/lib/text-field/src/text-field-input.directive.d.ts +16 -0
  328. package/lib/text-field/src/text-field-postfix.directive.d.ts +5 -0
  329. package/lib/text-field/src/text-field-prefix.directive.d.ts +5 -0
  330. package/lib/text-field/src/text-field-textarea-autosize.directive.d.ts +20 -0
  331. package/lib/text-field/src/text-field.component.d.ts +23 -0
  332. package/lib/text-field/src/text-field.module.d.ts +17 -0
  333. package/lib/theme/public_api.d.ts +24 -0
  334. package/lib/theme/src/sapphire-overlay-container.service.d.ts +14 -0
  335. package/lib/theme/src/theme-base.directive.d.ts +14 -0
  336. package/lib/theme/src/theme-check.directive.d.ts +14 -0
  337. package/lib/theme/src/theme-root.directive.d.ts +13 -0
  338. package/lib/theme/src/theme.module.d.ts +14 -0
  339. package/lib/theme/src/themes.d.ts +16 -0
  340. package/lib/theme/src/top-level-theme-ref.service.d.ts +13 -0
  341. package/lib/tooltip/public_api.d.ts +4 -0
  342. package/lib/tooltip/src/tooltip.component.d.ts +10 -0
  343. package/lib/tooltip/src/tooltip.directive.d.ts +39 -0
  344. package/lib/tooltip/src/tooltip.module.d.ts +11 -0
  345. package/lib/tooltip/src/truncated-with-tooltip.directive.d.ts +26 -0
  346. package/lib/typography/public_api.d.ts +3 -0
  347. package/lib/typography/src/heading.component.d.ts +17 -0
  348. package/lib/typography/src/paragraph.component.d.ts +8 -0
  349. package/lib/typography/src/typography.module.d.ts +9 -0
  350. package/package.json +45 -0
  351. package/public-api.d.ts +26 -0
  352. package/src/lib/listbox/src/README.md +67 -0
  353. package/theme-assets/default-dark.css +1 -0
  354. package/theme-assets/default.css +1 -0
@@ -0,0 +1,16 @@
1
+ import { QueryList } from '@angular/core';
2
+ import { TableComponent } from './table.component';
3
+ import { TableCellDirective } from './table-cell.directive';
4
+ import { TableHeadCellComponent } from './table-head-cell.component';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "../../common/sapphire-view-encapsulation";
7
+ export declare class TableRowDirective<D = unknown> {
8
+ table: TableComponent;
9
+ cells: QueryList<TableCellDirective>;
10
+ rowData: D | null;
11
+ private onRowClick;
12
+ getColumnHeadCellProperty(cell: TableCellDirective, property: keyof TableHeadCellComponent): string | import("@danske/sapphire-angular").TableSortHeaderDirective | undefined;
13
+ constructor(table: TableComponent);
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableRowDirective<any>, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowDirective<any>, "tr[sp-table-tr]", never, { "rowData": "rowData"; }, {}, ["cells"], never, false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
16
+ }
@@ -0,0 +1,11 @@
1
+ import { TableSortDirective } from './table-sort.directive';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TableSortHeaderDirective {
4
+ tableSort: TableSortDirective;
5
+ sortHeader: string;
6
+ constructor(tableSort: TableSortDirective);
7
+ emitSortChange(): void;
8
+ isSorted(): boolean;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableSortHeaderDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableSortHeaderDirective, "[spTableSortHeader]", never, { "sortHeader": "spTableSortHeader"; }, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,13 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export type SortDescriptor = {
4
+ column: string | null;
5
+ direction: 'ascending' | 'descending';
6
+ };
7
+ export declare class TableSortDirective {
8
+ sortDescriptor: SortDescriptor;
9
+ sortChange: EventEmitter<SortDescriptor>;
10
+ constructor();
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableSortDirective, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableSortDirective, "sp-table[spTableSort]", never, { "sortDescriptor": "spTableSort"; }, { "sortChange": "spTableSortChange"; }, never, never, false, never>;
13
+ }
@@ -0,0 +1,37 @@
1
+ import { EventEmitter, QueryList } from '@angular/core';
2
+ import { TableHeadCellComponent } from './table-head-cell.component';
3
+ import { TableRowDirective } from './table-row.directive';
4
+ import { TableDirective } from './table.directive';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "../../common/sapphire-view-encapsulation";
7
+ export type RowActionEvent<D> = {
8
+ index: number;
9
+ rowData: D;
10
+ };
11
+ export declare class TableComponent {
12
+ /**
13
+ * Handler that is called when a user performs an action on a row.
14
+ */
15
+ rowAction: EventEmitter<RowActionEvent<unknown>>;
16
+ /**
17
+ * If the table header should be sticky relative to the first ancestor with
18
+ * an `overflow`.
19
+ * `auto` means it is `true` if the table has a custom `height` or
20
+ * `maxHeight` and `false` otherwise.
21
+ */
22
+ stickyHeader: 'on' | 'off' | 'auto';
23
+ /**
24
+ * Whether text within a table cell should be truncated and followed by
25
+ * 3 dots or it should wrap.
26
+ */
27
+ cellOverflow: 'wrap' | 'truncate';
28
+ height: number | undefined;
29
+ maxHeight: number | undefined;
30
+ get isInteractive(): boolean;
31
+ rows?: QueryList<TableRowDirective>;
32
+ headCells?: QueryList<TableHeadCellComponent>;
33
+ table?: TableDirective;
34
+ constructor();
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "sp-table", never, { "stickyHeader": "stickyHeader"; "cellOverflow": "cellOverflow"; "height": "height"; "maxHeight": "maxHeight"; }, { "rowAction": "rowAction"; }, ["table", "rows", "headCells"], ["table", "*"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
37
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../../common/sapphire-view-encapsulation";
3
+ export declare class TableDirective {
4
+ constructor();
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableDirective, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableDirective, "table[sp-table]", never, {}, {}, never, never, false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
7
+ }
@@ -0,0 +1,19 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./table.component";
3
+ import * as i2 from "./table.directive";
4
+ import * as i3 from "./table-body.directive";
5
+ import * as i4 from "./table-head.directive";
6
+ import * as i5 from "./table-row.directive";
7
+ import * as i6 from "./table-head-cell.component";
8
+ import * as i7 from "./table-cell.directive";
9
+ import * as i8 from "./table-sort.directive";
10
+ import * as i9 from "./table-sort-header.directive";
11
+ import * as i10 from "@angular/common";
12
+ import * as i11 from "../../icon/src/icon.module";
13
+ import * as i12 from "../../tooltip/src/truncated-with-tooltip.directive";
14
+ import * as i13 from "../../common/sapphire-view-encapsulation";
15
+ export declare class SapphireTableModule {
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireTableModule, never>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireTableModule, [typeof i1.TableComponent, typeof i2.TableDirective, typeof i3.TableBodyDirective, typeof i4.TableHeadDirective, typeof i5.TableRowDirective, typeof i6.TableHeadCellComponent, typeof i7.TableCellDirective, typeof i8.TableSortDirective, typeof i9.TableSortHeaderDirective], [typeof i10.CommonModule, typeof i11.SapphireIconModule, typeof i12.TruncatedWithTooltipDirective, typeof i13.UseComponentStyles], [typeof i1.TableComponent, typeof i2.TableDirective, typeof i3.TableBodyDirective, typeof i4.TableHeadDirective, typeof i5.TableRowDirective, typeof i6.TableHeadCellComponent, typeof i7.TableCellDirective, typeof i8.TableSortDirective, typeof i9.TableSortHeaderDirective]>;
18
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireTableModule>;
19
+ }
@@ -0,0 +1,7 @@
1
+ export { TextFieldComponent } from './src/text-field.component';
2
+ export { TextFieldInputDirective } from './src/text-field-input.directive';
3
+ export { TextFieldAffixDirective } from './src/text-field-affix.directive';
4
+ export { TextFieldPrefixDirective } from './src/text-field-prefix.directive';
5
+ export { TextFieldPostfixDirective } from './src/text-field-postfix.directive';
6
+ export { TextFieldTextareaAutosizeDirective } from './src/text-field-textarea-autosize.directive';
7
+ export { SapphireTextFieldModule } from './src/text-field.module';
@@ -0,0 +1,10 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "../../common/sapphire-view-encapsulation";
4
+ export declare class TextFieldAffixDirective {
5
+ private _elementRef;
6
+ isTextNode(): boolean;
7
+ constructor(_elementRef: ElementRef<HTMLElement>);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldAffixDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextFieldAffixDirective, "sp-text-field-prefix, sp-text-field-postfix", never, {}, {}, never, never, false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
10
+ }
@@ -0,0 +1,16 @@
1
+ import { DoCheck, ElementRef } from '@angular/core';
2
+ import { BooleanInput } from '@angular/cdk/coercion';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "../../common/sapphire-view-encapsulation";
5
+ export declare class TextFieldInputDirective implements DoCheck {
6
+ private _elementRef;
7
+ readonly textarea: boolean;
8
+ id: string;
9
+ disabled: BooleanInput;
10
+ required: string;
11
+ valueLength: number;
12
+ ngDoCheck(): void;
13
+ constructor(_elementRef: ElementRef<HTMLInputElement | HTMLTextAreaElement>);
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldInputDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextFieldInputDirective, "[spTextFieldInput]", never, { "id": "id"; "disabled": "disabled"; "required": "required"; }, {}, never, never, false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
16
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TextFieldPostfixDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldPostfixDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextFieldPostfixDirective, "sp-text-field-postfix", never, {}, {}, never, never, false, never>;
5
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TextFieldPrefixDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldPrefixDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextFieldPrefixDirective, "sp-text-field-prefix", never, {}, {}, never, never, false, never>;
5
+ }
@@ -0,0 +1,20 @@
1
+ import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
2
+ import { ElementRef } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TextFieldTextareaAutosizeDirective {
5
+ private _elementRef;
6
+ private _minRows;
7
+ private _maxRows;
8
+ private _enabled;
9
+ get minRows(): number | undefined;
10
+ set minRows(value: NumberInput);
11
+ get maxRows(): number | undefined;
12
+ set maxRows(value: NumberInput);
13
+ get enabled(): boolean;
14
+ set enabled(value: BooleanInput);
15
+ constructor(_elementRef: ElementRef<HTMLTextAreaElement>);
16
+ ngDoCheck(): void;
17
+ private updateHeight;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldTextareaAutosizeDirective, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextFieldTextareaAutosizeDirective, "textarea[spTextareaAutosize]", never, { "minRows": "spTextareaAutosizeMinRows"; "maxRows": "spTextareaAutosizeMaxRows"; "enabled": "spTextareaAutosizeEnabled"; }, {}, never, never, false, never>;
20
+ }
@@ -0,0 +1,23 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { NumberInput } from '@angular/cdk/coercion';
3
+ import { FieldComponent, FieldControl } from '../../field/public_api';
4
+ import { TextFieldInputDirective } from './text-field-input.directive';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "../../theme/src/theme-check.directive";
7
+ import * as i2 from "../../common/sapphire-view-encapsulation";
8
+ export declare class TextFieldComponent implements FieldControl {
9
+ field?: FieldComponent | undefined;
10
+ characterCounterMax?: NumberInput;
11
+ inputElement?: ElementRef<HTMLInputElement | HTMLTextAreaElement>;
12
+ _inputDirective?: TextFieldInputDirective;
13
+ private prefixDirective?;
14
+ private postfixDirective?;
15
+ constructor(field?: FieldComponent | undefined);
16
+ isCharacterCounterExceeded(): boolean;
17
+ hasPrefix(): boolean;
18
+ hasPostfix(): boolean;
19
+ isDisabled(): boolean;
20
+ getId(): string | undefined;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldComponent, [{ optional: true; }]>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextFieldComponent, "sp-text-field", never, { "characterCounterMax": "characterCounterMax"; }, {}, ["inputElement", "_inputDirective", "prefixDirective", "postfixDirective"], ["sp-text-field-prefix", "input", "sp-text-field-postfix", "textarea"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
23
+ }
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./text-field.component";
3
+ import * as i2 from "./text-field-input.directive";
4
+ import * as i3 from "./text-field-affix.directive";
5
+ import * as i4 from "./text-field-prefix.directive";
6
+ import * as i5 from "./text-field-postfix.directive";
7
+ import * as i6 from "./text-field-textarea-autosize.directive";
8
+ import * as i7 from "@angular/common";
9
+ import * as i8 from "@angular/forms";
10
+ import * as i9 from "@angular/cdk/portal";
11
+ import * as i10 from "../../label/src/label.component";
12
+ import * as i11 from "../../field/src/field.module";
13
+ export declare class SapphireTextFieldModule {
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireTextFieldModule, never>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireTextFieldModule, [typeof i1.TextFieldComponent, typeof i2.TextFieldInputDirective, typeof i3.TextFieldAffixDirective, typeof i4.TextFieldPrefixDirective, typeof i5.TextFieldPostfixDirective, typeof i6.TextFieldTextareaAutosizeDirective], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.PortalModule, typeof i10.LabelComponent, typeof i11.SapphireFieldModule], [typeof i1.TextFieldComponent, typeof i2.TextFieldInputDirective, typeof i11.SapphireFieldModule, typeof i3.TextFieldAffixDirective, typeof i4.TextFieldPrefixDirective, typeof i5.TextFieldPostfixDirective, typeof i6.TextFieldTextareaAutosizeDirective]>;
16
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireTextFieldModule>;
17
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * IMPORTANT:
3
+ * By re-exporting semantic tokens from @danske/sapphire-css, as an interface to allow users of
4
+ * @danske/sapphire-angular to access design system values, we should be mindful of breaking changes
5
+ * every time @danske/sapphire-css is upgraded to new major versions.
6
+ */
7
+ export { tokens } from '@danske/sapphire-css/themes';
8
+ export type Breakpoint = 'XS' | 'S' | 'M' | 'L' | 'XL';
9
+ export type Breakpoints = Record<Breakpoint, number>;
10
+ /**
11
+ * Exporting "tokens.size.breakpoint" is not good enough.
12
+ * That is a map from breakpoint name to a a string which is the css variable
13
+ * that will have the breakpoint size. This is not useful in a JS context.
14
+ *
15
+ * TODO: export something which uses the "tokens.size.breakpoint" and offers
16
+ * something usabled in JS.
17
+ */
18
+ export declare const DEFAULT_BREAKPOINTS: Breakpoints;
19
+ export { SapphireThemeModule } from './src/theme.module';
20
+ export { SapphireOverlayContainer } from './src/sapphire-overlay-container.service';
21
+ export { ThemeDefaultDark, ThemeDefault } from './src/themes';
22
+ export { ThemeRootDirective } from './src/theme-root.directive';
23
+ export { ThemeBaseDirective } from './src/theme-base.directive';
24
+ export { ThemeCheckDirective } from './src/theme-check.directive';
@@ -0,0 +1,14 @@
1
+ import { OverlayContainer } from '@angular/cdk/overlay';
2
+ import { Platform } from '@angular/cdk/platform';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Sapphire theme aware overlay container.
6
+ */
7
+ export declare class SapphireOverlayContainer extends OverlayContainer {
8
+ private topLevelThemeRef;
9
+ private theme;
10
+ constructor(document: Document, platform: Platform);
11
+ _createContainer(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireOverlayContainer, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<SapphireOverlayContainer>;
14
+ }
@@ -0,0 +1,14 @@
1
+ import { ElementRef, Renderer2 } from '@angular/core';
2
+ import { TopLevelThemeRef } from './top-level-theme-ref.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ThemeBaseDirective {
5
+ private elementRef;
6
+ private renderer;
7
+ private themeRef;
8
+ constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2, themeRef: TopLevelThemeRef, parentTheme: ThemeBaseDirective);
9
+ applyOnDomNode(element: HTMLElement): void;
10
+ private getUniqueAttribute;
11
+ equals(theme: ThemeBaseDirective): boolean;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeBaseDirective, [null, null, null, { optional: true; skipSelf: true; }]>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThemeBaseDirective, "[_sp-theme-base]", never, {}, {}, never, never, true, never>;
14
+ }
@@ -0,0 +1,14 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ThemeBaseDirective } from './theme-base.directive';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Checks if Sapphire theme is provided, and throws otherwise.
6
+ * Useful to be added in hostDirectives of components.
7
+ */
8
+ export declare class ThemeCheckDirective implements OnInit {
9
+ private theme;
10
+ constructor(theme: ThemeBaseDirective);
11
+ ngOnInit(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeCheckDirective, [{ optional: true; }]>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThemeCheckDirective, never, never, {}, {}, never, never, true, never>;
14
+ }
@@ -0,0 +1,13 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { ThemeBaseDirective } from './theme-base.directive';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Applies the current theme style on an element which is not under the rendered
6
+ * sp-theme, in DOM tree. Useful for non-Sapphire portal components that render things in body.
7
+ *
8
+ */
9
+ export declare class ThemeRootDirective {
10
+ constructor(elementRef: ElementRef, theme: ThemeBaseDirective);
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeRootDirective, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThemeRootDirective, "[sp-theme-root]", never, {}, {}, never, never, true, never>;
13
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/cdk/overlay";
3
+ import * as i2 from "./theme-root.directive";
4
+ import * as i3 from "./themes";
5
+ /**
6
+ * - Makes sure currently applied theme is applied on overlays which are rendered as portal
7
+ * - Provides `THEME_ATTRIBUTE` injectable via sp-theme component. Useful when a custom component
8
+ * needs to render a portal with the currently applied theme class.
9
+ */
10
+ export declare class SapphireThemeModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireThemeModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireThemeModule, never, [typeof i1.OverlayModule, typeof i2.ThemeRootDirective, typeof i3.ThemeDefault, typeof i3.ThemeDefaultDark], [typeof i2.ThemeRootDirective, typeof i3.ThemeDefault, typeof i3.ThemeDefaultDark]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireThemeModule>;
14
+ }
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./theme-base.directive";
3
+ /**
4
+ * Sapphire default theme
5
+ */
6
+ export declare class ThemeDefault {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeDefault, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThemeDefault, "sp-theme-default", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.ThemeBaseDirective; inputs: {}; outputs: {}; }]>;
9
+ }
10
+ /**
11
+ * Sapphire default theme
12
+ */
13
+ export declare class ThemeDefaultDark {
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeDefaultDark, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThemeDefaultDark, "sp-theme-default-dark", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.ThemeBaseDirective; inputs: {}; outputs: {}; }]>;
16
+ }
@@ -0,0 +1,13 @@
1
+ import { ThemeBaseDirective } from './theme-base.directive';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * A reference to the topmost theme in the app. Is needed for providing root-level services
5
+ * that need the theme.
6
+ */
7
+ export declare class TopLevelThemeRef {
8
+ theme?: ThemeBaseDirective;
9
+ setTheme(theme: ThemeBaseDirective): void;
10
+ getTheme(): ThemeBaseDirective | undefined;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<TopLevelThemeRef, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<TopLevelThemeRef>;
13
+ }
@@ -0,0 +1,4 @@
1
+ export * from './src/tooltip.module';
2
+ export * from './src/tooltip.component';
3
+ export * from './src/tooltip.directive';
4
+ export * from './src/truncated-with-tooltip.directive';
@@ -0,0 +1,10 @@
1
+ import { TooltipDirective } from './tooltip.directive';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TooltipComponent {
4
+ tooltipDirective: TooltipDirective;
5
+ onMouseEnter(): void;
6
+ onMouseLeave(): void;
7
+ constructor(tooltipDirective: TooltipDirective);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "sp-tooltip", never, {}, {}, never, never, false, never>;
10
+ }
@@ -0,0 +1,39 @@
1
+ import { Overlay } from '@angular/cdk/overlay';
2
+ import { ElementRef } from '@angular/core';
3
+ import { NumberInput } from '@angular/cdk/coercion';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TooltipDirective {
6
+ private _overlay;
7
+ private _elementRef;
8
+ private _overlayRef;
9
+ private _portal;
10
+ private _closeTimeout;
11
+ id: string;
12
+ /**
13
+ * The string to show inside the tooltip or null to disable it.
14
+ */
15
+ tooltipText: string | null;
16
+ /**
17
+ * The amount of time that has to pass before tooltip will show
18
+ * upon user interaction activating it – aka "warm up" period.
19
+ *
20
+ * @default 500
21
+ */
22
+ get delay(): number | undefined;
23
+ set delay(value: NumberInput);
24
+ _delay: number;
25
+ private handleGlobalEscapeKeyEvent;
26
+ private onFocus;
27
+ private onBlur;
28
+ placement: 'start' | 'center' | 'end';
29
+ isOpen: () => boolean | undefined;
30
+ private ensureTooltipEntry;
31
+ private closeOpenTooltips;
32
+ show: () => void;
33
+ hide: (immediate?: boolean) => void;
34
+ warmup: () => void;
35
+ private attachTooltipPortal;
36
+ constructor(_overlay: Overlay, _elementRef: ElementRef<HTMLElement>);
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[spTooltip]", ["spTooltip"], { "tooltipText": "spTooltip"; "delay": "spTooltipDelay"; "placement": "spTooltipPlacement"; }, {}, never, never, true, never>;
39
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./tooltip.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/cdk/overlay";
5
+ import * as i4 from "./tooltip.directive";
6
+ import * as i5 from "./truncated-with-tooltip.directive";
7
+ export declare class SapphireTooltipModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireTooltipModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireTooltipModule, [typeof i1.TooltipComponent], [typeof i2.CommonModule, typeof i3.OverlayModule, typeof i4.TooltipDirective, typeof i5.TruncatedWithTooltipDirective], [typeof i4.TooltipDirective, typeof i5.TruncatedWithTooltipDirective]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireTooltipModule>;
11
+ }
@@ -0,0 +1,26 @@
1
+ import { AfterContentChecked, ElementRef } from '@angular/core';
2
+ import { TooltipDirective } from './tooltip.directive';
3
+ import { BooleanInput } from '@angular/cdk/coercion';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "./tooltip.directive";
6
+ /**
7
+ * Shows a tooltip with the text content of the host element, if the content is
8
+ * overflowing. It also applies inline styles to hide the overflow and show the
9
+ * ellipsis.
10
+ *
11
+ * @example <something spTruncatedWithTooltip>Overflow will always be truncated</something>
12
+ * @example <something spTruncatedWithTooltip="someCondition">Overflow will be truncated only if someCondition is truthy</something>
13
+ */
14
+ export declare class TruncatedWithTooltipDirective implements AfterContentChecked {
15
+ private tooltipDirective;
16
+ private elementRef;
17
+ /**
18
+ * Whether the directive is enabled.
19
+ */
20
+ enabled: BooleanInput;
21
+ constructor(tooltipDirective: TooltipDirective, elementRef: ElementRef);
22
+ ngAfterContentChecked(): void;
23
+ private hasOverflow;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruncatedWithTooltipDirective, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TruncatedWithTooltipDirective, "[spTruncatedWithTooltip]", never, { "enabled": "spTruncatedWithTooltip"; }, {}, never, never, true, [{ directive: typeof i1.TooltipDirective; inputs: {}; outputs: {}; }]>;
26
+ }
@@ -0,0 +1,3 @@
1
+ export * from './src/heading.component';
2
+ export * from './src/paragraph.component';
3
+ export * from './src/typography.module';
@@ -0,0 +1,17 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "../../theme/src/theme-check.directive";
4
+ import * as i2 from "../../common/sapphire-view-encapsulation";
5
+ type HeadingLevel = '' | '1' | '2' | '3' | '4' | '5' | '6';
6
+ export declare class HeadingComponent {
7
+ private elementRef;
8
+ private levelInput?;
9
+ set level(value: HeadingLevel);
10
+ fontVariant?: 'default' | 'alternative';
11
+ get level(): HeadingLevel;
12
+ constructor(elementRef: ElementRef);
13
+ private getLevelFromElement;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeadingComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeadingComponent, "h1[sp-heading],h2[sp-heading],h3[sp-heading],h4[sp-heading],h5[sp-heading],h6[sp-heading]", never, { "level": "sp-heading"; "fontVariant": "fontVariant"; }, {}, never, ["*"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
16
+ }
17
+ export {};
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../../theme/src/theme-check.directive";
3
+ import * as i2 from "../../common/sapphire-view-encapsulation";
4
+ export declare class ParagraphComponent {
5
+ size: 'default' | 'small' | 'extraSmall';
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ParagraphComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<ParagraphComponent, "p[sp-paragraph], div[sp-paragraph]", never, { "size": "size"; }, {}, never, ["*"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
8
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./heading.component";
3
+ import * as i2 from "./paragraph.component";
4
+ import * as i3 from "@angular/common";
5
+ export declare class SapphireTypographyModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireTypographyModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireTypographyModule, [typeof i1.HeadingComponent, typeof i2.ParagraphComponent], [typeof i3.CommonModule], [typeof i1.HeadingComponent, typeof i2.ParagraphComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireTypographyModule>;
9
+ }
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@danske/sapphire-angular",
3
+ "version": "1.12.4",
4
+ "license": "SEE LICENSE IN LICENSE",
5
+ "description": "The Angular implementation of the Sapphire Design System from Danske Bank A/S",
6
+ "module": "fesm2015/danske-sapphire-angular.mjs",
7
+ "typings": "index.d.ts",
8
+ "publishConfig": {
9
+ "directory": "build"
10
+ },
11
+ "peerDependencies": {
12
+ "@angular/cdk": "^15.1.3 || ^16.0.0",
13
+ "@angular/common": "^15.0.0 || ^16.0.0",
14
+ "@angular/core": "^15.0.0 || ^16.0.0",
15
+ "@angular/forms": "^15.0.0 || ^16.0.0",
16
+ "@danske/sapphire-icons": "^1.0.2"
17
+ },
18
+ "dependencies": {
19
+ "@danske/sapphire-css": "^26.0.1",
20
+ "tslib": "^2.3.0"
21
+ },
22
+ "gitHead": "ed1cb560f420025afe2f9ec452ddc5334241a8be",
23
+ "es2020": "fesm2020/danske-sapphire-angular.mjs",
24
+ "esm2020": "esm2020/danske-sapphire-angular.mjs",
25
+ "fesm2020": "fesm2020/danske-sapphire-angular.mjs",
26
+ "fesm2015": "fesm2015/danske-sapphire-angular.mjs",
27
+ "exports": {
28
+ "./package.json": {
29
+ "default": "./package.json"
30
+ },
31
+ ".": {
32
+ "types": "./index.d.ts",
33
+ "esm2020": "./esm2020/danske-sapphire-angular.mjs",
34
+ "es2020": "./fesm2020/danske-sapphire-angular.mjs",
35
+ "es2015": "./fesm2015/danske-sapphire-angular.mjs",
36
+ "node": "./fesm2015/danske-sapphire-angular.mjs",
37
+ "default": "./fesm2020/danske-sapphire-angular.mjs"
38
+ },
39
+ "./theme-assets/*": {
40
+ "style": "./theme-assets/*",
41
+ "sass": "./theme-assets/*"
42
+ }
43
+ },
44
+ "sideEffects": false
45
+ }
@@ -0,0 +1,26 @@
1
+ export * from './lib/typography/public_api';
2
+ export * from './lib/button/public_api';
3
+ export * from './lib/checkbox/public_api';
4
+ export * from './lib/icon/public_api';
5
+ export * from './lib/menu/public_api';
6
+ export * from './lib/popover/public_api';
7
+ export * from './lib/text-field/public_api';
8
+ export * from './lib/select/public_api';
9
+ export * from './lib/listbox/public_api';
10
+ export * from './lib/link/public_api';
11
+ export * from './lib/segmented-tabs/public_api';
12
+ export * from './lib/table/public_api';
13
+ export * from './lib/notification-badge/public_api';
14
+ export * from './lib/switch/public_api';
15
+ export * from './lib/theme/public_api';
16
+ export * from './lib/radio/public_api';
17
+ export * from './lib/tooltip/public_api';
18
+ export * from './lib/modal/public_api';
19
+ export * from './lib/skeleton/public_api';
20
+ export * from './lib/pagination/public_api';
21
+ export * from './lib/contextual-help/public_api';
22
+ export * from './lib/field/public_api';
23
+ export * from './lib/surface/public_api';
24
+ export * from './lib/common/public_api';
25
+ export * from './lib/core.module';
26
+ export * from './lib/badge/public_api';