@kato-lee/cdk 14.2.7

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 (374) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +8 -0
  3. package/_index.scss +8 -0
  4. package/a11y/_index.import.scss +2 -0
  5. package/a11y/_index.scss +102 -0
  6. package/a11y/index.d.ts +1212 -0
  7. package/a11y-prebuilt.css +1 -0
  8. package/accordion/index.d.ts +140 -0
  9. package/bidi/index.d.ts +80 -0
  10. package/clipboard/index.d.ts +115 -0
  11. package/coercion/index.d.ts +67 -0
  12. package/collections/index.d.ts +374 -0
  13. package/dialog/index.d.ts +469 -0
  14. package/drag-drop/index.d.ts +1614 -0
  15. package/esm2020/a11y/a11y-module.mjs +32 -0
  16. package/esm2020/a11y/a11y_public_index.mjs +5 -0
  17. package/esm2020/a11y/aria-describer/aria-describer.mjs +232 -0
  18. package/esm2020/a11y/aria-describer/aria-reference.mjs +44 -0
  19. package/esm2020/a11y/fake-event-detection.mjs +31 -0
  20. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +451 -0
  21. package/esm2020/a11y/focus-trap/configurable-focus-trap-config.mjs +9 -0
  22. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +53 -0
  23. package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +51 -0
  24. package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +61 -0
  25. package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +11 -0
  26. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +53 -0
  27. package/esm2020/a11y/focus-trap/focus-trap.mjs +402 -0
  28. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +109 -0
  29. package/esm2020/a11y/index.mjs +9 -0
  30. package/esm2020/a11y/input-modality/input-modality-detector.mjs +176 -0
  31. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +238 -0
  32. package/esm2020/a11y/key-manager/activedescendant-key-manager.mjs +20 -0
  33. package/esm2020/a11y/key-manager/focus-key-manager.mjs +29 -0
  34. package/esm2020/a11y/key-manager/list-key-manager.mjs +321 -0
  35. package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +19 -0
  36. package/esm2020/a11y/live-announcer/live-announcer.mjs +178 -0
  37. package/esm2020/a11y/public-api.mjs +26 -0
  38. package/esm2020/accordion/accordion-item.mjs +167 -0
  39. package/esm2020/accordion/accordion-module.mjs +24 -0
  40. package/esm2020/accordion/accordion.mjs +70 -0
  41. package/esm2020/accordion/accordion_public_index.mjs +5 -0
  42. package/esm2020/accordion/index.mjs +9 -0
  43. package/esm2020/accordion/public-api.mjs +11 -0
  44. package/esm2020/bidi/bidi-module.mjs +23 -0
  45. package/esm2020/bidi/bidi_public_index.mjs +5 -0
  46. package/esm2020/bidi/dir-document-token.mjs +33 -0
  47. package/esm2020/bidi/dir.mjs +69 -0
  48. package/esm2020/bidi/directionality.mjs +52 -0
  49. package/esm2020/bidi/index.mjs +9 -0
  50. package/esm2020/bidi/public-api.mjs +12 -0
  51. package/esm2020/clipboard/clipboard-module.mjs +23 -0
  52. package/esm2020/clipboard/clipboard.mjs +53 -0
  53. package/esm2020/clipboard/clipboard_public_index.mjs +5 -0
  54. package/esm2020/clipboard/copy-to-clipboard.mjs +99 -0
  55. package/esm2020/clipboard/index.mjs +9 -0
  56. package/esm2020/clipboard/pending-copy.mjs +69 -0
  57. package/esm2020/clipboard/public-api.mjs +12 -0
  58. package/esm2020/coercion/array.mjs +11 -0
  59. package/esm2020/coercion/boolean-property.mjs +12 -0
  60. package/esm2020/coercion/css-pixel-value.mjs +15 -0
  61. package/esm2020/coercion/element.mjs +16 -0
  62. package/esm2020/coercion/index.mjs +9 -0
  63. package/esm2020/coercion/number-property.mjs +21 -0
  64. package/esm2020/coercion/public-api.mjs +14 -0
  65. package/esm2020/coercion/string-array.mjs +38 -0
  66. package/esm2020/collections/array-data-source.mjs +21 -0
  67. package/esm2020/collections/collection-viewer.mjs +9 -0
  68. package/esm2020/collections/collections_public_index.mjs +5 -0
  69. package/esm2020/collections/data-source.mjs +19 -0
  70. package/esm2020/collections/dispose-view-repeater-strategy.mjs +47 -0
  71. package/esm2020/collections/index.mjs +9 -0
  72. package/esm2020/collections/public-api.mjs +17 -0
  73. package/esm2020/collections/recycle-view-repeater-strategy.mjs +128 -0
  74. package/esm2020/collections/selection-model.mjs +216 -0
  75. package/esm2020/collections/tree-adapter.mjs +9 -0
  76. package/esm2020/collections/unique-selection-dispatcher.mjs +55 -0
  77. package/esm2020/collections/view-repeater.mjs +14 -0
  78. package/esm2020/dialog/dialog-config.mjs +63 -0
  79. package/esm2020/dialog/dialog-container.mjs +278 -0
  80. package/esm2020/dialog/dialog-injectors.mjs +26 -0
  81. package/esm2020/dialog/dialog-module.mjs +42 -0
  82. package/esm2020/dialog/dialog-ref.mjs +76 -0
  83. package/esm2020/dialog/dialog.mjs +301 -0
  84. package/esm2020/dialog/dialog_public_index.mjs +5 -0
  85. package/esm2020/dialog/index.mjs +9 -0
  86. package/esm2020/dialog/public-api.mjs +14 -0
  87. package/esm2020/drag-drop/directives/assertions.mjs +18 -0
  88. package/esm2020/drag-drop/directives/config.mjs +14 -0
  89. package/esm2020/drag-drop/directives/drag-handle.mjs +66 -0
  90. package/esm2020/drag-drop/directives/drag-placeholder.mjs +36 -0
  91. package/esm2020/drag-drop/directives/drag-preview.mjs +47 -0
  92. package/esm2020/drag-drop/directives/drag.mjs +487 -0
  93. package/esm2020/drag-drop/directives/drop-list-group.mjs +53 -0
  94. package/esm2020/drag-drop/directives/drop-list.mjs +345 -0
  95. package/esm2020/drag-drop/dom/client-rect.mjs +64 -0
  96. package/esm2020/drag-drop/dom/clone-node.mjs +65 -0
  97. package/esm2020/drag-drop/dom/parent-position-tracker.mjs +76 -0
  98. package/esm2020/drag-drop/dom/styling.mjs +69 -0
  99. package/esm2020/drag-drop/dom/transition-duration.mjs +36 -0
  100. package/esm2020/drag-drop/drag-drop-module.mjs +57 -0
  101. package/esm2020/drag-drop/drag-drop-registry.mjs +231 -0
  102. package/esm2020/drag-drop/drag-drop.mjs +57 -0
  103. package/esm2020/drag-drop/drag-drop_public_index.mjs +5 -0
  104. package/esm2020/drag-drop/drag-events.mjs +9 -0
  105. package/esm2020/drag-drop/drag-parent.mjs +16 -0
  106. package/esm2020/drag-drop/drag-ref.mjs +1146 -0
  107. package/esm2020/drag-drop/drag-utils.mjs +60 -0
  108. package/esm2020/drag-drop/drop-list-ref.mjs +577 -0
  109. package/esm2020/drag-drop/index.mjs +9 -0
  110. package/esm2020/drag-drop/public-api.mjs +23 -0
  111. package/esm2020/drag-drop/sorting/drop-list-sort-strategy.mjs +9 -0
  112. package/esm2020/drag-drop/sorting/single-axis-sort-strategy.mjs +341 -0
  113. package/esm2020/index.mjs +9 -0
  114. package/esm2020/keycodes/index.mjs +9 -0
  115. package/esm2020/keycodes/keycodes.mjs +127 -0
  116. package/esm2020/keycodes/keycodes_public_index.mjs +5 -0
  117. package/esm2020/keycodes/modifiers.mjs +18 -0
  118. package/esm2020/keycodes/public-api.mjs +10 -0
  119. package/esm2020/layout/breakpoints-observer.mjs +105 -0
  120. package/esm2020/layout/breakpoints.mjs +29 -0
  121. package/esm2020/layout/index.mjs +9 -0
  122. package/esm2020/layout/layout-module.mjs +19 -0
  123. package/esm2020/layout/layout_public_index.mjs +5 -0
  124. package/esm2020/layout/media-matcher.mjs +85 -0
  125. package/esm2020/layout/public-api.mjs +12 -0
  126. package/esm2020/listbox/index.mjs +9 -0
  127. package/esm2020/listbox/listbox-module.mjs +24 -0
  128. package/esm2020/listbox/listbox.mjs +872 -0
  129. package/esm2020/listbox/listbox_public_index.mjs +5 -0
  130. package/esm2020/listbox/public-api.mjs +10 -0
  131. package/esm2020/menu/context-menu-trigger.mjs +212 -0
  132. package/esm2020/menu/index.mjs +9 -0
  133. package/esm2020/menu/menu-aim.mjs +203 -0
  134. package/esm2020/menu/menu-bar.mjs +133 -0
  135. package/esm2020/menu/menu-base.mjs +187 -0
  136. package/esm2020/menu/menu-errors.mjs +22 -0
  137. package/esm2020/menu/menu-group.mjs +30 -0
  138. package/esm2020/menu/menu-interface.mjs +11 -0
  139. package/esm2020/menu/menu-item-checkbox.mjs +49 -0
  140. package/esm2020/menu/menu-item-radio.mjs +71 -0
  141. package/esm2020/menu/menu-item-selectable.mjs +42 -0
  142. package/esm2020/menu/menu-item.mjs +267 -0
  143. package/esm2020/menu/menu-module.mjs +62 -0
  144. package/esm2020/menu/menu-stack.mjs +156 -0
  145. package/esm2020/menu/menu-trigger-base.mjs +107 -0
  146. package/esm2020/menu/menu-trigger.mjs +291 -0
  147. package/esm2020/menu/menu.mjs +134 -0
  148. package/esm2020/menu/menu_public_index.mjs +5 -0
  149. package/esm2020/menu/pointer-focus-tracker.mjs +51 -0
  150. package/esm2020/menu/public-api.mjs +24 -0
  151. package/esm2020/observers/index.mjs +9 -0
  152. package/esm2020/observers/observe-content.mjs +187 -0
  153. package/esm2020/observers/observers_public_index.mjs +5 -0
  154. package/esm2020/observers/public-api.mjs +9 -0
  155. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +52 -0
  156. package/esm2020/overlay/dispatchers/index.mjs +10 -0
  157. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +81 -0
  158. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +138 -0
  159. package/esm2020/overlay/fullscreen-overlay-container.mjs +94 -0
  160. package/esm2020/overlay/index.mjs +9 -0
  161. package/esm2020/overlay/overlay-config.mjs +45 -0
  162. package/esm2020/overlay/overlay-container.mjs +81 -0
  163. package/esm2020/overlay/overlay-directives.mjs +427 -0
  164. package/esm2020/overlay/overlay-module.mjs +29 -0
  165. package/esm2020/overlay/overlay-ref.mjs +427 -0
  166. package/esm2020/overlay/overlay-reference.mjs +9 -0
  167. package/esm2020/overlay/overlay.mjs +125 -0
  168. package/esm2020/overlay/overlay_public_index.mjs +5 -0
  169. package/esm2020/overlay/position/connected-position.mjs +88 -0
  170. package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +985 -0
  171. package/esm2020/overlay/position/global-position-strategy.mjs +237 -0
  172. package/esm2020/overlay/position/overlay-position-builder.mjs +50 -0
  173. package/esm2020/overlay/position/position-strategy.mjs +9 -0
  174. package/esm2020/overlay/position/scroll-clip.mjs +40 -0
  175. package/esm2020/overlay/public-api.mjs +22 -0
  176. package/esm2020/overlay/scroll/block-scroll-strategy.mjs +80 -0
  177. package/esm2020/overlay/scroll/close-scroll-strategy.mjs +61 -0
  178. package/esm2020/overlay/scroll/index.mjs +14 -0
  179. package/esm2020/overlay/scroll/noop-scroll-strategy.mjs +17 -0
  180. package/esm2020/overlay/scroll/reposition-scroll-strategy.mjs +61 -0
  181. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +55 -0
  182. package/esm2020/overlay/scroll/scroll-strategy.mjs +14 -0
  183. package/esm2020/platform/features/input-types.mjs +59 -0
  184. package/esm2020/platform/features/passive-listeners.mjs +36 -0
  185. package/esm2020/platform/features/scrolling.mjs +85 -0
  186. package/esm2020/platform/features/shadow-dom.mjs +54 -0
  187. package/esm2020/platform/features/test-environment.mjs +24 -0
  188. package/esm2020/platform/index.mjs +9 -0
  189. package/esm2020/platform/platform-module.mjs +19 -0
  190. package/esm2020/platform/platform.mjs +85 -0
  191. package/esm2020/platform/platform_public_index.mjs +5 -0
  192. package/esm2020/platform/public-api.mjs +15 -0
  193. package/esm2020/portal/dom-portal-outlet.mjs +158 -0
  194. package/esm2020/portal/index.mjs +9 -0
  195. package/esm2020/portal/portal-directives.mjs +246 -0
  196. package/esm2020/portal/portal-errors.mjs +51 -0
  197. package/esm2020/portal/portal-injector.mjs +28 -0
  198. package/esm2020/portal/portal.mjs +188 -0
  199. package/esm2020/portal/portal_public_index.mjs +5 -0
  200. package/esm2020/portal/public-api.mjs +12 -0
  201. package/esm2020/public-api.mjs +9 -0
  202. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +217 -0
  203. package/esm2020/scrolling/index.mjs +9 -0
  204. package/esm2020/scrolling/public-api.mjs +20 -0
  205. package/esm2020/scrolling/scroll-dispatcher.mjs +163 -0
  206. package/esm2020/scrolling/scrollable.mjs +176 -0
  207. package/esm2020/scrolling/scrolling-module.mjs +67 -0
  208. package/esm2020/scrolling/scrolling_public_index.mjs +5 -0
  209. package/esm2020/scrolling/viewport-ruler.mjs +146 -0
  210. package/esm2020/scrolling/virtual-for-of.mjs +298 -0
  211. package/esm2020/scrolling/virtual-scroll-repeater.mjs +9 -0
  212. package/esm2020/scrolling/virtual-scroll-strategy.mjs +11 -0
  213. package/esm2020/scrolling/virtual-scroll-viewport.mjs +437 -0
  214. package/esm2020/scrolling/virtual-scrollable-element.mjs +41 -0
  215. package/esm2020/scrolling/virtual-scrollable-window.mjs +40 -0
  216. package/esm2020/scrolling/virtual-scrollable.mjs +40 -0
  217. package/esm2020/stepper/index.mjs +9 -0
  218. package/esm2020/stepper/public-api.mjs +13 -0
  219. package/esm2020/stepper/step-header.mjs +30 -0
  220. package/esm2020/stepper/step-label.mjs +23 -0
  221. package/esm2020/stepper/stepper-button.mjs +56 -0
  222. package/esm2020/stepper/stepper-module.mjs +40 -0
  223. package/esm2020/stepper/stepper.mjs +458 -0
  224. package/esm2020/stepper/stepper_public_index.mjs +5 -0
  225. package/esm2020/table/can-stick.mjs +44 -0
  226. package/esm2020/table/cell.mjs +217 -0
  227. package/esm2020/table/coalesced-style-scheduler.mjs +91 -0
  228. package/esm2020/table/index.mjs +9 -0
  229. package/esm2020/table/public-api.mjs +20 -0
  230. package/esm2020/table/row.mjs +262 -0
  231. package/esm2020/table/sticky-position-listener.mjs +11 -0
  232. package/esm2020/table/sticky-styler.mjs +345 -0
  233. package/esm2020/table/table-errors.mjs +67 -0
  234. package/esm2020/table/table-module.mjs +94 -0
  235. package/esm2020/table/table.mjs +1065 -0
  236. package/esm2020/table/table_public_index.mjs +5 -0
  237. package/esm2020/table/text-column.mjs +153 -0
  238. package/esm2020/table/tokens.mjs +16 -0
  239. package/esm2020/text-field/autofill.mjs +113 -0
  240. package/esm2020/text-field/autosize.mjs +309 -0
  241. package/esm2020/text-field/index.mjs +9 -0
  242. package/esm2020/text-field/public-api.mjs +11 -0
  243. package/esm2020/text-field/text-field-module.mjs +24 -0
  244. package/esm2020/text-field/text-field_public_index.mjs +5 -0
  245. package/esm2020/tree/control/base-tree-control.mjs +57 -0
  246. package/esm2020/tree/control/flat-tree-control.mjs +51 -0
  247. package/esm2020/tree/control/nested-tree-control.mjs +58 -0
  248. package/esm2020/tree/control/tree-control.mjs +2 -0
  249. package/esm2020/tree/index.mjs +9 -0
  250. package/esm2020/tree/nested-node.mjs +112 -0
  251. package/esm2020/tree/node.mjs +35 -0
  252. package/esm2020/tree/outlet.mjs +39 -0
  253. package/esm2020/tree/padding.mjs +131 -0
  254. package/esm2020/tree/public-api.mjs +20 -0
  255. package/esm2020/tree/toggle.mjs +50 -0
  256. package/esm2020/tree/tree-errors.mjs +43 -0
  257. package/esm2020/tree/tree-module.mjs +49 -0
  258. package/esm2020/tree/tree.mjs +347 -0
  259. package/esm2020/tree/tree_public_index.mjs +5 -0
  260. package/esm2020/version.mjs +11 -0
  261. package/fesm2015/a11y.mjs +2473 -0
  262. package/fesm2015/a11y.mjs.map +1 -0
  263. package/fesm2015/accordion.mjs +414 -0
  264. package/fesm2015/accordion.mjs.map +1 -0
  265. package/fesm2015/bidi.mjs +194 -0
  266. package/fesm2015/bidi.mjs.map +1 -0
  267. package/fesm2015/cdk.mjs +30 -0
  268. package/fesm2015/cdk.mjs.map +1 -0
  269. package/fesm2015/clipboard.mjs +263 -0
  270. package/fesm2015/clipboard.mjs.map +1 -0
  271. package/fesm2015/coercion.mjs +132 -0
  272. package/fesm2015/coercion.mjs.map +1 -0
  273. package/fesm2015/collections.mjs +519 -0
  274. package/fesm2015/collections.mjs.map +1 -0
  275. package/fesm2015/dialog.mjs +1050 -0
  276. package/fesm2015/dialog.mjs.map +1 -0
  277. package/fesm2015/drag-drop.mjs +3812 -0
  278. package/fesm2015/drag-drop.mjs.map +1 -0
  279. package/fesm2015/keycodes.mjs +167 -0
  280. package/fesm2015/keycodes.mjs.map +1 -0
  281. package/fesm2015/layout.mjs +337 -0
  282. package/fesm2015/layout.mjs.map +1 -0
  283. package/fesm2015/listbox.mjs +1200 -0
  284. package/fesm2015/listbox.mjs.map +1 -0
  285. package/fesm2015/menu.mjs +2719 -0
  286. package/fesm2015/menu.mjs.map +1 -0
  287. package/fesm2015/observers.mjs +326 -0
  288. package/fesm2015/observers.mjs.map +1 -0
  289. package/fesm2015/overlay.mjs +3137 -0
  290. package/fesm2015/overlay.mjs.map +1 -0
  291. package/fesm2015/platform.mjs +385 -0
  292. package/fesm2015/platform.mjs.map +1 -0
  293. package/fesm2015/portal.mjs +691 -0
  294. package/fesm2015/portal.mjs.map +1 -0
  295. package/fesm2015/scrolling.mjs +1558 -0
  296. package/fesm2015/scrolling.mjs.map +1 -0
  297. package/fesm2015/stepper.mjs +989 -0
  298. package/fesm2015/stepper.mjs.map +1 -0
  299. package/fesm2015/table.mjs +2356 -0
  300. package/fesm2015/table.mjs.map +1 -0
  301. package/fesm2015/testing.mjs +833 -0
  302. package/fesm2015/testing.mjs.map +1 -0
  303. package/fesm2015/text-field.mjs +461 -0
  304. package/fesm2015/text-field.mjs.map +1 -0
  305. package/fesm2015/tree.mjs +1303 -0
  306. package/fesm2015/tree.mjs.map +1 -0
  307. package/fesm2020/a11y.mjs +2476 -0
  308. package/fesm2020/a11y.mjs.map +1 -0
  309. package/fesm2020/accordion.mjs +414 -0
  310. package/fesm2020/accordion.mjs.map +1 -0
  311. package/fesm2020/bidi.mjs +192 -0
  312. package/fesm2020/bidi.mjs.map +1 -0
  313. package/fesm2020/cdk.mjs +30 -0
  314. package/fesm2020/cdk.mjs.map +1 -0
  315. package/fesm2020/clipboard.mjs +259 -0
  316. package/fesm2020/clipboard.mjs.map +1 -0
  317. package/fesm2020/coercion.mjs +132 -0
  318. package/fesm2020/coercion.mjs.map +1 -0
  319. package/fesm2020/collections.mjs +535 -0
  320. package/fesm2020/collections.mjs.map +1 -0
  321. package/fesm2020/dialog.mjs +787 -0
  322. package/fesm2020/dialog.mjs.map +1 -0
  323. package/fesm2020/drag-drop.mjs +3808 -0
  324. package/fesm2020/drag-drop.mjs.map +1 -0
  325. package/fesm2020/keycodes.mjs +167 -0
  326. package/fesm2020/keycodes.mjs.map +1 -0
  327. package/fesm2020/layout.mjs +337 -0
  328. package/fesm2020/layout.mjs.map +1 -0
  329. package/fesm2020/listbox.mjs +1164 -0
  330. package/fesm2020/listbox.mjs.map +1 -0
  331. package/fesm2020/menu.mjs +2615 -0
  332. package/fesm2020/menu.mjs.map +1 -0
  333. package/fesm2020/observers.mjs +325 -0
  334. package/fesm2020/observers.mjs.map +1 -0
  335. package/fesm2020/overlay.mjs +3145 -0
  336. package/fesm2020/overlay.mjs.map +1 -0
  337. package/fesm2020/platform.mjs +383 -0
  338. package/fesm2020/platform.mjs.map +1 -0
  339. package/fesm2020/portal.mjs +689 -0
  340. package/fesm2020/portal.mjs.map +1 -0
  341. package/fesm2020/scrolling.mjs +1591 -0
  342. package/fesm2020/scrolling.mjs.map +1 -0
  343. package/fesm2020/stepper.mjs +985 -0
  344. package/fesm2020/stepper.mjs.map +1 -0
  345. package/fesm2020/table.mjs +2348 -0
  346. package/fesm2020/table.mjs.map +1 -0
  347. package/fesm2020/testing.mjs +797 -0
  348. package/fesm2020/testing.mjs.map +1 -0
  349. package/fesm2020/text-field.mjs +459 -0
  350. package/fesm2020/text-field.mjs.map +1 -0
  351. package/fesm2020/tree.mjs +1305 -0
  352. package/fesm2020/tree.mjs.map +1 -0
  353. package/index.d.ts +6 -0
  354. package/keycodes/index.d.ts +249 -0
  355. package/layout/index.d.ts +90 -0
  356. package/listbox/index.d.ts +419 -0
  357. package/menu/index.d.ts +1013 -0
  358. package/observers/index.d.ts +109 -0
  359. package/overlay/_index-deprecated.scss +13 -0
  360. package/overlay/_index.import.scss +13 -0
  361. package/overlay/_index.scss +152 -0
  362. package/overlay/index.d.ts +1343 -0
  363. package/overlay-prebuilt.css +1 -0
  364. package/package.json +232 -0
  365. package/platform/index.d.ts +106 -0
  366. package/portal/index.d.ts +328 -0
  367. package/scrolling/index.d.ts +849 -0
  368. package/stepper/index.d.ts +419 -0
  369. package/table/index.d.ts +1483 -0
  370. package/text-field/_index.import.scss +2 -0
  371. package/text-field/_index.scss +89 -0
  372. package/text-field/index.d.ts +203 -0
  373. package/text-field-prebuilt.css +1 -0
  374. package/tree/index.d.ts +593 -0
@@ -0,0 +1,1483 @@
1
+ import { AfterContentChecked } from '@angular/core';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ import { BooleanInput } from '@kato-lee/cdk/coercion';
4
+ import { ChangeDetectorRef } from '@angular/core';
5
+ import { CollectionViewer } from '@kato-lee/cdk/collections';
6
+ import { DataSource } from '@kato-lee/cdk/collections';
7
+ import { Direction } from '@kato-lee/cdk/bidi';
8
+ import { Directionality } from '@kato-lee/cdk/bidi';
9
+ import { ElementRef } from '@angular/core';
10
+ import { EventEmitter } from '@angular/core';
11
+ import * as i0 from '@angular/core';
12
+ import * as i5 from '@kato-lee/cdk/scrolling';
13
+ import { InjectionToken } from '@angular/core';
14
+ import { IterableChanges } from '@angular/core';
15
+ import { IterableDiffer } from '@angular/core';
16
+ import { IterableDiffers } from '@angular/core';
17
+ import { NgZone } from '@angular/core';
18
+ import { Observable } from 'rxjs';
19
+ import { OnChanges } from '@angular/core';
20
+ import { OnDestroy } from '@angular/core';
21
+ import { OnInit } from '@angular/core';
22
+ import { Platform } from '@kato-lee/cdk/platform';
23
+ import { QueryList } from '@angular/core';
24
+ import { SimpleChanges } from '@angular/core';
25
+ import { TemplateRef } from '@angular/core';
26
+ import { TrackByFunction } from '@angular/core';
27
+ import { ViewContainerRef } from '@angular/core';
28
+ import { ViewportRuler } from '@kato-lee/cdk/scrolling';
29
+ import { _ViewRepeater } from '@kato-lee/cdk/collections';
30
+
31
+ /** Base class for the cells. Adds a CSS classname that identifies the column it renders in. */
32
+ export declare class BaseCdkCell {
33
+ constructor(columnDef: CdkColumnDef, elementRef: ElementRef);
34
+ }
35
+
36
+ /**
37
+ * Base class for the CdkHeaderRowDef and CdkRowDef that handles checking their columns inputs
38
+ * for changes and notifying the table.
39
+ */
40
+ export declare abstract class BaseRowDef implements OnChanges {
41
+ /** @docs-private */ template: TemplateRef<any>;
42
+ protected _differs: IterableDiffers;
43
+ /** The columns to be displayed on this row. */
44
+ columns: Iterable<string>;
45
+ /** Differ used to check if any changes were made to the columns. */
46
+ protected _columnsDiffer: IterableDiffer<any>;
47
+ constructor(/** @docs-private */ template: TemplateRef<any>, _differs: IterableDiffers);
48
+ ngOnChanges(changes: SimpleChanges): void;
49
+ /**
50
+ * Returns the difference between the current columns and the columns from the last diff, or null
51
+ * if there is no difference.
52
+ */
53
+ getColumnsDiff(): IterableChanges<any> | null;
54
+ /** Gets this row def's relevant cell template from the provided column def. */
55
+ extractCellTemplate(column: CdkColumnDef): TemplateRef<any>;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseRowDef, never>;
57
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseRowDef, never, never, {}, {}, never, never, false>;
58
+ }
59
+
60
+ /**
61
+ * Interface for a mixin to provide a directive with a function that checks if the sticky input has
62
+ * been changed since the last time the function was called. Essentially adds a dirty-check to the
63
+ * sticky value.
64
+ * @docs-private
65
+ */
66
+ export declare interface CanStick {
67
+ /** Whether sticky positioning should be applied. */
68
+ sticky: boolean;
69
+ /** Whether the sticky input has changed since it was last checked. */
70
+ _hasStickyChanged: boolean;
71
+ /** Whether the sticky value has changed since this was last called. */
72
+ hasStickyChanged(): boolean;
73
+ /** Resets the dirty check for cases where the sticky state has been used without checking. */
74
+ resetStickyChanged(): void;
75
+ }
76
+
77
+ /** @docs-private */
78
+ export declare type CanStickCtor = Constructor<CanStick>;
79
+
80
+ /**
81
+ * The row template that can be used by the mat-table. Should not be used outside of the
82
+ * material library.
83
+ */
84
+ export declare const CDK_ROW_TEMPLATE = '<ng-container cdkCellOutlet></ng-container>';
85
+
86
+ /**
87
+ * Used to provide a table to some of the sub-components without causing a circular dependency.
88
+ * @docs-private
89
+ */
90
+ export declare const CDK_TABLE: InjectionToken<any>;
91
+
92
+ /**
93
+ * The table template that can be used by the mat-table. Should not be used outside of the
94
+ * material library.
95
+ * @docs-private
96
+ */
97
+ export declare const CDK_TABLE_TEMPLATE =
98
+ '\n <ng-content select="caption"></ng-content>\n <ng-content select="colgroup, col"></ng-content>\n <ng-container headerRowOutlet></ng-container>\n <ng-container rowOutlet></ng-container>\n <ng-container noDataRowOutlet></ng-container>\n <ng-container footerRowOutlet></ng-container>\n';
99
+
100
+ /** Cell template container that adds the right classes and role. */
101
+ export declare class CdkCell extends BaseCdkCell {
102
+ constructor(columnDef: CdkColumnDef, elementRef: ElementRef);
103
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkCell, never>;
104
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
105
+ CdkCell,
106
+ 'cdk-cell, td[cdk-cell]',
107
+ never,
108
+ {},
109
+ {},
110
+ never,
111
+ never,
112
+ false
113
+ >;
114
+ }
115
+
116
+ /**
117
+ * Cell definition for a CDK table.
118
+ * Captures the template of a column's data row cell as well as cell-specific properties.
119
+ */
120
+ export declare class CdkCellDef implements CellDef {
121
+ template: TemplateRef<any>;
122
+ constructor(/** @docs-private */ template: TemplateRef<any>);
123
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkCellDef, never>;
124
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
125
+ CdkCellDef,
126
+ '[cdkCellDef]',
127
+ never,
128
+ {},
129
+ {},
130
+ never,
131
+ never,
132
+ false
133
+ >;
134
+ }
135
+
136
+ /**
137
+ * Outlet for rendering cells inside of a row or header row.
138
+ * @docs-private
139
+ */
140
+ export declare class CdkCellOutlet implements OnDestroy {
141
+ _viewContainer: ViewContainerRef;
142
+ /** The ordered list of cells to render within this outlet's view container */
143
+ cells: CdkCellDef[];
144
+ /** The data context to be provided to each cell */
145
+ context: any;
146
+ /**
147
+ * Static property containing the latest constructed instance of this class.
148
+ * Used by the CDK table when each CdkHeaderRow and CdkRow component is created using
149
+ * createEmbeddedView. After one of these components are created, this property will provide
150
+ * a handle to provide that component's cells and context. After init, the CdkCellOutlet will
151
+ * construct the cells with the provided context.
152
+ */
153
+ static mostRecentCellOutlet: CdkCellOutlet | null;
154
+ constructor(_viewContainer: ViewContainerRef);
155
+ ngOnDestroy(): void;
156
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkCellOutlet, never>;
157
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
158
+ CdkCellOutlet,
159
+ '[cdkCellOutlet]',
160
+ never,
161
+ {},
162
+ {},
163
+ never,
164
+ never,
165
+ false
166
+ >;
167
+ }
168
+
169
+ /**
170
+ * Context provided to the row cells when `multiTemplateDataRows` is true. This context is the same
171
+ * as CdkCellOutletRowContext except that the single `index` value is replaced by `dataIndex` and
172
+ * `renderIndex`.
173
+ */
174
+ export declare interface CdkCellOutletMultiRowContext<T> {
175
+ /** Data for the row that this cell is located within. */
176
+ $implicit?: T;
177
+ /** Index of the data object in the provided data array. */
178
+ dataIndex?: number;
179
+ /** Index location of the rendered row that this cell is located within. */
180
+ renderIndex?: number;
181
+ /** Length of the number of total rows. */
182
+ count?: number;
183
+ /** True if this cell is contained in the first row. */
184
+ first?: boolean;
185
+ /** True if this cell is contained in the last row. */
186
+ last?: boolean;
187
+ /** True if this cell is contained in a row with an even-numbered index. */
188
+ even?: boolean;
189
+ /** True if this cell is contained in a row with an odd-numbered index. */
190
+ odd?: boolean;
191
+ }
192
+
193
+ /** Context provided to the row cells when `multiTemplateDataRows` is false */
194
+ export declare interface CdkCellOutletRowContext<T> {
195
+ /** Data for the row that this cell is located within. */
196
+ $implicit?: T;
197
+ /** Index of the data object in the provided data array. */
198
+ index?: number;
199
+ /** Length of the number of total rows. */
200
+ count?: number;
201
+ /** True if this cell is contained in the first row. */
202
+ first?: boolean;
203
+ /** True if this cell is contained in the last row. */
204
+ last?: boolean;
205
+ /** True if this cell is contained in a row with an even-numbered index. */
206
+ even?: boolean;
207
+ /** True if this cell is contained in a row with an odd-numbered index. */
208
+ odd?: boolean;
209
+ }
210
+
211
+ /**
212
+ * Column definition for the CDK table.
213
+ * Defines a set of cells available for a table column.
214
+ */
215
+ export declare class CdkColumnDef extends _CdkColumnDefBase implements CanStick {
216
+ _table?: any;
217
+ /** Unique name for this column. */
218
+ get name(): string;
219
+ set name(name: string);
220
+ protected _name: string;
221
+ /**
222
+ * Whether this column should be sticky positioned on the end of the row. Should make sure
223
+ * that it mimics the `CanStick` mixin such that `_hasStickyChanged` is set to true if the value
224
+ * has been changed.
225
+ */
226
+ get stickyEnd(): boolean;
227
+ set stickyEnd(v: BooleanInput);
228
+ _stickyEnd: boolean;
229
+ /** @docs-private */
230
+ cell: CdkCellDef;
231
+ /** @docs-private */
232
+ headerCell: CdkHeaderCellDef;
233
+ /** @docs-private */
234
+ footerCell: CdkFooterCellDef;
235
+ /**
236
+ * Transformed version of the column name that can be used as part of a CSS classname. Excludes
237
+ * all non-alphanumeric characters and the special characters '-' and '_'. Any characters that
238
+ * do not match are replaced by the '-' character.
239
+ */
240
+ cssClassFriendlyName: string;
241
+ /**
242
+ * Class name for cells in this column.
243
+ * @docs-private
244
+ */
245
+ _columnCssClassName: string[];
246
+ constructor(_table?: any);
247
+ /**
248
+ * Overridable method that sets the css classes that will be added to every cell in this
249
+ * column.
250
+ * In the future, columnCssClassName will change from type string[] to string and this
251
+ * will set a single string value.
252
+ * @docs-private
253
+ */
254
+ protected _updateColumnCssClassName(): void;
255
+ /**
256
+ * This has been extracted to a util because of TS 4 and VE.
257
+ * View Engine doesn't support property rename inheritance.
258
+ * TS 4.0 doesn't allow properties to override accessors or vice-versa.
259
+ * @docs-private
260
+ */
261
+ protected _setNameInput(value: string): void;
262
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkColumnDef, [{ optional: true }]>;
263
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
264
+ CdkColumnDef,
265
+ '[cdkColumnDef]',
266
+ never,
267
+ { sticky: 'sticky'; name: 'cdkColumnDef'; stickyEnd: 'stickyEnd' },
268
+ {},
269
+ ['cell', 'headerCell', 'footerCell'],
270
+ never,
271
+ false
272
+ >;
273
+ }
274
+
275
+ /** @docs-private */
276
+ declare class CdkColumnDefBase {}
277
+
278
+ declare const _CdkColumnDefBase: CanStickCtor & typeof CdkColumnDefBase;
279
+
280
+ /** Footer cell template container that adds the right classes and role. */
281
+ export declare class CdkFooterCell extends BaseCdkCell {
282
+ constructor(columnDef: CdkColumnDef, elementRef: ElementRef);
283
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterCell, never>;
284
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
285
+ CdkFooterCell,
286
+ 'cdk-footer-cell, td[cdk-footer-cell]',
287
+ never,
288
+ {},
289
+ {},
290
+ never,
291
+ never,
292
+ false
293
+ >;
294
+ }
295
+
296
+ /**
297
+ * Footer cell definition for a CDK table.
298
+ * Captures the template of a column's footer cell and as well as cell-specific properties.
299
+ */
300
+ export declare class CdkFooterCellDef implements CellDef {
301
+ template: TemplateRef<any>;
302
+ constructor(/** @docs-private */ template: TemplateRef<any>);
303
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterCellDef, never>;
304
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
305
+ CdkFooterCellDef,
306
+ '[cdkFooterCellDef]',
307
+ never,
308
+ {},
309
+ {},
310
+ never,
311
+ never,
312
+ false
313
+ >;
314
+ }
315
+
316
+ /** Footer template container that contains the cell outlet. Adds the right class and role. */
317
+ export declare class CdkFooterRow {
318
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterRow, never>;
319
+ static ɵcmp: i0.ɵɵComponentDeclaration<
320
+ CdkFooterRow,
321
+ 'cdk-footer-row, tr[cdk-footer-row]',
322
+ never,
323
+ {},
324
+ {},
325
+ never,
326
+ never,
327
+ false
328
+ >;
329
+ }
330
+
331
+ /**
332
+ * Footer row definition for the CDK table.
333
+ * Captures the footer row's template and other footer properties such as the columns to display.
334
+ */
335
+ export declare class CdkFooterRowDef extends _CdkFooterRowDefBase implements CanStick, OnChanges {
336
+ _table?: any;
337
+ constructor(template: TemplateRef<any>, _differs: IterableDiffers, _table?: any);
338
+ ngOnChanges(changes: SimpleChanges): void;
339
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterRowDef, [null, null, { optional: true }]>;
340
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
341
+ CdkFooterRowDef,
342
+ '[cdkFooterRowDef]',
343
+ never,
344
+ { columns: 'cdkFooterRowDef'; sticky: 'cdkFooterRowDefSticky' },
345
+ {},
346
+ never,
347
+ never,
348
+ false
349
+ >;
350
+ }
351
+
352
+ /** @docs-private */
353
+ declare class CdkFooterRowDefBase extends BaseRowDef {}
354
+
355
+ declare const _CdkFooterRowDefBase: CanStickCtor & typeof CdkFooterRowDefBase;
356
+
357
+ /** Header cell template container that adds the right classes and role. */
358
+ export declare class CdkHeaderCell extends BaseCdkCell {
359
+ constructor(columnDef: CdkColumnDef, elementRef: ElementRef);
360
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderCell, never>;
361
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
362
+ CdkHeaderCell,
363
+ 'cdk-header-cell, th[cdk-header-cell]',
364
+ never,
365
+ {},
366
+ {},
367
+ never,
368
+ never,
369
+ false
370
+ >;
371
+ }
372
+
373
+ /**
374
+ * Header cell definition for a CDK table.
375
+ * Captures the template of a column's header cell and as well as cell-specific properties.
376
+ */
377
+ export declare class CdkHeaderCellDef implements CellDef {
378
+ template: TemplateRef<any>;
379
+ constructor(/** @docs-private */ template: TemplateRef<any>);
380
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderCellDef, never>;
381
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
382
+ CdkHeaderCellDef,
383
+ '[cdkHeaderCellDef]',
384
+ never,
385
+ {},
386
+ {},
387
+ never,
388
+ never,
389
+ false
390
+ >;
391
+ }
392
+
393
+ /** Header template container that contains the cell outlet. Adds the right class and role. */
394
+ export declare class CdkHeaderRow {
395
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderRow, never>;
396
+ static ɵcmp: i0.ɵɵComponentDeclaration<
397
+ CdkHeaderRow,
398
+ 'cdk-header-row, tr[cdk-header-row]',
399
+ never,
400
+ {},
401
+ {},
402
+ never,
403
+ never,
404
+ false
405
+ >;
406
+ }
407
+
408
+ /**
409
+ * Header row definition for the CDK table.
410
+ * Captures the header row's template and other header properties such as the columns to display.
411
+ */
412
+ export declare class CdkHeaderRowDef extends _CdkHeaderRowDefBase implements CanStick, OnChanges {
413
+ _table?: any;
414
+ constructor(template: TemplateRef<any>, _differs: IterableDiffers, _table?: any);
415
+ ngOnChanges(changes: SimpleChanges): void;
416
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderRowDef, [null, null, { optional: true }]>;
417
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
418
+ CdkHeaderRowDef,
419
+ '[cdkHeaderRowDef]',
420
+ never,
421
+ { columns: 'cdkHeaderRowDef'; sticky: 'cdkHeaderRowDefSticky' },
422
+ {},
423
+ never,
424
+ never,
425
+ false
426
+ >;
427
+ }
428
+
429
+ /** @docs-private */
430
+ declare class CdkHeaderRowDefBase extends BaseRowDef {}
431
+
432
+ declare const _CdkHeaderRowDefBase: CanStickCtor & typeof CdkHeaderRowDefBase;
433
+
434
+ /** Row that can be used to display a message when no data is shown in the table. */
435
+ export declare class CdkNoDataRow {
436
+ templateRef: TemplateRef<any>;
437
+ _contentClassName: string;
438
+ constructor(templateRef: TemplateRef<any>);
439
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkNoDataRow, never>;
440
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
441
+ CdkNoDataRow,
442
+ 'ng-template[cdkNoDataRow]',
443
+ never,
444
+ {},
445
+ {},
446
+ never,
447
+ never,
448
+ false
449
+ >;
450
+ }
451
+
452
+ /**
453
+ * Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with
454
+ * tables that animate rows.
455
+ */
456
+ export declare class CdkRecycleRows {
457
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkRecycleRows, never>;
458
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
459
+ CdkRecycleRows,
460
+ 'cdk-table[recycleRows], table[cdk-table][recycleRows]',
461
+ never,
462
+ {},
463
+ {},
464
+ never,
465
+ never,
466
+ false
467
+ >;
468
+ }
469
+
470
+ /** Data row template container that contains the cell outlet. Adds the right class and role. */
471
+ export declare class CdkRow {
472
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkRow, never>;
473
+ static ɵcmp: i0.ɵɵComponentDeclaration<
474
+ CdkRow,
475
+ 'cdk-row, tr[cdk-row]',
476
+ never,
477
+ {},
478
+ {},
479
+ never,
480
+ never,
481
+ false
482
+ >;
483
+ }
484
+
485
+ /**
486
+ * Data row definition for the CDK table.
487
+ * Captures the header row's template and other row properties such as the columns to display and
488
+ * a when predicate that describes when this row should be used.
489
+ */
490
+ export declare class CdkRowDef<T> extends BaseRowDef {
491
+ _table?: any;
492
+ /**
493
+ * Function that should return true if this row template should be used for the provided index
494
+ * and row data. If left undefined, this row will be considered the default row template to use
495
+ * when no other when functions return true for the data.
496
+ * For every row, there must be at least one when function that passes or an undefined to default.
497
+ */
498
+ when: (index: number, rowData: T) => boolean;
499
+ constructor(template: TemplateRef<any>, _differs: IterableDiffers, _table?: any);
500
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkRowDef<any>, [null, null, { optional: true }]>;
501
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
502
+ CdkRowDef<any>,
503
+ '[cdkRowDef]',
504
+ never,
505
+ { columns: 'cdkRowDefColumns'; when: 'cdkRowDefWhen' },
506
+ {},
507
+ never,
508
+ never,
509
+ false
510
+ >;
511
+ }
512
+
513
+ /**
514
+ * A data table that can render a header row, data rows, and a footer row.
515
+ * Uses the dataSource input to determine the data to be rendered. The data can be provided either
516
+ * as a data array, an Observable stream that emits the data array to render, or a DataSource with a
517
+ * connect function that will return an Observable stream that emits the data array to render.
518
+ */
519
+ export declare class CdkTable<T>
520
+ implements AfterContentChecked, CollectionViewer, OnDestroy, OnInit
521
+ {
522
+ protected readonly _differs: IterableDiffers;
523
+ protected readonly _changeDetectorRef: ChangeDetectorRef;
524
+ protected readonly _elementRef: ElementRef;
525
+ protected readonly _dir: Directionality;
526
+ private _platform;
527
+ protected readonly _viewRepeater: _ViewRepeater<T, RenderRow<T>, RowContext<T>>;
528
+ protected readonly _coalescedStyleScheduler: _CoalescedStyleScheduler;
529
+ private readonly _viewportRuler;
530
+ /**
531
+ * @deprecated `_stickyPositioningListener` parameter to become required.
532
+ * @breaking-change 13.0.0
533
+ */
534
+ protected readonly _stickyPositioningListener: StickyPositioningListener;
535
+ /**
536
+ * @deprecated `_ngZone` parameter to become required.
537
+ * @breaking-change 14.0.0
538
+ */
539
+ protected readonly _ngZone?: NgZone | undefined;
540
+ private _document;
541
+ /** Latest data provided by the data source. */
542
+ protected _data: readonly T[];
543
+ /** Subject that emits when the component has been destroyed. */
544
+ private readonly _onDestroy;
545
+ /** List of the rendered rows as identified by their `RenderRow` object. */
546
+ private _renderRows;
547
+ /** Subscription that listens for the data provided by the data source. */
548
+ private _renderChangeSubscription;
549
+ /**
550
+ * Map of all the user's defined columns (header, data, and footer cell template) identified by
551
+ * name. Collection populated by the column definitions gathered by `ContentChildren` as well as
552
+ * any custom column definitions added to `_customColumnDefs`.
553
+ */
554
+ private _columnDefsByName;
555
+ /**
556
+ * Set of all row definitions that can be used by this table. Populated by the rows gathered by
557
+ * using `ContentChildren` as well as any custom row definitions added to `_customRowDefs`.
558
+ */
559
+ private _rowDefs;
560
+ /**
561
+ * Set of all header row definitions that can be used by this table. Populated by the rows
562
+ * gathered by using `ContentChildren` as well as any custom row definitions added to
563
+ * `_customHeaderRowDefs`.
564
+ */
565
+ private _headerRowDefs;
566
+ /**
567
+ * Set of all row definitions that can be used by this table. Populated by the rows gathered by
568
+ * using `ContentChildren` as well as any custom row definitions added to
569
+ * `_customFooterRowDefs`.
570
+ */
571
+ private _footerRowDefs;
572
+ /** Differ used to find the changes in the data provided by the data source. */
573
+ private _dataDiffer;
574
+ /** Stores the row definition that does not have a when predicate. */
575
+ private _defaultRowDef;
576
+ /**
577
+ * Column definitions that were defined outside of the direct content children of the table.
578
+ * These will be defined when, e.g., creating a wrapper around the cdkTable that has
579
+ * column definitions as *its* content child.
580
+ */
581
+ private _customColumnDefs;
582
+ /**
583
+ * Data row definitions that were defined outside of the direct content children of the table.
584
+ * These will be defined when, e.g., creating a wrapper around the cdkTable that has
585
+ * built-in data rows as *its* content child.
586
+ */
587
+ private _customRowDefs;
588
+ /**
589
+ * Header row definitions that were defined outside of the direct content children of the table.
590
+ * These will be defined when, e.g., creating a wrapper around the cdkTable that has
591
+ * built-in header rows as *its* content child.
592
+ */
593
+ private _customHeaderRowDefs;
594
+ /**
595
+ * Footer row definitions that were defined outside of the direct content children of the table.
596
+ * These will be defined when, e.g., creating a wrapper around the cdkTable that has a
597
+ * built-in footer row as *its* content child.
598
+ */
599
+ private _customFooterRowDefs;
600
+ /** No data row that was defined outside of the direct content children of the table. */
601
+ private _customNoDataRow;
602
+ /**
603
+ * Whether the header row definition has been changed. Triggers an update to the header row after
604
+ * content is checked. Initialized as true so that the table renders the initial set of rows.
605
+ */
606
+ private _headerRowDefChanged;
607
+ /**
608
+ * Whether the footer row definition has been changed. Triggers an update to the footer row after
609
+ * content is checked. Initialized as true so that the table renders the initial set of rows.
610
+ */
611
+ private _footerRowDefChanged;
612
+ /**
613
+ * Whether the sticky column styles need to be updated. Set to `true` when the visible columns
614
+ * change.
615
+ */
616
+ private _stickyColumnStylesNeedReset;
617
+ /**
618
+ * Whether the sticky styler should recalculate cell widths when applying sticky styles. If
619
+ * `false`, cached values will be used instead. This is only applicable to tables with
620
+ * {@link fixedLayout} enabled. For other tables, cell widths will always be recalculated.
621
+ */
622
+ private _forceRecalculateCellWidths;
623
+ /**
624
+ * Cache of the latest rendered `RenderRow` objects as a map for easy retrieval when constructing
625
+ * a new list of `RenderRow` objects for rendering rows. Since the new list is constructed with
626
+ * the cached `RenderRow` objects when possible, the row identity is preserved when the data
627
+ * and row template matches, which allows the `IterableDiffer` to check rows by reference
628
+ * and understand which rows are added/moved/removed.
629
+ *
630
+ * Implemented as a map of maps where the first key is the `data: T` object and the second is the
631
+ * `CdkRowDef<T>` object. With the two keys, the cache points to a `RenderRow<T>` object that
632
+ * contains an array of created pairs. The array is necessary to handle cases where the data
633
+ * array contains multiple duplicate data objects and each instantiated `RenderRow` must be
634
+ * stored.
635
+ */
636
+ private _cachedRenderRowsMap;
637
+ /** Whether the table is applied to a native `<table>`. */
638
+ protected _isNativeHtmlTable: boolean;
639
+ /**
640
+ * Utility class that is responsible for applying the appropriate sticky positioning styles to
641
+ * the table's rows and cells.
642
+ */
643
+ private _stickyStyler;
644
+ /**
645
+ * CSS class added to any row or cell that has sticky positioning applied. May be overridden by
646
+ * table subclasses.
647
+ */
648
+ protected stickyCssClass: string;
649
+ /**
650
+ * Whether to manually add position: sticky to all sticky cell elements. Not needed if
651
+ * the position is set in a selector associated with the value of stickyCssClass. May be
652
+ * overridden by table subclasses
653
+ */
654
+ protected needsPositionStickyOnElement: boolean;
655
+ /** Whether the no data row is currently showing anything. */
656
+ private _isShowingNoDataRow;
657
+ /**
658
+ * Tracking function that will be used to check the differences in data changes. Used similarly
659
+ * to `ngFor` `trackBy` function. Optimize row operations by identifying a row based on its data
660
+ * relative to the function to know if a row should be added/removed/moved.
661
+ * Accepts a function that takes two parameters, `index` and `item`.
662
+ */
663
+ get trackBy(): TrackByFunction<T>;
664
+ set trackBy(fn: TrackByFunction<T>);
665
+ private _trackByFn;
666
+ /**
667
+ * The table's source of data, which can be provided in three ways (in order of complexity):
668
+ * - Simple data array (each object represents one table row)
669
+ * - Stream that emits a data array each time the array changes
670
+ * - `DataSource` object that implements the connect/disconnect interface.
671
+ *
672
+ * If a data array is provided, the table must be notified when the array's objects are
673
+ * added, removed, or moved. This can be done by calling the `renderRows()` function which will
674
+ * render the diff since the last table render. If the data array reference is changed, the table
675
+ * will automatically trigger an update to the rows.
676
+ *
677
+ * When providing an Observable stream, the table will trigger an update automatically when the
678
+ * stream emits a new array of data.
679
+ *
680
+ * Finally, when providing a `DataSource` object, the table will use the Observable stream
681
+ * provided by the connect function and trigger updates when that stream emits new data array
682
+ * values. During the table's ngOnDestroy or when the data source is removed from the table, the
683
+ * table will call the DataSource's `disconnect` function (may be useful for cleaning up any
684
+ * subscriptions registered during the connect process).
685
+ */
686
+ get dataSource(): CdkTableDataSourceInput<T>;
687
+ set dataSource(dataSource: CdkTableDataSourceInput<T>);
688
+ private _dataSource;
689
+ /**
690
+ * Whether to allow multiple rows per data object by evaluating which rows evaluate their 'when'
691
+ * predicate to true. If `multiTemplateDataRows` is false, which is the default value, then each
692
+ * dataobject will render the first row that evaluates its when predicate to true, in the order
693
+ * defined in the table, or otherwise the default row which does not have a when predicate.
694
+ */
695
+ get multiTemplateDataRows(): boolean;
696
+ set multiTemplateDataRows(v: BooleanInput);
697
+ _multiTemplateDataRows: boolean;
698
+ /**
699
+ * Whether to use a fixed table layout. Enabling this option will enforce consistent column widths
700
+ * and optimize rendering sticky styles for native tables. No-op for flex tables.
701
+ */
702
+ get fixedLayout(): boolean;
703
+ set fixedLayout(v: BooleanInput);
704
+ private _fixedLayout;
705
+ /**
706
+ * Emits when the table completes rendering a set of data rows based on the latest data from the
707
+ * data source, even if the set of rows is empty.
708
+ */
709
+ readonly contentChanged: EventEmitter<void>;
710
+ /**
711
+ * Stream containing the latest information on what rows are being displayed on screen.
712
+ * Can be used by the data source to as a heuristic of what data should be provided.
713
+ *
714
+ * @docs-private
715
+ */
716
+ readonly viewChange: BehaviorSubject<{
717
+ start: number;
718
+ end: number;
719
+ }>;
720
+ _rowOutlet: DataRowOutlet;
721
+ _headerRowOutlet: HeaderRowOutlet;
722
+ _footerRowOutlet: FooterRowOutlet;
723
+ _noDataRowOutlet: NoDataRowOutlet;
724
+ /**
725
+ * The column definitions provided by the user that contain what the header, data, and footer
726
+ * cells should render for each column.
727
+ */
728
+ _contentColumnDefs: QueryList<CdkColumnDef>;
729
+ /** Set of data row definitions that were provided to the table as content children. */
730
+ _contentRowDefs: QueryList<CdkRowDef<T>>;
731
+ /** Set of header row definitions that were provided to the table as content children. */
732
+ _contentHeaderRowDefs: QueryList<CdkHeaderRowDef>;
733
+ /** Set of footer row definitions that were provided to the table as content children. */
734
+ _contentFooterRowDefs: QueryList<CdkFooterRowDef>;
735
+ /** Row definition that will only be rendered if there's no data in the table. */
736
+ _noDataRow: CdkNoDataRow;
737
+ constructor(
738
+ _differs: IterableDiffers,
739
+ _changeDetectorRef: ChangeDetectorRef,
740
+ _elementRef: ElementRef,
741
+ role: string,
742
+ _dir: Directionality,
743
+ _document: any,
744
+ _platform: Platform,
745
+ _viewRepeater: _ViewRepeater<T, RenderRow<T>, RowContext<T>>,
746
+ _coalescedStyleScheduler: _CoalescedStyleScheduler,
747
+ _viewportRuler: ViewportRuler,
748
+ /**
749
+ * @deprecated `_stickyPositioningListener` parameter to become required.
750
+ * @breaking-change 13.0.0
751
+ */
752
+ _stickyPositioningListener: StickyPositioningListener,
753
+ /**
754
+ * @deprecated `_ngZone` parameter to become required.
755
+ * @breaking-change 14.0.0
756
+ */
757
+ _ngZone?: NgZone | undefined
758
+ );
759
+ ngOnInit(): void;
760
+ ngAfterContentChecked(): void;
761
+ ngOnDestroy(): void;
762
+ /**
763
+ * Renders rows based on the table's latest set of data, which was either provided directly as an
764
+ * input or retrieved through an Observable stream (directly or from a DataSource).
765
+ * Checks for differences in the data since the last diff to perform only the necessary
766
+ * changes (add/remove/move rows).
767
+ *
768
+ * If the table's data source is a DataSource or Observable, this will be invoked automatically
769
+ * each time the provided Observable stream emits a new data array. Otherwise if your data is
770
+ * an array, this function will need to be called to render any changes.
771
+ */
772
+ renderRows(): void;
773
+ /** Adds a column definition that was not included as part of the content children. */
774
+ addColumnDef(columnDef: CdkColumnDef): void;
775
+ /** Removes a column definition that was not included as part of the content children. */
776
+ removeColumnDef(columnDef: CdkColumnDef): void;
777
+ /** Adds a row definition that was not included as part of the content children. */
778
+ addRowDef(rowDef: CdkRowDef<T>): void;
779
+ /** Removes a row definition that was not included as part of the content children. */
780
+ removeRowDef(rowDef: CdkRowDef<T>): void;
781
+ /** Adds a header row definition that was not included as part of the content children. */
782
+ addHeaderRowDef(headerRowDef: CdkHeaderRowDef): void;
783
+ /** Removes a header row definition that was not included as part of the content children. */
784
+ removeHeaderRowDef(headerRowDef: CdkHeaderRowDef): void;
785
+ /** Adds a footer row definition that was not included as part of the content children. */
786
+ addFooterRowDef(footerRowDef: CdkFooterRowDef): void;
787
+ /** Removes a footer row definition that was not included as part of the content children. */
788
+ removeFooterRowDef(footerRowDef: CdkFooterRowDef): void;
789
+ /** Sets a no data row definition that was not included as a part of the content children. */
790
+ setNoDataRow(noDataRow: CdkNoDataRow | null): void;
791
+ /**
792
+ * Updates the header sticky styles. First resets all applied styles with respect to the cells
793
+ * sticking to the top. Then, evaluating which cells need to be stuck to the top. This is
794
+ * automatically called when the header row changes its displayed set of columns, or if its
795
+ * sticky input changes. May be called manually for cases where the cell content changes outside
796
+ * of these events.
797
+ */
798
+ updateStickyHeaderRowStyles(): void;
799
+ /**
800
+ * Updates the footer sticky styles. First resets all applied styles with respect to the cells
801
+ * sticking to the bottom. Then, evaluating which cells need to be stuck to the bottom. This is
802
+ * automatically called when the footer row changes its displayed set of columns, or if its
803
+ * sticky input changes. May be called manually for cases where the cell content changes outside
804
+ * of these events.
805
+ */
806
+ updateStickyFooterRowStyles(): void;
807
+ /**
808
+ * Updates the column sticky styles. First resets all applied styles with respect to the cells
809
+ * sticking to the left and right. Then sticky styles are added for the left and right according
810
+ * to the column definitions for each cell in each row. This is automatically called when
811
+ * the data source provides a new set of data or when a column definition changes its sticky
812
+ * input. May be called manually for cases where the cell content changes outside of these events.
813
+ */
814
+ updateStickyColumnStyles(): void;
815
+ /**
816
+ * Get the list of RenderRow objects to render according to the current list of data and defined
817
+ * row definitions. If the previous list already contained a particular pair, it should be reused
818
+ * so that the differ equates their references.
819
+ */
820
+ private _getAllRenderRows;
821
+ /**
822
+ * Gets a list of `RenderRow<T>` for the provided data object and any `CdkRowDef` objects that
823
+ * should be rendered for this data. Reuses the cached RenderRow objects if they match the same
824
+ * `(T, CdkRowDef)` pair.
825
+ */
826
+ private _getRenderRowsForData;
827
+ /** Update the map containing the content's column definitions. */
828
+ private _cacheColumnDefs;
829
+ /** Update the list of all available row definitions that can be used. */
830
+ private _cacheRowDefs;
831
+ /**
832
+ * Check if the header, data, or footer rows have changed what columns they want to display or
833
+ * whether the sticky states have changed for the header or footer. If there is a diff, then
834
+ * re-render that section.
835
+ */
836
+ private _renderUpdatedColumns;
837
+ /**
838
+ * Switch to the provided data source by resetting the data and unsubscribing from the current
839
+ * render change subscription if one exists. If the data source is null, interpret this by
840
+ * clearing the row outlet. Otherwise start listening for new data.
841
+ */
842
+ private _switchDataSource;
843
+ /** Set up a subscription for the data provided by the data source. */
844
+ private _observeRenderChanges;
845
+ /**
846
+ * Clears any existing content in the header row outlet and creates a new embedded view
847
+ * in the outlet using the header row definition.
848
+ */
849
+ private _forceRenderHeaderRows;
850
+ /**
851
+ * Clears any existing content in the footer row outlet and creates a new embedded view
852
+ * in the outlet using the footer row definition.
853
+ */
854
+ private _forceRenderFooterRows;
855
+ /** Adds the sticky column styles for the rows according to the columns' stick states. */
856
+ private _addStickyColumnStyles;
857
+ /** Gets the list of rows that have been rendered in the row outlet. */
858
+ _getRenderedRows(rowOutlet: RowOutlet): HTMLElement[];
859
+ /**
860
+ * Get the matching row definitions that should be used for this row data. If there is only
861
+ * one row definition, it is returned. Otherwise, find the row definitions that has a when
862
+ * predicate that returns true with the data. If none return true, return the default row
863
+ * definition.
864
+ */
865
+ _getRowDefs(data: T, dataIndex: number): CdkRowDef<T>[];
866
+ private _getEmbeddedViewArgs;
867
+ /**
868
+ * Creates a new row template in the outlet and fills it with the set of cell templates.
869
+ * Optionally takes a context to provide to the row and cells, as well as an optional index
870
+ * of where to place the new row template in the outlet.
871
+ */
872
+ private _renderRow;
873
+ private _renderCellTemplateForItem;
874
+ /**
875
+ * Updates the index-related context for each row to reflect any changes in the index of the rows,
876
+ * e.g. first/last/even/odd.
877
+ */
878
+ private _updateRowIndexContext;
879
+ /** Gets the column definitions for the provided row def. */
880
+ private _getCellTemplates;
881
+ /** Adds native table sections (e.g. tbody) and moves the row outlets into them. */
882
+ private _applyNativeTableSections;
883
+ /**
884
+ * Forces a re-render of the data rows. Should be called in cases where there has been an input
885
+ * change that affects the evaluation of which rows should be rendered, e.g. toggling
886
+ * `multiTemplateDataRows` or adding/removing row definitions.
887
+ */
888
+ private _forceRenderDataRows;
889
+ /**
890
+ * Checks if there has been a change in sticky states since last check and applies the correct
891
+ * sticky styles. Since checking resets the "dirty" state, this should only be performed once
892
+ * during a change detection and after the inputs are settled (after content check).
893
+ */
894
+ private _checkStickyStates;
895
+ /**
896
+ * Creates the sticky styler that will be used for sticky rows and columns. Listens
897
+ * for directionality changes and provides the latest direction to the styler. Re-applies column
898
+ * stickiness when directionality changes.
899
+ */
900
+ private _setupStickyStyler;
901
+ /** Filters definitions that belong to this table from a QueryList. */
902
+ private _getOwnDefs;
903
+ /** Creates or removes the no data row, depending on whether any data is being shown. */
904
+ private _updateNoDataRow;
905
+ static ɵfac: i0.ɵɵFactoryDeclaration<
906
+ CdkTable<any>,
907
+ [
908
+ null,
909
+ null,
910
+ null,
911
+ { attribute: 'role' },
912
+ { optional: true },
913
+ null,
914
+ null,
915
+ null,
916
+ null,
917
+ null,
918
+ { optional: true; skipSelf: true },
919
+ { optional: true },
920
+ ]
921
+ >;
922
+ static ɵcmp: i0.ɵɵComponentDeclaration<
923
+ CdkTable<any>,
924
+ 'cdk-table, table[cdk-table]',
925
+ ['cdkTable'],
926
+ {
927
+ trackBy: 'trackBy';
928
+ dataSource: 'dataSource';
929
+ multiTemplateDataRows: 'multiTemplateDataRows';
930
+ fixedLayout: 'fixedLayout';
931
+ },
932
+ { contentChanged: 'contentChanged' },
933
+ [
934
+ '_noDataRow',
935
+ '_contentColumnDefs',
936
+ '_contentRowDefs',
937
+ '_contentHeaderRowDefs',
938
+ '_contentFooterRowDefs',
939
+ ],
940
+ ['caption', 'colgroup, col'],
941
+ false
942
+ >;
943
+ }
944
+
945
+ /** Possible types that can be set as the data source for a `CdkTable`. */
946
+ export declare type CdkTableDataSourceInput<T> =
947
+ | readonly T[]
948
+ | DataSource<T>
949
+ | Observable<readonly T[]>;
950
+
951
+ export declare class CdkTableModule {
952
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkTableModule, never>;
953
+ static ɵmod: i0.ɵɵNgModuleDeclaration<
954
+ CdkTableModule,
955
+ [
956
+ typeof i1.CdkTable,
957
+ typeof i2.CdkRowDef,
958
+ typeof i3.CdkCellDef,
959
+ typeof i2.CdkCellOutlet,
960
+ typeof i3.CdkHeaderCellDef,
961
+ typeof i3.CdkFooterCellDef,
962
+ typeof i3.CdkColumnDef,
963
+ typeof i3.CdkCell,
964
+ typeof i2.CdkRow,
965
+ typeof i3.CdkHeaderCell,
966
+ typeof i3.CdkFooterCell,
967
+ typeof i2.CdkHeaderRow,
968
+ typeof i2.CdkHeaderRowDef,
969
+ typeof i2.CdkFooterRow,
970
+ typeof i2.CdkFooterRowDef,
971
+ typeof i1.DataRowOutlet,
972
+ typeof i1.HeaderRowOutlet,
973
+ typeof i1.FooterRowOutlet,
974
+ typeof i4.CdkTextColumn,
975
+ typeof i2.CdkNoDataRow,
976
+ typeof i1.CdkRecycleRows,
977
+ typeof i1.NoDataRowOutlet,
978
+ ],
979
+ [typeof i5.ScrollingModule],
980
+ [
981
+ typeof i1.CdkTable,
982
+ typeof i2.CdkRowDef,
983
+ typeof i3.CdkCellDef,
984
+ typeof i2.CdkCellOutlet,
985
+ typeof i3.CdkHeaderCellDef,
986
+ typeof i3.CdkFooterCellDef,
987
+ typeof i3.CdkColumnDef,
988
+ typeof i3.CdkCell,
989
+ typeof i2.CdkRow,
990
+ typeof i3.CdkHeaderCell,
991
+ typeof i3.CdkFooterCell,
992
+ typeof i2.CdkHeaderRow,
993
+ typeof i2.CdkHeaderRowDef,
994
+ typeof i2.CdkFooterRow,
995
+ typeof i2.CdkFooterRowDef,
996
+ typeof i1.DataRowOutlet,
997
+ typeof i1.HeaderRowOutlet,
998
+ typeof i1.FooterRowOutlet,
999
+ typeof i4.CdkTextColumn,
1000
+ typeof i2.CdkNoDataRow,
1001
+ typeof i1.CdkRecycleRows,
1002
+ typeof i1.NoDataRowOutlet,
1003
+ ]
1004
+ >;
1005
+ static ɵinj: i0.ɵɵInjectorDeclaration<CdkTableModule>;
1006
+ }
1007
+
1008
+ /**
1009
+ * Column that simply shows text content for the header and row cells. Assumes that the table
1010
+ * is using the native table implementation (`<table>`).
1011
+ *
1012
+ * By default, the name of this column will be the header text and data property accessor.
1013
+ * The header text can be overridden with the `headerText` input. Cell values can be overridden with
1014
+ * the `dataAccessor` input. Change the text justification to the start or end using the `justify`
1015
+ * input.
1016
+ */
1017
+ export declare class CdkTextColumn<T> implements OnDestroy, OnInit {
1018
+ private _table;
1019
+ private _options;
1020
+ /** Column name that should be used to reference this column. */
1021
+ get name(): string;
1022
+ set name(name: string);
1023
+ _name: string;
1024
+ /**
1025
+ * Text label that should be used for the column header. If this property is not
1026
+ * set, the header text will default to the column name with its first letter capitalized.
1027
+ */
1028
+ headerText: string;
1029
+ /**
1030
+ * Accessor function to retrieve the data rendered for each cell. If this
1031
+ * property is not set, the data cells will render the value found in the data's property matching
1032
+ * the column's name. For example, if the column is named `id`, then the rendered value will be
1033
+ * value defined by the data's `id` property.
1034
+ */
1035
+ dataAccessor: (data: T, name: string) => string;
1036
+ /** Alignment of the cell values. */
1037
+ justify: 'start' | 'end' | 'center';
1038
+ /** @docs-private */
1039
+ columnDef: CdkColumnDef;
1040
+ /**
1041
+ * The column cell is provided to the column during `ngOnInit` with a static query.
1042
+ * Normally, this will be retrieved by the column using `ContentChild`, but that assumes the
1043
+ * column definition was provided in the same view as the table, which is not the case with this
1044
+ * component.
1045
+ * @docs-private
1046
+ */
1047
+ cell: CdkCellDef;
1048
+ /**
1049
+ * The column headerCell is provided to the column during `ngOnInit` with a static query.
1050
+ * Normally, this will be retrieved by the column using `ContentChild`, but that assumes the
1051
+ * column definition was provided in the same view as the table, which is not the case with this
1052
+ * component.
1053
+ * @docs-private
1054
+ */
1055
+ headerCell: CdkHeaderCellDef;
1056
+ constructor(_table: CdkTable<T>, _options: TextColumnOptions<T>);
1057
+ ngOnInit(): void;
1058
+ ngOnDestroy(): void;
1059
+ /**
1060
+ * Creates a default header text. Use the options' header text transformation function if one
1061
+ * has been provided. Otherwise simply capitalize the column name.
1062
+ */
1063
+ _createDefaultHeaderText(): string;
1064
+ /** Synchronizes the column definition name with the text column name. */
1065
+ private _syncColumnDefName;
1066
+ static ɵfac: i0.ɵɵFactoryDeclaration<
1067
+ CdkTextColumn<any>,
1068
+ [{ optional: true }, { optional: true }]
1069
+ >;
1070
+ static ɵcmp: i0.ɵɵComponentDeclaration<
1071
+ CdkTextColumn<any>,
1072
+ 'cdk-text-column',
1073
+ never,
1074
+ { name: 'name'; headerText: 'headerText'; dataAccessor: 'dataAccessor'; justify: 'justify' },
1075
+ {},
1076
+ never,
1077
+ never,
1078
+ false
1079
+ >;
1080
+ }
1081
+
1082
+ /** Base interface for a cell definition. Captures a column's cell template definition. */
1083
+ export declare interface CellDef {
1084
+ template: TemplateRef<any>;
1085
+ }
1086
+
1087
+ /** Injection token used to provide a coalesced style scheduler. */
1088
+ export declare const _COALESCED_STYLE_SCHEDULER: InjectionToken<_CoalescedStyleScheduler>;
1089
+
1090
+ /**
1091
+ * Allows grouping up CSSDom mutations after the current execution context.
1092
+ * This can significantly improve performance when separate consecutive functions are
1093
+ * reading from the CSSDom and then mutating it.
1094
+ *
1095
+ * @docs-private
1096
+ */
1097
+ export declare class _CoalescedStyleScheduler implements OnDestroy {
1098
+ private readonly _ngZone;
1099
+ private _currentSchedule;
1100
+ private readonly _destroyed;
1101
+ constructor(_ngZone: NgZone);
1102
+ /**
1103
+ * Schedules the specified task to run at the end of the current VM turn.
1104
+ */
1105
+ schedule(task: () => unknown): void;
1106
+ /**
1107
+ * Schedules the specified task to run after other scheduled tasks at the end of the current
1108
+ * VM turn.
1109
+ */
1110
+ scheduleEnd(task: () => unknown): void;
1111
+ /** Prevent any further tasks from running. */
1112
+ ngOnDestroy(): void;
1113
+ private _createScheduleIfNeeded;
1114
+ private _getScheduleObservable;
1115
+ static ɵfac: i0.ɵɵFactoryDeclaration<_CoalescedStyleScheduler, never>;
1116
+ static ɵprov: i0.ɵɵInjectableDeclaration<_CoalescedStyleScheduler>;
1117
+ }
1118
+
1119
+ /** @docs-private */
1120
+ export declare type Constructor<T> = new (...args: any[]) => T;
1121
+
1122
+ /**
1123
+ * Provides a handle for the table to grab the view container's ng-container to insert data rows.
1124
+ * @docs-private
1125
+ */
1126
+ export declare class DataRowOutlet implements RowOutlet {
1127
+ viewContainer: ViewContainerRef;
1128
+ elementRef: ElementRef;
1129
+ constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
1130
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataRowOutlet, never>;
1131
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
1132
+ DataRowOutlet,
1133
+ '[rowOutlet]',
1134
+ never,
1135
+ {},
1136
+ {},
1137
+ never,
1138
+ never,
1139
+ false
1140
+ >;
1141
+ }
1142
+
1143
+ export { DataSource };
1144
+
1145
+ /**
1146
+ * Provides a handle for the table to grab the view container's ng-container to insert the footer.
1147
+ * @docs-private
1148
+ */
1149
+ export declare class FooterRowOutlet implements RowOutlet {
1150
+ viewContainer: ViewContainerRef;
1151
+ elementRef: ElementRef;
1152
+ constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
1153
+ static ɵfac: i0.ɵɵFactoryDeclaration<FooterRowOutlet, never>;
1154
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
1155
+ FooterRowOutlet,
1156
+ '[footerRowOutlet]',
1157
+ never,
1158
+ {},
1159
+ {},
1160
+ never,
1161
+ never,
1162
+ false
1163
+ >;
1164
+ }
1165
+
1166
+ /**
1167
+ * Provides a handle for the table to grab the view container's ng-container to insert the header.
1168
+ * @docs-private
1169
+ */
1170
+ export declare class HeaderRowOutlet implements RowOutlet {
1171
+ viewContainer: ViewContainerRef;
1172
+ elementRef: ElementRef;
1173
+ constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
1174
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderRowOutlet, never>;
1175
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
1176
+ HeaderRowOutlet,
1177
+ '[headerRowOutlet]',
1178
+ never,
1179
+ {},
1180
+ {},
1181
+ never,
1182
+ never,
1183
+ false
1184
+ >;
1185
+ }
1186
+
1187
+ declare namespace i1 {
1188
+ export {
1189
+ CdkRecycleRows,
1190
+ RowOutlet,
1191
+ CdkTableDataSourceInput,
1192
+ DataRowOutlet,
1193
+ HeaderRowOutlet,
1194
+ FooterRowOutlet,
1195
+ NoDataRowOutlet,
1196
+ CDK_TABLE_TEMPLATE,
1197
+ RowContext,
1198
+ RenderRow,
1199
+ CdkTable,
1200
+ };
1201
+ }
1202
+
1203
+ declare namespace i2 {
1204
+ export {
1205
+ CDK_ROW_TEMPLATE,
1206
+ BaseRowDef,
1207
+ CdkHeaderRowDef,
1208
+ CdkFooterRowDef,
1209
+ CdkRowDef,
1210
+ CdkCellOutletRowContext,
1211
+ CdkCellOutletMultiRowContext,
1212
+ CdkCellOutlet,
1213
+ CdkHeaderRow,
1214
+ CdkFooterRow,
1215
+ CdkRow,
1216
+ CdkNoDataRow,
1217
+ };
1218
+ }
1219
+
1220
+ declare namespace i3 {
1221
+ export {
1222
+ CellDef,
1223
+ CdkCellDef,
1224
+ CdkHeaderCellDef,
1225
+ CdkFooterCellDef,
1226
+ CdkColumnDef,
1227
+ BaseCdkCell,
1228
+ CdkHeaderCell,
1229
+ CdkFooterCell,
1230
+ CdkCell,
1231
+ };
1232
+ }
1233
+
1234
+ declare namespace i4 {
1235
+ export { CdkTextColumn };
1236
+ }
1237
+
1238
+ /**
1239
+ * Mixin to provide a directive with a function that checks if the sticky input has been
1240
+ * changed since the last time the function was called. Essentially adds a dirty-check to the
1241
+ * sticky value.
1242
+ * @docs-private
1243
+ */
1244
+ export declare function mixinHasStickyInput<T extends Constructor<{}>>(base: T): CanStickCtor & T;
1245
+
1246
+ /**
1247
+ * Provides a handle for the table to grab the view
1248
+ * container's ng-container to insert the no data row.
1249
+ * @docs-private
1250
+ */
1251
+ export declare class NoDataRowOutlet implements RowOutlet {
1252
+ viewContainer: ViewContainerRef;
1253
+ elementRef: ElementRef;
1254
+ constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
1255
+ static ɵfac: i0.ɵɵFactoryDeclaration<NoDataRowOutlet, never>;
1256
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
1257
+ NoDataRowOutlet,
1258
+ '[noDataRowOutlet]',
1259
+ never,
1260
+ {},
1261
+ {},
1262
+ never,
1263
+ never,
1264
+ false
1265
+ >;
1266
+ }
1267
+
1268
+ /**
1269
+ * Set of properties that represents the identity of a single rendered row.
1270
+ *
1271
+ * When the table needs to determine the list of rows to render, it will do so by iterating through
1272
+ * each data object and evaluating its list of row templates to display (when multiTemplateDataRows
1273
+ * is false, there is only one template per data object). For each pair of data object and row
1274
+ * template, a `RenderRow` is added to the list of rows to render. If the data object and row
1275
+ * template pair has already been rendered, the previously used `RenderRow` is added; else a new
1276
+ * `RenderRow` is * created. Once the list is complete and all data objects have been iterated
1277
+ * through, a diff is performed to determine the changes that need to be made to the rendered rows.
1278
+ *
1279
+ * @docs-private
1280
+ */
1281
+ export declare interface RenderRow<T> {
1282
+ data: T;
1283
+ dataIndex: number;
1284
+ rowDef: CdkRowDef<T>;
1285
+ }
1286
+
1287
+ /**
1288
+ * Interface used to conveniently type the possible context interfaces for the render row.
1289
+ * @docs-private
1290
+ */
1291
+ export declare interface RowContext<T>
1292
+ extends CdkCellOutletMultiRowContext<T>,
1293
+ CdkCellOutletRowContext<T> {}
1294
+
1295
+ /** Interface used to provide an outlet for rows to be inserted into. */
1296
+ export declare interface RowOutlet {
1297
+ viewContainer: ViewContainerRef;
1298
+ }
1299
+
1300
+ /**
1301
+ * @docs-private
1302
+ */
1303
+ export declare class _Schedule {
1304
+ tasks: (() => unknown)[];
1305
+ endTasks: (() => unknown)[];
1306
+ }
1307
+
1308
+ /**
1309
+ * List of all possible directions that can be used for sticky positioning.
1310
+ * @docs-private
1311
+ */
1312
+ export declare const STICKY_DIRECTIONS: StickyDirection[];
1313
+
1314
+ /** The injection token used to specify the StickyPositioningListener. */
1315
+ export declare const STICKY_POSITIONING_LISTENER: InjectionToken<StickyPositioningListener>;
1316
+
1317
+ export declare type StickyDirection = 'top' | 'bottom' | 'left' | 'right';
1318
+
1319
+ export declare type StickyOffset = number | null | undefined;
1320
+
1321
+ /**
1322
+ * If provided, CdkTable will call the methods below when it updates the size/
1323
+ * position/etc of its sticky rows and columns.
1324
+ */
1325
+ export declare interface StickyPositioningListener {
1326
+ /** Called when CdkTable updates its sticky start columns. */
1327
+ stickyColumnsUpdated(update: StickyUpdate): void;
1328
+ /** Called when CdkTable updates its sticky end columns. */
1329
+ stickyEndColumnsUpdated(update: StickyUpdate): void;
1330
+ /** Called when CdkTable updates its sticky header rows. */
1331
+ stickyHeaderRowsUpdated(update: StickyUpdate): void;
1332
+ /** Called when CdkTable updates its sticky footer rows. */
1333
+ stickyFooterRowsUpdated(update: StickyUpdate): void;
1334
+ }
1335
+
1336
+ export declare type StickySize = number | null | undefined;
1337
+
1338
+ /**
1339
+ * Applies and removes sticky positioning styles to the `CdkTable` rows and columns cells.
1340
+ * @docs-private
1341
+ */
1342
+ export declare class StickyStyler {
1343
+ private _isNativeHtmlTable;
1344
+ private _stickCellCss;
1345
+ direction: Direction;
1346
+ private _coalescedStyleScheduler;
1347
+ private _isBrowser;
1348
+ private readonly _needsPositionStickyOnElement;
1349
+ private readonly _positionListener?;
1350
+ private _cachedCellWidths;
1351
+ private readonly _borderCellCss;
1352
+ /**
1353
+ * @param _isNativeHtmlTable Whether the sticky logic should be based on a table
1354
+ * that uses the native `<table>` element.
1355
+ * @param _stickCellCss The CSS class that will be applied to every row/cell that has
1356
+ * sticky positioning applied.
1357
+ * @param direction The directionality context of the table (ltr/rtl); affects column positioning
1358
+ * by reversing left/right positions.
1359
+ * @param _isBrowser Whether the table is currently being rendered on the server or the client.
1360
+ * @param _needsPositionStickyOnElement Whether we need to specify position: sticky on cells
1361
+ * using inline styles. If false, it is assumed that position: sticky is included in
1362
+ * the component stylesheet for _stickCellCss.
1363
+ * @param _positionListener A listener that is notified of changes to sticky rows/columns
1364
+ * and their dimensions.
1365
+ */
1366
+ constructor(
1367
+ _isNativeHtmlTable: boolean,
1368
+ _stickCellCss: string,
1369
+ direction: Direction,
1370
+ _coalescedStyleScheduler: _CoalescedStyleScheduler,
1371
+ _isBrowser?: boolean,
1372
+ _needsPositionStickyOnElement?: boolean,
1373
+ _positionListener?: StickyPositioningListener | undefined
1374
+ );
1375
+ /**
1376
+ * Clears the sticky positioning styles from the row and its cells by resetting the `position`
1377
+ * style, setting the zIndex to 0, and unsetting each provided sticky direction.
1378
+ * @param rows The list of rows that should be cleared from sticking in the provided directions
1379
+ * @param stickyDirections The directions that should no longer be set as sticky on the rows.
1380
+ */
1381
+ clearStickyPositioning(rows: HTMLElement[], stickyDirections: StickyDirection[]): void;
1382
+ /**
1383
+ * Applies sticky left and right positions to the cells of each row according to the sticky
1384
+ * states of the rendered column definitions.
1385
+ * @param rows The rows that should have its set of cells stuck according to the sticky states.
1386
+ * @param stickyStartStates A list of boolean states where each state represents whether the cell
1387
+ * in this index position should be stuck to the start of the row.
1388
+ * @param stickyEndStates A list of boolean states where each state represents whether the cell
1389
+ * in this index position should be stuck to the end of the row.
1390
+ * @param recalculateCellWidths Whether the sticky styler should recalculate the width of each
1391
+ * column cell. If `false` cached widths will be used instead.
1392
+ */
1393
+ updateStickyColumns(
1394
+ rows: HTMLElement[],
1395
+ stickyStartStates: boolean[],
1396
+ stickyEndStates: boolean[],
1397
+ recalculateCellWidths?: boolean
1398
+ ): void;
1399
+ /**
1400
+ * Applies sticky positioning to the row's cells if using the native table layout, and to the
1401
+ * row itself otherwise.
1402
+ * @param rowsToStick The list of rows that should be stuck according to their corresponding
1403
+ * sticky state and to the provided top or bottom position.
1404
+ * @param stickyStates A list of boolean states where each state represents whether the row
1405
+ * should be stuck in the particular top or bottom position.
1406
+ * @param position The position direction in which the row should be stuck if that row should be
1407
+ * sticky.
1408
+ *
1409
+ */
1410
+ stickRows(rowsToStick: HTMLElement[], stickyStates: boolean[], position: 'top' | 'bottom'): void;
1411
+ /**
1412
+ * When using the native table in Safari, sticky footer cells do not stick. The only way to stick
1413
+ * footer rows is to apply sticky styling to the tfoot container. This should only be done if
1414
+ * all footer rows are sticky. If not all footer rows are sticky, remove sticky positioning from
1415
+ * the tfoot element.
1416
+ */
1417
+ updateStickyFooterContainer(tableElement: Element, stickyStates: boolean[]): void;
1418
+ /**
1419
+ * Removes the sticky style on the element by removing the sticky cell CSS class, re-evaluating
1420
+ * the zIndex, removing each of the provided sticky directions, and removing the
1421
+ * sticky position if there are no more directions.
1422
+ */
1423
+ _removeStickyStyle(element: HTMLElement, stickyDirections: StickyDirection[]): void;
1424
+ /**
1425
+ * Adds the sticky styling to the element by adding the sticky style class, changing position
1426
+ * to be sticky (and -webkit-sticky), setting the appropriate zIndex, and adding a sticky
1427
+ * direction and value.
1428
+ */
1429
+ _addStickyStyle(
1430
+ element: HTMLElement,
1431
+ dir: StickyDirection,
1432
+ dirValue: number,
1433
+ isBorderElement: boolean
1434
+ ): void;
1435
+ /**
1436
+ * Calculate what the z-index should be for the element, depending on what directions (top,
1437
+ * bottom, left, right) have been set. It should be true that elements with a top direction
1438
+ * should have the highest index since these are elements like a table header. If any of those
1439
+ * elements are also sticky in another direction, then they should appear above other elements
1440
+ * that are only sticky top (e.g. a sticky column on a sticky header). Bottom-sticky elements
1441
+ * (e.g. footer rows) should then be next in the ordering such that they are below the header
1442
+ * but above any non-sticky elements. Finally, left/right sticky elements (e.g. sticky columns)
1443
+ * should minimally increment so that they are above non-sticky elements but below top and bottom
1444
+ * elements.
1445
+ */
1446
+ _getCalculatedZIndex(element: HTMLElement): string;
1447
+ /** Gets the widths for each cell in the provided row. */
1448
+ _getCellWidths(row: HTMLElement, recalculateCellWidths?: boolean): number[];
1449
+ /**
1450
+ * Determines the left and right positions of each sticky column cell, which will be the
1451
+ * accumulation of all sticky column cell widths to the left and right, respectively.
1452
+ * Non-sticky cells do not need to have a value set since their positions will not be applied.
1453
+ */
1454
+ _getStickyStartColumnPositions(widths: number[], stickyStates: boolean[]): number[];
1455
+ /**
1456
+ * Determines the left and right positions of each sticky column cell, which will be the
1457
+ * accumulation of all sticky column cell widths to the left and right, respectively.
1458
+ * Non-sticky cells do not need to have a value set since their positions will not be applied.
1459
+ */
1460
+ _getStickyEndColumnPositions(widths: number[], stickyStates: boolean[]): number[];
1461
+ }
1462
+
1463
+ export declare interface StickyUpdate {
1464
+ elements?: readonly (HTMLElement[] | undefined)[];
1465
+ offsets?: StickyOffset[];
1466
+ sizes: StickySize[];
1467
+ }
1468
+
1469
+ /** Injection token that can be used to specify the text column options. */
1470
+ export declare const TEXT_COLUMN_OPTIONS: InjectionToken<TextColumnOptions<any>>;
1471
+
1472
+ /** Configurable options for `CdkTextColumn`. */
1473
+ export declare interface TextColumnOptions<T> {
1474
+ /**
1475
+ * Default function that provides the header text based on the column name if a header
1476
+ * text is not provided.
1477
+ */
1478
+ defaultHeaderTextTransform?: (name: string) => string;
1479
+ /** Default data accessor to use if one is not provided. */
1480
+ defaultDataAccessor?: (data: T, name: string) => string;
1481
+ }
1482
+
1483
+ export {};