@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,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./contextual-help.component";
3
+ export declare class SapphireContextualHelpModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireContextualHelpModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireContextualHelpModule, never, [typeof i1.ContextualHelpComponent, typeof i1.ContextualHelpHeaderDirective, typeof i1.ContextualHelpContentDirective, typeof i1.ContextualHelpFooterDirective], [typeof i1.ContextualHelpComponent, typeof i1.ContextualHelpHeaderDirective, typeof i1.ContextualHelpContentDirective, typeof i1.ContextualHelpFooterDirective]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireContextualHelpModule>;
7
+ }
@@ -0,0 +1,30 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "./theme/src/theme.module";
4
+ import * as i3 from "./button/src/button.module";
5
+ import * as i4 from "./checkbox/src/checkbox.module";
6
+ import * as i5 from "./icon/src/icon.module";
7
+ import * as i6 from "./typography/src/typography.module";
8
+ import * as i7 from "./menu/src/menu.module";
9
+ import * as i8 from "./popover/src/popover.module";
10
+ import * as i9 from "./text-field/src/text-field.module";
11
+ import * as i10 from "./select/src/select/select.module";
12
+ import * as i11 from "./table/src/table.module";
13
+ import * as i12 from "./link/src/link.module";
14
+ import * as i13 from "./segmented-tabs/src/segmented-tabs.module";
15
+ import * as i14 from "./notification-badge/src/notification-badge.module";
16
+ import * as i15 from "./switch/src/switch.module";
17
+ import * as i16 from "./radio/src/radio.module";
18
+ import * as i17 from "./tooltip/src/tooltip.module";
19
+ import * as i18 from "./listbox/src/listbox.module";
20
+ import * as i19 from "./modal/src/modal.module";
21
+ import * as i20 from "./skeleton/src/skeleton.module";
22
+ import * as i21 from "./pagination/src/pagination.module";
23
+ import * as i22 from "./contextual-help/src/contextual-help.module";
24
+ import * as i23 from "./surface/src/surface.module";
25
+ import * as i24 from "./badge/src/badge.module";
26
+ export declare class SapphireCoreModule {
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireCoreModule, never>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireCoreModule, never, [typeof i1.CommonModule, typeof i2.SapphireThemeModule, typeof i3.SapphireButtonModule, typeof i4.SapphireCheckboxModule, typeof i5.SapphireIconModule, typeof i6.SapphireTypographyModule, typeof i7.SapphireMenuModule, typeof i8.SapphirePopoverModule, typeof i9.SapphireTextFieldModule, typeof i10.SapphireSelectModule, typeof i11.SapphireTableModule, typeof i12.SapphireLinkModule, typeof i13.SapphireSegmentedTabsModule, typeof i14.SapphireNotificationBadgeModule, typeof i15.SapphireSwitchModule, typeof i16.SapphireRadioModule, typeof i17.SapphireTooltipModule, typeof i18.SapphireListboxModule, typeof i19.SapphireModalModule, typeof i20.SapphireSkeletonModule, typeof i21.SapphirePaginationModule, typeof i22.SapphireContextualHelpModule, typeof i23.SapphireSurfaceModule, typeof i24.SapphireBadgeModule], [typeof i3.SapphireButtonModule, typeof i5.SapphireIconModule, typeof i6.SapphireTypographyModule, typeof i4.SapphireCheckboxModule, typeof i7.SapphireMenuModule, typeof i8.SapphirePopoverModule, typeof i9.SapphireTextFieldModule, typeof i11.SapphireTableModule, typeof i12.SapphireLinkModule, typeof i13.SapphireSegmentedTabsModule, typeof i2.SapphireThemeModule, typeof i10.SapphireSelectModule, typeof i14.SapphireNotificationBadgeModule, typeof i15.SapphireSwitchModule, typeof i16.SapphireRadioModule, typeof i17.SapphireTooltipModule, typeof i18.SapphireListboxModule, typeof i19.SapphireModalModule, typeof i20.SapphireSkeletonModule, typeof i21.SapphirePaginationModule, typeof i22.SapphireContextualHelpModule, typeof i23.SapphireSurfaceModule, typeof i24.SapphireBadgeModule]>;
29
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireCoreModule>;
30
+ }
@@ -0,0 +1,7 @@
1
+ export { SapphireFieldModule } from './src/field.module';
2
+ export { FieldComponent } from './src/field.component';
3
+ export { FieldNoteDirective } from './src/field-note.directive';
4
+ export { FieldErrorDirective } from './src/field-error.directive';
5
+ export { FieldLabelDirective } from './src/field-label.directive';
6
+ export { FieldControl } from './src/field-control';
7
+ export { FieldNoteSuffixDirective } from './src/field-note-suffix.directive';
@@ -0,0 +1,16 @@
1
+ import { FocusOrigin } from '@angular/cdk/a11y';
2
+ /**
3
+ * Injection token which is provided by components that are meant to be rendered
4
+ * within sp-field.
5
+ */
6
+ export declare abstract class FieldControl {
7
+ focus?(origin: FocusOrigin): void;
8
+ /**
9
+ * The id of the control, to be used to associate the label with the control,
10
+ * if the control is a
11
+ * [labelable](https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#labelable)
12
+ * element.
13
+ */
14
+ getId?(): string | undefined;
15
+ abstract isDisabled(): boolean;
16
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Used inside sp-field to provide an error message for the field.
4
+ */
5
+ export declare class FieldErrorDirective {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldErrorDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FieldErrorDirective, "sp-field-error", never, {}, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Used inside sp-field to provide the content of field's label.
4
+ */
5
+ export declare class FieldLabelDirective {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldLabelDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FieldLabelDirective, "sp-field-label", never, {}, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1,15 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { FieldComponent } from './field.component';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Marks an element as something that should be rendered in field note affix slot.
6
+ * @internal
7
+ */
8
+ export declare class FieldNoteSuffixDirective {
9
+ private elementRef;
10
+ private field;
11
+ constructor(elementRef: ElementRef<HTMLElement>, field: FieldComponent);
12
+ ngOnDestroy(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldNoteSuffixDirective, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FieldNoteSuffixDirective, "[spFieldNoteSuffix]", never, {}, {}, never, never, true, never>;
15
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Used inside field to provide a note for the field.
4
+ */
5
+ export declare class FieldNoteDirective {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldNoteDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FieldNoteDirective, "sp-field-note", never, {}, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1,77 @@
1
+ import { AfterContentInit, AfterViewChecked, ChangeDetectorRef } from '@angular/core';
2
+ import { FieldNoteDirective } from './field-note.directive';
3
+ import { FieldErrorDirective } from './field-error.directive';
4
+ import { LabelComponent } from '../../label/src/label.component';
5
+ import { BooleanInput } from '@angular/cdk/coercion';
6
+ import { FieldControl } from './field-control';
7
+ import { FieldLabelDirective } from './field-label.directive';
8
+ import { DomPortal } from '@angular/cdk/portal';
9
+ import { IconSizeProvider } from '../../icon/src/icon-size-provider';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "../../common/sapphire-view-encapsulation";
12
+ /**
13
+ * A field is a common container for labelable controls such as select, radio group, text field,
14
+ * etc.
15
+ * In addition to the field control (sp-select, sp-radio-group, sp-text-field), the following
16
+ * components can be used inside a field:
17
+ * - sp-field-label: is used to provide the label text for the field.
18
+ * - sp-contextual-label: is placed in the label area, next to the label text
19
+ * - sp-field-error: is used to provide an error message, which is placed below the field's
20
+ * control.
21
+ * - sp-field-note: is used to provide a note, which is placed below the field's control. Only
22
+ * shown
23
+ * when there is no error
24
+ * - sp-field-note-suffix: is used to provide a suffix, which is placed on the right side of the
25
+ * note area.
26
+ *
27
+ * Additionally, field supports:
28
+ * - Label placement either above (default) or on the side of the control.
29
+ * - Associating label with the control, so that clicking the label focuses the control, showing
30
+ * focus ring.
31
+ * - Optionally showing necessity indicator in the label. Fields necessity (required or optional)
32
+ * is determined based on the presence of @angular/form's {@link RequiredValidator}.
33
+ */
34
+ export declare class FieldComponent implements AfterContentInit, AfterViewChecked, IconSizeProvider {
35
+ private changeDetectorRef;
36
+ /**
37
+ * Whether the necessity indicator should be visible.
38
+ */
39
+ necessityIndicator?: BooleanInput;
40
+ /**
41
+ * Label placement with respect to the form control.
42
+ * @default "above"
43
+ */
44
+ labelPlacement?: 'side' | 'above';
45
+ /**
46
+ * @default "large"
47
+ */
48
+ size?: 'large' | 'medium';
49
+ note?: FieldNoteDirective;
50
+ error?: FieldErrorDirective;
51
+ label?: LabelComponent;
52
+ _fieldLabel?: FieldLabelDirective;
53
+ /**
54
+ * Focusable, labelable control. Components like Select, RadioGroup or TextField,
55
+ * that are meant to rendered inside sp-field, provide FieldControl.
56
+ */
57
+ control?: FieldControl;
58
+ private requiredValidator?;
59
+ /**
60
+ * Is set via field-note-affix directive. ContentChild query can't be used since we need
61
+ * to query from content -> view in some cases.
62
+ * @internal
63
+ */
64
+ _noteSuffixPortal: DomPortal<HTMLElement> | null;
65
+ private changed;
66
+ constructor(changeDetectorRef: ChangeDetectorRef);
67
+ ngAfterContentInit(): void;
68
+ ngAfterViewChecked(): void;
69
+ /**
70
+ * Whether the field contains an error message (sp-field-error).
71
+ */
72
+ hasError(): boolean;
73
+ get labelNecessityIndicator(): LabelComponent['necessityIndicator'];
74
+ _setSuffixPortal(portal: DomPortal<HTMLElement> | null): void;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponent, never>;
76
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "sp-field", never, { "necessityIndicator": "necessityIndicator"; "labelPlacement": "labelPlacement"; "size": "size"; }, {}, ["note", "error", "_fieldLabel", "control", "requiredValidator"], ["sp-field-label", "sp-contextual-help", "*", "sp-field-error", "sp-field-note"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
77
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./field.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "./field-label.directive";
5
+ import * as i4 from "./field-note.directive";
6
+ import * as i5 from "./field-note-suffix.directive";
7
+ import * as i6 from "./field-error.directive";
8
+ import * as i7 from "@angular/cdk/portal";
9
+ import * as i8 from "../../label/src/label.component";
10
+ export declare class SapphireFieldModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireFieldModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireFieldModule, [typeof i1.FieldComponent], [typeof i2.NgIf, typeof i3.FieldLabelDirective, typeof i4.FieldNoteDirective, typeof i5.FieldNoteSuffixDirective, typeof i6.FieldErrorDirective, typeof i7.PortalModule, typeof i8.LabelComponent], [typeof i3.FieldLabelDirective, typeof i4.FieldNoteDirective, typeof i5.FieldNoteSuffixDirective, typeof i6.FieldErrorDirective, typeof i1.FieldComponent]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireFieldModule>;
14
+ }
@@ -0,0 +1,3 @@
1
+ export { IconComponent } from './src/icon.component';
2
+ export { SapphireIconModule } from './src/icon.module';
3
+ export { ICON_SIZE_PROVIDER, IconSizeProvider } from './src/icon-size-provider';
@@ -0,0 +1,23 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ /**
3
+ * Interface to implement for the value of {@link ICON_SIZE_PROVIDER}
4
+ */
5
+ export interface IconSizeProvider {
6
+ size?: 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';
7
+ }
8
+ /**
9
+ * Injection token to provide the default size of the icon based on where
10
+ * it's used. Provided size will be used by default, if there is no explicit
11
+ * size set on the icon.
12
+ *
13
+ * @example
14
+ * ```
15
+ * @Component({
16
+ * providers: [{provides: ICON_SIZE_PROVIDER, useExisting: forwardRef(() => MyComponent}],
17
+ * })
18
+ * class MyComponent implements IconSizeProvider {
19
+ * @Input()
20
+ * size?: 'small' | 'medium';
21
+ * }
22
+ */
23
+ export declare const ICON_SIZE_PROVIDER: InjectionToken<unknown>;
@@ -0,0 +1,18 @@
1
+ import { DoCheck, ElementRef } from '@angular/core';
2
+ import * as icons from '@danske/sapphire-icons/js';
3
+ import { IconSizeProvider } from './icon-size-provider';
4
+ import * as i0 from "@angular/core";
5
+ export declare class IconComponent implements DoCheck {
6
+ private elementRef;
7
+ private sizeProvider?;
8
+ set name(value: undefined | keyof typeof icons | string);
9
+ get name(): undefined | keyof typeof icons | string;
10
+ private _name?;
11
+ size?: string;
12
+ private appliedSize?;
13
+ constructor(elementRef: ElementRef, sizeProvider?: IconSizeProvider | undefined);
14
+ ngDoCheck(): void;
15
+ private applySize;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, [null, { optional: true; }]>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "sp-icon", never, { "name": "name"; "size": "size"; }, {}, never, never, false, never>;
18
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./icon.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class SapphireIconModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireIconModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireIconModule, [typeof i1.IconComponent], [typeof i2.CommonModule], [typeof i1.IconComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireIconModule>;
8
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * NOTE: label is intentionally kept internal for now. We need to add docs and stories
3
+ * if we decide to expose it.
4
+ */
5
+ export { LabelComponent } from './src/label.component';
@@ -0,0 +1,43 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { BooleanInput } from '@angular/cdk/coercion';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Label UI, currently used exclusively in sp-field.
6
+ * @internal
7
+ */
8
+ export declare class LabelComponent {
9
+ /**
10
+ * id prop set on the underlying label element. Useful to set aria-labelledby
11
+ * on the corresponding control, if it doesn't support labeling via {@link #for}
12
+ */
13
+ id: string;
14
+ /**
15
+ * html label "for" attribute, set on the underlying label element, in case the labeled control
16
+ * has an id and is
17
+ * [labelable](https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#labelable)
18
+ */
19
+ for?: string;
20
+ /**
21
+ * Whether the label is disabled. Disabled label won't emit labelClick.
22
+ */
23
+ disabled?: BooleanInput;
24
+ /**
25
+ * Indicates the necessity of the corresponding form control.
26
+ */
27
+ necessityIndicator?: 'required' | 'optional';
28
+ /**
29
+ * @default "large"
30
+ */
31
+ size?: 'large' | 'medium';
32
+ /**
33
+ * Emits when the label text is clicked.
34
+ */
35
+ labelClick: EventEmitter<MouseEvent>;
36
+ /**
37
+ * @returns the text content of the label.
38
+ */
39
+ getText(): string;
40
+ private labelElementRef?;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponent, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "sp-label", never, { "id": "id"; "for": "for"; "disabled": "disabled"; "necessityIndicator": "necessityIndicator"; "size": "size"; }, { "labelClick": "labelClick"; }, never, ["*", "sp-contextual-help"], true, never>;
43
+ }
@@ -0,0 +1,2 @@
1
+ export * from './src/link.component';
2
+ export * from './src/link.module';
@@ -0,0 +1,13 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "../../common/sapphire-view-encapsulation";
4
+ export declare class LinkComponent {
5
+ variant?: 'primary' | 'secondary';
6
+ size?: 'small' | 'medium' | 'large';
7
+ disabled?: BooleanInput;
8
+ tabindex?: string | null;
9
+ tabIndex?: string | null;
10
+ private handleDisableInteraction;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<LinkComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "a[sp-link]", never, { "variant": "variant"; "size": "size"; "disabled": "disabled"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; }, {}, never, ["*"], true, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
13
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./link.component";
3
+ export declare class SapphireLinkModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireLinkModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireLinkModule, never, [typeof i1.LinkComponent], [typeof i1.LinkComponent]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireLinkModule>;
7
+ }
@@ -0,0 +1,9 @@
1
+ export { SapphireListboxModule } from './src/listbox.module';
2
+ export { ListboxComponent } from './src/listbox.component';
3
+ export { OptionComponent } from './src/option.component';
4
+ export { SectionDirective } from './src/section.directive';
5
+ export { OptionIconDirective } from './src/option-icon.directive';
6
+ export { OptionPrimaryTextDirective } from './src/option-primary-text.directive';
7
+ export { OptionSecondaryTextDirective } from './src/option-secondary-text.directive';
8
+ export { ListboxInputDirective } from './src/listbox-input.directive';
9
+ export { ListboxChild } from './src/listbox-child';
@@ -0,0 +1,17 @@
1
+ import { CdkListbox, CdkOption } from '@angular/cdk/listbox';
2
+ import { ElementRef } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ A workaround for an issue in cdkListbox, where the active item is not scrolled
6
+ into view when it's not physically focused (i.e. useActiveDescendant is true).
7
+ * TODO: remove when https://github.com/angular/components/issues/28989 is fixed
8
+ */
9
+ export declare class CdkOptionScrollIssuePatch {
10
+ private cdkListbox;
11
+ private cdkOption;
12
+ private elementRef;
13
+ constructor(cdkListbox: CdkListbox, cdkOption: CdkOption, elementRef: ElementRef<HTMLElement>);
14
+ ngAfterViewChecked(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkOptionScrollIssuePatch, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkOptionScrollIssuePatch, "[cdkOption]", never, {}, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Base class for valid listbox children (option and section), to be able to
3
+ * query all with @ContentChildren.
4
+ */
5
+ export declare abstract class ListboxChild {
6
+ }
@@ -0,0 +1,16 @@
1
+ import { ListboxComponent } from './listbox.component';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * A low-level directive to connect a listbox to an input, for use cases like search.
5
+ * It adds event handlers to enable navigation via arrow keys. It also makes
6
+ * the listbox use virtual focus, since the actual focus will be on the connected input.
7
+ */
8
+ export declare class ListboxInputDirective {
9
+ set listbox(listbox: ListboxComponent | undefined);
10
+ private handlers?;
11
+ private onKeyDown;
12
+ private onFocus;
13
+ private onBlur;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListboxInputDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ListboxInputDirective, "input[spListboxInput]", never, { "listbox": "spListboxInput"; }, {}, never, never, false, never>;
16
+ }
@@ -0,0 +1,21 @@
1
+ import { PressedDirective } from '../../common/pressed.directive';
2
+ import { OptionComponent } from './option.component';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "../../common/sapphire-view-encapsulation";
5
+ import * as i2 from "../../common/pressed.directive";
6
+ import * as i3 from "../../common/focused.directive";
7
+ /**
8
+ * Used internally in listbox component to render items. The primary reason
9
+ * this is extracted into a component is to be reused outside and inside
10
+ * sections. Using a ng-template inside listbox component, as an alternative
11
+ * approach, leads to out of sync queries of cdkOptions, which leads to bugs.
12
+ */
13
+ export declare class ListboxItemComponent {
14
+ selected?: boolean;
15
+ focused?: boolean;
16
+ option: OptionComponent;
17
+ size?: 'large' | 'medium' | 'small';
18
+ constructor(pressedDirective: PressedDirective);
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListboxItemComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListboxItemComponent, "li[sp-listbox-item]", never, { "selected": "selected"; "focused": "focused"; "option": "option"; "size": "size"; }, {}, never, never, false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }, { directive: typeof i2.PressedDirective; inputs: {}; outputs: {}; }, { directive: typeof i3.FocusedDirective; inputs: { "spFocused": "focused"; }; outputs: {}; }]>;
21
+ }
@@ -0,0 +1,127 @@
1
+ import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, DoCheck, EventEmitter } from '@angular/core';
2
+ import { ListboxValueChangeEvent } from '@angular/cdk/listbox';
3
+ import { OptionComponent } from './option.component';
4
+ import { ControlValueAccessor } from '@angular/forms';
5
+ import { BooleanInput } from '@angular/cdk/coercion';
6
+ import { ListboxChild } from './listbox-child';
7
+ import { SectionDirective } from './section.directive';
8
+ import { ListboxInputDirective } from './listbox-input.directive';
9
+ import { IconSizeProvider } from '../../icon/src/icon-size-provider';
10
+ import * as i0 from "@angular/core";
11
+ export declare class ListboxComponent implements ControlValueAccessor, AfterViewInit, AfterViewChecked, DoCheck, IconSizeProvider {
12
+ private changeDetectorRef;
13
+ /**
14
+ * The list of selected values (`value`s of selected sp-options).
15
+ * It's always an array, regardless of {@property multiple} being true or not.
16
+ */
17
+ selectedValues: readonly string[];
18
+ /**
19
+ * Emitted when the selection is changed. Emits selected values.
20
+ */
21
+ selectedValuesChange: EventEmitter<readonly string[]>;
22
+ /**
23
+ * Allows for passing the list of listbox items instead of having them collected
24
+ * from children. Useful when a component wants to render a listbox within its view
25
+ * but wants to collect listbox items from its own content.
26
+ */
27
+ _itemsInput?: Iterable<ListboxChild>;
28
+ disabled?: BooleanInput;
29
+ /**
30
+ * Whether multiple selection is allowed
31
+ */
32
+ multiple?: BooleanInput;
33
+ /**
34
+ * If true, pressing ArrowUp/ArrowDown on the first/last item will not move
35
+ * focus to the last/first item.
36
+ */
37
+ navigationWrapDisabled: BooleanInput;
38
+ ariaLabel: string;
39
+ ariaLabelledBy?: string;
40
+ size?: 'large' | 'medium' | 'small';
41
+ /**
42
+ * Emits whenever an option is selected, regardless of if it's already selected.
43
+ */
44
+ selected: EventEmitter<any>;
45
+ private itemsInContent;
46
+ private onTouched;
47
+ private onChange;
48
+ /**
49
+ * List of spOption or spSection components either collected from the content
50
+ * or passed as input.
51
+ */
52
+ get options(): Iterable<ListboxChild>;
53
+ private cdkListbox?;
54
+ private cdkOptions?;
55
+ private connectedInput?;
56
+ /**
57
+ * CdkListbox throws if there is a selected value that doesn't match any of the cdkOptions
58
+ * It's probably an artificial check, and maybe they could remove it, but that's how it is now,
59
+ * and selected value can be none of the currently visible options if options are searchable.
60
+ * Since the check seems unnecessary, we do the filtering right in the listbox component instead
61
+ * of in searchable select.
62
+ * @private
63
+ */
64
+ _validSelectedValues: readonly string[];
65
+ /**
66
+ * Our expected behavior (matching the React impl) is to navigate to the last option, when
67
+ * ArrowDown is pressed and no option is currently focused, but to not have focus wrapping.
68
+ * disabling focus wrapping on cdkListbox is implemented differently, and doesn't allow for
69
+ * that, so we enable it regardless of `navigationWrapDisabled` input, if there is no active
70
+ * option.
71
+ */
72
+ _forceEnableNavigationWrap: boolean;
73
+ constructor(changeDetectorRef: ChangeDetectorRef);
74
+ /**
75
+ * Connects the listbox to an input, for combobox-like use cases.
76
+ * Returns a keydown event handler to be used on the connected input.
77
+ * Connecting an input to the listbox also causes listbox to use virtual focus
78
+ * since the actual focus will be in the input.
79
+ * @param inputDirective
80
+ *
81
+ * @internal
82
+ */
83
+ connectToInput(inputDirective: ListboxInputDirective): {
84
+ onKeydown: (event: KeyboardEvent) => void;
85
+ onFocus: () => void;
86
+ onBlur: () => void;
87
+ };
88
+ isSelected(option: OptionComponent): boolean;
89
+ ngAfterViewInit(): void;
90
+ ngDoCheck(): void;
91
+ ngAfterViewChecked(): void;
92
+ /**
93
+ * Sets active (focused) option. Passing null removes active state if any.
94
+ * @param value option value
95
+ */
96
+ setActiveOption(value: string | null): void;
97
+ /**
98
+ * @returns currently active (focused) option.
99
+ */
100
+ getActiveOption(): string | null;
101
+ registerOnChange(fn: any): void;
102
+ registerOnTouched(fn: any): void;
103
+ setDisabledState(isDisabled: boolean): void;
104
+ writeValue(obj: any): void;
105
+ /**
106
+ * @private
107
+ */
108
+ _handleSelectionChange({ value }: ListboxValueChangeEvent<string>): void;
109
+ /**
110
+ * @private
111
+ */
112
+ _isOption(item: ListboxChild): item is OptionComponent;
113
+ /**
114
+ * @private
115
+ */
116
+ _isSection(item: ListboxChild): item is SectionDirective;
117
+ /**
118
+ * @private
119
+ */
120
+ _shouldUseVirtualFocus(): boolean;
121
+ /**
122
+ * @private
123
+ */
124
+ _isConnectedToInput(): boolean;
125
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListboxComponent, never>;
126
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListboxComponent, "sp-listbox", ["spListbox"], { "selectedValues": "selectedValues"; "_itemsInput": "spListboxItems"; "disabled": "disabled"; "multiple": "multiple"; "navigationWrapDisabled": "navigationWrapDisabled"; "ariaLabel": "aria-label"; "ariaLabelledBy": "aria-labelledby"; "size": "size"; }, { "selectedValuesChange": "selectedValuesChange"; "selected": "selected"; }, ["itemsInContent"], never, false, never>;
127
+ }
@@ -0,0 +1,22 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./section.directive";
3
+ import * as i2 from "./option.component";
4
+ import * as i3 from "./option-icon.directive";
5
+ import * as i4 from "./option-secondary-text.directive";
6
+ import * as i5 from "./option-primary-text.directive";
7
+ import * as i6 from "./listbox.component";
8
+ import * as i7 from "./listbox-input.directive";
9
+ import * as i8 from "./listbox-item.component";
10
+ import * as i9 from "@angular/common";
11
+ import * as i10 from "../../icon/src/icon.module";
12
+ import * as i11 from "@angular/cdk/listbox";
13
+ import * as i12 from "@angular/cdk/portal";
14
+ import * as i13 from "../../common/pressed.directive";
15
+ import * as i14 from "../../common/focused.directive";
16
+ import * as i15 from "../../common/sapphire-view-encapsulation";
17
+ import * as i16 from "./cdk-option-scroll-issue-patch";
18
+ export declare class SapphireListboxModule {
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireListboxModule, never>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireListboxModule, [typeof i1.SectionDirective, typeof i2.OptionComponent, typeof i3.OptionIconDirective, typeof i4.OptionSecondaryTextDirective, typeof i5.OptionPrimaryTextDirective, typeof i6.ListboxComponent, typeof i7.ListboxInputDirective, typeof i8.ListboxItemComponent], [typeof i9.CommonModule, typeof i10.SapphireIconModule, typeof i11.CdkListboxModule, typeof i12.PortalModule, typeof i13.PressedDirective, typeof i14.FocusedDirective, typeof i15.UseComponentStyles, typeof i16.CdkOptionScrollIssuePatch], [typeof i6.ListboxComponent, typeof i2.OptionComponent, typeof i3.OptionIconDirective, typeof i4.OptionSecondaryTextDirective, typeof i5.OptionPrimaryTextDirective, typeof i1.SectionDirective, typeof i7.ListboxInputDirective]>;
21
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireListboxModule>;
22
+ }
@@ -0,0 +1,10 @@
1
+ import { CdkPortal } from '@angular/cdk/portal';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Icon part of the listbox option layout, rendered on the left side.
5
+ */
6
+ export declare class OptionIconDirective {
7
+ contentPortal?: CdkPortal;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<OptionIconDirective, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<OptionIconDirective, "sp-option-icon", never, {}, {}, never, ["*"], false, never>;
10
+ }
@@ -0,0 +1,14 @@
1
+ import { DomPortal } from '@angular/cdk/portal';
2
+ import { AfterViewInit } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Primary text of a listbox option. Useful when the option contains other parts
6
+ * like secondary text or icon.
7
+ */
8
+ export declare class OptionPrimaryTextDirective implements AfterViewInit {
9
+ contentPortal?: DomPortal<HTMLElement>;
10
+ private content?;
11
+ ngAfterViewInit(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<OptionPrimaryTextDirective, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<OptionPrimaryTextDirective, "sp-option-primary-text", never, {}, {}, never, ["*"], false, never>;
14
+ }
@@ -0,0 +1,10 @@
1
+ import { CdkPortal } from '@angular/cdk/portal';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Secondary text of a listbox option.
5
+ */
6
+ export declare class OptionSecondaryTextDirective {
7
+ contentPortal?: CdkPortal;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<OptionSecondaryTextDirective, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<OptionSecondaryTextDirective, "sp-option-secondary-text", never, {}, {}, never, ["*"], false, never>;
10
+ }
@@ -0,0 +1,21 @@
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
2
+ import { DomPortal } from '@angular/cdk/portal';
3
+ import { OptionSecondaryTextDirective } from './option-secondary-text.directive';
4
+ import { OptionIconDirective } from './option-icon.directive';
5
+ import { BooleanInput } from '@angular/cdk/coercion';
6
+ import { ListboxChild } from './listbox-child';
7
+ import * as i0 from "@angular/core";
8
+ export declare class OptionComponent extends ListboxChild implements AfterViewInit {
9
+ value: string;
10
+ private _primaryText?;
11
+ private domPortal?;
12
+ disabled: BooleanInput;
13
+ get primaryText(): DomPortal<HTMLElement> | undefined;
14
+ content?: ElementRef<HTMLElement>;
15
+ secondaryText?: OptionSecondaryTextDirective;
16
+ icon?: OptionIconDirective;
17
+ get label(): string;
18
+ ngAfterViewInit(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "sp-option", never, { "value": "value"; "disabled": "disabled"; }, {}, ["_primaryText", "secondaryText", "icon"], ["*"], false, never>;
21
+ }