@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,109 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { ListboxChild, ListboxComponent, OptionComponent } from '../../../listbox/public_api';
3
+ import { ControlValueAccessor } from '@angular/forms';
4
+ import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
5
+ import { FocusOrigin, ListKeyManager, ListKeyManagerOption } from '@angular/cdk/a11y';
6
+ import { PopoverTriggerDirective } from '../../../popover/src/popover-trigger.directive';
7
+ import { SelectValueHolder } from './select-value-holder';
8
+ import { SelectionTextDirective } from '../select/selection-text.directive';
9
+ import * as i0 from "@angular/core";
10
+ export declare abstract class SelectComponentBase implements ControlValueAccessor, AfterContentInit, OnDestroy {
11
+ protected valueHolder: SelectValueHolder;
12
+ /**
13
+ * Whether the component is disabled.
14
+ */
15
+ disabled: BooleanInput;
16
+ /** A unique id for the select. If none is supplied, it will be auto-generated. */
17
+ id: string;
18
+ /** The name of the input, used when submitting an HTML form. */
19
+ name?: string;
20
+ /**
21
+ * Placeholder to be shown if no value has been selected.
22
+ */
23
+ placeholder?: string;
24
+ /**
25
+ * Emitted when the popover is opened
26
+ */
27
+ readonly opened: EventEmitter<void>;
28
+ /**
29
+ * Emitted when the popover is closed
30
+ */
31
+ readonly closed: EventEmitter<void>;
32
+ options: QueryList<OptionComponent>;
33
+ listboxChildren: QueryList<ListboxChild>;
34
+ /**
35
+ * Manages keyboard events for options in the panel.
36
+ */
37
+ protected keyManager: ListKeyManager<{
38
+ value: string;
39
+ } & ListKeyManagerOption> | undefined;
40
+ /**
41
+ * Emits whenever the dropdown is closed as a result of an option (already
42
+ * selected or not) being selected.
43
+ */
44
+ selected: EventEmitter<any>;
45
+ ariaLabel: string | null;
46
+ ariaLabelledby?: string | null;
47
+ selectionText?: SelectionTextDirective;
48
+ /**
49
+ * Used to work around ExpressionChangedAfterItHasBeenCheckedError error thrown from HiddenSelect,
50
+ * when the select component is rendered from a template (e.g. with *ngIf). It's set to true
51
+ * asynchronously after content is initialized, to delay rendering of things that depend on
52
+ * options. It's not clear why the issue happens, and it only happens when select is used with
53
+ * *ngIf, or generally in a template.
54
+ */
55
+ _initialized: boolean;
56
+ set listboxValue(value: readonly string[]);
57
+ get listboxValue(): readonly string[];
58
+ get selectedOptions(): OptionComponent[];
59
+ private changeDetectorRef;
60
+ constructor(valueHolder: SelectValueHolder);
61
+ protected abstract triggerRef: PopoverTriggerDirective | undefined;
62
+ protected abstract triggerElementRef: ElementRef<HTMLElement> | undefined;
63
+ protected abstract listbox: ListboxComponent | undefined;
64
+ abstract focus(focusOrigin: FocusOrigin): void;
65
+ abstract isFocused(): boolean;
66
+ handleKeyDown($event: KeyboardEvent): void;
67
+ getSelectionText(): string;
68
+ /**
69
+ * Whether multiple selection is allowed.
70
+ */
71
+ get multiple(): boolean;
72
+ ngAfterContentInit(): void;
73
+ ngAfterViewInit(): void;
74
+ ngOnDestroy(): void;
75
+ /**
76
+ * Called when an item in the listbox is selected.
77
+ */
78
+ _handleSelected(): void;
79
+ isOpen(): boolean;
80
+ open(): void;
81
+ close(): void;
82
+ toggle(): void;
83
+ protected getFieldLabel?(): string;
84
+ getLabelText(): string | undefined;
85
+ protected controlValueAccessorChangeFn: (value: any) => void;
86
+ onTouched: () => any;
87
+ _onOpen(): void;
88
+ _onClose(): void;
89
+ /**
90
+ * Implemented as part of ControlValueAccessor.
91
+ */
92
+ registerOnChange(fn: any): void;
93
+ /**
94
+ * Implemented as part of ControlValueAccessor.
95
+ */
96
+ registerOnTouched(fn: any): void;
97
+ /**
98
+ * Implemented as part of ControlValueAccessor.
99
+ */
100
+ setDisabledState(isDisabled: boolean): void;
101
+ /**
102
+ * Implemented as part of ControlValueAccessor.
103
+ */
104
+ writeValue(value: unknown): void;
105
+ protected getNextEnabledOptionValue(direction?: 'left' | 'right'): string | undefined;
106
+ protected initKeyManager(): void;
107
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponentBase, never>;
108
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SelectComponentBase, never, never, { "disabled": "disabled"; "id": "id"; "name": "name"; "placeholder": "placeholder"; "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; }, { "opened": "opened"; "closed": "closed"; "selected": "selected"; }, ["selectionText", "options", "listboxChildren"], never, false, never>;
109
+ }
@@ -0,0 +1,54 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * A common base class to handle value for single and multiple selection.
5
+ * {@link MultiSelectDirectiveBase} and {@link SingleSelectDirectiveBase} implement and
6
+ * provide this interface. Note that the main purpose for such design is **not**
7
+ * to abstract out selection behavior. But to have accurate `value` and `valueChange`
8
+ * type for single and multiple selection mode. It would be possible to fully abstract out
9
+ * the selection behavior, and have Select component not know anything about selection being
10
+ * multiple or not, but it doesn't seem such a clear abstraction, and also not worth the additional
11
+ * complexity.
12
+ *
13
+ * At least one directive has to be defined for each select component to provide SelectValueHolder,
14
+ * extending either {@link MultiSelectDirectiveBase} or {@link SingleSelectDirectiveBase}
15
+ */
16
+ export declare abstract class SelectValueHolder<T = unknown> {
17
+ abstract value: T;
18
+ abstract valueChange: EventEmitter<T>;
19
+ abstract setFromListboxValue(value: readonly string[]): void;
20
+ abstract getListboxValue(): readonly string[];
21
+ }
22
+ /**
23
+ * Enables multiple selection. When present, `value` will be of type `string[]`, and `valueChange`
24
+ * will emit `string[]`.
25
+ *
26
+ * Each select component can define a directive with the right selector (usually based on
27
+ * the presence of `multiple` attribute) to enable multiple selection.
28
+ */
29
+ export declare class MultiSelectDirectiveBase extends SelectValueHolder<string[]> {
30
+ value: string[];
31
+ valueChange: EventEmitter<string[]>;
32
+ setFromListboxValue(value: string[]): void;
33
+ getListboxValue(): readonly string[];
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectDirectiveBase, never>;
35
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MultiSelectDirectiveBase, never, never, { "value": "value"; }, { "valueChange": "valueChange"; }, never, never, false, never>;
36
+ }
37
+ /**
38
+ * Enables single selection, the default behavior of select.
39
+ * When present, `value` will be of type `string`, and `valueChange` will emit `string`.
40
+ *
41
+ * Each select component has to define a directive with the right selector (usually based on
42
+ * the absence of `multiple` attribute) to enable single selection.
43
+ */
44
+ export declare class SingleSelectDirectiveBase extends SelectValueHolder<string> {
45
+ get value(): string;
46
+ set value(value: string);
47
+ private _value;
48
+ private values;
49
+ valueChange: EventEmitter<string>;
50
+ setFromListboxValue(value: string[]): void;
51
+ getListboxValue(): readonly string[];
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<SingleSelectDirectiveBase, never>;
53
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SingleSelectDirectiveBase, never, never, { "value": "value"; }, { "valueChange": "valueChange"; }, never, never, false, never>;
54
+ }
@@ -0,0 +1,40 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { BooleanInput } from '@angular/cdk/coercion';
3
+ import { ListboxChild } from '../../../listbox/src/listbox-child';
4
+ import { OptionComponent } from '../../../listbox/src/option.component';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Marks sp-select as searchable. When used, a search input is rendered inside select trigger
8
+ * which allows filtering options, in a more convenient way than the default typeahead search.
9
+ * By default, rendered `sp-option`s are filtered based on the search value, but `searchValue`
10
+ * and `searchValueChange` can be used to control the search value and filter the `sp-options`
11
+ * upfront.
12
+ */
13
+ export declare class SearchableSelectDirective {
14
+ get searchValue(): string | undefined;
15
+ set searchValue(value: string | undefined);
16
+ private _searchValue;
17
+ /**
18
+ * Filtering function to be applied on each item. The default filter function
19
+ * does a case-insensitive search on optionComponent.label.
20
+ * The built-in filtering can be disabled by passing `null`. That's useful
21
+ * when filtering is fully controlled by filtering input sp-options based on
22
+ * {@property searchValue}.
23
+ */
24
+ filter?: null | ((optionComponent: OptionComponent, searchQuery: string) => boolean);
25
+ selectTextOnOpen?: BooleanInput;
26
+ searchValueChange: EventEmitter<string>;
27
+ filterListboxItems(items: Iterable<ListboxChild>, filter: (option: OptionComponent) => boolean): {
28
+ filteredChildren: ListboxChild[];
29
+ filteredOutOptions: OptionComponent[];
30
+ };
31
+ /**
32
+ * Used when search value is updated via UI, and searchValueChange output should be emitted.
33
+ * @internal
34
+ */
35
+ setSearchValue(searchValue: string): void;
36
+ defaultFilter(optionComponent: OptionComponent, searchQuery: string): boolean;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<SearchableSelectDirective, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SearchableSelectDirective, "sp-select[searchable]", never, { "searchValue": "searchValue"; "filter": "filter"; "selectTextOnOpen": "selectTextOnOpen"; }, { "searchValueChange": "searchValueChange"; }, never, never, false, never>;
39
+ }
40
+ export declare const notNull: <T>(item: T | null | undefined) => item is NonNullable<T>;
@@ -0,0 +1,80 @@
1
+ import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
2
+ import { FocusMonitor, FocusOrigin, InputModalityDetector } from '@angular/cdk/a11y';
3
+ import { Observable } from 'rxjs';
4
+ import { PopoverTriggerDirective } from '../../../popover/src/popover-trigger.directive';
5
+ import { ListboxChild, ListboxComponent } from '../../../listbox/public_api';
6
+ import { FieldComponent, FieldControl } from '../../../field/public_api';
7
+ import { SelectComponentBase } from '../common/select-component-base';
8
+ import { MultiSelectDirectiveBase, SelectValueHolder, SingleSelectDirectiveBase } from '../common/select-value-holder';
9
+ import { SearchableSelectDirective } from './searchable-select.directive';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "../../../common/sapphire-view-encapsulation";
12
+ /**
13
+ * Enables multiple selection. When present, `value` will be of type `string[]`, and `valueChange`
14
+ * will emit `string[]`.
15
+ */
16
+ export declare class MultiSelectDirective extends MultiSelectDirectiveBase {
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectDirective, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MultiSelectDirective, "sp-select[multiple]", never, {}, {}, never, never, false, never>;
19
+ }
20
+ /**
21
+ * Enables single selection, the default behavior of Select.
22
+ * When present, `value` will be of type `string`, and `valueChange` will emit `string`.
23
+ */
24
+ export declare class SingleSelectDirective extends SingleSelectDirectiveBase {
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<SingleSelectDirective, never>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SingleSelectDirective, "sp-select:not([multiple])", never, {}, {}, never, never, false, never>;
27
+ }
28
+ /**
29
+ * Allows user to select a single option from a list, similar to native select
30
+ * component.
31
+ *
32
+ * Example:
33
+ * ```tsx
34
+ * <sp-field>
35
+ * <sp-field-label>Label text</sp-field-label>
36
+ * <sp-select placeholder="Select an option">
37
+ * <sp-option value="option1">First Option</sp-option>
38
+ * <sp-option value="option2">Second Option</sp-option>
39
+ * <sp-option value="option3">Third Option</sp-option>
40
+ * </sp-select>
41
+ * </sp-field>
42
+ * ```
43
+ */
44
+ export declare class SelectComponent extends SelectComponentBase implements FieldControl, AfterViewInit, OnDestroy {
45
+ private focusMonitor;
46
+ private inputModality;
47
+ _field?: FieldComponent | undefined;
48
+ _searchableSelectDirective?: SearchableSelectDirective | undefined;
49
+ private focusOrigin;
50
+ filteredChildren$: Observable<ListboxChild[]>;
51
+ protected triggerRef: PopoverTriggerDirective | undefined;
52
+ protected triggerElementRef: ElementRef | undefined;
53
+ protected listbox: ListboxComponent | undefined;
54
+ private searchInput?;
55
+ get searchable(): boolean;
56
+ /**
57
+ * id of trigger value area, which will contain either the selected value or the placeholder.
58
+ */
59
+ _valueContainerId: string;
60
+ private destroyed;
61
+ constructor(valueHolder: SelectValueHolder, focusMonitor: FocusMonitor, inputModality: InputModalityDetector, _field?: FieldComponent | undefined, _searchableSelectDirective?: SearchableSelectDirective | undefined);
62
+ ngAfterViewInit(): void;
63
+ ngOnDestroy(): void;
64
+ _getAriaLabelledBy(): string | undefined;
65
+ isFocused(): boolean;
66
+ isFocusVisible(): boolean;
67
+ focus(focusOrigin?: FocusOrigin): void;
68
+ _onFocusChange(focusOrigin: FocusOrigin): void;
69
+ _onFocus(): void;
70
+ _isInputVisible(): boolean;
71
+ _onOpen(): void;
72
+ _onClose(): void;
73
+ protected getFieldLabel?(): string;
74
+ _onInputKeydown(event: KeyboardEvent): void;
75
+ _onSearchInput(event: Event): void;
76
+ _handleSelected(): void;
77
+ isDisabled(): boolean;
78
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, [null, null, null, { optional: true; }, { optional: true; }]>;
79
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "sp-select", ["spSelect"], {}, {}, never, ["sp-selection-text"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
80
+ }
@@ -0,0 +1,26 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./select.component";
3
+ import * as i2 from "./selection-text.directive";
4
+ import * as i3 from "../basic-select/basic-select.component";
5
+ import * as i4 from "../common/hidden-select.component";
6
+ import * as i5 from "./searchable-select.directive";
7
+ import * as i6 from "@angular/common";
8
+ import * as i7 from "@angular/forms";
9
+ import * as i8 from "../../../icon/src/icon.module";
10
+ import * as i9 from "../../../listbox/src/listbox.module";
11
+ import * as i10 from "../../../popover/src/popover.module";
12
+ import * as i11 from "@angular/cdk/listbox";
13
+ import * as i12 from "@angular/cdk/a11y";
14
+ import * as i13 from "@angular/cdk/portal";
15
+ import * as i14 from "../../../common/visually-hidden.directive";
16
+ import * as i15 from "../../../field/src/field-label.directive";
17
+ import * as i16 from "../../../field/src/field-error.directive";
18
+ import * as i17 from "../../../field/src/field-note.directive";
19
+ import * as i18 from "../../../button/src/button.module";
20
+ import * as i19 from "../../../label/src/label.component";
21
+ import * as i20 from "../../../common/sapphire-view-encapsulation";
22
+ export declare class SapphireSelectModule {
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireSelectModule, never>;
24
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireSelectModule, [typeof i1.SelectComponent, typeof i1.MultiSelectDirective, typeof i1.SingleSelectDirective, typeof i2.SelectionTextDirective, typeof i3.BasicSelectComponent, typeof i3.BasicSingleSelectDirective, typeof i4.HiddenSelectComponent, typeof i5.SearchableSelectDirective], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i8.SapphireIconModule, typeof i9.SapphireListboxModule, typeof i10.SapphirePopoverModule, typeof i11.CdkListboxModule, typeof i12.A11yModule, typeof i13.PortalModule, typeof i14.VisuallyHiddenDirective, typeof i15.FieldLabelDirective, typeof i16.FieldErrorDirective, typeof i17.FieldNoteDirective, typeof i18.SapphireButtonModule, typeof i19.LabelComponent, typeof i20.UseComponentStyles], [typeof i9.SapphireListboxModule, typeof i1.SelectComponent, typeof i1.MultiSelectDirective, typeof i1.SingleSelectDirective, typeof i2.SelectionTextDirective, typeof i3.BasicSelectComponent, typeof i3.BasicSingleSelectDirective, typeof i5.SearchableSelectDirective, typeof i15.FieldLabelDirective, typeof i16.FieldErrorDirective, typeof i17.FieldNoteDirective]>;
25
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireSelectModule>;
26
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Used to customize what is shown in select's trigger when selection is non-empty.
4
+ * By default, the (primary) text of the selected option is shown in single selection mode,
5
+ * and a short text indicating the number of selected items is shown in multiple selection mode,
6
+ * if more than 1 item is selected.
7
+ */
8
+ export declare class SelectionTextDirective {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectionTextDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SelectionTextDirective, "sp-selection-text", never, {}, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,5 @@
1
+ export * from './src/skeleton-text.directive';
2
+ export * from './src/skeleton.component';
3
+ export * from './src/skeleton-circle.directive';
4
+ export * from './src/skeleton-block.directive';
5
+ export * from './src/skeleton.module';
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SkeletonBlockDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonBlockDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SkeletonBlockDirective, "sp-skeleton-block", never, {}, {}, never, never, false, never>;
5
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SkeletonCircleDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonCircleDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SkeletonCircleDirective, "sp-skeleton-circle", never, {}, {}, never, never, false, never>;
5
+ }
@@ -0,0 +1,13 @@
1
+ import { AfterContentInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SkeletonTextDirective implements AfterContentInit {
4
+ width?: string;
5
+ minWidth?: number;
6
+ maxWidth?: number;
7
+ widthType?: 'randomPct' | 'randomPx' | 'fixed';
8
+ _calculatedWidth: string;
9
+ private calculateWidth;
10
+ ngAfterContentInit(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonTextDirective, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SkeletonTextDirective, "sp-skeleton-text", never, { "width": "width"; "minWidth": "minWidth"; "maxWidth": "maxWidth"; "widthType": "widthType"; }, {}, never, never, false, never>;
13
+ }
@@ -0,0 +1,13 @@
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 SkeletonComponent {
5
+ /**
6
+ * The index of this element in the container that renders skeleton pieces.
7
+ * Used to harmonize the background animation across the skeleton pieces.
8
+ */
9
+ index?: number;
10
+ _getAnimationDelay: (order?: number | undefined) => string | undefined;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonComponent, "sp-skeleton-block, sp-skeleton-circle, sp-skeleton-text", never, { "index": "index"; }, {}, never, never, false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
13
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./skeleton.component";
3
+ import * as i2 from "./skeleton-text.directive";
4
+ import * as i3 from "./skeleton-circle.directive";
5
+ import * as i4 from "./skeleton-block.directive";
6
+ import * as i5 from "@angular/common";
7
+ export declare class SapphireSkeletonModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireSkeletonModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireSkeletonModule, [typeof i1.SkeletonComponent, typeof i2.SkeletonTextDirective, typeof i3.SkeletonCircleDirective, typeof i4.SkeletonBlockDirective], [typeof i5.CommonModule], [typeof i1.SkeletonComponent, typeof i2.SkeletonTextDirective, typeof i3.SkeletonCircleDirective, typeof i4.SkeletonBlockDirective]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireSkeletonModule>;
11
+ }
@@ -0,0 +1 @@
1
+ export declare const getAnimationDelay: (order?: number) => string | undefined;
@@ -0,0 +1,2 @@
1
+ export * from './src/surface.component';
2
+ export * from './src/surface.module';
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../../common/sapphire-view-encapsulation";
3
+ /**
4
+ * This is a container for all other components which comes with the theme's
5
+ * primary surface background color, text color and font family.
6
+ */
7
+ export declare class SurfaceComponent {
8
+ variant?: 'primary' | 'secondary';
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SurfaceComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SurfaceComponent, "sp-surface", never, { "variant": "variant"; }, {}, never, ["*"], true, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
11
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./surface.component";
3
+ export declare class SapphireSurfaceModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireSurfaceModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireSurfaceModule, never, [typeof i1.SurfaceComponent], [typeof i1.SurfaceComponent]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireSurfaceModule>;
7
+ }
@@ -0,0 +1,3 @@
1
+ export * from './src/switch.component';
2
+ export * from './src/switch.module';
3
+ export * from './src/switch-required-validator';
@@ -0,0 +1,10 @@
1
+ import { CheckboxRequiredValidator } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Validator for Sapphire switch's required attribute in template-driven checkbox.
5
+ */
6
+ export declare class SapphireSwitchRequiredValidator extends CheckboxRequiredValidator {
7
+ required: boolean;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireSwitchRequiredValidator, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SapphireSwitchRequiredValidator, "sp-switch[required][formControlName], sp-switch[required][formControl], sp-switch[required][ngModel]", never, { "required": "required"; }, {}, never, never, false, never>;
10
+ }
@@ -0,0 +1,91 @@
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { BooleanInput } from '@angular/cdk/coercion';
4
+ import { FocusableOption } from '@angular/cdk/a11y';
5
+ import { HasTabIndex } from '../../common/tabindex';
6
+ import { CanDisable } from '../../common/disabled';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "../../theme/src/theme-check.directive";
9
+ /** Change event object emitted by switch. */
10
+ export declare class SapphireSwitchChange {
11
+ /** The new `selected` value of the switch. */
12
+ readonly selected: boolean;
13
+ /** The source switch of the event. */
14
+ readonly source: SwitchComponent;
15
+ constructor(
16
+ /** The new `selected` value of the switch. */
17
+ selected: boolean,
18
+ /** The source switch of the event. */
19
+ source: SwitchComponent);
20
+ }
21
+ declare const _SwitchMixinBase: import("../../common/constructor").Constructor<HasTabIndex> & import("../../common/constructor").AbstractConstructor<HasTabIndex> & import("../../common/constructor").Constructor<CanDisable> & import("../../common/constructor").AbstractConstructor<CanDisable> & {
22
+ new (_elementRef: ElementRef): {
23
+ _elementRef: ElementRef;
24
+ };
25
+ };
26
+ export declare class SwitchComponent extends _SwitchMixinBase implements ControlValueAccessor, CanDisable, HasTabIndex, FocusableOption {
27
+ private changeDetectorRef;
28
+ /**
29
+ * Attached to the aria-label attribute of the host element. In most cases, aria-labelledby will
30
+ * take precedence so this may be omitted.
31
+ */
32
+ ariaLabel: string;
33
+ /**
34
+ * Users can specify the `aria-labelledby` attribute which will be forwarded to the input element
35
+ */
36
+ ariaLabelledby: string | null;
37
+ /** The 'aria-describedby' attribute is read after the element's label and field type. */
38
+ ariaDescribedby: string;
39
+ /** Name value will be applied to the input element if present */
40
+ name: string | null;
41
+ /** @default "large" */
42
+ size?: 'large' | 'medium';
43
+ /** A unique id for the switch input. If none is supplied, it will be auto-generated. */
44
+ id: string;
45
+ /** Returns the unique id for the visual hidden input. */
46
+ get inputId(): string;
47
+ /** Event emitted when the switch's `selected` value changes. */
48
+ readonly change: EventEmitter<SapphireSwitchChange>;
49
+ /** The value attribute of the native input element */
50
+ value: string | undefined;
51
+ /** Whether the switch is required. */
52
+ required: BooleanInput;
53
+ /** Whether the switch is selected. */
54
+ get selected(): boolean;
55
+ set selected(value: BooleanInput);
56
+ private _selected;
57
+ /**
58
+ * Whether the switch is disabled. This fully overrides the implementation provided by
59
+ * mixinDisabled, but the mixin is still required because mixinTabIndex requires it.
60
+ */
61
+ get disabled(): boolean;
62
+ set disabled(value: BooleanInput);
63
+ private _disabled;
64
+ /**
65
+ * Whether the switch is readonly.
66
+ */
67
+ readonly: BooleanInput;
68
+ /**
69
+ * Called when the switch is blurred. Needed to properly implement ControlValueAccessor.
70
+ * @docs-private
71
+ */
72
+ private onTouched;
73
+ private controlValueAccessorChangeFn;
74
+ /** The native `<input type="checkbox">` element */
75
+ _inputElement: ElementRef<HTMLInputElement>;
76
+ constructor(elementRef: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef, tabIndex: string);
77
+ writeValue(value: any): void;
78
+ registerOnChange(fn: (value: any) => void): void;
79
+ registerOnTouched(fn: any): void;
80
+ setDisabledState(disabled: boolean): void;
81
+ /** Toggles the `selected` state of the switch. */
82
+ toggle(): void;
83
+ focus(): void;
84
+ _onInputClick($event: Event): void;
85
+ _onInteractionEvent(event: Event): void;
86
+ _onBlur(): void;
87
+ private emitChangeEvent;
88
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, [null, null, { attribute: "tabindex"; }]>;
89
+ static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "sp-switch", never, { "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; "ariaDescribedby": "aria-describedby"; "name": "name"; "size": "size"; "id": "id"; "value": "value"; "required": "required"; "selected": "selected"; "disabled": "disabled"; "readonly": "readonly"; }, { "change": "change"; }, never, ["*"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }]>;
90
+ }
91
+ export {};
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./switch.component";
3
+ import * as i2 from "./switch-required-validator";
4
+ import * as i3 from "@angular/common";
5
+ export declare class SapphireSwitchModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireSwitchModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireSwitchModule, [typeof i1.SwitchComponent, typeof i2.SapphireSwitchRequiredValidator], [typeof i3.CommonModule], [typeof i1.SwitchComponent, typeof i2.SapphireSwitchRequiredValidator]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireSwitchModule>;
9
+ }
@@ -0,0 +1,10 @@
1
+ export * from './src/table.component';
2
+ export * from './src/table.directive';
3
+ export * from './src/table-row.directive';
4
+ export * from './src/table-cell.directive';
5
+ export * from './src/table-body.directive';
6
+ export * from './src/table-head-cell.component';
7
+ export * from './src/table-head.directive';
8
+ export * from './src/table-sort.directive';
9
+ export * from './src/table-sort-header.directive';
10
+ export * from './src/table.module';
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../../common/sapphire-view-encapsulation";
3
+ export declare class TableBodyDirective {
4
+ constructor();
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableBodyDirective, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableBodyDirective, "tbody[sp-table-tbody]", never, {}, {}, never, never, false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
7
+ }
@@ -0,0 +1,30 @@
1
+ import { AfterContentChecked } from '@angular/core';
2
+ import { TableRowDirective } from './table-row.directive';
3
+ import { TableComponent } from './table.component';
4
+ import { TruncatedWithTooltipDirective } from '../../tooltip/public_api';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "../../tooltip/src/truncated-with-tooltip.directive";
7
+ import * as i2 from "../../common/sapphire-view-encapsulation";
8
+ type CellAlignment = 'left' | 'center' | 'right';
9
+ export declare class TableCellDirective implements AfterContentChecked {
10
+ private table;
11
+ private truncatedWithTooltipDirective;
12
+ private tableRow;
13
+ get role(): "rowheader" | "cell";
14
+ /**
15
+ * Horizontal alignment of content in the cell.
16
+ *
17
+ * @default 'left'
18
+ */
19
+ get align(): CellAlignment;
20
+ set align(value: CellAlignment);
21
+ _align: CellAlignment | undefined;
22
+ get width(): string | import("@danske/sapphire-angular").TableSortHeaderDirective | undefined;
23
+ get minWidth(): string | import("@danske/sapphire-angular").TableSortHeaderDirective | undefined;
24
+ get maxWidth(): string | import("@danske/sapphire-angular").TableSortHeaderDirective | undefined;
25
+ constructor(table: TableComponent, truncatedWithTooltipDirective: TruncatedWithTooltipDirective, tableRow: TableRowDirective);
26
+ ngAfterContentChecked(): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableCellDirective, never>;
28
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableCellDirective, "td[sp-table-td]", never, { "align": "align"; }, {}, never, never, false, [{ directive: typeof i1.TruncatedWithTooltipDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStyles; inputs: {}; outputs: {}; }]>;
29
+ }
30
+ export {};
@@ -0,0 +1,19 @@
1
+ import { TableSortHeaderDirective } from './table-sort-header.directive';
2
+ import { TableComponent } from './table.component';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "../../common/sapphire-view-encapsulation";
5
+ export declare class TableHeadCellComponent {
6
+ private table;
7
+ tableSortHeader?: TableSortHeaderDirective | undefined;
8
+ /**
9
+ * Horizontal alignment of content in the cell.
10
+ */
11
+ align?: 'left' | 'center' | 'right';
12
+ width?: string;
13
+ minWidth?: string;
14
+ maxWidth?: string;
15
+ get cellOverflow(): "wrap" | "truncate";
16
+ constructor(table: TableComponent, tableSortHeader?: TableSortHeaderDirective | undefined);
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableHeadCellComponent, [null, { optional: true; }]>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableHeadCellComponent, "th[sp-table-th]", never, { "align": "align"; "width": "width"; "minWidth": "minWidth"; "maxWidth": "maxWidth"; }, {}, never, ["*"], false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
19
+ }
@@ -0,0 +1,10 @@
1
+ import { TableComponent } from './table.component';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "../../common/sapphire-view-encapsulation";
4
+ export declare class TableHeadDirective {
5
+ table: TableComponent;
6
+ private get classNames();
7
+ constructor(table: TableComponent);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableHeadDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableHeadDirective, "thead[sp-table-thead]", never, {}, {}, never, never, false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
10
+ }